From brahma at hindu.org Sun Oct 1 00:03:30 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 1 Oct 2017 04:03:30 +0000 Subject: Dismiss Keyboard on Mobile In-Reply-To: <15ed4364118.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <418932B2-2504-4C6B-BA6D-3A54A5A84D72@hindu.org> <15ed1992808.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <36385514-5423-4793-9C78-B21B9954352C@hindu.org> <15ed4364118.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Hmm. that nice "DONE" option is only for iOS iPhoneSetKeyboardReturnKey J. Landman Gay wrote: See " mobilesetkeyboardtype". From michaell at unimelb.edu.au Sun Oct 1 02:41:49 2017 From: michaell at unimelb.edu.au (Michael Julian Lew) Date: Sun, 1 Oct 2017 06:41:49 +0000 Subject: Making the clipboard Excel compatible Message-ID: Excel doesn't like the line endings that Livecode puts into the clipboardData["text"] and renders the lines as if they were double spaced. I have asked once before what magic wand to wave to fix the problem, but I forgot the answer and googling was entirely unsuccessful (although I found that there are lots of articles about the strangeness of the Excel clipboard). Can someone remind me? Michael Lew From hh at hyperhh.de Sun Oct 1 05:10:38 2017 From: hh at hyperhh.de (hh) Date: Sun, 1 Oct 2017 11:10:38 +0200 Subject: not really OT: The Coming Software Apocalypse Message-ID: > Mark Wieder wrote: > Oops. I forgot to post a link to Bret Victor's talk: > https://www.youtube.com/watch?v=wxWM4t68cR4 Thanks for this valuable link. Very impressing thoughts there. The most interesting for me: His first three demos are very close to LCB (as LCB is close to javascript with the handlers he used). So most of what he does with the sliders in the text editor can we already have with "live-updates" from the property inspector ... From nabble at mad.pink Sun Oct 1 15:30:17 2017 From: nabble at mad.pink (pink) Date: Sun, 1 Oct 2017 12:30:17 -0700 (MST) Subject: IconGrid widget v2.0.2 In-Reply-To: References: Message-ID: <1506886217155-0.post@n4.nabble.com> I absolutely love this. In my a current app I had a stack of 18 SVG widgets that I was having a tough time getting to resize and look right (trying to expand it into Mac, PC and Android markets.) This makes things much much much easier. Works great on iOS ----- --- Greg (pink) Miller mad, pink and dangerous to code -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From monte at appisle.net Sun Oct 1 17:57:13 2017 From: monte at appisle.net (Monte Goulding) Date: Mon, 2 Oct 2017 08:57:13 +1100 Subject: Character sets in Android, iOS, OS/X, Windows In-Reply-To: <5A171924-C5D2-4E2A-9E5A-F859F2EC6AF1@mindcrea.com> References: <5A171924-C5D2-4E2A-9E5A-F859F2EC6AF1@mindcrea.com> Message-ID: > On 30 Sep 2017, at 6:48 pm, Pyyhti? Christer via use-livecode wrote: > > There are character set differences between the different platforms, when entered in an app by the user. Characters slash "/" for example is one of these. > > Has anyone detected the same problem? What would be the intelligent solution to overcome this? So when a user is typing "?" (a with umlaut) from Android device soft keyboard, it will be displayed the same on his/her iPAD screen? The amount of text typed is not large, 100 or so chars. > > Unless there is a new trick since LC V7 (just transferring to V8), the only solution would be device-vise use conversionTable[key,os], and maintain it as differences appear Unicode ? should be the same everywhere. Are you sure you aren?t doing something that is native encoding the text during the transfer from one deice to the other? At any point when you write/read the text to/from a file, socket or database you will need to encode/decode it. / should be the same everywhere regardless of encoding so that?s a little odd if you are having issues with that! Cheers Monte From panos.merakos at livecode.com Mon Oct 2 07:43:39 2017 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 2 Oct 2017 12:43:39 +0100 Subject: [ANN] Release 8.1.7 RC-2 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 8.1.7 RC-2. Getting the Release =================== You can get the release at https://downloads.livecode.com/livecode/ or via the automatic updater. Release Contents ================ LiveCode 8.1.7 RC-2 contains important bugfixes and improvements, including (but not limited to): - Fixing a crash when using the MacOS color picker *on MacOS High Sierra* - Adding support for building with Xcode 9 (and using the latest iOS 11 SDK) - New versions of mergExt* and tsNet externals Notes: - Xcode 9 requires MacOS 10.12.6 or higher - Building a device standalone that includes mergGoogle external will not work if you are using Xcode 9 (see bug http://quality.livecode.com/show_bug.cgi?id=20498) Since the last stable version (8.1.6), more than 45 bugs have been fixed. The full release notes are available from: http://downloads.livecode.com/livecode/8_1_7/LiveCodeNotes-8_1_7_rc_2.pdf Feedback ======== Please report any bugs encountered on our BugZilla at http://quality.livecode.com/ Have fun! The LiveCode Team -- From dunbarx at aol.com Mon Oct 2 08:02:08 2017 From: dunbarx at aol.com (dunbarx) Date: Mon, 2 Oct 2017 05:02:08 -0700 (MST) Subject: Making the clipboard Excel compatible In-Reply-To: References: Message-ID: <1506945728442-0.post@n4.nabble.com> Hmm. If I place a few lines of text into a field,, with the words separated by tabs, and: set the clipBoardData["text"] to fld 1 and then paste into excel, all comes out just fine. I am in v.6.7, however. Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From panos.merakos at livecode.com Mon Oct 2 08:57:01 2017 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 2 Oct 2017 13:57:01 +0100 Subject: [ANN] This Week in LiveCode 100 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 #100 here: https://goo.gl/Gw6qie 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 tore.nilsen at me.com Mon Oct 2 09:32:51 2017 From: tore.nilsen at me.com (Tore Nilsen) Date: Mon, 02 Oct 2017 15:32:51 +0200 Subject: Size restrictions when cloning or create a control in script Message-ID: <3DE39817-B431-4BF1-AACE-E53BA5616ECF@me.com> One of my students have come across what may be a bug. When trying to clone a control where width/height is less than 9, LiveCode reverts to default sizes set in the preferences for that particular control. The same happen if you try to create a new control by setting the with/height of the templateControl to less than 9. I know it is possible to create/clone the control after a lock screen command has been issued, change the sizes and then issue an unlock screen command, but this seems unnecessary, especially if you want to clone an existing control where the dimensions are already set. After all, if a clone is identical to the original object, then it can hardly be called a clone. Should I file a bug report or is this something that should be considered a feature? Regards Tore Nilsen From merakosp at gmail.com Mon Oct 2 09:40:33 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Mon, 2 Oct 2017 14:40:33 +0100 Subject: Size restrictions when cloning or create a control in script In-Reply-To: <3DE39817-B431-4BF1-AACE-E53BA5616ECF@me.com> References: <3DE39817-B431-4BF1-AACE-E53BA5616ECF@me.com> Message-ID: Hi Tore, This is a bug, which was fixed in LC 9.0 DP-4: https://github.com/livecode/livecode-ide/pull/1501 You can modify the file "/Contents/Toolset/libraries/revbackscriptlibrary.livecodescript" locally in LC 8.x if you want to back port this change. Best, Panos -- On Mon, Oct 2, 2017 at 2:32 PM, Tore Nilsen via use-livecode < use-livecode at lists.runrev.com> wrote: > One of my students have come across what may be a bug. When trying to > clone a control where width/height is less than 9, LiveCode reverts to > default sizes set in the preferences for that particular control. The same > happen if you try to create a new control by setting the with/height of the > templateControl to less than 9. I know it is possible to create/clone the > control after a lock screen command has been issued, change the sizes and > then issue an unlock screen command, but this seems unnecessary, especially > if you want to clone an existing control where the dimensions are already > set. After all, if a clone is identical to the original object, then it can > hardly be called a clone. > > Should I file a bug report or is this something that should be considered > a feature? > > Regards > Tore Nilsen > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From iphonelagi at gmail.com Mon Oct 2 09:41:55 2017 From: iphonelagi at gmail.com (Lagi Pittas) Date: Mon, 2 Oct 2017 14:41:55 +0100 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: References: <6fbcf7fe-91f5-484d-b42a-144dca6b4be0@Brian-Milbys-iPhone-6s-Plus> Message-ID: I posted a link to Bret Victor in may (and forgot the link like Mark). I thought there would be more feedback but the only one was a request by Richmond for the link. I didn't expand on this - but my reasoning is that we are partly there and as Herman suggests using LCB certain of the "algorithm design" methods could be scripted, (by better men than me .. Mark, Ali, Monte - i'm looking at you). Chris Granger an ex Microsoftie was inspired by the talk and created a kickstarter for LIGHTTABLE which was to be something like Bret Victor's concepts. The aim was $200,000 he got $360,000. The initial version was based on the Closure language but they then added Python and JS because of popularity. He then Open sourced it at version 0.6 and I think it is basically dead - Nice work if you can get it. There is pent up demand for something like it - Apples Playground for swift goes much of the way but Swift ain't Livecode. Just the implementation of the Binary search Functionality would be a brilliant first step for debugging logic in our functions or procedures - the animation could come afterwards but HHs suggestion could be food for thought. Regards L:agi OOPS!! https://vimeo.com/36579366 On 25 May 2017 at 12:33, Richmond Mathewson via use-livecode > wrote: >* Can you post the URL to that video, please? *>>* Richmond. *>>* On 5/25/17 1:13 pm, Lagi Pittas via use-livecode wrote: *>>>* Hi *>>>>* You might want to watch this 1 hour ish video by Bret Victor as you are *>>* compiling. *>>* I've seen a good few of his talks over the years and read a lot of his *>>* stuff. *>>>>* If you think it's too long just got to either 2:30 or 10:30 (that one is *>>* mind blowing) but I'd suggest you listen to the whole lecture. *>>* This is the Ultimate IDE but his ideas about programming also cover what *>>* Mark W. was saying about not being able to remember the order of *>>* parameters. That was in a different talk or on his website - i'll try and *>>* dig it out. *>>>>* Comments? *>>>>* Regards Lagi* On 30 September 2017 at 20:31, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 09/30/2017 11:58 AM, Brian Milby via use-livecode wrote: > >> >> Good read. Thanks! >> > > Oops. I forgot to post a link to Bret Victor's talk: > > https://www.youtube.com/watch?v=wxWM4t68cR4 > > -- > 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 tore.nilsen at me.com Mon Oct 2 10:15:01 2017 From: tore.nilsen at me.com (Tore Nilsen) Date: Mon, 02 Oct 2017 16:15:01 +0200 Subject: Size restrictions when cloning or create a control in script In-Reply-To: References: <3DE39817-B431-4BF1-AACE-E53BA5616ECF@me.com> Message-ID: Thank you, I will report back to my students as well. Regards Tore > 2. okt. 2017 kl. 15:40 skrev panagiotis merakos via use-livecode : > > Hi Tore, > > This is a bug, which was fixed in LC 9.0 DP-4: > > https://github.com/livecode/livecode-ide/pull/1501 > > You can modify the file > "/Contents/Toolset/libraries/revbackscriptlibrary.livecodescript" locally > in LC 8.x if you want to back port this change. > > Best, > Panos > -- > > On Mon, Oct 2, 2017 at 2:32 PM, Tore Nilsen via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> One of my students have come across what may be a bug. When trying to >> clone a control where width/height is less than 9, LiveCode reverts to >> default sizes set in the preferences for that particular control. The same >> happen if you try to create a new control by setting the with/height of the >> templateControl to less than 9. I know it is possible to create/clone the >> control after a lock screen command has been issued, change the sizes and >> then issue an unlock screen command, but this seems unnecessary, especially >> if you want to clone an existing control where the dimensions are already >> set. After all, if a clone is identical to the original object, then it can >> hardly be called a clone. >> >> Should I file a bug report or is this something that should be considered >> a feature? >> >> Regards >> Tore Nilsen >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 2 10:41:52 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 2 Oct 2017 14:41:52 +0000 Subject: Making the clipboard Excel compatible In-Reply-To: References: Message-ID: <94C88D62-736F-4726-80DC-AD173749036A@iotecdigital.com> If I had to guess I'd say that the clipboard contains CRs and LFs for each single line break, and other software is interpreting this as 2 line breaks. Setting the clipboard data ["text"] *decodes* it so to speak. When I copy code and paste it into my email program (Apple Mail) it does the double line thing, but if I paste it first into a text only editor then copy/paste it into my mail program it's fine. That tells me that the text editor is handling the cr/lf condition like you would expect, and Apple Mail isn't. Bob S > On Sep 30, 2017, at 23:41 , Michael Julian Lew via use-livecode wrote: > > Excel doesn't like the line endings that Livecode puts into the clipboardData["text"] and renders the lines as if they were double spaced. > > I have asked once before what magic wand to wave to fix the problem, but I forgot the answer and googling was entirely unsuccessful (although I found that there are lots of articles about the strangeness of the Excel clipboard). Can someone remind me? > > Michael Lew > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 2 10:51:40 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 2 Oct 2017 14:51:40 +0000 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: <41154cf2-67e9-7952-ea0c-33d6018f6389@sonic.net> References: <41154cf2-67e9-7952-ea0c-33d6018f6389@sonic.net> Message-ID: <6CD43159-C93F-4706-9EA6-694BFF2BD594@iotecdigital.com> This article is exactly why I contend that man can never travel to other planets never mind solar systems, and colonize them. The complexity of something so vast as to be able to get us there would be failing all the time, and we would have to be able to anticipate those failures, and take repair parts several times more tham we predict we might need "just to be safe". Then you get out there, some code that runs the life support starts shutting it down, and the guy who wrote the code is back on planet earth too far away to communicate with. No one on earth would ever know how they all died. No my friends and fellow man, we are made of the earth, for the earth. Bob S > On Sep 30, 2017, at 10:31 , Mark Wieder via use-livecode wrote: > > Long read, but worth the effort: > > https://www.theatlantic.com/technology/archive/2017/09/saving-the-world-from-code/540393/ > > -- > 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 dunbarx at aol.com Mon Oct 2 11:26:40 2017 From: dunbarx at aol.com (dunbarx) Date: Mon, 2 Oct 2017 08:26:40 -0700 (MST) Subject: Making the clipboard Excel compatible In-Reply-To: <94C88D62-736F-4726-80DC-AD173749036A@iotecdigital.com> References: <94C88D62-736F-4726-80DC-AD173749036A@iotecdigital.com> Message-ID: <1506958000197-0.post@n4.nabble.com> Well and good, but, barring the version difference, the OP was talking about Excel, and my setup acts normally. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From bobsneidar at iotecdigital.com Mon Oct 2 11:48:02 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 2 Oct 2017 15:48:02 +0000 Subject: Making the clipboard Excel compatible In-Reply-To: <1506958000197-0.post@n4.nabble.com> References: <94C88D62-736F-4726-80DC-AD173749036A@iotecdigital.com> <1506958000197-0.post@n4.nabble.com> Message-ID: I get double rows in Excel for Mac v2011, OS X V10.12. I still think it's about how the destination application treats CR/LF. Bob S > On Oct 2, 2017, at 08:26 , dunbarx via use-livecode wrote: > > Well and good, but, barring the version difference, the OP was talking about > Excel, and my setup acts normally. > > 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 revdev at pdslabs.net Mon Oct 2 12:44:10 2017 From: revdev at pdslabs.net (Phil Davis) Date: Mon, 2 Oct 2017 09:44:10 -0700 Subject: Making the clipboard Excel compatible In-Reply-To: <94C88D62-736F-4726-80DC-AD173749036A@iotecdigital.com> References: <94C88D62-736F-4726-80DC-AD173749036A@iotecdigital.com> Message-ID: <3c634c4e-ca65-5920-ffee-fab10616dcfc@pdslabs.net> I'm wondering if this is a Unicode-related thing. No time to experiment right now however. Phil Davis On 10/2/17 7:41 AM, Bob Sneidar via use-livecode wrote: > If I had to guess I'd say that the clipboard contains CRs and LFs for each single line break, and other software is interpreting this as 2 line breaks. Setting the clipboard data ["text"] *decodes* it so to speak. When I copy code and paste it into my email program (Apple Mail) it does the double line thing, but if I paste it first into a text only editor then copy/paste it into my mail program it's fine. That tells me that the text editor is handling the cr/lf condition like you would expect, and Apple Mail isn't. > > Bob S > > >> On Sep 30, 2017, at 23:41 , Michael Julian Lew via use-livecode wrote: >> >> Excel doesn't like the line endings that Livecode puts into the clipboardData["text"] and renders the lines as if they were double spaced. >> >> I have asked once before what magic wand to wave to fix the problem, but I forgot the answer and googling was entirely unsuccessful (although I found that there are lots of articles about the strangeness of the Excel clipboard). Can someone remind me? >> >> Michael Lew >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode 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 andrew at midwestcoastmedia.com Mon Oct 2 13:03:45 2017 From: andrew at midwestcoastmedia.com (andrew at midwestcoastmedia.com) Date: Mon, 02 Oct 2017 17:03:45 +0000 Subject: mergZXing alternative Message-ID: <20171002170345.Horde.7XYxMPrzmsjiyE-zaSPI2zg@ua850258.serversignin.com> I just got around to building a new version of an existing project and discovered my barcode scanner didn't work. Quick check of the release notes for 8.2.0dp1 stated that mergZXing was being deprecated and to use mergAVCam instead. I can't find mergAVCam (assume mergAV is the inclusion, but this wasn't selected by "Search for required inclusions...") or any syntax that will support barcodes now. Tried 8.2.0dp1 and 9.0.0dp7. I'm also using the Spinner widget so I get a "can't find module" error when trying with 8.1.7.rc2. Can anyone provide a basic code sample for how this should work now? --Andrew Bell From MikeKerner at roadrunner.com Mon Oct 2 13:33:47 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 2 Oct 2017 13:33:47 -0400 Subject: mergZXing alternative In-Reply-To: <20171002170345.Horde.7XYxMPrzmsjiyE-zaSPI2zg@ua850258.serversignin.com> References: <20171002170345.Horde.7XYxMPrzmsjiyE-zaSPI2zg@ua850258.serversignin.com> Message-ID: Which platform are you going for? mergav is for ios and osx. You can't use "search for", you have to include it manually. it works fine for me in my apps. On Mon, Oct 2, 2017 at 1:03 PM, Andrew Bell via use-livecode < use-livecode at lists.runrev.com> wrote: > I just got around to building a new version of an existing project and > discovered my barcode scanner didn't work. Quick check of the release notes > for 8.2.0dp1 stated that mergZXing was being deprecated and to use > mergAVCam instead. > > I can't find mergAVCam (assume mergAV is the inclusion, but this wasn't > selected by "Search for required inclusions...") or any syntax that will > support barcodes now. Tried 8.2.0dp1 and 9.0.0dp7. I'm also using the > Spinner widget so I get a "can't find module" error when trying with > 8.1.7.rc2. > > Can anyone provide a basic code sample for how this should work now? > > --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 > -- 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 brahma at hindu.org Mon Oct 2 22:37:32 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 3 Oct 2017 02:37:32 +0000 Subject: Segmented Control Bugs? Message-ID: Anyone experiencing any anomalies with the segmented control Scenario Added to stack in 8.1.7 (or earlier) open stacks in 9.0.0 dp9 save open in 8.2.0dp1 control is blank. shut down LC open again in 9.0.0dp9 it appears again, but has a bug.. it seems to be catching a mouse down message when the stack opens.. .even though none is issued. none of our code is firing any mouse event on start up of the stack but the widget acts as though it received a clicked on one of the tabs. Seems to be some major differences in this control between 8 and 9 is it even safe to use? BR From merakosp at gmail.com Tue Oct 3 05:58:20 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 3 Oct 2017 10:58:20 +0100 Subject: Segmented Control Bugs? In-Reply-To: References: Message-ID: Hi BR, The main difference between the segmented control between LC 8.x and 9.0 is that: - In LC 8.x you can select **exactly** one segment - In LC 9 this has changed (--> enhanced) and you can select 0 or more segments See the properties "toggleHilites" and "multipleHilites" in LC 9.0 DP-9. Note that there is currently a bug in LC 9.0 DP-9, which will be fixed in the next release: http://quality.livecode.com/show_bug.cgi?id=20461 Best regards, Panos -- On Tue, Oct 3, 2017 at 3:37 AM, Sannyasin Brahmanathaswami via use-livecode wrote: > Anyone experiencing any anomalies with the segmented control > > Scenario > > Added to stack in 8.1.7 (or earlier) > open stacks in 9.0.0 dp9 save > open in 8.2.0dp1 control is blank. > > shut down LC > > open again in 9.0.0dp9 it appears again, but has a bug.. it seems to be > catching a mouse down message when the stack opens.. .even though none is > issued. none of our code is firing any mouse event on start up of the stack > but the widget acts as though it received a clicked on one of the tabs. > > Seems to be some major differences in this control between 8 and 9 > > is it even safe to use? > > 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 iphonelagi at gmail.com Tue Oct 3 10:31:15 2017 From: iphonelagi at gmail.com (Lagi Pittas) Date: Tue, 3 Oct 2017 15:31:15 +0100 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: <6CD43159-C93F-4706-9EA6-694BFF2BD594@iotecdigital.com> References: <41154cf2-67e9-7952-ea0c-33d6018f6389@sonic.net> <6CD43159-C93F-4706-9EA6-694BFF2BD594@iotecdigital.com> Message-ID: Hi Bob That's why I said the Function part would be good - basically a LIVE interactive debugger - the coding to do all the rest in a REAL programming language rather than an animation studio or a testbed is way out of my league - But given time and money anything is possible .... Except ...... And since you brought it up what are are you saying? We have gone to the Moon or Not, or that programming and engineering is too complex to do create the particular software system that Bret Victor envisages? Anyway I'm with Richard Feynman so "I don't care what other people think" I'm 99.999999% certain we didn't go yo the moon- you can only be 100% sure that you exist. I only came to this conclusion in the 90's even though the evidence was overwhelming then, but it keeps piling up. This is coming from someone who remembers EXACTLY where he was and what he was eating and drinking when Neil Armstrong was getting his lines wrong. It was Milk and a Blue Riband biscuit. It took me a LOOOooong time to acknowledge I had been lied to but sometimes you have to admit it. I say the above knowing many will call me an idiot and such but the people on this board are "Smarter than the average Bear" and would hope that they assume that when I say this, it is not by looking at one side, but looking at all sides even giving the benefit of the doubt in some cases. But giving the benefit of the doubt on more than 10 or 15 anomalies stretches Cognitive Dissonance to the limit. If this is not the place for a discussion how about we take it to the off topic area in the forum - if nothing else it might bring in the "crazies" to find Livecode when searching for info about Apollo;-) - but i would prefer discourse - I am still open minded. -- .0000001% Lagi On 2 October 2017 at 15:51, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > This article is exactly why I contend that man can never travel to other > planets never mind solar systems, and colonize them. The complexity of > something so vast as to be able to get us there would be failing all the > time, and we would have to be able to anticipate those failures, and take > repair parts several times more tham we predict we might need "just to be > safe". Then you get out there, some code that runs the life support starts > shutting it down, and the guy who wrote the code is back on planet earth > too far away to communicate with. No one on earth would ever know how they > all died. > > No my friends and fellow man, we are made of the earth, for the earth. > > Bob S > > > > On Sep 30, 2017, at 10:31 , Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Long read, but worth the effort: > > > > https://www.theatlantic.com/technology/archive/2017/09/ > saving-the-world-from-code/540393/ > > > > -- > > 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 andrew at midwestcoastmedia.com Tue Oct 3 10:32:03 2017 From: andrew at midwestcoastmedia.com (andrew at midwestcoastmedia.com) Date: Tue, 03 Oct 2017 14:32:03 +0000 Subject: mergZXing alternative In-Reply-To: Message-ID: <20171003143203.Horde.W3h5DcY_6GnJC-9Nr08ZZHj@ua850258.serversignin.com> I mistakenly said I couldn't get this to work in 9.0.0dp7 (which it does), I meant to say it did NOT work in 9.0.0dp9 which is on par with 8.2.0.dp1. I know Android doesn't have the same support for barcode reading as iOS, so I'd be fine just getting iPad functionality with this. I manually added mergAV (still don't understand why this wouldn't be found automatically), but the cards in my stack are unresponsive trying to trigger mergZXingControlCreate which I'm sure the external knows nothing about (it's syntax doesn't have anything about barcodes @ http://mergext.com/home/mergav/ ). Guessing that I'm not calling the correct functions at this point. The LC release notes say this was being deprecated because the ZXing project wasn't supported on iOS, but it seems to function fine on my iOS 11 test device (when built from LC 9.0.0dp8). It looks like the project is being ported over to Obj-C using a slightly different name @ https://github.com/TheLevelUp/ZXingObjC which discusses Xcode 9 and has commits as recent as a week ago. If the library needs to be pulled from LC, then it seems like there should be a little more explanation as to how to proceed with the workaround than the release notes mention. --Andrew Bell > Which platform are you going for? mergav is for ios and osx. You can't > use "search for", you have to include it manually. > it works fine for me in my apps. > > On Mon, Oct 2, 2017 at 1:03 PM, Andrew Bell via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I just got around to building a new version of an existing project and >> discovered my barcode scanner didn't work. Quick check of the release notes >> for 8.2.0dp1 stated that mergZXing was being deprecated and to use >> mergAVCam instead. >> >> I can't find mergAVCam (assume mergAV is the inclusion, but this wasn't >> selected by "Search for required inclusions...") or any syntax that will >> support barcodes now. Tried 8.2.0dp1 and 9.0.0dp7. I'm also using the >> Spinner widget so I get a "can't find module" error when trying with >> 8.1.7.rc2. >> >> Can anyone provide a basic code sample for how this should work now? >> >> --Andrew Bell >> >> From MikeKerner at roadrunner.com Tue Oct 3 10:47:06 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 3 Oct 2017 10:47:06 -0400 Subject: mergZXing alternative In-Reply-To: <20171003143203.Horde.W3h5DcY_6GnJC-9Nr08ZZHj@ua850258.serversignin.com> References: <20171003143203.Horde.W3h5DcY_6GnJC-9Nr08ZZHj@ua850258.serversignin.com> Message-ID: There are barcode calls in mergav. There is also a sample stack that demonstrates how to use it for scanning barcodes. All the MergAV calls are documented in the dictionary. I believe the other reason why zx was deprecated was because av is faster and more accurate - at least it would appear to be for me. On Tue, Oct 3, 2017 at 10:32 AM, Andrew Bell via use-livecode < use-livecode at lists.runrev.com> wrote: > I mistakenly said I couldn't get this to work in 9.0.0dp7 (which it does), > I meant to say it did NOT work in 9.0.0dp9 which is on par with 8.2.0.dp1. > > I know Android doesn't have the same support for barcode reading as iOS, > so I'd be fine just getting iPad functionality with this. I manually added > mergAV (still don't understand why this wouldn't be found automatically), > but the cards in my stack are unresponsive trying to trigger > mergZXingControlCreate which I'm sure the external knows nothing about > (it's syntax doesn't have anything about barcodes @ > http://mergext.com/home/mergav/ ). Guessing that I'm not calling the > correct functions at this point. > > The LC release notes say this was being deprecated because the ZXing > project wasn't supported on iOS, but it seems to function fine on my iOS 11 > test device (when built from LC 9.0.0dp8). It looks like the project is > being ported over to Obj-C using a slightly different name @ > https://github.com/TheLevelUp/ZXingObjC which discusses Xcode 9 and has > commits as recent as a week ago. > > If the library needs to be pulled from LC, then it seems like there should > be a little more explanation as to how to proceed with the workaround than > the release notes mention. > > --Andrew Bell > > > > Which platform are you going for? mergav is for ios and osx. You can't >> use "search for", you have to include it manually. >> it works fine for me in my apps. >> >> On Mon, Oct 2, 2017 at 1:03 PM, Andrew Bell via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> I just got around to building a new version of an existing project and >>> discovered my barcode scanner didn't work. Quick check of the release >>> notes >>> for 8.2.0dp1 stated that mergZXing was being deprecated and to use >>> mergAVCam instead. >>> >>> I can't find mergAVCam (assume mergAV is the inclusion, but this wasn't >>> selected by "Search for required inclusions...") or any syntax that will >>> support barcodes now. Tried 8.2.0dp1 and 9.0.0dp7. I'm also using the >>> Spinner widget so I get a "can't find module" error when trying with >>> 8.1.7.rc2. >>> >>> Can anyone provide a basic code sample for how this should work now? >>> >>> --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 > -- 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 brahma at hindu.org Tue Oct 3 11:00:15 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 3 Oct 2017 15:00:15 +0000 Subject: Segmented Control Bugs? In-Reply-To: References: Message-ID: <7E734610-AD3C-4367-AA4E-7A105BFF186A@hindu.org> Hmm the bug I have is a bit different? appears in both 8 and 9 I "deprecated" the control by moving it to -2000,-2000 and used the "old-fashioned way" of three buttons in group/get the target and go. save? went off for some other work.. came back Then every time the stack opens, the script of the widget at -2000,-2000 would receive what I thought was a custom message (because we were sending it on mouseup)_ on hiliteChanged put the hilitedItemNames of me into tName put tName into sPreviousSelection answer tName with "OK" DoSomething end hiliteChanged on doSomething answer "command issued" with "OK" end doSomething Though obvious in function, "hiliteChanged" is not a documented property of the segmented control so I copied the three segment control to a brand new stack, three tabs/names Favorites | Activity | Date reduced the longer script to the above very simple test. saved and close the stack? now I reopen the stack and the answer dialog is trigged on open stack.. the control is "hearing" the openstack message as a change of hilite. the tName was empty. OK so I select "Activity" which then become hilited. save the stack, close and reopen? bingo it fires the dialog with Activity OK and in our larger framework? it was "getting worse" as somehow this segmented control widget on stack A was still receiving that message even when stack B was opened, if stack A with the widget on it's top card was still open "behind" Stack B? and I clicked on a widget/icon in stack B that had it's hiliite set to toggle (I usually turn them off) the script editor would fire with an error in the script of the widget appearing, "like out of nowhere" (because its stack is behind the scenes) with a break at "doSomething" ?can't find the command "doSomething" almost as if the widget had become some global or backscript in the brain of the IDE. I don't have time for more forensics. Lost nearly literally 6 hours on this? so I have just removed it from the stack. Old method may not look as good across platforms, but it works. moving on? On 10/2/17, 11:58 PM, "use-livecode on behalf of panagiotis merakos via use-livecode" wrote: Hi BR, The main difference between the segmented control between LC 8.x and 9.0 is that: - In LC 8.x you can select **exactly** one segment - In LC 9 this has changed (--> enhanced) and you can select 0 or more segments See the properties "toggleHilites" and "multipleHilites" in LC 9.0 DP-9. Note that there is currently a bug in LC 9.0 DP-9, which will be fixed in the next release: http://quality.livecode.com/show_bug.cgi?id=20461 Best regards, Panos -- From capellan2000 at gmail.com Tue Oct 3 11:36:48 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 3 Oct 2017 11:36:48 -0400 Subject: not really OT: The Coming Software Apocalypse Message-ID: Hi All, Lagi Pittas wrote: > That's why I said the Function part would be good - > basically a LIVE interactive debugger - the coding > to do all the rest in a REAL programming language > rather than an animation studio or a testbed is way > out of my league - But given time and money anything > is possible... Does exists a programming tool that provides the developer with a complete (but optional) battery of tests that run while opening the application or on user request after the application is opened? For many years, we have seen in this mail list (and previous mail list) how developers are completely baffled by applications that run fine in most computers, but fail consistently in a very few machines. Check the archives. You will find many instances of this scenario. How it is that possible at all? In theory, a program that do not find the resources needed should NOT run at all, but for some reason, programs produced in this platform try their best to work in any computer, even without confirming that it could run. Should we ask that LiveCode refuse to run if any machine does not comply at 100% with requisites? No... I think that we need better error reporting capabilities and a complete (but optional) battery of tests to run on devices that do not run our programs as expected. Could I suggest a name for this battery test? The name could be something like: "common ground" In the 90's, Common Ground was a digital paper pioneer company that competed (and lose) against Adobe Acrobat. Still today, you could find common ground digital papers on the web: http://www2.ucsc.edu/mlrg/mlrgtools.html (Windows and PPC Mac digital paper readers) http://www2.ucsc.edu/mlrg/proc3abstracts.html (Common Ground digital papers) Have a nice week! Al From merakosp at gmail.com Tue Oct 3 11:53:13 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 3 Oct 2017 16:53:13 +0100 Subject: Segmented Control Bugs? In-Reply-To: <7E734610-AD3C-4367-AA4E-7A105BFF186A@hindu.org> References: <7E734610-AD3C-4367-AA4E-7A105BFF186A@hindu.org> Message-ID: Hi BR, >>>>>>>Though obvious in function, "hiliteChanged" is not a documented property of the segmented control It is documented. In the dictionary, select "Segmented Control" in the API dropdown, and you'll see all the properties/messages related to this widget. Best, Panos -- On Tue, Oct 3, 2017 at 4:00 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > Hmm the bug I have is a bit different? appears in both 8 and 9 > > I "deprecated" the control by moving it to -2000,-2000 and used the > "old-fashioned way" of three buttons in group/get the target and go. save? > went off for some other work.. came back > > Then every time the stack opens, the script of the widget at -2000,-2000 > would receive what I thought was a custom message (because we were sending > it on mouseup)_ > > on hiliteChanged > put the hilitedItemNames of me into tName > put tName into sPreviousSelection > answer tName with "OK" > DoSomething > end hiliteChanged > > on doSomething > answer "command issued" with "OK" > end doSomething > > Though obvious in function, "hiliteChanged" is not a documented property > of the segmented control > > > so I copied the three segment control to a brand new stack, > > three tabs/names > > Favorites | Activity | Date > > reduced the longer script to the above very simple test. saved and close > the stack? > > now I reopen the stack and the answer dialog is trigged on open stack.. > the control is "hearing" the openstack message as a change of hilite. the > tName was empty. OK so I select "Activity" which then become hilited. save > the stack, close and reopen? bingo it fires the dialog with > > Activity > OK > > and in our larger framework? it was "getting worse" as somehow this > segmented control widget on stack A was still receiving that message even > when stack B was opened, if stack A with the widget on it's top card was > still open "behind" Stack B? and I clicked on a widget/icon in stack B > that had it's hiliite set to toggle (I usually turn them off) the script > editor would fire with an error in the script of the widget appearing, > "like out of nowhere" (because its stack is behind the scenes) with a break > at "doSomething" ?can't find the command "doSomething" > > almost as if the widget had become some global or backscript in the brain > of the IDE. > > I don't have time for more forensics. Lost nearly literally 6 hours on > this? so I have just removed it from the stack. Old method may not look as > good across platforms, but it works. > > moving on? > > > > > On 10/2/17, 11:58 PM, "use-livecode on behalf of panagiotis merakos via > use-livecode" use-livecode at lists.runrev.com> wrote: > > Hi BR, > > The main difference between the segmented control between LC 8.x and > 9.0 is > that: > > - In LC 8.x you can select **exactly** one segment > - In LC 9 this has changed (--> enhanced) and you can select 0 or more > segments > > See the properties "toggleHilites" and "multipleHilites" in LC 9.0 > DP-9. > > Note that there is currently a bug in LC 9.0 DP-9, which will be fixed > in > the next release: > > http://quality.livecode.com/show_bug.cgi?id=20461 > > Best regards, > 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 ambassador at fourthworld.com Tue Oct 3 13:00:52 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 3 Oct 2017 10:00:52 -0700 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: References: Message-ID: <13579dcf-dc12-5d4b-85e4-6440270cb424@fourthworld.com> Alejandro Tejada wrote: > Does exists a programming tool that provides the developer > with a complete (but optional) battery of tests that run while > opening the application or on user request after the application > is opened? I've found logging useful. Turn on the messageMessages and write all messageHandled messages to a file with the executionContexts - verbose, but when information is lacking better to have too much than too little. -- 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 benr_mc at cogapp.com Tue Oct 3 14:25:21 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 3 Oct 2017 19:25:21 +0100 Subject: Using shell on Windows Message-ID: <42d88412-b27d-9e01-c97c-2627b87804f4@cogapp.com> Attempting to debug an ugly memory problem on a remote machine, I've installed pslist.exe, one of the SysInternals tools, and want my LiveCode script to invoke it via "shell" at various intervals to get some data about memory usage. Initially I just dropped pslist.exe into the same folder as my Windows standalone. But the call to shell("pslist -m myapp") returned 'pslist' is not recognized as an internal or external command, operable program or batch file. I verified that in the DOS terminal window, this was the same result as attempting to invoke pslist from any other directory. So I moved it into a directory that was already in the PATH. Now I could invoke it succesfully from any directory, in the DOS window. But when my standalone ran, the result was the same. So then I got desperate, and coded my LiveCode app to use the full path to the exe, but I just got 'C:\Windows\System32\pslist.exe' is not recognized as an internal or external command, operable program or batch file. I hope I am missing a simple thing - how can I invoke a windows exe in this way through the shell command? TIA, Ben From brahma at hindu.org Tue Oct 3 14:43:29 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 3 Oct 2017 18:43:29 +0000 Subject: Segmented Control Bugs? In-Reply-To: References: <7E734610-AD3C-4367-AA4E-7A105BFF186A@hindu.org> Message-ID: <80744AED-8DA5-4505-8F0C-CDE66E181D62@hindu.org> I may be blind today? been tracing code for three days? see all props listed in the API guide https://www.dropbox.com/s/tpo38y5q491w0hr/seg-control-props.jpeg?dl=0 "hiliteChanged" does not appear among them. On 10/3/17, 5:53 AM, "use-livecode on behalf of panagiotis merakos via use-livecode" wrote: It is documented. In the dictionary, select "Segmented Control" in the API dropdown, and you'll see all the properties/messages related to this widget. From bobsneidar at iotecdigital.com Tue Oct 3 14:59:56 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 Oct 2017 18:59:56 +0000 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: References: <41154cf2-67e9-7952-ea0c-33d6018f6389@sonic.net> <6CD43159-C93F-4706-9EA6-694BFF2BD594@iotecdigital.com> Message-ID: <87E185B7-E121-4DEC-9553-2853C194A41E@iotecdigital.com> No, I am sure we put men on the moon. But we didn't stay there and there are no plans to actually colonize it. And the resources just to do that were "astronomical" (pardon the pun). There was of cource some redundancy, but some things cannot be repaired, as we learned with Apollo 13. Oh we patched it up enough to get them back, but they almost didn't make it even then, and all they had to do really was slingshot around the moon and get back. Imagine now you are hurtling towards your next stop, Mars, and something serious goes bad. How do you repair it? If you can't, how do you turn around? You cannot exactly make a right turn at the speeds you are going, and there are no planetary bodies to slingshot around. You have to burn an inordinate amount of fuel to stop, then turn around, then burn an extraordinary amount of fuel to get back, and the Earth isn't standing still during all this. Did you bring the fuel to do that? The hardware alone for that kind of space travel would make the moon launch look like a paper airplane. And the software for such a trip had better damn well be bug proof, because dead programmers don't write good code. Bob S > On Oct 3, 2017, at 07:31 , Lagi Pittas via use-livecode wrote: > > And since you brought it up what are are you saying? We have gone to the > Moon or Not, or that programming and engineering is too complex to do > create the particular software system that Bret Victor envisages? From bobsneidar at iotecdigital.com Tue Oct 3 15:06:53 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 Oct 2017 19:06:53 +0000 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: References: <41154cf2-67e9-7952-ea0c-33d6018f6389@sonic.net> <6CD43159-C93F-4706-9EA6-694BFF2BD594@iotecdigital.com> Message-ID: <22296B03-DD7D-458F-8EB0-D5A52ADDA8DD@iotecdigital.com> Well then the REAL miracle to the moon launch is how Nasa either deceived the thousands of people who worked on the project, and keeps them deceived to this day, or else were able to keep all those thousands of people from talking or writing a book. You see, conspiracies must by nature be extremely limited in participation and scope, otherwise it becomes compromised pretty quickly. Even the CIA doesn't expect to keep secrets forever. But if you don't think about all the individual people that have to spend their entire lives keeping a lie secret, and instead imagine this single minded boogie man called "the government" then you don't have to be bothered about that glaring miscalculation. Believing that all those workers were "in on it" or else massively deceived during the whole process is so much more incredibly fantastic, that I would really rather believe that magical unicorns crapped the world into existence. Bob S > On Oct 3, 2017, at 07:31 , Lagi Pittas via use-livecode wrote: > > Anyway I'm with Richard Feynman so "I don't care what other people think" > I'm 99.999999% certain we didn't go yo the moon- you can only be 100% sure > that you exist. I only came to this conclusion in the 90's even though the > evidence was overwhelming then, but it keeps piling up. This is coming from > someone who remembers EXACTLY where he was and what he was eating and > drinking when Neil Armstrong was getting his lines wrong. It was Milk and > a Blue Riband biscuit. It took me a LOOOooong time to acknowledge I had > been lied to but sometimes you have to admit it. From ambassador at fourthworld.com Tue Oct 3 15:20:11 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 3 Oct 2017 12:20:11 -0700 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: <22296B03-DD7D-458F-8EB0-D5A52ADDA8DD@iotecdigital.com> References: <22296B03-DD7D-458F-8EB0-D5A52ADDA8DD@iotecdigital.com> Message-ID: Bob Sneidar wrote: > Well then the REAL miracle to the moon launch is how Nasa either > deceived the thousands of people who worked on the project, and keeps > them deceived to this day, or else were able to keep all those > thousands of people from talking or writing a book. Arithmetically unlikely: https://phys.org/news/2016-01-equation-large-scale-conspiracies-quickly-reveal.html -- 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 Tue Oct 3 15:24:27 2017 From: waprothero at gmail.com (William Prothero) Date: Tue, 3 Oct 2017 12:24:27 -0700 Subject: Scrollbar control and auto complete confusion In-Reply-To: <42d88412-b27d-9e01-c97c-2627b87804f4@cogapp.com> References: <42d88412-b27d-9e01-c97c-2627b87804f4@cogapp.com> Message-ID: Folks: In livecode 8.1.7 (RC2), I drag a scrollbar to the window of a new stack. I the scrollbar script, I put the following code: on dragLeave answer ?here" end dragLeave The ?dragLeave? message is shown in the autocomplete list. There are numerous other entries in the autocomplete list in the IDE editor, that look like messages that are sent for various operations. I get nothing when I move the scroll with the mouse. Same behavior for ?slider? and ?scrollbar? controls in 9.0.0 (DP9). What?s up? Is this a bug, confusion on my part? Seems non-intuitive. It seems to me that there are a LOT of entries in the auto-complete list that do nothing relevant to the control. If I put the handler in the stack script, I also get nothing. Best, Bill P William A. Prothero http://earthlearningsolution.org/ From rdimola at evergreeninfo.net Tue Oct 3 15:24:44 2017 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 3 Oct 2017 15:24:44 -0400 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: References: Message-ID: <007301d33c7d$464ee330$d2eca990$@net> >For many years, we have seen in this mail list (and previous mail list) how developers are completely baffled by applications that run fine in most computers, but fail >consistently in a very few machines. Check the archives. You will find many instances of this scenario. How it is that possible at all? This is possible because all current consumer OSs have the same problems outlined in the article. I don't usually pontificate on this list but... As humans we constantly overreach without thinking. As Jeff Goldblum said in Jurassic Park said "Your scientists were so preoccupied with whether they could they didn't stop to think if they should." This is the story with all consumer OSs. Just because these rudimentary OSs in the 90s could somewhat be a tool for the average Joe no one stopped to think if they should. We have allowed PC OSs/mobile devices and most pointedly the Internet to become the lynch-pins of modern society, also because of the "Jeff Goldblum" theorem. Look at Puerto Rico if want proof. Just because they could build cell towers in PR... As Claude Rains said in Casablanca "I'm shocked, shocked to find that gambling in going on in here" A cat 4 hit PR in 1932 and when I heard that 1,360 out of 1,600 of PR's Cells towers were either damaged or blown over by cat 4 Irma and folks were panicking with no internet/access to credit card processing and the FakeBook I said to myself "I'm shocked that a cat 4 hit PR". I feel sorry for the human suffering and the government let this happen but I'm not surprised. Wait till a CME(Carrington event 1859) or EMP(rocket man) wipes out the electrical grid and internet for a billion or so people for a year... I'll be sitting with my gravity fed water well water and rifle across my lap saying "I'm shocked that...." Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From brian at milby7.com Tue Oct 3 15:35:21 2017 From: brian at milby7.com (Brian Milby) Date: Tue, 03 Oct 2017 19:35:21 +0000 Subject: Segmented Control Bugs? In-Reply-To: <80744AED-8DA5-4505-8F0C-CDE66E181D62@hindu.org> References: <7E734610-AD3C-4367-AA4E-7A105BFF186A@hindu.org> <80744AED-8DA5-4505-8F0C-CDE66E181D62@hindu.org> Message-ID: Look at the description for the widget. Appears there isn?t a separate dictionary entry. On Tue, Oct 3, 2017 at 1:43 PM Sannyasin Brahmanathaswami via use-livecode < use-livecode at lists.runrev.com> wrote: > I may be blind today? been tracing code for three days? > > see all props listed in the API guide > > https://www.dropbox.com/s/tpo38y5q491w0hr/seg-control-props.jpeg?dl=0 > > "hiliteChanged" > > does not appear among them. > > > > > > On 10/3/17, 5:53 AM, "use-livecode on behalf of panagiotis merakos via > use-livecode" use-livecode at lists.runrev.com> wrote: > > It is documented. In the dictionary, select "Segmented Control" in the > API > dropdown, and you'll see all the properties/messages related to this > widget. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Oct 3 15:38:20 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 3 Oct 2017 20:38:20 +0100 Subject: Segmented Control Bugs? In-Reply-To: <80744AED-8DA5-4505-8F0C-CDE66E181D62@hindu.org> References: <7E734610-AD3C-4367-AA4E-7A105BFF186A@hindu.org> <80744AED-8DA5-4505-8F0C-CDE66E181D62@hindu.org> Message-ID: Hi BR, Sorry, I should have been more clear. The "hiliteChanged" is a **message** related to the segmented control. In your screenshot, you have applied the "property" filter, thus this message is not shown. Remove the "property" filter and this message will appear. Best, Panos -- On Tue, Oct 3, 2017 at 7:43 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > I may be blind today? been tracing code for three days? > > see all props listed in the API guide > > https://www.dropbox.com/s/tpo38y5q491w0hr/seg-control-props.jpeg?dl=0 > > "hiliteChanged" > > does not appear among them. > > > > > > On 10/3/17, 5:53 AM, "use-livecode on behalf of panagiotis merakos via > use-livecode" use-livecode at lists.runrev.com> wrote: > > It is documented. In the dictionary, select "Segmented Control" in the > API > dropdown, and you'll see all the properties/messages related to this > widget. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 3 16:14:59 2017 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Tue, 03 Oct 2017 20:14:59 +0000 Subject: Scrollbar control and auto complete confusion In-Reply-To: References: <42d88412-b27d-9e01-c97c-2627b87804f4@cogapp.com> Message-ID: Hi Bill, probably best in this instance to refer to the dragLeave entry in the dictionary - "Sent when the mouse pointer moves out of an object during a drag and drop." So, this is relevant to all controls including the scrollbar, but perhaps not in the way you would think immediately. PS, you can use the documentation tab in the script editor to display brief info about the livecode syntax token at the current text entry point, or right click on a token and choose 'Find in docs' to see the dictionary entry. On Tue, Oct 3, 2017 at 8:24 PM William Prothero via use-livecode < use-livecode at lists.runrev.com> wrote: > Folks: > In livecode 8.1.7 (RC2), I drag a scrollbar to the window of a new stack. > I the scrollbar script, I put the following code: > > on dragLeave > > answer ?here" > > end dragLeave > > The ?dragLeave? message is shown in the autocomplete list. There are > numerous other entries in the autocomplete list in the IDE editor, that > look like messages that are sent for various operations. > > I get nothing when I move the scroll with the mouse. Same behavior for > ?slider? and ?scrollbar? controls in 9.0.0 (DP9). > > What?s up? Is this a bug, confusion on my part? Seems non-intuitive. It > seems to me that there are a LOT of entries in the auto-complete list that > do nothing relevant to the control. If I put the handler in the stack > script, I also get nothing. > > Best, > Bill P > > > > William A. Prothero > http://earthlearningsolution.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 Tue Oct 3 16:17:27 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 Oct 2017 20:17:27 +0000 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: References: <22296B03-DD7D-458F-8EB0-D5A52ADDA8DD@iotecdigital.com> Message-ID: Nice article, but his example of the Snowden revelations actually proves my point. Bob S > On Oct 3, 2017, at 12:20 , Richard Gaskin via use-livecode wrote: > > Bob Sneidar wrote: > > > Well then the REAL miracle to the moon launch is how Nasa either > > deceived the thousands of people who worked on the project, and keeps > > them deceived to this day, or else were able to keep all those > > thousands of people from talking or writing a book. > > Arithmetically unlikely: > > https://phys.org/news/2016-01-equation-large-scale-conspiracies-quickly-reveal.html > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web From ali.lloyd at livecode.com Tue Oct 3 16:17:51 2017 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Tue, 03 Oct 2017 20:17:51 +0000 Subject: Segmented Control Bugs? In-Reply-To: References: <7E734610-AD3C-4367-AA4E-7A105BFF186A@hindu.org> <80744AED-8DA5-4505-8F0C-CDE66E181D62@hindu.org> Message-ID: Oh, looks like the docs for the segmented control have become mangled somehow... perhaps a mis-merge. On Tue, Oct 3, 2017 at 8:38 PM panagiotis merakos via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi BR, > > Sorry, I should have been more clear. The "hiliteChanged" is a **message** > related to the segmented control. In your screenshot, you have applied the > "property" filter, thus this message is not shown. Remove the "property" > filter and this message will appear. > > Best, > Panos > -- > > On Tue, Oct 3, 2017 at 7:43 PM, Sannyasin Brahmanathaswami via use-livecode > wrote: > > > I may be blind today? been tracing code for three days? > > > > see all props listed in the API guide > > > > https://www.dropbox.com/s/tpo38y5q491w0hr/seg-control-props.jpeg?dl=0 > > > > "hiliteChanged" > > > > does not appear among them. > > > > > > > > > > > > On 10/3/17, 5:53 AM, "use-livecode on behalf of panagiotis merakos via > > use-livecode" > use-livecode at lists.runrev.com> wrote: > > > > It is documented. In the dictionary, select "Segmented Control" in > the > > API > > dropdown, and you'll see all the properties/messages related to this > > widget. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 3 16:34:03 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 3 Oct 2017 13:34:03 -0700 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: References: Message-ID: <79d735c2-ddd6-dcf9-1fcf-233f6bdcf4bf@fourthworld.com> Yes, it very much supports your point. What tickled me about it was his attempt to quantify the challenge of keeping a large-scale conspiracy under wraps. Personally, I wouldn't have chosen the Snowden story as the baseline; too much still unknown and relatively little corroborated. Iran-Contra seems a better case, given the wealth of documentation complete enough to have led to multiple convictions. Bringing this back OT. maybe there's an app that needs to be made: Enter the date the conspiracy is said to have taken place, an estimate of the maximum number of people likely to know about it, and then it would crunch the numbers to estimate the likelihood that the described event actually managed to remain a secret all this time. :) -- Richard Gaskin Bob Sneidar wrote: > Nice article, but his example of the Snowden revelations actually > proves my point. > > Bob S > > >> On Oct 3, 2017, at 12:20 , Richard Gaskin wrote: >> >> Bob Sneidar wrote: >> >> > Well then the REAL miracle to the moon launch is how Nasa either >> > deceived the thousands of people who worked on the project, and >> > keeps them deceived to this day, or else were able to keep all >> > those thousands of people from talking or writing a book. >> >> Arithmetically unlikely: >> >> https://phys.org/news/2016-01-equation-large-scale-conspiracies-quickly-reveal.html >> >> -- From brian at milby7.com Tue Oct 3 16:38:38 2017 From: brian at milby7.com (Brian Milby) Date: Tue, 03 Oct 2017 20:38:38 +0000 Subject: Segmented Control Bugs? In-Reply-To: References: <7E734610-AD3C-4367-AA4E-7A105BFF186A@hindu.org> <80744AED-8DA5-4505-8F0C-CDE66E181D62@hindu.org> Message-ID: That?s what I was just looking at. Develop branch impacted, 8.1 & 8.2 are good. On Tue, Oct 3, 2017 at 3:18 PM Ali Lloyd via use-livecode < use-livecode at lists.runrev.com> wrote: > Oh, looks like the docs for the segmented control have become mangled > somehow... perhaps a mis-merge. > > On Tue, Oct 3, 2017 at 8:38 PM panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Hi BR, > > > > Sorry, I should have been more clear. The "hiliteChanged" is a > **message** > > related to the segmented control. In your screenshot, you have applied > the > > "property" filter, thus this message is not shown. Remove the "property" > > filter and this message will appear. > > > > Best, > > Panos > > -- > > > > On Tue, Oct 3, 2017 at 7:43 PM, Sannyasin Brahmanathaswami via > use-livecode > > wrote: > > > > > I may be blind today? been tracing code for three days? > > > > > > see all props listed in the API guide > > > > > > https://www.dropbox.com/s/tpo38y5q491w0hr/seg-control-props.jpeg?dl=0 > > > > > > "hiliteChanged" > > > > > > does not appear among them. > > > > > > > > > > > > > > > > > > On 10/3/17, 5:53 AM, "use-livecode on behalf of panagiotis merakos via > > > use-livecode" > > use-livecode at lists.runrev.com> wrote: > > > > > > It is documented. In the dictionary, select "Segmented Control" in > > the > > > API > > > dropdown, and you'll see all the properties/messages related to > this > > > widget. > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 3 16:48:46 2017 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Tue, 03 Oct 2017 20:48:46 +0000 Subject: Segmented Control Bugs? In-Reply-To: References: <7E734610-AD3C-4367-AA4E-7A105BFF186A@hindu.org> <80744AED-8DA5-4505-8F0C-CDE66E181D62@hindu.org> Message-ID: Appears to be here: https://github.com/livecode/livecode/commit/4a25b3be357bcb8c92523d6f8cc4f9ea5d94836e#diff-48360427573246fc3b20d170e09eb8b1 On Tue, Oct 3, 2017 at 9:38 PM Brian Milby wrote: > That?s what I was just looking at. Develop branch impacted, 8.1 & 8.2 are > good. > On Tue, Oct 3, 2017 at 3:18 PM Ali Lloyd via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Oh, looks like the docs for the segmented control have become mangled >> somehow... perhaps a mis-merge. >> >> On Tue, Oct 3, 2017 at 8:38 PM panagiotis merakos via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> > Hi BR, >> > >> > Sorry, I should have been more clear. The "hiliteChanged" is a >> **message** >> > related to the segmented control. In your screenshot, you have applied >> the >> > "property" filter, thus this message is not shown. Remove the "property" >> > filter and this message will appear. >> > >> > Best, >> > Panos >> > -- >> > >> > On Tue, Oct 3, 2017 at 7:43 PM, Sannyasin Brahmanathaswami via >> use-livecode >> > wrote: >> > >> > > I may be blind today? been tracing code for three days? >> > > >> > > see all props listed in the API guide >> > > >> > > https://www.dropbox.com/s/tpo38y5q491w0hr/seg-control-props.jpeg?dl=0 >> > > >> > > "hiliteChanged" >> > > >> > > does not appear among them. >> > > >> > > >> > > >> > > >> > > >> > > On 10/3/17, 5:53 AM, "use-livecode on behalf of panagiotis merakos via >> > > use-livecode" > > > use-livecode at lists.runrev.com> wrote: >> > > >> > > It is documented. In the dictionary, select "Segmented Control" in >> > the >> > > API >> > > dropdown, and you'll see all the properties/messages related to >> this >> > > widget. >> > > >> > > _______________________________________________ >> > > use-livecode mailing list >> > > use-livecode at lists.runrev.com >> > > Please visit this url to subscribe, unsubscribe and manage your >> > > subscription preferences: >> > > http://lists.runrev.com/mailman/listinfo/use-livecode >> > > >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at lists.runrev.com >> > Please visit this url to subscribe, unsubscribe and manage your >> > subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > From james at thehales.id.au Tue Oct 3 16:49:19 2017 From: james at thehales.id.au (James At The Hale) Date: Wed, 4 Oct 2017 07:49:19 +1100 Subject: Segmented Control Bugs? Message-ID: Pants wrote>, > Sorry, I should have been more clear. The "hiliteChanged" is a **message** > related to the segmented control. In your screenshot, you have applied the > "property" filter, thus this message is not shown. Remove the "property" > filter and this message will appear. Actually no. It appears that the message is described for three widgets but not for the segmented control. Looking at the lcb file... https://github.com/livecode/livecode/blob/develop/extensions/widgets/segmented/segmented.lcb ...it is mentioned 12 times but not actually described in a way for the dictionary API to retrieve. Bug report anyone? James From brian at milby7.com Tue Oct 3 16:56:23 2017 From: brian at milby7.com (Brian Milby) Date: Tue, 03 Oct 2017 20:56:23 +0000 Subject: Segmented Control Bugs? In-Reply-To: References: Message-ID: I think Ali is already on it. He found the commit with the removal. On Tue, Oct 3, 2017 at 3:49 PM James At The Hale via use-livecode < use-livecode at lists.runrev.com> wrote: > Pants wrote>, > > Sorry, I should have been more clear. The "hiliteChanged" is a > **message** > > related to the segmented control. In your screenshot, you have applied > the > > "property" filter, thus this message is not shown. Remove the "property" > > filter and this message will appear. > > Actually no. It appears that the message is described for three widgets > but not for the segmented control. > Looking at the lcb file... > > https://github.com/livecode/livecode/blob/develop/extensions/widgets/segmented/segmented.lcb > ...it is mentioned 12 times but not actually described in a way for the > dictionary API to retrieve. > > Bug report anyone? > > James > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Oct 3 17:21:53 2017 From: iphonelagi at gmail.com (Lagi Pittas) Date: Tue, 3 Oct 2017 22:21:53 +0100 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: References: <22296B03-DD7D-458F-8EB0-D5A52ADDA8DD@iotecdigital.com> Message-ID: Hi, I am well up on the argument of secrecy and that article - falls down in the first few paragraphs with the vaccines - you probably haven't heard of the whistleblowers - Gus Grissom comes to mind http://info.cmsri.org/the-driven-researcher-blog/link-between-vaccines-and-african-american-boys-hidden-by-cdc-says-whistleblower http://avoiceforchoice.org/cdcwhistleblower/ But ignorance here cost lives the Moon Hoax doesn't. I'll give you the short reason why it was faked then give you a few links you have probably not seen and a few questions - i've seen all the "evidence" most of it is, we've seen the moon rock, or we saw the pictures on TV and that's it even Mythbusters used the simplest strawman argument. Here are the Astronauts in the post "landing" press conference They are so elated looking at each other to see if tghey are puttijng a foot wrong - wait for https://www.youtube.com/watch?v=-RcKLAo62Ro This is a classic 52 seconds https://www.youtube.com/watch?v=xyjppxh2-C0 Armstrong is asked if he ever saw stars from the surface of the moon... Collins answers" I dont remember seeing any". Collins was never on the surface of the moon....he was allegedly "orbiting" the moon, it was not his question to answer. It was basically done because America lost face with SputnK - the Cold war was going on - I don't doubt Kennedy believed they could do it when he made that speech. They could'nt so a "FEW" top people got together - remember this is for your country - all the astronauts were military men. You farm it out to many companies - so everythingh is on a need to know. You give $40 billion dollars - we can't do it but we can fake it for $2 billion thank you very much. Most of the workers at NASAgenuinely believed it - I sure did and I wasn't involved in helping out. Now here is the BEST 9 minute video which shows you NASA people *admitting* they don't know how they did it in 1969. https://www.youtube.com/watch?v=DpPMoIv1lxI&t=22s I have more questions and other anomalies not in here but that's for another day. This video from 3:22 onwards shows that they have also faked certain Shuttle exercises. Here the shuttle is "in space" with a man's face in view for about 5 seconds is priceless - Gerry Anderson would be proud https://www.youtube.com/watch?v=h9i8tMzxIn0&index=1&t=254s&list=FL0uijsHtSIJz8eE6CrUECIw Don't get me wrong they have sent shuttles up in Space (but never higher than 400 Miles) , but some of the stuff they say they did with it are models - tell me I'm wrong but watch the video first If you want my take on the secrecy issue I might expand - "A man convinced against his will is of the same opinion still". Regards Lagi p.s If nothing else just listen to the 13 seconds here at 5:43 https://www.youtube.com/watch?v=DpPMoIv1lxI&t=22s On 3 October 2017 at 21:17, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Nice article, but his example of the Snowden revelations actually proves > my point. > > Bob S > > > > On Oct 3, 2017, at 12:20 , Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Bob Sneidar wrote: > > > > > Well then the REAL miracle to the moon launch is how Nasa either > > > deceived the thousands of people who worked on the project, and keeps > > > them deceived to this day, or else were able to keep all those > > > thousands of people from talking or writing a book. > > > > Arithmetically unlikely: > > > > https://phys.org/news/2016-01-equation-large-scale- > conspiracies-quickly-reveal.html > > > > -- > > Richard Gaskin > > Fourth World Systems > > Software Design and Development for the Desktop, Mobile, and the Web > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 3 17:27:37 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 Oct 2017 21:27:37 +0000 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: References: <22296B03-DD7D-458F-8EB0-D5A52ADDA8DD@iotecdigital.com> Message-ID: <54B62C87-7B10-4963-B8BF-FEF46C0B62ED@iotecdigital.com> The simplest of strawman arguements. :-) Bob S > On Oct 3, 2017, at 14:21 , Lagi Pittas via use-livecode wrote: > > If you want my take on the secrecy issue I might expand - "A man convinced > against his will is of the same opinion still". > > Regards Lagi From waprothero at gmail.com Tue Oct 3 18:37:11 2017 From: waprothero at gmail.com (William Prothero) Date: Tue, 3 Oct 2017 15:37:11 -0700 Subject: Scrollbar control and auto complete confusion In-Reply-To: References: <42d88412-b27d-9e01-c97c-2627b87804f4@cogapp.com> Message-ID: <68658DF5-AF2B-41A7-9B56-F646D70E45A1@gmail.com> Ali: Interesting. I wonder, doesn?t it violate the usefulness of autocomplete if there are a bunch of items listed that don?t pertain to the control being edited? I somehow had assumed that the list was adjusted to be relevant to the particular control?s script in question. Best, Bill > On Oct 3, 2017, at 1:14 PM, Ali Lloyd via use-livecode wrote: > > Hi Bill, > probably best in this instance to refer to the dragLeave entry in the > dictionary - "Sent when the mouse pointer moves out of an object during a drag > and drop." So, this is relevant to all controls including the scrollbar, > but perhaps not in the way you would think immediately. > > PS, you can use the documentation tab in the script editor to display brief > info about the livecode syntax token at the current text entry point, or > right click on a token and choose 'Find in docs' to see the dictionary > entry. > > On Tue, Oct 3, 2017 at 8:24 PM William Prothero via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Folks: >> In livecode 8.1.7 (RC2), I drag a scrollbar to the window of a new stack. >> I the scrollbar script, I put the following code: >> >> on dragLeave >> >> answer ?here" >> >> end dragLeave >> >> The ?dragLeave? message is shown in the autocomplete list. There are >> numerous other entries in the autocomplete list in the IDE editor, that >> look like messages that are sent for various operations. >> >> I get nothing when I move the scroll with the mouse. Same behavior for >> ?slider? and ?scrollbar? controls in 9.0.0 (DP9). >> >> What?s up? Is this a bug, confusion on my part? Seems non-intuitive. It >> seems to me that there are a LOT of entries in the auto-complete list that >> do nothing relevant to the control. If I put the handler in the stack >> script, I also get nothing. >> >> Best, >> Bill P >> >> >> >> William A. Prothero >> http://earthlearningsolution.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 monte at appisle.net Tue Oct 3 18:44:00 2017 From: monte at appisle.net (Monte Goulding) Date: Wed, 4 Oct 2017 09:44:00 +1100 Subject: Scrollbar control and auto complete confusion In-Reply-To: <68658DF5-AF2B-41A7-9B56-F646D70E45A1@gmail.com> References: <42d88412-b27d-9e01-c97c-2627b87804f4@cogapp.com> <68658DF5-AF2B-41A7-9B56-F646D70E45A1@gmail.com> Message-ID: <970829A5-46C2-4EC2-BEB2-895BAFC105C1@appisle.net> > On 4 Oct 2017, at 9:37 am, William Prothero via use-livecode wrote: > > Interesting. I wonder, doesn?t it violate the usefulness of autocomplete if there are a bunch of items listed that don?t pertain to the control being edited? dragLeave can be used by a scrollbar. Note that all the completions from the docs have a summary shown so you can get a reasonable idea what they are for if you are unfamiliar with them before applying. > I somehow had assumed that the list was adjusted to be relevant to the particular control?s script in question. It is adjusted for the control type (at least the messages are). They are filtered using the associations element in the dictionary. Cheers Monte From james at thehales.id.au Tue Oct 3 18:54:09 2017 From: james at thehales.id.au (James Hale) Date: Wed, 4 Oct 2017 09:54:09 +1100 Subject: LiveCode documentation set now available for Dash compatible readers Message-ID: <7C25E898-C9EF-43D6-AA2D-8E567473A51C@thehales.id.au> There is now a documentation set (currently at LC 9 dp 9) available in the "user-contribution" category for Dash compatible readers. The set includes all the Guides and the dictionary (API) entries. Also included in this version are summary listing of all associated entries under their respective libraries. so, type in "clock", select the "com.livecode.widget.clock" entry and you will see the two properties associated with this widget. I will maintain the set against the LC 9 releases. Depending on your preferences this should auto update your copy as I update the the repository. To install: Simply go to the docset downloading section within your app's prefs and select "user-contributions" -> LiveCode (Apologies to non Mac readers, you will need to check your apps instructions.) Roll your own: For those wishing to make their own documentation set, the "Make Docset" stack (available on LiveCodeShare) has been updated to version 2.0 ? Complete reworking of extraction and formatting code. Now works directly on dictionary array ? All library and Widget entries now include a summary list of associated dictionary entries ? All Datagrid entries summarised under "Datagrid" * Removed links in descriptions where multiple entries were possible and correct one was ambiguous. Dash compatible Readers: - MacOS and iOS Dash - Windows: Velocity - Linux (and Windows): Zeal - Android: LovelyDocs Plugins: The Mac, Windows and Linux readers all support various plugins to enable you to access the documentation set from other programs. Some of those supported include: Atom, Sublime Text, BBedit, Text Wrangler, Emacs, VIM etc. Check the particular reader's web site for details. Enjoy! James From capellan2000 at gmail.com Tue Oct 3 19:42:10 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 3 Oct 2017 19:42:10 -0400 Subject: not really OT: The Coming Software Apocalypse Message-ID: Ralph wrote: > This is possible because all current consumer OSs > have the same problems outlined in the article. Deep truth, but... Are you sure that hardware is not to blame for many of these unexplained bugs? Intermittent hardware failures, due to faulty soldering or overheating (etc...) are uncommon but possible... Al From capellan2000 at gmail.com Tue Oct 3 19:52:24 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 3 Oct 2017 19:52:24 -0400 Subject: not really OT: The Coming Software Apocalypse Message-ID: Hi Richard, Richard Gaskin wrote: > I've found logging useful. Turn on the messageMessages > and write all messageHandled messages to a file with the > executionContexts - verbose, but when information is lacking > better to have too much than too little. Great to know! Thanks for this information. Where could I find more details about messageHandled and messageMessage? Google found nothing about these LiveCode messages. Al From jerry at jhjensen.com Tue Oct 3 19:55:23 2017 From: jerry at jhjensen.com (Jerry Jensen) Date: Tue, 3 Oct 2017 16:55:23 -0700 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: References: <22296B03-DD7D-458F-8EB0-D5A52ADDA8DD@iotecdigital.com> Message-ID: <817479B2-4047-4397-8154-3E9EE21CF78C@jhjensen.com> It would really enhance my LiveCode email group experience if I could STOP reading about the fake moon landing and vaccines. Besides, the moon is made of green CHEESE !! .Jerry > On Oct 3, 2017, at 2:21 PM, Lagi Pittas via use-livecode wrote: > > Hi, > > I am well up on the argument of secrecy and that article - falls down in > the first few paragraphs with the vaccines - you probably haven't heard of > the whistleblowers - Gus Grissom comes to mind > > http://info.cmsri.org/the-driven-researcher-blog/link-between-vaccines-and-african-american-boys-hidden-by-cdc-says-whistleblower > http://avoiceforchoice.org/cdcwhistleblower/ > > But ignorance here cost lives the Moon Hoax doesn't. > > I'll give you the short reason why it was faked then give you a few links > you have probably not seen and a few questions - i've seen all the > "evidence" most of it is, we've seen the moon rock, or we saw the pictures > on TV and that's it even Mythbusters used the simplest strawman argument. > > > Here are the Astronauts in the post "landing" press conference > > They are so elated looking at each other to see if tghey are puttijng a > foot wrong - wait for > > https://www.youtube.com/watch?v=-RcKLAo62Ro > > This is a classic 52 seconds > https://www.youtube.com/watch?v=xyjppxh2-C0 > > Armstrong is asked if he ever saw stars from the surface of the moon... > Collins answers" I dont remember seeing any". Collins was never on the > surface of the moon....he was allegedly "orbiting" the moon, it was not his > question to answer. > > It was basically done because America lost face with SputnK - the Cold war > was going on - I don't doubt Kennedy believed they could do it when he made > that speech. > > They could'nt so a "FEW" top people got together - remember this is for > your country - all the astronauts were military men. You farm it out to > many companies - so everythingh is on a need to know. You give $40 billion > dollars - we can't do it but we can fake it for $2 billion thank you very > much. > > Most of the workers at NASAgenuinely believed it - I sure did and I wasn't > involved in helping out. > > Now here is the BEST 9 minute video which shows you NASA people *admitting* > they don't know how they did it in 1969. > https://www.youtube.com/watch?v=DpPMoIv1lxI&t=22s > > > I have more questions and other anomalies not in here but that's for > another day. > > > This video from 3:22 onwards shows that they have also faked certain > Shuttle exercises. Here the shuttle is "in space" with a man's face in view > for about 5 seconds is priceless - Gerry Anderson would be proud > https://www.youtube.com/watch?v=h9i8tMzxIn0&index=1&t=254s&list=FL0uijsHtSIJz8eE6CrUECIw > > Don't get me wrong they have sent shuttles up in Space (but never higher > than 400 Miles) , but some of the stuff they say they did with it are > models - tell me I'm wrong but watch the video first > > > If you want my take on the secrecy issue I might expand - "A man convinced > against his will is of the same opinion still". > > Regards Lagi > > > p.s > > If nothing else just listen to the 13 seconds here at 5:43 > > https://www.youtube.com/watch?v=DpPMoIv1lxI&t=22s > > > > > > > > > > > > On 3 October 2017 at 21:17, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Nice article, but his example of the Snowden revelations actually proves >> my point. >> >> Bob S >> >> >>> On Oct 3, 2017, at 12:20 , Richard Gaskin via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Bob Sneidar wrote: >>> >>>> Well then the REAL miracle to the moon launch is how Nasa either >>>> deceived the thousands of people who worked on the project, and keeps >>>> them deceived to this day, or else were able to keep all those >>>> thousands of people from talking or writing a book. >>> >>> Arithmetically unlikely: >>> >>> https://phys.org/news/2016-01-equation-large-scale- >> conspiracies-quickly-reveal.html >>> >>> -- >>> Richard Gaskin >>> Fourth World Systems >>> Software Design and Development for the Desktop, Mobile, and the Web >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 3 20:27:31 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 3 Oct 2017 17:27:31 -0700 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: References: Message-ID: <3c8c8522-6501-f325-5143-32912aeec094@fourthworld.com> Alejandro Tejada wrote: > Richard Gaskin wrote: >> I've found logging useful. Turn on the messageMessages >> and write all messageHandled messages to a file with the >> executionContexts - verbose, but when information is lacking >> better to have too much than too little. > > Great to know! Thanks for this information. > Where could I find more details about messageHandled > and messageMessage? Google found nothing > about these LiveCode messages. They're still undocumented, designed for IDE use and subject to change. The messageMessages is a global property which governs whether messageHandled and messageNotHandled messages are sent. False by default, setting it to true causes the engine to send those messages. A messageHandled message is sent when any message is handled. Check its params to see what comes with it - not much, but enough to trigger logging. I've never used messageNotHandled, but presumably it's sent when a message is fired and nothing in the message path handles 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 capellan2000 at gmail.com Tue Oct 3 21:04:27 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 3 Oct 2017 21:04:27 -0400 Subject: not really OT: The Coming Software Apocalypse Message-ID: Richard Gaskin wrote: > They're still undocumented, designed for IDE use > and subject to change. Ok, that explains why Google could not find any information about this. Maybe this info could help developers that are having trouble with their mobile apps. Could we save our log files and sent them automatically to the app developer in a mobile app? That could be really helpful. Really helpful. Al From ambassador at fourthworld.com Tue Oct 3 21:11:55 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 3 Oct 2017 18:11:55 -0700 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: References: Message-ID: <45a9c07a-cec7-616e-0e24-335507abe6a8@fourthworld.com> Alejandro Tejada wrote: > Richard Gaskin wrote: >> They're still undocumented, designed for IDE use >> and subject to change. > > Ok, that explains why Google could not find > any information about this. > > Maybe this info could help developers that are having > trouble with their mobile apps. Could we save our log > files and sent them automatically to the app developer > in a mobile app? That could be really helpful. > Really helpful. Logging in general can be useful. Logging every handler that gets triggered throughout a session less so. Big logs, performance impairment, only useful if the log gets to the developer (and even then sifting through it can be a bear). Lean usage logs can be good, though. I tend to use messageMessages logging only when I have a problem I can't diagnose through other means. -- 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 Wed Oct 4 02:42:03 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 4 Oct 2017 09:42:03 +0300 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: <87E185B7-E121-4DEC-9553-2853C194A41E@iotecdigital.com> References: <41154cf2-67e9-7952-ea0c-33d6018f6389@sonic.net> <6CD43159-C93F-4706-9EA6-694BFF2BD594@iotecdigital.com> <87E185B7-E121-4DEC-9553-2853C194A41E@iotecdigital.com> Message-ID: "because dead programmers don't write good code." More to the point, Astronauts (c.f. end-users) usually don't know how to write code at all. Richmond. On 10/3/17 9:59 pm, Bob Sneidar via use-livecode wrote: > No, I am sure we put men on the moon. But we didn't stay there and there are no plans to actually colonize it. And the resources just to do that were "astronomical" (pardon the pun). There was of cource some redundancy, but some things cannot be repaired, as we learned with Apollo 13. Oh we patched it up enough to get them back, but they almost didn't make it even then, and all they had to do really was slingshot around the moon and get back. > > Imagine now you are hurtling towards your next stop, Mars, and something serious goes bad. How do you repair it? If you can't, how do you turn around? You cannot exactly make a right turn at the speeds you are going, and there are no planetary bodies to slingshot around. You have to burn an inordinate amount of fuel to stop, then turn around, then burn an extraordinary amount of fuel to get back, and the Earth isn't standing still during all this. Did you bring the fuel to do that? > > The hardware alone for that kind of space travel would make the moon launch look like a paper airplane. And the software for such a trip had better damn well be bug proof, because dead programmers don't write good code. > > Bob S > > >> On Oct 3, 2017, at 07:31 , Lagi Pittas via use-livecode wrote: >> >> And since you brought it up what are are you saying? We have gone to the >> Moon or Not, or that programming and engineering is too complex to do >> create the particular software system that Bret Victor envisages? > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Oct 4 02:45:15 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 4 Oct 2017 09:45:15 +0300 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: <22296B03-DD7D-458F-8EB0-D5A52ADDA8DD@iotecdigital.com> References: <41154cf2-67e9-7952-ea0c-33d6018f6389@sonic.net> <6CD43159-C93F-4706-9EA6-694BFF2BD594@iotecdigital.com> <22296B03-DD7D-458F-8EB0-D5A52ADDA8DD@iotecdigital.com> Message-ID: "magical unicorns crapped the world into existence." But they did: where have you been recently? Just as LiveCode 8.1.6 just spontaneously appeared without Homo Africanus (HyperCard), Home Erectus (Metacard) and a lot of subsequent depilation. Richmond. On 10/3/17 10:06 pm, Bob Sneidar via use-livecode wrote: > Well then the REAL miracle to the moon launch is how Nasa either deceived the thousands of people who worked on the project, and keeps them deceived to this day, or else were able to keep all those thousands of people from talking or writing a book. > > You see, conspiracies must by nature be extremely limited in participation and scope, otherwise it becomes compromised pretty quickly. Even the CIA doesn't expect to keep secrets forever. But if you don't think about all the individual people that have to spend their entire lives keeping a lie secret, and instead imagine this single minded boogie man called "the government" then you don't have to be bothered about that glaring miscalculation. > > Believing that all those workers were "in on it" or else massively deceived during the whole process is so much more incredibly fantastic, that I would really rather believe that magical unicorns crapped the world into existence. > > > Bob S > > >> On Oct 3, 2017, at 07:31 , Lagi Pittas via use-livecode wrote: >> >> Anyway I'm with Richard Feynman so "I don't care what other people think" >> I'm 99.999999% certain we didn't go yo the moon- you can only be 100% sure >> that you exist. I only came to this conclusion in the 90's even though the >> evidence was overwhelming then, but it keeps piling up. This is coming from >> someone who remembers EXACTLY where he was and what he was eating and >> drinking when Neil Armstrong was getting his lines wrong. It was Milk and >> a Blue Riband biscuit. It took me a LOOOooong time to acknowledge I had >> been lied to but sometimes you have to admit it. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Wed Oct 4 02:52:03 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 4 Oct 2017 09:52:03 +0300 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: References: Message-ID: Why do I have a feeling that once a system constructed by humans reaches a certain level of complexity those humans are unable to predict how it will behave in certain circumstances. We humans have, largely got ourself in trouble by starting to think we can explain everything, and I have a vision of a God laughing his/her socks off at our hubris. One of the kids I was teaching programming in the Summer pointed at a metal box connected to a monitor, a keyboard and a mouse and asked, "What happens inside that?" To which I replied, "Magic." This answer was a bit too honest for the poor boy to cope with as he has been brought up as a naive realist. Richmond. On 10/4/17 2:42 am, Alejandro Tejada via use-livecode wrote: > Ralph wrote: >> This is possible because all current consumer OSs >> have the same problems outlined in the article. > Deep truth, but... Are you sure that hardware is not to blame > for many of these unexplained bugs? > > Intermittent hardware failures, due to faulty soldering or > overheating (etc...) are uncommon but possible... > > Al > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Oct 4 10:24:35 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 4 Oct 2017 17:24:35 +0300 Subject: [OT] Alternative to Inkscape Message-ID: <9bbb2de6-d4a3-618b-b059-e1e3a93ce526@gmail.com> https://sk1project.net/ Maturing nicely. Richmond. From smudge.andy at googlemail.com Wed Oct 4 11:22:32 2017 From: smudge.andy at googlemail.com (AndyP) Date: Wed, 4 Oct 2017 08:22:32 -0700 (MST) Subject: [OT] Alternative to Inkscape In-Reply-To: <9bbb2de6-d4a3-618b-b059-e1e3a93ce526@gmail.com> References: <9bbb2de6-d4a3-618b-b059-e1e3a93ce526@gmail.com> Message-ID: <1507130552234-0.post@n4.nabble.com> Also for svg https://gravit.io/ ----- Andy Piddock My software never has bugs. It just develops random features. TinyIDE a Free alternative minimalist IDE Plugin for LiveCode TinyIDE Script editor Themer for LC http://2108.co.uk PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From mark at canelasoftware.com Wed Oct 4 11:28:24 2017 From: mark at canelasoftware.com (Mark Talluto) Date: Wed, 4 Oct 2017 08:28:24 -0700 Subject: Autocomplete toggle? In-Reply-To: <15ec4659428.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <19dbc398-4b3d-919c-7067-9a833faa1bc2@hyperactivesw.com> <95fbf253-a608-6df6-0889-415046354b55@hyperactivesw.com> <084DA503-0D5F-48BC-8EB6-9EE0B1E481A7@learning-insights.eu> <15ec4659428.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: > On Sep 27, 2017, at 10:32 AM, J. Landman Gay via use-livecode wrote: > > Thanks. I wish it recorded sound, it would be helpful to say "now I'm typing a > D, look 3 words back for the insertion" but that's what I'll probably use. I am a bit behind on this list. So apologies if this has already come up. Give ScreenFlow a try. https://www.telestream.net/screenflow/overview.htm It records the screen, audio, keyboard and mouseclicks, you can easily add text notation. Those are the basics. It does a lot more should you need it. It has a super simple video and audio editor. It costs $129. Since your time is worth money (especially yours Jacque), it is practically free. Go ahead and get it. You deserve it. :) Best regards, Mark Talluto livecloud.io nursenotes.net canelasoftware.com From tom at makeshyft.com Wed Oct 4 11:38:41 2017 From: tom at makeshyft.com (Tom Glod) Date: Wed, 4 Oct 2017 11:38:41 -0400 Subject: [OT] Alternative to Inkscape In-Reply-To: <1507130552234-0.post@n4.nabble.com> References: <9bbb2de6-d4a3-618b-b059-e1e3a93ce526@gmail.com> <1507130552234-0.post@n4.nabble.com> Message-ID: thanks for this, been looking for a replacement to fireworks which would let me switch to linux full time. On Wed, Oct 4, 2017 at 11:22 AM, AndyP via use-livecode < use-livecode at lists.runrev.com> wrote: > Also for svg http://post.spmailt.com/f/a/d9JnaHsX5EfQCxw1vIDDCA~~/AAGp3AA~/RgRbtjQrP0EIACzmqdMzZhVXA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18xYA01Mi4zOS4xODIuMjQ4QgoAAKsA1VmBOu5-Uh11c2UtbGl2ZWNvZGVAbGlzdHMucnVucmV2LmNvbQlRBAAAAABEEmh0dHBzOi8vZ3Jhdml0LmlvL0cCe30~ > > > > ----- > Andy Piddock > > > My software never has bugs. It just develops random features. > > TinyIDE a Free alternative minimalist IDE Plugin for LiveCode > TinyIDE > > > Script editor Themer for LC http://post.spmailt.com/f/a/wNARwk2bAZzpNOgT8MpSyg~~/AAGp3AA~/RgRbtjQrP0EIACzmqdMzZhVXA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18xYA01Mi4zOS4xODIuMjQ4QgoAAKsA1VmBOu5-Uh11c2UtbGl2ZWNvZGVAbGlzdHMucnVucmV2LmNvbQlRBAAAAABEEWh0dHA6Ly8yMTA4LmNvLnVrRwJ7fQ~~ > > PointandSee is a FREE simple but full featured under cursor colour picker > / finder. > http://post.spmailt.com/f/a/-subbybhnZAizMFbdcULLw~~/AAGp3AA~/RgRbtjQrP0EIACzmqdMzZhVXA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18xYA01Mi4zOS4xODIuMjQ4QgoAAKsA1VmBOu5-Uh11c2UtbGl2ZWNvZGVAbGlzdHMucnVucmV2LmNvbQlRBAAAAABEHGh0dHA6Ly93d3cucG9pbnRhbmRzZWUuY28udWtHAnt9 - made with LiveCode > -- > Sent from: http://post.spmailt.com/f/a/W0LAnUPprXwqKkrMV8aBuw~~/AAGp3AA~/RgRbtjQrP0EIACzmqdMzZhVXA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18xYA01Mi4zOS4xODIuMjQ4QgoAAKsA1VmBOu5-Uh11c2UtbGl2ZWNvZGVAbGlzdHMucnVucmV2LmNvbQlRBAAAAABEL2h0dHA6Ly9ydW50aW1lLXJldm9sdXRpb24uMjc4MzA1Lm40Lm5hYmJsZS5jb20vRwJ7fQ~~ > 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://post.spmailt.com/f/a/TW6NKebYnw8MXkEu7iditQ~~/AAGp3AA~/RgRbtjQrP0EIACzmqdMzZhVXA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18xYA01Mi4zOS4xODIuMjQ4QgoAAKsA1VmBOu5-Uh11c2UtbGl2ZWNvZGVAbGlzdHMucnVucmV2LmNvbQlRBAAAAABENWh0dHA6Ly9saXN0cy5ydW5yZXYuY29tL21haWxtYW4vbGlzdGluZm8vdXNlLWxpdmVjb2RlRwJ7fQ~~ > From prothero at earthlearningsolutions.org Wed Oct 4 11:40:44 2017 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Wed, 4 Oct 2017 08:40:44 -0700 Subject: Autocomplete toggle? In-Reply-To: References: <19dbc398-4b3d-919c-7067-9a833faa1bc2@hyperactivesw.com> <95fbf253-a608-6df6-0889-415046354b55@hyperactivesw.com> <084DA503-0D5F-48BC-8EB6-9EE0B1E481A7@learning-insights.eu> <15ec4659428.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: I use Movavi for screen capture and quick editing. It is inexpensive, and also has a very nice video format converter. http://m.movavi.com/?gclid=EAIaIQobChMIlZDa0qbX1gIViG5-Ch0R5gwwEAAYASAAEgL_wvD_BwE Best, Bill William Prothero http://es.earthednet.org On Oct 4, 2017, at 8:28 AM, Mark Talluto via use-livecode wrote: >> On Sep 27, 2017, at 10:32 AM, J. Landman Gay via use-livecode wrote: >> >> Thanks. I wish it recorded sound, it would be helpful to say "now I'm typing a >> D, look 3 words back for the insertion" but that's what I'll probably use. > > I am a bit behind on this list. So apologies if this has already come up. Give ScreenFlow a try. > https://www.telestream.net/screenflow/overview.htm > > It records the screen, audio, keyboard and mouseclicks, you can easily add text notation. Those are the basics. It does a lot more should you need it. > > It has a super simple video and audio editor. It costs $129. Since your time is worth money (especially yours Jacque), it is practically free. Go ahead and get it. You deserve it. :) > > > 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 jiml at netrin.com Wed Oct 4 12:12:10 2017 From: jiml at netrin.com (Jim Lambert) Date: Wed, 4 Oct 2017 09:12:10 -0700 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: References: Message-ID: <54C79D46-E64A-44DD-8969-3423FBEC50DE@netrin.com> > Richmond wrote: > > once a system constructed by humans reaches a certain level of complexity > those humans are unable to predict how it will behave in certain circumstances. And sometimes we?re unable to explain WHY a system behaved as it did, which is increasingly common with certain AI and cognitive computing systems. Jim Lambert From bobsneidar at iotecdigital.com Wed Oct 4 13:10:30 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 4 Oct 2017 17:10:30 +0000 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: <54C79D46-E64A-44DD-8969-3423FBEC50DE@netrin.com> References: <54C79D46-E64A-44DD-8969-3423FBEC50DE@netrin.com> Message-ID: <34C96BA2-BCD7-4BF7-A733-13C30CD51799@iotecdigital.com> To which I will add as a side note, once we know everything, there will be no more opinions or opposing views. :-) Bob S > On Oct 4, 2017, at 09:12 , Jim Lambert via use-livecode wrote: > >> Richmond wrote: >> >> once a system constructed by humans reaches a certain level of complexity >> those humans are unable to predict how it will behave in certain circumstances. > > And sometimes we?re unable to explain WHY a system behaved as it did, which is increasingly common with certain AI and cognitive computing systems. > > Jim Lambert From revdev at pdslabs.net Wed Oct 4 13:45:28 2017 From: revdev at pdslabs.net (Phil Davis) Date: Wed, 4 Oct 2017 10:45:28 -0700 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: <34C96BA2-BCD7-4BF7-A733-13C30CD51799@iotecdigital.com> References: <54C79D46-E64A-44DD-8969-3423FBEC50DE@netrin.com> <34C96BA2-BCD7-4BF7-A733-13C30CD51799@iotecdigital.com> Message-ID: <31c19011-5b0e-f1b2-24e7-5d9e0bd3eee7@pdslabs.net> Except people will always want what they want. As I understand it, that drives disagreements far more than the absence/presence of knowledge. (James 4:1 ) Sorry, I couldn't resist... I just HAD to respond to your tongue-in-cheek comment... Guess that makes me the poster child of what I just said. :-) Phil Davis On 10/4/17 10:10 AM, Bob Sneidar via use-livecode wrote: > To which I will add as a side note, once we know everything, there will be no more opinions or opposing views. :-) > > Bob S > > >> On Oct 4, 2017, at 09:12 , Jim Lambert via use-livecode wrote: >> >>> Richmond wrote: >>> >>> once a system constructed by humans reaches a certain level of complexity >>> those humans are unable to predict how it will behave in certain circumstances. >> And sometimes we?re unable to explain WHY a system behaved as it did, which is increasingly common with certain AI and cognitive computing systems. >> >> Jim Lambert > _______________________________________________ > use-livecode mailing list > use-livecode 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 richmondmathewson at gmail.com Wed Oct 4 14:41:45 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 4 Oct 2017 21:41:45 +0300 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: <34C96BA2-BCD7-4BF7-A733-13C30CD51799@iotecdigital.com> References: <54C79D46-E64A-44DD-8969-3423FBEC50DE@netrin.com> <34C96BA2-BCD7-4BF7-A733-13C30CD51799@iotecdigital.com> Message-ID: <952539a0-3a1e-d706-0490-b54b4f3da52b@gmail.com> Well, in that case I sincerely hope we never know everything. Although, how, without our finite brains/minds we would manage that escapes me entirely. Richmond. On 10/4/17 8:10 pm, Bob Sneidar via use-livecode wrote: > To which I will add as a side note, once we know everything, there will be no more opinions or opposing views. :-) > > Bob S > > >> On Oct 4, 2017, at 09:12 , Jim Lambert via use-livecode wrote: >> >>> Richmond wrote: >>> >>> once a system constructed by humans reaches a certain level of complexity >>> those humans are unable to predict how it will behave in certain circumstances. >> And sometimes we?re unable to explain WHY a system behaved as it did, which is increasingly common with certain AI and cognitive computing systems. >> >> Jim Lambert > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Oct 4 14:43:02 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 4 Oct 2017 21:43:02 +0300 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: <31c19011-5b0e-f1b2-24e7-5d9e0bd3eee7@pdslabs.net> References: <54C79D46-E64A-44DD-8969-3423FBEC50DE@netrin.com> <34C96BA2-BCD7-4BF7-A733-13C30CD51799@iotecdigital.com> <31c19011-5b0e-f1b2-24e7-5d9e0bd3eee7@pdslabs.net> Message-ID: <6aba065a-7da6-b558-cfa5-714805d8c6bb@gmail.com> Knowledge is not the only thing one can hold opinions about: anything subjective such as ethics or aesthetics . . . Richmond. On 10/4/17 8:45 pm, Phil Davis via use-livecode wrote: > Except people will always want what they want. As I understand it, > that drives disagreements far more than the absence/presence of > knowledge. (James 4:1 ) > > Sorry, I couldn't resist... I just HAD to respond to your > tongue-in-cheek comment... > Guess that makes me the poster child of what I just said. :-) > > Phil Davis > > > On 10/4/17 10:10 AM, Bob Sneidar via use-livecode wrote: >> To which I will add as a side note, once we know everything, there >> will be no more opinions or opposing views. :-) >> >> Bob S >> >> >>> On Oct 4, 2017, at 09:12 , Jim Lambert via use-livecode >>> wrote: >>> >>>> Richmond wrote: >>>> >>>> once a system constructed by humans reaches a certain level of >>>> complexity >>>> those humans are unable to predict how it will behave in certain >>>> circumstances. >>> And sometimes we?re unable to explain WHY a system behaved as it >>> did, which is increasingly common with certain AI and cognitive >>> computing systems. >>> >>> Jim Lambert >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Wed Oct 4 15:15:58 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 4 Oct 2017 12:15:58 -0700 Subject: system user dialog data colliding Message-ID: I finally found the source of this oddness after a couple of years . . . On startup in development environment, there is a check that updates the main stack if it is not from today, using "save as". The name is to the effect of "mcp.171004a.livecode" This invariably triggers a live code message asking what to do with the old stack (and sometimes a flurry alternating between the old and new stack as I save each). There is also a custom dialog that automatically loads and asks for the database table to open (with client names, not raw table names). The second of these to launch blocks the first. The result is that I have to hit "cancel" on my own dialog, but execution remains stopped until I deal with the system message. In turn, that means that the dialogData becomes "save" rather than the "cancel" associated with my own dialog. It never occurred to me that the system portion would be using this property. (To add insult to injury, I changed from setting a custom property in my dialog to using dialogData). I suppose that since the IDE tries to be written in live code as much as possible this may not be a bu, but it is certainly unexpected . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From capellan2000 at gmail.com Wed Oct 4 16:30:25 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 4 Oct 2017 16:30:25 -0400 Subject: [OT] Alternative to Inkscape Message-ID: Include SVG-Edit and current versions of these editors: https://www.sitepoint.com/6-free-web-based-svg-editors-compared/ I just keep wondering why nobody have forked Inkscape and included the most requested feature: a plain simple palette that translate page coordinates from bottomleft to the topleft of the page. For more than 10 years, designers have been asking Inkscape developers that they should move the page origin from bottomleft to topleft (as svg specification requires). In fact, someone posted a palette that translate the page origin coordinates from bottomleft to topleft (without changing or breaking any other internal code) but this was quickly shutdown by project maintainers. Probably this explains the glacial adoption pace of Inkscape among designers and why SVG 2.0 specification have been stalled for years and face the risk of not being approved with all features requested (many of them already in use) http://libregraphicsworld.org/blog/entry/is-svg-2-really-on-life-support Here is the main reason: "there is not enough svg content using those svg features" While Macromedia and Adobe support pushed Flash content presence to an incredible 29% (currently 6% among websites) https://www.fastcompany.com/3049920/the-agonizingly-slow-decline-of-adobe-flash-player https://w3techs.com/technologies/details/cp-flash/all/all SVG is only now that is reaching 4.5% https://w3techs.com/technologies/details/im-svg/all/all That is what I call "The Reluctant Acceptance of SVG" Maybe in the near future, 1) Inkscape developers could fulfill with more frequency the most common and reasonable requests of their own users. 2) SVG new features are used more frequently and enough content is posted online using those features. 3) Better designed tools appear than allows to use these new features without having to use so many workarounds and acrobatics... (for example: https://stackoverflow.com/questions/14684846/flattening-svg-matrix-transforms-in-inkscape ) Al From Camm29 at tesco.net Wed Oct 4 16:44:52 2017 From: Camm29 at tesco.net (Camm) Date: Wed, 4 Oct 2017 21:44:52 +0100 Subject: Duplicate Card Message-ID: <000001d33d51$a117e760$e347b620$@tesco.net> Hi , Is Duplicate card broke in 8.1.6 ? I get Duplicate card highlighted then when pressed the duplicate does not appear ? Regards Camm From bobsneidar at iotecdigital.com Wed Oct 4 18:39:01 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 4 Oct 2017 22:39:01 +0000 Subject: [OT] Alternative to Inkscape In-Reply-To: References: Message-ID: Sadly, I have experienced this before with Open Source software. Devs can be much less open to new ideas or ways of doing things. As a result they lose a lot of their base, but if it costs them nothing they can afford it. Bob S > On Oct 4, 2017, at 13:30 , Alejandro Tejada via use-livecode wrote: > > For more than 10 years, designers have been asking > Inkscape developers that they should move the page > origin from bottomleft to topleft (as svg specification > requires). In fact, someone posted a palette that > translate the page origin coordinates from bottomleft > to topleft (without changing or breaking any other > internal code) but this was quickly shutdown by > project maintainers. From harrison at all-auctions.com Wed Oct 4 19:02:02 2017 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 4 Oct 2017 19:02:02 -0400 Subject: [OT] Alternative to Inkscape In-Reply-To: References: Message-ID: Hi Al, Did you try GIMP? https://www.gimp.org Will it do what you want it to do with SVG files? Hope it helps! Rick > On Oct 4, 2017, at 4:30 PM, Alejandro Tejada via use-livecode wrote: > > Include SVG-Edit and current versions of these editors: > https://www.sitepoint.com/6-free-web-based-svg-editors-compared/ > > I just keep wondering why nobody have forked Inkscape > and included the most requested feature: a plain simple > palette that translate page coordinates from bottomleft > to the topleft of the page. > > For more than 10 years, designers have been asking > Inkscape developers that they should move the page > origin from bottomleft to topleft (as svg specification > requires). In fact, someone posted a palette that > translate the page origin coordinates from bottomleft > to topleft (without changing or breaking any other > internal code) but this was quickly shutdown by > project maintainers. > > Probably this explains the glacial adoption pace > of Inkscape among designers and why SVG 2.0 > specification have been stalled for years and face > the risk of not being approved with all features > requested (many of them already in use) > > http://libregraphicsworld.org/blog/entry/is-svg-2-really-on-life-support > > Here is the main reason: > "there is not enough svg content using those svg features" > > While Macromedia and Adobe support pushed Flash content > presence to an incredible 29% (currently 6% among websites) > > https://www.fastcompany.com/3049920/the-agonizingly-slow-decline-of-adobe-flash-player > > https://w3techs.com/technologies/details/cp-flash/all/all > > SVG is only now that is reaching 4.5% > https://w3techs.com/technologies/details/im-svg/all/all > > That is what I call "The Reluctant Acceptance of SVG" > > Maybe in the near future, > 1) Inkscape developers could fulfill with more frequency > the most common and reasonable requests of their > own users. > 2) SVG new features are used more frequently and > enough content is posted online using those features. > 3) Better designed tools appear than allows to use these > new features without having to use so many workarounds > and acrobatics... > (for example: > https://stackoverflow.com/questions/14684846/flattening-svg-matrix-transforms-in-inkscape > ) > > Al > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From capellan2000 at gmail.com Wed Oct 4 19:15:23 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 4 Oct 2017 19:15:23 -0400 Subject: [OT] Alternative to Inkscape In-Reply-To: References: Message-ID: After reading again Bug Reports about Inkscape page origin, I noticed that I was wrong. That Bug Report have existed for more than 12 years so... read by yourself: https://bugs.launchpad.net/inkscape/+bug/170049 https://bugs.launchpad.net/inkscape/+bug/364036 Al On Wed, Oct 4, 2017 at 4:30 PM, Alejandro Tejada wrote: > Include SVG-Edit and current versions of these editors: > https://www.sitepoint.com/6-free-web-based-svg-editors-compared/ > > I just keep wondering why nobody have forked Inkscape > and included the most requested feature: a plain simple > palette that translate page coordinates from bottomleft > to the topleft of the page. > > For more than 10 years, designers have been asking > Inkscape developers that they should move the page > origin from bottomleft to topleft (as svg specification > requires). In fact, someone posted a palette that > translate the page origin coordinates from bottomleft > to topleft (without changing or breaking any other > internal code) but this was quickly shutdown by > project maintainers. > > Probably this explains the glacial adoption pace > of Inkscape among designers and why SVG 2.0 > specification have been stalled for years and face > the risk of not being approved with all features > requested (many of them already in use) > > http://libregraphicsworld.org/blog/entry/is-svg-2-really-on-life-support > > Here is the main reason: > "there is not enough svg content using those svg features" > > While Macromedia and Adobe support pushed Flash content > presence to an incredible 29% (currently 6% among websites) > > https://www.fastcompany.com/3049920/the-agonizingly-slow- > decline-of-adobe-flash-player > > https://w3techs.com/technologies/details/cp-flash/all/all > > SVG is only now that is reaching 4.5% > https://w3techs.com/technologies/details/im-svg/all/all > > That is what I call "The Reluctant Acceptance of SVG" > > Maybe in the near future, > 1) Inkscape developers could fulfill with more frequency > the most common and reasonable requests of their > own users. > 2) SVG new features are used more frequently and > enough content is posted online using those features. > 3) Better designed tools appear than allows to use these > new features without having to use so many workarounds > and acrobatics... > (for example: https://stackoverflow.com/questions/14684846/flattening- > svg-matrix-transforms-in-inkscape ) > > Al > From harrison at all-auctions.com Wed Oct 4 19:18:09 2017 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 4 Oct 2017 19:18:09 -0400 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: References: <22296B03-DD7D-458F-8EB0-D5A52ADDA8DD@iotecdigital.com> Message-ID: <7F5EA5CA-C9A1-4A8B-80BE-73EB20565200@all-auctions.com> Hi Lagi, The Apollo Astronauts left ?Laser Reflectors? on the moon so that we could very accurately measure the distance between the Earth and the Moon. If you get the right equipment you too can do this experiment. The reflectors are still there on the moon right where they left them. https://en.wikipedia.org/wiki/Lunar_Laser_Ranging_experiment#/media/File:ALSEP_AS14-67-9386.jpg Enjoy, Rick P.S. Maybe Astronauts in the far future will be able to write programs on the fly with future LiveCode! > On Oct 3, 2017, at 5:21 PM, Lagi Pittas via use-livecode wrote: > > Hi, > > I am well up on the argument of secrecy and that article - falls down in > the first few paragraphs with the vaccines - you probably haven't heard of > the whistleblowers - Gus Grissom comes to mind > > http://info.cmsri.org/the-driven-researcher-blog/link-between-vaccines-and-african-american-boys-hidden-by-cdc-says-whistleblower > http://avoiceforchoice.org/cdcwhistleblower/ > > But ignorance here cost lives the Moon Hoax doesn't. > > I'll give you the short reason why it was faked then give you a few links > you have probably not seen and a few questions - i've seen all the > "evidence" most of it is, we've seen the moon rock, or we saw the pictures > on TV and that's it even Mythbusters used the simplest strawman argument. > > > Here are the Astronauts in the post "landing" press conference > > They are so elated looking at each other to see if tghey are puttijng a > foot wrong - wait for > > https://www.youtube.com/watch?v=-RcKLAo62Ro > > This is a classic 52 seconds > https://www.youtube.com/watch?v=xyjppxh2-C0 > > Armstrong is asked if he ever saw stars from the surface of the moon... > Collins answers" I dont remember seeing any". Collins was never on the > surface of the moon....he was allegedly "orbiting" the moon, it was not his > question to answer. > > It was basically done because America lost face with SputnK - the Cold war > was going on - I don't doubt Kennedy believed they could do it when he made > that speech. > > They could'nt so a "FEW" top people got together - remember this is for > your country - all the astronauts were military men. You farm it out to > many companies - so everythingh is on a need to know. You give $40 billion > dollars - we can't do it but we can fake it for $2 billion thank you very > much. > > Most of the workers at NASAgenuinely believed it - I sure did and I wasn't > involved in helping out. > > Now here is the BEST 9 minute video which shows you NASA people *admitting* > they don't know how they did it in 1969. > https://www.youtube.com/watch?v=DpPMoIv1lxI&t=22s > > > I have more questions and other anomalies not in here but that's for > another day. > > > This video from 3:22 onwards shows that they have also faked certain > Shuttle exercises. Here the shuttle is "in space" with a man's face in view > for about 5 seconds is priceless - Gerry Anderson would be proud > https://www.youtube.com/watch?v=h9i8tMzxIn0&index=1&t=254s&list=FL0uijsHtSIJz8eE6CrUECIw > > Don't get me wrong they have sent shuttles up in Space (but never higher > than 400 Miles) , but some of the stuff they say they did with it are > models - tell me I'm wrong but watch the video first > > > If you want my take on the secrecy issue I might expand - "A man convinced > against his will is of the same opinion still". > > Regards Lagi > > > p.s > > If nothing else just listen to the 13 seconds here at 5:43 > > https://www.youtube.com/watch?v=DpPMoIv1lxI&t=22s > > > > > > > > > > > > On 3 October 2017 at 21:17, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Nice article, but his example of the Snowden revelations actually proves >> my point. >> >> Bob S >> >> >>> On Oct 3, 2017, at 12:20 , Richard Gaskin via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Bob Sneidar wrote: >>> >>>> Well then the REAL miracle to the moon launch is how Nasa either >>>> deceived the thousands of people who worked on the project, and keeps >>>> them deceived to this day, or else were able to keep all those >>>> thousands of people from talking or writing a book. >>> >>> Arithmetically unlikely: >>> >>> https://phys.org/news/2016-01-equation-large-scale- >> conspiracies-quickly-reveal.html >>> >>> -- >>> Richard Gaskin >>> Fourth World Systems >>> Software Design and Development for the Desktop, Mobile, and the Web >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Oct 4 19:18:32 2017 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed, 4 Oct 2017 18:18:32 -0500 Subject: LiveCode documentation set now available for Dash compatible readers In-Reply-To: <7C25E898-C9EF-43D6-AA2D-8E567473A51C@thehales.id.au> References: <7C25E898-C9EF-43D6-AA2D-8E567473A51C@thehales.id.au> Message-ID: On Tue, Oct 3, 2017 at 5:54 PM, James Hale via use-livecode < use-livecode at lists.runrev.com> wrote: > There is now a documentation set (currently at LC 9 dp 9) available in the > "user-contribution" category for Dash compatible readers. > Thanks James! -- Trevor DeVore ScreenSteps www.screensteps.com From bobsneidar at iotecdigital.com Wed Oct 4 19:30:11 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 4 Oct 2017 23:30:11 +0000 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: <7F5EA5CA-C9A1-4A8B-80BE-73EB20565200@all-auctions.com> References: <22296B03-DD7D-458F-8EB0-D5A52ADDA8DD@iotecdigital.com> <7F5EA5CA-C9A1-4A8B-80BE-73EB20565200@all-auctions.com> Message-ID: <0CCDB3D0-4682-4155-92E4-9543DFE1F246@iotecdigital.com> Actually, since we weren't able to get there, we had to give them to the aliens who were running the CIA at the time, and they dropped them off. That way we can maintain the deception pretty convincingly. Bob S > On Oct 4, 2017, at 16:18 , Rick Harrison via use-livecode wrote: > > Hi Lagi, > > The Apollo Astronauts left ?Laser Reflectors? on the moon so that > we could very accurately measure the distance between the Earth > and the Moon. > > If you get the right equipment you too can do this experiment. > The reflectors are still there on the moon right where they left them. From capellan2000 at gmail.com Wed Oct 4 19:44:13 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 4 Oct 2017 19:44:13 -0400 Subject: [OT] Alternative to Inkscape Message-ID: Hi Ryan, I use Xara since many, many years ago. Their technical support is excellent and rarely (if ever) I had a problem with their application except a rare bug that I found, reported and they fixed. Recently, I am testing their online design application: https://cloud.ixara.com/ Everyone could test this online design application using their Google, Facebook or Microsoft Live accounts. Al Rick Harrison wrote: > Did you try GIMP? > https://www.gimp.org > Will it do what you want it to do with SVG files? From ahsoftware at sonic.net Wed Oct 4 20:18:38 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 4 Oct 2017 17:18:38 -0700 Subject: 60 years of the Space Age In-Reply-To: <0CCDB3D0-4682-4155-92E4-9543DFE1F246@iotecdigital.com> References: <22296B03-DD7D-458F-8EB0-D5A52ADDA8DD@iotecdigital.com> <7F5EA5CA-C9A1-4A8B-80BE-73EB20565200@all-auctions.com> <0CCDB3D0-4682-4155-92E4-9543DFE1F246@iotecdigital.com> Message-ID: <98216a1f-14e2-07cc-1342-6f5d87ac5523@sonic.net> On 10/04/2017 04:30 PM, Bob Sneidar via use-livecode wrote: > Actually, since we weren't able to get there, we had to give them to the aliens who were running the CIA at the time, and they dropped them off. That way we can maintain the deception pretty convincingly. I am really sorry to have started this thread, even though Alien Laser Reflectors on the Moon sounds like a great movie. Meanwhile, let's all celebrate the 60th anniversary of the launching of Sputnik I. https://www.theatlantic.com/science/archive/2017/10/the-world-needs-a-terrestrial-sputnik-moment/541989 -- Mark Wieder ahsoftware at gmail.com From ambassador at fourthworld.com Wed Oct 4 20:23:07 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 4 Oct 2017 17:23:07 -0700 Subject: [OT] Alternative to Inkscape In-Reply-To: References: Message-ID: <26ff507a-fd74-ec05-e4cd-236b19a25316@fourthworld.com> Bob Sneidar wrote: > Sadly, I have experienced this before with Open Source software. Devs > can be much less open to new ideas or ways of doing things. As a > result they lose a lot of their base, but if it costs them nothing > they can afford it. I suppose that could be said about many projects, even proprietary ones. How often have you submitted a feature request to Adobe or Apple and seen it acted on in the next release? I've met the lead dev for Inkscape at the SoCal Linux User Group. He takes out a booth there because he very much wants feedback. The key to this particular issue lies in the details of the two reports Alejandro linked to: > https://bugs.launchpad.net/inkscape/+bug/170049 > https://bugs.launchpad.net/inkscape/+bug/364036 In summary, Inkscape predates its SVG import (by many years), and as code bases go the original print-centric coordinate system (remember, Postscript uses the same coordinate system Inkscape does) included a lot of assumptions based around that coordinate system, and a few hard-coded values. All in all, changing it is non-trivial. Also, there was some discussion in that thread about whether this is a true bug or a feature request, because the software is working as originally designed and simply flipping the coordinates would pose a backward compatibility issue. The best option would be user-definable coordinate systems, and that would be a feature request. And quite a bit of work. As one of the devs in that thread wrote: If you think it's so easy to fix, know that we are more than happy to accept a patch from you. ;) While it is a long-standing issue, we've all seen issues in other software, both FOSS and proprietary, hang out longer. These are often things that may be important but perhaps to a relatively small percentage of the software's audience. I've used Inkscape for years but never noticed this one until I read this thread. The difference with open source is that if it's really holding you back you can rally the resources to get it done yourself right now, something that would be impossible with any proprietary code base. -- 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 capellan2000 at gmail.com Wed Oct 4 21:16:52 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 4 Oct 2017 21:16:52 -0400 Subject: No subject Message-ID: Mark Wieder wrote: > I am really sorry to have started this thread Where else could we learned about the messageMessages global property and messageHandled message (useful for logging and debugging Livecode apps? This mail list, like our own life, allows us to focus on our immediate projects or our long term interests. We can focus on the foreground or the background, focus on the melody or the accompaniment... and these could change places depending of our personal point of view. Al From capellan2000 at gmail.com Wed Oct 4 21:22:04 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 4 Oct 2017 21:22:04 -0400 Subject: 60 years of the Space Age Message-ID: Mark Wieder wrote: > I am really sorry to have started this thread Where else could we have learned about the messageMessages global property and messageHandled message (useful for logging and debugging Livecode apps? This mail list, like our own life, allows us to focus on our immediate projects or our long term interests. We can focus on the foreground or the background, focus on the melody or the accompaniment... and these could change places depending of our personal point of view. Al From ahsoftware at sonic.net Wed Oct 4 21:37:24 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 4 Oct 2017 18:37:24 -0700 Subject: 60 years of the Space Age In-Reply-To: References: Message-ID: On 10/04/2017 06:22 PM, Alejandro Tejada via use-livecode wrote: > Mark Wieder wrote: >> I am really sorry to have started this thread ah... I had a smiley thing after that but I must have used some old recycled electrons and they fell off the page. -- Mark Wieder ahsoftware at gmail.com From capellan2000 at gmail.com Wed Oct 4 22:01:39 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 4 Oct 2017 22:01:39 -0400 Subject: 60 years of the Space Age In-Reply-To: References: Message-ID: And Gmail allowed to send my previous message without subject and no warnings... precisely in the day (October 4) where they announce that each of their products now have Artificial Intelligence Algorithms incorporated... :-o On Wed, Oct 4, 2017 at 9:22 PM, Alejandro Tejada wrote: > Mark Wieder wrote: > > I am really sorry to have started this thread > > Where else could we have learned about the messageMessages > global property and messageHandled message (useful for > logging and debugging Livecode apps? > > This mail list, like our own life, allows us to focus on our > immediate projects or our long term interests. We can > focus on the foreground or the background, focus on the > melody or the accompaniment... and these could change > places depending of our personal point of view. > > Al > From capellan2000 at gmail.com Wed Oct 4 22:14:24 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 4 Oct 2017 22:14:24 -0400 Subject: [OT] Alternative to Inkscape In-Reply-To: References: Message-ID: Hi Richard, Richard Gaskin wrote: > The difference with open source is that if it's really holding you back > you can rally the resources to get it done yourself right now, something > that would be impossible with any proprietary code base. In my humble opinion, after 12 years it has to be easier to convince WC3 to change the SVG standard and adopt Inkscape bottomleft page origin... :D Al On Wed, Oct 4, 2017 at 7:44 PM, Alejandro Tejada wrote: > > Hi Ryan, > > I use Xara since many, many years ago. Their technical support is excellent and rarely (if ever) I had a problem with their application > except a rare bug that I found, reported and they fixed. > > Recently, I am testing their online design application: > https://cloud.ixara.com/ > > Everyone could test this online design application using their Google, Facebook or Microsoft Live accounts. > > Al > > Rick Harrison wrote: > > > Did you try GIMP? > > https://www.gimp.org > > Will it do what you want it to do with SVG files? From th.douez at gmail.com Thu Oct 5 05:03:11 2017 From: th.douez at gmail.com (Thierry Douez) Date: Thu, 5 Oct 2017 11:03:11 +0200 Subject: [OT] Alternative to Inkscape In-Reply-To: References: Message-ID: 2017-10-05 1:44 GMT+02:00 Alejandro Tejada ?: I use Xara since many, many years ago. Their technical support is excellent > and rarely (if ever) I had a problem with their application > except a rare bug that I found, reported and they fixed. > ?Since a couple of years, I have a graphic designer who works with Xara (Win10) and I adapt his works with Affinity Designer (MacOS)?. We can exchange our SVG jobs quite easily, and for me, not being a graphic designer at all, I find this process easy enough. Regards, Thierry -- ------------------------------------------------ Thierry Douez - sunny-tdz.com sunnYrex - sunnYtext2speech - sunnYperl - sunnYmidi - sunnYmage From ilola.antti at gmail.com Thu Oct 5 05:10:43 2017 From: ilola.antti at gmail.com (Antti Ilola) Date: Thu, 5 Oct 2017 12:10:43 +0300 Subject: Where is LiveCode Message-ID: http://sdtimes.com/low-code-tools-leading-digital-transformation/ Antti From roger.e.eller at sealedair.com Thu Oct 5 06:31:03 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 5 Oct 2017 06:31:03 -0400 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: <7F5EA5CA-C9A1-4A8B-80BE-73EB20565200@all-auctions.com> References: <22296B03-DD7D-458F-8EB0-D5A52ADDA8DD@iotecdigital.com> <7F5EA5CA-C9A1-4A8B-80BE-73EB20565200@all-auctions.com> Message-ID: Sitcom version of the laser reflector experiment (on "The Big Bang Theory"). :-) https://www.youtube.com/watch?v=tL1OATdBoY8 On Wed, Oct 4, 2017 at 7:18 PM, Rick Harrison via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Lagi, > > The Apollo Astronauts left ?Laser Reflectors? on the moon so that > we could very accurately measure the distance between the Earth > and the Moon. > > If you get the right equipment you too can do this experiment. > The reflectors are still there on the moon right where they left them. > > https://en.wikipedia.org/wiki/Lunar_Laser_Ranging_ > experiment#/media/File:ALSEP_AS14-67-9386.jpg wiki/Lunar_Laser_Ranging_experiment#/media/File:ALSEP_AS14-67-9386.jpg> > > Enjoy, > > Rick > > P.S. Maybe Astronauts in the far future will be able to write programs on > the fly with future LiveCode! > > From sean at pidigital.co.uk Thu Oct 5 07:10:03 2017 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Thu, 5 Oct 2017 12:10:03 +0100 Subject: Where is LiveCode In-Reply-To: References: Message-ID: Hi Antti, I wouldn't class LiveCode along with these Low-Code apps as LC requires a lot more code than these offerings mentioned. A different kind of product. But it was a good read so thanks for posting it. regards Sean Cole On 5 October 2017 at 10:10, Antti Ilola via use-livecode < use-livecode at lists.runrev.com> wrote: > http://sdtimes.com/low-code-tools-leading-digital-transformation/ > > > Antti > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 5 07:49:52 2017 From: iphonelagi at gmail.com (Lagi Pittas) Date: Thu, 5 Oct 2017 12:49:52 +0100 Subject: Where is LiveCode In-Reply-To: References: Message-ID: Hi Sean Maybe all the others but XOJO? Lagi On 5 October 2017 at 12:10, Sean Cole (Pi) via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Antti, > > I wouldn't class LiveCode along with these Low-Code apps as LC requires a > lot more code than these offerings mentioned. A different kind of product. > But it was a good read so thanks for posting it. > > regards > > Sean Cole > > > On 5 October 2017 at 10:10, Antti Ilola via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > http://sdtimes.com/low-code-tools-leading-digital-transformation/ > > > > > > Antti > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Oct 5 09:21:51 2017 From: andrew at midwestcoastmedia.com (andrew at midwestcoastmedia.com) Date: Thu, 05 Oct 2017 13:21:51 +0000 Subject: mergZXing alternative In-Reply-To: Message-ID: <20171005132151.Horde.8sB16sdjXjH1DpFj9gnmqki@ua850258.serversignin.com> Guess I didn't scroll down far enough on http://mergext.com/home/mergav/ to see the barcode syntax. THank you for the suggestion. I wentlooking on MergEXT and the various Livecode tutorial/lesson/stack-sharing sites for a MergAV sample stack. The closest I found was a thread on this forum from a year ago where someone else was having this same conversation (including trying to find the sample stack) and all the sudden they found it without saying where and everything was good. Finally I remembered reading somewhere that sample stacks were included with the extensions if you dug into the app itself (Show Package Contents on Mac). Found the sample stack... holy crap, MergAV is WAY faster and more accurate than MergZXing was with barcodes (and the blue line on-screen is a nice addition). It seems like these sample stacks shouldn't be hidden like treasure. I assumed clicking "Sample Stacks", or "Tutorials", or "Resources", or even "Dictionary" inside of Livecode would have a reference or entry for the sample stack. --Andrew Bell > There are barcode calls in mergav. There is also a sample stack that > demonstrates how to use it for scanning barcodes. All the MergAV calls are > documented in the dictionary. > I believe the other reason why zx was deprecated was because av is faster > and more accurate - at least it would appear to be for me. > From bobsneidar at iotecdigital.com Thu Oct 5 10:47:21 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 5 Oct 2017 14:47:21 +0000 Subject: 60 years of the Space Age In-Reply-To: <98216a1f-14e2-07cc-1342-6f5d87ac5523@sonic.net> References: <22296B03-DD7D-458F-8EB0-D5A52ADDA8DD@iotecdigital.com> <7F5EA5CA-C9A1-4A8B-80BE-73EB20565200@all-auctions.com> <0CCDB3D0-4682-4155-92E4-9543DFE1F246@iotecdigital.com> <98216a1f-14e2-07cc-1342-6f5d87ac5523@sonic.net> Message-ID: <7AF0DAEB-C8A8-403B-8141-FC4DA6A375B7@iotecdigital.com> Nice article. And it had an ad for the HyperZoom360 lens for smartphones, where the ad shows someone taking a closeup photo of... you guessed it! THE MOON! I wonder if he can see the reflectors... Bob S > On Oct 4, 2017, at 17:18 , Mark Wieder via use-livecode wrote: > > On 10/04/2017 04:30 PM, Bob Sneidar via use-livecode wrote: >> Actually, since we weren't able to get there, we had to give them to the aliens who were running the CIA at the time, and they dropped them off. That way we can maintain the deception pretty convincingly. > > I am really sorry to have started this thread, even though Alien Laser Reflectors on the Moon sounds like a great movie. > > Meanwhile, let's all celebrate the 60th anniversary of the launching of Sputnik I. > > https://www.theatlantic.com/science/archive/2017/10/the-world-needs-a-terrestrial-sputnik-moment/541989 > > -- > Mark Wieder > ahsoftware at gmail.com From bobsneidar at iotecdigital.com Thu Oct 5 10:51:14 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 5 Oct 2017 14:51:14 +0000 Subject: 60 years of the Space Age In-Reply-To: References: Message-ID: And that brings up an interesting point. Who is to say that artificial intelligence will be any smarter than the humans who invent it? I mean, is that even possible? So, looks like we are going to create a bunch of heartless, soulless minds that for all I can tell will be stupider than me. Doesn't give me warm fuzzy feelings I can tell you. Bob S > On Oct 4, 2017, at 19:01 , Alejandro Tejada via use-livecode wrote: > > And Gmail allowed to send my previous message > without subject and no warnings... precisely > in the day (October 4) where they announce > that each of their products now have Artificial > Intelligence Algorithms incorporated... :-o From ambassador at fourthworld.com Thu Oct 5 10:58:33 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 5 Oct 2017 07:58:33 -0700 Subject: [OT] Alternative to Inkscape In-Reply-To: References: Message-ID: <740af1db-9bde-7625-3689-b4d861e65501@fourthworld.com> Alejandro Tejada wrote: > In my humble opinion, after 12 years it has to be easier > to convince WC3 to change the SVG standard and adopt > Inkscape bottomleft page origin... :D If there needs to be a bad guy here maybe the better finger-wagging would be toward John Warnock, for approving a Postscript spec that uses a coordinate system unlike anything else in the computing world, bifurcating the software landscape into bottom-zero and top-zero camps. And ever since the Postscript licensing debacle which eventually prompted everyone else to join together to replace Postscript fonts with TrueType (not to mention the dismally wonky PDF format), who doesn't enjoy picking on Warnock? ;) -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From MikeKerner at roadrunner.com Thu Oct 5 10:58:50 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 5 Oct 2017 10:58:50 -0400 Subject: 60 years of the Space Age In-Reply-To: References: Message-ID: What about 34 years of Space Ace? https://en.wikipedia.org/wiki/Space_Ace On Thu, Oct 5, 2017 at 10:51 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > And that brings up an interesting point. Who is to say that artificial > intelligence will be any smarter than the humans who invent it? I mean, is > that even possible? So, looks like we are going to create a bunch of > heartless, soulless minds that for all I can tell will be stupider than me. > Doesn't give me warm fuzzy feelings I can tell you. > > Bob S > > > > On Oct 4, 2017, at 19:01 , Alejandro Tejada via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > And Gmail allowed to send my previous message > > without subject and no warnings... precisely > > in the day (October 4) where they announce > > that each of their products now have Artificial > > Intelligence Algorithms incorporated... :-o > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From ambassador at fourthworld.com Thu Oct 5 11:00:27 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 5 Oct 2017 08:00:27 -0700 Subject: 60 years of the Space Age In-Reply-To: References: Message-ID: Alejandro Tejada wrote: > Where else could we have learned about the messageMessages > global property and messageHandled message (useful for > logging and debugging Livecode apps? Ideally, in the Dictionary. There are more than a few tokens there flagged as "experimental", and with appropriate warnings they're valuable inclusions. If we can get approval to include messageMessages, messageHandled, and messageNotHandled, who wants to write up those Dict entries? -- 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 Thu Oct 5 11:08:57 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 5 Oct 2017 15:08:57 +0000 Subject: [OT] Alternative to Inkscape In-Reply-To: <740af1db-9bde-7625-3689-b4d861e65501@fourthworld.com> References: <740af1db-9bde-7625-3689-b4d861e65501@fourthworld.com> Message-ID: I suppose, but consider that we learned graphs all through school with a bottom up left to right coordinate system, so that seems to me more natural. Also with top down systems, you have to think that left to right numbers go up, but top down numbers go up. So down is up. Kinda like Pirates of the Caribbean. Bob S > On Oct 5, 2017, at 07:58 , Richard Gaskin via use-livecode wrote: > > Alejandro Tejada wrote: > > > In my humble opinion, after 12 years it has to be easier > > to convince WC3 to change the SVG standard and adopt > > Inkscape bottomleft page origin... :D > > If there needs to be a bad guy here maybe the better finger-wagging would be toward John Warnock, for approving a Postscript spec that uses a coordinate system unlike anything else in the computing world, bifurcating the software landscape into bottom-zero and top-zero camps. > > And ever since the Postscript licensing debacle which eventually prompted everyone else to join together to replace Postscript fonts with TrueType (not to mention the dismally wonky PDF format), who doesn't enjoy picking on Warnock? ;) > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web From ali.lloyd at livecode.com Thu Oct 5 11:31:13 2017 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Thu, 05 Oct 2017 15:31:13 +0000 Subject: mergZXing alternative In-Reply-To: <20171005132151.Horde.8sB16sdjXjH1DpFj9gnmqki@ua850258.serversignin.com> References: <20171005132151.Horde.8sB16sdjXjH1DpFj9gnmqki@ua850258.serversignin.com> Message-ID: Regarding sample stacks, this is a good suggestion - I'm in the process of tweaking how 'extensions' work in the IDE, but ultimately I'd like for things like mergExt externals to show up in an externals tab of the extension manager. I think that would be a good place to be able to launch sample stacks from (most widgets and libraries should probably have sample stacks too). Your suggestion of making them accessible from the dictionary is also a good one, I will look into adding that too. On Thu, Oct 5, 2017 at 2:21 PM Andrew Bell via use-livecode < use-livecode at lists.runrev.com> wrote: > Guess I didn't scroll down far enough on > http://mergext.com/home/mergav/ to see the barcode syntax. THank you > for the suggestion. > > I wentlooking on MergEXT and the various Livecode > tutorial/lesson/stack-sharing sites for a MergAV sample stack. The > closest I found was a thread on this forum from a year ago where > someone else was having this same conversation (including trying to > find the sample stack) and all the sudden they found it without saying > where and everything was good. > > Finally I remembered reading somewhere that sample stacks were > included with the extensions if you dug into the app itself (Show > Package Contents on Mac). Found the sample stack... holy crap, MergAV > is WAY faster and more accurate than MergZXing was with barcodes (and > the blue line on-screen is a nice addition). > > It seems like these sample stacks shouldn't be hidden like treasure. I > assumed clicking "Sample Stacks", or "Tutorials", or "Resources", or > even "Dictionary" inside of Livecode would have a reference or entry > for the sample stack. > > --Andrew Bell > > > There are barcode calls in mergav. There is also a sample stack that > > demonstrates how to use it for scanning barcodes. All the MergAV calls > are > > documented in the dictionary. > > I believe the other reason why zx was deprecated was because av is faster > > and more accurate - at least it would appear to be for me. > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Oct 5 11:35:13 2017 From: panos.merakos at livecode.com (panagiotis merakos) Date: Thu, 5 Oct 2017 16:35:13 +0100 Subject: [ANN] Release 8.1.7 RC-3 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 8.1.7 RC-3. Getting the Release =================== You can get the release at https://downloads.livecode.com/livecode/ or via the automatic updater. Release Contents ================ LiveCode 8.1.7 RC-3 contains an important change: Using Xcode 9 for building iOS standalones in LiveCode 8.1.7 RC-3 now creates a universal binary, i.e. the binary contains both a 32bit slice and a 64bit slice. This means that you can install it in older Apple devices that have a 32bit chip (and thus require the app to have a 32bit slice), such as iPhone 5, iPhone 5c and 4th gen iPad. This was not possible in LiveCode 8.1.7 RC-2. Feedback ======== Please report any bugs encountered on our BugZilla at http://quality.livecode.com/ Have fun! The LiveCode Team -- From ambassador at fourthworld.com Thu Oct 5 12:09:37 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 5 Oct 2017 09:09:37 -0700 Subject: [OT] Alternative to Inkscape In-Reply-To: References: Message-ID: <7946dc87-688e-0df1-eecc-4b41ca69ef01@fourthworld.com> Bob Sneidar wrote: >> On Oct 5, 2017, at 07:58 , Richard Gaskin wrote: >> Alejandro Tejada wrote: >> > In my humble opinion, after 12 years it has to be easier >> > to convince WC3 to change the SVG standard and adopt >> > Inkscape bottomleft page origin... :D >> >> If there needs to be a bad guy here maybe the better finger-wagging >> would be toward John Warnock, for approving a Postscript spec that >> uses a coordinate system unlike anything else in the computing world, >> bifurcating the software landscape into bottom-zero and top-zero >> camps. > > I suppose, but consider that we learned graphs all through school with > a bottom up left to right coordinate system, so that seems to me more > natural. Maybe the bad guy is Euclid. But even then one could argue that his thinking about coordinate systems was influenced by the natural world, where the earth has a surface and we measure things we make from that starting point upwards, rather than from an arbitrary point in the sky downwards. In that view, maybe the bad guy is everyone who made a top-zero coordinate system, and Inkscape is among the few who've been doing things right the whole time. :) -- 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 harrison at all-auctions.com Thu Oct 5 12:26:11 2017 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 5 Oct 2017 12:26:11 -0400 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: References: <22296B03-DD7D-458F-8EB0-D5A52ADDA8DD@iotecdigital.com> <7F5EA5CA-C9A1-4A8B-80BE-73EB20565200@all-auctions.com> Message-ID: <9DB2BA3B-8F8E-4112-AF09-A95EC8755C3A@all-auctions.com> Hi Roger, They failed to mention LiveCode though, which was disappointing. If anyone writes a software package with LiveCode so that we can duplicate the laser reflector experiment, let me know! ;-) Thanks for sharing! Rick > On Oct 5, 2017, at 6:31 AM, Roger Eller via use-livecode wrote: > > Sitcom version of the laser reflector experiment (on "The Big Bang > Theory"). :-) > > https://www.youtube.com/watch?v=tL1OATdBoY8 > From heather at livecode.com Thu Oct 5 12:32:15 2017 From: heather at livecode.com (Heather Laine) Date: Thu, 5 Oct 2017 17:32:15 +0100 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: <817479B2-4047-4397-8154-3E9EE21CF78C@jhjensen.com> References: <22296B03-DD7D-458F-8EB0-D5A52ADDA8DD@iotecdigital.com> <817479B2-4047-4397-8154-3E9EE21CF78C@jhjensen.com> Message-ID: You called Jerry? I think probably the time has come to end this admittedly entertaining thread. I think I need to add "conspiracy theories" to the banned topic list for this list, which may I remind you all includes Politics, Religion and Cheese. Move along please folks, lets take it back to LiveCode :) Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 4 Oct 2017, at 00:55, Jerry Jensen via use-livecode wrote: > > It would really enhance my LiveCode email group experience if I could STOP reading about the fake moon landing and vaccines. > > Besides, the moon is made of green CHEESE !! > > .Jerry > >> On Oct 3, 2017, at 2:21 PM, Lagi Pittas via use-livecode wrote: >> >> Hi, >> >> I am well up on the argument of secrecy and that article - falls down in >> the first few paragraphs with the vaccines - you probably haven't heard of >> the whistleblowers - Gus Grissom comes to mind >> >> http://info.cmsri.org/the-driven-researcher-blog/link-between-vaccines-and-african-american-boys-hidden-by-cdc-says-whistleblower >> http://avoiceforchoice.org/cdcwhistleblower/ >> >> But ignorance here cost lives the Moon Hoax doesn't. >> >> I'll give you the short reason why it was faked then give you a few links >> you have probably not seen and a few questions - i've seen all the >> "evidence" most of it is, we've seen the moon rock, or we saw the pictures >> on TV and that's it even Mythbusters used the simplest strawman argument. >> >> >> Here are the Astronauts in the post "landing" press conference >> >> They are so elated looking at each other to see if tghey are puttijng a >> foot wrong - wait for >> >> https://www.youtube.com/watch?v=-RcKLAo62Ro >> >> This is a classic 52 seconds >> https://www.youtube.com/watch?v=xyjppxh2-C0 >> >> Armstrong is asked if he ever saw stars from the surface of the moon... >> Collins answers" I dont remember seeing any". Collins was never on the >> surface of the moon....he was allegedly "orbiting" the moon, it was not his >> question to answer. >> >> It was basically done because America lost face with SputnK - the Cold war >> was going on - I don't doubt Kennedy believed they could do it when he made >> that speech. >> >> They could'nt so a "FEW" top people got together - remember this is for >> your country - all the astronauts were military men. You farm it out to >> many companies - so everythingh is on a need to know. You give $40 billion >> dollars - we can't do it but we can fake it for $2 billion thank you very >> much. >> >> Most of the workers at NASAgenuinely believed it - I sure did and I wasn't >> involved in helping out. >> >> Now here is the BEST 9 minute video which shows you NASA people *admitting* >> they don't know how they did it in 1969. >> https://www.youtube.com/watch?v=DpPMoIv1lxI&t=22s >> >> >> I have more questions and other anomalies not in here but that's for >> another day. >> >> >> This video from 3:22 onwards shows that they have also faked certain >> Shuttle exercises. Here the shuttle is "in space" with a man's face in view >> for about 5 seconds is priceless - Gerry Anderson would be proud >> https://www.youtube.com/watch?v=h9i8tMzxIn0&index=1&t=254s&list=FL0uijsHtSIJz8eE6CrUECIw >> >> Don't get me wrong they have sent shuttles up in Space (but never higher >> than 400 Miles) , but some of the stuff they say they did with it are >> models - tell me I'm wrong but watch the video first >> >> >> If you want my take on the secrecy issue I might expand - "A man convinced >> against his will is of the same opinion still". >> >> Regards Lagi >> >> >> p.s >> >> If nothing else just listen to the 13 seconds here at 5:43 >> >> https://www.youtube.com/watch?v=DpPMoIv1lxI&t=22s >> >> >> >> >> >> >> >> >> >> >> >> On 3 October 2017 at 21:17, Bob Sneidar via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Nice article, but his example of the Snowden revelations actually proves >>> my point. >>> >>> Bob S >>> >>> >>>> On Oct 3, 2017, at 12:20 , Richard Gaskin via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>>> >>>> Bob Sneidar wrote: >>>> >>>>> Well then the REAL miracle to the moon launch is how Nasa either >>>>> deceived the thousands of people who worked on the project, and keeps >>>>> them deceived to this day, or else were able to keep all those >>>>> thousands of people from talking or writing a book. >>>> >>>> Arithmetically unlikely: >>>> >>>> https://phys.org/news/2016-01-equation-large-scale- >>> conspiracies-quickly-reveal.html >>>> >>>> -- >>>> Richard Gaskin >>>> Fourth World Systems >>>> Software Design and Development for the Desktop, Mobile, and the Web >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 5 12:43:19 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 5 Oct 2017 19:43:19 +0300 Subject: [OT] Alternative to Inkscape In-Reply-To: References: <740af1db-9bde-7625-3689-b4d861e65501@fourthworld.com> Message-ID: At this point I can be really bitchy and ask why LiveCode is so daft as to have top-down numbers on the stack: sure slowed things down for my kids working with LiveCode in the Summer. Richmond. On 10/5/17 6:08 pm, Bob Sneidar via use-livecode wrote: > I suppose, but consider that we learned graphs all through school with a bottom up left to right coordinate system, so that seems to me more natural. Also with top down systems, you have to think that left to right numbers go up, but top down numbers go up. So down is up. Kinda like Pirates of the Caribbean. > > Bob S > > >> On Oct 5, 2017, at 07:58 , Richard Gaskin via use-livecode wrote: >> >> Alejandro Tejada wrote: >> >>> In my humble opinion, after 12 years it has to be easier >>> to convince WC3 to change the SVG standard and adopt >>> Inkscape bottomleft page origin... :D >> If there needs to be a bad guy here maybe the better finger-wagging would be toward John Warnock, for approving a Postscript spec that uses a coordinate system unlike anything else in the computing world, bifurcating the software landscape into bottom-zero and top-zero camps. >> >> And ever since the Postscript licensing debacle which eventually prompted everyone else to join together to replace Postscript fonts with TrueType (not to mention the dismally wonky PDF format), who doesn't enjoy picking on Warnock? ;) >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 5 12:44:09 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 5 Oct 2017 19:44:09 +0300 Subject: [ANN] Release 8.1.7 RC-3 In-Reply-To: References: Message-ID: <94744c3e-f71c-e88e-2c3d-5a2f36b81bb3@gmail.com> That was suspiciously quick. Richmond. On 10/5/17 6:35 pm, panagiotis merakos via use-livecode wrote: > Dear list members, > > We are pleased to announce the release of LiveCode 8.1.7 RC-3. > > Getting the Release > =================== > You can get the release at https://downloads.livecode.com/livecode/ or via > the automatic updater. > > > Release Contents > ================ > > LiveCode 8.1.7 RC-3 contains an important change: > > Using Xcode 9 for building iOS standalones in LiveCode 8.1.7 RC-3 now > creates a universal binary, i.e. the binary contains both a 32bit slice and > a 64bit slice. This means that you can install it in older Apple devices > that have a 32bit chip (and thus require the app to have a 32bit slice), > such as iPhone 5, iPhone 5c and 4th gen iPad. > > This was not possible in LiveCode 8.1.7 RC-2. > > > Feedback > ======== > Please report any bugs encountered on our BugZilla at > http://quality.livecode.com/ > > > 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 merakosp at gmail.com Thu Oct 5 13:49:27 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Thu, 5 Oct 2017 18:49:27 +0100 Subject: [ANN] Release 8.1.7 RC-3 In-Reply-To: <94744c3e-f71c-e88e-2c3d-5a2f36b81bb3@gmail.com> References: <94744c3e-f71c-e88e-2c3d-5a2f36b81bb3@gmail.com> Message-ID: Hehe, this is because the issue was discovered suspiciously fast :) Best, Panos -- PS this issue affected only people who are on Sierra or High Sierra and build iOS apps using xcode 9 On Oct 5, 2017 17:44, "Richmond Mathewson via use-livecode" < use-livecode at lists.runrev.com> wrote: > That was suspiciously quick. > > Richmond. > > On 10/5/17 6:35 pm, panagiotis merakos via use-livecode wrote: > >> Dear list members, >> >> We are pleased to announce the release of LiveCode 8.1.7 RC-3. >> >> Getting the Release >> =================== >> You can get the release at https://downloads.livecode.com/livecode/ or >> via >> the automatic updater. >> >> >> Release Contents >> ================ >> >> LiveCode 8.1.7 RC-3 contains an important change: >> >> Using Xcode 9 for building iOS standalones in LiveCode 8.1.7 RC-3 now >> creates a universal binary, i.e. the binary contains both a 32bit slice >> and >> a 64bit slice. This means that you can install it in older Apple devices >> that have a 32bit chip (and thus require the app to have a 32bit slice), >> such as iPhone 5, iPhone 5c and 4th gen iPad. >> >> This was not possible in LiveCode 8.1.7 RC-2. >> >> >> Feedback >> ======== >> Please report any bugs encountered on our BugZilla at >> http://quality.livecode.com/ >> >> >> 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 brahma at hindu.org Thu Oct 5 16:45:43 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 5 Oct 2017 20:45:43 +0000 Subject: Segmented Control Bugs? In-Reply-To: References: <7E734610-AD3C-4367-AA4E-7A105BFF186A@hindu.org> <80744AED-8DA5-4505-8F0C-CDE66E181D62@hindu.org> Message-ID: <6EEA39F1-3C71-4EE3-A1B0-AA8601E44BBB@hindu.org> LC team: Thanks for getting the docs fixed? can we go back on point? Bug still stands The segmented still seems to be "globally enabled" and "hears" the hilitedChanged msg from "across the universe" -- when card is opened even though no handler is checking that property -- even from a top stack A when the stack with the segmentedcontrol is a substack B which is still open "behind" -- clicking on a widget on the top stack A (with hilited checked) .. the segmentedControl in substack B which has a script like this on hiliteChanged put the hilitedItemNames of me into tName put tName into sPreviousSelection answer tName with "OK" #DoSomething end hiliteChanged fires.. and you get the answer dialog. I just wanted to see if that was an oddity I had created or if this is what you see also. (anybody) On 10/3/17, 10:18 AM, "use-livecode on behalf of Ali Lloyd via use-livecode" wrote: Oh, looks like the docs for the segmented control have become mangled somehow... perhaps a mis-merge. From merakosp at gmail.com Thu Oct 5 16:50:40 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Thu, 5 Oct 2017 21:50:40 +0100 Subject: Segmented Control Bugs? In-Reply-To: <6EEA39F1-3C71-4EE3-A1B0-AA8601E44BBB@hindu.org> References: <7E734610-AD3C-4367-AA4E-7A105BFF186A@hindu.org> <80744AED-8DA5-4505-8F0C-CDE66E181D62@hindu.org> <6EEA39F1-3C71-4EE3-A1B0-AA8601E44BBB@hindu.org> Message-ID: Hi Brahmanathaswami, What you see is a bug, see this report: http://quality.livecode.com/show_bug.cgi?id=20509 Best, Panos -- On Thu, Oct 5, 2017 at 9:45 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > LC team: Thanks for getting the docs fixed? can we go back on point? > > Bug still stands > > The segmented still seems to be "globally enabled" and "hears" the > hilitedChanged msg from "across the universe" > > -- when card is opened even though no handler is checking that property > -- even from a top stack A when the stack with the segmentedcontrol is a > substack B which is still open "behind" > -- clicking on a widget on the top stack A (with hilited checked) .. the > segmentedControl in substack B which has a script like this > > on hiliteChanged > put the hilitedItemNames of me into tName > put tName into sPreviousSelection > answer tName with "OK" > #DoSomething > end hiliteChanged > > fires.. and you get the answer dialog. > > I just wanted to see if that was an oddity I had created or if this is > what you see also. (anybody) > > > On 10/3/17, 10:18 AM, "use-livecode on behalf of Ali Lloyd via > use-livecode" use-livecode at lists.runrev.com> wrote: > > Oh, looks like the docs for the segmented control have become mangled > somehow... perhaps a mis-merge. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 5 17:29:05 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 5 Oct 2017 14:29:05 -0700 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: <9DB2BA3B-8F8E-4112-AF09-A95EC8755C3A@all-auctions.com> References: <22296B03-DD7D-458F-8EB0-D5A52ADDA8DD@iotecdigital.com> <7F5EA5CA-C9A1-4A8B-80BE-73EB20565200@all-auctions.com> <9DB2BA3B-8F8E-4112-AF09-A95EC8755C3A@all-auctions.com> Message-ID: <397feddf-4d98-bf7b-5861-b45596206d1a@sonic.net> On 10/05/2017 09:26 AM, Rick Harrison via use-livecode wrote: > Hi Roger, > > They failed to mention LiveCode though, which was disappointing. > If anyone writes a software package with LiveCode so that we > can duplicate the laser reflector experiment, let me know! ;-) Yeah. That would be bitchin'. ...long as we don't blow up the moon. -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Thu Oct 5 17:39:21 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 5 Oct 2017 21:39:21 +0000 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: <397feddf-4d98-bf7b-5861-b45596206d1a@sonic.net> References: <22296B03-DD7D-458F-8EB0-D5A52ADDA8DD@iotecdigital.com> <7F5EA5CA-C9A1-4A8B-80BE-73EB20565200@all-auctions.com> <9DB2BA3B-8F8E-4112-AF09-A95EC8755C3A@all-auctions.com> <397feddf-4d98-bf7b-5861-b45596206d1a@sonic.net> Message-ID: The moon is a myth. ;-) Bob S > On Oct 5, 2017, at 14:29 , Mark Wieder via use-livecode wrote: > > On 10/05/2017 09:26 AM, Rick Harrison via use-livecode wrote: >> Hi Roger, >> They failed to mention LiveCode though, which was disappointing. >> If anyone writes a software package with LiveCode so that we >> can duplicate the laser reflector experiment, let me know! ;-) > > Yeah. That would be bitchin'. > ...long as we don't blow up the moon. > > -- > Mark Wieder > ahsoftware at gmail.com From index at kenjikojima.com Thu Oct 5 17:43:46 2017 From: index at kenjikojima.com (Kenji Kojima) Date: Thu, 5 Oct 2017 17:43:46 -0400 Subject: How do I play sound files in HTML5? Message-ID: <3EB295AA-2DA9-4A2A-9046-D37DBED0AF88@kenjikojima.com> Hi, I can not play a sound file in HTML5. Did anybody play a sound file in HTML? I tried the tutorial ?Play sound files in HTML5?. http://lessons.livecode.com/m/4071/l/742506-how-do-i-play-sound-files-in-html5 This is the url I made. http://kenjikojima.com/HTML5PlaySound/HTML5PlaySound.html I made exactly same stack and added to the in the HTML file. The sound file name is "piano-melody.wav?, and put it into the same folder. I use macOS LiveCode Indy Edition 8.1.6. This is a JavaScript test file. http://kenjikojima.com/HTML5PlaySound/jsTest.html It works. Thanks, -- Kenji Kojima / ???? http://kenjikojima.com From ahsoftware at sonic.net Thu Oct 5 17:49:11 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 5 Oct 2017 14:49:11 -0700 Subject: not really OT: The Coming Software Apocalypse In-Reply-To: References: <22296B03-DD7D-458F-8EB0-D5A52ADDA8DD@iotecdigital.com> <817479B2-4047-4397-8154-3E9EE21CF78C@jhjensen.com> Message-ID: <022b6d61-9b4d-155b-6413-45aceb11c291@sonic.net> On 10/05/2017 09:32 AM, Heather Laine via use-livecode wrote: > I think probably the time has come to end this admittedly entertaining thread. Thanks, Heather. Time to put this one to bed. -- Mark Wieder ahsoftware at gmail.com From hh at hyperhh.de Thu Oct 5 19:16:58 2017 From: hh at hyperhh.de (hh) Date: Fri, 6 Oct 2017 01:16:58 +0200 Subject: How do I play sound files in HTML5? Message-ID: <49F8D80C-B094-4FDB-A3BF-1BF5D4044D42@hyperhh.de> Hi, do as "javascript" was introduced not before LC 9.0.0-dp4. Get additional info here (=subforum HTML5): http://forums.livecode.com/viewtopic.php?p=155667#p155667. From index at kenjikojima.com Thu Oct 5 20:42:25 2017 From: index at kenjikojima.com (Kenji Kojima) Date: Thu, 5 Oct 2017 20:42:25 -0400 Subject: How do I play sound files in HTML5? In-Reply-To: <49F8D80C-B094-4FDB-A3BF-1BF5D4044D42@hyperhh.de> References: <49F8D80C-B094-4FDB-A3BF-1BF5D4044D42@hyperhh.de> Message-ID: <272534D8-A702-402B-B28F-FE61C68C890A@kenjikojima.com> Thanks. I will try. -- Kenji Kojima / ???? http://kenjikojima.com > On Oct 5, 2017, at 7:16 PM, hh via use-livecode wrote: > > Hi, > > do as "javascript" was introduced not before LC 9.0.0-dp4. > > Get additional info here (=subforum HTML5): > http://forums.livecode.com/viewtopic.php?p=155667#p155667. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Thu Oct 5 20:44:58 2017 From: hh at hyperhh.de (hh) Date: Fri, 6 Oct 2017 02:44:58 +0200 Subject: How do I play sound files in HTML5? Message-ID: <1B11C098-1CE3-4301-B278-8B1D2916A859@hyperhh.de> Hi Kenji, looked at http://kenjikojima.com, I had seen that before. Your approach is *very* interesting and your work is *very* impressing. Please show us your future artwork in that field using LiveCode_9 at HTML5. Hermann p.s. The HTML5-forum may be better for discussions because it allows (small) attachments. From hh at hyperhh.de Thu Oct 5 20:51:55 2017 From: hh at hyperhh.de (hh) Date: Fri, 6 Oct 2017 02:51:55 +0200 Subject: How do I play sound files in HTML5? Message-ID: <5DE4D28C-7C37-4188-B452-BCFFE1711F3D@hyperhh.de> [Once again. Without typos.] Hi Kenji, looked at http://kenjikojima.com I had seen that before. Your approach is *very* interesting and your work is *very* impressing. Please show us your future artwork in that field using LiveCode 9 / HTML5. Hermann p.s. The LiveCode/HTML5-forum may be better for discussions because it allows (small) attachments. From index at kenjikojima.com Thu Oct 5 21:07:46 2017 From: index at kenjikojima.com (Kenji Kojima) Date: Thu, 5 Oct 2017 21:07:46 -0400 Subject: How do I play sound files in HTML5? In-Reply-To: <5DE4D28C-7C37-4188-B452-BCFFE1711F3D@hyperhh.de> References: <5DE4D28C-7C37-4188-B452-BCFFE1711F3D@hyperhh.de> Message-ID: Hermann, I started making HTML5_Stacks from this afternoon. I have to learn basic scripts. But I cannot find HTML5 tutorials. I will see the HTML5-forum. -- Kenji Kojima / ???? http://kenjikojima.com > On Oct 5, 2017, at 8:51 PM, hh via use-livecode wrote: > > [Once again. Without typos.] > > Hi Kenji, > > looked at > http://kenjikojima.com > I had seen that before. Your approach is *very* interesting > and your work is *very* impressing. Please show us your future > artwork in that field using LiveCode 9 / HTML5. > > Hermann > > p.s. The LiveCode/HTML5-forum may be better for discussions > because it allows (small) attachments. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hlowe at me.com Fri Oct 6 00:57:15 2017 From: hlowe at me.com (hlowe) Date: Thu, 5 Oct 2017 21:57:15 -0700 (MST) Subject: [ANN] Release 8.1.7 RC-3 In-Reply-To: References: <94744c3e-f71c-e88e-2c3d-5a2f36b81bb3@gmail.com> Message-ID: <1507265835664-0.post@n4.nabble.com> As Apple no longer supports running 32 bit apps under iOS 11, would it be possible to make including a 32 bit slice optional, as defaulting to universal binaries almost doubles the size of the app bundle (my app went from 18 MB when built with LC 8.1.7 RC-2 to 31 MB when built with LC 8.1.7 RC-3. Ideally in iOS Application Settings one could choice from : (1) Build universal binary; (2) Build 64 bit binary only; (3) Build 32 bit binary only. Henry -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From james at thehales.id.au Fri Oct 6 03:41:21 2017 From: james at thehales.id.au (James At The Hale) Date: Fri, 6 Oct 2017 18:41:21 +1100 Subject: Expanded dictionary in LC 9 Message-ID: <509FFC0D-46F9-45DA-B482-98A25EE9152D@thehales.id.au> I knew there was work behind the scenes with the documentation but not to this extent. While reinstating some formatting on the make docset stack I discovered than under LC 8.2 and below an enquiry to the dictionary yields 3940 entries In LC 9 dp9 the same enquiry yields 5646. A quick look reveals that one aspect of this expansion is the inclusion of synonyms. The glossary appears to be greatly expanded too. James From mark at livecode.com Fri Oct 6 04:52:51 2017 From: mark at livecode.com (Mark Waddingham) Date: Fri, 06 Oct 2017 10:52:51 +0200 Subject: Expanded dictionary in LC 9 In-Reply-To: <509FFC0D-46F9-45DA-B482-98A25EE9152D@thehales.id.au> References: <509FFC0D-46F9-45DA-B482-98A25EE9152D@thehales.id.au> Message-ID: On 2017-10-06 09:41, James At The Hale via use-livecode wrote: > I knew there was work behind the scenes with the documentation but not > to this extent. > > While reinstating some formatting on the make docset stack I > discovered than under LC 8.2 and below an enquiry to the dictionary > yields 3940 entries > > In LC 9 dp9 the same enquiry yields 5646. > > A quick look reveals that one aspect of this expansion is the > inclusion of synonyms. > The glossary appears to be greatly expanded too. Brian Milby (thanks Brian!) has been working on the docs in this regard - things will change again in dp-10. He found a better way to handle synonyms and such, which doesn't require duplicating entries: https://github.com/livecode/livecode-ide/pull/1765 The initial version (in dp-9 or dp-8) handled synonyms by making duplicate doc entries; in dp-10 it has been changed so that searches and such use the synonym info without duplicating them. Warmest Regards, Mark. P.S. Also thanks to all of you who have been helping improve the dictionary with the tweaks and changes which have been continually submitted to it - the content and formatting of them is getting better all the time! -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Fri Oct 6 05:51:47 2017 From: mark at livecode.com (Mark Waddingham) Date: Fri, 06 Oct 2017 11:51:47 +0200 Subject: [ANN] Release 8.1.7 RC-3 In-Reply-To: <1507265835664-0.post@n4.nabble.com> References: <94744c3e-f71c-e88e-2c3d-5a2f36b81bb3@gmail.com> <1507265835664-0.post@n4.nabble.com> Message-ID: On 2017-10-06 06:57, hlowe via use-livecode wrote: > As Apple no longer supports running 32 bit apps under iOS 11, would it > be > possible to make including a 32 bit slice optional, as defaulting to > universal binaries almost doubles the size of the app bundle (my app > went > from 18 MB when built with LC 8.1.7 RC-2 to 31 MB when built with LC > 8.1.7 > RC-3. Ideally in iOS Application Settings one could choice from : (1) > Build > universal binary; (2) Build 64 bit binary only; (3) Build 32 bit binary > only. I believe the iTunes store automatically removes unnecessary slices from apps *before* they get downloaded onto a user's phone (and I wouldn't be surprised if this also happens when transferring the app locally through Xcode / iTunes - although this is somewhat difficult to check without a rooted iOS device!). The current situation from the S/B's point of view is this: 1) If the min iOS version in the S/B is set to iOS 11, then only a 64-bit slice will be included and it will only work on devices which have iOS 11 2) If the '32-bit only' checkbox is set, then the S/B will only include a 32-bit slice - this is to support iPad 1 (it was added to support a few customers who were having to support iPad 1's in their apps after Apple added the 64-bit option - we're not sure if anyone is still using it which is why it is still there). 3) Otherwise the S/B will include a 32-bit and 64-bit slice. This means that the app can run on devices older than the iPhone 5s (which was the first to run in 64-bit mode). The reason the 32-bit slice is still needed is that the (32-bit only) iPhone 5 and iPhone 5C can run up to iOS 10 - so *not* including it would exclude those devices from being able to use your app. To rephrase (for clarity) - the slices required in an iOS app are determined by the min iOS version you have set in the S/B with the remit of supporting as many devices as possible. So the question is whether we actually need an explicit toggle - or whether it is better for the S/B to just do the right thing (as it does at the moment) based on iOS target version... Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Fri Oct 6 08:35:54 2017 From: mark at livecode.com (Mark Waddingham) Date: Fri, 06 Oct 2017 14:35:54 +0200 Subject: Grouping Controls in selectGroupedControls mode Message-ID: <9f7cd2216daf6ef04ad3dcbb088cc919@livecode.com> Hi all, I just wondered if anyone had any thoughts on this report: http://quality.livecode.com/show_bug.cgi?id=20511 The summary of the report is that when a 'group' operation fails you only get a 'beep' and no indication as to why the failure occurred. Group operations will fail if the owner of all controls being grouped is not the same - I think this is a reasonable restriction, as otherwise it would be very easy to break things by accidentally grouping controls you did not intend. Obviously, the obvious 'fix' is to make it so that the 'Group' operation in the IDE is disabled if the owner-rule is violated. However, whilst perhaps clearer in the sense you would know ahead of time whether you can group, it still does not help you work out *why* you cannot group. One thought I had here was whether a visual indication of the ownership of selected controls in 'selectGroupedControls' mode might help - basically perhaps painting a subtle border around the owning groups of each selected object. Of course, this might just be highlighting the fact that 'selectGroupedControls' mode in LiveCode is perhaps somewhat 'non-standard'. For example Pages (which just happened to be a convenient app I have installed which does grouping and such) works quite differently: Clicking on a grouped object selects the group. Double-clicking on a object within the selected group will select the object, or the next nested group if the object is within the group. You can only select object / groups together which have the same owner. You can select a nested object directly by doing an 'n-click' - where n is the nesting of the group When a nested object is selected, its immediate owning group has a border around it (grey, rather than the blue of the selected border). When you create an object it is created in the currently selected group of the group which directly contains the selected object. Of course, the last rule here exposes a distinct difference in the way things are created in Pages compared to LiveCode - in LiveCode, the 'object tools' allow you to click-drag-create; whereas in Pages it is click to create at standard size and then edit. So, anyway, perhaps just making the 'Group' operation enabled/disabled based on selected objects is the most reasonable thing to do now. However, it would be nice to imagine how selectGroupedControls could actually be eliminated - as it (together with 'Edit Group mode') are, well, just plain odd when viewed from the eyes of someone coming from other tools which have the concept of object and group. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From benr_mc at cogapp.com Fri Oct 6 09:38:11 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 6 Oct 2017 14:38:11 +0100 Subject: HTTP PUT? Message-ID: We can perform an HTTP GET using "get URL xxx" We can perform an HTTP POST using "post yy to xxx" How can we perform an HTTP PUT? TIA, Ben From mark at livecode.com Fri Oct 6 09:40:38 2017 From: mark at livecode.com (Mark Waddingham) Date: Fri, 06 Oct 2017 15:40:38 +0200 Subject: HTTP =?UTF-8?Q?PUT=3F?= In-Reply-To: References: Message-ID: <59afa52bec4cc21e33513ed0fba71e9a@livecode.com> On 2017-10-06 15:38, Ben Rubinstein via use-livecode wrote: > We can perform an HTTP GET using "get URL xxx" > > We can perform an HTTP POST using "post yy to xxx" > > How can we perform an HTTP PUT? Using 'put': put zz into url xxx Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From johnpatten at me.com Fri Oct 6 12:37:22 2017 From: johnpatten at me.com (JOHN PATTEN) Date: Fri, 06 Oct 2017 09:37:22 -0700 Subject: Beginners Guide? Message-ID: <206C3A26-4FB0-439D-A810-3252F950229E@me.com> Hi All, I?m going to be doing some short introductions to some of our teachers about LiveCode. I was reviewing the support resources, specifically the Beginners Guide. The info seems to need a bit of an update. Is there another link with a more current Beginners Guide? i.e.. General To use LiveCode you will need: 1024?768 or larger monitor True color display (16-bit or 32-bit depth) At least 256Mb of memory At least 150Mb of disk space (is this still accurate?) Windows LiveCode supports the following versions of Windows: Windows 2000 SP4 Windows XP SP2 and above Windows Server 2003 Windows Vista SP1 and above (both 32-bit and 64-bit) Windows 7 (both 32-bit and 64-bit) Windows Server 2008 Windows 8 and 8.1 Desktop Additionally, QuickTime 7 or later is required for most multimedia features. Mac OS X LiveCode supports the following versions of Mac OS X: 10.3.9 (Panther) on PowerPC 10.4.11 (Tiger) on Intel and PowerPC 10.5.8 and later (Leopard) on Intel and PowerPC 10.6.x (Snow Leopard) on Intel 10.7.x (Lion) 10.8.x (Mountain Lion) 10.9.x (Mavericks) 10.10 (Yosemite) Linux The minimal requirements for LiveCode to run on Linux are: 32-bit installation, or a 64-bit linux distribution that has a 32-bit compatibility layer 2.4.x or later kernel glibc 2.3.2 or later X11R5 capable Xserver running locally on a 24-bit display compositing window manager (optional ? required for alpha-blended window shapes) gtk/gdk/glib (optional ? required for native theme support) pango/xft (optional ? required for pdf printing, anti-aliased text and unicode font support) lcms (optional ? required for color profile support in JPEGs and PNGs) gksu (optional ? required for elevate process support) mplayer (optional ? required for video playback) esd (optional ? required for audio playback) Thank you! John Patten SUSD From devin_asay at byu.edu Fri Oct 6 13:09:33 2017 From: devin_asay at byu.edu (Devin Asay) Date: Fri, 6 Oct 2017 17:09:33 +0000 Subject: Beginners Guide? In-Reply-To: <206C3A26-4FB0-439D-A810-3252F950229E@me.com> References: <206C3A26-4FB0-439D-A810-3252F950229E@me.com> Message-ID: John, The best place to get the most up-to-date platform support is in the release notes. Here?s what is in the release notes for 8.1.7RC3: Windows LiveCode supports the following versions of Windows: Windows XP SP2 and above Windows Server 2003 Windows Vista SP1 and above (both 32-bit and 64-bit) Windows 7 (both 32-bit and 64-bit) Windows Server 2008 Windows 8.x (Desktop) Windows 10 Note: On 64-bit Windows installations, LiveCode runs as a 32-bit application through the WoW layer. Linux LiveCode supports the following Linux distributions, on 32-bit or 64-bit Intel/AMD or compatible processors: Ubuntu 14.04 and 16.04 Fedora 23 & 24 Debian 7 (Wheezy) and 8 (Jessie) [server] CentOS 7 [server] LiveCode may also run on Linux installations which meet the following requirements: Required dependencies for core functionality: glibc 2.13 or later glib 2.0 or later Optional requirements for GUI functionality: GTK/GDK 2.24 or later Pango with Xft support esd (optional, needed for audio output) mplayer (optional, needed for media player functionality) lcms (optional, required for color profile support in images) gksu (optional, required for privilege elevation support) Note: If the optional requirements are not present then LiveCode will still run but the specified features will be disabled. Note: The requirements for GUI functionality are also required by Firefox and Chrome, so if your Linux distribution runs one of those, it will run LiveCode. Note: It may be possible to compile and run LiveCode Community for Linux on other architectures but this is not officially supported. Mac The Mac engine supports: 10.6.x (Snow Leopard) on Intel 10.7.x (Lion) on Intel 10.8.x (Mountain Lion) on Intel 10.9.x (Mavericks) on Intel 10.10.x (Yosemite) on Intel 10.11.x (El Capitan) on Intel 10.12.x (Sierra) on Intel This could easily be updated in the Beginners Guide using Git, but it seems like there ought be an automatic way to update the guide as the release notes are published. Devin On Oct 6, 2017, at 10:37 AM, JOHN PATTEN via use-livecode > wrote: Hi All, I?m going to be doing some short introductions to some of our teachers about LiveCode. I was reviewing the support resources, specifically the Beginners Guide. The info seems to need a bit of an update. Is there another link with a more current Beginners Guide? i.e.. General To use LiveCode you will need: 1024?768 or larger monitor True color display (16-bit or 32-bit depth) At least 256Mb of memory At least 150Mb of disk space (is this still accurate?) Windows LiveCode supports the following versions of Windows: Windows 2000 SP4 Windows XP SP2 and above Windows Server 2003 Windows Vista SP1 and above (both 32-bit and 64-bit) Windows 7 (both 32-bit and 64-bit) Windows Server 2008 Windows 8 and 8.1 Desktop Additionally, QuickTime 7 or later is required for most multimedia features. Mac OS X LiveCode supports the following versions of Mac OS X: 10.3.9 (Panther) on PowerPC 10.4.11 (Tiger) on Intel and PowerPC 10.5.8 and later (Leopard) on Intel and PowerPC 10.6.x (Snow Leopard) on Intel 10.7.x (Lion) 10.8.x (Mountain Lion) 10.9.x (Mavericks) 10.10 (Yosemite) Linux The minimal requirements for LiveCode to run on Linux are: 32-bit installation, or a 64-bit linux distribution that has a 32-bit compatibility layer 2.4.x or later kernel glibc 2.3.2 or later X11R5 capable Xserver running locally on a 24-bit display compositing window manager (optional ? required for alpha-blended window shapes) gtk/gdk/glib (optional ? required for native theme support) pango/xft (optional ? required for pdf printing, anti-aliased text and unicode font support) lcms (optional ? required for color profile support in JPEGs and PNGs) gksu (optional ? required for elevate process support) mplayer (optional ? required for video playback) esd (optional ? required for audio playback) Thank you! John Patten SUSD _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Director Office of Digital Humanities Brigham Young University From brahma at hindu.org Fri Oct 6 15:03:55 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 6 Oct 2017 19:03:55 +0000 Subject: Grouping Controls in selectGroupedControls mode In-Reply-To: <9f7cd2216daf6ef04ad3dcbb088cc919@livecode.com> References: <9f7cd2216daf6ef04ad3dcbb088cc919@livecode.com> Message-ID: @ Mark As one who is constantly switching from Indesign (editorial work for our magazine) and Livecode My testimony is I can't tell you often I "bark" at indesign "why on earth can't I change the properties of a single object in a group without ungrouping! like we can do in Livecode!" So what you describe as "non-standard" I see has a huge plus. That said, I agree there are frequent times (and lots of wasted time) ensuing from the "condition" in selectGroupControls where all the objects become untethered from their group. If but people work in in different ways, so possibly you will need to use preferences. The typical work flow I find, both in Indesign and in Livecode Phase one: creating the Layout/UI/UX -- # Now we doing a lot of testing creation of groups, adding objects, one is more focused on the overall layout architecture and structure, if some objects/controls in a group are not quite right yet, you tend to ignore this saying to yourself "I will tweak all the eye candy later" and if you scripting architecture is picking the target higher up the msg path 80% of the objects may have no script at all. so you are never editing scripts of objects? working in the card script, the stackscript or a external text only behavior etc. more and more I am never touching any script of any object (which still surprises me) in this environment the model you describe as in Pages has utility. It keeps us from creating weird issues we face, Where the "sankalpa" - intention is to be creating objects in a group or add an object to an existing group, there a too many caveats right now. I frequently end up with an object that appears outside the intended group. One has to train oneself to constantly to toggle the selectGroupedControls on and off, and if you miss it just once, suddenly you have a new object on the card outside all groups. relayering in deeply nested groups is too tricky: select, cut, switch off selectGroupControls edit, edit, now in nested group: paste. So this behavior would seem useful: Mark: "Double-clicking on a object within the selected group will select the object, or the next nested group if the object is within the group." And Yes this! " When you create an object it is created in the currently selected group of the group which directly contains the selected object. I like this too?"When a nested object is selected, its immediate owning group has a border around it (grey, rather than the blue of the selected border Though Richard is concerned about adding more default border treatments for apps that use the pointer too: which is a valid point. Yes " So, anyway, perhaps just making the 'Group' operation enabled/disabled based on selected objects is the most reasonable thing to do now." ---------- But not this! "However, it would be nice to imagine how selectGroupedControls could actually be eliminated" Ouch: think carefully before eliminating what is a huge plus/feature for LC over the "other tools" people are coming from. Phase 2 OK most of the UI/UX architecture is locked in, the UX designer's interface is all laid out. Stack holders reviewed signed off "OK looks good, lets go with it like this." NOW! I want to be able to select any object at any time, sometime even object in different groups.. go to align, align left, move over 5 pointes etc? and typically run with "selectGroupedControls" on? for days at a stretch. And of course sometimes we toggle back and forther between phase 1 (create UI/UX) and phase 2 (tweaks objects, work on scripts) In the course of several sessions in a single day. Just my two avocados from Kauai BR On 10/6/17, 2:36 AM, "use-livecode on behalf of Mark Waddingham via use-livecode" wrote: When you create an object it is created in the currently selected group of the group which directly contains the selected object. Of course, the last rule here exposes a distinct difference in the way things are created in Pages compared to LiveCode - in LiveCode, the 'object tools' allow you to click-drag-create; whereas in Pages it is click to create at standard size and then edit. So, anyway, perhaps just making the 'Group' operation enabled/disabled based on selected objects is the most reasonable thing to do now. However, it would be nice to imagine how selectGroupedControls could actually be eliminated - as it (together with 'Edit Group mode') are, well, just plain odd when viewed from the eyes of someone coming from other tools which have the concept of object and group. Warmest Regards, Mark. From hlowe at me.com Fri Oct 6 20:06:01 2017 From: hlowe at me.com (hlowe) Date: Fri, 6 Oct 2017 17:06:01 -0700 (MST) Subject: [ANN] Release 8.1.7 RC-3 In-Reply-To: References: <94744c3e-f71c-e88e-2c3d-5a2f36b81bb3@gmail.com> <1507265835664-0.post@n4.nabble.com> Message-ID: <1507334761879-0.post@n4.nabble.com> Mark, Thank you for the detailed explanation. Overall the current strategy appears sound. I took a look at Apple's developer info on this topic today and they state: "Slicing is the process of creating and delivering variants of the app bundle for different target devices. A variant contains only the executable architecture and resources that are needed for the target device. You continue to develop and upload full versions of your app to iTunes Connect. The App Store will create and deliver different variants based on the devices your app supports. Xcode simulates slicing during development so you can create and test variants locally. Xcode slices your app when you build and run your app on a device or in Simulator." I compared the size of my iOS app directly installed onto an iPhone 6S (iOS 11, set to run on iOS 10.3 or later) using Xcode 9.0 - with 64 bit slice only (8.1.7 RC-2) and with both 64 bit and 32 bit slices (8.1.7 RC-3). The universal binary on the phone is approximately twice as large as the 64 bit version. I have not found any way to check app size in the simulator. Henry -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From jacque at hyperactivesw.com Fri Oct 6 21:49:00 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 06 Oct 2017 20:49:00 -0500 Subject: Grouping Controls in selectGroupedControls mode In-Reply-To: References: <9f7cd2216daf6ef04ad3dcbb088cc919@livecode.com> Message-ID: <15ef4853460.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I run for days at a time with selectGroupedControls turned on, setting it to false is the exception. It's already possible to align or move any controls together regardless of the groups they are in. While I rarely use the project browser, it's my understanding that you can align and manipulate multiple controls even if they are on different cards or stacks. On October 6, 2017 2:06:10 PM Sannyasin Brahmanathaswami via use-livecode wrote: > NOW! I want to be able to select any object at any time, sometime even > object in different groups.. go to align, align left, move over 5 pointes > etc? and typically run with "selectGroupedControls" on? for days at a stretch. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From capellan2000 at gmail.com Sat Oct 7 01:52:20 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sat, 7 Oct 2017 01:52:20 -0400 Subject: Atkinson dither algorithm Message-ID: Hi All, I am stuck trying to make this code for Bill Atkinson dithering algorithm much more faster. Any ways to speed this code? Follow the recipe and watch out for lines broken by mail character length limit. Recipe: 1) Import an small image (200x200 pixels) and name it as "Image" (you could import a small transparent png or a small jpg image) 2) Optionally, create a scrollbar type slider with a range between 0 and 255. Set the name of this scrollbar as "ThresholdDither" and move the slider to 127 or 0 or 255. 3) Paste the following script in a button and click on it to run this code: on mouseUp put the millisecs into startTime set the cursor to busy put the alphadata of img "Image" into tAlphaData put the imagedata of img "Image" into tVar -- img "Image" could be a grayscale image -- where all 3 channels: Red, Green, Blue -- are identical or a color image where only -- the red channel is used delete char 1 of tVar -- the first char of the imagedata is part -- of the alphadata or maskdata repeat with i = 1 to length(tVar) step 4 put chartonum(char i of tVar) & space after fldhex end repeat delete last char of fldhex -- a space -- fldhex now contains a single channel of the RGB image -- converted to numbers between 0 and 255 put the number of words of fldhex into lenghtofldhex put the width of img "Image" into tImageWidth put the height of img "Image" into tImageHeight repeat with i = 1 to lenghtofldhex step tImageWidth -- We need as many words per line, as pixels contains -- the image width (because each pixel is represented -- by a word and this word is number between 0 and 255) put word i to ( i + ((tImageWidth) - 1)) of fldhex & cr after fldhexa2 end repeat put empty into fldhex delete last char of fldhexa2 -- deleting the last cr character put the number of lines of fldhexa2 into sYsize put the number of words of line 1 of fldhexa2 into sXsize // get the scrollbar value -- tThreshold is a value between 0 and 255 if existence(sb the "ThresholdDither") then put thumbPos of sb the "ThresholdDither" into tThreshold else put 127 into tThreshold end if repeat with tY = 1 to sYsize repeat with tX = 1 to sXsize put tX into tPixelPosition put word (tPixelPosition) of line tY of fldhexa2 into tOldPixelValue if round(tOldPixelValue) <= tThreshold then put 0 into tNewPixelValue else put 255 into tNewPixelValue end if put (tOldPixelValue - tNewPixelValue)/8 into tDifusionError -- Atkinson dither add the diffusion error -- to 6 adjacent pixels -- x o o -- o o o -- o put tNewPixelValue & space after fldhexa3 if tPixelPosition < sXsize then put tDifusionError + word (tPixelPosition + 1) of line tY of fldhexa2 into word (tPixelPosition + 1) of line tY of fldhexa2 if tPixelPosition < (sXsize-1) then put tDifusionError + word (tPixelPosition + 2) of line tY of fldhexa2 into word (tPixelPosition + 2) of line tY of fldhexa2 end if end if if tY < sYsize then if tPixelPosition > 1 then put tDifusionError + word (tPixelPosition - 1) of line tY + 1 of fldhexa2 into word (tPixelPosition - 1) of line tY + 1 of fldhexa2 end if put tDifusionError + word (tPixelPosition) of line tY + 1 of fldhexa2 into word (tPixelPosition) of line tY + 1 of fldhexa2 if tPixelPosition < sXsize then put tDifusionError + word (tPixelPosition + 1) of line tY + 1 of fldhexa2 into word (tPixelPosition + 1) of line tY + 1 of fldhexa2 end if if tY < (sYsize - 1) then put tDifusionError + word (tPixelPosition) of line tY + 2 of fldhexa2 into word (tPixelPosition) of line tY + 2 of fldhexa2 end if end if end repeat end repeat replace "0" with "00" in fldhexa3 replace "255" with "FF" in fldhexa3 repeat with i = 1 to the number of words of fldhexa3 put 00 & word i of fldhexa3 & word i of fldhexa3 & word i of fldhexa3 after tVar2 end repeat put binaryEncode("H*",tVar2) into tVar3 create img set the height of it to the height of img "Image" set the width of it to the width of img "Image" set the imagedata of it to tVar3 set the alphaData of it to tAlphaData put the millisecs - startTime && "milliseconds to create Atkinson Dither" end mouseUp Thanks in advance! Al From capellan2000 at gmail.com Sat Oct 7 02:22:49 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sat, 7 Oct 2017 02:22:49 -0400 Subject: Atkinson dither algorithm In-Reply-To: References: Message-ID: I have posted a demo stack in the forums: https://forums.livecode.com/viewtopic.php?f=10&t=29935 Have a nice weekend! Al On Sat, Oct 7, 2017 at 1:52 AM, Alejandro Tejada wrote: > Hi All, > > I am stuck trying to make this code for Bill Atkinson > dithering algorithm much more faster. > Any ways to speed this code? > Follow the recipe and watch out for lines broken > by mail character length limit. > > Recipe: > > 1) Import an small image (200x200 pixels) and > name it as "Image" (you could import a small > transparent png or a small jpg image) > > 2) Optionally, create a scrollbar type slider > with a range between 0 and 255. > Set the name of this scrollbar as "ThresholdDither" > and move the slider to 127 or 0 or 255. > > 3) Paste the following script in a button and > click on it to run this code: > > on mouseUp > > put the millisecs into startTime > set the cursor to busy > > put the alphadata of img "Image" into tAlphaData > put the imagedata of img "Image" into tVar > -- img "Image" could be a grayscale image > -- where all 3 channels: Red, Green, Blue > -- are identical or a color image where only > -- the red channel is used > > delete char 1 of tVar > -- the first char of the imagedata is part > -- of the alphadata or maskdata > repeat with i = 1 to length(tVar) step 4 > put chartonum(char i of tVar) & space after fldhex > end repeat > delete last char of fldhex -- a space > -- fldhex now contains a single channel of the RGB image > -- converted to numbers between 0 and 255 > > put the number of words of fldhex into lenghtofldhex > put the width of img "Image" into tImageWidth > put the height of img "Image" into tImageHeight > > repeat with i = 1 to lenghtofldhex step tImageWidth > -- We need as many words per line, as pixels contains > -- the image width (because each pixel is represented > -- by a word and this word is number between 0 and 255) > > put word i to ( i + ((tImageWidth) - 1)) of fldhex & cr after fldhexa2 > end repeat > > put empty into fldhex > delete last char of fldhexa2 > -- deleting the last cr character > > put the number of lines of fldhexa2 into sYsize > put the number of words of line 1 of fldhexa2 into sXsize > > // get the scrollbar value > -- tThreshold is a value between 0 and 255 > if existence(sb the "ThresholdDither") then > put thumbPos of sb the "ThresholdDither" into tThreshold > else > put 127 into tThreshold > end if > > repeat with tY = 1 to sYsize > repeat with tX = 1 to sXsize > > put tX into tPixelPosition > > put word (tPixelPosition) of line tY of fldhexa2 into > tOldPixelValue > > if round(tOldPixelValue) <= tThreshold then > put 0 into tNewPixelValue > else > put 255 into tNewPixelValue > end if > > put (tOldPixelValue - tNewPixelValue)/8 into tDifusionError > > -- Atkinson dither add the diffusion error > -- to 6 adjacent pixels > -- x o o > -- o o o > -- o > > put tNewPixelValue & space after fldhexa3 > > > if tPixelPosition < sXsize then > put tDifusionError + word (tPixelPosition + 1) of line tY > of fldhexa2 into word (tPixelPosition + 1) of line tY of fldhexa2 > > > if tPixelPosition < (sXsize-1) then > put tDifusionError + word (tPixelPosition + 2) of line > tY of fldhexa2 into word (tPixelPosition + 2) of line tY of fldhexa2 > end if > > > end if > > > if tY < sYsize then > > > if tPixelPosition > 1 then > put tDifusionError + word (tPixelPosition - 1) of line > tY + 1 of fldhexa2 into word (tPixelPosition - 1) of line tY + 1 of fldhexa2 > end if > > > put tDifusionError + word (tPixelPosition) of line tY + 1 > of fldhexa2 into word (tPixelPosition) of line tY + 1 of fldhexa2 > > > if tPixelPosition < sXsize then > put tDifusionError + word (tPixelPosition + 1) of line > tY + 1 of fldhexa2 into word (tPixelPosition + 1) of line tY + 1 of fldhexa2 > end if > > > if tY < (sYsize - 1) then > put tDifusionError + word (tPixelPosition) of line tY + > 2 of fldhexa2 into word (tPixelPosition) of line tY + 2 of fldhexa2 > end if > > > end if > > end repeat > end repeat > > replace "0" with "00" in fldhexa3 > replace "255" with "FF" in fldhexa3 > > repeat with i = 1 to the number of words of fldhexa3 > put 00 & word i of fldhexa3 & word i of fldhexa3 & word i of > fldhexa3 after tVar2 > end repeat > put binaryEncode("H*",tVar2) into tVar3 > > create img > set the height of it to the height of img "Image" > set the width of it to the width of img "Image" > set the imagedata of it to tVar3 > set the alphaData of it to tAlphaData > > put the millisecs - startTime && "milliseconds to create Atkinson > Dither" > > end mouseUp > > Thanks in advance! > Al > > > From benr_mc at cogapp.com Sat Oct 7 03:19:10 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Sat, 7 Oct 2017 08:19:10 +0100 Subject: Slack library? Message-ID: Has anyone interfaced with Slack using LiveCode? If so, any tips, experience, or code to share? Many thanks, Ben From revolution at derbrill.de Sat Oct 7 09:53:44 2017 From: revolution at derbrill.de (Malte Pfaff-Brill) Date: Sat, 7 Oct 2017 15:53:44 +0200 Subject: Atkinson dither algorithm In-Reply-To: References: Message-ID: <42023B36-0A4E-4251-BB0C-9CD46DE55807@derbrill.de> Hi Al, I already posted on the forums, but for completeness also here: a lot can be done by replacing repeat with with repeat for each where you can. -- repeat with i = 1 to the number of words of fldhexa3 -- put 00 & word i of fldhexa3 & word i of fldhexa3 & word i of fldhexa3 after tVar2 -- end repeat repeat for each word theWord in fldhexa3 put 00 & theword & theword & theword after tVar2 end repeat A sidenode: I always use strict compile mode, therefore I added the needed variable declarations and noticed you use startTime as a variablename, which is a reserved keyword. That is not a good idea. (I noticed, because I managed to freeze liveCode where I fixed only half of the use of startTime. Booom.) Cheers, malte From capellan2000 at gmail.com Sat Oct 7 10:54:34 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sat, 7 Oct 2017 10:54:34 -0400 Subject: Atkinson dither algorithm In-Reply-To: References: Message-ID: Hi Malte, Malte Brill wrote: > I already posted on the forums, but for completeness also here: > a lot can be done by replacing repeat with with repeat for each where you can. > > -- repeat with i = 1 to the number of words of fldhexa3 > -- put 00 & word i of fldhexa3 & word i of fldhexa3 & word i of fldhexa3 after tVar2 > -- end repeat > > repeat for each word theWord in fldhexa3 > put 00 & theword & theword & theword after tVar2 > end repeat This change reduced the time in a 25%! Wonderful. Thanks a lot Malte :-D > I always use strict compile mode, therefore I added the needed variable > declarations and noticed you use startTime as a variablename, which is a > reserved keyword. That is not a good idea. (I noticed, because I managed to > freeze liveCode where I fixed only half of the use of startTime. Booom.) startTime is a property of media players, so I am surprised that LiveCode do not warn me about this. :-o Also, I will try others less complex and simpler dithering algorithms as Floyd-Steinberg and Sierra Lite to measure total time differences. http://www.tannerhelland.com/4660/dithering-eleven-algorithms-source-code/ Malte, Thanks again for taking a look and improve this code! Have a nice weekend! Al From brian at milby7.com Sat Oct 7 11:59:08 2017 From: brian at milby7.com (Brian Milby) Date: Sat, 7 Oct 2017 10:59:08 -0500 Subject: Segmented Control Bugs? In-Reply-To: References: <7E734610-AD3C-4367-AA4E-7A105BFF186A@hindu.org> <80744AED-8DA5-4505-8F0C-CDE66E181D62@hindu.org> <6EEA39F1-3C71-4EE3-A1B0-AA8601E44BBB@hindu.org> Message-ID: I've posted a PR that should address this issue: https://github.com/livecode/livecode/pull/6044 I created a stack with a segmented control with a substack with a segmented control. As you described, the hiliteChanged message was dispatched for both controls upon opening the stack. In my case, I observed the substack message coming first and then the parent stack message. If you would like assistance testing to see if the change corrects your situation, let me know (there should just be 2 files that need to be replaced in your DP9 install). On Thu, Oct 5, 2017 at 3:50 PM, panagiotis merakos via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Brahmanathaswami, > > What you see is a bug, see this report: > > http://quality.livecode.com/show_bug.cgi?id=20509 > > Best, > Panos > -- > > On Thu, Oct 5, 2017 at 9:45 PM, Sannyasin Brahmanathaswami via use-livecode > wrote: > > > LC team: Thanks for getting the docs fixed? can we go back on point? > > > > Bug still stands > > > > The segmented still seems to be "globally enabled" and "hears" the > > hilitedChanged msg from "across the universe" > > > > -- when card is opened even though no handler is checking that property > > -- even from a top stack A when the stack with the segmentedcontrol is a > > substack B which is still open "behind" > > -- clicking on a widget on the top stack A (with hilited checked) .. the > > segmentedControl in substack B which has a script like this > > > > on hiliteChanged > > put the hilitedItemNames of me into tName > > put tName into sPreviousSelection > > answer tName with "OK" > > #DoSomething > > end hiliteChanged > > > > fires.. and you get the answer dialog. > > > > I just wanted to see if that was an oddity I had created or if this is > > what you see also. (anybody) > > > > > > On 10/3/17, 10:18 AM, "use-livecode on behalf of Ali Lloyd via > > use-livecode" > use-livecode at lists.runrev.com> wrote: > > > > Oh, looks like the docs for the segmented control have become mangled > > somehow... perhaps a mis-merge. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From index at kenjikojima.com Sat Oct 7 11:59:43 2017 From: index at kenjikojima.com (Kenji Kojima) Date: Sat, 7 Oct 2017 11:59:43 -0400 Subject: How do I play sound files in HTML5? In-Reply-To: <49F8D80C-B094-4FDB-A3BF-1BF5D4044D42@hyperhh.de> References: <49F8D80C-B094-4FDB-A3BF-1BF5D4044D42@hyperhh.de> Message-ID: Hi, I used LC 9.0.0 (dp9). I could play a sound file. Thanks. It had a strange thing the result of do tScript as ?JavaScript? was ?execution error? though it played. http://kenjikojima.com/HTML5PlaySound/HTML5PlaySound.html How can I hide a black bold belt at the bottom? It?s very ugly. And I don?t need the LiveCode logo at the top left. Thanks, -- Kenji Kojima / ???? http://kenjikojima.com > On Oct 5, 2017, at 7:16 PM, hh via use-livecode wrote: > > Hi, > > do as "javascript" was introduced not before LC 9.0.0-dp4. > > Get additional info here (=subforum HTML5): > http://forums.livecode.com/viewtopic.php?p=155667#p155667. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From johnpatten at me.com Sat Oct 7 12:09:41 2017 From: johnpatten at me.com (JOHN PATTEN) Date: Sat, 07 Oct 2017 09:09:41 -0700 Subject: How do I play sound files in HTML5? In-Reply-To: References: <49F8D80C-B094-4FDB-A3BF-1BF5D4044D42@hyperhh.de> Message-ID: In LiveCode under the Dictionary/Guide, there is a link in the Guide for HTML5. At the bottom of that information is what is required in your html to display the app. It is surprisingly little. LiveCode actually creates an html page that contains, from what I can tell, a considerable amount of html/code just to create the html layout (i.e. loader, images, etc.) Hope that helps! John Patten SUSD Sent from my iPad > On Oct 7, 2017, at 8:59 AM, Kenji Kojima via use-livecode wrote: > > Hi, > I used LC 9.0.0 (dp9). I could play a sound file. Thanks. > > It had a strange thing the result of > do tScript as ?JavaScript? > was ?execution error? though it played. > http://kenjikojima.com/HTML5PlaySound/HTML5PlaySound.html > > How can I hide a black bold belt at the bottom? It?s very ugly. > And I don?t need the LiveCode logo at the top left. > > Thanks, > -- > Kenji Kojima / ???? > http://kenjikojima.com > > > > >> On Oct 5, 2017, at 7:16 PM, hh via use-livecode wrote: >> >> Hi, >> >> do as "javascript" was introduced not before LC 9.0.0-dp4. >> >> Get additional info here (=subforum HTML5): >> http://forums.livecode.com/viewtopic.php?p=155667#p155667. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From index at kenjikojima.com Sat Oct 7 12:36:07 2017 From: index at kenjikojima.com (Kenji Kojima) Date: Sat, 7 Oct 2017 12:36:07 -0400 Subject: How do I play sound files in HTML5? In-Reply-To: References: <49F8D80C-B094-4FDB-A3BF-1BF5D4044D42@hyperhh.de> Message-ID: <51F8718C-0091-481D-85D9-4F7DAC9C8B31@kenjikojima.com> John, I will read the Dictionary/Guide well. Thanks, -- Kenji Kojima / ???? http://kenjikojima.com > On Oct 7, 2017, at 12:09 PM, JOHN PATTEN via use-livecode wrote: > > In LiveCode under the Dictionary/Guide, there is a link in the Guide for HTML5. At the bottom of that information is what is required in your html to display the app. It is surprisingly little. > > LiveCode actually creates an html page that contains, from what I can tell, a considerable amount of html/code just to create the html layout (i.e. loader, images, etc.) > > Hope that helps! > > John Patten > SUSD > > Sent from my iPad > >> On Oct 7, 2017, at 8:59 AM, Kenji Kojima via use-livecode > wrote: >> >> Hi, >> I used LC 9.0.0 (dp9). I could play a sound file. Thanks. >> >> It had a strange thing the result of >> do tScript as ?JavaScript? >> was ?execution error? though it played. >> http://kenjikojima.com/HTML5PlaySound/HTML5PlaySound.html > >> >> How can I hide a black bold belt at the bottom? It?s very ugly. >> And I don?t need the LiveCode logo at the top left. >> >> Thanks, >> -- >> Kenji Kojima / ???? >> http://kenjikojima.com >> >> >> >> >>> On Oct 5, 2017, at 7:16 PM, hh via use-livecode wrote: >>> >>> Hi, >>> >>> do as "javascript" was introduced not before LC 9.0.0-dp4. >>> >>> Get additional info here (=subforum HTML5): >>> http://forums.livecode.com/viewtopic.php?p=155667#p155667. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From heather at livecode.com Mon Oct 9 05:14:43 2017 From: heather at livecode.com (Heather Laine) Date: Mon, 9 Oct 2017 10:14:43 +0100 Subject: Testing... can you hear me now... Message-ID: Folks, the use-list had a brief outage over the weekend. I'm just checking we are back up and running. You needn't all reply! I'll see this mail if its working :) Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From heather at livecode.com Mon Oct 9 05:18:21 2017 From: heather at livecode.com (Heather Laine) Date: Mon, 9 Oct 2017 10:18:21 +0100 Subject: List Back Up - please resend your emails Message-ID: Ok, yes, we are back. Sorry about the outage, if you tried to send an email to the list over the weekend can you please resend it now. We didn't get it. Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From nabble at mad.pink Mon Oct 9 06:33:07 2017 From: nabble at mad.pink (pink) Date: Mon, 9 Oct 2017 03:33:07 -0700 (MST) Subject: Slack library? In-Reply-To: References: Message-ID: <1507545187592-0.post@n4.nabble.com> Depends on what you want to do... Below is just a post to channel command I had made, haven't used it ina while and obviously the webhook has fake credentials... command slackPost put "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX" into slackURL put "Fallback text" into tPostArray["fallback"] put "#random" into tPostArray["channel"] put "This is the text test" into tPostArray["text"] put "App Bot" into tPostArray["username"] put "Quick pretext" into tPostArray["pretext"] put "danger" into tPostArray["color"] put ":dragon:" into tPostArray["icon_emoji"] put "abc" into tPostArray["fields"]["1"]["title"] put 2 into tPostArray["fields"]["1"]["value"] put "short" into tPostArray["fields"]["1"]["short"] put "def" into tPostArray["fields"]["2"]["title"] put 2 into tPostArray["fields"]["2"]["value"] put "short" into tPostArray["fields"]["2"]["short"] put jsonFromArray(tPostArray) into tPost post tPost to URL slackURL end slackPost ----- --- Greg (pink) Miller mad, pink and dangerous to code -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From panos.merakos at livecode.com Mon Oct 9 08:22:45 2017 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 9 Oct 2017 13:22:45 +0100 Subject: [ANN] This Week in LiveCode 101 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 #101 here: https://goo.gl/Fvs4kW 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 brian at milby7.com Mon Oct 9 09:15:10 2017 From: brian at milby7.com (Brian Milby) Date: Mon, 09 Oct 2017 13:15:10 +0000 Subject: mergHK (Health Kit) assistance request Message-ID: Just wanted to do a quick check to see if anyone is currently using mergHK successfully with recent releases. I was able to get the authorization to work, but every time I attempt a query I get an error like: "HKSampleSortIdentifierEndDate is not a valid sort key for samples of type HKQuantityTypeIdentifierAppleExerciseTime" This is the line of code causing the error: mergHKSampleQuery kHKType, tStartDate, tEndDate I've tried with the BMI, Weight, and AppleExerciseTime (if the type is invalid, the app will just quit when you attempt to get authorization). I've tried to use HKSampleSortIdentifierStartDate and "" with similar results. I've built with 9DP9 and 8.1.7rc1 (I don't have Xcode9 yet, so rc3 won't build). I've used setting for IOS 9.3 and 10.0 as build versions. I'm testing on an IOS11 iPhone 6SPlus XCode 8.3.3 on Sierra Any pointers or suggestions? Thanks, Brian P.S. What I'm really interested in is "HKCategoryValueAppleStandHour", but that won't even authorize. Trying to talk to Health Kit first before moving on to why that type doesn't work. P.P.S. The plist files in the LC distribution need to be edited to even get it to work at all on IOS10+ since there are 2 entries now required (1 for read, 1 for write). From waprothero at gmail.com Mon Oct 9 11:24:15 2017 From: waprothero at gmail.com (William Prothero) Date: Mon, 9 Oct 2017 08:24:15 -0700 Subject: Creeping IDE Script Editor window position Message-ID: <1A3006B2-9794-4E16-AC2D-F189DFCD4E02@gmail.com> Anybody notice this? I'm using LC 8.1.7 RC3 and the script = editor creeps up further toward the top of the page each time it is = closed, then opened, until it disappears behind the tool bar and is hard = to access. Also, the bottom of the window seems to get larger and is off the screen and can't be resized. I'm on Mac OS10.12.6. Best, Bill P William A. Prothero http://earthlearningsolution.org/ From rmetzker at gmail.com Mon Oct 9 11:35:14 2017 From: rmetzker at gmail.com (Ron Metzker) Date: Mon, 9 Oct 2017 08:35:14 -0700 Subject: Creeping IDE Script Editor window position In-Reply-To: <1A3006B2-9794-4E16-AC2D-F189DFCD4E02@gmail.com> References: <1A3006B2-9794-4E16-AC2D-F189DFCD4E02@gmail.com> Message-ID: <80879DA3-DDAA-437F-BF50-20BDEE950E05@gmail.com> Hi Bill, I see the same thing. I am on the same OS version. Best Regards Ron > On Oct 9, 2017, at 8:24 AM, William Prothero via use-livecode wrote: > > Anybody notice this? I'm using LC 8.1.7 RC3 and the script = > editor creeps up further toward the top of the page each time it is = > closed, then opened, until it disappears behind the tool bar and is hard = > to access. Also, the bottom of the window seems to get larger and is off > the screen and can't be resized. > > I'm on Mac OS10.12.6. > Best, > Bill P > > William A. Prothero > http://earthlearningsolution.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 Oct 9 12:02:52 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 9 Oct 2017 16:02:52 +0000 Subject: Creeping IDE Script Editor window position In-Reply-To: <1A3006B2-9794-4E16-AC2D-F189DFCD4E02@gmail.com> References: <1A3006B2-9794-4E16-AC2D-F189DFCD4E02@gmail.com> Message-ID: Do you have 2 monitors of differing resolutions? This will happen if you do, under certain circumstances, especially (I think) if one of the monitors is a retina display, like a Mac laptop. I am always readjusting my windows, not just the script editor. Bob S > On Oct 9, 2017, at 08:24 , William Prothero via use-livecode wrote: > > Anybody notice this? I'm using LC 8.1.7 RC3 and the script = > editor creeps up further toward the top of the page each time it is = > closed, then opened, until it disappears behind the tool bar and is hard = > to access. Also, the bottom of the window seems to get larger and is off > the screen and can't be resized. > > I'm on Mac OS10.12.6. > Best, > Bill P > > William A. Prothero > http://earthlearningsolution.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 merakosp at gmail.com Mon Oct 9 12:20:58 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Mon, 9 Oct 2017 17:20:58 +0100 Subject: Creeping IDE Script Editor window position In-Reply-To: References: <1A3006B2-9794-4E16-AC2D-F189DFCD4E02@gmail.com> Message-ID: Hi all, I see similar problems (not only in 8.1.7 rc3) in a multiple-monitor setup on OSX. For me the problems are fixed if align the tops of the two monitors in the System Preferences -> Displays -> Arrangement Hope this helps. Best, Panos -- On Mon, Oct 9, 2017 at 5:02 PM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Do you have 2 monitors of differing resolutions? This will happen if you > do, under certain circumstances, especially (I think) if one of the > monitors is a retina display, like a Mac laptop. I am always readjusting my > windows, not just the script editor. > > Bob S > > > > On Oct 9, 2017, at 08:24 , William Prothero via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Anybody notice this? I'm using LC 8.1.7 RC3 and the script = > > editor creeps up further toward the top of the page each time it is = > > closed, then opened, until it disappears behind the tool bar and is hard > = > > to access. Also, the bottom of the window seems to get larger and is off > > the screen and can't be resized. > > > > I'm on Mac OS10.12.6. > > Best, > > Bill P > > > > William A. Prothero > > http://earthlearningsolution.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 rmetzker at gmail.com Mon Oct 9 13:46:32 2017 From: rmetzker at gmail.com (Ronny Metzker) Date: Mon, 9 Oct 2017 10:46:32 -0700 Subject: Creeping IDE Script Editor window position In-Reply-To: References: <1A3006B2-9794-4E16-AC2D-F189DFCD4E02@gmail.com> Message-ID: <408219C1-9253-464B-B285-DD0C16D660EB@gmail.com> Hi Panos, I am using only a single monitor and it happens to me. I quit using 8.1.7 (RC3) because if it. The top of my editor goes behind the menu bar, so you can?t move it. The bottom goes off the bottom of the monitor and wraps around to the top of the monitor. Makes it impossible to debug your code when you can?t scroll to the bottom of the window to see the values in variables. Of course, if you know the variable name you can type them one at a time to see the values but I just use a different version of LiveCode. I also still get partial selections of code when I drag the cursor across a line. This has been reported for different version of LiveCode before. I do try out the different versions of LiveCode releases as they come out. Best Regards Ron > On Oct 9, 2017, at 9:20 AM, panagiotis merakos via use-livecode wrote: > > Hi all, > > I see similar problems (not only in 8.1.7 rc3) in a multiple-monitor setup > on OSX. > > For me the problems are fixed if align the tops of the two monitors in the > System Preferences -> Displays -> Arrangement > > Hope this helps. > > Best, > Panos > -- > > On Mon, Oct 9, 2017 at 5:02 PM, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Do you have 2 monitors of differing resolutions? This will happen if you >> do, under certain circumstances, especially (I think) if one of the >> monitors is a retina display, like a Mac laptop. I am always readjusting my >> windows, not just the script editor. >> >> Bob S >> >> >>> On Oct 9, 2017, at 08:24 , William Prothero via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Anybody notice this? I'm using LC 8.1.7 RC3 and the script = >>> editor creeps up further toward the top of the page each time it is = >>> closed, then opened, until it disappears behind the tool bar and is hard >> = >>> to access. Also, the bottom of the window seems to get larger and is off >>> the screen and can't be resized. >>> >>> I'm on Mac OS10.12.6. >>> Best, >>> Bill P >>> >>> William A. Prothero >>> http://earthlearningsolution.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 nabble at mad.pink Mon Oct 9 13:58:38 2017 From: nabble at mad.pink (pink) Date: Mon, 9 Oct 2017 10:58:38 -0700 (MST) Subject: OAuth2 Status? Message-ID: <1507571918317-0.post@n4.nabble.com> Does OAuth2 currently work? I?m using LC 9 Indy DP9, I tried 3 different APIs (Toodledo, Todoist, and Slack) In all 3 cases, an empty window pops up briefly and then closes. For Slack, I literally copied the example from the dictionary and substituted my app?s values. Has anyone been able to use it yet? ----- --- Greg (pink) Miller mad, pink and dangerous to code -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From MikeKerner at roadrunner.com Mon Oct 9 14:01:02 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 9 Oct 2017 14:01:02 -0400 Subject: OAuth2 Status? In-Reply-To: <1507571918317-0.post@n4.nabble.com> References: <1507571918317-0.post@n4.nabble.com> Message-ID: I'm using it with the new dropbox library. On Mon, Oct 9, 2017 at 1:58 PM, pink via use-livecode < use-livecode at lists.runrev.com> wrote: > Does OAuth2 currently work? I?m using LC 9 Indy DP9, I tried 3 different > APIs (Toodledo, Todoist, and Slack) > > In all 3 cases, an empty window pops up briefly and then closes. > > For Slack, I literally copied the example from the dictionary and > substituted my app?s values. > > Has anyone been able to use it yet? > > > > ----- > --- > Greg (pink) Miller > mad, pink and dangerous to code > -- > 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 -- 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 Mon Oct 9 15:46:31 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 9 Oct 2017 12:46:31 -0700 Subject: Creeping IDE Script Editor window position In-Reply-To: <408219C1-9253-464B-B285-DD0C16D660EB@gmail.com> References: <1A3006B2-9794-4E16-AC2D-F189DFCD4E02@gmail.com> <408219C1-9253-464B-B285-DD0C16D660EB@gmail.com> Message-ID: <595be8e6-4e22-02b0-26dc-7f72e0c18622@sonic.net> On 10/09/2017 10:46 AM, Ronny Metzker via use-livecode wrote: > Hi Panos, > > I quit using 8.1.7 (RC3) because if it. The top of my editor goes behind the menu bar, so you can?t move it. I used to have that problem with the dictionary. -- Mark Wieder ahsoftware at gmail.com From monte at appisle.net Mon Oct 9 15:47:36 2017 From: monte at appisle.net (Monte Goulding) Date: Tue, 10 Oct 2017 06:47:36 +1100 Subject: OAuth2 Status? In-Reply-To: <1507571918317-0.post@n4.nabble.com> References: <1507571918317-0.post@n4.nabble.com> Message-ID: <43431A93-0555-4DE6-95C1-A10531B4769D@appisle.net> > On 10 Oct 2017, at 4:58 am, pink via use-livecode wrote: > > Does OAuth2 currently work? I?m using LC 9 Indy DP9, I tried 3 different > APIs (Toodledo, Todoist, and Slack) > > In all 3 cases, an empty window pops up briefly and then closes. > > For Slack, I literally copied the example from the dictionary and > substituted my app?s values. > > Has anyone been able to use it yet? What is the value of `the result` after it fails? Cheers Monte From hh at hyperhh.de Mon Oct 9 16:06:18 2017 From: hh at hyperhh.de (hh) Date: Mon, 9 Oct 2017 22:06:18 +0200 Subject: Creeping IDE Script Editor window position Message-ID: On the other hand, we are developers, so there is no need to write more than one of set rect of stack "revNewScripteditor 1" to 100,100,800,800 set rect of stack "revErrorDisplay" to 100,100,800,800 set rect of stack "revDictonary" to 100,100,800,800 From waprothero at gmail.com Mon Oct 9 16:14:15 2017 From: waprothero at gmail.com (William Prothero) Date: Mon, 9 Oct 2017 13:14:15 -0700 Subject: Creeping IDE Script Editor window position In-Reply-To: <595be8e6-4e22-02b0-26dc-7f72e0c18622@sonic.net> References: <1A3006B2-9794-4E16-AC2D-F189DFCD4E02@gmail.com> <408219C1-9253-464B-B285-DD0C16D660EB@gmail.com> <595be8e6-4e22-02b0-26dc-7f72e0c18622@sonic.net> Message-ID: I have two monitors. One is on a MacBook Pro, and the resolutions are different. I set to ?default resolution? on both displays. The main display that I use is the second display but I get the same effect on both the laptop monitor and the external monitor. It?s a pain but if I keep dragging it down, it?s ok. But, if it goes to the top, it?s impossible! Best, Bill > On Oct 9, 2017, at 12:46 PM, Mark Wieder via use-livecode wrote: > > On 10/09/2017 10:46 AM, Ronny Metzker via use-livecode wrote: >> Hi Panos, >> I quit using 8.1.7 (RC3) because if it. The top of my editor goes behind the menu bar, so you can?t move it. > > I used to have that problem with the dictionary. > > -- > 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 nabble at mad.pink Mon Oct 9 16:56:02 2017 From: nabble at mad.pink (pink) Date: Mon, 9 Oct 2017 13:56:02 -0700 (MST) Subject: OAuth2 Status? In-Reply-To: <43431A93-0555-4DE6-95C1-A10531B4769D@appisle.net> References: <1507571918317-0.post@n4.nabble.com> <43431A93-0555-4DE6-95C1-A10531B4769D@appisle.net> Message-ID: <1507582562861-0.post@n4.nabble.com> the result is empty (so is ?it?) ----- --- Greg (pink) Miller mad, pink and dangerous to code -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From waprothero at gmail.com Mon Oct 9 17:01:32 2017 From: waprothero at gmail.com (William Prothero) Date: Mon, 9 Oct 2017 14:01:32 -0700 Subject: Creeping IDE Script Editor window position In-Reply-To: References: <1A3006B2-9794-4E16-AC2D-F189DFCD4E02@gmail.com> <408219C1-9253-464B-B285-DD0C16D660EB@gmail.com> <595be8e6-4e22-02b0-26dc-7f72e0c18622@sonic.net> Message-ID: <1709F529-7331-49D7-A8EF-772CB9D62C5D@gmail.com> Interestingly, the project browser comes up at the same place each time it?s opened. Hmm? Bill P > On Oct 9, 2017, at 1:14 PM, William Prothero via use-livecode wrote: > > I have two monitors. One is on a MacBook Pro, and the resolutions are different. I set to ?default resolution? on both displays. The main display that I use is the second display but I get the same effect on both the laptop monitor and the external monitor. > > It?s a pain but if I keep dragging it down, it?s ok. But, if it goes to the top, it?s impossible! > Best, > Bill > >> On Oct 9, 2017, at 12:46 PM, Mark Wieder via use-livecode wrote: >> >> On 10/09/2017 10:46 AM, Ronny Metzker via use-livecode wrote: >>> Hi Panos, >>> I quit using 8.1.7 (RC3) because if it. The top of my editor goes behind the menu bar, so you can?t move it. >> >> I used to have that problem with the dictionary. >> >> -- >> 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 nabble at mad.pink Mon Oct 9 18:17:46 2017 From: nabble at mad.pink (pink) Date: Mon, 9 Oct 2017 15:17:46 -0700 (MST) Subject: OAuth2 Status? In-Reply-To: <1507582562861-0.post@n4.nabble.com> References: <1507571918317-0.post@n4.nabble.com> <43431A93-0555-4DE6-95C1-A10531B4769D@appisle.net> <1507582562861-0.post@n4.nabble.com> Message-ID: <1507587466230-0.post@n4.nabble.com> Monitoring connections, when I run the script, Livecode makes connections to: slack.com:443 secure.quantserve.com:443 sp.analytics.yahoo.com:443 569-ct.c3tag.com:443 platform.twitter.com:443 ad.doubleclick.net:443 atlas.c10r.facebook.com:443 s.adroll.com:443 d1ivexoxmp59q7.cloudfront.net:443 www.bizographics.com:443 ib.anycast.adnxs.com:443 fanboy-web-linkedin-prod-1790689846.us-east-1.elb.amazonaws.com:443 ----- --- Greg (pink) Miller mad, pink and dangerous to code -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From benr_mc at cogapp.com Tue Oct 10 06:53:00 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 10 Oct 2017 11:53:00 +0100 Subject: Trying to use OAuth2 for Dropbox in 9 DP 9 Message-ID: <79fcd939-d911-a279-4185-3b08e66fcbd3@cogapp.com> I'm attempting to use the OAuth2 and Dropbox libraries in LC 9.0.0 (dp9). (If I test the Dropbox functions with a temporary access token for my app generated from the Dropbox api website, it's fine.) When I try to use the Oauth2 command to implement this for users, I get a sheet dialog with what I take to be a message from Dropbox, Invalid redirect_uri. It must exactly match one of the redirect URIs you've pre-configured for your app (including the path). The redirect URI I have registered for my app is http://127.0.0.1:51051 where 51051 is the port number I've passed in the OAuth2 command. (As a handy side effect, there's no way to close the sheet dialog...) This is LC 9.0.0 DP 9, on Mac OS X 10.12.6. I've not yet tried on any other platforms. I'm using https://www.dropbox.com/oauth2/authorize https://api.dropboxapi.com/oauth2/token as the pAuthURL and pTokenURL, respectively; with an empty pScopes parameter. Is there an obvious thing I'm doing wrong? TIA. Ben From monte at appisle.net Tue Oct 10 07:28:31 2017 From: monte at appisle.net (Monte Goulding) Date: Tue, 10 Oct 2017 22:28:31 +1100 Subject: Trying to use OAuth2 for Dropbox in 9 DP 9 In-Reply-To: <79fcd939-d911-a279-4185-3b08e66fcbd3@cogapp.com> References: <79fcd939-d911-a279-4185-3b08e66fcbd3@cogapp.com> Message-ID: > On 10 Oct 2017, at 9:53 pm, Ben Rubinstein via use-livecode wrote: > > The redirect URI I have registered for my app is > http://127.0.0.1:51051 Add a trailing slash http://127.0.0.1:51051/ Cheers Monte From MikeKerner at roadrunner.com Tue Oct 10 08:25:30 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 10 Oct 2017 08:25:30 -0400 Subject: Trying to use OAuth2 for Dropbox in 9 DP 9 In-Reply-To: References: <79fcd939-d911-a279-4185-3b08e66fcbd3@cogapp.com> Message-ID: Also, if you're migrating from the phx_dropbox library, if you're interacting with the base directory, you have to include the slash. On Tue, Oct 10, 2017 at 7:28 AM, Monte Goulding via use-livecode < use-livecode at lists.runrev.com> wrote: > > > On 10 Oct 2017, at 9:53 pm, Ben Rubinstein via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > The redirect URI I have registered for my app is > > http://127.0.0.1:51051 > Add a trailing slash http://127.0.0.1:51051/ > > 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 > -- 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 benr_mc at cogapp.com Tue Oct 10 13:32:26 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 10 Oct 2017 18:32:26 +0100 Subject: Trying to use OAuth2 for Dropbox in 9 DP 9 In-Reply-To: References: <79fcd939-d911-a279-4185-3b08e66fcbd3@cogapp.com> Message-ID: <02701854-713f-8a1b-4fcd-f82955619cfa@cogapp.com> Thanks both, just the ticket! On 10/10/2017 13:25, Mike Kerner via use-livecode wrote: > Also, if you're migrating from the phx_dropbox library, if you're > interacting with the base directory, you have to include the slash. > > On Tue, Oct 10, 2017 at 7:28 AM, Monte Goulding via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> >>> On 10 Oct 2017, at 9:53 pm, Ben Rubinstein via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> The redirect URI I have registered for my app is >>> http://127.0.0.1:51051 >> Add a trailing slash http://127.0.0.1:51051/ From benr_mc at cogapp.com Tue Oct 10 17:17:17 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 10 Oct 2017 22:17:17 +0100 Subject: Dropbox library (LC 9) - does dropboxGetCurrentAccount work? Message-ID: New dropbox library great... but when I try to use dropboxGetCurrentAccount, I consistently get a 400 error code (i.e. Bad Request). Is this working for anyone else (Mike K??) TIA, Ben From MikeKerner at roadrunner.com Tue Oct 10 17:55:34 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 10 Oct 2017 17:55:34 -0400 Subject: Dropbox library (LC 9) - does dropboxGetCurrentAccount work? In-Reply-To: References: Message-ID: I'll look later. On Tue, Oct 10, 2017 at 5:17 PM, Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > New dropbox library great... but when I try to use > dropboxGetCurrentAccount, I consistently get a 400 error code (i.e. Bad > Request). > > Is this working for anyone else (Mike K??) > > TIA, > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Tue Oct 10 17:58:13 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 10 Oct 2017 17:58:13 -0400 Subject: Dropbox library (LC 9) - does dropboxGetCurrentAccount work? In-Reply-To: References: Message-ID: The thing I tell everyone to do when they want to mess with the new library is download the original that inspired it, and play with that, because it's got better documentation and you can mess with everything. Granted LC's command names are different, but underneath the code is more-or-less the same (with some exceptions). You can download it at my repo https://github.com/macMikey/dropboxapi_v2 Also, if you want to use LC's library in LC8, you can extract it, or grab it from my repo for that, too https://github.com/macMikey/LCDropboxLibrary On Tue, Oct 10, 2017 at 5:55 PM, Mike Kerner wrote: > I'll look later. > > On Tue, Oct 10, 2017 at 5:17 PM, Ben Rubinstein via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> New dropbox library great... but when I try to use >> dropboxGetCurrentAccount, I consistently get a 400 error code (i.e. Bad >> Request). >> >> Is this working for anyone else (Mike K??) >> >> TIA, >> >> Ben >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Tue Oct 10 20:49:33 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 10 Oct 2017 20:49:33 -0400 Subject: Dropbox library (LC 9) - does dropboxGetCurrentAccount work? In-Reply-To: References: Message-ID: It works for me in both 8 and 9. The only way I get error 400 is if I enclose the arguments in parenthesis (which tells LC that all of that goodness goes into the first parameter) Remember, this is a command, not a function, so the arguments are not enclosed: dropboxGetCurrentAccount oauthToken, account_id if the result is not empty then answer the result exit to top else #the result is empty answer it end if #the result is not empty From benr_mc at cogapp.com Wed Oct 11 03:05:09 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 11 Oct 2017 08:05:09 +0100 Subject: Dropbox library (LC 9) - does dropboxGetCurrentAccount work? In-Reply-To: References: Message-ID: Hi Mike, Thanks for checking. According to the Dictionary, dropboxGetCurrentAccount only takes one parameter dropboxGetCurrentAccount pAccessToken, [pCallback] if it's supposed to take two, that would explain the 400 error! But how does one obtain the account_id in the first place? I'm really only wanting to make this call because it looked liked the cheapest way to find out if the app has a valid token for Dropobox; I can either display the account it's logged in to, or a button offering to log in. Is there another way? Many thanks, Ben On 11/10/2017 01:49, Mike Kerner via use-livecode wrote: > It works for me in both 8 and 9. > The only way I get error 400 is if I enclose the arguments in parenthesis > (which tells LC that all of that goodness goes into the first parameter) > Remember, this is a command, not a function, so the arguments are not > enclosed: > > dropboxGetCurrentAccount oauthToken, account_id > if the result is not empty then > answer the result > exit to top > else #the result is empty > answer it > end if #the result is not empty > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From nabble at mad.pink Wed Oct 11 05:53:26 2017 From: nabble at mad.pink (pink) Date: Wed, 11 Oct 2017 02:53:26 -0700 (MST) Subject: OAuth2 Status? In-Reply-To: <1507587466230-0.post@n4.nabble.com> References: <1507571918317-0.post@n4.nabble.com> <43431A93-0555-4DE6-95C1-A10531B4769D@appisle.net> <1507582562861-0.post@n4.nabble.com> <1507587466230-0.post@n4.nabble.com> Message-ID: <1507715606519-0.post@n4.nabble.com> Other than the code itself, is there anything I need to do in the stack to make this work? ----- --- Greg (pink) Miller mad, pink and dangerous to code -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From monte at appisle.net Wed Oct 11 05:59:49 2017 From: monte at appisle.net (Monte Goulding) Date: Wed, 11 Oct 2017 20:59:49 +1100 Subject: OAuth2 Status? In-Reply-To: <1507715606519-0.post@n4.nabble.com> References: <1507571918317-0.post@n4.nabble.com> <43431A93-0555-4DE6-95C1-A10531B4769D@appisle.net> <1507582562861-0.post@n4.nabble.com> <1507587466230-0.post@n4.nabble.com> <1507715606519-0.post@n4.nabble.com> Message-ID: > On 11 Oct 2017, at 8:53 pm, pink via use-livecode wrote: > > Other than the code itself, is there anything I need to do in the stack to > make this work? No there shouldn?t be. Again I would just double check that `it` isn?t an array. It should be an array or `the result` should have some details of the issue. If you are sure both are empty can you open a report. Cheers Monte From MikeKerner at roadrunner.com Wed Oct 11 06:22:23 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 11 Oct 2017 06:22:23 -0400 Subject: Dropbox library (LC 9) - does dropboxGetCurrentAccount work? In-Reply-To: References: Message-ID: oh geez, I read your command wrong - you're right - you're using dropboxGetCurrentAccount, not dropboxGetAccount. Yes, I'm getting the same error, now. I'll dive into the code and see if I can see what's going on. As far as getting the account_id, for those times when you need it, I would download the dropboxapi_v2 project ( https://github.com/macMikey/dropboxapi_v2). Click on the "get started" checkbox. There are instructions on how to extract the account_id once you have the oauth2 token. On Wed, Oct 11, 2017 at 3:05 AM, Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Mike, > > Thanks for checking. According to the Dictionary, dropboxGetCurrentAccount > only takes one parameter > dropboxGetCurrentAccount pAccessToken, [pCallback] > > if it's supposed to take two, that would explain the 400 error! But how > does one obtain the account_id in the first place? > > I'm really only wanting to make this call because it looked liked the > cheapest way to find out if the app has a valid token for Dropobox; I can > either display the account it's logged in to, or a button offering to log > in. Is there another way? > > Many thanks, > > Ben > > > On 11/10/2017 01:49, Mike Kerner via use-livecode wrote: > >> It works for me in both 8 and 9. >> The only way I get error 400 is if I enclose the arguments in parenthesis >> (which tells LC that all of that goodness goes into the first parameter) >> Remember, this is a command, not a function, so the arguments are not >> enclosed: >> >> dropboxGetCurrentAccount oauthToken, account_id >> if the result is not empty then >> answer the result >> exit to top >> else #the result is empty >> answer it >> end if #the result is not empty >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> > _______________________________________________ > use-livecode mailing list > use-livecode 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 benr_mc at cogapp.com Wed Oct 11 06:23:58 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 11 Oct 2017 11:23:58 +0100 Subject: Dropbox library (LC 9) - does dropboxGetCurrentAccount work? In-Reply-To: References: Message-ID: Hi Mike (or anyone else) Can you confirm that dropboxGetCurrentAccount (NOT dropboxGetAccount) is working for you in LC 9.0.0 dp 9? It consistently fails for me, and the problem seems to be precisely the lack of a parameter other than the access token. Dropbox returns a 400, AFAICT, precisely because the POST is empty. Fiddling with this in curl, I find that $ curl -X POST https://api.dropboxapi.com/2/users/get_current_account \ --header "Authorization: Bearer " works and returns the expected data; but $ curl -X POST https://api.dropboxapi.com/2/users/get_current_account \ --header "Content-Type: application/json" \ --header "Authorization: Bearer " \ --data-ascii "" which is roughly what LC is doing, fails with 400 Bad Request. In other words, it seems that Dropbox requires this call to be made as a POST with no data at all; and that what LiveCode does when posting empty to a URL is a post with a content-length of 0 - and Dropbox won't accept it. So I'm puzzled as to how this is working for you. Are you using a different version of DP9 with a different tsNet version perhaps? TIA, Ben On 11/10/2017 08:05, Ben Rubinstein via use-livecode wrote: > Hi Mike, > > Thanks for checking. According to the Dictionary, dropboxGetCurrentAccount > only takes one parameter > ????dropboxGetCurrentAccount pAccessToken, [pCallback] > > if it's supposed to take two, that would explain the 400 error! But how does > one obtain the account_id in the first place? > > I'm really only wanting to make this call because it looked liked the cheapest > way to find out if the app has a valid token for Dropobox; I can either > display the account it's logged in to, or a button offering to log in. Is > there another way? > > Many thanks, > > Ben > > On 11/10/2017 01:49, Mike Kerner via use-livecode wrote: >> It works for me in both 8 and 9. >> The only way I get error 400 is if I enclose the arguments in parenthesis >> (which tells LC that all of that goodness goes into the first parameter) >> Remember, this is a command, not a function, so the arguments are not >> enclosed: >> >> dropboxGetCurrentAccount oauthToken, account_id >> if the result is not empty then >> answer the result >> exit to top >> else #the result is empty >> answer it >> end if #the result is not empty >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From benr_mc at cogapp.com Wed Oct 11 06:45:52 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 11 Oct 2017 11:45:52 +0100 Subject: Dropbox library (LC 9) - does dropboxGetCurrentAccount work? In-Reply-To: References: Message-ID: <26105ea2-3d51-bcac-08f3-77550bcfa244@cogapp.com> You beat me to it! On 11/10/2017 11:23, Ben Rubinstein via use-livecode wrote: > Hi Mike (or anyone else) > > Can you confirm that dropboxGetCurrentAccount (NOT dropboxGetAccount) is > working for you in LC 9.0.0 dp 9? > > It consistently fails for me, and the problem seems to be precisely the lack > of a parameter other than the access token. > > Dropbox returns a 400, AFAICT, precisely because the POST is empty. Fiddling > with this in curl, I find that > > $ curl -X POST https://api.dropboxapi.com/2/users/get_current_account \ > ?? --header "Authorization: Bearer " > > works and returns the expected data; but > > $ curl -X POST https://api.dropboxapi.com/2/users/get_current_account \ > ?? --header "Content-Type: application/json" \ > ?? --header "Authorization: Bearer " \ > ?? --data-ascii "" > > which is roughly what LC is doing, fails with 400 Bad Request. > > In other words, it seems that Dropbox requires this call to be made as a POST > with no data at all; and that what LiveCode does when posting empty to a URL > is a post with a content-length of 0 - and Dropbox won't accept it. > > So I'm puzzled as to how this is working for you. Are you using a different > version of DP9 with a different tsNet version perhaps? > > TIA, > > Ben > > On 11/10/2017 08:05, Ben Rubinstein via use-livecode wrote: >> Hi Mike, >> >> Thanks for checking. According to the Dictionary, dropboxGetCurrentAccount >> only takes one parameter >> ?????dropboxGetCurrentAccount pAccessToken, [pCallback] >> >> if it's supposed to take two, that would explain the 400 error! But how does >> one obtain the account_id in the first place? >> >> I'm really only wanting to make this call because it looked liked the >> cheapest way to find out if the app has a valid token for Dropobox; I can >> either display the account it's logged in to, or a button offering to log >> in. Is there another way? >> >> Many thanks, >> >> Ben >> >> On 11/10/2017 01:49, Mike Kerner via use-livecode wrote: >>> It works for me in both 8 and 9. >>> The only way I get error 400 is if I enclose the arguments in parenthesis >>> (which tells LC that all of that goodness goes into the first parameter) >>> Remember, this is a command, not a function, so the arguments are not >>> enclosed: >>> >>> dropboxGetCurrentAccount oauthToken, account_id >>> if the result is not empty then >>> answer the result >>> exit to top >>> else #the result is empty >>> answer it >>> end if #the result is not empty >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Oct 11 06:50:03 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 11 Oct 2017 06:50:03 -0400 Subject: Dropbox library (LC 9) - does dropboxGetCurrentAccount work? In-Reply-To: References: Message-ID: What was working for me was getAccount not getCurrentAccount. If I use LC's library with getCurrentAccount, I get the same error. I have found the bug in LC's library, and I patched it to get it to work, but I want to understand more of why, and also to make sure I'm not going to break something else before I issue a pull request. On Wed, Oct 11, 2017 at 6:23 AM, Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Mike (or anyone else) > > Can you confirm that dropboxGetCurrentAccount (NOT dropboxGetAccount) is > working for you in LC 9.0.0 dp 9? > > It consistently fails for me, and the problem seems to be precisely the > lack of a parameter other than the access token. > > Dropbox returns a 400, AFAICT, precisely because the POST is empty. > Fiddling with this in curl, I find that > > $ curl -X POST https://api.dropboxapi.com/2/users/get_current_account \ > --header "Authorization: Bearer " > > works and returns the expected data; but > > $ curl -X POST https://api.dropboxapi.com/2/users/get_current_account \ > --header "Content-Type: application/json" \ > --header "Authorization: Bearer " \ > --data-ascii "" > > which is roughly what LC is doing, fails with 400 Bad Request. > > In other words, it seems that Dropbox requires this call to be made as a > POST with no data at all; and that what LiveCode does when posting empty to > a URL is a post with a content-length of 0 - and Dropbox won't accept it. > > So I'm puzzled as to how this is working for you. Are you using a > different version of DP9 with a different tsNet version perhaps? > > TIA, > > Ben > > > On 11/10/2017 08:05, Ben Rubinstein via use-livecode wrote: > >> Hi Mike, >> >> Thanks for checking. According to the Dictionary, >> dropboxGetCurrentAccount only takes one parameter >> dropboxGetCurrentAccount pAccessToken, [pCallback] >> >> if it's supposed to take two, that would explain the 400 error! But how >> does one obtain the account_id in the first place? >> >> I'm really only wanting to make this call because it looked liked the >> cheapest way to find out if the app has a valid token for Dropobox; I can >> either display the account it's logged in to, or a button offering to log >> in. Is there another way? >> >> Many thanks, >> >> Ben >> >> On 11/10/2017 01:49, Mike Kerner via use-livecode wrote: >> >>> It works for me in both 8 and 9. >>> The only way I get error 400 is if I enclose the arguments in parenthesis >>> (which tells LC that all of that goodness goes into the first parameter) >>> Remember, this is a command, not a function, so the arguments are not >>> enclosed: >>> >>> dropboxGetCurrentAccount oauthToken, account_id >>> if the result is not empty then >>> answer the result >>> exit to top >>> else #the result is empty >>> answer it >>> end if #the result is not empty >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Wed Oct 11 06:58:49 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 11 Oct 2017 06:58:49 -0400 Subject: Dropbox library (LC 9) - does dropboxGetCurrentAccount work? In-Reply-To: <26105ea2-3d51-bcac-08f3-77550bcfa244@cogapp.com> References: <26105ea2-3d51-bcac-08f3-77550bcfa244@cogapp.com> Message-ID: Feel like opening a couple QR's? I think we need two: one for post and one for the error in the library. In fact, there are two problems in the library. One is the way the library handles errors returned by dropbox (you only get half the error message), and the other is the way endpoints like this one are handled. Hopefully I'll have both of those patched and up to my repo and the PR submitted, today. If you want, you can also patch the library code, but if you do, I'd suggest moving your project to LC8 and including the patched library stack as a substack. On Wed, Oct 11, 2017 at 6:45 AM, Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > You beat me to it! > > > On 11/10/2017 11:23, Ben Rubinstein via use-livecode wrote: > >> Hi Mike (or anyone else) >> >> Can you confirm that dropboxGetCurrentAccount (NOT dropboxGetAccount) is >> working for you in LC 9.0.0 dp 9? >> >> It consistently fails for me, and the problem seems to be precisely the >> lack of a parameter other than the access token. >> >> Dropbox returns a 400, AFAICT, precisely because the POST is empty. >> Fiddling with this in curl, I find that >> >> $ curl -X POST https://api.dropboxapi.com/2/users/get_current_account \ >> --header "Authorization: Bearer " >> >> works and returns the expected data; but >> >> $ curl -X POST https://api.dropboxapi.com/2/users/get_current_account \ >> --header "Content-Type: application/json" \ >> --header "Authorization: Bearer " \ >> --data-ascii "" >> >> which is roughly what LC is doing, fails with 400 Bad Request. >> >> In other words, it seems that Dropbox requires this call to be made as a >> POST with no data at all; and that what LiveCode does when posting empty to >> a URL is a post with a content-length of 0 - and Dropbox won't accept it. >> >> So I'm puzzled as to how this is working for you. Are you using a >> different version of DP9 with a different tsNet version perhaps? >> >> TIA, >> >> Ben >> >> On 11/10/2017 08:05, Ben Rubinstein via use-livecode wrote: >> >>> Hi Mike, >>> >>> Thanks for checking. According to the Dictionary, >>> dropboxGetCurrentAccount only takes one parameter >>> dropboxGetCurrentAccount pAccessToken, [pCallback] >>> >>> if it's supposed to take two, that would explain the 400 error! But how >>> does one obtain the account_id in the first place? >>> >>> I'm really only wanting to make this call because it looked liked the >>> cheapest way to find out if the app has a valid token for Dropobox; I can >>> either display the account it's logged in to, or a button offering to log >>> in. Is there another way? >>> >>> Many thanks, >>> >>> Ben >>> >>> On 11/10/2017 01:49, Mike Kerner via use-livecode wrote: >>> >>>> It works for me in both 8 and 9. >>>> The only way I get error 400 is if I enclose the arguments in >>>> parenthesis >>>> (which tells LC that all of that goodness goes into the first parameter) >>>> Remember, this is a command, not a function, so the arguments are not >>>> enclosed: >>>> >>>> dropboxGetCurrentAccount oauthToken, account_id >>>> if the result is not empty then >>>> answer the result >>>> exit to top >>>> else #the result is empty >>>> answer it >>>> end if #the result is not empty >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode 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 benr_mc at cogapp.com Wed Oct 11 08:27:36 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 11 Oct 2017 13:27:36 +0100 Subject: Dropbox library (LC 9) - does dropboxGetCurrentAccount work? In-Reply-To: References: <26105ea2-3d51-bcac-08f3-77550bcfa244@cogapp.com> Message-ID: <57b51bdd-dfe9-8f9e-fec3-4ee4d1a28cf4@cogapp.com> 20555 for POST; 20556 for dropboxGetCurrentAccount. > I have found the bug in LC's library, and I patched it to get it to work, > but I want to understand more of why, and also to make sure I'm not going > to break something else before I issue a pull request. How are you patching it to work? I can't see any way of issuing a POST request in LC code (without using curl, which won't work on mobile) that gets round this problem. On 11/10/2017 11:58, Mike Kerner via use-livecode wrote: > Feel like opening a couple QR's? I think we need two: one for post and > one for the error in the library. > In fact, there are two problems in the library. One is the way the library > handles errors returned by dropbox (you only get half the error message), > and the other is the way endpoints like this one are handled. Hopefully > I'll have both of those patched and up to my repo and the PR submitted, > today. > If you want, you can also patch the library code, but if you do, I'd > suggest moving your project to LC8 and including the patched library stack > as a substack. > > On Wed, Oct 11, 2017 at 6:45 AM, Ben Rubinstein via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> You beat me to it! >> >> >> On 11/10/2017 11:23, Ben Rubinstein via use-livecode wrote: >> >>> Hi Mike (or anyone else) >>> >>> Can you confirm that dropboxGetCurrentAccount (NOT dropboxGetAccount) is >>> working for you in LC 9.0.0 dp 9? >>> >>> It consistently fails for me, and the problem seems to be precisely the >>> lack of a parameter other than the access token. >>> >>> Dropbox returns a 400, AFAICT, precisely because the POST is empty. >>> Fiddling with this in curl, I find that >>> >>> $ curl -X POST https://api.dropboxapi.com/2/users/get_current_account \ >>> --header "Authorization: Bearer " >>> >>> works and returns the expected data; but >>> >>> $ curl -X POST https://api.dropboxapi.com/2/users/get_current_account \ >>> --header "Content-Type: application/json" \ >>> --header "Authorization: Bearer " \ >>> --data-ascii "" >>> >>> which is roughly what LC is doing, fails with 400 Bad Request. >>> >>> In other words, it seems that Dropbox requires this call to be made as a >>> POST with no data at all; and that what LiveCode does when posting empty to >>> a URL is a post with a content-length of 0 - and Dropbox won't accept it. >>> >>> So I'm puzzled as to how this is working for you. Are you using a >>> different version of DP9 with a different tsNet version perhaps? >>> >>> TIA, >>> >>> Ben >>> >>> On 11/10/2017 08:05, Ben Rubinstein via use-livecode wrote: >>> >>>> Hi Mike, >>>> >>>> Thanks for checking. According to the Dictionary, >>>> dropboxGetCurrentAccount only takes one parameter >>>> dropboxGetCurrentAccount pAccessToken, [pCallback] >>>> >>>> if it's supposed to take two, that would explain the 400 error! But how >>>> does one obtain the account_id in the first place? >>>> >>>> I'm really only wanting to make this call because it looked liked the >>>> cheapest way to find out if the app has a valid token for Dropobox; I can >>>> either display the account it's logged in to, or a button offering to log >>>> in. Is there another way? >>>> >>>> Many thanks, >>>> >>>> Ben >>>> >>>> On 11/10/2017 01:49, Mike Kerner via use-livecode wrote: >>>> >>>>> It works for me in both 8 and 9. >>>>> The only way I get error 400 is if I enclose the arguments in >>>>> parenthesis >>>>> (which tells LC that all of that goodness goes into the first parameter) >>>>> Remember, this is a command, not a function, so the arguments are not >>>>> enclosed: >>>>> >>>>> dropboxGetCurrentAccount oauthToken, account_id >>>>> if the result is not empty then >>>>> answer the result >>>>> exit to top >>>>> else #the result is empty >>>>> answer it >>>>> end if #the result is not empty >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Wed Oct 11 08:52:29 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 11 Oct 2017 08:52:29 -0400 Subject: Dropbox library (LC 9) - does dropboxGetCurrentAccount work? In-Reply-To: <57b51bdd-dfe9-8f9e-fec3-4ee4d1a28cf4@cogapp.com> References: <26105ea2-3d51-bcac-08f3-77550bcfa244@cogapp.com> <57b51bdd-dfe9-8f9e-fec3-4ee4d1a28cf4@cogapp.com> Message-ID: What Gerard did in the original library is use the word "null" instead of empty. So his version of __get_current_account_POST would be private function __get_current_account_POST return "null" end get_current_account_POST For some reason, empty doesn't work, but anything (inluding the word "null") works. Before I make the PR I'm going to see if anything else breaks by doing that, and I'm also going to add the rest of the error message, that gets dropped. On Wed, Oct 11, 2017 at 8:27 AM, Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > 20555 for POST; 20556 for dropboxGetCurrentAccount. > > I have found the bug in LC's library, and I patched it to get it to work, >> but I want to understand more of why, and also to make sure I'm not going >> to break something else before I issue a pull request. >> > > How are you patching it to work? I can't see any way of issuing a POST > request in LC code (without using curl, which won't work on mobile) that > gets round this problem. > > > On 11/10/2017 11:58, Mike Kerner via use-livecode wrote: > >> Feel like opening a couple QR's? I think we need two: one for post and >> one for the error in the library. >> In fact, there are two problems in the library. One is the way the >> library >> handles errors returned by dropbox (you only get half the error message), >> and the other is the way endpoints like this one are handled. Hopefully >> I'll have both of those patched and up to my repo and the PR submitted, >> today. >> If you want, you can also patch the library code, but if you do, I'd >> suggest moving your project to LC8 and including the patched library stack >> as a substack. >> >> On Wed, Oct 11, 2017 at 6:45 AM, Ben Rubinstein via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> You beat me to it! >>> >>> >>> On 11/10/2017 11:23, Ben Rubinstein via use-livecode wrote: >>> >>> Hi Mike (or anyone else) >>>> >>>> Can you confirm that dropboxGetCurrentAccount (NOT dropboxGetAccount) is >>>> working for you in LC 9.0.0 dp 9? >>>> >>>> It consistently fails for me, and the problem seems to be precisely the >>>> lack of a parameter other than the access token. >>>> >>>> Dropbox returns a 400, AFAICT, precisely because the POST is empty. >>>> Fiddling with this in curl, I find that >>>> >>>> $ curl -X POST https://api.dropboxapi.com/2/users/get_current_account \ >>>> --header "Authorization: Bearer " >>>> >>>> works and returns the expected data; but >>>> >>>> $ curl -X POST https://api.dropboxapi.com/2/users/get_current_account \ >>>> --header "Content-Type: application/json" \ >>>> --header "Authorization: Bearer " \ >>>> --data-ascii "" >>>> >>>> which is roughly what LC is doing, fails with 400 Bad Request. >>>> >>>> In other words, it seems that Dropbox requires this call to be made as a >>>> POST with no data at all; and that what LiveCode does when posting >>>> empty to >>>> a URL is a post with a content-length of 0 - and Dropbox won't accept >>>> it. >>>> >>>> So I'm puzzled as to how this is working for you. Are you using a >>>> different version of DP9 with a different tsNet version perhaps? >>>> >>>> TIA, >>>> >>>> Ben >>>> >>>> On 11/10/2017 08:05, Ben Rubinstein via use-livecode wrote: >>>> >>>> Hi Mike, >>>>> >>>>> Thanks for checking. According to the Dictionary, >>>>> dropboxGetCurrentAccount only takes one parameter >>>>> dropboxGetCurrentAccount pAccessToken, [pCallback] >>>>> >>>>> if it's supposed to take two, that would explain the 400 error! But how >>>>> does one obtain the account_id in the first place? >>>>> >>>>> I'm really only wanting to make this call because it looked liked the >>>>> cheapest way to find out if the app has a valid token for Dropobox; I >>>>> can >>>>> either display the account it's logged in to, or a button offering to >>>>> log >>>>> in. Is there another way? >>>>> >>>>> Many thanks, >>>>> >>>>> Ben >>>>> >>>>> On 11/10/2017 01:49, Mike Kerner via use-livecode wrote: >>>>> >>>>> It works for me in both 8 and 9. >>>>>> The only way I get error 400 is if I enclose the arguments in >>>>>> parenthesis >>>>>> (which tells LC that all of that goodness goes into the first >>>>>> parameter) >>>>>> Remember, this is a command, not a function, so the arguments are not >>>>>> enclosed: >>>>>> >>>>>> dropboxGetCurrentAccount oauthToken, account_id >>>>>> if the result is not empty then >>>>>> answer the result >>>>>> exit to top >>>>>> else #the result is empty >>>>>> answer it >>>>>> end if #the result is not empty >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> >>>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >> >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Wed Oct 11 09:23:35 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 11 Oct 2017 09:23:35 -0400 Subject: Dropbox library (LC 9) - does dropboxGetCurrentAccount work? In-Reply-To: References: <26105ea2-3d51-bcac-08f3-77550bcfa244@cogapp.com> <57b51bdd-dfe9-8f9e-fec3-4ee4d1a28cf4@cogapp.com> Message-ID: And, curiously, as it turns out, the other endpoints that take a null post accept empty (and don't like getting "null"). It seems this only affects getCurrentAccount. On Wed, Oct 11, 2017 at 8:52 AM, Mike Kerner wrote: > What Gerard did in the original library is use the word "null" instead of > empty. So his version of __get_current_account_POST would be > private function __get_current_account_POST > return "null" > end get_current_account_POST > > For some reason, empty doesn't work, but anything (inluding the word > "null") works. > > Before I make the PR I'm going to see if anything else breaks by doing > that, and I'm also going to add the rest of the error message, that gets > dropped. > > > On Wed, Oct 11, 2017 at 8:27 AM, Ben Rubinstein via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> 20555 for POST; 20556 for dropboxGetCurrentAccount. >> >> I have found the bug in LC's library, and I patched it to get it to work, >>> but I want to understand more of why, and also to make sure I'm not going >>> to break something else before I issue a pull request. >>> >> >> How are you patching it to work? I can't see any way of issuing a POST >> request in LC code (without using curl, which won't work on mobile) that >> gets round this problem. >> >> >> On 11/10/2017 11:58, Mike Kerner via use-livecode wrote: >> >>> Feel like opening a couple QR's? I think we need two: one for post and >>> one for the error in the library. >>> In fact, there are two problems in the library. One is the way the >>> library >>> handles errors returned by dropbox (you only get half the error message), >>> and the other is the way endpoints like this one are handled. Hopefully >>> I'll have both of those patched and up to my repo and the PR submitted, >>> today. >>> If you want, you can also patch the library code, but if you do, I'd >>> suggest moving your project to LC8 and including the patched library >>> stack >>> as a substack. >>> >>> On Wed, Oct 11, 2017 at 6:45 AM, Ben Rubinstein via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>> You beat me to it! >>>> >>>> >>>> On 11/10/2017 11:23, Ben Rubinstein via use-livecode wrote: >>>> >>>> Hi Mike (or anyone else) >>>>> >>>>> Can you confirm that dropboxGetCurrentAccount (NOT dropboxGetAccount) >>>>> is >>>>> working for you in LC 9.0.0 dp 9? >>>>> >>>>> It consistently fails for me, and the problem seems to be precisely the >>>>> lack of a parameter other than the access token. >>>>> >>>>> Dropbox returns a 400, AFAICT, precisely because the POST is empty. >>>>> Fiddling with this in curl, I find that >>>>> >>>>> $ curl -X POST https://api.dropboxapi.com/2/users/get_current_account >>>>> \ >>>>> --header "Authorization: Bearer " >>>>> >>>>> works and returns the expected data; but >>>>> >>>>> $ curl -X POST https://api.dropboxapi.com/2/users/get_current_account >>>>> \ >>>>> --header "Content-Type: application/json" \ >>>>> --header "Authorization: Bearer " \ >>>>> --data-ascii "" >>>>> >>>>> which is roughly what LC is doing, fails with 400 Bad Request. >>>>> >>>>> In other words, it seems that Dropbox requires this call to be made as >>>>> a >>>>> POST with no data at all; and that what LiveCode does when posting >>>>> empty to >>>>> a URL is a post with a content-length of 0 - and Dropbox won't accept >>>>> it. >>>>> >>>>> So I'm puzzled as to how this is working for you. Are you using a >>>>> different version of DP9 with a different tsNet version perhaps? >>>>> >>>>> TIA, >>>>> >>>>> Ben >>>>> >>>>> On 11/10/2017 08:05, Ben Rubinstein via use-livecode wrote: >>>>> >>>>> Hi Mike, >>>>>> >>>>>> Thanks for checking. According to the Dictionary, >>>>>> dropboxGetCurrentAccount only takes one parameter >>>>>> dropboxGetCurrentAccount pAccessToken, [pCallback] >>>>>> >>>>>> if it's supposed to take two, that would explain the 400 error! But >>>>>> how >>>>>> does one obtain the account_id in the first place? >>>>>> >>>>>> I'm really only wanting to make this call because it looked liked the >>>>>> cheapest way to find out if the app has a valid token for Dropobox; I >>>>>> can >>>>>> either display the account it's logged in to, or a button offering to >>>>>> log >>>>>> in. Is there another way? >>>>>> >>>>>> Many thanks, >>>>>> >>>>>> Ben >>>>>> >>>>>> On 11/10/2017 01:49, Mike Kerner via use-livecode wrote: >>>>>> >>>>>> It works for me in both 8 and 9. >>>>>>> The only way I get error 400 is if I enclose the arguments in >>>>>>> parenthesis >>>>>>> (which tells LC that all of that goodness goes into the first >>>>>>> parameter) >>>>>>> Remember, this is a command, not a function, so the arguments are not >>>>>>> enclosed: >>>>>>> >>>>>>> dropboxGetCurrentAccount oauthToken, account_id >>>>>>> if the result is not empty then >>>>>>> answer the result >>>>>>> exit to top >>>>>>> else #the result is empty >>>>>>> answer it >>>>>>> end if #the result is not empty >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>> subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>> >>> >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Wed Oct 11 09:41:46 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 11 Oct 2017 09:41:46 -0400 Subject: Dropbox library (LC 9) - does dropboxGetCurrentAccount work? In-Reply-To: References: <26105ea2-3d51-bcac-08f3-77550bcfa244@cogapp.com> <57b51bdd-dfe9-8f9e-fec3-4ee4d1a28cf4@cogapp.com> Message-ID: Ben, I updated the library and pushed it to my repo. Let me know if that makes everything work before I do a PR with LC https://github.com/macMikey/LCDropboxLibrary Try it in 8, including the script file as a subscript. If you want to use it in 9, copy/paste it into your stack script. On Wed, Oct 11, 2017 at 9:23 AM, Mike Kerner wrote: > And, curiously, as it turns out, the other endpoints that take a null post > accept empty (and don't like getting "null"). It seems this only affects > getCurrentAccount. > > On Wed, Oct 11, 2017 at 8:52 AM, Mike Kerner > wrote: > >> What Gerard did in the original library is use the word "null" instead >> of empty. So his version of __get_current_account_POST would be >> private function __get_current_account_POST >> return "null" >> end get_current_account_POST >> >> For some reason, empty doesn't work, but anything (inluding the word >> "null") works. >> >> Before I make the PR I'm going to see if anything else breaks by doing >> that, and I'm also going to add the rest of the error message, that gets >> dropped. >> >> >> On Wed, Oct 11, 2017 at 8:27 AM, Ben Rubinstein via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> 20555 for POST; 20556 for dropboxGetCurrentAccount. >>> >>> I have found the bug in LC's library, and I patched it to get it to work, >>>> but I want to understand more of why, and also to make sure I'm not >>>> going >>>> to break something else before I issue a pull request. >>>> >>> >>> How are you patching it to work? I can't see any way of issuing a POST >>> request in LC code (without using curl, which won't work on mobile) that >>> gets round this problem. >>> >>> >>> On 11/10/2017 11:58, Mike Kerner via use-livecode wrote: >>> >>>> Feel like opening a couple QR's? I think we need two: one for post and >>>> one for the error in the library. >>>> In fact, there are two problems in the library. One is the way the >>>> library >>>> handles errors returned by dropbox (you only get half the error >>>> message), >>>> and the other is the way endpoints like this one are handled. Hopefully >>>> I'll have both of those patched and up to my repo and the PR submitted, >>>> today. >>>> If you want, you can also patch the library code, but if you do, I'd >>>> suggest moving your project to LC8 and including the patched library >>>> stack >>>> as a substack. >>>> >>>> On Wed, Oct 11, 2017 at 6:45 AM, Ben Rubinstein via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> You beat me to it! >>>>> >>>>> >>>>> On 11/10/2017 11:23, Ben Rubinstein via use-livecode wrote: >>>>> >>>>> Hi Mike (or anyone else) >>>>>> >>>>>> Can you confirm that dropboxGetCurrentAccount (NOT dropboxGetAccount) >>>>>> is >>>>>> working for you in LC 9.0.0 dp 9? >>>>>> >>>>>> It consistently fails for me, and the problem seems to be precisely >>>>>> the >>>>>> lack of a parameter other than the access token. >>>>>> >>>>>> Dropbox returns a 400, AFAICT, precisely because the POST is empty. >>>>>> Fiddling with this in curl, I find that >>>>>> >>>>>> $ curl -X POST https://api.dropboxapi.com/2/users/get_current_account >>>>>> \ >>>>>> --header "Authorization: Bearer " >>>>>> >>>>>> works and returns the expected data; but >>>>>> >>>>>> $ curl -X POST https://api.dropboxapi.com/2/users/get_current_account >>>>>> \ >>>>>> --header "Content-Type: application/json" \ >>>>>> --header "Authorization: Bearer " \ >>>>>> --data-ascii "" >>>>>> >>>>>> which is roughly what LC is doing, fails with 400 Bad Request. >>>>>> >>>>>> In other words, it seems that Dropbox requires this call to be made >>>>>> as a >>>>>> POST with no data at all; and that what LiveCode does when posting >>>>>> empty to >>>>>> a URL is a post with a content-length of 0 - and Dropbox won't accept >>>>>> it. >>>>>> >>>>>> So I'm puzzled as to how this is working for you. Are you using a >>>>>> different version of DP9 with a different tsNet version perhaps? >>>>>> >>>>>> TIA, >>>>>> >>>>>> Ben >>>>>> >>>>>> On 11/10/2017 08:05, Ben Rubinstein via use-livecode wrote: >>>>>> >>>>>> Hi Mike, >>>>>>> >>>>>>> Thanks for checking. According to the Dictionary, >>>>>>> dropboxGetCurrentAccount only takes one parameter >>>>>>> dropboxGetCurrentAccount pAccessToken, [pCallback] >>>>>>> >>>>>>> if it's supposed to take two, that would explain the 400 error! But >>>>>>> how >>>>>>> does one obtain the account_id in the first place? >>>>>>> >>>>>>> I'm really only wanting to make this call because it looked liked the >>>>>>> cheapest way to find out if the app has a valid token for Dropobox; >>>>>>> I can >>>>>>> either display the account it's logged in to, or a button offering >>>>>>> to log >>>>>>> in. Is there another way? >>>>>>> >>>>>>> Many thanks, >>>>>>> >>>>>>> Ben >>>>>>> >>>>>>> On 11/10/2017 01:49, Mike Kerner via use-livecode wrote: >>>>>>> >>>>>>> It works for me in both 8 and 9. >>>>>>>> The only way I get error 400 is if I enclose the arguments in >>>>>>>> parenthesis >>>>>>>> (which tells LC that all of that goodness goes into the first >>>>>>>> parameter) >>>>>>>> Remember, this is a command, not a function, so the arguments are >>>>>>>> not >>>>>>>> enclosed: >>>>>>>> >>>>>>>> dropboxGetCurrentAccount oauthToken, account_id >>>>>>>> if the result is not empty then >>>>>>>> answer the result >>>>>>>> exit to top >>>>>>>> else #the result is empty >>>>>>>> answer it >>>>>>>> end if #the result is not empty >>>>>>>> _______________________________________________ >>>>>>>> use-livecode mailing list >>>>>>>> use-livecode at lists.runrev.com >>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>> subscription preferences: >>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>> subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> >>>> >>>> >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> >> -- >> On the first day, God created the heavens and the Earth >> On the second day, God created the oceans. >> On the third day, God put the animals on hold for a few hours, >> and did a little diving. >> And God said, "This is good." >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- 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 benr_mc at cogapp.com Wed Oct 11 10:08:33 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 11 Oct 2017 15:08:33 +0100 Subject: Dropbox library (LC 9) - does dropboxGetCurrentAccount work? In-Reply-To: References: <26105ea2-3d51-bcac-08f3-77550bcfa244@cogapp.com> <57b51bdd-dfe9-8f9e-fec3-4ee4d1a28cf4@cogapp.com> Message-ID: <250294ff-3d73-eb40-000d-c6890eb2b452@cogapp.com> Dodgy coding by someone at Dropbox. But there you go! Thanks for your help, Ben On 11/10/2017 14:23, Mike Kerner via use-livecode wrote: > And, curiously, as it turns out, the other endpoints that take a null post > accept empty (and don't like getting "null"). It seems this only affects > getCurrentAccount. > > On Wed, Oct 11, 2017 at 8:52 AM, Mike Kerner > wrote: > >> What Gerard did in the original library is use the word "null" instead of >> empty. So his version of __get_current_account_POST would be >> private function __get_current_account_POST >> return "null" >> end get_current_account_POST >> >> For some reason, empty doesn't work, but anything (inluding the word >> "null") works. >> >> Before I make the PR I'm going to see if anything else breaks by doing >> that, and I'm also going to add the rest of the error message, that gets >> dropped. >> >> >> On Wed, Oct 11, 2017 at 8:27 AM, Ben Rubinstein via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> 20555 for POST; 20556 for dropboxGetCurrentAccount. >>> >>> I have found the bug in LC's library, and I patched it to get it to work, >>>> but I want to understand more of why, and also to make sure I'm not going >>>> to break something else before I issue a pull request. >>>> >>> >>> How are you patching it to work? I can't see any way of issuing a POST >>> request in LC code (without using curl, which won't work on mobile) that >>> gets round this problem. >>> >>> >>> On 11/10/2017 11:58, Mike Kerner via use-livecode wrote: >>> >>>> Feel like opening a couple QR's? I think we need two: one for post and >>>> one for the error in the library. >>>> In fact, there are two problems in the library. One is the way the >>>> library >>>> handles errors returned by dropbox (you only get half the error message), >>>> and the other is the way endpoints like this one are handled. Hopefully >>>> I'll have both of those patched and up to my repo and the PR submitted, >>>> today. >>>> If you want, you can also patch the library code, but if you do, I'd >>>> suggest moving your project to LC8 and including the patched library >>>> stack >>>> as a substack. >>>> >>>> On Wed, Oct 11, 2017 at 6:45 AM, Ben Rubinstein via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> You beat me to it! >>>>> >>>>> >>>>> On 11/10/2017 11:23, Ben Rubinstein via use-livecode wrote: >>>>> >>>>> Hi Mike (or anyone else) >>>>>> >>>>>> Can you confirm that dropboxGetCurrentAccount (NOT dropboxGetAccount) >>>>>> is >>>>>> working for you in LC 9.0.0 dp 9? >>>>>> >>>>>> It consistently fails for me, and the problem seems to be precisely the >>>>>> lack of a parameter other than the access token. >>>>>> >>>>>> Dropbox returns a 400, AFAICT, precisely because the POST is empty. >>>>>> Fiddling with this in curl, I find that >>>>>> >>>>>> $ curl -X POST https://api.dropboxapi.com/2/users/get_current_account >>>>>> \ >>>>>> --header "Authorization: Bearer " >>>>>> >>>>>> works and returns the expected data; but >>>>>> >>>>>> $ curl -X POST https://api.dropboxapi.com/2/users/get_current_account >>>>>> \ >>>>>> --header "Content-Type: application/json" \ >>>>>> --header "Authorization: Bearer " \ >>>>>> --data-ascii "" >>>>>> >>>>>> which is roughly what LC is doing, fails with 400 Bad Request. >>>>>> >>>>>> In other words, it seems that Dropbox requires this call to be made as >>>>>> a >>>>>> POST with no data at all; and that what LiveCode does when posting >>>>>> empty to >>>>>> a URL is a post with a content-length of 0 - and Dropbox won't accept >>>>>> it. >>>>>> >>>>>> So I'm puzzled as to how this is working for you. Are you using a >>>>>> different version of DP9 with a different tsNet version perhaps? >>>>>> >>>>>> TIA, >>>>>> >>>>>> Ben >>>>>> >>>>>> On 11/10/2017 08:05, Ben Rubinstein via use-livecode wrote: >>>>>> >>>>>> Hi Mike, >>>>>>> >>>>>>> Thanks for checking. According to the Dictionary, >>>>>>> dropboxGetCurrentAccount only takes one parameter >>>>>>> dropboxGetCurrentAccount pAccessToken, [pCallback] >>>>>>> >>>>>>> if it's supposed to take two, that would explain the 400 error! But >>>>>>> how >>>>>>> does one obtain the account_id in the first place? >>>>>>> >>>>>>> I'm really only wanting to make this call because it looked liked the >>>>>>> cheapest way to find out if the app has a valid token for Dropobox; I >>>>>>> can >>>>>>> either display the account it's logged in to, or a button offering to >>>>>>> log >>>>>>> in. Is there another way? >>>>>>> >>>>>>> Many thanks, >>>>>>> >>>>>>> Ben >>>>>>> >>>>>>> On 11/10/2017 01:49, Mike Kerner via use-livecode wrote: >>>>>>> >>>>>>> It works for me in both 8 and 9. >>>>>>>> The only way I get error 400 is if I enclose the arguments in >>>>>>>> parenthesis >>>>>>>> (which tells LC that all of that goodness goes into the first >>>>>>>> parameter) >>>>>>>> Remember, this is a command, not a function, so the arguments are not >>>>>>>> enclosed: >>>>>>>> >>>>>>>> dropboxGetCurrentAccount oauthToken, account_id >>>>>>>> if the result is not empty then >>>>>>>> answer the result >>>>>>>> exit to top >>>>>>>> else #the result is empty >>>>>>>> answer it >>>>>>>> end if #the result is not empty >>>>>>>> _______________________________________________ >>>>>>>> use-livecode mailing list >>>>>>>> use-livecode at lists.runrev.com >>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>> subscription preferences: >>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>> subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> >>>> >>>> >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> >> -- >> On the first day, God created the heavens and the Earth >> On the second day, God created the oceans. >> On the third day, God put the animals on hold for a few hours, >> and did a little diving. >> And God said, "This is good." >> > > > From MikeKerner at roadrunner.com Wed Oct 11 10:11:53 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 11 Oct 2017 10:11:53 -0400 Subject: Dropbox library (LC 9) - does dropboxGetCurrentAccount work? In-Reply-To: <250294ff-3d73-eb40-000d-c6890eb2b452@cogapp.com> References: <26105ea2-3d51-bcac-08f3-77550bcfa244@cogapp.com> <57b51bdd-dfe9-8f9e-fec3-4ee4d1a28cf4@cogapp.com> <250294ff-3d73-eb40-000d-c6890eb2b452@cogapp.com> Message-ID: Please try to break it so I don't have my name on a PR that LC sends that breaks someone's mission critical app. On Wed, Oct 11, 2017 at 10:08 AM, Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > Dodgy coding by someone at Dropbox. But there you go! > > Thanks for your help, > > Ben > > > On 11/10/2017 14:23, Mike Kerner via use-livecode wrote: > >> And, curiously, as it turns out, the other endpoints that take a null post >> accept empty (and don't like getting "null"). It seems this only affects >> getCurrentAccount. >> >> On Wed, Oct 11, 2017 at 8:52 AM, Mike Kerner >> wrote: >> >> What Gerard did in the original library is use the word "null" instead of >>> empty. So his version of __get_current_account_POST would be >>> private function __get_current_account_POST >>> return "null" >>> end get_current_account_POST >>> >>> For some reason, empty doesn't work, but anything (inluding the word >>> "null") works. >>> >>> Before I make the PR I'm going to see if anything else breaks by doing >>> that, and I'm also going to add the rest of the error message, that gets >>> dropped. >>> >>> >>> On Wed, Oct 11, 2017 at 8:27 AM, Ben Rubinstein via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>> 20555 for POST; 20556 for dropboxGetCurrentAccount. >>>> >>>> I have found the bug in LC's library, and I patched it to get it to >>>> work, >>>> >>>>> but I want to understand more of why, and also to make sure I'm not >>>>> going >>>>> to break something else before I issue a pull request. >>>>> >>>>> >>>> How are you patching it to work? I can't see any way of issuing a POST >>>> request in LC code (without using curl, which won't work on mobile) that >>>> gets round this problem. >>>> >>>> >>>> On 11/10/2017 11:58, Mike Kerner via use-livecode wrote: >>>> >>>> Feel like opening a couple QR's? I think we need two: one for post and >>>>> one for the error in the library. >>>>> In fact, there are two problems in the library. One is the way the >>>>> library >>>>> handles errors returned by dropbox (you only get half the error >>>>> message), >>>>> and the other is the way endpoints like this one are handled. >>>>> Hopefully >>>>> I'll have both of those patched and up to my repo and the PR submitted, >>>>> today. >>>>> If you want, you can also patch the library code, but if you do, I'd >>>>> suggest moving your project to LC8 and including the patched library >>>>> stack >>>>> as a substack. >>>>> >>>>> On Wed, Oct 11, 2017 at 6:45 AM, Ben Rubinstein via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> You beat me to it! >>>>> >>>>>> >>>>>> >>>>>> On 11/10/2017 11:23, Ben Rubinstein via use-livecode wrote: >>>>>> >>>>>> Hi Mike (or anyone else) >>>>>> >>>>>>> >>>>>>> Can you confirm that dropboxGetCurrentAccount (NOT dropboxGetAccount) >>>>>>> is >>>>>>> working for you in LC 9.0.0 dp 9? >>>>>>> >>>>>>> It consistently fails for me, and the problem seems to be precisely >>>>>>> the >>>>>>> lack of a parameter other than the access token. >>>>>>> >>>>>>> Dropbox returns a 400, AFAICT, precisely because the POST is empty. >>>>>>> Fiddling with this in curl, I find that >>>>>>> >>>>>>> $ curl -X POST https://api.dropboxapi.com/2/u >>>>>>> sers/get_current_account >>>>>>> \ >>>>>>> --header "Authorization: Bearer " >>>>>>> >>>>>>> works and returns the expected data; but >>>>>>> >>>>>>> $ curl -X POST https://api.dropboxapi.com/2/u >>>>>>> sers/get_current_account >>>>>>> \ >>>>>>> --header "Content-Type: application/json" \ >>>>>>> --header "Authorization: Bearer " \ >>>>>>> --data-ascii "" >>>>>>> >>>>>>> which is roughly what LC is doing, fails with 400 Bad Request. >>>>>>> >>>>>>> In other words, it seems that Dropbox requires this call to be made >>>>>>> as >>>>>>> a >>>>>>> POST with no data at all; and that what LiveCode does when posting >>>>>>> empty to >>>>>>> a URL is a post with a content-length of 0 - and Dropbox won't accept >>>>>>> it. >>>>>>> >>>>>>> So I'm puzzled as to how this is working for you. Are you using a >>>>>>> different version of DP9 with a different tsNet version perhaps? >>>>>>> >>>>>>> TIA, >>>>>>> >>>>>>> Ben >>>>>>> >>>>>>> On 11/10/2017 08:05, Ben Rubinstein via use-livecode wrote: >>>>>>> >>>>>>> Hi Mike, >>>>>>> >>>>>>>> >>>>>>>> Thanks for checking. According to the Dictionary, >>>>>>>> dropboxGetCurrentAccount only takes one parameter >>>>>>>> dropboxGetCurrentAccount pAccessToken, [pCallback] >>>>>>>> >>>>>>>> if it's supposed to take two, that would explain the 400 error! But >>>>>>>> how >>>>>>>> does one obtain the account_id in the first place? >>>>>>>> >>>>>>>> I'm really only wanting to make this call because it looked liked >>>>>>>> the >>>>>>>> cheapest way to find out if the app has a valid token for Dropobox; >>>>>>>> I >>>>>>>> can >>>>>>>> either display the account it's logged in to, or a button offering >>>>>>>> to >>>>>>>> log >>>>>>>> in. Is there another way? >>>>>>>> >>>>>>>> Many thanks, >>>>>>>> >>>>>>>> Ben >>>>>>>> >>>>>>>> On 11/10/2017 01:49, Mike Kerner via use-livecode wrote: >>>>>>>> >>>>>>>> It works for me in both 8 and 9. >>>>>>>> >>>>>>>>> The only way I get error 400 is if I enclose the arguments in >>>>>>>>> parenthesis >>>>>>>>> (which tells LC that all of that goodness goes into the first >>>>>>>>> parameter) >>>>>>>>> Remember, this is a command, not a function, so the arguments are >>>>>>>>> not >>>>>>>>> enclosed: >>>>>>>>> >>>>>>>>> dropboxGetCurrentAccount oauthToken, account_id >>>>>>>>> if the result is not empty then >>>>>>>>> answer the result >>>>>>>>> exit to top >>>>>>>>> else #the result is empty >>>>>>>>> answer it >>>>>>>>> end if #the result is not empty >>>>>>>>> _______________________________________________ >>>>>>>>> use-livecode mailing list >>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>> subscription preferences: >>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> >>>>>>>> use-livecode mailing list >>>>>>>> use-livecode at lists.runrev.com >>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>> subscription preferences: >>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>> subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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 > -- 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 Wed Oct 11 11:14:43 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Oct 2017 15:14:43 +0000 Subject: Handy behavior snippet Message-ID: <3390CFBE-E006-45D3-A875-CE448FBAD656@iotecdigital.com> Hi all. I came up with this handy snippet to put in a mouseUp handler of any behavior button: -- check for behavior script editing if (the optionKey is down or the altkey is down) and the controlkey is down and \ the environment is "development" then edit the script of this me exit mouseUp end if Bob S -- this isn't part of the snippet From panos.merakos at livecode.com Wed Oct 11 11:20:33 2017 From: panos.merakos at livecode.com (panagiotis merakos) Date: Wed, 11 Oct 2017 16:20:33 +0100 Subject: [ANN] Release 8.2.0 DP-2 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 8.2.0 DP-2. Getting the Release =================== You can get the release at https://downloads.livecode.com/livecode/ or via the automatic updater. Release Contents ================ LiveCode 8.2.0 DP-2 contains 31 bug fixes and stability improvements. Moreover, we have added a Preference for controlling the various new features of the Script Editor (autocomplete, bracket completion, live errors etc). You can enable/disable these features from the menubar of the Script Editor, under Edit -> Options -> .. Last but not least, LiveCode 8.2.0 DP-2 contains all the changes in the LiveCode 8.1.7 release cycle (i.e. Xcode 9 support etc) For those of you who missed it, the LiveCode 8.2.0 DP-X release cycle has introduced a new edition, "Community Plus" For more details about Community Plus, see this page: https://livecode.com/products/community-plus-edition/ For more details on the Autocomplete feature, read this blogpost: https://livecode.com/new-autocomplete-live-errors-in-livecode-8-2 Moreover, in LiveCode 8.2.0 DP-2 Dictionary, all the extension docs are incorporated in the main LiveCode Script dictionary. This improves searchability, as well as preventing the library list getting too large. The full release notes are available from: http://downloads.livecode.com/livecode/8_2_0/LiveCodeNotes-8_2_0_dp_2.pdf Feedback ======== Please report any bugs encountered on our BugZilla at http://quality.livecode.com/ Have fun! The LiveCode Team -- From matthias_livecode_150811 at m-r-d.de Wed Oct 11 11:24:55 2017 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 11 Oct 2017 17:24:55 +0200 Subject: [ANN] Release 8.2.0 DP-2 In-Reply-To: References: Message-ID: <5A9AD642-5AF0-48D7-991F-7E206324906C@m-r-d.de> Panos, when will there be a new version 9 dp? It?s now some weeks ago since dp9. Regards, Matthias Matthias Rebbe +49 5741 310000 ?wirmachen.software ? > Am 11.10.2017 um 17:20 schrieb panagiotis merakos via use-livecode >: > > Dear list members, > > We are pleased to announce the release of LiveCode 8.2.0 DP-2. > > Getting the Release > =================== > You can get the release at https://downloads.livecode.com/livecode/ or via > the automatic updater. > > > Release Contents > ================ > > LiveCode 8.2.0 DP-2 contains 31 bug fixes and stability improvements. > Moreover, we have added a Preference for controlling the various new > features of the Script Editor (autocomplete, bracket completion, live > errors etc). You can enable/disable these features from the menubar of the > Script Editor, under Edit -> Options -> .. > Last but not least, LiveCode 8.2.0 DP-2 contains all the changes in the > LiveCode 8.1.7 release cycle (i.e. Xcode 9 support etc) > > For those of you who missed it, the LiveCode 8.2.0 DP-X release cycle has > introduced a new edition, "Community Plus" > > For more details about Community Plus, see this page: > https://livecode.com/products/community-plus-edition/ > > For more details on the Autocomplete feature, read this blogpost: > https://livecode.com/new-autocomplete-live-errors-in-livecode-8-2 > > Moreover, in LiveCode 8.2.0 DP-2 Dictionary, all the extension docs are > incorporated in the main LiveCode Script dictionary. This improves > searchability, as well as preventing the library list getting too large. > > > The full release notes are available from: > http://downloads.livecode.com/livecode/8_2_0/LiveCodeNotes-8_2_0_dp_2.pdf > > > Feedback > ======== > Please report any bugs encountered on our BugZilla at > http://quality.livecode.com/ > > > 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 merakosp at gmail.com Wed Oct 11 11:34:54 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Wed, 11 Oct 2017 16:34:54 +0100 Subject: [ANN] Release 8.2.0 DP-2 In-Reply-To: <5A9AD642-5AF0-48D7-991F-7E206324906C@m-r-d.de> References: <5A9AD642-5AF0-48D7-991F-7E206324906C@m-r-d.de> Message-ID: Hi Matthias, Unfortunately we cannot give an ETA at this point for 9.0 DP-10, but "off the record" I would expect it within the next couple of weeks. Currently there are a couple of things we would like to include in 9.0 DP-10. This is a list from BugZilla http://quality.livecode.com/buglist.cgi?list_id=77472&query_format=advanced&target_milestone=9.0.0-dp-10&token=1507735851-88a1cd307824f6ceeefb2788f4b32c3a&order=bug_status%20DESC%2Cchangeddate%20DESC%2Cbug_id&query_based_on= And those are some open PRs in github on the main LiveCode repo: https://github.com/livecode/livecode/milestone/154 Note that these lists are subject to change, but you can get a rough idea on what we are currently working on. Best, Panos -- On Wed, Oct 11, 2017 at 4:24 PM, Matthias Rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Panos, > > when will there be a new version 9 dp? It?s now some weeks ago since dp9. > > Regards, > Matthias > > Matthias Rebbe > +49 5741 310000 > ?wirmachen.software ? > > Am 11.10.2017 um 17:20 schrieb panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com >: > > > > Dear list members, > > > > We are pleased to announce the release of LiveCode 8.2.0 DP-2. > > > > Getting the Release > > =================== > > You can get the release at https://downloads.livecode.com/livecode/ < > https://downloads.livecode.com/livecode/> or via > > the automatic updater. > > > > > > Release Contents > > ================ > > > > LiveCode 8.2.0 DP-2 contains 31 bug fixes and stability improvements. > > Moreover, we have added a Preference for controlling the various new > > features of the Script Editor (autocomplete, bracket completion, live > > errors etc). You can enable/disable these features from the menubar of > the > > Script Editor, under Edit -> Options -> .. > > Last but not least, LiveCode 8.2.0 DP-2 contains all the changes in the > > LiveCode 8.1.7 release cycle (i.e. Xcode 9 support etc) > > > > For those of you who missed it, the LiveCode 8.2.0 DP-X release cycle has > > introduced a new edition, "Community Plus" > > > > For more details about Community Plus, see this page: > > https://livecode.com/products/community-plus-edition/ < > https://livecode.com/products/community-plus-edition/> > > > > For more details on the Autocomplete feature, read this blogpost: > > https://livecode.com/new-autocomplete-live-errors-in-livecode-8-2 > > > > Moreover, in LiveCode 8.2.0 DP-2 Dictionary, all the extension docs are > > incorporated in the main LiveCode Script dictionary. This improves > > searchability, as well as preventing the library list getting too large. > > > > > > The full release notes are available from: > > http://downloads.livecode.com/livecode/8_2_0/LiveCodeNotes- > 8_2_0_dp_2.pdf > > > > > > Feedback > > ======== > > Please report any bugs encountered on our BugZilla at > > http://quality.livecode.com/ > > > > > > 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 bobsneidar at iotecdigital.com Wed Oct 11 11:57:30 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Oct 2017 15:57:30 +0000 Subject: controlNames?? Message-ID: Did the controlNames change from 8.1.6 to 8.1.7? My code is referring to a control ID. In 8.1.6, the controlNames is a list of numbers. In 8.1.7 rc3 it is an actual list of NAMES. Bob S From merakosp at gmail.com Wed Oct 11 12:00:14 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Wed, 11 Oct 2017 17:00:14 +0100 Subject: controlNames?? In-Reply-To: References: Message-ID: Hi Bob, Yes, this was a bug, fixed in 8.1.7 RC1: http://quality.livecode.com/show_bug.cgi?id=20201 Best, Panos -- On Wed, Oct 11, 2017 at 4:57 PM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Did the controlNames change from 8.1.6 to 8.1.7? My code is referring to a > control ID. In 8.1.6, the controlNames is a list of numbers. In 8.1.7 rc3 > it is an actual list of NAMES. > > 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 Oct 11 12:02:54 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Oct 2017 16:02:54 +0000 Subject: controlNames?? In-Reply-To: References: Message-ID: <95C09A5A-8C91-4A7E-A042-CC77DCE8C629@iotecdigital.com> Thanks Panos. I worked around it with a simple line that checks to see if it is a number and if not to get the id of the control. I remember now thinking how odd it was to return IDs for controlnames. :-) Bob S > On Oct 11, 2017, at 09:00 , panagiotis merakos via use-livecode wrote: > > Hi Bob, > > Yes, this was a bug, fixed in 8.1.7 RC1: > > http://quality.livecode.com/show_bug.cgi?id=20201 > > Best, > Panos From irog at mac.com Wed Oct 11 12:09:06 2017 From: irog at mac.com (Roger Guay) Date: Wed, 11 Oct 2017 09:09:06 -0700 Subject: Handy behavior snippet In-Reply-To: <3390CFBE-E006-45D3-A875-CE448FBAD656@iotecdigital.com> References: <3390CFBE-E006-45D3-A875-CE448FBAD656@iotecdigital.com> Message-ID: On a Mac you just hold the option and command keys down and click the control to access it?s script. Isn?t there an equivalent key combination for Windows? Roger > On Oct 11, 2017, at 8:14 AM, Bob Sneidar via use-livecode wrote: > > Hi all. > > I came up with this handy snippet to put in a mouseUp handler of any behavior button: > > -- check for behavior script editing > if (the optionKey is down or the altkey is down) and the controlkey is down and \ > the environment is "development" then > edit the script of this me > exit mouseUp > end if > > Bob S -- this isn't part of the snippet > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From benr_mc at cogapp.com Wed Oct 11 12:00:28 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 11 Oct 2017 17:00:28 +0100 Subject: Dropbox library (LC 9) - does dropboxGetCurrentAccount work? In-Reply-To: References: <26105ea2-3d51-bcac-08f3-77550bcfa244@cogapp.com> <57b51bdd-dfe9-8f9e-fec3-4ee4d1a28cf4@cogapp.com> Message-ID: <75d2ceb8-3be8-f2b3-0815-d5ced2243374@cogapp.com> Confessions of ignorance time: - how do you add a script-only stack as a substack to another stack? Or does one just past the text into a button or similar and start using it? This is in relation to 8. For 9, I simply replaced /Contents/Tools/Toolset/libraries/dropbox.livecodescript inside the app package with your file, and that seemed to work fine. TIA, Ben On 11/10/2017 14:41, Mike Kerner via use-livecode wrote: > Ben, > I updated the library and pushed it to my repo. Let me know if that makes > everything work before I do a PR with LC > https://github.com/macMikey/LCDropboxLibrary > > Try it in 8, including the script file as a subscript. If you want to use > it in 9, copy/paste it into your stack script. > From benr_mc at cogapp.com Wed Oct 11 12:02:49 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 11 Oct 2017 17:02:49 +0100 Subject: OAuth2 (LC 9) on mobile? Message-ID: <37928db6-4057-9d2d-f31d-ff7466625d2a@cogapp.com> Does the new OAuth2 library in LC 9 work on mobile? Docs suggest it should, but testing on iPad I just get an interesting dimmed out effect on the stack - although in fact everything still works - where I would have expected a sheet or switching to Safari or some other way of displaying a web page. TIA, Ben From bobsneidar at iotecdigital.com Wed Oct 11 12:10:52 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Oct 2017 16:10:52 +0000 Subject: Handy behavior snippet In-Reply-To: References: <3390CFBE-E006-45D3-A875-CE448FBAD656@iotecdigital.com> Message-ID: That edits the script of the actual button. It doesn't edit the script of the behavior of that button. That is what my snippet does. You put it into a mouseUp handler of the BEHAVIOR script. Bob S > On Oct 11, 2017, at 09:09 , Roger Guay via use-livecode wrote: > > On a Mac you just hold the option and command keys down and click the control to access it?s script. Isn?t there an equivalent key combination for Windows? > > Roger From irog at mac.com Wed Oct 11 12:12:18 2017 From: irog at mac.com (Roger Guay) Date: Wed, 11 Oct 2017 09:12:18 -0700 Subject: Handy behavior snippet In-Reply-To: References: <3390CFBE-E006-45D3-A875-CE448FBAD656@iotecdigital.com> Message-ID: <017E9EA7-E9EF-4F58-9069-B4EE6CFC9B68@mac.com> Ah yes . . . excellent! Thanks!! > On Oct 11, 2017, at 9:10 AM, Bob Sneidar via use-livecode wrote: > > That edits the script of the actual button. It doesn't edit the script of the behavior of that button. That is what my snippet does. You put it into a mouseUp handler of the BEHAVIOR script. > > Bob S > > >> On Oct 11, 2017, at 09:09 , Roger Guay via use-livecode wrote: >> >> On a Mac you just hold the option and command keys down and click the control to access it?s script. Isn?t there an equivalent key combination for Windows? >> >> 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 merakosp at gmail.com Wed Oct 11 12:12:34 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Wed, 11 Oct 2017 17:12:34 +0100 Subject: controlNames?? In-Reply-To: <95C09A5A-8C91-4A7E-A042-CC77DCE8C629@iotecdigital.com> References: <95C09A5A-8C91-4A7E-A042-CC77DCE8C629@iotecdigital.com> Message-ID: No problem Bob. In fact this bug report was submitted by you :) Panos -- On Wed, Oct 11, 2017 at 5:02 PM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Thanks Panos. I worked around it with a simple line that checks to see if > it is a number and if not to get the id of the control. I remember now > thinking how odd it was to return IDs for controlnames. :-) > > Bob S > > > > On Oct 11, 2017, at 09:00 , panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi Bob, > > > > Yes, this was a bug, fixed in 8.1.7 RC1: > > > > http://quality.livecode.com/show_bug.cgi?id=20201 > > > > 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 bobsneidar at iotecdigital.com Wed Oct 11 12:14:12 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Oct 2017 16:14:12 +0000 Subject: Handy behavior snippet In-Reply-To: References: <3390CFBE-E006-45D3-A875-CE448FBAD656@iotecdigital.com> Message-ID: <7ECDD3F5-13B5-4D40-93EE-542457A6A047@iotecdigital.com> BTW this reminds me of a feature request I'd like to see implemented at some point. When in browse mode, command-option-clicking a disable button will NOT edit it's script. It will edit the script of the CARD instead, presumably because a disabled button does not receive a mouseUp in browse mode (odd that it would in pointer mode). Anyone else think this would be useful? Bob S > On Oct 11, 2017, at 09:10 , Bob Sneidar via use-livecode wrote: > > That edits the script of the actual button. It doesn't edit the script of the behavior of that button. That is what my snippet does. You put it into a mouseUp handler of the BEHAVIOR script. > > Bob S > > >> On Oct 11, 2017, at 09:09 , Roger Guay via use-livecode wrote: >> >> On a Mac you just hold the option and command keys down and click the control to access it?s script. Isn?t there an equivalent key combination for Windows? >> >> 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 bobsneidar at iotecdigital.com Wed Oct 11 12:14:44 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Oct 2017 16:14:44 +0000 Subject: controlNames?? In-Reply-To: References: <95C09A5A-8C91-4A7E-A042-CC77DCE8C629@iotecdigital.com> Message-ID: It's all coming back to me... ;-P Bob S > On Oct 11, 2017, at 09:12 , panagiotis merakos via use-livecode wrote: > > No problem Bob. In fact this bug report was submitted by you :) > > Panos From benr_mc at cogapp.com Wed Oct 11 12:12:02 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 11 Oct 2017 17:12:02 +0100 Subject: Dropbox library in LC 9 - centralise the access token? Message-ID: <49cd90c8-cefe-16c3-faa0-d6546802bbc5@cogapp.com> The new Dropbox library is (going to be) great. But while it's still only in DP, can I suggest a modest improvement? Every single command in the library takes an access token as the first parameter. Given that most uses of the library will involve multiple calls; and the cases where an app is juggling two different dropbox accounts will surely be vanishingly small; wouldn't it be much more elegant if there was a single command "dropboxSetAccessToken" or similar, to normally be used just once in a session - then every other command would drop that parameter? Ben From benr_mc at cogapp.com Wed Oct 11 12:19:49 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 11 Oct 2017 17:19:49 +0100 Subject: OAuth2 (LC 9) on mobile? In-Reply-To: <37928db6-4057-9d2d-f31d-ff7466625d2a@cogapp.com> References: <37928db6-4057-9d2d-f31d-ff7466625d2a@cogapp.com> Message-ID: To clarify, by "everything still works" I mean that the OAuth2 command appears to have done "exit to top" without doing anything - but leaving the whole screen dimmed out. So other controls on the card, although dim, work. But no authorisation has happened. On 11/10/2017 17:02, Ben Rubinstein via use-livecode wrote: > Does the new OAuth2 library in LC 9 work on mobile? Docs suggest it should, > but testing on iPad I just get an interesting dimmed out effect on the stack - > although in fact everything still works - where I would have expected a sheet > or switching to Safari or some other way of displaying a web page. > > TIA, > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Wed Oct 11 12:26:10 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 11 Oct 2017 11:26:10 -0500 Subject: Handy behavior snippet In-Reply-To: References: <3390CFBE-E006-45D3-A875-CE448FBAD656@iotecdigital.com> Message-ID: <15f0c41f4d0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> The same thing was added to the object contextual menu recently. You're right it's very handy but they beat you to it. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 11, 2017 11:12:46 AM Bob Sneidar via use-livecode wrote: > That edits the script of the actual button. It doesn't edit the script of > the behavior of that button. That is what my snippet does. You put it into > a mouseUp handler of the BEHAVIOR script. > > Bob S > > >> On Oct 11, 2017, at 09:09 , Roger Guay via use-livecode >> wrote: >> >> On a Mac you just hold the option and command keys down and click the >> control to access it?s script. Isn?t there an equivalent key combination >> for Windows? >> >> 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 bobsneidar at iotecdigital.com Wed Oct 11 12:32:50 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Oct 2017 16:32:50 +0000 Subject: Handy behavior snippet In-Reply-To: <15f0c41f4d0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <3390CFBE-E006-45D3-A875-CE448FBAD656@iotecdigital.com> <15f0c41f4d0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Oh right! shift-control-command click! (For MacOS at least) Bob S > On Oct 11, 2017, at 09:26 , J. Landman Gay via use-livecode wrote: > > The same thing was added to the object contextual menu recently. You're right it's very handy but they beat you to it. :) > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Wed Oct 11 12:36:34 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Oct 2017 16:36:34 +0000 Subject: Handy behavior snippet In-Reply-To: References: <3390CFBE-E006-45D3-A875-CE448FBAD656@iotecdigital.com> <15f0c41f4d0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Hmmm... if you mean editing the script of a disable button, yes. But there is nothing there to edit the behavior of the object. That would be really handy, because it wouldn't be restricted to just buttons or objects that get mouseUp. I know in v9 there is a little target icon in the properties of an object (maybe it was the script I don't remember), but not in v8. Bob S > On Oct 11, 2017, at 09:32 , Bob Sneidar via use-livecode wrote: > > Oh right! shift-control-command click! (For MacOS at least) > > Bob S > > >> On Oct 11, 2017, at 09:26 , J. Landman Gay via use-livecode wrote: >> >> The same thing was added to the object contextual menu recently. You're right it's very handy but they beat you to it. :) >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com From merakosp at gmail.com Wed Oct 11 12:36:53 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Wed, 11 Oct 2017 17:36:53 +0100 Subject: Note to everyone building from source Message-ID: Hi all, Starting from LC 8.2 DP-2, the Dictionary contains only two main APIs: LiveCode Script and LiveCode Builder. This change will be merged into the LC 9.x release cycle (i.e. into "develop" branch). Anyone building from source using "develop-8.2" or "develop" branches is advised to clear the contents of the Documentation Cache folder, to ensure that no existing (old) docs APIs are messing with the new ones that have a different structure. That folder is located in: Mac: /Users//Library/Application Support/RunRev/Documentation Cache Windows: C:\Users\\AppData\Local\RunRev\Documentation Cache Linux: .runrev/documentationcache Note: Inside that folder, find the subfolder of the version you want to delete, e.g "8_2_0_dp_2_community" Best, Panos -- From MikeKerner at roadrunner.com Wed Oct 11 13:02:14 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 11 Oct 2017 13:02:14 -0400 Subject: Dropbox library in LC 9 - centralise the access token? In-Reply-To: <49cd90c8-cefe-16c3-faa0-d6546802bbc5@cogapp.com> References: <49cd90c8-cefe-16c3-faa0-d6546802bbc5@cogapp.com> Message-ID: so file a qr. since it's written in LC it should be doable by either of us...or anyone On Wed, Oct 11, 2017 at 12:12 PM, Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > The new Dropbox library is (going to be) great. But while it's still only > in DP, can I suggest a modest improvement? > > Every single command in the library takes an access token as the first > parameter. Given that most uses of the library will involve multiple calls; > and the cases where an app is juggling two different dropbox accounts will > surely be vanishingly small; wouldn't it be much more elegant if there was > a single command "dropboxSetAccessToken" or similar, to normally be used > just once in a session - then every other command would drop that parameter? > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode 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 jacque at hyperactivesw.com Wed Oct 11 13:04:29 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 11 Oct 2017 12:04:29 -0500 Subject: Handy behavior snippet In-Reply-To: References: <3390CFBE-E006-45D3-A875-CE448FBAD656@iotecdigital.com> <15f0c41f4d0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <15f0c650948.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I can't remember when it was added but I've been using v9 for a while so maybe it was that version. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 11, 2017 11:38:23 AM Bob Sneidar via use-livecode wrote: > Hmmm... if you mean editing the script of a disable button, yes. But there > is nothing there to edit the behavior of the object. That would be really > handy, because it wouldn't be restricted to just buttons or objects that > get mouseUp. I know in v9 there is a little target icon in the properties > of an object (maybe it was the script I don't remember), but not in v8. > > Bob S > > >> On Oct 11, 2017, at 09:32 , Bob Sneidar via use-livecode >> wrote: >> >> Oh right! shift-control-command click! (For MacOS at least) >> >> Bob S >> >> >>> On Oct 11, 2017, at 09:26 , J. Landman Gay via use-livecode >>> wrote: >>> >>> The same thing was added to the object contextual menu recently. You're >>> right it's very handy but they beat you to it. :) >>> >>> -- >>> 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 MikeKerner at roadrunner.com Wed Oct 11 13:05:59 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 11 Oct 2017 13:05:59 -0400 Subject: Dropbox library in LC 9 - centralise the access token? In-Reply-To: References: <49cd90c8-cefe-16c3-faa0-d6546802bbc5@cogapp.com> Message-ID: And I don't know how modest it will be - the syntax of every command in the library would have to be updated, which means everyone's code (who is using the library) would have to update it. We could also have a new dropbox library that implements this, but then it would be up to the team to deprecate this one, or we would have competing libraries. On Wed, Oct 11, 2017 at 1:02 PM, Mike Kerner wrote: > so file a qr. since it's written in LC it should be doable by either of > us...or anyone > > On Wed, Oct 11, 2017 at 12:12 PM, Ben Rubinstein via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> The new Dropbox library is (going to be) great. But while it's still only >> in DP, can I suggest a modest improvement? >> >> Every single command in the library takes an access token as the first >> parameter. Given that most uses of the library will involve multiple calls; >> and the cases where an app is juggling two different dropbox accounts will >> surely be vanishingly small; wouldn't it be much more elegant if there was >> a single command "dropboxSetAccessToken" or similar, to normally be used >> just once in a session - then every other command would drop that parameter? >> >> Ben >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From danoldboy at gmail.com Wed Oct 11 13:09:50 2017 From: danoldboy at gmail.com (Dan Brown) Date: Wed, 11 Oct 2017 18:09:50 +0100 Subject: [ANN] Release 8.2.0 DP-2 In-Reply-To: References: Message-ID: Any news on the progress of datagrid v2 and enhanced graphics speed? On 11 Oct 2017 4:20 pm, "panagiotis merakos via use-livecode" < use-livecode at lists.runrev.com> wrote: > Dear list members, > > We are pleased to announce the release of LiveCode 8.2.0 DP-2. > > Getting the Release > =================== > You can get the release at https://downloads.livecode.com/livecode/ or via > the automatic updater. > > > Release Contents > ================ > > LiveCode 8.2.0 DP-2 contains 31 bug fixes and stability improvements. > Moreover, we have added a Preference for controlling the various new > features of the Script Editor (autocomplete, bracket completion, live > errors etc). You can enable/disable these features from the menubar of the > Script Editor, under Edit -> Options -> .. > Last but not least, LiveCode 8.2.0 DP-2 contains all the changes in the > LiveCode 8.1.7 release cycle (i.e. Xcode 9 support etc) > > For those of you who missed it, the LiveCode 8.2.0 DP-X release cycle has > introduced a new edition, "Community Plus" > > For more details about Community Plus, see this page: > https://livecode.com/products/community-plus-edition/ > > For more details on the Autocomplete feature, read this blogpost: > https://livecode.com/new-autocomplete-live-errors-in-livecode-8-2 > > Moreover, in LiveCode 8.2.0 DP-2 Dictionary, all the extension docs are > incorporated in the main LiveCode Script dictionary. This improves > searchability, as well as preventing the library list getting too large. > > > The full release notes are available from: > http://downloads.livecode.com/livecode/8_2_0/LiveCodeNotes-8_2_0_dp_2.pdf > > > Feedback > ======== > Please report any bugs encountered on our BugZilla at > http://quality.livecode.com/ > > > 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 Wed Oct 11 13:12:44 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 11 Oct 2017 10:12:44 -0700 Subject: Dropbox library in LC 9 - centralise the access token? In-Reply-To: <49cd90c8-cefe-16c3-faa0-d6546802bbc5@cogapp.com> References: <49cd90c8-cefe-16c3-faa0-d6546802bbc5@cogapp.com> Message-ID: <1ee38e6e-2bff-c3e0-6025-8728803a397a@fourthworld.com> Ben Rubinstein wrote: > The new Dropbox library is (going to be) great. But while it's still only in > DP, can I suggest a modest improvement? > > Every single command in the library takes an access token as the first > parameter. Given that most uses of the library will involve multiple calls; > and the cases where an app is juggling two different dropbox accounts will > surely be vanishingly small; wouldn't it be much more elegant if there was a > single command "dropboxSetAccessToken" or similar, to normally be used just > once in a session - then every other command would drop that parameter? Does Dropbox limit syncing to a single account? Will Dropbox always have that limitation? FWIW Nextcloud allows any number of folders synced with any number of servers. -- 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 benr_mc at cogapp.com Wed Oct 11 13:16:59 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 11 Oct 2017 18:16:59 +0100 Subject: Dropbox library in LC 9 - centralise the access token? In-Reply-To: References: <49cd90c8-cefe-16c3-faa0-d6546802bbc5@cogapp.com> Message-ID: That's why I raise it for discussion here first. My guess is that if this is only in LC 9, and only since DP-7, then the number of people already using it will be small - certainly in proportion to the number who will go on to use it in years ahead! And for those small number of people (possibly single digits??) the effort to switch existing code will be pretty low... Ben On 11/10/2017 18:05, Mike Kerner via use-livecode wrote: > And I don't know how modest it will be - the syntax of every command in the > library would have to be updated, which means everyone's code (who is using > the library) would have to update it. > We could also have a new dropbox library that implements this, but then it > would be up to the team to deprecate this one, or we would have competing > libraries. > > On Wed, Oct 11, 2017 at 1:02 PM, Mike Kerner > wrote: > >> so file a qr. since it's written in LC it should be doable by either of >> us...or anyone >> >> On Wed, Oct 11, 2017 at 12:12 PM, Ben Rubinstein via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> The new Dropbox library is (going to be) great. But while it's still only >>> in DP, can I suggest a modest improvement? >>> >>> Every single command in the library takes an access token as the first >>> parameter. Given that most uses of the library will involve multiple calls; >>> and the cases where an app is juggling two different dropbox accounts will >>> surely be vanishingly small; wouldn't it be much more elegant if there was >>> a single command "dropboxSetAccessToken" or similar, to normally be used >>> just once in a session - then every other command would drop that parameter? >>> >>> Ben >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 benr_mc at cogapp.com Wed Oct 11 14:00:10 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 11 Oct 2017 19:00:10 +0100 Subject: Dropbox library in LC 9 - centralise the access token? In-Reply-To: <1ee38e6e-2bff-c3e0-6025-8728803a397a@fourthworld.com> References: <49cd90c8-cefe-16c3-faa0-d6546802bbc5@cogapp.com> <1ee38e6e-2bff-c3e0-6025-8728803a397a@fourthworld.com> Message-ID: > Does Dropbox limit syncing to a single account? As far as I know, yes. That doesn't mean the API enforces this - only that every app and interface I've come across for it does - you log in as a given account, and you're operating on that account. There is a folder "~/Dropbox" (or Windows equivalent), and that's the synced folder. I don't actually know what happens if, for example on a desktop, you log out of one account and into another - what it does to the contents of the "Dropbox" folder. I assume this is by design - the chief virtue of Dropbox is its simplicity. In principle I think that a new app, e.g. built in LiveCode, could perfectly happy operate on a number of accounts simultaneously. But my proposal in no way prevents that - the code that makes a series of calls to the Dropbox API would precede them with a single call to set the relevant token, rather than passing that token in every call. This is how Monte's mergDropbox library worked, for example. This is also how the AWS library in LC9 works - you call AWSSetCredentials first, then all subsequent commands/functions operate on that account, until you call AWSSetCredentials again to switch to another one. There might be some virtue in consistency! In the same way, you make one call to cameracontrol to select which camera subsequent calls refer, rather than passing "front" or "back" in every call. The same way in the printing library you set the printer you're addressing. Etc.. On 11/10/2017 18:12, Richard Gaskin via use-livecode wrote: > Ben Rubinstein wrote: >> The new Dropbox library is (going to be) great. But while it's still only in >> DP, can I suggest a modest improvement? >> >> Every single command in the library takes an access token as the first >> parameter. Given that most uses of the library will involve multiple calls; >> and the cases where an app is juggling two different dropbox accounts will >> surely be vanishingly small; wouldn't it be much more elegant if there was a >> single command "dropboxSetAccessToken" or similar, to normally be used just >> once in a session - then every other command would drop that parameter? > > Does Dropbox limit syncing to a single account? > > Will Dropbox always have that limitation? > > FWIW Nextcloud allows any number of folders synced with any number of servers. > From MikeKerner at roadrunner.com Wed Oct 11 14:23:16 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 11 Oct 2017 14:23:16 -0400 Subject: Dropbox library in LC 9 - centralise the access token? In-Reply-To: References: <49cd90c8-cefe-16c3-faa0-d6546802bbc5@cogapp.com> <1ee38e6e-2bff-c3e0-6025-8728803a397a@fourthworld.com> Message-ID: Most of the filestore apps, be they box, dropbox, google drive, oneDrive, etc. only operate on one account at a time. That's one of the nice things about the API's - you can operate on an unlimited number from your app. On Wed, Oct 11, 2017 at 2:00 PM, Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > > Does Dropbox limit syncing to a single account? > > As far as I know, yes. > > That doesn't mean the API enforces this - only that every app and > interface I've come across for it does - you log in as a given account, and > you're operating on that account. There is a folder "~/Dropbox" (or Windows > equivalent), and that's the synced folder. I don't actually know what > happens if, for example on a desktop, you log out of one account and into > another - what it does to the contents of the "Dropbox" folder. > > I assume this is by design - the chief virtue of Dropbox is its simplicity. > > In principle I think that a new app, e.g. built in LiveCode, could > perfectly happy operate on a number of accounts simultaneously. But my > proposal in no way prevents that - the code that makes a series of calls to > the Dropbox API would precede them with a single call to set the relevant > token, rather than passing that token in every call. This is how Monte's > mergDropbox library worked, for example. > > This is also how the AWS library in LC9 works - you call AWSSetCredentials > first, then all subsequent commands/functions operate on that account, > until you call AWSSetCredentials again to switch to another one. There > might be some virtue in consistency! > > In the same way, you make one call to cameracontrol to select which camera > subsequent calls refer, rather than passing "front" or "back" in every > call. The same way in the printing library you set the printer you're > addressing. Etc.. > > > > > On 11/10/2017 18:12, Richard Gaskin via use-livecode wrote: > >> Ben Rubinstein wrote: >> >>> The new Dropbox library is (going to be) great. But while it's still >>> only in DP, can I suggest a modest improvement? >>> >>> Every single command in the library takes an access token as the first >>> parameter. Given that most uses of the library will involve multiple calls; >>> and the cases where an app is juggling two different dropbox accounts will >>> surely be vanishingly small; wouldn't it be much more elegant if there was >>> a single command "dropboxSetAccessToken" or similar, to normally be used >>> just once in a session - then every other command would drop that parameter? >>> >> >> Does Dropbox limit syncing to a single account? >> >> Will Dropbox always have that limitation? >> >> FWIW Nextcloud allows any number of folders synced with any number of >> servers. >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Wed Oct 11 14:25:38 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 11 Oct 2017 14:25:38 -0400 Subject: Handy behavior snippet In-Reply-To: <15f0c650948.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <3390CFBE-E006-45D3-A875-CE448FBAD656@iotecdigital.com> <15f0c41f4d0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <15f0c650948.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: In dp9, now, when you right-click on an object, the first line is edit script, the second is edit behavior script. On Wed, Oct 11, 2017 at 1:04 PM, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > I can't remember when it was added but I've been using v9 for a while so > maybe it was that version. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > On October 11, 2017 11:38:23 AM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > > Hmmm... if you mean editing the script of a disable button, yes. But there >> is nothing there to edit the behavior of the object. That would be really >> handy, because it wouldn't be restricted to just buttons or objects that >> get mouseUp. I know in v9 there is a little target icon in the properties >> of an object (maybe it was the script I don't remember), but not in v8. >> >> Bob S >> >> >> On Oct 11, 2017, at 09:32 , Bob Sneidar via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>> Oh right! shift-control-command click! (For MacOS at least) >>> >>> Bob S >>> >>> >>> On Oct 11, 2017, at 09:26 , J. Landman Gay via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> The same thing was added to the object contextual menu recently. You're >>>> right it's very handy but they beat you to it. :) >>>> >>>> -- >>>> 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 > -- 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 hh at hyperhh.de Wed Oct 11 14:31:55 2017 From: hh at hyperhh.de (hh) Date: Wed, 11 Oct 2017 20:31:55 +0200 Subject: [ANN] Release 8.2.0 DP-2 Message-ID: <8D496205-991B-45D7-BA11-C52ACFC41670@hyperhh.de> LC 8.2.0-dp2 has nice new features but this one doesn't work. > Panos wrote: > Moreover, in LiveCode 8.2.0 DP-2 Dictionary, all the extension docs are > incorporated in the main LiveCode Script dictionary. This improves > searchability, as well as preventing the library list getting too large. When installing new extensions then LC 8.2.0-dp2 hangs while it is trying to "add API to the documentation". So one ends up having no extension. (Yes I also tried after deleting the documentation cache.) Reported #20557. Work-around: Install the extension with 8.1.6/8.1.7. Then one ends up in LC 8.2.0-dp2 without dictionary entries of the extension. Work-around: Use TinyDict. In sum: LC 8.2.0-dp2 works fine when installing extensions with LC 8.1.6/8.1.7 and using TinyDict. From lists at mangomultimedia.com Wed Oct 11 14:36:04 2017 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed, 11 Oct 2017 18:36:04 +0000 Subject: Dropbox library in LC 9 - centralise the access token? In-Reply-To: References: <49cd90c8-cefe-16c3-faa0-d6546802bbc5@cogapp.com> <1ee38e6e-2bff-c3e0-6025-8728803a397a@fourthworld.com> Message-ID: On Wed, Oct 11, 2017 at 1:02 PM Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > > In principle I think that a new app, e.g. built in LiveCode, could > perfectly > happy operate on a number of accounts simultaneously. But my proposal in no > way prevents that - the code that makes a series of calls to the Dropbox > API > would precede them with a single call to set the relevant token, rather > than > passing that token in every call. Personally I don?t care for lower level functional APIs that have you set something like an auth token once and then all calls use the token. To write safe code built on top of the Dropbox library you would have to set the API token at the beginning of any handler you write that includes a call to the Dropbox library. Otherwise if you use some other library in your app built on top of the Dropbox library it could set the token to the wrong one behind your back. That seems brittle to me. My 2 cents. Trevor DeVore ScreenSteps > From matthias_livecode_150811 at m-r-d.de Wed Oct 11 15:16:04 2017 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 11 Oct 2017 21:16:04 +0200 Subject: [ANN] Release 8.2.0 DP-2 In-Reply-To: References: <5A9AD642-5AF0-48D7-991F-7E206324906C@m-r-d.de> Message-ID: Thanks for the links. I promise to be patient. ;) Matthias > Am 11.10.2017 um 17:34 schrieb panagiotis merakos via use-livecode >: > > Hi Matthias, > > Unfortunately we cannot give an ETA at this point for 9.0 DP-10, but "off > the record" I would expect it within the next couple of weeks. > > Currently there are a couple of things we would like to include in 9.0 > DP-10. > > This is a list from BugZilla > > http://quality.livecode.com/buglist.cgi?list_id=77472&query_format=advanced&target_milestone=9.0.0-dp-10&token=1507735851-88a1cd307824f6ceeefb2788f4b32c3a&order=bug_status%20DESC%2Cchangeddate%20DESC%2Cbug_id&query_based_on= > > And those are some open PRs in github on the main LiveCode repo: > > https://github.com/livecode/livecode/milestone/154 > > Note that these lists are subject to change, but you can get a rough idea > on what we are currently working on. > > Best, > Panos > -- > > On Wed, Oct 11, 2017 at 4:24 PM, Matthias Rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Panos, >> >> when will there be a new version 9 dp? It?s now some weeks ago since dp9. >> >> Regards, >> Matthias >> >> Matthias Rebbe >> +49 5741 310000 >> ?wirmachen.software ? >>> Am 11.10.2017 um 17:20 schrieb panagiotis merakos via use-livecode < >> use-livecode at lists.runrev.com >: >>> >>> Dear list members, >>> >>> We are pleased to announce the release of LiveCode 8.2.0 DP-2. >>> >>> Getting the Release >>> =================== >>> You can get the release at https://downloads.livecode.com/livecode/ < >> https://downloads.livecode.com/livecode/> or via >>> the automatic updater. >>> >>> >>> Release Contents >>> ================ >>> >>> LiveCode 8.2.0 DP-2 contains 31 bug fixes and stability improvements. >>> Moreover, we have added a Preference for controlling the various new >>> features of the Script Editor (autocomplete, bracket completion, live >>> errors etc). You can enable/disable these features from the menubar of >> the >>> Script Editor, under Edit -> Options -> .. >>> Last but not least, LiveCode 8.2.0 DP-2 contains all the changes in the >>> LiveCode 8.1.7 release cycle (i.e. Xcode 9 support etc) >>> >>> For those of you who missed it, the LiveCode 8.2.0 DP-X release cycle has >>> introduced a new edition, "Community Plus" >>> >>> For more details about Community Plus, see this page: >>> https://livecode.com/products/community-plus-edition/ < >> https://livecode.com/products/community-plus-edition/> >>> >>> For more details on the Autocomplete feature, read this blogpost: >>> https://livecode.com/new-autocomplete-live-errors-in-livecode-8-2 >>> >>> Moreover, in LiveCode 8.2.0 DP-2 Dictionary, all the extension docs are >>> incorporated in the main LiveCode Script dictionary. This improves >>> searchability, as well as preventing the library list getting too large. >>> >>> >>> The full release notes are available from: >>> http://downloads.livecode.com/livecode/8_2_0/LiveCodeNotes- >> 8_2_0_dp_2.pdf >>> >>> >>> Feedback >>> ======== >>> Please report any bugs encountered on our BugZilla at >>> http://quality.livecode.com/ >>> >>> >>> 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 bobsneidar at iotecdigital.com Wed Oct 11 16:57:28 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Oct 2017 20:57:28 +0000 Subject: Handy behavior snippet In-Reply-To: References: <3390CFBE-E006-45D3-A875-CE448FBAD656@iotecdigital.com> <15f0c41f4d0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <15f0c650948.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <4028E59A-5A06-49CA-9DB1-7322F0DD401B@iotecdigital.com> Oh cool! I am sticking with v8 right now just because I do production work every day and cannot afford for an unforeseen issue to stop progress. Bob S > On Oct 11, 2017, at 11:25 , Mike Kerner via use-livecode wrote: > > In dp9, now, when you right-click on an object, the first line is edit > script, the second is edit behavior script. From merakosp at gmail.com Wed Oct 11 16:58:24 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Wed, 11 Oct 2017 21:58:24 +0100 Subject: [ANN] Release 8.2.0 DP-2 In-Reply-To: References: <5A9AD642-5AF0-48D7-991F-7E206324906C@m-r-d.de> Message-ID: @Dan AFAIK, a developer is working on the datagrid v2 now @Hermann Oops we missed that, sorry about that. This patch should fix the problem, for anyone interested in applying the change locally, until we release 8.2 DP-3: https://github.com/livecode/livecode-ide/pull/1793/files PS: Note that when you install a new custom widget, its docs do not appear in the Dictionary, but this happens since early versions of LC 8.x. Once you quit and restart LC, the widget docs do appear (I think there is a bug report about that). Best, Panos -- On Wed, Oct 11, 2017 at 8:16 PM, Matthias Rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Thanks for the links. I promise to be patient. ;) > > Matthias > > > Am 11.10.2017 um 17:34 schrieb panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com >: > > > > Hi Matthias, > > > > Unfortunately we cannot give an ETA at this point for 9.0 DP-10, but "off > > the record" I would expect it within the next couple of weeks. > > > > Currently there are a couple of things we would like to include in 9.0 > > DP-10. > > > > This is a list from BugZilla > > > > http://quality.livecode.com/buglist.cgi?list_id=77472& > query_format=advanced&target_milestone=9.0.0-dp-10&token=1507735851- > 88a1cd307824f6ceeefb2788f4b32c3a&order=bug_status%20DESC% > 2Cchangeddate%20DESC%2Cbug_id&query_based_on= < > http://quality.livecode.com/buglist.cgi?list_id=77472& > query_format=advanced&target_milestone=9.0.0-dp-10&token=1507735851- > 88a1cd307824f6ceeefb2788f4b32c3a&order=bug_status%20DESC% > 2Cchangeddate%20DESC%2Cbug_id&query_based_on=> > > > > And those are some open PRs in github on the main LiveCode repo: > > > > https://github.com/livecode/livecode/milestone/154 > > > > Note that these lists are subject to change, but you can get a rough idea > > on what we are currently working on. > > > > Best, > > Panos > > -- > > > > On Wed, Oct 11, 2017 at 4:24 PM, Matthias Rebbe via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Panos, > >> > >> when will there be a new version 9 dp? It?s now some weeks ago since > dp9. > >> > >> Regards, > >> Matthias > >> > >> Matthias Rebbe > >> +49 5741 310000 > >> ?wirmachen.software ? > >>> Am 11.10.2017 um 17:20 schrieb panagiotis merakos via use-livecode < > >> use-livecode at lists.runrev.com >: > >>> > >>> Dear list members, > >>> > >>> We are pleased to announce the release of LiveCode 8.2.0 DP-2. > >>> > >>> Getting the Release > >>> =================== > >>> You can get the release at https://downloads.livecode.com/livecode/ < > >> https://downloads.livecode.com/livecode/> or via > >>> the automatic updater. > >>> > >>> > >>> Release Contents > >>> ================ > >>> > >>> LiveCode 8.2.0 DP-2 contains 31 bug fixes and stability improvements. > >>> Moreover, we have added a Preference for controlling the various new > >>> features of the Script Editor (autocomplete, bracket completion, live > >>> errors etc). You can enable/disable these features from the menubar of > >> the > >>> Script Editor, under Edit -> Options -> .. > >>> Last but not least, LiveCode 8.2.0 DP-2 contains all the changes in the > >>> LiveCode 8.1.7 release cycle (i.e. Xcode 9 support etc) > >>> > >>> For those of you who missed it, the LiveCode 8.2.0 DP-X release cycle > has > >>> introduced a new edition, "Community Plus" > >>> > >>> For more details about Community Plus, see this page: > >>> https://livecode.com/products/community-plus-edition/ < > >> https://livecode.com/products/community-plus-edition/> > >>> > >>> For more details on the Autocomplete feature, read this blogpost: > >>> https://livecode.com/new-autocomplete-live-errors-in-livecode-8-2 > >>> > >>> Moreover, in LiveCode 8.2.0 DP-2 Dictionary, all the extension docs are > >>> incorporated in the main LiveCode Script dictionary. This improves > >>> searchability, as well as preventing the library list getting too > large. > >>> > >>> > >>> The full release notes are available from: > >>> http://downloads.livecode.com/livecode/8_2_0/LiveCodeNotes- > >> 8_2_0_dp_2.pdf > >>> > >>> > >>> Feedback > >>> ======== > >>> Please report any bugs encountered on our BugZilla at > >>> http://quality.livecode.com/ > >>> > >>> > >>> 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 > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 11 21:29:52 2017 From: waprothero at gmail.com (William Prothero) Date: Wed, 11 Oct 2017 18:29:52 -0700 Subject: Autocompletion of quotes on LC 8.2,0 DP-1 Message-ID: <2FB9318B-CA08-4C75-8C1F-B943FB55994D@gmail.com> Folks: I find that, for the autocompletion of quotes in the new editor, that I?m deleting them as often as I use them. It?s nice to see the text red when quotes are not completed, but ?.. I can live with it, but for me, it?s not an improvement. Other than that, I like it a lot and haven?t found any new bugs yet. EXCEPT for the script editor window moving up the screen every time it?s opened. I have a small handler to reposition it, but ?.. I figure that since the project browser doesn?t behave that way, it ought to be easy to just use the positioning code that it uses, for the editor window. Best, Bill P William A. Prothero http://earthlearningsolution.org/ From monte at appisle.net Wed Oct 11 21:35:30 2017 From: monte at appisle.net (Monte Goulding) Date: Thu, 12 Oct 2017 12:35:30 +1100 Subject: Autocompletion of quotes on LC 8.2,0 DP-1 In-Reply-To: <2FB9318B-CA08-4C75-8C1F-B943FB55994D@gmail.com> References: <2FB9318B-CA08-4C75-8C1F-B943FB55994D@gmail.com> Message-ID: > On 12 Oct 2017, at 12:29 pm, William Prothero via use-livecode wrote: > > I find that, for the autocompletion of quotes in the new editor, that I?m deleting them as often as I use them. It?s nice to see the text red when quotes are not completed, but ?.. I can live with it, but for me, it?s not an improvement. I think this is one of those things that we have grown so used to not having it in LC that we automatically type it. Spend some time on other editors and you miss it in LC. Anyway, choose Edit > Options > Bracket Completion from the SE menubar to turn it off. > > Other than that, I like it a lot and haven?t found any new bugs yet. EXCEPT for the script editor window moving up the screen every time it?s opened. I have a small handler to reposition it, but ?.. I figure that since the project browser doesn?t behave that way, it ought to be easy to just use the positioning code that it uses, for the editor window. I haven?t noticed this myself but dod spend some time trying to replicate it. A few people have complained about it. Has it been reported? My suspicion if it is just a Mac issue would be the menubar height is somehow not being taken into account. Cheers Monte From brahma at hindu.org Wed Oct 11 22:01:44 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 12 Oct 2017 02:01:44 +0000 Subject: [ANN] Release 8.2.0 DP-2 In-Reply-To: References: <5A9AD642-5AF0-48D7-991F-7E206324906C@m-r-d.de> Message-ID: <9E984DD8-A211-435E-92FC-1CF611D9C695@hindu.org> Panos any hope for this big issue of acceleratedRendering breaking a multi-stack app framework on Android which is currently holding our app "hostage" (cannot deploy on Android) These are all, pretty much the same issue: http://quality.livecode.com/show_bug.cgi?id=16736 http://quality.livecode.com/show_bug.cgi?id=19576 http://quality.livecode.com/show_bug.cgi?id=20287 http://quality.livecode.com/show_bug.cgi?id=20419 http://quality.livecode.com/show_bug.cgi?id=20539 # says unconfirmed but is basically same as all the above. Any effort to toggle Accelerated Rendering of the top stack, (usually to false) then opening a second stack (setting it to true) etc? is causing Android to fail in various different ways. most notable symptoms being Stack A's controls still appear on screen even though the topstack is Stack B (easy to query by adding an answer dialog at the very end of the running handler put the short name of the topstack into iShouldBeVisibile answer ("The Top Stack is " & iShouldBeVisibile) with "OK" At which point the app becomes completely unresponsive to any touch events. Though if stack B has a scroller you can see the mobile scroller indicator and it will go up and down as your finger swipes on controls for Stack A which was actually closed. This is just one of a number bizarre symptoms, possibly related like having an image control set to a file reference A, then set to a new file reference B, artifacts from the first image A still appear on the left and right if the new image B is narrower than the first etc. even though theoretically, image A is no longer in the vRam? Setting AcceleratedRendering to false throughout all stacks and all handlers in the entire app, a last ditch desparate attempt to get it to work despite the horrific scrolling? (jerky) also leads to other problems? I just got V1.0.2 approved on the AppStore, after begin up for 2 weeks? we were keeping quiet as we gathering more input from initial users? fixed a few minor bugs and now we are going live with a big promotion for the iOS version today. Now we brace ourselves for Android users' cries in the days ahead "When for Droid?!" I finally gave up trying to do anything via scripting, moving on to content dev for the next version. ?? BR On 10/11/17, 5:35 AM, "use-livecode on behalf of panagiotis merakos via use-livecode" wrote: This is a list from BugZilla http://quality.livecode.com/buglist.cgi?list_id=77472&query_format=advanced&target_milestone=9.0.0-dp-10&token=1507735851-88a1cd307824f6ceeefb2788f4b32c3a&order=bug_status%20DESC%2Cchangeddate%20DESC%2Cbug_id&query_based_on= And those are some open PRs in github on the main LiveCode repo: https://github.com/livecode/livecode/milestone/154 From brahma at hindu.org Wed Oct 11 22:20:58 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 12 Oct 2017 02:20:58 +0000 Subject: Autocompletion of quotes on LC 8.2,0 DP-1 In-Reply-To: <2FB9318B-CA08-4C75-8C1F-B943FB55994D@gmail.com> References: <2FB9318B-CA08-4C75-8C1F-B943FB55994D@gmail.com> Message-ID: <72C1CB9E-6A86-4AEB-ACCF-709D7E908653@hindu.org> Bill P. wrote: I find that, for the autocompletion of quotes in the new editor, that I?m deleting them as often as I use them. It?s nice to see the text red when quotes are not completed, but ?.. I can live with it, but for me, it?s not an improvement. ---- I found this also, but wondered then how to make it work. Like Monte says: for so long it was absent we don't use the default behavior to advantage. Just to say the obvious, in case it helps: Typically the "old way" we may be writing strings and prefer the thought process not be interrupted with the punctuation requirements answer Some Message with OK then going back and hitting a quote in front or at the end and getting next to each other in front of the string. But slowly now changing the "muscle memory" instead of hitting a quote at the end?shift select to the front of the string and *then* hit quote. Bingo. I am actually going through a similar "re-training" in Sublime text where I was not using auto completion to advantage. It gets even better once you have confidence in the feature? enough to instinctively know that you will be entering a quoted string *before* you start? answer "|" and your cursor is placed ready to go. So, yep.. it's new, yes, seemed like a nuisance at first, but now I like it. Because I think in the end we will be able to write code more effortlessly than ever, which of course was the intent. Point: Bill, you might try not turning it off and see if you can "twig" it (something new I learned from UK. BR From benr_mc at cogapp.com Thu Oct 12 06:27:45 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 12 Oct 2017 11:27:45 +0100 Subject: OAuth2 Status? In-Reply-To: <1507571918317-0.post@n4.nabble.com> References: <1507571918317-0.post@n4.nabble.com> Message-ID: Hi Greg, What platform are you doing this on? I've found Oauth2 in LC9dp9 (Business) is working okay for me with both Dropbox and Slack - on Mac. On iOS however I've had no luck. I'd be interested to hear if anyone has got it working on iOS or Android. Ben On 09/10/2017 18:58, pink via use-livecode wrote: > Does OAuth2 currently work? I?m using LC 9 Indy DP9, I tried 3 different > APIs (Toodledo, Todoist, and Slack) > > In all 3 cases, an empty window pops up briefly and then closes. > > For Slack, I literally copied the example from the dictionary and > substituted my app?s values. > > Has anyone been able to use it yet? > > > > ----- > --- > Greg (pink) Miller > mad, pink and dangerous to code > -- > 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 preid at reidit.co.uk Thu Oct 12 07:05:25 2017 From: preid at reidit.co.uk (Peter Reid) Date: Thu, 12 Oct 2017 12:05:25 +0100 Subject: Atkinson dither algorithm & 'for each' loop In-Reply-To: References: Message-ID: One note of caution regarding the use of the "repeat for each" loop, whilst you will get a loop iteration for every value in the collection (fldhexa3 in your example), you are not guaranteed the order in which they will occur. This doesn't matter in a lot of cases but does matter when the sequence is significant. In the case of your example I believe sequence is critical, otherwise the pixels might appear to be scrambled! The following adjusted loop guarantees the sequence at the expense of speed: put 1 into i repeat for each word theWord in fldhexa3 put word i of fldhexa3 into theWord put 00 & theword & theword & theword after tVar2 add 1 to i end repeat The original "improved" loop reduces the run-time to 25%. However, the "modified improved" loop only manages to reduce the original run-time to 50%. The suggested loop above takes advantage of the "for each" mechanism to produce a set of iterations very rapidly but gets slowed by the need to guarantee sequence. I wonder whether the LC engine could impose strict sequence more effectively with a variant of the "for each" loop such as repeat for each sequenced word x in theCollection ... end repeat My own tests, comparing the speed of the 4 common repeat loops, imply that the current "for each" form is hugely faster than the others. I tested "repeat for each...", "repeat while...", "repeat until...", "repeat with..." and a simulated "repeat for each sequenced..." forms using a simple loop body that added lines of text one after another, e.g. put empty into tData repeat with i = 1 to tMaxI put line i of tList & return after tData end repeat I ran this test for 250,000 iterations for each type of loop, which produced the following timings: Starting test for 250,000 iterations... repeat for each... 0 mins 0 secs 111 millisecs repeat while... 0 mins 30 secs 569 millisecs repeat until... 0 mins 30 secs 379 millisecs repeat with... 0 mins 30 secs 341 millisecs repeat for each seq... 0 mins 30 secs 524 millisecs As you can see, in this test the "repeat for each..." form was approx. 275 times faster than the other forms. Also the simulated "repeat for each sequenced..." form was no faster than the other forms. This shows how variable the speed will be with the simulated "repeat for each sequenced...", depending on the details of the loop body. If there was a "repeat for each sequenced..." form of loop in LC, any speed-up could be very beneficial even if the amount of speed-up was only 10 times faster! Cheers Peter -- Peter Reid Loughborough, UK > On 9 Oct 2017, at 10:18am, use-livecode-request at lists.runrev.com wrote: > > Message: 12 > Date: Sat, 7 Oct 2017 15:53:44 +0200 > From: Malte Pfaff-Brill > To: use-livecode at lists.runrev.com > Subject: Re: Atkinson dither algorithm > Message-ID: <42023B36-0A4E-4251-BB0C-9CD46DE55807 at derbrill.de> > Content-Type: text/plain; charset=us-ascii > > Hi Al, > > I already posted on the forums, but for completeness also here: > > a lot can be done by replacing repeat with with repeat for each where you can. > > -- repeat with i = 1 to the number of words of fldhexa3 > -- put 00 & word i of fldhexa3 & word i of fldhexa3 & word i of fldhexa3 after tVar2 > -- end repeat > > repeat for each word theWord in fldhexa3 > put 00 & theword & theword & theword after tVar2 > end repeat > > > A sidenode: > > I always use strict compile mode, therefore I added the needed variable declarations and noticed you use startTime as a variablename, which is a reserved keyword. That is not a good idea. (I noticed, because I managed to freeze liveCode where I fixed only half of the use of startTime. Booom.) > > Cheers, > > malte From nabble at mad.pink Thu Oct 12 07:21:25 2017 From: nabble at mad.pink (pink) Date: Thu, 12 Oct 2017 04:21:25 -0700 (MST) Subject: OAuth2 Status? In-Reply-To: References: <1507571918317-0.post@n4.nabble.com> Message-ID: <1507807285866-0.post@n4.nabble.com> LC9DP9 Indy on Mac Right now, I've only tested in the IDE without success. I tried one Mac standalone just for the heck of it (didn't work). Haven't tried iOS or any other platform. btw, submitted ticket: http://quality.livecode.com/show_bug.cgi?id=20559 ----- --- Greg (pink) Miller mad, pink and dangerous to code -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From benr_mc at cogapp.com Thu Oct 12 07:48:21 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 12 Oct 2017 12:48:21 +0100 Subject: Atkinson dither algorithm & 'for each' loop In-Reply-To: References: Message-ID: <64bd534e-3d70-8920-a8b1-63bb7f8a4f2d@cogapp.com> Hi Peter, > One note of caution regarding the use of the "repeat for each" loop, > whilst you will get a loop iteration for every value in the collection > (fldhexa3 in your example), you are not guaranteed the order in which they > will occur. Are you sure? My understanding has always been that chunk items, e.g. repeat for each [ byte | char | word | item | line] in will always be sequential (indeed that's why this structure is fast) - it's only when dealing with hashed arrays that the sequence is not reliable, i.e. repeat for each key in repeat for each element in Do you have experience to the contrary? best regards, Ben On 12/10/2017 12:05, Peter Reid via use-livecode wrote: > One note of caution regarding the use of the "repeat for each" loop, whilst you will get a loop iteration for every value in the collection (fldhexa3 in your example), you are not guaranteed the order in which they will occur. This doesn't matter in a lot of cases but does matter when the sequence is significant. In the case of your example I believe sequence is critical, otherwise the pixels might appear to be scrambled! > > The following adjusted loop guarantees the sequence at the expense of speed: > > put 1 into i > repeat for each word theWord in fldhexa3 > put word i of fldhexa3 into theWord > put 00 & theword & theword & theword after tVar2 > add 1 to i > end repeat > > The original "improved" loop reduces the run-time to 25%. However, the "modified improved" loop only manages to reduce the original run-time to 50%. > > The suggested loop above takes advantage of the "for each" mechanism to produce a set of iterations very rapidly but gets slowed by the need to guarantee sequence. I wonder whether the LC engine could impose strict sequence more effectively with a variant of the "for each" loop such as > > repeat for each sequenced word x in theCollection > ... > end repeat > > My own tests, comparing the speed of the 4 common repeat loops, imply that the current "for each" form is hugely faster than the others. I tested "repeat for each...", "repeat while...", "repeat until...", "repeat with..." and a simulated "repeat for each sequenced..." forms using a simple loop body that added lines of text one after another, e.g. > > put empty into tData > repeat with i = 1 to tMaxI > put line i of tList & return after tData > end repeat > > I ran this test for 250,000 iterations for each type of loop, which produced the following timings: > > Starting test for 250,000 iterations... > repeat for each... 0 mins 0 secs 111 millisecs > repeat while... 0 mins 30 secs 569 millisecs > repeat until... 0 mins 30 secs 379 millisecs > repeat with... 0 mins 30 secs 341 millisecs > repeat for each seq... 0 mins 30 secs 524 millisecs > > As you can see, in this test the "repeat for each..." form was approx. 275 times faster than the other forms. Also the simulated "repeat for each sequenced..." form was no faster than the other forms. This shows how variable the speed will be with the simulated "repeat for each sequenced...", depending on the details of the loop body. > > If there was a "repeat for each sequenced..." form of loop in LC, any speed-up could be very beneficial even if the amount of speed-up was only 10 times faster! > > Cheers > > Peter > -- > Peter Reid > Loughborough, UK > >> On 9 Oct 2017, at 10:18am, use-livecode-request at lists.runrev.com wrote: >> >> Message: 12 >> Date: Sat, 7 Oct 2017 15:53:44 +0200 >> From: Malte Pfaff-Brill >> To: use-livecode at lists.runrev.com >> Subject: Re: Atkinson dither algorithm >> Message-ID: <42023B36-0A4E-4251-BB0C-9CD46DE55807 at derbrill.de> >> Content-Type: text/plain; charset=us-ascii >> >> Hi Al, >> >> I already posted on the forums, but for completeness also here: >> >> a lot can be done by replacing repeat with with repeat for each where you can. >> >> -- repeat with i = 1 to the number of words of fldhexa3 >> -- put 00 & word i of fldhexa3 & word i of fldhexa3 & word i of fldhexa3 after tVar2 >> -- end repeat >> >> repeat for each word theWord in fldhexa3 >> put 00 & theword & theword & theword after tVar2 >> end repeat >> >> >> A sidenode: >> >> I always use strict compile mode, therefore I added the needed variable declarations and noticed you use startTime as a variablename, which is a reserved keyword. That is not a good idea. (I noticed, because I managed to freeze liveCode where I fixed only half of the use of startTime. Booom.) >> >> Cheers, >> >> malte > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ckelly5430 at gmail.com Thu Oct 12 07:52:39 2017 From: ckelly5430 at gmail.com (Colin Kelly) Date: Thu, 12 Oct 2017 12:52:39 +0100 Subject: Microsoft 365 Rest API Message-ID: <97736CAC-5413-4905-8352-B9AD418BBF89@gmail.com> Does anyone have any working livecode scripts/libraries to use with the Microsoft 365 Rest API for accessing Calendar entries? Any help much appreciated. -- Colin Kelly From benr_mc at cogapp.com Thu Oct 12 08:12:29 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 12 Oct 2017 13:12:29 +0100 Subject: OAuth2 Status? In-Reply-To: <1507807285866-0.post@n4.nabble.com> References: <1507571918317-0.post@n4.nabble.com> <1507807285866-0.post@n4.nabble.com> Message-ID: <91b65f1c-1f9f-163f-2d40-d8244ba6a705@cogapp.com> I downloaded your stack from LQCC, substituted my slack client id and secret, and port. I then got a sheet with error because the 'scope' parameter wasn't specified. When I specified that, I got a nice Slack login window... which complained that my free account was up to its limit of integrations! But at least the oauth stuff seemed to be working. This might be an Indy v Business thing? (One thing I've noticed is that if there are problems, you can be stuck with a (modal) sheet dialog, and no way to close it. By the time I got to the polite Slack refusal, it had the decency to offer a "go back" button which had the effect of closing the sheet. But when there were problems (the scope, and before that I'd forgotten to change the port) I was seeing a useful error report (from Slack) in the window, but with no way to close it. Fortunately I had the message box open, was able to list windows to get the UUID for the sheet window and close it from there. Otherwise you might find yourself in a force-quit situation - so proceed with care!) On 12/10/2017 12:21, pink via use-livecode wrote: > LC9DP9 Indy on Mac > > Right now, I've only tested in the IDE without success. I tried one Mac > standalone just for the heck of it (didn't work). Haven't tried iOS or any > other platform. > > > btw, submitted ticket: > http://quality.livecode.com/show_bug.cgi?id=20559 > > > > > ----- > --- > Greg (pink) Miller > mad, pink and dangerous to code > -- > 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 Thu Oct 12 08:23:45 2017 From: panos.merakos at livecode.com (panagiotis merakos) Date: Thu, 12 Oct 2017 13:23:45 +0100 Subject: OAuth2 Status? In-Reply-To: <91b65f1c-1f9f-163f-2d40-d8244ba6a705@cogapp.com> References: <1507571918317-0.post@n4.nabble.com> <1507807285866-0.post@n4.nabble.com> <91b65f1c-1f9f-163f-2d40-d8244ba6a705@cogapp.com> Message-ID: Hi all, I have tested using the stack from LQCC and used the credentials Greg sent me privately. I get a sheet stack with the error: OAuth Error: invalid_team_for_non_distributed_app So I assume that something is wrong with these credentials. @Ben If you want to close the sheet stack, if no "Cancel" or "Close" btn is present on the stack, you can do it easily like this: 1. type in the msg box (but do NOT press enter yet): close the mousestack 2. place the cursor on the sheet stack 3. now press enter Best, Panos -- On Thu, Oct 12, 2017 at 1:12 PM, Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > I downloaded your stack from LQCC, substituted my slack client id and > secret, and port. I then got a sheet with error because the 'scope' > parameter wasn't specified. When I specified that, I got a nice Slack login > window... which complained that my free account was up to its limit of > integrations! But at least the oauth stuff seemed to be working. > > This might be an Indy v Business thing? > > (One thing I've noticed is that if there are problems, you can be stuck > with a (modal) sheet dialog, and no way to close it. By the time I got to > the polite Slack refusal, it had the decency to offer a "go back" button > which had the effect of closing the sheet. But when there were problems > (the scope, and before that I'd forgotten to change the port) I was seeing > a useful error report (from Slack) in the window, but with no way to close > it. > > Fortunately I had the message box open, was able to list windows to get > the UUID for the sheet window and close it from there. Otherwise you might > find yourself in a force-quit situation - so proceed with care!) > > > > > On 12/10/2017 12:21, pink via use-livecode wrote: > >> LC9DP9 Indy on Mac >> >> Right now, I've only tested in the IDE without success. I tried one Mac >> standalone just for the heck of it (didn't work). Haven't tried iOS or any >> other platform. >> >> >> btw, submitted ticket: >> http://quality.livecode.com/show_bug.cgi?id=20559 >> >> >> >> >> ----- >> --- >> Greg (pink) Miller >> mad, pink and dangerous to code >> -- >> 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 > -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From sean at pidigital.co.uk Thu Oct 12 08:54:24 2017 From: sean at pidigital.co.uk (Pi Digital) Date: Thu, 12 Oct 2017 13:54:24 +0100 Subject: Microsoft 365 Rest API In-Reply-To: <97736CAC-5413-4905-8352-B9AD418BBF89@gmail.com> References: <97736CAC-5413-4905-8352-B9AD418BBF89@gmail.com> Message-ID: <8DE7EC59-C4DE-4B55-842D-9CFF6A4D285C@pidigital.co.uk> I?ve been currently working on a project with another Livecoder making a library to work with MS Dynamics365. It turns out that the best way for LC to work with it is via their webAPI (as are most things) until v9 is ready. But this still means a lot of stuff being put together outside of LC. You first need an Azure account setup to enable authentication. You then need someone conversant with c#, Visual Basic and .net to write the APIs based on the MS SDK. This then needs putting onto a .net server. From there it is really straight forward to set up a http header in LC and all of the Post and http calls to send and receive data. To be honest, the LC side of things is really simple, and our API guy has been really good at setting the whole thing up for us. We found him via PeoplePerHour and is clearly one of the best in his field. It?s been a long process working out how to get it all to work together so I?m happy I can now make it easier for members like you, saving you the effort of fumbling around (like we did) to find a solution. PM me if and when you need more guidance and we can set up a Skype, FaceTime or whatever. All the best Sean Cole Pi Digital Sean at pidigital.co.uk > On 12 Oct 2017, at 12:52, Colin Kelly via use-livecode wrote: > > Does anyone have any working livecode scripts/libraries to use with the Microsoft 365 Rest API for accessing Calendar entries? > > > > Any help much appreciated. > > > > -- > > Colin Kelly > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From skiplondon at gmail.com Thu Oct 12 09:36:19 2017 From: skiplondon at gmail.com (Skip Kimpel) Date: Thu, 12 Oct 2017 09:36:19 -0400 Subject: Microsoft 365 Rest API In-Reply-To: <8DE7EC59-C4DE-4B55-842D-9CFF6A4D285C@pidigital.co.uk> References: <97736CAC-5413-4905-8352-B9AD418BBF89@gmail.com> <8DE7EC59-C4DE-4B55-842D-9CFF6A4D285C@pidigital.co.uk> Message-ID: I am very interested in this functionality as well. SKIP On Thu, Oct 12, 2017 at 8:54 AM, Pi Digital via use-livecode < use-livecode at lists.runrev.com> wrote: > I?ve been currently working on a project with another Livecoder making a > library to work with MS Dynamics365. It turns out that the best way for LC > to work with it is via their webAPI (as are most things) until v9 is ready. > But this still means a lot of stuff being put together outside of LC. You > first need an Azure account setup to enable authentication. You then need > someone conversant with c#, Visual Basic and .net to write the APIs based > on the MS SDK. This then needs putting onto a .net server. From there it is > really straight forward to set up a http header in LC and all of the Post > and http calls to send and receive data. > > To be honest, the LC side of things is really simple, and our API guy has > been really good at setting the whole thing up for us. We found him via > PeoplePerHour and is clearly one of the best in his field. > > It?s been a long process working out how to get it all to work together so > I?m happy I can now make it easier for members like you, saving you the > effort of fumbling around (like we did) to find a solution. > > PM me if and when you need more guidance and we can set up a Skype, > FaceTime or whatever. > > All the best > > Sean Cole > Pi Digital > Sean at pidigital.co.uk > > > On 12 Oct 2017, at 12:52, Colin Kelly via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Does anyone have any working livecode scripts/libraries to use with the > Microsoft 365 Rest API for accessing Calendar entries? > > > > > > > > Any help much appreciated. > > > > > > > > -- > > > > Colin Kelly > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Oct 12 09:43:26 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 12 Oct 2017 09:43:26 -0400 Subject: Microsoft 365 Rest API In-Reply-To: <8DE7EC59-C4DE-4B55-842D-9CFF6A4D285C@pidigital.co.uk> References: <97736CAC-5413-4905-8352-B9AD418BBF89@gmail.com> <8DE7EC59-C4DE-4B55-842D-9CFF6A4D285C@pidigital.co.uk> Message-ID: VERY interested! Will this be shared, or become a add-on product for the LC community? ~Roger On Thu, Oct 12, 2017 at 8:54 AM, Pi Digital via use-livecode < use-livecode at lists.runrev.com> wrote: > I?ve been currently working on a project with another Livecoder making a > library to work with MS Dynamics365. It turns out that the best way for LC > to work with it is via their webAPI (as are most things) until v9 is ready. > But this still means a lot of stuff being put together outside of LC. You > first need an Azure account setup to enable authentication. You then need > someone conversant with c#, Visual Basic and .net to write the APIs based > on the MS SDK. This then needs putting onto a .net server. From there it is > really straight forward to set up a http header in LC and all of the Post > and http calls to send and receive data. > > To be honest, the LC side of things is really simple, and our API guy has > been really good at setting the whole thing up for us. We found him via > PeoplePerHour and is clearly one of the best in his field. > > It?s been a long process working out how to get it all to work together so > I?m happy I can now make it easier for members like you, saving you the > effort of fumbling around (like we did) to find a solution. > > PM me if and when you need more guidance and we can set up a Skype, > FaceTime or whatever. > > All the best > > Sean Cole > Pi Digital > Sean at pidigital.co.uk > > > On 12 Oct 2017, at 12:52, Colin Kelly via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Does anyone have any working livecode scripts/libraries to use with the > Microsoft 365 Rest API for accessing Calendar entries? > > > > > > > > Any help much appreciated. > > > > > > > > -- > > > > Colin Kelly > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From skiplondon at gmail.com Thu Oct 12 09:47:52 2017 From: skiplondon at gmail.com (Skip Kimpel) Date: Thu, 12 Oct 2017 09:47:52 -0400 Subject: Microsoft 365 Rest API In-Reply-To: References: <97736CAC-5413-4905-8352-B9AD418BBF89@gmail.com> <8DE7EC59-C4DE-4B55-842D-9CFF6A4D285C@pidigital.co.uk> Message-ID: Roger... why is it that you and I are ALWAYS on the same page and interested in the same things? Love it! SKIP On Thu, Oct 12, 2017 at 9:43 AM, Roger Eller via use-livecode < use-livecode at lists.runrev.com> wrote: > VERY interested! Will this be shared, or become a add-on product for the > LC community? > > ~Roger > > > On Thu, Oct 12, 2017 at 8:54 AM, Pi Digital via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > I?ve been currently working on a project with another Livecoder making a > > library to work with MS Dynamics365. It turns out that the best way for > LC > > to work with it is via their webAPI (as are most things) until v9 is > ready. > > But this still means a lot of stuff being put together outside of LC. You > > first need an Azure account setup to enable authentication. You then need > > someone conversant with c#, Visual Basic and .net to write the APIs based > > on the MS SDK. This then needs putting onto a .net server. From there it > is > > really straight forward to set up a http header in LC and all of the Post > > and http calls to send and receive data. > > > > To be honest, the LC side of things is really simple, and our API guy has > > been really good at setting the whole thing up for us. We found him via > > PeoplePerHour and is clearly one of the best in his field. > > > > It?s been a long process working out how to get it all to work together > so > > I?m happy I can now make it easier for members like you, saving you the > > effort of fumbling around (like we did) to find a solution. > > > > PM me if and when you need more guidance and we can set up a Skype, > > FaceTime or whatever. > > > > All the best > > > > Sean Cole > > Pi Digital > > Sean at pidigital.co.uk > > > > > On 12 Oct 2017, at 12:52, Colin Kelly via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > > Does anyone have any working livecode scripts/libraries to use with the > > Microsoft 365 Rest API for accessing Calendar entries? > > > > > > > > > > > > Any help much appreciated. > > > > > > > > > > > > -- > > > > > > Colin Kelly > > > > > > > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Oct 12 09:54:47 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 12 Oct 2017 09:54:47 -0400 Subject: Microsoft 365 Rest API In-Reply-To: References: <97736CAC-5413-4905-8352-B9AD418BBF89@gmail.com> <8DE7EC59-C4DE-4B55-842D-9CFF6A4D285C@pidigital.co.uk> Message-ID: Skip, we are piloting the same starship in alternate universes, I do believe. ;) ~Roger On Thu, Oct 12, 2017 at 9:47 AM, Skip Kimpel via use-livecode < use-livecode at lists.runrev.com> wrote: > Roger... why is it that you and I are ALWAYS on the same page and > interested in the same things? > > Love it! > > SKIP > > On Thu, Oct 12, 2017 at 9:43 AM, Roger Eller via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > VERY interested! Will this be shared, or become a add-on product for the > > LC community? > > > > ~Roger > > > > > > On Thu, Oct 12, 2017 at 8:54 AM, Pi Digital via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > I?ve been currently working on a project with another Livecoder making > a > > > library to work with MS Dynamics365. It turns out that the best way for > > LC > > > to work with it is via their webAPI (as are most things) until v9 is > > ready. > > > But this still means a lot of stuff being put together outside of LC. > You > > > first need an Azure account setup to enable authentication. You then > need > > > someone conversant with c#, Visual Basic and .net to write the APIs > based > > > on the MS SDK. This then needs putting onto a .net server. From there > it > > is > > > really straight forward to set up a http header in LC and all of the > Post > > > and http calls to send and receive data. > > > > > > To be honest, the LC side of things is really simple, and our API guy > has > > > been really good at setting the whole thing up for us. We found him via > > > PeoplePerHour and is clearly one of the best in his field. > > > > > > It?s been a long process working out how to get it all to work together > > so > > > I?m happy I can now make it easier for members like you, saving you the > > > effort of fumbling around (like we did) to find a solution. > > > > > > PM me if and when you need more guidance and we can set up a Skype, > > > FaceTime or whatever. > > > > > > All the best > > > > > > Sean Cole > > > Pi Digital > > > Sean at pidigital.co.uk > > > > > > > On 12 Oct 2017, at 12:52, Colin Kelly via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > > > > > > Does anyone have any working livecode scripts/libraries to use with > the > > > Microsoft 365 Rest API for accessing Calendar entries? > > > > > > > > > > > > > > > > Any help much appreciated. > > > > > > > > > > > > > > > > -- > > > > > > > > Colin Kelly > > > > > > > > > > > > > > > > _______________________________________________ > > > > use-livecode mailing list > > > > use-livecode at lists.runrev.com > > > > Please visit this url to subscribe, unsubscribe and manage your > > > subscription preferences: > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From skiplondon at gmail.com Thu Oct 12 10:08:11 2017 From: skiplondon at gmail.com (Skip Kimpel) Date: Thu, 12 Oct 2017 10:08:11 -0400 Subject: Microsoft 365 Rest API In-Reply-To: References: <97736CAC-5413-4905-8352-B9AD418BBF89@gmail.com> <8DE7EC59-C4DE-4B55-842D-9CFF6A4D285C@pidigital.co.uk> Message-ID: Amen to that... SKIP On Thu, Oct 12, 2017 at 9:54 AM, Roger Eller via use-livecode < use-livecode at lists.runrev.com> wrote: > Skip, we are piloting the same starship in alternate universes, I do > believe. ;) > > ~Roger > > > On Thu, Oct 12, 2017 at 9:47 AM, Skip Kimpel via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Roger... why is it that you and I are ALWAYS on the same page and > > interested in the same things? > > > > Love it! > > > > SKIP > > > > On Thu, Oct 12, 2017 at 9:43 AM, Roger Eller via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > VERY interested! Will this be shared, or become a add-on product for > the > > > LC community? > > > > > > ~Roger > > > > > > > > > On Thu, Oct 12, 2017 at 8:54 AM, Pi Digital via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > > > > > I?ve been currently working on a project with another Livecoder > making > > a > > > > library to work with MS Dynamics365. It turns out that the best way > for > > > LC > > > > to work with it is via their webAPI (as are most things) until v9 is > > > ready. > > > > But this still means a lot of stuff being put together outside of LC. > > You > > > > first need an Azure account setup to enable authentication. You then > > need > > > > someone conversant with c#, Visual Basic and .net to write the APIs > > based > > > > on the MS SDK. This then needs putting onto a .net server. From there > > it > > > is > > > > really straight forward to set up a http header in LC and all of the > > Post > > > > and http calls to send and receive data. > > > > > > > > To be honest, the LC side of things is really simple, and our API guy > > has > > > > been really good at setting the whole thing up for us. We found him > via > > > > PeoplePerHour and is clearly one of the best in his field. > > > > > > > > It?s been a long process working out how to get it all to work > together > > > so > > > > I?m happy I can now make it easier for members like you, saving you > the > > > > effort of fumbling around (like we did) to find a solution. > > > > > > > > PM me if and when you need more guidance and we can set up a Skype, > > > > FaceTime or whatever. > > > > > > > > All the best > > > > > > > > Sean Cole > > > > Pi Digital > > > > Sean at pidigital.co.uk > > > > > > > > > On 12 Oct 2017, at 12:52, Colin Kelly via use-livecode < > > > > use-livecode at lists.runrev.com> wrote: > > > > > > > > > > Does anyone have any working livecode scripts/libraries to use with > > the > > > > Microsoft 365 Rest API for accessing Calendar entries? > > > > > > > > > > > > > > > > > > > > Any help much appreciated. > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > Colin Kelly > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > use-livecode mailing list > > > > > use-livecode at lists.runrev.com > > > > > Please visit this url to subscribe, unsubscribe and manage your > > > > subscription preferences: > > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > > > > use-livecode mailing list > > > > use-livecode at lists.runrev.com > > > > Please visit this url to subscribe, unsubscribe and manage your > > > > subscription preferences: > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 12 10:37:35 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 12 Oct 2017 14:37:35 +0000 Subject: Autocompletion of quotes on LC 8.2,0 DP-1 In-Reply-To: References: <2FB9318B-CA08-4C75-8C1F-B943FB55994D@gmail.com> Message-ID: <2D37D86C-58AF-42FE-B3E1-0AFFC1484F7F@iotecdigital.com> I've run into that in the past, and that issue was that the window shrinks each time a stack is opened. I think that was addressed a long time ago, but what I have done because I have multiple windows and I am finding my windows off screen so often, is I save the rect and loc in a property of the stack when I close it, then on openStack I check to make sure all the coordinates are within the screen rect, and if not I center the window. Bob S > On Oct 11, 2017, at 18:35 , Monte Goulding via use-livecode wrote: > > I haven?t noticed this myself but dod spend some time trying to replicate it. A few people have complained about it. Has it been reported? My suspicion if it is just a Mac issue would be the menubar height is somehow not being taken into account. > > Cheers > > Monte From bobsneidar at iotecdigital.com Thu Oct 12 10:41:21 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 12 Oct 2017 14:41:21 +0000 Subject: Atkinson dither algorithm & 'for each' loop In-Reply-To: <64bd534e-3d70-8920-a8b1-63bb7f8a4f2d@cogapp.com> References: <64bd534e-3d70-8920-a8b1-63bb7f8a4f2d@cogapp.com> Message-ID: That is correct Ben. It's not the repeat for each that is unreliable (probably a bad word to use here) but it is arrays which do not retain the sequence of key/values in the order they were put in. To get around this, when possible use numbered keys, then: put the keys of aMyArray into tKeyList sort the lines of tKeyList numeric ascending repeat for each line tKey in tKeyList ... Bob S > On Oct 12, 2017, at 04:48 , Ben Rubinstein via use-livecode wrote: > > Hi Peter, > >> One note of caution regarding the use of the "repeat for each" loop, whilst you will get a loop iteration for every value in the collection >> (fldhexa3 in your example), you are not guaranteed the order in which they >> will occur. > > Are you sure? My understanding has always been that chunk items, e.g. > repeat for each [ byte | char | word | item | line] in > > will always be sequential (indeed that's why this structure is fast) - it's only when dealing with hashed arrays that the sequence is not reliable, i.e. > repeat for each key in > repeat for each element in > > Do you have experience to the contrary? > > best regards, > > Ben From bobsneidar at iotecdigital.com Thu Oct 12 11:00:11 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 12 Oct 2017 15:00:11 +0000 Subject: Query Input Form Message-ID: <2ED03E41-012F-4568-BF96-4EA11643F728@iotecdigital.com> Has anyone put together a query input form, that can take simple input from a user, like: customers.customername is/is not/is greater than/is less than/is like AND/OR AND/OR ... and then build an sql query for it? Bob S From ambassador at fourthworld.com Thu Oct 12 11:35:50 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 12 Oct 2017 08:35:50 -0700 Subject: Atkinson dither algorithm & 'for each' loop In-Reply-To: References: Message-ID: Peter Reid wrote: > One note of caution regarding the use of the "repeat for each" loop, > whilst you will get a loop iteration for every value in the collection > (fldhexa3 in your example), you are not guaranteed the order in which > they will occur. Maybe I misunderstand, but are you thinking of arrays there? With string containers a "repeat for each" expression should parse from beginning to end, sequentially. Any exception to that would be prohibitively unpredictable, and should be reported as a bug. > The following adjusted loop guarantees the sequence at the expense of > speed: > > put 1 into i > repeat for each word theWord in fldhexa3 > put word i of fldhexa3 into theWord The speed lost there appears to be the result of a redundancy, and a particularly expensive one: We love the convenience of chunk expressions, but in loops we want to remain mindful of " of " because satisfying such expressions will require the engine to start from the beginning of the container, examine every character and counting delimiters, until it reaches the number of such delimiters specified in "". So the "repeat" line above parses the chunk value into theWord, but then the next line ignores that that's already happened and reassigns the same theWord value using an expression that requires then engine to count words from the beginning of fldhexa3 each time through the loop. With this specific algo I believe there may be further benefits in using a chunk type other than word (based on a a hunch derived from word chunks being parsed more flexibly than items or lines), and perhaps not converting the binary data to hex at all, instead parsing bytes directly with a "step 4" option in the loop to keep track of the four components that define each pixel. -- 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 preid at reidit.co.uk Thu Oct 12 12:38:13 2017 From: preid at reidit.co.uk (Peter Reid) Date: Thu, 12 Oct 2017 17:38:13 +0100 Subject: use-livecode Digest, Vol 169, Issue 18 In-Reply-To: References: Message-ID: <2E744D1A-E148-4CF4-AE54-4533F8939A2D@reidit.co.uk> I agree that the redundant indexing is an expensive approach, however I have found that this abnormal structure of a repeat for each loop can be a lot faster than the other loop forms in some circumstances. I can't find the reference that first highlighted to me the lack of guaranteed sequence of chunks, but I've assumed this was a restriction for some time. It would be great if this is incorrect as I've got some heavyweight looping in several of my apps that would benefit from this! Can anyone from LiveCode give a definitive answer to this please? Peter -- Peter Reid Loughborough, UK > On 12 Oct 2017, at 4:36pm, use-livecode-request at lists.runrev.com wrote: > > Message: 17 > Date: Thu, 12 Oct 2017 08:35:50 -0700 > From: Richard Gaskin > To: use-livecode at lists.runrev.com > Subject: Re: Atkinson dither algorithm & 'for each' loop > Message-ID: > Content-Type: text/plain; charset=utf-8; format=flowed > > Peter Reid wrote: > >> One note of caution regarding the use of the "repeat for each" loop, >> whilst you will get a loop iteration for every value in the collection >> (fldhexa3 in your example), you are not guaranteed the order in which >> they will occur. > > Maybe I misunderstand, but are you thinking of arrays there? > > With string containers a "repeat for each" expression should parse from > beginning to end, sequentially. > > Any exception to that would be prohibitively unpredictable, and should > be reported as a bug. > > >> The following adjusted loop guarantees the sequence at the expense of >> speed: >> >> put 1 into i >> repeat for each word theWord in fldhexa3 >> put word i of fldhexa3 into theWord > > The speed lost there appears to be the result of a redundancy, and a > particularly expensive one: > > We love the convenience of chunk expressions, but in loops we want to > remain mindful of " of " because satisfying > such expressions will require the engine to start from the beginning of > the container, examine every character and counting delimiters, until it > reaches the number of such delimiters specified in "". > > So the "repeat" line above parses the chunk value into theWord, but then > the next line ignores that that's already happened and reassigns the > same theWord value using an expression that requires then engine to > count words from the beginning of fldhexa3 each time through the loop. > > > With this specific algo I believe there may be further benefits in using > a chunk type other than word (based on a a hunch derived from word > chunks being parsed more flexibly than items or lines), and perhaps not > converting the binary data to hex at all, instead parsing bytes directly > with a "step 4" option in the loop to keep track of the four components > that define each pixel. > > -- > 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 ahsoftware at sonic.net Thu Oct 12 13:00:20 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 12 Oct 2017 10:00:20 -0700 Subject: use-livecode Digest, Vol 169, Issue 18 In-Reply-To: <2E744D1A-E148-4CF4-AE54-4533F8939A2D@reidit.co.uk> References: <2E744D1A-E148-4CF4-AE54-4533F8939A2D@reidit.co.uk> Message-ID: On 10/12/2017 09:38 AM, Peter Reid via use-livecode wrote: > I can't find the reference that first highlighted to me the lack of guaranteed sequence of chunks, but I've assumed this was a restriction for some time. It would be great if this is incorrect as I've got some heavyweight looping in several of my apps that would benefit from this! I have quite a lot of code that would fail miserably if the 'repeat for each' construct would get things out of sequence. But if you're referring to the 'repeat for each element' or 'repeat for each key' constructs, then there's no ordered sequence in the array to begin with. -- Mark Wieder ahsoftware at gmail.com From mark at livecode.com Thu Oct 12 13:16:02 2017 From: mark at livecode.com (Mark Waddingham) Date: Thu, 12 Oct 2017 19:16:02 +0200 Subject: Repeat For Each Iteration Order (was Re: use-livecode Digest, Vol 169, Issue 18) In-Reply-To: <2E744D1A-E148-4CF4-AE54-4533F8939A2D@reidit.co.uk> References: <2E744D1A-E148-4CF4-AE54-4533F8939A2D@reidit.co.uk> Message-ID: On 2017-10-12 18:38, Peter Reid via use-livecode wrote: > I agree that the redundant indexing is an expensive approach, however > I have found that this abnormal structure of a repeat for each loop > can be a lot faster than the other loop forms in some circumstances. > > I can't find the reference that first highlighted to me the lack of > guaranteed sequence of chunks, but I've assumed this was a restriction > for some time. It would be great if this is incorrect as I've got some > heavyweight looping in several of my apps that would benefit from > this! > > Can anyone from LiveCode give a definitive answer to this please? Yes - the previous posts are correct. If you are using 'repeat for each' to iterate over something which has an order, then the iteration will follow that order. Specifically: - string chunks (char, item, line, word, trueWord, sentence, paragraph, token, codepoint, codeunit) are all ordered - byte chunks are ordered - key chunks are unordered (they use the hash-order of the array, which can change arbitrarily even within a session) - element chunks are ordered for arrays which are sequences*, unordered for all other arrays * An array is a sequence if: it has only integer keys, and keys range from 1 up to the number of elements in the array. e.g. If the keys are 1, 2, 3, 4 - then that is a sequence; 0, 1, 2, 3 is not; 1, 3, 4 is not. Just to reiterate something Richard mentioned - the performance advantage of a 'repeat for each' loop is completely lost if you use a normal chunk within the loop to fetch another part (or the same part!) of the container: put 0 into tIndex repeat for each word tWord in tString add 1 to tIndex put word somefunc(tIndex) of tString into tSameWord ... end repeat This is because the chunk evaluation must step through somefunc(tIndex) words in the string *again*. (It takes N steps to access the N'th string/byte chunk in a container - repeat for each gets its performance advantage because it remembers where it got the previous chunk from so it can fetch the next, so it is just 1 step each iteration). The only types of access which are guaranteed not to have this N step behavior are codeunit, byte and array accesses: - a LiveCode string is (internally) an array of codeunits; which means that it takes only one step to get any codeunit in it. - a LiveCode binary string is (internally) an array of bytes; so it only takes one step to get any byte from it - LiveCode arrays are hash-tables, so you can look up any key in one step Note: If you are using the 'byte' chunk, make sure that the thing they are accessing *is* actually a binary string before using it on them. The conversion from string -> binary string (which exists for compatibility with pre-7 scripts) will cause a performance bump. In terms of the codeunit/codepoint/character chunks - the engine *tries* to ensure it does as little work as possible when accessing these. Internally, the engine sets flags on a string so that it can optimize these lookups. In particular: 1) If a string contains only Unicode codepoints from the first 64k Unicode codes *without* surrogates (they give access to everything above 64k) then codepoint access on that string will be 1 step. 2) If a string contains characters which are only composed of single codepoints in the first 64k Unicode code *without* surrogates, then char access on that string will be 1 step. In particular, if the string you are processing actually came from a native string; then (1) and (2) are guaranteed to be the case. However, if you have arbitrary Unicode strings, then it won't generally be the case: a) any characters which have a Unicode code > 64k must be represented by two codes < 64k (surrogate pairs); this means that the engine has to step through the string codeunit by codeunit to count the codepoints so it can find the one you asked for (N step again) b) any characters which are composed of multiple codepoints are in the same boat Case (b) can arise quite often even in Roman script languages. For example, in Unicode you can write e-acute as EITHER e,combining-acute (two codepoints) OR as e-with-acute (one codepoint). For some languages, most characters will be multiple codepoints - e.g. the Indic languages. There are also a lot of esoteric languages (for scholarly / academic purposes) which are entirely defined by Unicode codepoints > 64k. Upshot is that if you are doing char by char string processing of general Unicode strings, then try and use repeat for each char; and if you *can't* do that for some reason, then try and work out how you can do the processing by using the codeunit chunk. However, as Knuth is famed for saying - "Premature optimization is the root of all evil" - don't spend time trying to optimize an algorithm until you have a working version and can intimately analyse where the slow parts are. Trying to optimize ahead of time will likely just cause a lot of time being spent needlessly, and potential hair loss when figuring out why the (probably much more complicated code) doesn't work quite right, or why it didn't produce the speed improvement you were expecting! Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From capellan2000 at gmail.com Thu Oct 12 13:35:36 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 12 Oct 2017 13:35:36 -0400 Subject: Atkinson dither algorithm & 'for each' loop Message-ID: A few hours ago, I send a message to the mail list, a message that vanish without trace. Now I am resending parts of that message. The rest of the message is in the forum... Peter Read wrote: > One note of caution regarding the use of the "repeat for each" loop, > whilst you will get a loop iteration for every value in the collection > (fldhexa3 in your example), you are not guaranteed the order in > which they will occur. This doesn't matter in a lot of cases but > does matter when the sequence is significant. In the case of your > example I believe sequence is critical, otherwise the pixels might > appear to be scrambled! In my own setup, the control structure "repeat for each" is caching the content of the working variable. This means that we could not modify the content of this variable while the control structure is working with it. After reading your message, now I understand why this happens. If developers are allowed to modify a variable used by a control structure like "repeat for each" then we could get unexpected result as you describe: elements are processed in an out of order sequence. Ben Rubinstein wrote in response to Peter Reid: > Are you sure? My understanding has always been that > chunk items, e.g. > repeat for each [ byte | char | word | item | line] in > will always be sequential (indeed that's why this structure is fast) > - it's only when dealing with hashed arrays that the sequence is > not reliable, i.e. > repeat for each key in > repeat for each element in > Do you have experience to the contrary? As I wrote earlier in this same message, Peter could have found some way to change the working variable in a repeat for each control structure and the result is that elements are processed with an out of order sequence. By the way, after reading all comments and recommendations about the atkinson dither algorithm, I wrote a new handler that is a lot faster that my first handler, but the result STILL is not visually identical to that handler. My educated guess is that Atkinson dither algorithm requires numbers with more than 2 numbers after the decimal point. That is: 243.643578 instead of just 243.64 Later this week, I will try to discover the minimal number of decimal numbers that this algorithm requires. Please, check this new handler in the forum and suggest how to make this faster and more precise: https://forums.livecode.com/viewtopic.php?f=10&p=159078&sid=b46bc56428cb5b0f48d2c6520c107c47#p159078 Have a nice week! Al From mark at livecode.com Thu Oct 12 13:51:09 2017 From: mark at livecode.com (Mark Waddingham) Date: Thu, 12 Oct 2017 19:51:09 +0200 Subject: Atkinson dither algorithm & 'for each' loop In-Reply-To: References: Message-ID: On 2017-10-12 19:35, Alejandro Tejada via use-livecode wrote: > Peter Read wrote: >> One note of caution regarding the use of the "repeat for each" loop, >> whilst you will get a loop iteration for every value in the collection >> (fldhexa3 in your example), you are not guaranteed the order in >> which they will occur. This doesn't matter in a lot of cases but >> does matter when the sequence is significant. In the case of your >> example I believe sequence is critical, otherwise the pixels might >> appear to be scrambled! Prior to 7, you had to be careful not to modify either the container being iterated over *or* the var holding the chunk for the current iteration as it could cause issues as described (actually, it was fundamentally unsafe to do that, as it could result in a crash). i.e. repeat for each item tItem in tContainer replace "Foo" with "B" in tContainer -- BAD - MIGHT CAUSE PROBLEMS put "a' into char 2 of tItem -- BAD - MIGHT CAUSE PROBLEMS end repeat From 7 onwards, this is no longer the case. You can do whatever you want with either the container. Indeed, in 7, the engine essentially operates as if it was iterating over a copy of the container and with a copy of the chunk (i.e. tItem and tContainer in the above snippet). Upshot - you can do whatever you want with your variables - the engine ensures that what you do won't affect what you asked for to begin with (in particular, if you asked to iterate over tContainer, then it will iterate over tContainer as it was at the point you first asked - any changes to tContainer after the initial repeat for each line will have no effect on the repeat for each clause). Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Thu Oct 12 14:45:02 2017 From: mark at livecode.com (Mark Waddingham) Date: Thu, 12 Oct 2017 20:45:02 +0200 Subject: [ANN] Release 8.2.0 DP-2 In-Reply-To: References: Message-ID: <8d51a2f6ab4d095dba1fdc5f2b208d55@livecode.com> On 2017-10-11 19:09, Dan Brown via use-livecode wrote: > Any news on the progress of datagrid v2 and enhanced graphics speed? Just to embellish what Panos said... There has been 2-3 of us working on the DG2 project over the last couple of sprints: 1) Monte has been updating the DG to automatically take advantage of mobile scrollers 2) Michael has been working on updating the DG to do the edit mode / swipe actions as described in the project 3) I've been working on updating acceleratedRendering mode to allow child controls to have dynamic layers I believe (1) is complete and should appear in the next 9 DP (although don't hold me to that, it might be the one after the next one!). The script level DG changes (2) is making good progress - Michael is on the second sprint worth of work on it. The engine level accelRender changes (3) is not going too badly either. I've already sorted out selection handles based on some work Ali did a while back in 9 - all selection type handles are now rendered above everything else and the graphical artifacts which appeared in accelRender mode have been eliminated. I've also done an initial refactor of the way the underlying 'TileCache' mechanism (which is the core of accelRender mode) is used from the main engine code - the goal being that each control type controls how it is rendered in that mode; rather than it happening in one place which is the case currently. This is the crux of allowing child controls (of groups) to be dynamic layers but it has some other nice benefits too... In particular, it means that we should be able to eliminate the rules about when controls can use accelRender (something I wasn't sure would be possible when we specified the DG2 project) - e.g. you should, after this work is complete, be able to set a group to 'dynamic' and then it will automatically make itself scrolling if it is a scrolling group, and also retain other things like its border and label should they be set (similarly fields can get the same treatment). The most intensive part of this work is going through and updating around 150 or so places in the engine which flag where a redraw is needed - making sure they are doing so much more specifically (e.g. the border of this control has changed, so just update the border) - slightly tedious perhaps, but well worth it and I've been plugging away at it. So, anyway, I can't yet give a date for when all the work will be complete - but at the moemnt, at least, we do appear to be on track for delivery in November... Although, famous last words and all that! Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From hh at hyperhh.de Thu Oct 12 15:07:59 2017 From: hh at hyperhh.de (hh) Date: Thu, 12 Oct 2017 21:07:59 +0200 Subject: Atkinson dither algorithm & 'for each' loop Message-ID: <6EA35AB8-793A-49C0-86DA-833EAA0A4F53@hyperhh.de> > Al wrote: > Please, check this new handler in the forum and suggest how to > make this faster and more precise. I already gave you a method that is, with a 500x500 image, at least 1000 (thousand) times faster than your script. Of course this is not due my special skills but the ability of javascript (used via a browser widget) to let the GPU/graphic card do the essential job of pixel manipulation. So all considerations to improve the LCS script are, TMHO, of rather theoretical value. Here are some more: > Al wrote: > ... the result STILL is not visually identical to that handler. > My educated guess is that Atkinson dither algorithm requires > numbers with more than 2 numbers after the decimal point. > That is: 243.643578 instead of just 243.64 Conclude from the following: The Atkinson algorithm uses multiples of 1/8 = 0.125 for the diffusion-error, the Floyd-Steinberg algorithm uses multiples of 1/16 = 0.0625. And have this in mind: Whenever you use numToChar(Number) in your script you are wrong by Number - round(Number) of the accumulated pixel value ... From capellan2000 at gmail.com Thu Oct 12 16:37:00 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 12 Oct 2017 16:37:00 -0400 Subject: Atkinson dither algorithm & 'for each' loop Message-ID: Hi Hermann, Hermann Hoch wrote: > So all considerations to improve the LCS script are, > TMHO, of rather theoretical value. Here are some more: > The Atkinson algorithm uses multiples of 1/8 = 0.125 for > the diffusion-error, the Floyd-Steinberg algorithm uses > multiples of 1/16 = 0.0625. > And have this in mind: > Whenever you use numToChar(Number) in your script you > are wrong by Number - round(Number) of the accumulated > pixel value ... This is correct, for this reason, in the most recent version of this handler, I am using 2 chars to store the new pixel value. first char is a whole number from 0 to 255 and the second char represent a decimal part from 0 to 99. I will test if using 5 chars for storing the new pixel value. In this way, the new pixel could store values of 0000.000000 that should be enough for this task... After reading Mark's answer, I learned that using a numerical ordered array to store pixel values could be really fast too. This is another path to explore. Al From ambassador at fourthworld.com Thu Oct 12 16:51:11 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 12 Oct 2017 13:51:11 -0700 Subject: [ANN] Release 8.2.0 DP-2 In-Reply-To: <8d51a2f6ab4d095dba1fdc5f2b208d55@livecode.com> References: <8d51a2f6ab4d095dba1fdc5f2b208d55@livecode.com> Message-ID: <440d7496-4ab2-ce69-3861-f0fc99b7647b@fourthworld.com> Mark Waddingham wrote: > I've already sorted out selection handles based on some work Ali did a > while back in 9 - all selection type handles are now rendered above > everything else and the graphical artifacts which appeared in > accelRender mode have been eliminated. I certainly don't want to distract you from rendering performance, but as long as you have your head in the selection indication code I wonder if this might become possible in v9: Selection Handles: Make selection border optional http://quality.livecode.com/show_bug.cgi?id=17676 The dashed border around selected controls certainly makes their selected state clear, but it also obscures the object's own border, sometimes making it difficult to visualize placement or changes to border treatments until I deselect it. I kinda liked how it used to be, where the only indicators added to a selected object were the interactive handles, leaving the rest of the object visibly the same so we could evaluate changes made to it as we were making them. But I recognize the change to alter the border treatment on selection was probably made for a reason, so if that reason is still important maybe that could become optional? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From hh at hyperhh.de Thu Oct 12 17:48:12 2017 From: hh at hyperhh.de (hh) Date: Thu, 12 Oct 2017 23:48:12 +0200 Subject: Atkinson dither algorithm & 'for each' loop Message-ID: <9D82DD8C-E635-4A96-8305-C366BC1DFFB1@hyperhh.de> @Al. For multiples of 1/8 (Atkinson) you need 8*256=2048 integers, that is 11 Bit. For multiples of 1/16 (Floyd-Steinberg) you need 16*256=4096 integers, that is 12 Bit. In 2 chars = 16 Bit fit even multiples of 1/256. No dither-algorithm uses such tiny diffusion-errors. From stephen at barncard.com Thu Oct 12 18:14:39 2017 From: stephen at barncard.com (Stephen Barncard) Date: Thu, 12 Oct 2017 22:14:39 +0000 Subject: Query Input Form In-Reply-To: <2ED03E41-012F-4568-BF96-4EA11643F728@iotecdigital.com> References: <2ED03E41-012F-4568-BF96-4EA11643F728@iotecdigital.com> Message-ID: Using a data grid? Or a chain of pop-ups selectors? On Thu, Oct 12, 2017 at 08:00 Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Has anyone put together a query input form, that can take simple input > from a user, like: > customers.customername is/is not/is greater than/is less than/is like > AND/OR > AND/OR > ... > > and then build an sql query for 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 > -- -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org From brahma at hindu.org Fri Oct 13 00:57:13 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 13 Oct 2017 04:57:13 +0000 Subject: [ANN] Release 8.2.0 DP-2 In-Reply-To: <8d51a2f6ab4d095dba1fdc5f2b208d55@livecode.com> References: <8d51a2f6ab4d095dba1fdc5f2b208d55@livecode.com> Message-ID: <5B9C0C50-D9C2-4721-8CE7-7D2398A60DA1@hindu.org> Thanks for the update Mark? you have our app on Git, so if you can make it work on Android, sometime in November, that will be great! We will keep pushing on content. Getting a proper rendering on opening and closing stacks is the key missing factor on Android. On 10/12/17, 8:45 AM, "use-livecode on behalf of Mark Waddingham via use-livecode" wrote: The most intensive part of this work is going through and updating around 150 or so places in the engine which flag where a redraw is needed - making sure they are doing so much more specifically (e.g. the border of this control has changed, so just update the border) - slightly tedious perhaps, but well worth it and I've been plugging away at it. So, anyway, I can't yet give a date for when all the work will be complete - but at the moemnt, at least, we do appear to be on track for delivery in November... Although, famous last words and all that! From benr_mc at cogapp.com Fri Oct 13 03:06:44 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 13 Oct 2017 08:06:44 +0100 Subject: Repeat For Each Iteration Order (was Re: use-livecode Digest, Vol 169, Issue 18) In-Reply-To: References: <2E744D1A-E148-4CF4-AE54-4533F8939A2D@reidit.co.uk> Message-ID: <47e0c737-741c-c780-a7a0-42664cf821ce@cogapp.com> On 12/10/2017 18:16, Mark Waddingham via use-livecode wrote: > ?? - element chunks are ordered for arrays which are sequences*, unordered > for all other arrays > > * An array is a sequence if: it has only integer keys, and keys range from 1 > up to the number of elements in the array. > ? e.g. If the keys are 1, 2, 3, 4 - then that is a sequence; 0, 1, 2, 3 is > not; 1, 3, 4 is not. Ooh - I didn't know that! That's very useful, especially now that I've switched to using the standard JSON library where we're frequently iterating over such sequences. Ben From benr_mc at cogapp.com Fri Oct 13 03:17:33 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 13 Oct 2017 08:17:33 +0100 Subject: OAuth2 (LC 9) on mobile? In-Reply-To: References: <37928db6-4057-9d2d-f31d-ff7466625d2a@cogapp.com> Message-ID: Now that Greg's Oauth2 issue has been resolved, can I check whether anyone has seen the Oauth2 library work on mobile? I don't want to raise an LQCC if it's just me doing something wrong! thanks, Ben On 11/10/2017 17:19, Ben Rubinstein via use-livecode wrote: > To clarify, by "everything still works" I mean that the OAuth2 command appears > to have done "exit to top" without doing anything - but leaving the whole > screen dimmed out. So other controls on the card, although dim, work. But no > authorisation has happened. > > On 11/10/2017 17:02, Ben Rubinstein via use-livecode wrote: >> Does the new OAuth2 library in LC 9 work on mobile? Docs suggest it should, >> but testing on iPad I just get an interesting dimmed out effect on the stack >> - although in fact everything still works - where I would have expected a >> sheet or switching to Safari or some other way of displaying a web page. >> >> TIA, >> >> Ben >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ckelly5430 at gmail.com Fri Oct 13 03:55:47 2017 From: ckelly5430 at gmail.com (Colin Kelly) Date: Fri, 13 Oct 2017 08:55:47 +0100 Subject: Microsoft 365 Rest API In-Reply-To: <8DE7EC59-C4DE-4B55-842D-9CFF6A4D285C@pidigital.co.uk> References: <97736CAC-5413-4905-8352-B9AD418BBF89@gmail.com> <8DE7EC59-C4DE-4B55-842D-9CFF6A4D285C@pidigital.co.uk> Message-ID: <37CE6334-A329-48DE-B157-A4D167955E79@gmail.com> Thanks for this Sean, I?m very keen to understand/learn how you?ve put this together, there does seem to be a wide need for this by the noise generated in this list. Would be great to see this put on one of the upcoming LiveCode Global Days! -- Colin Kelly M 07951 920680 On 12/10/2017, 13:55, "use-livecode on behalf of Pi Digital via use-livecode" wrote: I?ve been currently working on a project with another Livecoder making a library to work with MS Dynamics365. It turns out that the best way for LC to work with it is via their webAPI (as are most things) until v9 is ready. But this still means a lot of stuff being put together outside of LC. You first need an Azure account setup to enable authentication. You then need someone conversant with c#, Visual Basic and .net to write the APIs based on the MS SDK. This then needs putting onto a .net server. From there it is really straight forward to set up a http header in LC and all of the Post and http calls to send and receive data. To be honest, the LC side of things is really simple, and our API guy has been really good at setting the whole thing up for us. We found him via PeoplePerHour and is clearly one of the best in his field. It?s been a long process working out how to get it all to work together so I?m happy I can now make it easier for members like you, saving you the effort of fumbling around (like we did) to find a solution. PM me if and when you need more guidance and we can set up a Skype, FaceTime or whatever. All the best Sean Cole Pi Digital Sean at pidigital.co.uk > On 12 Oct 2017, at 12:52, Colin Kelly via use-livecode wrote: > > Does anyone have any working livecode scripts/libraries to use with the Microsoft 365 Rest API for accessing Calendar entries? > > > > Any help much appreciated. > > > > -- > > Colin Kelly > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From capellan2000 at gmail.com Fri Oct 13 05:53:51 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 13 Oct 2017 05:53:51 -0400 Subject: Atkinson dither algorithm & 'for each' loop Message-ID: After reading Mark Waddingham explanation, now i am using a sequential ordered array for this handler. Check this much shorter and faster version: on mouseUp put the millisecs into startTime set the cursor to busy put the alphadata of img "Image" into tAlphaData put the imagedata of img "Image" into tVar put the width of img "Image" into tImageWidth put the height of img "Image" into tImageHeight put the number of chars of tVar into tImgPixels if existence(sb the "ThresholdDither") then put thumbPos of sb the "ThresholdDither" into tThreshold else put 127 into tThreshold end if put numtochar(0) & numtochar(255) & numtochar(255) & numtochar(255) into tWP put numtochar(0) & numtochar(0) & numtochar(0) & numtochar(0) into tBP put ((tImageWidth * tImageHeight) - tImageWidth) into tHW put ImgToArrayNum(ImgToCh(tVar,1)) into tArray2 put 0 into tPixelCounter put tImgPixels/4 into tPixels repeat tPixels add 1 to tPixelCounter put tPixelCounter into tPixelPosition put tArray2[tPixelCounter] into tOldPixelValue if round(tOldPixelValue) <= tThreshold then put 0 into tNewPixelValue put tBP after fldhexa8 else put 255 into tNewPixelValue put tWP after fldhexa8 end if put (tOldPixelValue - tNewPixelValue)/8 into tDifusionError -- Atkinson dither add the diffusion error -- to 6 adjacent pixels -- x o o -- o o o -- o if tPixelPosition mod tImageWidth <> 0 then -- pixel position is less than image width put tPixelCounter + 1 into tNewKey put (tDifusionError) + tArray2[tNewKey] into tArray2[tNewKey] if tPixelPosition mod (tImageWidth - 1) <> 0 then -- pixel position is less than image width - 1 put tPixelCounter + 2 into tNewKey put tDifusionError + tArray2[tNewKey] into tArray2[tNewKey] end if end if if tPixelPosition <= tHW then -- ((tImageWidth * tImageHeight) - tImageWidth) -- pixel position is not in the last line of the image if tPixelPosition mod tImageWidth <> 1 then -- pixel position is not the first pixel in any line of the image put (tPixelPosition + tImageWidth - 1) into tNewKey put (tDifusionError) + tArray2[tNewKey] into tArray2[tNewKey] end if put (tPixelPosition + tImageWidth) into tNewKey put (tDifusionError) + tArray2[tNewKey] into tArray2[tNewKey] if tPixelPosition mod tImageWidth <> 0 then -- pixel position is less than image width put (tPixelPosition + tImageWidth + 1) into tNewKey put (tDifusionError) + tArray2[tNewKey] into tArray2[tNewKey] end if if tPixelPosition <= (tImageWidth * tImageHeight) - (tImageWidth * 2) then -- pixel position is less than image width - 1 put (tPixelPosition + tImageWidth * 2) into tNewKey put (tDifusionError) + tArray2[tNewKey] into tArray2[tNewKey] end if end if end repeat create img set the height of it to the height of img "Image" set the width of it to the width of img "Image" set the imagedata of it to fldhexa8 set the alphaData of it to tAlphaData put the millisecs - startTime && "milliseconds to create Atkinson Dither from image's single channel" end mouseUp Function ImgToArrayNum vImageData -- This function converts binary imagedata to -- integer numbers from 0 to 255 into -- an array. -- vImageData is a single color channel -- stored as binary imagedata. put empty into tResult put 0 into tCounter repeat for each char K in vImageData add 1 to tCounter put chartonum(K) into tResult[tCounter] end repeat return tResult end ImgToArrayNum Function ImgToCh tImageData tChannel -- This function returns binary data. -- -- tImageData is unmodified original imagedata of image -- with 4 chars for each pixel: 1 alphadata and 3 color channels. -- -- tChannel is a number from 1 to 3: -- 1 is red channel, 2 is green channel and 3 is blue channel put tImageData into tempVar delete char 1 to tChannel of tempVar -- the first char of the imagedata is part -- of the alphadata or maskdata, so when -- we delete char 1, the next char is part -- from red channel... if we delete 2 first -- chars, then next char is green channel -- if we delete 3 first chars, then we get -- the blue channel repeat until tempVar is empty put char 1 of tempVar after tResult delete char 1 to 4 of tempVar end repeat return tResult end ImgToCh Have a nice weekend! Al From benr_mc at cogapp.com Fri Oct 13 06:15:03 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 13 Oct 2017 11:15:03 +0100 Subject: libURLLast/xx/headers on mobile? Message-ID: <610edf76-5684-19d0-638a-ba9ba4dfbd37@cogapp.com> I'm trying to debug a case where making some calls to an external API works fine on desktop, but fails on mobile (both iOS and Android) with "400 bad request". Unfortunately it seems that libURLLastHTTPHeaders() and libURLLastRHHeaders() aren't available on mobile. Is there some other way to get the information on mobile (especially the latter)? TIA, Ben From iphonelagi at gmail.com Fri Oct 13 06:31:34 2017 From: iphonelagi at gmail.com (Lagi Pittas) Date: Fri, 13 Oct 2017 11:31:34 +0100 Subject: Repeat For Each Iteration Order (was Re: use-livecode Digest, Vol 169, Issue 18) In-Reply-To: References: <2E744D1A-E148-4CF4-AE54-4533F8939A2D@reidit.co.uk> Message-ID: Hi All I feel my IQ goes up by at lest 10 points when I read some of Mark's detailed answers concerning Livecode internals - and the thought processes that go into them. Mark's and many others' answers are worth the price of admission to this list - thanks a lot Mark for such an erudite exposition of this and other arcane Livecode concepts. I have "Joel on Software" but a" Mark on software" would be a great read as well. Lagi On 12 October 2017 at 18:16, Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > On 2017-10-12 18:38, Peter Reid via use-livecode wrote: > >> I agree that the redundant indexing is an expensive approach, however >> I have found that this abnormal structure of a repeat for each loop >> can be a lot faster than the other loop forms in some circumstances. >> >> I can't find the reference that first highlighted to me the lack of >> guaranteed sequence of chunks, but I've assumed this was a restriction >> for some time. It would be great if this is incorrect as I've got some >> heavyweight looping in several of my apps that would benefit from >> this! >> >> Can anyone from LiveCode give a definitive answer to this please? >> > > Yes - the previous posts are correct. > > If you are using 'repeat for each' to iterate over something which has an > order, then the iteration will follow that order. > > Specifically: > > - string chunks (char, item, line, word, trueWord, sentence, paragraph, > token, codepoint, codeunit) are all ordered > > - byte chunks are ordered > > - key chunks are unordered (they use the hash-order of the array, which > can change arbitrarily even within a session) > > - element chunks are ordered for arrays which are sequences*, unordered > for all other arrays > > * An array is a sequence if: it has only integer keys, and keys range from > 1 up to the number of elements in the array. > e.g. If the keys are 1, 2, 3, 4 - then that is a sequence; 0, 1, 2, 3 is > not; 1, 3, 4 is not. > > Just to reiterate something Richard mentioned - the performance advantage > of a 'repeat for each' loop is completely lost if you use a normal chunk > within the loop to fetch another part (or the same part!) of the container: > > put 0 into tIndex > repeat for each word tWord in tString > add 1 to tIndex > put word somefunc(tIndex) of tString into tSameWord > ... > end repeat > > This is because the chunk evaluation must step through somefunc(tIndex) > words in the string *again*. (It takes N steps to access the N'th > string/byte chunk in a container - repeat for each gets its performance > advantage because it remembers where it got the previous chunk from so it > can fetch the next, so it is just 1 step each iteration). > > The only types of access which are guaranteed not to have this N step > behavior are codeunit, byte and array accesses: > > - a LiveCode string is (internally) an array of codeunits; which means > that it takes only one step to get any codeunit in it. > > - a LiveCode binary string is (internally) an array of bytes; so it only > takes one step to get any byte from it > > - LiveCode arrays are hash-tables, so you can look up any key in one step > > Note: If you are using the 'byte' chunk, make sure that the thing they are > accessing *is* actually a binary string before using it on them. The > conversion from string -> binary string (which exists for compatibility > with pre-7 scripts) will cause a performance bump. > > In terms of the codeunit/codepoint/character chunks - the engine *tries* > to ensure it does as little work as possible when accessing these. > Internally, the engine sets flags on a string so that it can optimize these > lookups. In particular: > > 1) If a string contains only Unicode codepoints from the first 64k > Unicode codes *without* surrogates (they give access to everything above > 64k) then codepoint access on that string will be 1 step. > > 2) If a string contains characters which are only composed of single > codepoints in the first 64k Unicode code *without* surrogates, then char > access on that string will be 1 step. > > In particular, if the string you are processing actually came from a > native string; then (1) and (2) are guaranteed to be the case. However, if > you have arbitrary Unicode strings, then it won't generally be the case: > > a) any characters which have a Unicode code > 64k must be represented by > two codes < 64k (surrogate pairs); this means that the engine has to step > through the string codeunit by codeunit to count the codepoints so it can > find the one you asked for (N step again) > > b) any characters which are composed of multiple codepoints are in the > same boat > > Case (b) can arise quite often even in Roman script languages. For > example, in Unicode you can write e-acute as EITHER e,combining-acute (two > codepoints) OR as e-with-acute (one codepoint). For some languages, most > characters will be multiple codepoints - e.g. the Indic languages. There > are also a lot of esoteric languages (for scholarly / academic purposes) > which are entirely defined by Unicode codepoints > 64k. > > Upshot is that if you are doing char by char string processing of general > Unicode strings, then try and use repeat for each char; and if you *can't* > do that for some reason, then try and work out how you can do the > processing by using the codeunit chunk. > > However, as Knuth is famed for saying - "Premature optimization is the > root of all evil" - don't spend time trying to optimize an algorithm until > you have a working version and can intimately analyse where the slow parts > are. Trying to optimize ahead of time will likely just cause a lot of time > being spent needlessly, and potential hair loss when figuring out why the > (probably much more complicated code) doesn't work quite right, or why it > didn't produce the speed improvement you were expecting! > > 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 dvglasgow at gmail.com Fri Oct 13 06:33:25 2017 From: dvglasgow at gmail.com (David V Glasgow) Date: Fri, 13 Oct 2017 11:33:25 +0100 Subject: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects Message-ID: <66ACF554-F65D-4B07-AD34-56CC056CF7EF@gmail.com> Morning folks, I am on Mac OS 10.12 and using LC 7.1.4 I have been using the IDE menu to copy large numbers of controls from one card to another card (which is a substack of a different main stack). It all looks good, but after doing this for some time, I discovered that all groups are disappearing, along with any associated scripts. The once grouped objects don?t disappear, so at first sight everything looks hunky dory, but actually is badly broken. I have searched in the usual places, but can?t see any references to this. Is this expected behaviour? Is there any way to preserve groups in a ?manual? copy-paste operation? Best Wishes, David Glasgow From iphonelagi at gmail.com Fri Oct 13 06:45:14 2017 From: iphonelagi at gmail.com (Lagi Pittas) Date: Fri, 13 Oct 2017 11:45:14 +0100 Subject: Atkinson dither algorithm & 'for each' loop In-Reply-To: References: Message-ID: HI All Hoping I'm not teaching my granny to suck eggs ... Here is a great article I remembered reading from a few years ago. It's easy to find on google so you probably know of it ... http://www.tannerhelland.com/4660/dithering-eleven-algorithms-source-code/ In any case his projects and how he writes about them are interesting http://www.tannerhelland.com/programming-directory/ Lagi On 12 October 2017 at 12:05, Peter Reid via use-livecode < use-livecode at lists.runrev.com> wrote: > One note of caution regarding the use of the "repeat for each" loop, > whilst you will get a loop iteration for every value in the collection > (fldhexa3 in your example), you are not guaranteed the order in which they > will occur. This doesn't matter in a lot of cases but does matter when the > sequence is significant. In the case of your example I believe sequence is > critical, otherwise the pixels might appear to be scrambled! > > The following adjusted loop guarantees the sequence at the expense of > speed: > > put 1 into i > repeat for each word theWord in fldhexa3 > put word i of fldhexa3 into theWord > put 00 & theword & theword & theword after tVar2 > add 1 to i > end repeat > > The original "improved" loop reduces the run-time to 25%. However, the > "modified improved" loop only manages to reduce the original run-time to > 50%. > > The suggested loop above takes advantage of the "for each" mechanism to > produce a set of iterations very rapidly but gets slowed by the need to > guarantee sequence. I wonder whether the LC engine could impose strict > sequence more effectively with a variant of the "for each" loop such as > > repeat for each sequenced word x in theCollection > ... > end repeat > > My own tests, comparing the speed of the 4 common repeat loops, imply that > the current "for each" form is hugely faster than the others. I tested > "repeat for each...", "repeat while...", "repeat until...", "repeat > with..." and a simulated "repeat for each sequenced..." forms using a > simple loop body that added lines of text one after another, e.g. > > put empty into tData > repeat with i = 1 to tMaxI > put line i of tList & return after tData > end repeat > > I ran this test for 250,000 iterations for each type of loop, which > produced the following timings: > > Starting test for 250,000 iterations... > repeat for each... 0 mins 0 secs 111 millisecs > repeat while... 0 mins 30 secs 569 millisecs > repeat until... 0 mins 30 secs 379 millisecs > repeat with... 0 mins 30 secs 341 millisecs > repeat for each seq... 0 mins 30 secs 524 millisecs > > As you can see, in this test the "repeat for each..." form was approx. 275 > times faster than the other forms. Also the simulated "repeat for each > sequenced..." form was no faster than the other forms. This shows how > variable the speed will be with the simulated "repeat for each > sequenced...", depending on the details of the loop body. > > If there was a "repeat for each sequenced..." form of loop in LC, any > speed-up could be very beneficial even if the amount of speed-up was only > 10 times faster! > > Cheers > > Peter > -- > Peter Reid > Loughborough, UK > > > On 9 Oct 2017, at 10:18am, use-livecode-request at lists.runrev.com wrote: > > > > Message: 12 > > Date: Sat, 7 Oct 2017 15:53:44 +0200 > > From: Malte Pfaff-Brill > > To: use-livecode at lists.runrev.com > > Subject: Re: Atkinson dither algorithm > > Message-ID: <42023B36-0A4E-4251-BB0C-9CD46DE55807 at derbrill.de> > > Content-Type: text/plain; charset=us-ascii > > > > Hi Al, > > > > I already posted on the forums, but for completeness also here: > > > > a lot can be done by replacing repeat with with repeat for each where > you can. > > > > -- repeat with i = 1 to the number of words of fldhexa3 > > -- put 00 & word i of fldhexa3 & word i of fldhexa3 & word i of > fldhexa3 after tVar2 > > -- end repeat > > > > repeat for each word theWord in fldhexa3 > > put 00 & theword & theword & theword after tVar2 > > end repeat > > > > > > A sidenode: > > > > I always use strict compile mode, therefore I added the needed variable > declarations and noticed you use startTime as a variablename, which is a > reserved keyword. That is not a good idea. (I noticed, because I managed > to freeze liveCode where I fixed only half of the use of startTime. Booom.) > > > > Cheers, > > > > malte > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From revolution at derbrill.de Fri Oct 13 06:50:26 2017 From: revolution at derbrill.de (Malte Pfaff-Brill) Date: Fri, 13 Oct 2017 12:50:26 +0200 Subject: libURLLast/xx/headers on mobile? In-Reply-To: References: Message-ID: <22936FB5-1104-433F-8B3E-0B0FDF426C19@derbrill.de> > Unfortunately it seems that libURLLastHTTPHeaders() and libURLLastRHHeaders() > aren't available on mobile. Same goes for the server engine, I could also use it in the server engine, but did not get around to make this a project to let be implemented by the mothership (of course paying for the effort)? That said, I might be wanting to take this up again and cough up a couple of $ in Q1 next year (for the server engine, that is). Cheers, Malte From iowahengst at mac.com Fri Oct 13 08:15:07 2017 From: iowahengst at mac.com (Randy Hengst) Date: Fri, 13 Oct 2017 07:15:07 -0500 Subject: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects In-Reply-To: <66ACF554-F65D-4B07-AD34-56CC056CF7EF@gmail.com> References: <66ACF554-F65D-4B07-AD34-56CC056CF7EF@gmail.com> Message-ID: <352FD097-0F0E-4BFD-8950-B7B83D56D336@mac.com> David, They way I?ve done this is to select the whole group before copying? tuning on ?Select Group? rather than the individual controls. That has worked fine? scripts are kept. randy > On Oct 13, 2017, at 5:33 AM, David V Glasgow via use-livecode wrote: > > Morning folks, > > I am on Mac OS 10.12 and using LC 7.1.4 > > I have been using the IDE menu to copy large numbers of controls from one card to another card (which is a substack of a different main stack). It all looks good, but after doing this for some time, I discovered that all groups are disappearing, along with any associated scripts. The once grouped objects don?t disappear, so at first sight everything looks hunky dory, but actually is badly broken. > > I have searched in the usual places, but can?t see any references to this. > > Is this expected behaviour? Is there any way to preserve groups in a ?manual? copy-paste operation? > > > Best Wishes, > David Glasgow > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dvglasgow at gmail.com Fri Oct 13 08:25:51 2017 From: dvglasgow at gmail.com (David V Glasgow) Date: Fri, 13 Oct 2017 13:25:51 +0100 Subject: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects In-Reply-To: <352FD097-0F0E-4BFD-8950-B7B83D56D336@mac.com> References: <66ACF554-F65D-4B07-AD34-56CC056CF7EF@gmail.com> <352FD097-0F0E-4BFD-8950-B7B83D56D336@mac.com> Message-ID: Thank you so much Randy! It never occurred to me that select group mode would apply in this way, but of course it makes perfect sense! Ah well, back to the grindstone. Thanks again, David G > On 13 Oct 2017, at 1:15 pm, Randy Hengst via use-livecode wrote: > > David, > > They way I?ve done this is to select the whole group before copying? tuning on ?Select Group? rather than the individual controls. That has worked fine? scripts are kept. > > randy > >> On Oct 13, 2017, at 5:33 AM, David V Glasgow via use-livecode wrote: >> >> Morning folks, >> >> I am on Mac OS 10.12 and using LC 7.1.4 >> >> I have been using the IDE menu to copy large numbers of controls from one card to another card (which is a substack of a different main stack). It all looks good, but after doing this for some time, I discovered that all groups are disappearing, along with any associated scripts. The once grouped objects don?t disappear, so at first sight everything looks hunky dory, but actually is badly broken. >> >> I have searched in the usual places, but can?t see any references to this. >> >> Is this expected behaviour? Is there any way to preserve groups in a ?manual? copy-paste operation? >> >> >> Best Wishes, >> David Glasgow >> >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Oct 13 08:43:02 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 13 Oct 2017 13:43:02 +0100 Subject: libURLLast/xx/headers on mobile? In-Reply-To: <22936FB5-1104-433F-8B3E-0B0FDF426C19@derbrill.de> References: <22936FB5-1104-433F-8B3E-0B0FDF426C19@derbrill.de> Message-ID: Have you added the Internet inclusion to the standalone? (From the inclusions list) Panos -- On Oct 13, 2017 11:50, "Malte Pfaff-Brill via use-livecode" < use-livecode at lists.runrev.com> wrote: > > Unfortunately it seems that libURLLastHTTPHeaders() and > libURLLastRHHeaders() > > aren't available on mobile. > Same goes for the server engine, > I could also use it in the server engine, but did not get around to make > this a project to let be implemented by the mothership (of course paying > for the effort)? That said, I might be wanting to take this up again and > cough up a couple of $ in Q1 next year (for the server engine, that is). > > Cheers, > > Malte > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Fri Oct 13 08:47:26 2017 From: dunbarx at aol.com (dunbarx) Date: Fri, 13 Oct 2017 05:47:26 -0700 (MST) Subject: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects In-Reply-To: References: <66ACF554-F65D-4B07-AD34-56CC056CF7EF@gmail.com> <352FD097-0F0E-4BFD-8950-B7B83D56D336@mac.com> Message-ID: <1507898846471-0.post@n4.nabble.com> Just to be clear, turning OFF "Select Grouped" will allow an intact group to be copied. If that feature is on (made bold), even with all the controls within a group copied to another location, those copies will come over as individual controls, and the group will be lost. Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From nabble at mad.pink Fri Oct 13 09:45:44 2017 From: nabble at mad.pink (pink) Date: Fri, 13 Oct 2017 06:45:44 -0700 (MST) Subject: OAuth2 Status? In-Reply-To: References: <1507571918317-0.post@n4.nabble.com> <1507807285866-0.post@n4.nabble.com> <91b65f1c-1f9f-163f-2d40-d8244ba6a705@cogapp.com> Message-ID: <1507902344819-0.post@n4.nabble.com> After testing out a few things with Panos, the conclusion is corrupted prefs file. After deleting my prefs file and starting fresh, everything is working. With a little bit of shame, I'm going to admit that at one point while working on my Toodledo library it stopped working and I started freaking out before I remembered that I had turned off the wifi on my Macbook.... So with the internet out, the OAuth2 panel pops open and stays open, but remains blank. In the IDE, I just hit command-. a couple of times to eventually close it. Question is, if the user has some sort of connectivity issue, how could they close the popup? For that matter, what if they just change their mind? On the login page for Toodledo, they have a cancel button, but pressing it just causes the page to refresh, it doesn't dismiss the popup. How could a user get rid of the panel? How could a mobile user get rid of it? Is there something programmatically we could add to allow them to more easily dismiss the panel? ----- --- Greg (pink) Miller mad, pink and dangerous to code -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From nabble at mad.pink Fri Oct 13 09:48:43 2017 From: nabble at mad.pink (pink) Date: Fri, 13 Oct 2017 06:48:43 -0700 (MST) Subject: OAuth2 (LC 9) on mobile? In-Reply-To: References: <37928db6-4057-9d2d-f31d-ff7466625d2a@cogapp.com> Message-ID: <1507902523818-0.post@n4.nabble.com> Have you tried running the app in the iOS simulator as well? ----- --- Greg (pink) Miller mad, pink and dangerous to code -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From lists at mangomultimedia.com Fri Oct 13 09:58:24 2017 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 13 Oct 2017 08:58:24 -0500 Subject: Query Input Form In-Reply-To: <2ED03E41-012F-4568-BF96-4EA11643F728@iotecdigital.com> References: <2ED03E41-012F-4568-BF96-4EA11643F728@iotecdigital.com> Message-ID: On Thu, Oct 12, 2017 at 10:00 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Has anyone put together a query input form, that can take simple input > from a user, like: > customers.customername is/is not/is greater than/is less than/is like > AND/OR > AND/OR > ... > > and then build an sql query for it? > Bob, If you are using SQL Yoga with this project then Scopes will make the SQL Query part very straightforward. You would create a scope for each condition and then add the scope to the SQL Query object based on the user input in the form. SQL Yoga will generate the WHERE clause using any scopes that have been added to the SQL Query object. http://revolution.screenstepslive.com/s/revolution/m/sqlyoga_sampleapp/l/6637-defining-scopes-to-make-aggregating-search-filters-easier -- Trevor DeVore ScreenSteps www.screensteps.com From MikeKerner at roadrunner.com Fri Oct 13 09:59:47 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 13 Oct 2017 09:59:47 -0400 Subject: libURLLast/xx/headers on mobile? In-Reply-To: References: <22936FB5-1104-433F-8B3E-0B0FDF426C19@derbrill.de> Message-ID: Is there a QR, yet, on a better way to find inclusions that are missing? I'm inclined to check everything for desktop apps and be done with it so I don't run into weird debugging situations, since in standalone, LC scrips just terminate when they run into trouble. On Fri, Oct 13, 2017 at 8:43 AM, panagiotis merakos via use-livecode < use-livecode at lists.runrev.com> wrote: > Have you added the Internet inclusion to the standalone? (From the > inclusions list) > > Panos > -- > > On Oct 13, 2017 11:50, "Malte Pfaff-Brill via use-livecode" < > use-livecode at lists.runrev.com> wrote: > > > > Unfortunately it seems that libURLLastHTTPHeaders() and > > libURLLastRHHeaders() > > > aren't available on mobile. > > Same goes for the server engine, > > I could also use it in the server engine, but did not get around to make > > this a project to let be implemented by the mothership (of course paying > > for the effort)? That said, I might be wanting to take this up again and > > cough up a couple of $ in Q1 next year (for the server engine, that is). > > > > Cheers, > > > > Malte > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode 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 prothero at earthlearningsolutions.org Fri Oct 13 11:38:10 2017 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Fri, 13 Oct 2017 08:38:10 -0700 Subject: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects In-Reply-To: <1507898846471-0.post@n4.nabble.com> References: <66ACF554-F65D-4B07-AD34-56CC056CF7EF@gmail.com> <352FD097-0F0E-4BFD-8950-B7B83D56D336@mac.com> <1507898846471-0.post@n4.nabble.com> Message-ID: <308119AE-CC0F-4B4B-875E-6E767D203566@earthlearningsolutions.org> Isn?t this the opposite of what Randy said? Bill P William Prothero http://es.earthednet.org > On Oct 13, 2017, at 5:47 AM, dunbarx via use-livecode wrote: > > Just to be clear, turning OFF "Select Grouped" will allow an intact group to > be copied. If that feature is on (made bold), even with all the controls > within a group copied to another location, those copies will come over as > individual controls, and the group will be lost. > > 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 dvglasgow at gmail.com Fri Oct 13 12:02:44 2017 From: dvglasgow at gmail.com (David V Glasgow) Date: Fri, 13 Oct 2017 17:02:44 +0100 Subject: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects In-Reply-To: <308119AE-CC0F-4B4B-875E-6E767D203566@earthlearningsolutions.org> References: <66ACF554-F65D-4B07-AD34-56CC056CF7EF@gmail.com> <352FD097-0F0E-4BFD-8950-B7B83D56D336@mac.com> <1507898846471-0.post@n4.nabble.com> <308119AE-CC0F-4B4B-875E-6E767D203566@earthlearningsolutions.org> Message-ID: <79AD5815-2E9C-4729-B9EC-45FC91A9D410@gmail.com> Yes, but I knew what he meant! The label ?Select grouped controls? is a tad ambiguous. When selected means ?Select controls individually (notwithstanding the fact that they are grouped)?. I admit that?s to verbose a label. Conversely, unselected state selects groups rather than grouped controls. Best wishes, David Glasgow > On 13 Oct 2017, at 4:38 pm, prothero--- via use-livecode wrote: > > Isn?t this the opposite of what Randy said? > Bill P > > William Prothero > http://es.earthednet.org > >> On Oct 13, 2017, at 5:47 AM, dunbarx via use-livecode wrote: >> >> Just to be clear, turning OFF "Select Grouped" will allow an intact group to >> be copied. If that feature is on (made bold), even with all the controls >> within a group copied to another location, those copies will come over as >> individual controls, and the group will be lost. >> >> 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 MikeKerner at roadrunner.com Fri Oct 13 12:13:18 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 13 Oct 2017 12:13:18 -0400 Subject: libURLLast/xx/headers on mobile? In-Reply-To: References: <22936FB5-1104-433F-8B3E-0B0FDF426C19@derbrill.de> Message-ID: and...yep, it bit me, this morning, to the tune of about 90 minutes. There are libraries that are similar, but not similar enough, and because you have to manually select the inclusions, there are times... Unfortunately, the x64 vs non-x-64 issue is also a problem, because you can't include the x-64 and the non-x-64 on win standalones for 32-bit machines, because you'll get an error. On Fri, Oct 13, 2017 at 9:59 AM, Mike Kerner wrote: > Is there a QR, yet, on a better way to find inclusions that are missing? > I'm inclined to check everything for desktop apps and be done with it so I > don't run into weird debugging situations, since in standalone, LC scrips > just terminate when they run into trouble. > > On Fri, Oct 13, 2017 at 8:43 AM, panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Have you added the Internet inclusion to the standalone? (From the >> inclusions list) >> >> Panos >> -- >> >> On Oct 13, 2017 11:50, "Malte Pfaff-Brill via use-livecode" < >> use-livecode at lists.runrev.com> wrote: >> >> > > Unfortunately it seems that libURLLastHTTPHeaders() and >> > libURLLastRHHeaders() >> > > aren't available on mobile. >> > Same goes for the server engine, >> > I could also use it in the server engine, but did not get around to make >> > this a project to let be implemented by the mothership (of course paying >> > for the effort)? That said, I might be wanting to take this up again and >> > cough up a couple of $ in Q1 next year (for the server engine, that is). >> > >> > Cheers, >> > >> > Malte >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at lists.runrev.com >> > Please visit this url to subscribe, unsubscribe and manage your >> > subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From dunbarx at aol.com Fri Oct 13 12:20:32 2017 From: dunbarx at aol.com (dunbarx) Date: Fri, 13 Oct 2017 09:20:32 -0700 (MST) Subject: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects In-Reply-To: <79AD5815-2E9C-4729-B9EC-45FC91A9D410@gmail.com> References: <66ACF554-F65D-4B07-AD34-56CC056CF7EF@gmail.com> <352FD097-0F0E-4BFD-8950-B7B83D56D336@mac.com> <1507898846471-0.post@n4.nabble.com> <308119AE-CC0F-4B4B-875E-6E767D203566@earthlearningsolutions.org> <79AD5815-2E9C-4729-B9EC-45FC91A9D410@gmail.com> Message-ID: <1507911632235-0.post@n4.nabble.com> I always have to think twice about of that feature. I really just "see" if it is bold or not, remembering that bold is for the control, and plain is for the group. It would be far better if it toggled between "Select Group" and "Select Control" (maybe "Select Grouped Control" is just too wide?). -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From bobsneidar at iotecdigital.com Fri Oct 13 12:43:22 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 13 Oct 2017 16:43:22 +0000 Subject: Query Input Form In-Reply-To: References: <2ED03E41-012F-4568-BF96-4EA11643F728@iotecdigital.com> Message-ID: <3B42E7CC-EBDE-46DB-B45C-2D3BCA1F3CCE@iotecdigital.com> Thanks Trevor. I was actually looking for a Livecode stack/card that already had the objects and code for adding/deleting conditions for the search. I want to upgrade my Forms Generator reporting to be like Crystal Reports, so that I could have a card where the user enters a customer searching by name or ID, a site by name or ID or address or city, a device or list of devices installed on, before, after or within a date range etc. Right now I have the user load all that data into an interface and manually select the items they want from a series of datagrids, but this isn't very intuitive to my mind. The coding that converts the SQL queries into sqlYoga I can grok well enough. I can build the interface myself, but I'm lazy, and someone else would probably do a better and cleaner job than me. And I wouldn't mind paying a fee for it either. Bob S > On Oct 13, 2017, at 06:58 , Trevor DeVore via use-livecode wrote: > > On Thu, Oct 12, 2017 at 10:00 AM, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Has anyone put together a query input form, that can take simple input >> from a user, like: >> customers.customername is/is not/is greater than/is less than/is like >> AND/OR >> AND/OR >> ... >> >> and then build an sql query for it? >> > > Bob, > > If you are using SQL Yoga with this project then Scopes will make the SQL > Query part very straightforward. You would create a scope for each > condition and then add the scope to the SQL Query object based on the user > input in the form. SQL Yoga will generate the WHERE clause using any scopes > that have been added to the SQL Query object. > > http://revolution.screenstepslive.com/s/revolution/m/sqlyoga_sampleapp/l/6637-defining-scopes-to-make-aggregating-search-filters-easier > > -- > 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 bobsneidar at iotecdigital.com Fri Oct 13 12:47:10 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 13 Oct 2017 16:47:10 +0000 Subject: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects In-Reply-To: <79AD5815-2E9C-4729-B9EC-45FC91A9D410@gmail.com> References: <66ACF554-F65D-4B07-AD34-56CC056CF7EF@gmail.com> <352FD097-0F0E-4BFD-8950-B7B83D56D336@mac.com> <1507898846471-0.post@n4.nabble.com> <308119AE-CC0F-4B4B-875E-6E767D203566@earthlearningsolutions.org> <79AD5815-2E9C-4729-B9EC-45FC91A9D410@gmail.com> Message-ID: <1C77D967-39FA-4BE3-9689-0351578EA8EB@iotecdigital.com> That is the wonderfult thing (and also precarious thing) about humans. We have the uncanny ability to interpret probable intent of our communications. As an aside, military organizations go to great lengths to train this out of their soldiers because of the havoc it can cause. :-) Bob S > On Oct 13, 2017, at 09:02 , David V Glasgow via use-livecode wrote: > > Yes, but I knew what he meant! From jacque at hyperactivesw.com Fri Oct 13 13:11:43 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 13 Oct 2017 12:11:43 -0500 Subject: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects In-Reply-To: <79AD5815-2E9C-4729-B9EC-45FC91A9D410@gmail.com> References: <66ACF554-F65D-4B07-AD34-56CC056CF7EF@gmail.com> <352FD097-0F0E-4BFD-8950-B7B83D56D336@mac.com> <1507898846471-0.post@n4.nabble.com> <308119AE-CC0F-4B4B-875E-6E767D203566@earthlearningsolutions.org> <79AD5815-2E9C-4729-B9EC-45FC91A9D410@gmail.com> Message-ID: <15f16b86098.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> The name of the actual LC property is selectGroupedControls, so the label reflects that. Translated, it means "select controls in groups". Maybe that will help trigger recall. On October 13, 2017 11:05:01 AM David V Glasgow via use-livecode wrote: > Yes, but I knew what he meant! > > The label ?Select grouped controls? is a tad ambiguous. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mark at livecode.com Fri Oct 13 13:23:27 2017 From: mark at livecode.com (Mark Waddingham) Date: Fri, 13 Oct 2017 19:23:27 +0200 Subject: libURLLast/xx/headers on =?UTF-8?Q?mobile=3F?= In-Reply-To: <610edf76-5684-19d0-638a-ba9ba4dfbd37@cogapp.com> References: <610edf76-5684-19d0-638a-ba9ba4dfbd37@cogapp.com> Message-ID: <4d6350f9d88a8c0e03555dee3b9a297b@livecode.com> On 2017-10-13 12:15, Ben Rubinstein via use-livecode wrote: > I'm trying to debug a case where making some calls to an external API > works fine on desktop, but fails on mobile (both iOS and Android) with > "400 bad request". > > Unfortunately it seems that libURLLastHTTPHeaders() and > libURLLastRHHeaders() aren't available on mobile. Is there some other > way to get the information on mobile (especially the latter)? IIRC, if you are using Indy or Business, then tsNet will provide those functions on mobile (it provides a libURL like interface on all platforms). I believe you just need to make sure that you are including the Internet library and tsNet inclusion in the s/b. Warmest Regards, Mark. P.S. I'm pretty sure libURL also works on mobile in community - if you select the Internet inclusion, although in that case it just plain libURL, no tsNet as that requires Indy or Business. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From bobsneidar at iotecdigital.com Fri Oct 13 13:45:14 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 13 Oct 2017 17:45:14 +0000 Subject: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects In-Reply-To: <15f16b86098.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <66ACF554-F65D-4B07-AD34-56CC056CF7EF@gmail.com> <352FD097-0F0E-4BFD-8950-B7B83D56D336@mac.com> <1507898846471-0.post@n4.nabble.com> <308119AE-CC0F-4B4B-875E-6E767D203566@earthlearningsolutions.org> <79AD5815-2E9C-4729-B9EC-45FC91A9D410@gmail.com> <15f16b86098.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: That confused me a lot too when I was new until I got used to it. Maybe it should be relabeled "Select Groups". Bob S > On Oct 13, 2017, at 10:11 , J. Landman Gay via use-livecode wrote: > > The name of the actual LC property is selectGroupedControls, so the label reflects that. Translated, it means "select controls in groups". Maybe that will help trigger recall. From tom at makeshyft.com Fri Oct 13 14:28:21 2017 From: tom at makeshyft.com (Tom Glod) Date: Fri, 13 Oct 2017 14:28:21 -0400 Subject: DG2 Question Message-ID: Dear people in the know... i have some very quick questions about dg2 Is dg2 a widget control? will there be a way to convert dg1 grids to dg2 grids? or is it more of a facelift to the original dg library coupled with the graphics improvements? Thanks, Tom From mark at livecode.com Fri Oct 13 14:39:45 2017 From: mark at livecode.com (Mark Waddingham) Date: Fri, 13 Oct 2017 19:39:45 +0100 Subject: DG2 Question In-Reply-To: References: Message-ID: The latter - we are adding functionality to the existing datagrid, and also improving accelerated rendering mode so that we can ensure we can make the datagrid scroll smoothly on mobile devices (although those improvements are generally applicable and not confined to the dg). Warmest Regards, Mark. Sent from my iPhone > On 13 Oct 2017, at 19:28, Tom Glod via use-livecode wrote: > > Dear people in the know... i have some very quick questions about dg2 > > Is dg2 a widget control? > will there be a way to convert dg1 grids to dg2 grids? > or is it more of a facelift to the original dg library coupled with the > graphics improvements? > > Thanks, > > Tom > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 13 15:40:32 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 13 Oct 2017 14:40:32 -0500 Subject: [ANN] Release 8.2.0 DP-2 In-Reply-To: <440d7496-4ab2-ce69-3861-f0fc99b7647b@fourthworld.com> References: <8d51a2f6ab4d095dba1fdc5f2b208d55@livecode.com> <440d7496-4ab2-ce69-3861-f0fc99b7647b@fourthworld.com> Message-ID: <220b338f-364b-ce2e-610f-7b8cb9bc46af@hyperactivesw.com> On 10/12/17 3:51 PM, Richard Gaskin via use-livecode wrote: > The dashed border around selected controls certainly makes their > selected state clear, but it also obscures the object's own border, > sometimes making it difficult to visualize placement or changes to > border treatments until I deselect it. > > I kinda liked how it used to be, where the only indicators added to a > selected object were the interactive handles, leaving the rest of the > object visibly the same so we could evaluate changes made to it as we > were making them. Seconded. It isn't easy to change the visual settings of controls while selected any more. I think I understand why they did it though. It maches the dotted selection in the project browser. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From tom at makeshyft.com Fri Oct 13 16:10:13 2017 From: tom at makeshyft.com (Tom Glod) Date: Fri, 13 Oct 2017 16:10:13 -0400 Subject: DG2 Question In-Reply-To: References: Message-ID: yes..thank you for confirming that for me mark. ...I use the datagrid extensivel.. the table layout ...... wondering if i should expect visible performance improvement in the rendering of the rows? On Fri, Oct 13, 2017 at 2:39 PM, Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > The latter - we are adding functionality to the existing datagrid, and > also improving accelerated rendering mode so that we can ensure we can make > the datagrid scroll smoothly on mobile devices (although those improvements > are generally applicable and not confined to the dg). > > Warmest Regards, > > Mark. > > Sent from my iPhone > > > On 13 Oct 2017, at 19:28, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Dear people in the know... i have some very quick questions about dg2 > > > > Is dg2 a widget control? > > will there be a way to convert dg1 grids to dg2 grids? > > or is it more of a facelift to the original dg library coupled with the > > graphics improvements? > > > > Thanks, > > > > Tom > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://post.spmailt.com/f/a/thOpgAM_phj-XtZoigsMuQ~~/AAGp3AA~/RgRbwlFPP0EIACzv81FfoAlXA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18xYAw1Mi4zOS4yNi4xNDRCCgAAzx3hWcr2TmhSHXVzZS1saXZlY29kZUBsaXN0cy5ydW5yZXYuY29tCVEEAAAAAEQ1aHR0cDovL2xpc3RzLnJ1bnJldi5jb20vbWFpbG1hbi9saXN0aW5mby91c2UtbGl2ZWNvZGVHAnt9 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://post.spmailt.com/f/a/thOpgAM_phj-XtZoigsMuQ~~/AAGp3AA~/RgRbwlFPP0EIACzv81FfoAlXA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18xYAw1Mi4zOS4yNi4xNDRCCgAAzx3hWcr2TmhSHXVzZS1saXZlY29kZUBsaXN0cy5ydW5yZXYuY29tCVEEAAAAAEQ1aHR0cDovL2xpc3RzLnJ1bnJldi5jb20vbWFpbG1hbi9saXN0aW5mby91c2UtbGl2ZWNvZGVHAnt9 > From MikeKerner at roadrunner.com Fri Oct 13 17:02:16 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 13 Oct 2017 17:02:16 -0400 Subject: DG2 Question In-Reply-To: References: Message-ID: Hopefully the scrolling especially will get some help. On tablets we have large tables that go both horizontally and vertically, and the response can be clunky, especially when compared to mobTableField. On Fri, Oct 13, 2017 at 4:10 PM, Tom Glod via use-livecode < use-livecode at lists.runrev.com> wrote: > yes..thank you for confirming that for me mark. ...I use the datagrid > extensivel.. the table layout ...... wondering if i should expect visible > performance improvement in the rendering of the rows? > > On Fri, Oct 13, 2017 at 2:39 PM, Mark Waddingham via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > The latter - we are adding functionality to the existing datagrid, and > > also improving accelerated rendering mode so that we can ensure we can > make > > the datagrid scroll smoothly on mobile devices (although those > improvements > > are generally applicable and not confined to the dg). > > > > Warmest Regards, > > > > Mark. > > > > Sent from my iPhone > > > > > On 13 Oct 2017, at 19:28, Tom Glod via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > > Dear people in the know... i have some very quick questions about dg2 > > > > > > Is dg2 a widget control? > > > will there be a way to convert dg1 grids to dg2 grids? > > > or is it more of a facelift to the original dg library coupled with the > > > graphics improvements? > > > > > > Thanks, > > > > > > Tom > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > > http://post.spmailt.com/f/a/thOpgAM_phj-XtZoigsMuQ~~/AAGp3AA~/ > RgRbwlFPP0EIACzv81FfoAlXA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18x > YAw1Mi4zOS4yNi4xNDRCCgAAzx3hWcr2TmhSHXVzZS1saXZlY29kZUBsaXN0 > cy5ydW5yZXYuY29tCVEEAAAAAEQ1aHR0cDovL2xpc3RzLnJ1bnJldi5jb20v > bWFpbG1hbi9saXN0aW5mby91c2UtbGl2ZWNvZGVHAnt9 > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://post.spmailt.com/f/a/thOpgAM_phj-XtZoigsMuQ~~/AAGp3AA~/ > RgRbwlFPP0EIACzv81FfoAlXA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18x > YAw1Mi4zOS4yNi4xNDRCCgAAzx3hWcr2TmhSHXVzZS1saXZlY29kZUBsaXN0 > cy5ydW5yZXYuY29tCVEEAAAAAEQ1aHR0cDovL2xpc3RzLnJ1bnJldi5jb20v > bWFpbG1hbi9saXN0aW5mby91c2UtbGl2ZWNvZGVHAnt9 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Fri Oct 13 17:41:35 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 13 Oct 2017 14:41:35 -0700 Subject: [ANN] Release 8.2.0 DP-2 In-Reply-To: <220b338f-364b-ce2e-610f-7b8cb9bc46af@hyperactivesw.com> References: <8d51a2f6ab4d095dba1fdc5f2b208d55@livecode.com> <440d7496-4ab2-ce69-3861-f0fc99b7647b@fourthworld.com> <220b338f-364b-ce2e-610f-7b8cb9bc46af@hyperactivesw.com> Message-ID: <23854a23-fdbc-f778-4c48-074d63e61bf3@sonic.net> On 10/13/2017 12:40 PM, J. Landman Gay via use-livecode wrote: > Seconded. It isn't easy to change the visual settings of controls while > selected any more. > > I think I understand why they did it though. It maches the dotted > selection in the project browser. > Yeah. One of the reasons I find the PB unusable. -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Fri Oct 13 17:43:45 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 13 Oct 2017 14:43:45 -0700 Subject: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects In-Reply-To: References: <66ACF554-F65D-4B07-AD34-56CC056CF7EF@gmail.com> <352FD097-0F0E-4BFD-8950-B7B83D56D336@mac.com> <1507898846471-0.post@n4.nabble.com> <308119AE-CC0F-4B4B-875E-6E767D203566@earthlearningsolutions.org> <79AD5815-2E9C-4729-B9EC-45FC91A9D410@gmail.com> <15f16b86098.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <2c532898-00cf-e7b4-c13e-70bc538991ec@sonic.net> On 10/13/2017 10:45 AM, Bob Sneidar via use-livecode wrote: > That confused me a lot too when I was new until I got used to it. Maybe it should be relabeled "Select Groups". That would make a bit more sense to me. And then the label could change to "Select Controls". That way at least there'd only be one paradigm to memorize instead of trying to remember whether bold meant On or Off. -- Mark Wieder ahsoftware at gmail.com From roger.e.eller at sealedair.com Sat Oct 14 12:30:06 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Sat, 14 Oct 2017 12:30:06 -0400 Subject: is a date Message-ID: put "11/20/2017" is a date returns true ---- put "10" is a date returns true ---- put "raccoon" is a date returns false ---- WHY is "10" seen as a date? ~Roger From klaus at major-k.de Sat Oct 14 12:44:30 2017 From: klaus at major-k.de (Klaus major-k) Date: Sat, 14 Oct 2017 18:44:30 +0200 Subject: is a date In-Reply-To: References: Message-ID: Hi Roger, > Am 14.10.2017 um 18:30 schrieb Roger Eller via use-livecode : > > put "11/20/2017" is a date > returns true > ---- > put "10" is a date > returns true > ---- > put "raccoon" is a date > returns false > ---- > > WHY is "10" seen as a date? looks like the engine is seeing seconds also as a possible valid date. convert 0 to long date and long time;put it -> Thursday, January 1, 1970 1:00:00 AM 1:00:00 = DST here in germany! convert 10 to long date and long time;put it -> Thursday, January 1, 1970 1:00:10 AM etc... And of course: put (the seconds) is a date -> TRUE > ~Roger Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From roger.e.eller at sealedair.com Sat Oct 14 13:27:12 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Sat, 14 Oct 2017 13:27:12 -0400 Subject: is a date In-Reply-To: References: Message-ID: That's what I suspected. So to build a slightly better trap, I am doing this: if tDate is a date and length(tDate) > 5 and tDate contains "/" then put "true" else put "false" end if I am sure there is probably a standard way to catch all possible date formats (excluding "the seconds"), but this works for most. ~Roger On Sat, Oct 14, 2017 at 12:44 PM, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Roger, > > > Am 14.10.2017 um 18:30 schrieb Roger Eller via use-livecode < > use-livecode at lists.runrev.com>: > > > > put "11/20/2017" is a date > > returns true > > ---- > > put "10" is a date > > returns true > > ---- > > put "raccoon" is a date > > returns false > > ---- > > > > WHY is "10" seen as a date? > > looks like the engine is seeing seconds also as a possible valid date. > > convert 0 to long date and long time;put it -> Thursday, January 1, 1970 > 1:00:00 AM > 1:00:00 = DST here in germany! > > convert 10 to long date and long time;put it -> Thursday, January 1, 1970 > 1:00:10 AM > etc... > > And of course: > put (the seconds) is a date -> TRUE > > > ~Roger > > 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 richmondmathewson at gmail.com Sat Oct 14 14:14:04 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 14 Oct 2017 21:14:04 +0300 Subject: Rotating widgets Message-ID: <3aaacba9-f38d-3394-a6d6-8635c013157d@gmail.com> I am getting a bit fudgey with clock hands. I have used my SVG importer stack to import a minute and an hour hand as SVG widgets, as well as a clock face. The "only snag" is that when I do this sort of thing: set the angle of widget "hourHand" to 90 it rotates the widget round its centre rather than round the bit that a clock hand would naturally rotate around. So . . . is there a way to do something like this: [pseudo-code] set the angle of widget "hourHand" to 90 at point 20,200 ? where "point 20,200" refers to a position on the widget around which rotation can take place. Richmond. From tore.nilsen at me.com Sat Oct 14 14:30:20 2017 From: tore.nilsen at me.com (Tore Nilsen) Date: Sat, 14 Oct 2017 20:30:20 +0200 Subject: Rotating widgets In-Reply-To: <3aaacba9-f38d-3394-a6d6-8635c013157d@gmail.com> References: <3aaacba9-f38d-3394-a6d6-8635c013157d@gmail.com> Message-ID: <11D7C6F2-7C07-4C9C-BDCC-909F5EAE911E@me.com> You would probably be better off using a transparent png-image that is square for the clock hand, and where the rotation point of the clock hand was at the center of the square. You could then put the clock hand on top of the clock face and rotate the hand at will. My students hand the same kind of problem as part of their national exam this spring. You could also do some vector calculations to find the new center for your widget, but I must admit that I am not all that certain how you would go about it then. Mathematics is not my strongest subject, and I must admit that at 56 I have forgotten most of the maths I learnt in my upper secondary years. Regards Tore > 14. okt. 2017 kl. 20:14 skrev Richmond Mathewson via use-livecode : > > I am getting a bit fudgey with clock hands. > > I have used my SVG importer stack to import a minute and an hour hand as SVG widgets, as well as > a clock face. > > The "only snag" is that when I do this sort of thing: > > set the angle of widget "hourHand" to 90 > > it rotates the widget round its centre rather than round the bit that a clock hand would naturally rotate around. > > So . . . > > is there a way to do something like this: > > [pseudo-code] > > set the angle of widget "hourHand" to 90 at point 20,200 > > ? > > where "point 20,200" refers to a position on the widget around which rotation can take place. > > 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 ahsoftware at sonic.net Sat Oct 14 14:44:01 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 14 Oct 2017 11:44:01 -0700 Subject: Rotating widgets In-Reply-To: <11D7C6F2-7C07-4C9C-BDCC-909F5EAE911E@me.com> References: <3aaacba9-f38d-3394-a6d6-8635c013157d@gmail.com> <11D7C6F2-7C07-4C9C-BDCC-909F5EAE911E@me.com> Message-ID: <180bf28d-7d97-9e76-8d9a-b6bfc22c5314@sonic.net> On 10/14/2017 11:30 AM, Tore Nilsen via use-livecode wrote: > You would probably be better off using a transparent png-image that is square for the clock hand, and where the rotation point of the clock hand was at the center of the square. You could then put the clock hand on top of the clock face and rotate the hand at will. My students hand the same kind of problem as part of their national exam this spring. You could also do some vector calculations to find the new center for your widget, but I must admit that I am not all that certain how you would go about it then. Mathematics is not my strongest subject, and I must admit that at 56 I have forgotten most of the maths I learnt in my upper secondary years. This is where I miss having Scott Rossi around. My simplistic take on this would be similar: Make your clock hand twice as long, with half of it transparent. -- Mark Wieder ahsoftware at gmail.com From richmondmathewson at gmail.com Sat Oct 14 15:06:28 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 14 Oct 2017 22:06:28 +0300 Subject: Rotating widgets In-Reply-To: <180bf28d-7d97-9e76-8d9a-b6bfc22c5314@sonic.net> References: <3aaacba9-f38d-3394-a6d6-8635c013157d@gmail.com> <11D7C6F2-7C07-4C9C-BDCC-909F5EAE911E@me.com> <180bf28d-7d97-9e76-8d9a-b6bfc22c5314@sonic.net> Message-ID: But one cannot make an SVG image "twice as long, with half of it transparent": belive me I have tried that already. Richmond. On 10/14/17 9:44 pm, Mark Wieder via use-livecode wrote: > On 10/14/2017 11:30 AM, Tore Nilsen via use-livecode wrote: >> You would probably be better off using a transparent png-image that >> is square for the clock hand, and where the rotation point of the >> clock hand was at the center of the square. You could then put the >> clock hand on top of the clock face and rotate the hand at will. My >> students hand the same kind of problem as part of their national exam >> this spring. You could also do some vector calculations to find the >> new center for your widget, but I must admit that I am not all that >> certain how you would go about it then. Mathematics is not my >> strongest subject, and I must admit that at 56 I have forgotten most >> of the maths I learnt in my upper secondary years. > > This is where I miss having Scott Rossi around. > My simplistic take on this would be similar: > Make your clock hand twice as long, with half of it transparent. > From yvescoppe at mac.com Sat Oct 14 15:14:55 2017 From: yvescoppe at mac.com (Yves COPPE) Date: Sat, 14 Oct 2017 21:14:55 +0200 Subject: is a date In-Reply-To: References: Message-ID: Hi, Try this function CheckDate pDateToCheck return matchText(pDateToCheck,"([1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/([0-9][0-9][0-9][0-9])") end CheckDate answer CheckDate(tDate) > Le 14 oct. 2017 ? 19:27, Roger Eller via use-livecode a ?crit : > > That's what I suspected. So to build a slightly better trap, I am doing > this: > > if tDate is a date and length(tDate) > 5 and tDate contains "/" then > put "true" > else > put "false" > end if > > I am sure there is probably a standard way to catch all possible date > formats (excluding "the seconds"), but this works for most. > > ~Roger > > > On Sat, Oct 14, 2017 at 12:44 PM, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Roger, >> >>> Am 14.10.2017 um 18:30 schrieb Roger Eller via use-livecode < >> use-livecode at lists.runrev.com>: >>> >>> put "11/20/2017" is a date >>> returns true >>> ---- >>> put "10" is a date >>> returns true >>> ---- >>> put "raccoon" is a date >>> returns false >>> ---- >>> >>> WHY is "10" seen as a date? >> >> looks like the engine is seeing seconds also as a possible valid date. >> >> convert 0 to long date and long time;put it -> Thursday, January 1, 1970 >> 1:00:00 AM >> 1:00:00 = DST here in germany! >> >> convert 10 to long date and long time;put it -> Thursday, January 1, 1970 >> 1:00:10 AM >> etc... >> >> And of course: >> put (the seconds) is a date -> TRUE >> >>> ~Roger >> >> 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 >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 14 15:17:16 2017 From: tore.nilsen at me.com (Tore Nilsen) Date: Sat, 14 Oct 2017 21:17:16 +0200 Subject: Rotating widgets In-Reply-To: References: <3aaacba9-f38d-3394-a6d6-8635c013157d@gmail.com> <11D7C6F2-7C07-4C9C-BDCC-909F5EAE911E@me.com> <180bf28d-7d97-9e76-8d9a-b6bfc22c5314@sonic.net> Message-ID: <26BD74C2-D2BD-41AB-9DE4-6E814C1BC9E8@me.com> That is why I suggest using a png-file, where all but the hand is transparent. Setting the resizeQuality to best should give a good result without reducing the speed of any animation you do. Tore > 14. okt. 2017 kl. 21:06 skrev Richmond Mathewson via use-livecode : > > But one cannot make an SVG image "twice as long, with half of it transparent": belive me > I have tried that already. From jacque at hyperactivesw.com Sat Oct 14 15:43:38 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 14 Oct 2017 14:43:38 -0500 Subject: Rotating widgets In-Reply-To: <26BD74C2-D2BD-41AB-9DE4-6E814C1BC9E8@me.com> References: <3aaacba9-f38d-3394-a6d6-8635c013157d@gmail.com> <11D7C6F2-7C07-4C9C-BDCC-909F5EAE911E@me.com> <180bf28d-7d97-9e76-8d9a-b6bfc22c5314@sonic.net> <26BD74C2-D2BD-41AB-9DE4-6E814C1BC9E8@me.com> Message-ID: <3b404e12-d83a-b7e2-f3e0-acead650ad7a@hyperactivesw.com> Another disadvantage of using a rotated SVG is that is will resize to fill its rectangle when rotating. The clock hand will change its size on each rotation. On 10/14/17 2:17 PM, Tore Nilsen via use-livecode wrote: > That is why I suggest using a png-file, where all but the hand is transparent. Setting the resizeQuality to best should give a good result without reducing the speed of any animation you do. > > Tore > >> 14. okt. 2017 kl. 21:06 skrev Richmond Mathewson via use-livecode : >> >> But one cannot make an SVG image "twice as long, with half of it transparent": belive me >> I have tried that already. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Oct 14 15:52:19 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 14 Oct 2017 14:52:19 -0500 Subject: is a date In-Reply-To: References: Message-ID: On 10/14/17 2:14 PM, Yves COPPE via use-livecode wrote: > Try this > > function CheckDate pDateToCheck > > return matchText(pDateToCheck,"([1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/([0-9][0-9][0-9][0-9])") > > end CheckDate Promising, but fails with dates like "1/1/19". -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mikedoub at gmail.com Sat Oct 14 16:37:45 2017 From: mikedoub at gmail.com (Michael Doub) Date: Sat, 14 Oct 2017 16:37:45 -0400 Subject: is a date In-Reply-To: References: Message-ID: What about this from the Master Library from Ken Ray? function isDate pWhat ?? /* isDate Date ?? Syntax: ?? isDate (pWhat) ?? Examples: ?? isDate("10/10/2001") ?? Description: ?? Determines if the container passed to it in contains a valid date. ?? Returns true or false. ?? Source: ?? Ken Ray, sdtlib 1.0b ?? isDate */ ?? convert pWhat to short date ?? return not(the result is "invalid date") end isDate On 10/14/17 3:52 PM, J. Landman Gay via use-livecode wrote: > On 10/14/17 2:14 PM, Yves COPPE via use-livecode wrote: >> Try this >> >> function CheckDate pDateToCheck >> >> return >> matchText(pDateToCheck,"([1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/([0-9][0-9][0-9][0-9])") >> >> end CheckDate > > Promising, but fails with dates like "1/1/19". > From capellan2000 at gmail.com Sat Oct 14 17:32:42 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sat, 14 Oct 2017 17:32:42 -0400 Subject: Rotating widgets Message-ID: Hi All, Effectively, SVG Icon widget grows and shrink when rotating, but Peter Thirkell SVG Multicolor widget does not. This Multicolor svg widget only clips it's content and stays the same size. Richmond, Have you installed SVG Multicolor widget? Download and install from this forum thread: http://forums.livecode.com/viewtopic.php?f=93&t=27811 Jacque wrote: > Another disadvantage of using a rotated SVG is that > is will resize to fill its rectangle when rotating. > The clock hand will change its size on each rotation. From MikeKerner at roadrunner.com Sat Oct 14 19:09:20 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 14 Oct 2017 19:09:20 -0400 Subject: [ANN] Release 8.2.0 DP-2 In-Reply-To: <23854a23-fdbc-f778-4c48-074d63e61bf3@sonic.net> References: <8d51a2f6ab4d095dba1fdc5f2b208d55@livecode.com> <440d7496-4ab2-ce69-3861-f0fc99b7647b@fourthworld.com> <220b338f-364b-ce2e-610f-7b8cb9bc46af@hyperactivesw.com> <23854a23-fdbc-f778-4c48-074d63e61bf3@sonic.net> Message-ID: That, and the standalone settings are on my list of things I want to take a shot at when I get time. The PB is buggy, and I miss thumbnails. On Fri, Oct 13, 2017 at 5:41 PM, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 10/13/2017 12:40 PM, J. Landman Gay via use-livecode wrote: > > Seconded. It isn't easy to change the visual settings of controls while >> selected any more. >> >> I think I understand why they did it though. It maches the dotted >> selection in the project browser. >> >> > Yeah. One of the reasons I find the PB unusable. > > -- > Mark Wieder > ahsoftware at gmail.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From capellan2000 at gmail.com Sun Oct 15 00:57:22 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sun, 15 Oct 2017 00:57:22 -0400 Subject: Atkinson dither algorithm Message-ID: Hi All, This forum message contains the final version of this stack. It includes a Color version of this algorithm. https://forums.livecode.com/viewtopic.php?f=10&p=159173#p159173 Thanks again to Malte Brill, Richard Gaskin, Hermann Hoch, Mark Waddingham, Peter Reid, Ben Rubinstein, Bob Sneidar and Lagi Pittas for posting scripts and writing ideas to improve this handler. Al From richmondmathewson at gmail.com Sun Oct 15 05:56:55 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 15 Oct 2017 12:56:55 +0300 Subject: Send "rawKeyUp" Message-ID: <2bdd77e2-fe17-5ed8-1ee3-cb07af83a38b@gmail.com> I'm suffering from "sticky finger syndrome" and cannot get my finger off a key quickly enough to stop it firing more than once . . . SO . . . Wondered about this sort of thing [pseudocode]: on rawKeyDown RAWK do something send "rawKeyUp" to where? end rawKeyDown answers on a postcard, employees of the "Richmond Fan Club" are not eligible for prizes, giveaways or gratuitous insults. Richmond. From yvescoppe at mac.com Sun Oct 15 06:10:54 2017 From: yvescoppe at mac.com (Yves COPPE) Date: Sun, 15 Oct 2017 12:10:54 +0200 Subject: is a date In-Reply-To: References: Message-ID: <334A12FA-691D-4997-B74E-A46E2CB5150B@mac.com> Hi, I hope this works for any date format on mouseUp ask "Give a date" if it is empty then exit to top answer IsDate(it) end mouseUp function IsDate textToSearch local theDay, TheMonth, TheYear put empty into tresult if matchtext(textToSearch,"(\d{1,2})/(\d{1,2})/(\d{2,4})",theDay,TheMonth,TheYear) is true then put textToSearch into tresult else put "Invalid Date" into tresult end if return tresult end IsDate > Le 14 oct. 2017 ? 21:52, J. Landman Gay via use-livecode a ?crit : > > On 10/14/17 2:14 PM, Yves COPPE via use-livecode wrote: >> Try this >> function CheckDate pDateToCheck >> return matchText(pDateToCheck,"([1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/([0-9][0-9][0-9][0-9])") >> end CheckDate > > Promising, but fails with dates like "1/1/19". > > -- > 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 Sun Oct 15 06:21:59 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 15 Oct 2017 13:21:59 +0300 Subject: Send "rawKeyUp" In-Reply-To: <2bdd77e2-fe17-5ed8-1ee3-cb07af83a38b@gmail.com> References: <2bdd77e2-fe17-5ed8-1ee3-cb07af83a38b@gmail.com> Message-ID: Nothing quite beats answering one's own e-mails, except, possibly, banging one's head against the wall (Don't believe me? Try it some time!) this in a cardScript: on rawKeyDown RAWK if the XXXX of this card = "in" then do something end if set the XXXX of this card to "out" end rawKeyDown on rawKeyUp RUP set the XXXX of this card to "in" end rawKeyUp I hope this is of some use to more people than just myself. Richmond. On 10/15/17 12:56 pm, Richmond Mathewson wrote: > I'm suffering from "sticky finger syndrome" and cannot get my finger > off a key quickly enough to > stop it firing more than once . . . > > SO . . . > > Wondered about this sort of thing [pseudocode]: > > on rawKeyDown RAWK > do something > send "rawKeyUp" to where? > end rawKeyDown > > answers on a postcard, employees of the "Richmond Fan Club" are > not eligible for prizes, giveaways or gratuitous insults. > > Richmond. From jacque at hyperactivesw.com Sun Oct 15 11:16:29 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 15 Oct 2017 10:16:29 -0500 Subject: Send "rawKeyUp" In-Reply-To: References: <2bdd77e2-fe17-5ed8-1ee3-cb07af83a38b@gmail.com> Message-ID: <15f209b98c8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> And here I was, looking for a post card. What I was planning to write on it was: it's easiest to set the key repeat rate in the OS. Macs allow that, not sure about other systems. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 15, 2017 5:24:11 AM Richmond Mathewson via use-livecode wrote: > Nothing quite beats answering one's own e-mails, > > except, possibly, banging one's head against the wall (Don't believe me? > Try it some time!) > > this in a cardScript: > > on rawKeyDown RAWK > if the XXXX of this card = "in" then > do something > end if > set the XXXX of this card to "out" > end rawKeyDown > > on rawKeyUp RUP > set the XXXX of this card to "in" > end rawKeyUp > > I hope this is of some use to more people than just myself. > > Richmond. > > On 10/15/17 12:56 pm, Richmond Mathewson wrote: >> I'm suffering from "sticky finger syndrome" and cannot get my finger >> off a key quickly enough to >> stop it firing more than once . . . >> >> SO . . . >> >> Wondered about this sort of thing [pseudocode]: >> >> on rawKeyDown RAWK >> do something >> send "rawKeyUp" to where? >> end rawKeyDown >> >> answers on a postcard, employees of the "Richmond Fan Club" are >> not eligible for prizes, giveaways or gratuitous insults. >> >> 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 Oct 15 11:31:11 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 15 Oct 2017 18:31:11 +0300 Subject: Send "rawKeyUp" In-Reply-To: <15f209b98c8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <2bdd77e2-fe17-5ed8-1ee3-cb07af83a38b@gmail.com> <15f209b98c8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: And how, pray tell, would one have "stuff" in a LiveCode standalone to tell the OSes to which LiveCode deploys to alter their key repeat rates? Richmond. On 10/15/17 6:16 pm, J. Landman Gay via use-livecode wrote: > And here I was, looking for a post card. What I was planning to write > on it was: it's easiest to set the key repeat rate in the OS. Macs > allow that, not sure about other systems. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > On October 15, 2017 5:24:11 AM Richmond Mathewson via use-livecode > wrote: > >> Nothing quite beats answering one's own e-mails, >> >> except, possibly, banging one's head against the wall (Don't believe me? >> Try it some time!) >> >> this in a cardScript: >> >> on rawKeyDown RAWK >> if the XXXX of this card = "in" then >> do something >> end if >> set the XXXX of this card to "out" >> end rawKeyDown >> >> on rawKeyUp RUP >> set the XXXX of this card to "in" >> end rawKeyUp >> >> I hope this is of some use to more people than just myself. >> >> Richmond. >> >> On 10/15/17 12:56 pm, Richmond Mathewson wrote: >>> I'm suffering from "sticky finger syndrome" and cannot get my finger >>> off a key quickly enough to >>> stop it firing more than once . . . >>> >>> SO . . . >>> >>> Wondered about this sort of thing [pseudocode]: >>> >>> on rawKeyDown RAWK >>> do something >>> send "rawKeyUp" to where? >>> end rawKeyDown >>> >>> answers on a postcard, employees of the "Richmond Fan Club" are >>> not eligible for prizes, giveaways or gratuitous insults. >>> >>> 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 jacque at hyperactivesw.com Sun Oct 15 11:44:24 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 15 Oct 2017 10:44:24 -0500 Subject: Send "rawKeyUp" In-Reply-To: References: <2bdd77e2-fe17-5ed8-1ee3-cb07af83a38b@gmail.com> <15f209b98c8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <15f20b527c0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I see. You threw me off with the use of "I" which implied this was a merely personal problem. Carry on. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 15, 2017 10:33:05 AM Richmond Mathewson via use-livecode wrote: > And how, pray tell, would one have "stuff" in a LiveCode standalone to > tell the OSes to which LiveCode > deploys to alter their key repeat rates? > > Richmond. > > On 10/15/17 6:16 pm, J. Landman Gay via use-livecode wrote: >> And here I was, looking for a post card. What I was planning to write >> on it was: it's easiest to set the key repeat rate in the OS. Macs >> allow that, not sure about other systems. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> >> On October 15, 2017 5:24:11 AM Richmond Mathewson via use-livecode >> wrote: >> >>> Nothing quite beats answering one's own e-mails, >>> >>> except, possibly, banging one's head against the wall (Don't believe me? >>> Try it some time!) >>> >>> this in a cardScript: >>> >>> on rawKeyDown RAWK >>> if the XXXX of this card = "in" then >>> do something >>> end if >>> set the XXXX of this card to "out" >>> end rawKeyDown >>> >>> on rawKeyUp RUP >>> set the XXXX of this card to "in" >>> end rawKeyUp >>> >>> I hope this is of some use to more people than just myself. >>> >>> Richmond. >>> >>> On 10/15/17 12:56 pm, Richmond Mathewson wrote: >>>> I'm suffering from "sticky finger syndrome" and cannot get my finger >>>> off a key quickly enough to >>>> stop it firing more than once . . . >>>> >>>> SO . . . >>>> >>>> Wondered about this sort of thing [pseudocode]: >>>> >>>> on rawKeyDown RAWK >>>> do something >>>> send "rawKeyUp" to where? >>>> end rawKeyDown >>>> >>>> answers on a postcard, employees of the "Richmond Fan Club" are >>>> not eligible for prizes, giveaways or gratuitous insults. >>>> >>>> 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 Oct 15 12:31:43 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 15 Oct 2017 19:31:43 +0300 Subject: Send "rawKeyUp" In-Reply-To: <15f20b527c0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <2bdd77e2-fe17-5ed8-1ee3-cb07af83a38b@gmail.com> <15f209b98c8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <15f20b527c0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Normally, when I have personal problems . . . This was, oddly enough, someone else's "personal" problem that came my way and got me thinking . . . Certainly, the ability to make sure chummy doesn't muck things up by keeping his/her finger on a button/key is important. I suppose an enhancement request for the rather obvious: rawKeyStillDown & keyStillDown might not be a bad idea. Richmond. On 10/15/17 6:44 pm, J. Landman Gay via use-livecode wrote: > I see. You threw me off with the use of "I" which implied this was a > merely personal problem. > > Carry on. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > On October 15, 2017 10:33:05 AM Richmond Mathewson via use-livecode > wrote: > >> And how, pray tell, would one have "stuff" in a LiveCode standalone to >> tell the OSes to which LiveCode >> deploys to alter their key repeat rates? >> >> Richmond. >> >> On 10/15/17 6:16 pm, J. Landman Gay via use-livecode wrote: >>> And here I was, looking for a post card. What I was planning to write >>> on it was: it's easiest to set the key repeat rate in the OS. Macs >>> allow that, not sure about other systems. >>> >>> -- >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> >>> >>> >>> On October 15, 2017 5:24:11 AM Richmond Mathewson via use-livecode >>> wrote: >>> >>>> Nothing quite beats answering one's own e-mails, >>>> >>>> except, possibly, banging one's head against the wall (Don't >>>> believe me? >>>> Try it some time!) >>>> >>>> this in a cardScript: >>>> >>>> on rawKeyDown RAWK >>>> if the XXXX of this card = "in" then >>>> do something >>>> end if >>>> set the XXXX of this card to "out" >>>> end rawKeyDown >>>> >>>> on rawKeyUp RUP >>>> set the XXXX of this card to "in" >>>> end rawKeyUp >>>> >>>> I hope this is of some use to more people than just myself. >>>> >>>> Richmond. >>>> >>>> On 10/15/17 12:56 pm, Richmond Mathewson wrote: >>>>> I'm suffering from "sticky finger syndrome" and cannot get my finger >>>>> off a key quickly enough to >>>>> stop it firing more than once . . . >>>>> >>>>> SO . . . >>>>> >>>>> Wondered about this sort of thing [pseudocode]: >>>>> >>>>> on rawKeyDown RAWK >>>>> do something >>>>> send "rawKeyUp" to where? >>>>> end rawKeyDown >>>>> >>>>> answers on a postcard, employees of the "Richmond Fan Club" are >>>>> not eligible for prizes, giveaways or gratuitous insults. >>>>> >>>>> 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 bob at bobhall.net Sun Oct 15 12:36:31 2017 From: bob at bobhall.net (Bob Hall) Date: Sun, 15 Oct 2017 12:36:31 -0400 Subject: Creeping IDE Script Editor window position In-Reply-To: <1709F529-7331-49D7-A8EF-772CB9D62C5D@gmail.com> References: <1A3006B2-9794-4E16-AC2D-F189DFCD4E02@gmail.com> <408219C1-9253-464B-B285-DD0C16D660EB@gmail.com> <595be8e6-4e22-02b0-26dc-7f72e0c18622@sonic.net> <1709F529-7331-49D7-A8EF-772CB9D62C5D@gmail.com> Message-ID: Mac OS 10.13.x LC 8.1.7 (rc3) I invested a some time into figuring out the creepring IDE SE Windows. This issue I am sure is related to Bugs #19419 & 19853 (sure would be nice if this could get looked at, pretty please). I find the creeping window only occurs when I open the IDE on my secondary monitor on Mac OS. The reason the script editor window moves down on each load appears to be the result of the system property ?the effective top? not having the correct value on multi-monitor (Mac) setups when the IDE opens on the secondary monitor. I do not have access to Windows/Linux at the moment so I can not confirm the behavior on those systems. I am not creating a PR as I suspect the issue is likely to be fixed when bug 19419 is fixed. How to ?band-aid? the creeping IDE Window (when IDE is on secondary monitor) (NOTE: this is intended for more advanced users. Perform at your own risk. Backup your LC App before starting. I take no responsibility if this kills your install ;-) Tested on LC 8.1.7 (rc3) Mac Users only: 0: Make sure Livecode is not running. 1. In your text editor of choice, open the application Contents and edit Tools->Toolset->libraries->revidelibrary.8.livecodescript 2. search for the command revIDEEnsureOnscreen 3. change this line (on or about line 4531) if the effective top of stack pStackName < item 2 of tScreenRect then to if the top of stack pStackName < item 2 of tScreenRect then NOTE: this change can result in the IDE title bar being under the menu bar. For me, I?ll take this minor risk over the IDE moving down each time I open it up. There have not been any code changes in this part of the code for a long time (last by runrevElanor in 2 years ago). I do believe the root of the issue is that the effective top is not returning a good result as it is likely related to bug 19419. - Bob Hall From richmondmathewson at gmail.com Sun Oct 15 13:01:38 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 15 Oct 2017 20:01:38 +0300 Subject: In GRAB control Message-ID: <153e2023-e4df-5832-f597-2379a2f1d78c@gmail.com> Imagine a stack with a picture of an orange in its centre . . . The picture: img "arancia", contains the following script: on mouseDown grab me end mouseDown so the end-user can move the picture wherever they want all over the stack. HOWEVER . . . I want to know whether their initial movement is to the left, right, upwards or downwards. Fantasy time again [pseudocode]: on Grab put the left of me into LEFT1 put the top of me into TOP1 wait 2 ticks put the left of me into LEFT2 put the top of me into TOP2 if LEFT2 < LEFT1 then put "LEFT" else put "RIGHT" end if if TOP2 < TOP1 then put "UP" else put "DOWN" end if end Grab Richmond. From tom at makeshyft.com Sun Oct 15 13:04:01 2017 From: tom at makeshyft.com (Tom Glod) Date: Sun, 15 Oct 2017 13:04:01 -0400 Subject: In GRAB control In-Reply-To: <153e2023-e4df-5832-f597-2379a2f1d78c@gmail.com> References: <153e2023-e4df-5832-f597-2379a2f1d78c@gmail.com> Message-ID: richmond, are you asking a question or giving us code snippet to use? On Sun, Oct 15, 2017 at 1:01 PM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > Imagine a stack with a picture of an orange in its centre . . . > > The picture: img "arancia", contains the following script: > > on mouseDown > grab me > end mouseDown > > so the end-user can move the picture wherever they want > all over the stack. > > HOWEVER . . . I want to know whether their initial movement is to the > left, right, upwards or downwards. > > Fantasy time again [pseudocode]: > > on Grab > put the left of me into LEFT1 > put the top of me into TOP1 > wait 2 ticks > put the left of me into LEFT2 > put the top of me into TOP2 > if LEFT2 < LEFT1 then > put "LEFT" > else > put "RIGHT" > end if > if TOP2 < TOP1 then > put "UP" > else > put "DOWN" > end if > end Grab > > Richmond. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://post.spmailt.com/f/a/3dHp0NbbW6l-hhVAqUqAVQ~~/AAGp3AA~/RgRbxMirP0EIACzw8z9Dj9ZXA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18xYAw1Mi4zOS4yNi4xNDRCCgAAK5XjWWizsdtSHXVzZS1saXZlY29kZUBsaXN0cy5ydW5yZXYuY29tCVEEAAAAAEQ1aHR0cDovL2xpc3RzLnJ1bnJldi5jb20vbWFpbG1hbi9saXN0aW5mby91c2UtbGl2ZWNvZGVHAnt9 > From richmondmathewson at gmail.com Sun Oct 15 13:07:08 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 15 Oct 2017 20:07:08 +0300 Subject: In GRAB control In-Reply-To: References: <153e2023-e4df-5832-f597-2379a2f1d78c@gmail.com> Message-ID: If you try that "code snippet" I think you will get terribly stuck: that's a question. Richmond. On 10/15/17 8:04 pm, Tom Glod via use-livecode wrote: > richmond, are you asking a question or giving us code snippet to use? > > On Sun, Oct 15, 2017 at 1:01 PM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Imagine a stack with a picture of an orange in its centre . . . >> >> The picture: img "arancia", contains the following script: >> >> on mouseDown >> grab me >> end mouseDown >> >> so the end-user can move the picture wherever they want >> all over the stack. >> >> HOWEVER . . . I want to know whether their initial movement is to the >> left, right, upwards or downwards. >> >> Fantasy time again [pseudocode]: >> >> on Grab >> put the left of me into LEFT1 >> put the top of me into TOP1 >> wait 2 ticks >> put the left of me into LEFT2 >> put the top of me into TOP2 >> if LEFT2 < LEFT1 then >> put "LEFT" >> else >> put "RIGHT" >> end if >> if TOP2 < TOP1 then >> put "UP" >> else >> put "DOWN" >> end if >> end Grab >> >> Richmond. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://post.spmailt.com/f/a/3dHp0NbbW6l-hhVAqUqAVQ~~/AAGp3AA~/RgRbxMirP0EIACzw8z9Dj9ZXA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18xYAw1Mi4zOS4yNi4xNDRCCgAAK5XjWWizsdtSHXVzZS1saXZlY29kZUBsaXN0cy5ydW5yZXYuY29tCVEEAAAAAEQ1aHR0cDovL2xpc3RzLnJ1bnJldi5jb20vbWFpbG1hbi9saXN0aW5mby91c2UtbGl2ZWNvZGVHAnt9 >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 15 14:44:51 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 15 Oct 2017 13:44:51 -0500 Subject: is a date In-Reply-To: <334A12FA-691D-4997-B74E-A46E2CB5150B@mac.com> References: <334A12FA-691D-4997-B74E-A46E2CB5150B@mac.com> Message-ID: On 10/15/17 5:10 AM, Yves COPPE via use-livecode wrote: > I hope this works for any date format ... > > if matchtext(textToSearch,"(\d{1,2})/(\d{1,2})/(\d{2,4})",theDay,TheMonth,TheYear) is true then Yes, it seems to work with any numeric date now. I also like Ken Ray's solution which lets the engine do the conversion and checks for errors, since that works with long date formats. The advantage to your solution is that it does not recognize a single integer as a date, which could be important in some cases. I think there is a use for both functions depending on the script context. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From tore.nilsen at me.com Sun Oct 15 14:47:14 2017 From: tore.nilsen at me.com (Tore Nilsen) Date: Sun, 15 Oct 2017 20:47:14 +0200 Subject: In GRAB control In-Reply-To: References: <153e2023-e4df-5832-f597-2379a2f1d78c@gmail.com> Message-ID: <6FB8A0E7-EC70-42E6-89E5-5D9794987060@me.com> Try on mouseMove instead of on grab: on mouseMove if the mouse is down ? to make sure you are holding on to something your code goes here end if end mouseMove Tore > 15. okt. 2017 kl. 19:07 skrev Richmond Mathewson via use-livecode : > > If you try that "code snippet" I think you will get terribly stuck: that's a question. > > Richmond. > > On 10/15/17 8:04 pm, Tom Glod via use-livecode wrote: >> richmond, are you asking a question or giving us code snippet to use? >> >> On Sun, Oct 15, 2017 at 1:01 PM, Richmond Mathewson via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Imagine a stack with a picture of an orange in its centre . . . >>> >>> The picture: img "arancia", contains the following script: >>> >>> on mouseDown >>> grab me >>> end mouseDown >>> >>> so the end-user can move the picture wherever they want >>> all over the stack. >>> >>> HOWEVER . . . I want to know whether their initial movement is to the >>> left, right, upwards or downwards. >>> >>> Fantasy time again [pseudocode]: >>> >>> on Grab >>> put the left of me into LEFT1 >>> put the top of me into TOP1 >>> wait 2 ticks >>> put the left of me into LEFT2 >>> put the top of me into TOP2 >>> if LEFT2 < LEFT1 then >>> put "LEFT" >>> else >>> put "RIGHT" >>> end if >>> if TOP2 < TOP1 then >>> put "UP" >>> else >>> put "DOWN" >>> end if >>> end Grab >>> >>> Richmond. >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://post.spmailt.com/f/a/3dHp0NbbW6l-hhVAqUqAVQ~~/AAGp3AA~/RgRbxMirP0EIACzw8z9Dj9ZXA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18xYAw1Mi4zOS4yNi4xNDRCCgAAK5XjWWizsdtSHXVzZS1saXZlY29kZUBsaXN0cy5ydW5yZXYuY29tCVEEAAAAAEQ1aHR0cDovL2xpc3RzLnJ1bnJldi5jb20vbWFpbG1hbi9saXN0aW5mby91c2UtbGl2ZWNvZGVHAnt9 >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 15 14:50:58 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 15 Oct 2017 13:50:58 -0500 Subject: Send "rawKeyUp" In-Reply-To: References: <2bdd77e2-fe17-5ed8-1ee3-cb07af83a38b@gmail.com> <15f209b98c8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <15f20b527c0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <4f0fbab7-91b9-0000-a66b-15046fd4ef5e@hyperactivesw.com> On 10/15/17 11:31 AM, Richmond Mathewson via use-livecode wrote: > Normally, when I have personal problems . . . I hope you saw the invisible smiley after my comment. Here's one: :) > I suppose an enhancement request for the rather obvious: > > rawKeyStillDown & keyStillDown > > might not be a bad idea. I thought your solution was fine. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ahsoftware at sonic.net Sun Oct 15 14:57:06 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 15 Oct 2017 11:57:06 -0700 Subject: is a date In-Reply-To: References: <334A12FA-691D-4997-B74E-A46E2CB5150B@mac.com> Message-ID: On 10/15/2017 11:44 AM, J. Landman Gay via use-livecode wrote: > On 10/15/17 5:10 AM, Yves COPPE via use-livecode wrote: >> I hope this works for any date format > ... >> >> if >> matchtext(textToSearch,"(\d{1,2})/(\d{1,2})/(\d{2,4})",theDay,TheMonth,TheYear) >> is true then > > Yes, it seems to work with any numeric date now. It *does* think 99/99/00 is a date, though. -- Mark Wieder ahsoftware at gmail.com From capellan2000 at gmail.com Sun Oct 15 15:05:16 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sun, 15 Oct 2017 15:05:16 -0400 Subject: In GRAB control Message-ID: Hi Richmond, Tell me if this recipe works in your own setup: 1) Import an image 2) Create a small rectangle graphic with no fill (rectangles without fill is the default style) 3) Paste this script into the image: local tLocation, OriginalXposition, OriginalYposition on mouseDown put the loc of me into tLocation put item 1 of tLocation into OriginalXposition put item 2 of tLocation into OriginalYposition set the rect of grc 1 to the rect of me grab me end mouseDown on mouseup set the rect of grc 1 to "10,10,30,30" end mouseup on mousemove put the loc of me into tNewLocation put item 1 of tNewLocation into tx put item 2 of tNewLocation into ty switch case ty < OriginalYposition and tx < OriginalXposition put "Moving Up and Left" break case ty > OriginalYposition and tx < OriginalXposition put "Moving Down and Left" break case ty < OriginalYposition and tx > OriginalXposition put "Moving Up and Right" break case ty > OriginalYposition and tx > OriginalXposition put "Moving Down and Right" break case ty < OriginalYposition and tx = OriginalXposition put "Moving Up" break case ty > OriginalYposition and tx = OriginalXposition put "Moving Down" break case tx < OriginalXposition and ty = OriginalYposition put "Moving Left" break case tx > OriginalXposition and ty = OriginalYposition put "Moving Right" break end switch end mousemove By the way, Are you using Peter Thirkell SVG Multicolor widget for the stacks of your classes? Al From jacque at hyperactivesw.com Sun Oct 15 15:10:36 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 15 Oct 2017 14:10:36 -0500 Subject: is a date In-Reply-To: References: <334A12FA-691D-4997-B74E-A46E2CB5150B@mac.com> Message-ID: On 10/15/17 1:57 PM, Mark Wieder via use-livecode wrote: > On 10/15/2017 11:44 AM, J. Landman Gay via use-livecode wrote: >> On 10/15/17 5:10 AM, Yves COPPE via use-livecode wrote: >>> I hope this works for any date format >> ... >>> >>> if >>> matchtext(textToSearch,"(\d{1,2})/(\d{1,2})/(\d{2,4})",theDay,TheMonth,TheYear) >>> is true then >> >> Yes, it seems to work with any numeric date now. > > It *does* think 99/99/00 is a date, though. > Ah. I didn't test that. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From yvescoppe at mac.com Sun Oct 15 16:00:05 2017 From: yvescoppe at mac.com (Yves COPPE) Date: Sun, 15 Oct 2017 22:00:05 +0200 Subject: is a date In-Reply-To: References: <334A12FA-691D-4997-B74E-A46E2CB5150B@mac.com> Message-ID: <0916A766-AD65-438D-A7D9-44AC3F19AC05@mac.com> Hi, Does such a text ? 99/99/00 ? exist ? You can also always say that it is possible that ? 15/10/17 ? is not a date in a certain context Now seriously if the function returns a valid date, you can test afterwards the result to see if it can be something else than a date. Now i?m not enough expert in regEx to search something more secure than the function I gave previously. Sorry. Greetings. Yves COPPE yvescoppe at mac.com > Le 15 oct. 2017 ? 20:57, Mark Wieder via use-livecode a ?crit : > > On 10/15/2017 11:44 AM, J. Landman Gay via use-livecode wrote: >> On 10/15/17 5:10 AM, Yves COPPE via use-livecode wrote: >>> I hope this works for any date format >> ... >>> >>> if matchtext(textToSearch,"(\d{1,2})/(\d{1,2})/(\d{2,4})",theDay,TheMonth,TheYear) is true then >> Yes, it seems to work with any numeric date now. > > It *does* think 99/99/00 is a date, though. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Sun Oct 15 16:30:05 2017 From: hh at hyperhh.de (hh) Date: Sun, 15 Oct 2017 22:30:05 +0200 Subject: Commmunity widget #53 Message-ID: <83859B4C-FADB-4CF8-85E7-CDBEF10AD5E3@hyperhh.de> Just shared a new widget. Works in LC 8 (8.1.5ff) of LC 9 (9.0.0ff). Oct 15, 2017: hhColorPicker 1.0.0 #53 -- see http://forums.livecode.com/viewtopic.php?f=93&t=28020 The widget runs as "ordinary widget", sending a message "cholorChosen " that you can use in your scripts OR it runs as popup-widget (modeless dialog), stays on screen until you click outside of it (cancelling) or you click "OK" (returning the chosen RGBA-color, you may use the A-value for the blendLevel). Built-in is a picker for getting the color of any screenPixel (choose the method as the using mouseColor or a snapshot). These are the LCS-methods that yield good approximations as long as the clicked pixel is fully opaque (else the values are weighted by the pixel's alpha value). For downloading the widget use the [b]hh-widgets-un-installer[/b] from "Sample Stacks" of the LC toolbar (or download from http://livecodeshare.runrev.com/stack/842/ ). From jacque at hyperactivesw.com Sun Oct 15 16:37:33 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 15 Oct 2017 15:37:33 -0500 Subject: is a date In-Reply-To: <0916A766-AD65-438D-A7D9-44AC3F19AC05@mac.com> References: <334A12FA-691D-4997-B74E-A46E2CB5150B@mac.com> <0916A766-AD65-438D-A7D9-44AC3F19AC05@mac.com> Message-ID: <010e914f-a0c4-2d50-2f08-0def85a002d7@hyperactivesw.com> You know, after all the dicussion here, I'm not sure any of the options are better than "x is a date". The one exception may be that any integer is considered a date. To get around that we could just check that there are 3 items delimited by slashes before testing for "is a date". -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From alex at tweedly.net Sun Oct 15 17:21:09 2017 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 15 Oct 2017 22:21:09 +0100 Subject: is a date In-Reply-To: <010e914f-a0c4-2d50-2f08-0def85a002d7@hyperactivesw.com> References: <334A12FA-691D-4997-B74E-A46E2CB5150B@mac.com> <0916A766-AD65-438D-A7D9-44AC3F19AC05@mac.com> <010e914f-a0c4-2d50-2f08-0def85a002d7@hyperactivesw.com> Message-ID: Or?? x is a date and x is not an integer? ? -- Alex. On 15/10/2017 21:37, J. Landman Gay via use-livecode wrote: > You know, after all the dicussion here, I'm not sure any of the > options are better than "x is a date". The one exception may be that > any integer is considered a date. To get around that we could just > check that there are 3 items delimited by slashes before testing for > "is a date". > From jacque at hyperactivesw.com Sun Oct 15 19:05:25 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 15 Oct 2017 18:05:25 -0500 Subject: is a date In-Reply-To: References: <334A12FA-691D-4997-B74E-A46E2CB5150B@mac.com> <0916A766-AD65-438D-A7D9-44AC3F19AC05@mac.com> <010e914f-a0c4-2d50-2f08-0def85a002d7@hyperactivesw.com> Message-ID: <15f2248eb08.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Yeah. Unless you require a year or something, that'd work. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 15, 2017 4:23:20 PM Alex Tweedly via use-livecode wrote: > Or?? x is a date and x is not an integer? ? > > -- Alex. > > > On 15/10/2017 21:37, J. Landman Gay via use-livecode wrote: >> You know, after all the dicussion here, I'm not sure any of the >> options are better than "x is a date". The one exception may be that >> any integer is considered a date. To get around that we could just >> check that there are 3 items delimited by slashes before testing for >> "is a date". >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Sun Oct 15 20:24:35 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 15 Oct 2017 20:24:35 -0400 Subject: is a date In-Reply-To: <15f2248eb08.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <334A12FA-691D-4997-B74E-A46E2CB5150B@mac.com> <0916A766-AD65-438D-A7D9-44AC3F19AC05@mac.com> <010e914f-a0c4-2d50-2f08-0def85a002d7@hyperactivesw.com> <15f2248eb08.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: why not have the engine do it for you - use convert to convert the possible date to whatever format you're expecting. If it the answer isn't the same, then you don't have a date. On Sun, Oct 15, 2017 at 7:05 PM, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > Yeah. Unless you require a year or something, that'd work. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > On October 15, 2017 4:23:20 PM Alex Tweedly via use-livecode < > use-livecode at lists.runrev.com> wrote: > > Or x is a date and x is not an integer ? >> >> -- Alex. >> >> >> On 15/10/2017 21:37, J. Landman Gay via use-livecode wrote: >> >>> You know, after all the dicussion here, I'm not sure any of the >>> options are better than "x is a date". The one exception may be that >>> any integer is considered a date. To get around that we could just >>> check that there are 3 items delimited by slashes before testing for >>> "is a date". >>> >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 jiml at netrin.com Sun Oct 15 21:44:19 2017 From: jiml at netrin.com (Jim Lambert) Date: Sun, 15 Oct 2017 18:44:19 -0700 Subject: is a date In-Reply-To: References: Message-ID: Roger wrote: > > put "11/20/2017" is a date > returns true > ---- > put "10" is a date > returns true > ---- > put "raccoon" is a date > returns false > ---- > > WHY is "10" seen as a date? Because it is legitimately a date expressed in seconds? convert 10 to long date = Wednesday, December 31, 1969 In fact, converting any integer from -57600 to 86400 into a long date will result in Wednesday, December 31, 1969 Convert -57601 to long date will result in?Guess what! Wednesday, December 30, 1969 JimL From palcibiades-first at yahoo.co.uk Mon Oct 16 02:33:43 2017 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Sun, 15 Oct 2017 23:33:43 -0700 (MST) Subject: not really OT: The Coming Software Apocalypse In-Reply-To: <41154cf2-67e9-7952-ea0c-33d6018f6389@sonic.net> References: <41154cf2-67e9-7952-ea0c-33d6018f6389@sonic.net> Message-ID: <1508135623492-0.post@n4.nabble.com> Thanks for the link, which was very interesting. There is a quite deep insight there about what made Hypercard so inviting, and why LC is so accessible. Its not just drag and drop, its working directly with the thing one is making. Of course you still end up typing a lot of text, but these systems are a small part of the way to what the people interviewed are talking about. I recall a moment many years ago now when the difference between the ordinary user's understanding and the coder's suddenly became apparent. In the early days of the Web we did a demo for a senior manager of a new interface. He had never used a computer - as was quite common back in those days. He heard about it with some puzzlement and then asked us to print it out. We looked at each other and you could see everyone wondering how on earth they were going to explain that this just wasn't possible... That whatever we handed over on set of A4s was not going to be what we were talking about. -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From toolbook at kestner.de Mon Oct 16 05:40:27 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 16 Oct 2017 11:40:27 +0200 Subject: AW: is a date In-Reply-To: <010e914f-a0c4-2d50-2f08-0def85a002d7@hyperactivesw.com> References: <334A12FA-691D-4997-B74E-A46E2CB5150B@mac.com> <0916A766-AD65-438D-A7D9-44AC3F19AC05@mac.com> <010e914f-a0c4-2d50-2f08-0def85a002d7@hyperactivesw.com> Message-ID: <007a01d34662$cd3665f0$67a331d0$@kestner.de> -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von J. Landman Gay via use-livecode Gesendet: Sonntag, 15. Oktober 2017 22:38 An: How to use LiveCode Cc: J. Landman Gay Betreff: Re: is a date >> To get around that we could just check that there are 3 items delimited by slashes before testing for "is a date". As long, as you don't handle international dates ... Tiemo -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Mon Oct 16 06:05:37 2017 From: hh at hyperhh.de (hh) Date: Mon, 16 Oct 2017 12:05:37 +0200 Subject: is a date Message-ID: > JLG wrote ... > The one exception may be that any _integer_ is considered a date. > To get around that we could just check that there are 3 items > delimited by slashes before testing for "is a date". I write "is a /real/ date" into my notes whenever a meeting is a date. How do you handle such _real_ cases in your functions? ;-) From hh at hyperhh.de Mon Oct 16 06:14:14 2017 From: hh at hyperhh.de (hh) Date: Mon, 16 Oct 2017 12:14:14 +0200 Subject: How to meet an integer Message-ID: > JLG wrote: > You know, after all the dicussion here, I'm not sure any of the > options are better than "x is a date". The one exception may be > that any integer is considered a date. Being a mathematician I always dreamed about meeting an integer. How did you manage to meet an integer? Was it male or female and positive, negative or even zero? From panos.merakos at livecode.com Mon Oct 16 07:00:24 2017 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 16 Oct 2017 12:00:24 +0100 Subject: [ANN] This Week in LiveCode 102 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 #102 here: https://goo.gl/RW6UMX 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 preid at reidit.co.uk Mon Oct 16 09:18:28 2017 From: preid at reidit.co.uk (Peter Reid) Date: Mon, 16 Oct 2017 14:18:28 +0100 Subject: Comparing 2 Spoken words, FFT function in LiveCode? In-Reply-To: References: Message-ID: <2D1D8CCF-A316-4279-B9ED-0AE6DB52809D@reidit.co.uk> Does anyone know of an implementation of an FFT function written in LiveCode? I've tried joneslib but this doesn't include FFT. I'm hoping to use FFTs as part of my attempt to compare 2 short sound clips of people speaking a single word. I'm trying to judge whether a single word spoken by 2 different people is the same word or not. Any advice or code that might help with this would be most welcome. Thanks Peter -- Peter Reid Loughborough, UK From benr_mc at cogapp.com Mon Oct 16 09:48:21 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 16 Oct 2017 14:48:21 +0100 Subject: libURLLast/xx/headers on mobile? In-Reply-To: <4d6350f9d88a8c0e03555dee3b9a297b@livecode.com> References: <610edf76-5684-19d0-638a-ba9ba4dfbd37@cogapp.com> <4d6350f9d88a8c0e03555dee3b9a297b@livecode.com> Message-ID: Aha, thanks Mark! That did it. On 13/10/2017 18:23, Mark Waddingham via use-livecode wrote: > On 2017-10-13 12:15, Ben Rubinstein via use-livecode wrote: >> I'm trying to debug a case where making some calls to an external API >> works fine on desktop, but fails on mobile (both iOS and Android) with >> "400 bad request". >> >> Unfortunately it seems that libURLLastHTTPHeaders() and >> libURLLastRHHeaders() aren't available on mobile. Is there some other >> way to get the information on mobile (especially the latter)? > > IIRC, if you are using Indy or Business, then tsNet will provide those > functions on mobile (it provides a libURL like interface on all platforms). > > I believe you just need to make sure that you are including the Internet > library and tsNet inclusion in the s/b. > > Warmest Regards, > > Mark. > > P.S. I'm pretty sure libURL also works on mobile in community - if you select > the Internet inclusion, although in that case it just plain libURL, no tsNet > as that requires Indy or Business. > From benr_mc at cogapp.com Mon Oct 16 11:07:37 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 16 Oct 2017 16:07:37 +0100 Subject: OAuth2 (LC 9) on mobile? In-Reply-To: References: <37928db6-4057-9d2d-f31d-ff7466625d2a@cogapp.com> Message-ID: <7973a20c-a9d6-7ba2-db8f-67bd8b47788f@cogapp.com> OAuth2 does work on mobile - I needed to include the Browser widget in the standalone. (The 'search for inclusions' doesn't know to include the Oauth2 library, let alone the browser widget.) If anyone else finds themselves sometimes spending a long time going down a path where the answer is to do with inclusions, I have two relevant feature suggestions in LQCC - I'd be interested in comments: http://quality.livecode.com/show_bug.cgi?id=20574 http://quality.livecode.com/show_bug.cgi?id=18199 Ben On 13/10/2017 08:17, Ben Rubinstein via use-livecode wrote: > Now that Greg's Oauth2 issue has been resolved, can I check whether anyone has > seen the Oauth2 library work on mobile? I don't want to raise an LQCC if it's > just me doing something wrong! > > thanks, > > Ben > > On 11/10/2017 17:19, Ben Rubinstein via use-livecode wrote: >> To clarify, by "everything still works" I mean that the OAuth2 command >> appears to have done "exit to top" without doing anything - but leaving the >> whole screen dimmed out. So other controls on the card, although dim, work. >> But no authorisation has happened. >> >> On 11/10/2017 17:02, Ben Rubinstein via use-livecode wrote: >>> Does the new OAuth2 library in LC 9 work on mobile? Docs suggest it should, >>> but testing on iPad I just get an interesting dimmed out effect on the >>> stack - although in fact everything still works - where I would have >>> expected a sheet or switching to Safari or some other way of displaying a >>> web page. >>> >>> TIA, >>> >>> Ben >>> From jacque at hyperactivesw.com Mon Oct 16 11:48:56 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 16 Oct 2017 10:48:56 -0500 Subject: How to meet an integer In-Reply-To: References: Message-ID: <15f25dfaa40.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> On October 16, 2017 5:16:15 AM hh via use-livecode wrote: >> JLG wrote: >> You know, after all the dicussion here, I'm not sure any of the >> options are better than "x is a date". The one exception may be >> that any integer is considered a date. > > Being a mathematician I always dreamed about meeting an integer. > > How did you manage to meet an integer? > Was it male or female and positive, negative or even zero? Until I met my husband, ALL my dates were zeros. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From hh at hyperhh.de Mon Oct 16 12:12:32 2017 From: hh at hyperhh.de (hh) Date: Mon, 16 Oct 2017 18:12:32 +0200 Subject: How to meet an integer Message-ID: <1EA5BE7D-7852-44C7-B77F-75111D8D1288@hyperhh.de> > JLG wrote: > Until I met my husband, ALL my dates were zeros. You won. From bobsneidar at iotecdigital.com Mon Oct 16 12:26:43 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 Oct 2017 16:26:43 +0000 Subject: Atkinson dither algorithm In-Reply-To: References: Message-ID: <15B04FEA-40AD-4EC4-90C7-58E812F89C56@iotecdigital.com> I didn't post any code I don't think, but I will certainly take some credit for having done so! ;-) Bob S > On Oct 14, 2017, at 21:57 , Alejandro Tejada via use-livecode wrote: > > Hi All, > > This forum message contains the final version of this stack. > It includes a Color version of this algorithm. > > https://forums.livecode.com/viewtopic.php?f=10&p=159173#p159173 > > Thanks again to Malte Brill, Richard Gaskin, Hermann Hoch, Mark Waddingham, > Peter Reid, Ben Rubinstein, Bob Sneidar and Lagi Pittas for posting scripts > and > writing ideas to improve this handler. > > Al From roger.e.eller at sealedair.com Mon Oct 16 12:40:55 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Mon, 16 Oct 2017 12:40:55 -0400 Subject: is a date In-Reply-To: References: Message-ID: Exactly! I was elated to find the built-in "is a date" check, because I really wanted to NOT have to roll my own. I was THRILLED that our lovely English-like syntax was working FOR me. And then an integer was accepted as a legit date. I didn't like that at all. Why can't the engine have "is a date" or "is a formatted date" as well? ~Roger On Mon, Oct 16, 2017 at 6:05 AM, hh via use-livecode < use-livecode at lists.runrev.com> wrote: > > JLG wrote ... > > The one exception may be that any _integer_ is considered a date. > > To get around that we could just check that there are 3 items > > delimited by slashes before testing for "is a date". > > I write "is a /real/ date" into my notes whenever a meeting is a date. > How do you handle such _real_ cases in your functions? ;-) > > From bobsneidar at iotecdigital.com Mon Oct 16 12:41:26 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 Oct 2017 16:41:26 +0000 Subject: Comparing 2 Spoken words, FFT function in LiveCode? In-Reply-To: <2D1D8CCF-A316-4279-B9ED-0AE6DB52809D@reidit.co.uk> References: <2D1D8CCF-A316-4279-B9ED-0AE6DB52809D@reidit.co.uk> Message-ID: <5AE63074-5241-4351-B496-9C1DF40C16CD@iotecdigital.com> mySQL has a soundex function. Bob S > On Oct 16, 2017, at 06:18 , Peter Reid via use-livecode wrote: > > Does anyone know of an implementation of an FFT function written in LiveCode? I've tried joneslib but this doesn't include FFT. I'm hoping to use FFTs as part of my attempt to compare 2 short sound clips of people speaking a single word. I'm trying to judge whether a single word spoken by 2 different people is the same word or not. Any advice or code that might help with this would be most welcome. > > Thanks > > Peter > -- > Peter Reid > Loughborough, UK > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 16 12:42:08 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 Oct 2017 16:42:08 +0000 Subject: Comparing 2 Spoken words, FFT function in LiveCode? In-Reply-To: <2D1D8CCF-A316-4279-B9ED-0AE6DB52809D@reidit.co.uk> References: <2D1D8CCF-A316-4279-B9ED-0AE6DB52809D@reidit.co.uk> Message-ID: <20D8E6AC-7ED1-4C0C-B633-17726F882FD2@iotecdigital.com> Oh NVM I thought you were takling about text. Bob S > On Oct 16, 2017, at 06:18 , Peter Reid via use-livecode wrote: > > Does anyone know of an implementation of an FFT function written in LiveCode? I've tried joneslib but this doesn't include FFT. I'm hoping to use FFTs as part of my attempt to compare 2 short sound clips of people speaking a single word. I'm trying to judge whether a single word spoken by 2 different people is the same word or not. Any advice or code that might help with this would be most welcome. > > Thanks > > Peter > -- > Peter Reid > Loughborough, UK > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 16 12:47:42 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 Oct 2017 16:47:42 +0000 Subject: is a date In-Reply-To: References: Message-ID: <3AA5FFA1-E6E2-4C95-A78B-B16BFA38AC17@iotecdigital.com> Old trick I learned in Foxpro. Convert something then convert it back and see if it is identical. put 20 into tDate put tDate into tOldDate convert tDate to dateitems convert tDate to short date return ((tDate is a date) and (tDate is tOldDate)) Bob S From bobsneidar at iotecdigital.com Mon Oct 16 12:51:20 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 Oct 2017 16:51:20 +0000 Subject: is a date In-Reply-To: <3AA5FFA1-E6E2-4C95-A78B-B16BFA38AC17@iotecdigital.com> References: <3AA5FFA1-E6E2-4C95-A78B-B16BFA38AC17@iotecdigital.com> Message-ID: <810D30F9-920D-43CA-AE2C-16B907180D21@iotecdigital.com> This of course assumes you know tDate is supposed to be a short date. I also have this function which is part of the master library methinks: function formatDate theDate, theFormat /* Accepts any valid date for the first parameter. If not a valid date, it simply returns what was passed. Second parameter can be any of the following: sql date: date in the yyyy-mm-dd format short date, abbreviated date, internet date, long date: LC versions of the same julian date: Julian number based on (I believe) Jacques formula) */ put the itemdelimiter into theOldDelim set the itemdelimiter to "-" if the length of item 1 of theDate = 4 and \ the number of items of theDate = 3 and \ item 1 of theDate is a number and \ item 2 of theDate is a number and \ item 3 of theDate is a number then put item 2 of theDate & "/" & \ item 3 of theDate & "/" & \ item 1 of theDate into theDate end if convert theDate to dateitems set the itemdelimiter to theOldDelim switch theFormat case "sql date" put item 1 of theDate & "-" & \ format("%02d",item 2 of theDate) & "-" & \ format("%02d",item 3 of theDate) into theDate break case "short date" convert theDate from dateitems to short date break case "abbreviated date" convert theDate from dateitems to abbreviated date break case "abbr date" convert theDate from dateitems to abbreviated date break case "internet date" convert theDate from dateitems to internet date break case "long date" convert theDate from dateitems to long date break case "julian date" put the date into theDate convert theDate to dateItems if ((item 2 of theDate = 1) or (item 2 of theDate = 2)) then put 1 into theDay else put 0 into theDay end if put item 1 of theDate + 4800 - theDay into theYear put item 2 of theDate + (12 * theDay) - 3 into theMonth put item 3 of theDate + \ ((153 * theMonth + 2) div 5) + \ (365 * theYear) + \ (theYear div 4) - \ (theYear div 100) + \ (theYear div 400) - \ 32045 into theDate break end switch return theDate end formatDate Bob S > On Oct 16, 2017, at 09:47 , Bob Sneidar wrote: > > Old trick I learned in Foxpro. Convert something then convert it back and see if it is identical. > > put 20 into tDate > put tDate into tOldDate > convert tDate to dateitems > convert tDate to short date > return ((tDate is a date) and (tDate is tOldDate)) > > Bob S > > From bobsneidar at iotecdigital.com Mon Oct 16 12:56:55 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 Oct 2017 16:56:55 +0000 Subject: is a date In-Reply-To: <810D30F9-920D-43CA-AE2C-16B907180D21@iotecdigital.com> References: <3AA5FFA1-E6E2-4C95-A78B-B16BFA38AC17@iotecdigital.com> <810D30F9-920D-43CA-AE2C-16B907180D21@iotecdigital.com> Message-ID: <6EB529A3-5D21-4186-BD90-641746E96734@iotecdigital.com> This probably matters to no one at all, but SQL does not store dates with forward slashes. SQL datetime formats look like this: yyyy-dd-mm hh:mm:ss Bob S From bobsneidar at iotecdigital.com Mon Oct 16 13:00:50 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 Oct 2017 17:00:50 +0000 Subject: Send "rawKeyUp" In-Reply-To: References: <2bdd77e2-fe17-5ed8-1ee3-cb07af83a38b@gmail.com> <15f209b98c8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <15f20b527c0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <1646CB9E-ED1D-4DE1-8F74-52C10A6DB4A4@iotecdigital.com> I have a great solution, which is simple, elegant and effective. Tell the end user, "Don't do that!" :-) Bob S > On Oct 15, 2017, at 09:31 , Richmond Mathewson via use-livecode wrote: > > Normally, when I have personal problems . . . > > This was, oddly enough, someone else's "personal" problem that came my way > and got me thinking . . . > > Certainly, the ability to make sure chummy doesn't muck things up by keeping his/her finger > on a button/key is important. > > I suppose an enhancement request for the rather obvious: > > rawKeyStillDown & keyStillDown > > might not be a bad idea. > > Richmond. From roger.e.eller at sealedair.com Mon Oct 16 13:01:02 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Mon, 16 Oct 2017 13:01:02 -0400 Subject: is a date In-Reply-To: <6EB529A3-5D21-4186-BD90-641746E96734@iotecdigital.com> References: <3AA5FFA1-E6E2-4C95-A78B-B16BFA38AC17@iotecdigital.com> <810D30F9-920D-43CA-AE2C-16B907180D21@iotecdigital.com> <6EB529A3-5D21-4186-BD90-641746E96734@iotecdigital.com> Message-ID: Again, I would prefer a simple one-liner built-in function. What if instead of "is a date" returning true or false, it instead returned some expected outputs like "short, long, internet, seconds, ect.". Something short and sweet. ~Roger On Mon, Oct 16, 2017 at 12:56 PM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > This probably matters to no one at all, but SQL does not store dates with > forward slashes. SQL datetime formats look like this: > > yyyy-dd-mm hh:mm:ss > > Bob S > From andrew at midwestcoastmedia.com Mon Oct 16 13:14:19 2017 From: andrew at midwestcoastmedia.com (andrew at midwestcoastmedia.com) Date: Mon, 16 Oct 2017 17:14:19 +0000 Subject: is a date In-Reply-To: Message-ID: <20171016171419.Horde.fZj1L1djaS16m-Skv17bPmI@ua850258.serversignin.com> > From: Bob Sneidar > To: How to use LiveCode > Subject: Re: is a date > Message-ID: <6EB529A3-5D21-4186-BD90-641746E96734 at iotecdigital.com> > Content-Type: text/plain; charset="us-ascii" > > This probably matters to no one at all, but SQL does not store dates > with forward slashes. SQL datetime formats look like this: > > yyyy-dd-mm hh:mm:ss > > Bob S > It mattered to me recently on a project I was working on so I wrote these two scripts to help me generate a LC version of the mySQL version of "timestamp": on timeStamp put the internet date into tTheDate convert tTheDate to dateitems put item 1 of tTheDate into tYear put item 2 of tTheDate into tMonth put item 3 of tTheDate into tDay put item 4 of tTheDate into tHour put item 5 of tTheDate into tMinute put item 6 of tTheDate into tSecond leadingZero tMonth leadingZero tDay leadingZero tHour leadingZero tMinute leadingZero tSecond put tYear & "-" & tMonth & "-" & tDay && tHour & ":" & tMinute & ":" & tSecond into tTimeStamp return tTimeStamp end timeStamp on leadingZero @pDateItem if the length of pDateItem = 1 then put "0" before pDateItem end if end leadingZero A new date/time format of "database" would be useful for something like this. --Andrew Bell From richmondmathewson at gmail.com Mon Oct 16 13:20:59 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 16 Oct 2017 20:20:59 +0300 Subject: Send "rawKeyUp" In-Reply-To: <1646CB9E-ED1D-4DE1-8F74-52C10A6DB4A4@iotecdigital.com> References: <2bdd77e2-fe17-5ed8-1ee3-cb07af83a38b@gmail.com> <15f209b98c8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <15f20b527c0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <1646CB9E-ED1D-4DE1-8F74-52C10A6DB4A4@iotecdigital.com> Message-ID: <9e45bef1-4923-43bb-dfb4-72cae561c6d3@gmail.com> That's OK in theory until you start thinking about adolescents . . . Richmond. On 10/16/17 8:00 pm, Bob Sneidar via use-livecode wrote: > I have a great solution, which is simple, elegant and effective. Tell the end user, "Don't do that!" :-) > > Bob S > > >> On Oct 15, 2017, at 09:31 , Richmond Mathewson via use-livecode wrote: >> >> Normally, when I have personal problems . . . >> >> This was, oddly enough, someone else's "personal" problem that came my way >> and got me thinking . . . >> >> Certainly, the ability to make sure chummy doesn't muck things up by keeping his/her finger >> on a button/key is important. >> >> I suppose an enhancement request for the rather obvious: >> >> rawKeyStillDown & keyStillDown >> >> might not be a bad idea. >> >> 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 hh at hyperhh.de Mon Oct 16 13:33:12 2017 From: hh at hyperhh.de (hh) Date: Mon, 16 Oct 2017 19:33:12 +0200 Subject: Comparing 2 Spoken words, FFT function in LiveCode? Message-ID: <1FA0693E-CF8A-48E8-8BC9-25C6D54D1290@hyperhh.de> LC Script is probably not fast enough for performing a FFT. But you could use, for example, the following digital signal processing library for javascript via a browser widget. https://github.com/corbanbrook/dsp.js Or try to use LCB's java-FFI based on these approaches: https://lstsal.wordpress.com/2015/02/25/an-easy-way-to-compare-two-audios/ https://lstsal.wordpress.com/2015/02/28/comparing-two-audio-files/ > Peter R. wrote: > Does anyone know of an implementation of an FFT function written in LiveCode? > I've tried joneslib but this doesn't include FFT. I'm hoping to use FFTs as > part of my attempt to compare 2 short sound clips of people speaking a single > word.I'm trying to judge whether a single word spoken by 2 different people > is the same word or not. Any advice or code that might help with this would > be most welcome. From bobsneidar at iotecdigital.com Mon Oct 16 13:34:29 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 Oct 2017 17:34:29 +0000 Subject: is a date In-Reply-To: <20171016171419.Horde.fZj1L1djaS16m-Skv17bPmI@ua850258.serversignin.com> References: <20171016171419.Horde.fZj1L1djaS16m-Skv17bPmI@ua850258.serversignin.com> Message-ID: <068A15F8-4AA9-43C7-9B00-3FB423C6C684@iotecdigital.com> May want to check out the MasterLibrary then. It's got a lot of great commands and functinos, one of which will format a date any way you like, including sql date. Bob S > On Oct 16, 2017, at 10:14 , Andrew Bell via use-livecode wrote: > >> From: Bob Sneidar >> To: How to use LiveCode >> Subject: Re: is a date >> Message-ID: <6EB529A3-5D21-4186-BD90-641746E96734 at iotecdigital.com> >> Content-Type: text/plain; charset="us-ascii" >> >> This probably matters to no one at all, but SQL does not store dates with forward slashes. SQL datetime formats look like this: >> >> yyyy-dd-mm hh:mm:ss >> >> Bob S >> > > It mattered to me recently on a project I was working on so I wrote these two scripts to help me generate a LC version of the mySQL version of "timestamp": > > on timeStamp > put the internet date into tTheDate > convert tTheDate to dateitems > put item 1 of tTheDate into tYear > put item 2 of tTheDate into tMonth > put item 3 of tTheDate into tDay > put item 4 of tTheDate into tHour > put item 5 of tTheDate into tMinute > put item 6 of tTheDate into tSecond > > leadingZero tMonth > leadingZero tDay > leadingZero tHour > leadingZero tMinute > leadingZero tSecond > > put tYear & "-" & tMonth & "-" & tDay && tHour & ":" & tMinute & ":" & tSecond into tTimeStamp > return tTimeStamp > end timeStamp > > on leadingZero @pDateItem > if the length of pDateItem = 1 then > put "0" before pDateItem > end if > end leadingZero > > > A new date/time format of "database" would be useful for something like this. > > --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 bobsneidar at iotecdigital.com Mon Oct 16 13:36:11 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 Oct 2017 17:36:11 +0000 Subject: Send "rawKeyUp" In-Reply-To: <9e45bef1-4923-43bb-dfb4-72cae561c6d3@gmail.com> References: <2bdd77e2-fe17-5ed8-1ee3-cb07af83a38b@gmail.com> <15f209b98c8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <15f20b527c0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <1646CB9E-ED1D-4DE1-8F74-52C10A6DB4A4@iotecdigital.com> <9e45bef1-4923-43bb-dfb4-72cae561c6d3@gmail.com> Message-ID: <6E1E943B-D04E-45A9-A3AD-E58F32A01A74@iotecdigital.com> Adolescents are the perfect patients for this kind of thing. Better to train them how to use a thing properly than to try and get the thing to accomodate all their foibles. Bob S > On Oct 16, 2017, at 10:20 , Richmond Mathewson via use-livecode wrote: > > That's OK in theory until you start thinking about adolescents . . . > > Richmond. From frans at knowlegistics.com Mon Oct 16 13:58:29 2017 From: frans at knowlegistics.com (Frans Schoffelen) Date: Mon, 16 Oct 2017 19:58:29 +0200 Subject: Word recognition In-Reply-To: References: Message-ID: <8506563C-F389-4482-9B84-8C3CBEB5F791@knowlegistics.com> > On 16 Oct 2017, at 19:00, use-livecode-request at lists.runrev.com wrote: > > > Does anyone know of an implementation of an FFT function written in LiveCode? I've tried joneslib but this doesn't include FFT. I'm hoping to use FFTs as part of my attempt to compare 2 short sound clips of people speaking a single word. I'm trying to judge whether a single word spoken by 2 different people is the same word or not. Any advice or code that might help with this would be most welcome. > > Thanks > > Peter > -- > Peter Reid > Loughborough, UK Hi, We tried to do this for a set of professional business english training software suites for companies ages ago. We ended up using Microsoft Speech recognition with an External by Tuviah Snyder. On the the mac front we used the speech recognition ( then in Supercard) to see if any of the words reconized was in the restricted recognition target dictionary. Worked fine. However : If you are looking at precise comparisons of two phrases in the realm of : ? Flying aunts can be dangerous? ? Flying ants can be dangerous? then you need word-per-word FFT analysis and the closest I have come were the libraries to plot AIF files by Mark Smith, may he rest in peace. Stephen Barncard was so friendly to relay them to me in 2016. Then funding stopped and I had to pursuit other things. But I would be very interested in solving this as well, because it is a major asset when dealing with languages.( I?m an old linguist ;-) I believe Stephen would not mind the stacks being out there. I just can?t gauge if they would be any help in your endeavour. Cheers Frans Frans Schoffelen http://knowlegistics.com // Software & Sound // Berlin From MikeKerner at roadrunner.com Mon Oct 16 14:07:16 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 16 Oct 2017 14:07:16 -0400 Subject: is a date In-Reply-To: <068A15F8-4AA9-43C7-9B00-3FB423C6C684@iotecdigital.com> References: <20171016171419.Horde.fZj1L1djaS16m-Skv17bPmI@ua850258.serversignin.com> <068A15F8-4AA9-43C7-9B00-3FB423C6C684@iotecdigital.com> Message-ID: HEY BOB COPYCAT! On Mon, Oct 16, 2017 at 1:34 PM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > May want to check out the MasterLibrary then. It's got a lot of great > commands and functinos, one of which will format a date any way you like, > including sql date. > > Bob S > > > > On Oct 16, 2017, at 10:14 , Andrew Bell via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > >> From: Bob Sneidar > >> To: How to use LiveCode > >> Subject: Re: is a date > >> Message-ID: <6EB529A3-5D21-4186-BD90-641746E96734 at iotecdigital.com> > >> Content-Type: text/plain; charset="us-ascii" > >> > >> This probably matters to no one at all, but SQL does not store dates > with forward slashes. SQL datetime formats look like this: > >> > >> yyyy-dd-mm hh:mm:ss > >> > >> Bob S > >> > > > > It mattered to me recently on a project I was working on so I wrote > these two scripts to help me generate a LC version of the mySQL version of > "timestamp": > > > > on timeStamp > > put the internet date into tTheDate > > convert tTheDate to dateitems > > put item 1 of tTheDate into tYear > > put item 2 of tTheDate into tMonth > > put item 3 of tTheDate into tDay > > put item 4 of tTheDate into tHour > > put item 5 of tTheDate into tMinute > > put item 6 of tTheDate into tSecond > > > > leadingZero tMonth > > leadingZero tDay > > leadingZero tHour > > leadingZero tMinute > > leadingZero tSecond > > > > put tYear & "-" & tMonth & "-" & tDay && tHour & ":" & tMinute & ":" & > tSecond into tTimeStamp > > return tTimeStamp > > end timeStamp > > > > on leadingZero @pDateItem > > if the length of pDateItem = 1 then > > put "0" before pDateItem > > end if > > end leadingZero > > > > > > A new date/time format of "database" would be useful for something like > this. > > > > --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 > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Mon Oct 16 14:08:16 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 16 Oct 2017 14:08:16 -0400 Subject: is a date In-Reply-To: References: <20171016171419.Horde.fZj1L1djaS16m-Skv17bPmI@ua850258.serversignin.com> <068A15F8-4AA9-43C7-9B00-3FB423C6C684@iotecdigital.com> Message-ID: Did I miss someone checking if the allegedly valid date is really a valid date? I don't think 99/99/99 is valid. On Mon, Oct 16, 2017 at 2:07 PM, Mike Kerner wrote: > HEY BOB COPYCAT! > > On Mon, Oct 16, 2017 at 1:34 PM, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> May want to check out the MasterLibrary then. It's got a lot of great >> commands and functinos, one of which will format a date any way you like, >> including sql date. >> >> Bob S >> >> >> > On Oct 16, 2017, at 10:14 , Andrew Bell via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> >> From: Bob Sneidar >> >> To: How to use LiveCode >> >> Subject: Re: is a date >> >> Message-ID: <6EB529A3-5D21-4186-BD90-641746E96734 at iotecdigital.com> >> >> Content-Type: text/plain; charset="us-ascii" >> >> >> >> This probably matters to no one at all, but SQL does not store dates >> with forward slashes. SQL datetime formats look like this: >> >> >> >> yyyy-dd-mm hh:mm:ss >> >> >> >> Bob S >> >> >> > >> > It mattered to me recently on a project I was working on so I wrote >> these two scripts to help me generate a LC version of the mySQL version of >> "timestamp": >> > >> > on timeStamp >> > put the internet date into tTheDate >> > convert tTheDate to dateitems >> > put item 1 of tTheDate into tYear >> > put item 2 of tTheDate into tMonth >> > put item 3 of tTheDate into tDay >> > put item 4 of tTheDate into tHour >> > put item 5 of tTheDate into tMinute >> > put item 6 of tTheDate into tSecond >> > >> > leadingZero tMonth >> > leadingZero tDay >> > leadingZero tHour >> > leadingZero tMinute >> > leadingZero tSecond >> > >> > put tYear & "-" & tMonth & "-" & tDay && tHour & ":" & tMinute & ":" >> & tSecond into tTimeStamp >> > return tTimeStamp >> > end timeStamp >> > >> > on leadingZero @pDateItem >> > if the length of pDateItem = 1 then >> > put "0" before pDateItem >> > end if >> > end leadingZero >> > >> > >> > A new date/time format of "database" would be useful for something like >> this. >> > >> > --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 >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Mon Oct 16 14:16:50 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 16 Oct 2017 14:16:50 -0400 Subject: quicken dates Message-ID: Way back in the day, Quicken allowed all kinds of shenanigans with dates It allowed a variety of delimiters It allowed pseudo-dates: 20 -- 20th of the current month 10/20 -- 10/20/current year + -- tomorrow m -- first of this month h -- last of this month etc. I really like this, because it makes it much easier than trying to look at a calendar all the time, so I wrote my own version, that expands on the idea: function quickenDate what /* Returns current date if sent an empty string Returns empty if can't figure out what "what" is supposed to be Delimiter can be ".", "/", ";", or comma Date can be in m/d/y, m/d, or just d format Also accepts (upper or lower case) T - (T)oday M - First day of (M)onth H - Last day of mont(H) W - First day of (W)eek K - Last day of wee(K) Y - First day of (Y)ear R - Last day of yea(R) + - tomorrow +x, where x is an integer, x days from today - - yesterday -x where x is an integer, x days before today */ if what is empty then return the short date # you got a better idea? put the short date into currentDateInDateItems convert currentDateInDateItems to dateItems #y,m,d,h(24 format),m,s,daynum (0 sun, 6 sat) put item 1 of currentDateInDateItems into currentYear put item 2 of currentDateInDateItems into currentMonth if what="T" then #today put the short date into what else if what="Y" then #first day of year put "01/01/"¤tYear into what else if what="R" then #last day of year put "12/31/"¤tYear into what else if what="M" then # first of month put currentMonth&slash&"01"&slash¤tYear into what else if what="H" then # last day of month if currentMonth is 12 then put "12/31/"¤tYear into what else #not 12, # the easiest way to do this math is to get midnight on the first day of the following month and then move back a second and let LC do the math on what the date is # since otherwise we have to figure out the 30 days have september, blah, blah, blah, and leap years, blah, blah, blah. add 1 to item 2 of currentDateInDateItems #next month put "0" into item 3 of currentDateInDateItems #I love dateItems. How to figure out the last day of this month? Go to first day of next month and subtract 1, (making it a 0, e.g. 5/0/17 is 4/30/17) put currentDateInDateItems into what end if #currentMonth is 12 else if what is "W" then #first day of week #sunday is first day of week put last item of currentDateInDateItems into dayNumber subtract (dayNumber-1) from item 3 of currentDateInDateItems put currentDateInDateItems into what else if what is "K" then #last day of week #saturday is last day of week put last item of currentDateInDateItems into dayNumber add (7-dayNumber) to item 3 of currentDateInDateItems put currentDateInDateItems into what convert what to short date else if first char of what is "+" then #at least tomorrow, but if a nuber follows, then x days after today delete first char of what # "+" if what is empty then put 1 into what #"+" is tomorrow, i.e. +1 add what to item 3 of currentDateInDateItems put currentDateInDateItems into what else if first char of what is "-" then # at least yesterday, or if a number follows, then x days before today delete first char of what #"-" if what is empty then put 1 into what #"-" is yesterday, i.e. -1 subtract what from item 3 of currentDateInDateItems put currentDateInDateItems into what else # a date-ish string could be a date only or a month and a date, or a month and a date and a year # if what contains ";" then replace ";" with slash in what if what contains space then replace space with slash in what if what contains "." then replace "." with slash in what if what contains comma then replace comma with slash in what # and, if what doesn't contain any of those, comma will be the delimiter # set the itemDelimiter to slash # if the number of items in what is not 3 then put slash¤tYear after what # try adding a year, first if the number of items in what is not 3 then put currentMonth&slash before what # try adding the month, next # if what is not a date then put empty into what #error end if #what="T" convert what to short date return what end quickenDate -- 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 richmondmathewson at gmail.com Mon Oct 16 14:30:27 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 16 Oct 2017 21:30:27 +0300 Subject: Send "rawKeyUp" In-Reply-To: <6E1E943B-D04E-45A9-A3AD-E58F32A01A74@iotecdigital.com> References: <2bdd77e2-fe17-5ed8-1ee3-cb07af83a38b@gmail.com> <15f209b98c8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <15f20b527c0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <1646CB9E-ED1D-4DE1-8F74-52C10A6DB4A4@iotecdigital.com> <9e45bef1-4923-43bb-dfb4-72cae561c6d3@gmail.com> <6E1E943B-D04E-45A9-A3AD-E58F32A01A74@iotecdigital.com> Message-ID: <67d961eb-2f48-370c-8f47-f3e0e08abe8a@gmail.com> My experience is that adolescents have considerably less foibles than adults; merely that adolescents are honest enough to admit them openingly. However, what I meant was labelling a program with "don't do this" would produce the opposite with adolescents. Richmond. On 10/16/17 8:36 pm, Bob Sneidar via use-livecode wrote: > Adolescents are the perfect patients for this kind of thing. Better to train them how to use a thing properly than to try and get the thing to accomodate all their foibles. > > Bob S > > >> On Oct 16, 2017, at 10:20 , Richmond Mathewson via use-livecode wrote: >> >> That's OK in theory until you start thinking about adolescents . . . >> >> 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 capellan2000 at gmail.com Mon Oct 16 14:37:06 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 16 Oct 2017 14:37:06 -0400 Subject: Atkinson dither algorithm Message-ID: Hi Bob, Bob Sneidar wrote: > I didn't post any code I don't think, but I will certainly > take some credit for having done so! ;-) In fact, you are not late! :-D Please, take a look at the script of Atkinson Dither 04 (Fastest Version) and make it faster. How would you do this? Making the Functions Private (so they are not available in the message path)? Converting some variables to constants? (like the black and white pixels and many other variables that do not change at all inside the handler) The main difference between V04 and V03 of this handler is a single modification: An arithmetic operation like ADD: > add (tDifusionError) to tArray2[tNewKey] replaced all instances of PUT variable + variable into array like in this line: > put (tDifusionError) + tArray2[tNewKey] into tArray2[tNewKey] This single change speed the handler (in my own setup) by a whopping 33%. Just replacing "put" with "add" Please take a look! :-) (Download only the stack at the end of this thread) https://forums.livecode.com/viewtopic.php?f=10&p=159173#p159173 Al From ahsoftware at sonic.net Mon Oct 16 15:28:55 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 16 Oct 2017 12:28:55 -0700 Subject: Word recognition In-Reply-To: <8506563C-F389-4482-9B84-8C3CBEB5F791@knowlegistics.com> References: <8506563C-F389-4482-9B84-8C3CBEB5F791@knowlegistics.com> Message-ID: <49c864ff-9d0a-9b2c-25b6-29c1502cecd1@sonic.net> Peter, Hermann, Frans: >> Does anyone know of an implementation of an FFT function written in LiveCode? I've tried joneslib but this doesn't include FFT. I'm hoping to use FFTs as part of my attempt to compare 2 short sound clips of people speaking a single word. I'm trying to judge whether a single word spoken by 2 different people is the same word or not. Any advice or code that might help with this would be most welcome. Having recently embarked on a similar project, I'd recommend a python or lua interface to fftw rather than trying this in LiveCode. http://www.fftw.org/ -- Mark Wieder ahsoftware at gmail.com From capellan2000 at gmail.com Mon Oct 16 16:22:04 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 16 Oct 2017 16:22:04 -0400 Subject: Send "rawKeyUp" Message-ID: Hi Richmond, Richmond wrote: > My experience is that adolescents have considerably > less foibles than adults; merely that adolescents are > honest enough to admit them openingly. > However, what I meant was labelling a program with > "don't do this" would produce the opposite > with adolescents. In my experience, adult people with toxoplasmosis act exactly in the same way... :-( If you say them: "Don't to this or that because something worse would happen for sure" then... these persons would do exactly this and that, not because they needed to, but just to prove that you are wrong... :'-( Al From bobsneidar at iotecdigital.com Mon Oct 16 16:35:23 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 Oct 2017 20:35:23 +0000 Subject: Send "rawKeyUp" In-Reply-To: References: Message-ID: Toxoplasmosis is a parasitic infection spread by coming into contact with cat feces and ingesting the parasite. Nowhere in the symptoms is any description of mental disorder. Bob S > On Oct 16, 2017, at 13:22 , Alejandro Tejada via use-livecode wrote: > > In my experience, adult people with toxoplasmosis > act exactly in the same way... :-( From bobsneidar at iotecdigital.com Mon Oct 16 16:45:16 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 Oct 2017 20:45:16 +0000 Subject: quicken dates In-Reply-To: References: Message-ID: <0EDDA5E4-F742-4235-BD4B-528ED4786090@iotecdigital.com> Thanks Mike! I have something similar but limited in scope, where I can type in yesterday or tomorrow ot today and get the respective date. I will incorporate your method for all my date fields! Unfortunately there are a TON of line wrapping errors introduced by your pasted code. I'll have to sus it all out. Bob S > On Oct 16, 2017, at 11:16 , Mike Kerner via use-livecode wrote: > > Way back in the day, Quicken allowed all kinds of shenanigans with dates > It allowed a variety of delimiters > It allowed pseudo-dates: > 20 -- 20th of the current month > 10/20 -- 10/20/current year > + -- tomorrow > m -- first of this month > h -- last of this month > etc. > > I really like this, because it makes it much easier than trying to look at > a calendar all the time, so I wrote my own version, that expands on the > idea: > > function quickenDate what > /* > Returns current date if sent an empty string > Returns empty if can't figure out what "what" is supposed to be > > Delimiter can be ".", "/", ";", or comma > Date can be in m/d/y, m/d, or just d format > Also accepts (upper or lower case) > T - (T)oday > M - First day of (M)onth > H - Last day of mont(H) > W - First day of (W)eek > K - Last day of wee(K) > Y - First day of (Y)ear > R - Last day of yea(R) > + - tomorrow > +x, where x is an integer, x days from today > - - yesterday > -x where x is an integer, x days before today > */ > > if what is empty then return the short date # you got a better idea? > > put the short date into currentDateInDateItems > convert currentDateInDateItems to dateItems #y,m,d,h(24 > format),m,s,daynum (0 sun, 6 sat) > put item 1 of currentDateInDateItems into currentYear > put item 2 of currentDateInDateItems into currentMonth > > if what="T" then #today > put the short date into what > else if what="Y" then #first day of year > put "01/01/"¤tYear into what > else if what="R" then #last day of year > put "12/31/"¤tYear into what > else if what="M" then # first of month > put currentMonth&slash&"01"&slash¤tYear into what > else if what="H" then # last day of month > if currentMonth is 12 then > put "12/31/"¤tYear into what > else #not 12, # the easiest way to do this math is to get midnight on > the first day of the following month and then move back a second and let LC > do the math on what the date is > # since otherwise we have to figure out the 30 days > have september, blah, blah, blah, and leap years, blah, blah, blah. > add 1 to item 2 of currentDateInDateItems #next month > put "0" into item 3 of currentDateInDateItems #I love dateItems. > How to figure out the last day of this month? Go to first day of next > month and subtract 1, (making it a 0, e.g. 5/0/17 is 4/30/17) > put currentDateInDateItems into what > end if #currentMonth is 12 > else if what is "W" then #first day of week #sunday is first day of week > put last item of currentDateInDateItems into dayNumber > subtract (dayNumber-1) from item 3 of currentDateInDateItems > put currentDateInDateItems into what > else if what is "K" then #last day of week #saturday is last day of week > put last item of currentDateInDateItems into dayNumber > add (7-dayNumber) to item 3 of currentDateInDateItems > put currentDateInDateItems into what > convert what to short date > else if first char of what is "+" then #at least tomorrow, but if > a nuber follows, then x days after today > delete first char of what # "+" > if what is empty then put 1 into what #"+" is tomorrow, i.e. +1 > add what to item 3 of currentDateInDateItems > put currentDateInDateItems into what > else if first char of what is "-" then # at least yesterday, or if a > number follows, then x days before today > delete first char of what #"-" > if what is empty then put 1 into what #"-" is yesterday, i.e. -1 > subtract what from item 3 of currentDateInDateItems > put currentDateInDateItems into what > else # a date-ish string could be a date only or a month and a date, or > a month and a date and a year > # slash, a period, or a space> > if what contains ";" then replace ";" with slash in what > if what contains space then replace space with slash in what > if what contains "." then replace "." with slash in what > if what contains comma then replace comma with slash in what > # and, if what doesn't contain any of those, comma will be the > delimiter > # slash, a period, or a space> > > set the itemDelimiter to slash > > # > if the number of items in what is not 3 then put slash¤tYear > after what # try adding a year, first > if the number of items in what is not 3 then put currentMonth&slash > before what # try adding the month, next > # > > if what is not a date then put empty into what #error > end if #what="T" > > convert what to short date > return what > end quickenDate > > -- > 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 benr_mc at cogapp.com Mon Oct 16 16:58:13 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 16 Oct 2017 21:58:13 +0100 Subject: OAuth2 (LC 9) on mobile? In-Reply-To: <7973a20c-a9d6-7ba2-db8f-67bd8b47788f@cogapp.com> References: <37928db6-4057-9d2d-f31d-ff7466625d2a@cogapp.com> <7973a20c-a9d6-7ba2-db8f-67bd8b47788f@cogapp.com> Message-ID: <26311cc6-4078-201a-e3ff-cbc038b06da6@cogapp.com> Plot thickens - with the additional inclusions, I do indeed get a browser with an invitation to log in to, in my case, Dropbox. However after logging into Dropbox, and getting a page asking whether I approve connecting this app - touching the "allow" button has no effect. Has anyone else tried using Oauth2 on mobile, for Dropbox or anything else? Many thanks, Ben On 16/10/2017 16:07, Ben Rubinstein via use-livecode wrote: > OAuth2 does work on mobile - I needed to include the Browser widget in the > standalone. (The 'search for inclusions' doesn't know to include the Oauth2 > library, let alone the browser widget.) > > If anyone else finds themselves sometimes spending a long time going down a > path where the answer is to do with inclusions, I have two relevant feature > suggestions in LQCC - I'd be interested in comments: > http://quality.livecode.com/show_bug.cgi?id=20574 > http://quality.livecode.com/show_bug.cgi?id=18199 > > Ben > > On 13/10/2017 08:17, Ben Rubinstein via use-livecode wrote: >> Now that Greg's Oauth2 issue has been resolved, can I check whether anyone >> has seen the Oauth2 library work on mobile? I don't want to raise an LQCC if >> it's just me doing something wrong! >> >> thanks, >> >> Ben >> >> On 11/10/2017 17:19, Ben Rubinstein via use-livecode wrote: >>> To clarify, by "everything still works" I mean that the OAuth2 command >>> appears to have done "exit to top" without doing anything - but leaving the >>> whole screen dimmed out. So other controls on the card, although dim, work. >>> But no authorisation has happened. >>> >>> On 11/10/2017 17:02, Ben Rubinstein via use-livecode wrote: >>>> Does the new OAuth2 library in LC 9 work on mobile? Docs suggest it >>>> should, but testing on iPad I just get an interesting dimmed out effect on >>>> the stack - although in fact everything still works - where I would have >>>> expected a sheet or switching to Safari or some other way of displaying a >>>> web page. >>>> >>>> TIA, >>>> >>>> Ben >>>> > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 16 19:02:13 2017 From: monte at appisle.net (Monte Goulding) Date: Tue, 17 Oct 2017 10:02:13 +1100 Subject: OAuth2 (LC 9) on mobile? In-Reply-To: <26311cc6-4078-201a-e3ff-cbc038b06da6@cogapp.com> References: <37928db6-4057-9d2d-f31d-ff7466625d2a@cogapp.com> <7973a20c-a9d6-7ba2-db8f-67bd8b47788f@cogapp.com> <26311cc6-4078-201a-e3ff-cbc038b06da6@cogapp.com> Message-ID: > On 17 Oct 2017, at 7:58 am, Ben Rubinstein via use-livecode wrote: > > Plot thickens - with the additional inclusions, I do indeed get a browser with an invitation to log in to, in my case, Dropbox. > > However after logging into Dropbox, and getting a page asking whether I approve connecting this app - touching the "allow" button has no effect. > > Has anyone else tried using Oauth2 on mobile, for Dropbox or anything else? Sorry not to have replied sooner Ben? I think this is my fault :-( When I did OAuth2 I recall adding in some stuff for mobile but I actually can?t recall testing said stuff so it?s definitely feasible you are breaking new ground here. It sounds like the browser isn?t redirecting but it needs investigation. Could you open a report with your findings and we will look into it. Cheers Monte From capellan2000 at gmail.com Mon Oct 16 19:09:50 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 16 Oct 2017 19:09:50 -0400 Subject: Send "rawKeyUp" Message-ID: Hi Bob, Bob Sneidar wrote: > Nowhere in the symptoms is any description > of mental disorder. In fact, it does affect the behavior of SOME people. Take a look: https://www.salon.com/2015/03/27/the_parasite_made_me_do_it_how_a_common_infection_could_manipulate_our_behavior_partner/ In this blog, you could keep up to date about more recent developments and research about this parasite: http://toxoplasmaparasite.blogspot.com/ And this is quickly going off-topic. If you want, write me off list to continue this interesting conversation. I will tell you what the parasitologist Jaroslav Flegr told me when I write to him in his facebook account... Al From alex at tweedly.net Mon Oct 16 19:21:54 2017 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 17 Oct 2017 00:21:54 +0100 Subject: Atkinson dither algorithm In-Reply-To: References: Message-ID: <67ab3ba0-27dc-201e-42f6-aeb7021c5d25@tweedly.net> On 16/10/2017 19:37, Alejandro Tejada via use-livecode wrote: > Hi Bob, > > Bob Sneidar wrote: >> I didn't post any code I don't think, but I will certainly >> take some credit for having done so! ;-) > In fact, you are not late! :-D But I am too late - the file is called "...Final Version ..." :-) :-) Let's have a look anyway.... > Please, take a look at the script of > Atkinson Dither 04 (Fastest Version) > and make it faster. OK, did that :-) I've been aware of this interesting discussion, but had no time to look at it at all (until tonight). Sorry to be late to the party. I made a few changes, as follows: 1. (Just on principle). I would change all these reference to "char" to "byte" when we are really talking about bytes in binary data. Probably doesn't make any difference to performance - the engine will most likely realize that there aren't any Unicode strings involved - but it's just "right" to call them bytes, and to use the byte functions to manipulate them :-) 2. there's a function ImgToCh which extracts a single channel of data out the image data. It does this with a cute 'delete' method - but that is over-thinking the problem. You can (i.e. the engine can) access a single byte within a byte string in constant time (it's surely a single offset in the C library). so instead of > > repeat untiltempVar isempty > ? putchar1oftempVar aftertResult > ? deletechar1to4oftempVar > end repeat > we can simply do > > *repeat* withi = 1tothenumberofcharsintempVar step4* > ? put*bytei oftempVar aftertemp* > end* *repeat* > (I kept the initial delete to select which channel, just because it's so clever :-) - but that could have been removed and the repeat changed to *?? repeat* withi = tChannel+1tothenumberofcharsintempVar step4* * 3. The result of that function is then passed to another function that converts the byte string into a sequential array of numbers (and that's all that's done with the byte string). So those two should be combined into a single pass - to get : > > Function ImgToChToArrayNum2 tImageData, tChannel > ?? -- extract a single channel's data, and convert to sequential array > of numbers > ?? puttImageData intotempVar > ?? deletebyte1totChannel oftempVar > ?? putemptyintotResult > put0intotCounter > ?? repeat withi = 1tothenumberofbytesintempVar step4 > ????? add1totCounter > ????? putbytetonum(bytei oftempVar) intotResult[tCounter] > ?? end repeat > ?? returntResult > end ImgTochToArrayNum2 > This takes the time for this part of the whole process down from 250ms to about 75ms, and therefore the total process time down from around 750-800ms to 600-650ms (on my aging MBP). Trying repeated runs, the times do seem to vary more than usual - not sure why. I haven't tackled the second half (i.e. the actual dithering bit yet - maybe tomorrow). -- Alex. From alex at tweedly.net Mon Oct 16 20:08:38 2017 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 17 Oct 2017 01:08:38 +0100 Subject: Atkinson dither algorithm In-Reply-To: <67ab3ba0-27dc-201e-42f6-aeb7021c5d25@tweedly.net> References: <67ab3ba0-27dc-201e-42f6-aeb7021c5d25@tweedly.net> Message-ID: On 17/10/2017 00:21, Alex Tweedly via use-livecode wrote: Sorry about the horrible formatting on the last post... I'll try to find my Forum password and post the modified version there .... > > I haven't tackled the second half (i.e. the actual dithering bit yet - > maybe tomorrow). I can trim a few ms off this, but it's really not significant. Change the checks for being near the right hand side of the image from 'if's to a switch. Then,? after you've calculated and used tNewKey, change following lines like : > > *if* tPixelPosition modtImageWidth <> 1*then** > ??? put (tPixelPosition + tImageWidth - 1) into tNewKey** > ?? add*(tDifusionError) totArray2[tNewKey]* > end* *if* > to > > *if* tPixelPosition modtImageWidth <> 1*then** > ??? add*(tDifusionError) totArray2[tNewKey-1]* > end* *if* > but it really is nit-picking - only a tine saving. -- Alex. From MikeKerner at roadrunner.com Mon Oct 16 20:53:44 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 16 Oct 2017 20:53:44 -0400 Subject: quicken dates In-Reply-To: <0EDDA5E4-F742-4235-BD4B-528ED4786090@iotecdigital.com> References: <0EDDA5E4-F742-4235-BD4B-528ED4786090@iotecdigital.com> Message-ID: I'll email it to you off-list On Mon, Oct 16, 2017 at 4:45 PM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Thanks Mike! I have something similar but limited in scope, where I can > type in yesterday or tomorrow ot today and get the respective date. I will > incorporate your method for all my date fields! Unfortunately there are a > TON of line wrapping errors introduced by your pasted code. I'll have to > sus it all out. > > Bob S > > > > On Oct 16, 2017, at 11:16 , Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Way back in the day, Quicken allowed all kinds of shenanigans with dates > > It allowed a variety of delimiters > > It allowed pseudo-dates: > > 20 -- 20th of the current month > > 10/20 -- 10/20/current year > > + -- tomorrow > > m -- first of this month > > h -- last of this month > > etc. > > > > I really like this, because it makes it much easier than trying to look > at > > a calendar all the time, so I wrote my own version, that expands on the > > idea: > > > > function quickenDate what > > /* > > Returns current date if sent an empty string > > Returns empty if can't figure out what "what" is supposed to be > > > > Delimiter can be ".", "/", ";", or comma > > Date can be in m/d/y, m/d, or just d format > > Also accepts (upper or lower case) > > T - (T)oday > > M - First day of (M)onth > > H - Last day of mont(H) > > W - First day of (W)eek > > K - Last day of wee(K) > > Y - First day of (Y)ear > > R - Last day of yea(R) > > + - tomorrow > > +x, where x is an integer, x days from today > > - - yesterday > > -x where x is an integer, x days before today > > */ > > > > if what is empty then return the short date # you got a better idea? > > > > put the short date into currentDateInDateItems > > convert currentDateInDateItems to dateItems #y,m,d,h(24 > > format),m,s,daynum (0 sun, 6 sat) > > put item 1 of currentDateInDateItems into currentYear > > put item 2 of currentDateInDateItems into currentMonth > > > > if what="T" then #today > > put the short date into what > > else if what="Y" then #first day of year > > put "01/01/"¤tYear into what > > else if what="R" then #last day of year > > put "12/31/"¤tYear into what > > else if what="M" then # first of month > > put currentMonth&slash&"01"&slash¤tYear into what > > else if what="H" then # last day of month > > if currentMonth is 12 then > > put "12/31/"¤tYear into what > > else #not 12, # the easiest way to do this math is to get midnight > on > > the first day of the following month and then move back a second and let > LC > > do the math on what the date is > > # since otherwise we have to figure out the 30 days > > have september, blah, blah, blah, and leap years, blah, blah, blah. > > add 1 to item 2 of currentDateInDateItems #next month > > put "0" into item 3 of currentDateInDateItems #I love dateItems. > > How to figure out the last day of this month? Go to first day of next > > month and subtract 1, (making it a 0, e.g. 5/0/17 is 4/30/17) > > put currentDateInDateItems into what > > end if #currentMonth is 12 > > else if what is "W" then #first day of week #sunday is first day of > week > > put last item of currentDateInDateItems into dayNumber > > subtract (dayNumber-1) from item 3 of currentDateInDateItems > > put currentDateInDateItems into what > > else if what is "K" then #last day of week #saturday is last day of > week > > put last item of currentDateInDateItems into dayNumber > > add (7-dayNumber) to item 3 of currentDateInDateItems > > put currentDateInDateItems into what > > convert what to short date > > else if first char of what is "+" then #at least tomorrow, but if > > a nuber follows, then x days after today > > delete first char of what # "+" > > if what is empty then put 1 into what #"+" is tomorrow, i.e. +1 > > add what to item 3 of currentDateInDateItems > > put currentDateInDateItems into what > > else if first char of what is "-" then # at least yesterday, or if a > > number follows, then x days before today > > delete first char of what #"-" > > if what is empty then put 1 into what #"-" is yesterday, i.e. -1 > > subtract what from item 3 of currentDateInDateItems > > put currentDateInDateItems into what > > else # a date-ish string could be a date only or a month and a date, or > > a month and a date and a year > > # > slash, a period, or a space> > > if what contains ";" then replace ";" with slash in what > > if what contains space then replace space with slash in what > > if what contains "." then replace "." with slash in what > > if what contains comma then replace comma with slash in what > > # and, if what doesn't contain any of those, comma will be the > > delimiter > > # > slash, a period, or a space> > > > > set the itemDelimiter to slash > > > > # > > if the number of items in what is not 3 then put slash¤tYear > > after what # try adding a year, first > > if the number of items in what is not 3 then put currentMonth&slash > > before what # try adding the month, next > > # > > > > if what is not a date then put empty into what #error > > end if #what="T" > > > > convert what to short date > > return what > > end quickenDate > > > > -- > > On the first day, God created the heavens and the Earth > > On the second day, God created the oceans. > > On the third day, God put the animals on hold for a few hours, > > and did a little diving. > > And God said, "This is good." > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From capellan2000 at gmail.com Mon Oct 16 20:54:19 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 16 Oct 2017 20:54:19 -0400 Subject: Atkinson dither algorithm Message-ID: Hi Alex, This is Amazing! :-D Alex, your function saved another 34% in the running time of this handler! In retrospect, only now it seems very obvious that merging two functions could save more running time in this handler... but I just keep wondering: How far can we go merging functions to save milliseconds in our LiveCode handlers? This is an interesting question that could be answered exactly in milliseconds. By the way, I have to add a try structure to dismiss an error message: Function ImgToChToArrayNum2 tImageData, tChannel -- extract a single channel's data, and convert -- to sequential array of numbers by Alex Tweedly put tImageData into tempVar delete byte 1 to tChannel of tempVar put empty into tResult put 0 into tCounter repeat with i = 1 to the number of bytes in tempVar step 4 add 1 to tCounter try put bytetonum(byte i of tempVar) into tResult[tCounter] end try end repeat return tResult end ImgTochToArrayNum2 Alex Tweedly wrote: > I haven't tackled the second half (i.e. the actual dithering bit yet - > maybe tomorrow). Excellent! Thanks a lot for your time, Alex. Al From MikeKerner at roadrunner.com Mon Oct 16 21:11:09 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 16 Oct 2017 21:11:09 -0400 Subject: How to meet an integer In-Reply-To: <1EA5BE7D-7852-44C7-B77F-75111D8D1288@hyperhh.de> References: <1EA5BE7D-7852-44C7-B77F-75111D8D1288@hyperhh.de> Message-ID: you..one? On Mon, Oct 16, 2017 at 12:12 PM, hh via use-livecode < use-livecode at lists.runrev.com> wrote: > > JLG wrote: > > Until I met my husband, ALL my dates were zeros. > > You won. > > _______________________________________________ > use-livecode mailing list > use-livecode 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 stephen at barncard.com Mon Oct 16 23:19:17 2017 From: stephen at barncard.com (Stephen Barncard) Date: Mon, 16 Oct 2017 20:19:17 -0700 Subject: How to meet an integer In-Reply-To: References: <1EA5BE7D-7852-44C7-B77F-75111D8D1288@hyperhh.de> Message-ID: I never met an integer I didn't like. -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org On Mon, Oct 16, 2017 at 6:11 PM, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > you..one? > > On Mon, Oct 16, 2017 at 12:12 PM, hh via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > JLG wrote: > > > Until I met my husband, ALL my dates were zeros. > > > > You won. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 jacque at hyperactivesw.com Tue Oct 17 02:13:42 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 17 Oct 2017 01:13:42 -0500 Subject: How to meet an integer In-Reply-To: References: <1EA5BE7D-7852-44C7-B77F-75111D8D1288@hyperhh.de> Message-ID: <15f28f72370.2783.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I met 3, which is odd. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 16, 2017 10:21:40 PM Stephen Barncard via use-livecode wrote: > I never met an integer I didn't like. > > -- > Stephen Barncard - Sebastopol Ca. USA - > mixstream.org > > On Mon, Oct 16, 2017 at 6:11 PM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> you..one? >> >> On Mon, Oct 16, 2017 at 12:12 PM, hh via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> > > JLG wrote: >> > > Until I met my husband, ALL my dates were zeros. >> > >> > You won. >> > >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode 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 >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From preid at reidit.co.uk Tue Oct 17 05:14:29 2017 From: preid at reidit.co.uk (Peter Reid) Date: Tue, 17 Oct 2017 10:14:29 +0100 Subject: Android Sound Capture in WAV format In-Reply-To: References: Message-ID: <16274EB3-28CD-446F-8A78-1CA035A3F240@reidit.co.uk> Since Ali got sound capture for Android working, I'm trying to see if it's possible to output the sound in WAV format instead of MP4 format. I'm trying to compare 2 sounds (1 prepared previously against 1 captured on the Android device) and it seems to be easier to compare them if they are both uncompressed WAV files. Looking at the various parameters in the library, I can't see how to set it up to output in uncompressed WAV format. Here is the initialisation code I'm using: androidRecorderSetRecordInput "Mic" androidRecorderSetRecordCompressionType "AMR NB" androidRecorderSetRecordFormat "ThreeGPP" I can't see which alternatives for CompressionType (AMR NB) and Format (ThreeGPP) will give me uncompressed WAV files. Am I missing something or does the library need updating to support WAV (if this is possible)? Peter -- Peter Reid Loughborough, UK > On 16 Sep 2017, at 11:00am, use-livecode-request at lists.runrev.com wrote: > > Message: 1 > Date: Fri, 15 Sep 2017 11:53:17 +0000 > From: Ali Lloyd > To: How to use LiveCode > Subject: Re: Android Audio Playback & Recording > Message-ID: > > Content-Type: text/plain; charset="UTF-8" > > Hi All, > Firstly thanks to Peter Reid for discovering that the foreign bindings in > that blog post were out of date! I have updated the blog accordingly. I > took the liberty of tidying up the LCB code, and adding docs and a sample > stack - you can check them out here (for now) > https://github.com/livecode/livecode/pull/5941/files > > The library should be included in 9.0 DP 9. > > Cheers, > Ali > From dvglasgow at gmail.com Tue Oct 17 05:34:34 2017 From: dvglasgow at gmail.com (David V Glasgow) Date: Tue, 17 Oct 2017 10:34:34 +0100 Subject: OT Toxoplasmosis (was : Send "rawKeyUp") In-Reply-To: References: Message-ID: <0E603E7E-7019-4A3B-B652-43693DE7AAA5@gmail.com> https://www.frontiersin.org/articles/10.3389/fpsyt.2017.00037/full It has been a long standing slow burner in the schizophrenia literature! Best wishes, David Glasgow > On 16 Oct 2017, at 9:35 pm, Bob Sneidar via use-livecode wrote: > > Toxoplasmosis is a parasitic infection spread by coming into contact with cat feces and ingesting the parasite. Nowhere in the symptoms is any description of mental disorder. > > Bob S > > >> On Oct 16, 2017, at 13:22 , Alejandro Tejada via use-livecode wrote: >> >> In my experience, adult people with toxoplasmosis >> act exactly in the same way... :-( > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Tue Oct 17 07:36:40 2017 From: hh at hyperhh.de (hh) Date: Tue, 17 Oct 2017 13:36:40 +0200 Subject: How to meet an integer Message-ID: >> Mike K. wrote: >> On the first day, God created the heavens and the Earth >> On the second day, God created the oceans. >> On the third day, God put the animals on hold for a few hours, >> and did a little diving. And God said, "This is good." On the fourth day, at the dawn of numbers, God created the non-negative integers. And God said, "You are dates". From hh at hyperhh.de Tue Oct 17 07:36:47 2017 From: hh at hyperhh.de (hh) Date: Tue, 17 Oct 2017 13:36:47 +0200 Subject: Atkinson dither algorithm Message-ID: <02FB55A6-6A88-47B3-BD04-2DCA14154D23@hyperhh.de> @Alejandro and Alex. All that limit checking is not needed here. It is much faster, especially for fast images,to do a few unneeded additions than to do all these checks for each pixel. I translated my js-function into LC Script, using Alejandro's variable names and (inline) Alex's array creation method. See http://forums.livecode.com/viewtopic.php?p=159244#p159244 You certainly can improve this LCS script even more. In javascript this is so fast that even for large images there is no gain by 'optimization'. p.s. Al, you don't need a "try". Just use (where 3 = step-1) repeat with i = 1 to the number of bytes in tempVar - 3 step 4 From nabble at mad.pink Tue Oct 17 07:51:25 2017 From: nabble at mad.pink (pink) Date: Tue, 17 Oct 2017 04:51:25 -0700 (MST) Subject: Need Dropbox guidance Message-ID: <1508241085922-0.post@n4.nabble.com> So far, none of my attempts with the Dropbox script have been successful, with the exception of create folder. Basically I just want to create an invisible file as a save stack, upload it to a folder in dropbox and then be able to download it and put it into memory. So below is the script that I've most recently used. A file gets uploaded, but it isn't the actual stack I created, I've also tried uploading directly from the tLocalPath but that returns an error. Any suggestions? put "testdata7" into tName put specialfolderpath("desktop") & "/" & tName & ".mpk" into tLocalPath put "/mptest/" & tName & ".livecode" into tDBpath create invisible stack tName set the testingMeData of stack tName to "123456abc" dropboxUpload myToken, tDBPath, "overwrite", false, false, tName clear stack tName dropboxDownload myToken, tDBpath ----- --- Greg (pink) Miller mad, pink and dangerous to code -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From MikeKerner at roadrunner.com Tue Oct 17 08:55:16 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 17 Oct 2017 08:55:16 -0400 Subject: Need Dropbox guidance In-Reply-To: <1508241085922-0.post@n4.nabble.com> References: <1508241085922-0.post@n4.nabble.com> Message-ID: I'm mostly converted to the LC library, and everything seems to be working. Best options to try: 1) Download Gerard's original stack, and see what works and what breaks (and what the responses are). https://github.com/macMikey/dropboxapi_v2. This is my default choice as I have learned a lot beating on his stack. 2) lc's dropbox library has a couple of unpatched issues. One of those is only returning half of the error message when there is a failure. You can download my pathced version here: https://github.com/macMikey/LCDropboxLibrary. 2.1) If you choose to download and use my patched version, either copy/paste the script into your stack script so that it overrides LC's library, or add it as a substack/library in 8. 2.2) After the upload and download lines in your script, check both it and the result. What do those say? 2.3 does mptest already exist at / on your dropbox store? If it doesn't, you have to create the folder. 2.4 don't forget that dropboxDownload puts the contents of the file into it. You have to create the file afterwards. On Tue, Oct 17, 2017 at 7:51 AM, pink via use-livecode < use-livecode at lists.runrev.com> wrote: > So far, none of my attempts with the Dropbox script have been successful, > with the exception of create folder. > > Basically I just want to create an invisible file as a save stack, upload > it > to a folder in dropbox and then be able to download it and put it into > memory. > > So below is the script that I've most recently used. A file gets uploaded, > but it isn't the actual stack I created, I've also tried uploading directly > from the tLocalPath but that returns an error. > > Any suggestions? > > put "testdata7" into tName > put specialfolderpath("desktop") & "/" & tName & ".mpk" into tLocalPath > put "/mptest/" & tName & ".livecode" into tDBpath > > create invisible stack tName > set the testingMeData of stack tName to "123456abc" > dropboxUpload myToken, tDBPath, "overwrite", false, false, tName > clear stack tName > > dropboxDownload myToken, tDBpath > > > > > > ----- > --- > Greg (pink) Miller > mad, pink and dangerous to code > -- > 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 > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Tue Oct 17 08:57:41 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 17 Oct 2017 08:57:41 -0400 Subject: How to meet an integer In-Reply-To: References: Message-ID: golfclap for hh. bravo. ish. On Tue, Oct 17, 2017 at 7:36 AM, hh via use-livecode < use-livecode at lists.runrev.com> wrote: > >> Mike K. wrote: > >> On the first day, God created the heavens and the Earth > >> On the second day, God created the oceans. > >> On the third day, God put the animals on hold for a few hours, > >> and did a little diving. And God said, "This is good." > > On the fourth day, at the dawn of numbers, God created the > non-negative integers. And God said, "You are dates". > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Tue Oct 17 10:49:59 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 17 Oct 2017 14:49:59 +0000 Subject: How to meet an integer In-Reply-To: References: <1EA5BE7D-7852-44C7-B77F-75111D8D1288@hyperhh.de> Message-ID: <897AB55A-5D8F-40FC-BD64-ECE6EE6E9AD1@iotecdigital.com> I only associate with the positive ones. Bob S > On Oct 16, 2017, at 20:19 , Stephen Barncard via use-livecode wrote: > > I never met an integer I didn't like. > > -- > Stephen Barncard - Sebastopol Ca. USA - > mixstream.org From ali.lloyd at livecode.com Tue Oct 17 11:05:42 2017 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Tue, 17 Oct 2017 15:05:42 +0000 Subject: Android Sound Capture in WAV format In-Reply-To: <16274EB3-28CD-446F-8A78-1CA035A3F240@reidit.co.uk> References: <16274EB3-28CD-446F-8A78-1CA035A3F240@reidit.co.uk> Message-ID: Hi Peter, The Android MediaRecorder class does not support WAV unfortunately. There may be some third party libraries you could use to achieve this - including third party jar files will be possible once this PR is merged: https://github.com/livecode/livecode/pull/6059 On Tue, Oct 17, 2017 at 10:14 AM Peter Reid via use-livecode < use-livecode at lists.runrev.com> wrote: > Since Ali got sound capture for Android working, I'm trying to see if it's > possible to output the sound in WAV format instead of MP4 format. I'm > trying to compare 2 sounds (1 prepared previously against 1 captured on the > Android device) and it seems to be easier to compare them if they are both > uncompressed WAV files. Looking at the various parameters in the library, > I can't see how to set it up to output in uncompressed WAV format. Here is > the initialisation code I'm using: > > androidRecorderSetRecordInput "Mic" > androidRecorderSetRecordCompressionType "AMR NB" > androidRecorderSetRecordFormat "ThreeGPP" > > I can't see which alternatives for CompressionType (AMR NB) and Format > (ThreeGPP) will give me uncompressed WAV files. Am I missing something or > does the library need updating to support WAV (if this is possible)? > > Peter > -- > Peter Reid > Loughborough, UK > > > On 16 Sep 2017, at 11:00am, use-livecode-request at lists.runrev.com wrote: > > > > Message: 1 > > Date: Fri, 15 Sep 2017 11:53:17 +0000 > > From: Ali Lloyd > > To: How to use LiveCode > > Subject: Re: Android Audio Playback & Recording > > Message-ID: > > < > CAJR0Q1jJp_yD819UBjWBmJMZwB+2Z5SMiaetJ1DWKFHH_611cQ at mail.gmail.com> > > Content-Type: text/plain; charset="UTF-8" > > > > Hi All, > > Firstly thanks to Peter Reid for discovering that the foreign bindings in > > that blog post were out of date! I have updated the blog accordingly. I > > took the liberty of tidying up the LCB code, and adding docs and a sample > > stack - you can check them out here (for now) > > https://github.com/livecode/livecode/pull/5941/files > > > > The library should be included in 9.0 DP 9. > > > > Cheers, > > Ali > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From hh at hyperhh.de Tue Oct 17 11:16:51 2017 From: hh at hyperhh.de (hh) Date: Tue, 17 Oct 2017 17:16:51 +0200 Subject: How to meet an integer Message-ID: <8A53F5C6-0D71-45D1-8091-CD5423A4D982@hyperhh.de> What is your problem, Mike? > Mike K. wrote: > golfclap for hh. bravo. ish. > hhwrote: > >> Mike K. wrote: > >> On the first day, God created the heavens and the Earth > >> On the second day, God created the oceans. > >> On the third day, God put the animals on hold for a few hours, > >> and did a little diving. And God said, "This is good." > > On the fourth day, at the dawn of numbers, God created the > non-negative integers. And God said, "You are dates". From dvglasgow at gmail.com Tue Oct 17 12:48:35 2017 From: dvglasgow at gmail.com (David V Glasgow) Date: Tue, 17 Oct 2017 17:48:35 +0100 Subject: How to meet an integer In-Reply-To: <8A53F5C6-0D71-45D1-8091-CD5423A4D982@hyperhh.de> References: <8A53F5C6-0D71-45D1-8091-CD5423A4D982@hyperhh.de> Message-ID: <6D8889AD-ABBA-45EA-A90C-C0E536752E09@gmail.com> Only a fraction improper? > On 17 Oct 2017, at 4:16 pm, hh via use-livecode wrote: > > What is your problem, Mike? > >> Mike K. wrote: >> golfclap for hh. bravo. ish. > >> hhwrote: >>>> Mike K. wrote: >>>> On the first day, God created the heavens and the Earth >>>> On the second day, God created the oceans. >>>> On the third day, God put the animals on hold for a few hours, >>>> and did a little diving. And God said, "This is good." >> >> On the fourth day, at the dawn of numbers, God created the >> non-negative integers. And God said, "You are dates". > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From capellan2000 at gmail.com Tue Oct 17 14:13:49 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 17 Oct 2017 14:13:49 -0400 Subject: Atkinson dither algorithm Message-ID: Hermann, your script version won the LiveCode Script speed contest! :-) I feel humbled and grateful that many of you have taken time to look at this. Although an image dithering algorithm seems trivial an barely useful, the fact is that in this thread, we have pushed Livecode script almost to it's speed limits. After we reach Livecode scripts natural limits, the next step is 1) creating a command line application, or 2) building an external, or (like Hermann demonstrated) 3) using Javascript within the browser widget or 4) the next frontier: Livecode widgets. This platform does not lack options to get the job done. It just require time and expertise to select the best options for each phase of a particular project. Later today, after I finished testing an application in different computers, will update the forum final's stack version with Alex and Hermann scripts. Thanks a lot again! :-D Al From richmondmathewson at gmail.com Tue Oct 17 14:21:53 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 17 Oct 2017 21:21:53 +0300 Subject: OT Toxoplasmosis (was : Send "rawKeyUp") In-Reply-To: <0E603E7E-7019-4A3B-B652-43693DE7AAA5@gmail.com> References: <0E603E7E-7019-4A3B-B652-43693DE7AAA5@gmail.com> Message-ID: <5742e08e-2a90-f1cb-f658-66a25157f02d@gmail.com> I, at least, often feel slightly schizophrenic about LiveCode :) I had toxoplasmosis in 1988; caught when working with the Egyptian Police in the Sinai: had about 3 months in bed feeling weak and peculiar (I would not recommend it ot any one, not even my worse enemy), and eating an entertaining collection of pills: never went any more bonkers than I have always been. --------- I am NOT going to rely on end-users doing what I instruct them; because most of them either won't or won't understand my directions; so I will ALWAYS either build safe-guards into my code, or not release anything at all. Richmond. On 10/17/17 12:34 pm, David V Glasgow via use-livecode wrote: > https://www.frontiersin.org/articles/10.3389/fpsyt.2017.00037/full > > It has been a long standing slow burner in the schizophrenia literature! > > Best wishes, > > David Glasgow > > >> On 16 Oct 2017, at 9:35 pm, Bob Sneidar via use-livecode wrote: >> >> Toxoplasmosis is a parasitic infection spread by coming into contact with cat feces and ingesting the parasite. Nowhere in the symptoms is any description of mental disorder. >> >> Bob S >> >> >>> On Oct 16, 2017, at 13:22 , Alejandro Tejada via use-livecode wrote: >>> >>> In my experience, adult people with toxoplasmosis >>> act exactly in the same way... :-( >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From capellan2000 at gmail.com Tue Oct 17 15:42:12 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 17 Oct 2017 15:42:12 -0400 Subject: OT Toxoplasmosis (was : Send "rawKeyUp") Message-ID: By the way, now that we are talking off the record about off-topic themes, let me ask a question: Richmond, Have you installed SVG Multicolor widget? This widget could help a lot with your current projects. Please, download and install from this forum thread: http://forums.livecode.com/viewtopic.php?f=93&t=27811 Al From jacque at hyperactivesw.com Tue Oct 17 16:26:24 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 17 Oct 2017 15:26:24 -0500 Subject: OT Toxoplasmosis (was : Send "rawKeyUp") In-Reply-To: References: Message-ID: On 10/17/17 2:42 PM, Alejandro Tejada via use-livecode wrote: > By the way, now that we are talking off the record > about off-topic themes, let me ask a question: > > Richmond, Have you installed SVG Multicolor > widget? > > This widget could help a lot with your current > projects. Please, download and install from this > forum thread: > http://forums.livecode.com/viewtopic.php?f=93&t=27811 There are several downloads in that thread. Which one is best? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From hh at hyperhh.de Tue Oct 17 16:45:35 2017 From: hh at hyperhh.de (hh) Date: Tue, 17 Oct 2017 22:45:35 +0200 Subject: OT Toxoplasmosis (was : Send "rawKeyUp") Message-ID: <7CC800CD-38DE-4076-8105-5D32E104B6ED@hyperhh.de> Additionally to that: On Thu at 3.30PM BST there is a LC Global talk by Mark Waddingham: "Building an SVG widget". Certainly with a new widget attached. From brahma at hindu.org Tue Oct 17 18:54:25 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 17 Oct 2017 22:54:25 +0000 Subject: iOS 11.0.3 No Sound? Mobile player broken? Message-ID: <86837734-4866-4CAA-9FBE-761998472103@hindu.org> We are getting reports from iOS users that after their recent upgrade to iOS 11.0.3 "After updating my iPhone this past weekend I've discovered that the sound is not working on either of your two apps." Now, this can't be a Livecode problem because one app is made with LC and the with ionic/Angular 2? i.e. 100% html5. Anyone have insights? BR From capellan2000 at gmail.com Tue Oct 17 21:41:52 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 17 Oct 2017 21:41:52 -0400 Subject: OT Toxoplasmosis (was : Send "rawKeyUp") Message-ID: Hi Jacque, Jacqueline Landman Gay wrote: > There are several downloads in that thread. > Which one is best? I am using Mark's version downloaded from his dropbox folder, probably it's similar to this version: http://forums.livecode.com/viewtopic.php?f=93&t=27811&start=30#p154437 By the way, in the forum I posted a LC8 stack with a clock that uses this widget as rotating hands: https://forums.livecode.com/viewtopic.php?f=10&t=29999 Al From paul at whitefeather.com Wed Oct 18 04:27:15 2017 From: paul at whitefeather.com (Paul Foraker) Date: Wed, 18 Oct 2017 01:27:15 -0700 Subject: Clipboard pastes into single spreadsheet cell Message-ID: On a Mac with LC 8.6.1 (Community) Tabs coming from LiveCode are converted to spaces when pasted to a Google spreadsheet, but are not converted when pasting from BBEdit. I'm collecting data into a tab-delimited row (line) and putting it on the Clipboard, then pasting the row into a Google spreadsheet. For example: *put theData["Date"] &tab& theData["First name"] \* *&tab& theData["Surname"] into theRow* *set the ClipboardData["text"] to theRow* When I go to a Google Spreadsheet, click in an empty cell and paste, the tabs are ignored (converted to spaces) and the entire row gets pasted into the single cell as space-delimited. I have discovered a workaround. If I first paste from LiveCode to BBEdit (the tabs are recognized) and then copy and paste from BBEdit to the spreadsheet, the tabs are OK and the data populates into separate cells. I've tried this with Safari, Firefox, and Chrome, so the problem isn't browser-specific. I don't want to ask my end-user to paste into another application before pasting into the spreadsheet. Anyone know of a fix for this? -- Paul -- White Feather Software www.whitefeather.com Cell: 408-391-1480 From ali.lloyd at livecode.com Wed Oct 18 05:44:11 2017 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Wed, 18 Oct 2017 09:44:11 +0000 Subject: Android Sound Capture in WAV format In-Reply-To: References: <16274EB3-28CD-446F-8A78-1CA035A3F240@reidit.co.uk> Message-ID: I think this would make a nice example for my extensions session at LiveCode Global tomorrow. Here's the link for anyone not signed up! https://livecode.com/global/ On Tue, Oct 17, 2017 at 4:05 PM Ali Lloyd wrote: > Hi Peter, > The Android MediaRecorder class does not support WAV unfortunately. There > may be some third party libraries you could use to achieve this - including > third party jar files will be possible once this PR is merged: > https://github.com/livecode/livecode/pull/6059 > > > On Tue, Oct 17, 2017 at 10:14 AM Peter Reid via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Since Ali got sound capture for Android working, I'm trying to see if >> it's possible to output the sound in WAV format instead of MP4 format. I'm >> trying to compare 2 sounds (1 prepared previously against 1 captured on the >> Android device) and it seems to be easier to compare them if they are both >> uncompressed WAV files. Looking at the various parameters in the library, >> I can't see how to set it up to output in uncompressed WAV format. Here is >> the initialisation code I'm using: >> >> androidRecorderSetRecordInput "Mic" >> androidRecorderSetRecordCompressionType "AMR NB" >> androidRecorderSetRecordFormat "ThreeGPP" >> >> I can't see which alternatives for CompressionType (AMR NB) and Format >> (ThreeGPP) will give me uncompressed WAV files. Am I missing something or >> does the library need updating to support WAV (if this is possible)? >> >> Peter >> -- >> Peter Reid >> Loughborough, UK >> >> > On 16 Sep 2017, at 11:00am, use-livecode-request at lists.runrev.com >> wrote: >> > >> > Message: 1 >> > Date: Fri, 15 Sep 2017 11:53:17 +0000 >> > From: Ali Lloyd >> > To: How to use LiveCode >> > Subject: Re: Android Audio Playback & Recording >> > Message-ID: >> > < >> CAJR0Q1jJp_yD819UBjWBmJMZwB+2Z5SMiaetJ1DWKFHH_611cQ at mail.gmail.com> >> > Content-Type: text/plain; charset="UTF-8" >> > >> > Hi All, >> > Firstly thanks to Peter Reid for discovering that the foreign bindings >> in >> > that blog post were out of date! I have updated the blog accordingly. I >> > took the liberty of tidying up the LCB code, and adding docs and a >> sample >> > stack - you can check them out here (for now) >> > https://github.com/livecode/livecode/pull/5941/files >> > >> > The library should be included in 9.0 DP 9. >> > >> > Cheers, >> > Ali >> > >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From nabble at mad.pink Wed Oct 18 07:51:14 2017 From: nabble at mad.pink (pink) Date: Wed, 18 Oct 2017 04:51:14 -0700 (MST) Subject: Need Dropbox guidance In-Reply-To: References: <1508241085922-0.post@n4.nabble.com> Message-ID: <1508327474755-0.post@n4.nabble.com> With the upload, everything indicates that it is successful, but the file that exists is not correct, and it's size is way off. Again, I am uploading a stack that is in memory, what exactly do I need to put into "pData" in order to upload the file? example of my last upload: {"name": "mystack1.mpk", "path_lower": "/mptest/mystack1.mpk", "path_display": "/mptest/mystack1.mpk", "id": "id:-fozhdCOtmAAAAAAAAAAEQ", "client_modified": "2017-10-18T11:24:50Z", "server_modified": "2017-10-18T11:24:50Z", "rev": "a5d9e1493", "size": 34, "content_hash": "bc2bef46bb89315313ec80962ad1f533595bf2eb2231be92d437bd191ffd5d24"} ----- --- Greg (pink) Miller mad, pink and dangerous to code -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From MikeKerner at roadrunner.com Wed Oct 18 09:33:26 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 18 Oct 2017 09:33:26 -0400 Subject: Need Dropbox guidance In-Reply-To: <1508327474755-0.post@n4.nabble.com> References: <1508241085922-0.post@n4.nabble.com> <1508327474755-0.post@n4.nabble.com> Message-ID: How are you getting the stack into pData? I just tried this, and it worked: on mouseup answer file "" put it into theFile put url ("binfile:/"&thefile) into foo dropboxUpload oauthKey, "/foo.livecodescript", "add", true, false, foo answer "it:"&&it&&CR&CR&"the result:"&&the result end mouseup From capellan2000 at gmail.com Wed Oct 18 09:37:09 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 18 Oct 2017 09:37:09 -0400 Subject: Clipboard pastes into single spreadsheet cell Message-ID: Hi Paul, Paste this in a button (or the message box) and post back your results. Results after copying data from Livecode Results after pasting in BBEdit Results after copying text from BBEdit put base64encode(md5digest(the clipboarddata["text"])) & cr & the clipboarddata["text"] Al From bobsneidar at iotecdigital.com Wed Oct 18 10:34:31 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 Oct 2017 14:34:31 +0000 Subject: Clipboard pastes into single spreadsheet cell In-Reply-To: References: Message-ID: <6C112BC3-BF24-4F85-95DE-90DBBF7291E1@iotecdigital.com> That is a function of how Google Spreadsheet and BBEdit treat tabs, not the Livecode Clipboard. Bob S > On Oct 18, 2017, at 01:27 , Paul Foraker via use-livecode wrote: > > Tabs coming from LiveCode are converted to spaces when pasted to a Google > spreadsheet, but are not converted when pasting from BBEdit. From bobsneidar at iotecdigital.com Wed Oct 18 10:35:42 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 Oct 2017 14:35:42 +0000 Subject: Clipboard pastes into single spreadsheet cell In-Reply-To: References: Message-ID: <1394CBC7-5CFE-4953-804B-27A5F499541D@iotecdigital.com> If that is the case, then tabs in LC are not tabs, they are something else. Bob S > On Oct 18, 2017, at 01:27 , Paul Foraker via use-livecode wrote: > > I have discovered a workaround. If I first paste from LiveCode to BBEdit > (the tabs are recognized) and then copy and paste from BBEdit to the > spreadsheet, the tabs are OK and the data populates into separate cells. From gWolfgang at gaich.de Wed Oct 18 10:52:00 2017 From: gWolfgang at gaich.de (G.W.Gaich) Date: Wed, 18 Oct 2017 16:52:00 +0200 Subject: Clipboard pastes into single spreadsheet cell In-Reply-To: References: Message-ID: <81f13206-2e41-29e7-def9-ebcc2c5a38b6@gaich.de> I made a test: set the clipboarddata to 1 & tab & 2 & tab & 3 pasted into a google spreadsheet cell and three cells were filled as expected. Livecode 8.1.6 windows 7 firefox 56 perhaps it's a mac or browser thing Am 18.10.2017 um 10:27 schrieb Paul Foraker via use-livecode: > On a Mac with LC 8.6.1 (Community) > > Tabs coming from LiveCode are converted to spaces when pasted to a Google > spreadsheet, but are not converted when pasting from BBEdit. > > I'm collecting data into a tab-delimited row (line) and putting it on the > Clipboard, then pasting the row into a Google spreadsheet. For example: > > *put theData["Date"] &tab& theData["First name"] \* > *&tab& theData["Surname"] into theRow* > > *set the ClipboardData["text"] to theRow* > > > When I go to a Google Spreadsheet, click in an empty cell and paste, the > tabs are ignored (converted to spaces) and the entire row gets pasted into > the single cell as space-delimited. > > I have discovered a workaround. If I first paste from LiveCode to BBEdit > (the tabs are recognized) and then copy and paste from BBEdit to the > spreadsheet, the tabs are OK and the data populates into separate cells. > > I've tried this with Safari, Firefox, and Chrome, so the problem isn't > browser-specific. > > > I don't want to ask my end-user to paste into another application before > pasting into the spreadsheet. > > Anyone know of a fix for this? > > -- Paul > From capellan2000 at gmail.com Wed Oct 18 11:12:09 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 18 Oct 2017 11:12:09 -0400 Subject: Clipboard pastes into single spreadsheet cell In-Reply-To: References: Message-ID: I suspect that Unicode is working behind the scenes to produce the result that Paul is getting in his own MacOSX setup. Al On Wed, Oct 18, 2017 at 9:37 AM, Alejandro Tejada wrote: > Hi Paul, > > Paste this in a button (or the message box) and > post back your results. > > Results after copying data from Livecode > Results after pasting in BBEdit > Results after copying text from BBEdit > > put base64encode(md5digest(the clipboarddata["text"])) & cr & the > clipboarddata["text"] > > Al > > From bobsneidar at iotecdigital.com Wed Oct 18 11:22:04 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 Oct 2017 15:22:04 +0000 Subject: Clipboard pastes into single spreadsheet cell In-Reply-To: References: Message-ID: <61ED6728-8BCC-4E7D-B20C-6508405860D1@iotecdigital.com> That has been my suspicion all along since this began. Still, I think it is incumbent upon the other software developers to properly interpret the clipboard and respond accordingly. That of course, is a pipe dream, so I suppose it's now up to us the end developers to do the conversion. Is there an event we can trap for when text is copied in the script editor? Maybe we can put something in a frontscript that "cleans" the clipboarddata. Bob S > On Oct 18, 2017, at 08:12 , Alejandro Tejada via use-livecode wrote: > > I suspect that Unicode is working behind the scenes > to produce the result that Paul is getting in his own > MacOSX setup. > > Al From brahma at hindu.org Wed Oct 18 15:21:43 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Wed, 18 Oct 2017 19:21:43 +0000 Subject: OT: The future of Digital Dev/Design/Prototyping Message-ID: <8B977204-2536-45D6-B9AC-02E3DAC7581D@hindu.org> https://www.invisionapp.com/studio?utm_campaign=studio Dumps to Swift Of course as soon as the dev gets beyond the visual layer and deeper content requirements surface, this kind of tool hits the wall. But the UI/UX for developing the views is pretty powerful. Something similar that would "dump to livecode" would be awesome. From paul at whitefeather.com Wed Oct 18 16:17:54 2017 From: paul at whitefeather.com (Paul Foraker) Date: Wed, 18 Oct 2017 13:17:54 -0700 Subject: Clipboard pastes into single spreadsheet cell In-Reply-To: <61ED6728-8BCC-4E7D-B20C-6508405860D1@iotecdigital.com> References: <61ED6728-8BCC-4E7D-B20C-6508405860D1@iotecdigital.com> Message-ID: Results after copying data from LiveCode (string starts with a tab) 1hooIO16dbbNtjCvISrTzQ== 45539 TEST -- SEND TO PAUL IPST Results after pasting in BBEdit 1hooIO16dbbNtjCvISrTzQ== 45539 TEST -- SEND TO PAUL IPST After copying from BBEdit 1hooIO16dbbNtjCvISrTzQ== 45539 TEST -- SEND TO PAUL IPST On Wed, Oct 18, 2017 at 8:22 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > That has been my suspicion all along since this began. Still, I think it > is incumbent upon the other software developers to properly interpret the > clipboard and respond accordingly. That of course, is a pipe dream, so I > suppose it's now up to us the end developers to do the conversion. Is there > an event we can trap for when text is copied in the script editor? Maybe we > can put something in a frontscript that "cleans" the clipboarddata. > > Bob S > > > > On Oct 18, 2017, at 08:12 , Alejandro Tejada via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I suspect that Unicode is working behind the scenes > > to produce the result that Paul is getting in his own > > MacOSX setup. > > > > Al > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- White Feather Software www.whitefeather.com Cell: 408-391-1480 From jacque at hyperactivesw.com Wed Oct 18 17:17:01 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 18 Oct 2017 16:17:01 -0500 Subject: Clipboard pastes into single spreadsheet cell In-Reply-To: References: Message-ID: <2ce1705a-14ba-3539-daa6-5e6a03f545a8@hyperactivesw.com> It isn't just LC, a search shows this isn't an uncommon problem. I couldn't find an answer, but this suggests mime types: On 10/18/17 3:27 AM, Paul Foraker via use-livecode wrote: > On a Mac with LC 8.6.1 (Community) > > Tabs coming from LiveCode are converted to spaces when pasted to a Google > spreadsheet, but are not converted when pasting from BBEdit. > > I'm collecting data into a tab-delimited row (line) and putting it on the > Clipboard, then pasting the row into a Google spreadsheet. For example: > > *put theData["Date"] &tab& theData["First name"] \* > *&tab& theData["Surname"] into theRow* > > *set the ClipboardData["text"] to theRow* > > > When I go to a Google Spreadsheet, click in an empty cell and paste, the > tabs are ignored (converted to spaces) and the entire row gets pasted into > the single cell as space-delimited. > > I have discovered a workaround. If I first paste from LiveCode to BBEdit > (the tabs are recognized) and then copy and paste from BBEdit to the > spreadsheet, the tabs are OK and the data populates into separate cells. > > I've tried this with Safari, Firefox, and Chrome, so the problem isn't > browser-specific. > > > I don't want to ask my end-user to paste into another application before > pasting into the spreadsheet. > > Anyone know of a fix for this? > > -- Paul > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Oct 18 17:21:01 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 18 Oct 2017 16:21:01 -0500 Subject: Clipboard pastes into single spreadsheet cell In-Reply-To: <2ce1705a-14ba-3539-daa6-5e6a03f545a8@hyperactivesw.com> References: <2ce1705a-14ba-3539-daa6-5e6a03f545a8@hyperactivesw.com> Message-ID: <38b0105d-1d4c-d58e-1438-b7268c6c8a1b@hyperactivesw.com> On 10/18/17 4:17 PM, J. Landman Gay via use-livecode wrote: > It isn't just LC, a search shows this isn't an uncommon problem. I > couldn't find an answer, but this suggests mime types: > > > Also found this: -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From monte at appisle.net Wed Oct 18 18:41:18 2017 From: monte at appisle.net (Monte Goulding) Date: Thu, 19 Oct 2017 09:41:18 +1100 Subject: Clipboard pastes into single spreadsheet cell In-Reply-To: <6C112BC3-BF24-4F85-95DE-90DBBF7291E1@iotecdigital.com> References: <6C112BC3-BF24-4F85-95DE-90DBBF7291E1@iotecdigital.com> Message-ID: <8253FD43-B2F4-47F6-87B4-F73EFA2CF891@appisle.net> > On 19 Oct 2017, at 1:34 am, Bob Sneidar via use-livecode wrote: > > That is a function of how Google Spreadsheet and BBEdit treat tabs, not the Livecode Clipboard. > > Bob S > > >> On Oct 18, 2017, at 01:27 , Paul Foraker via use-livecode > wrote: >> >> Tabs coming from LiveCode are converted to spaces when pasted to a Google >> spreadsheet, but are not converted when pasting from BBEdit. I have a theory for you. I suspect that because when you copy text in LC then not only the plain text representation is put on the clipboard but also a html one, an rtf one and so on. Some apps might preferentially read the html one for example and in google sheets might be replaced with space to fit the html chunk to a single cell. So moral of the story is to either control what representations are placed on the clipboard by setting the appropriate array keys or tell users to use the Edit > Paste special > Paste values only menu. Cheers Monte From nabble at mad.pink Wed Oct 18 19:37:54 2017 From: nabble at mad.pink (pink) Date: Wed, 18 Oct 2017 16:37:54 -0700 (MST) Subject: Need Dropbox guidance In-Reply-To: References: <1508241085922-0.post@n4.nabble.com> <1508327474755-0.post@n4.nabble.com> Message-ID: <1508369874714-0.post@n4.nabble.com> THat worked... so now how do I download the file and save it? I tried doing the opposite, but the file I got didn't come out right. dropboxDownload myToken, "/data.livecode" put it into URL ("binfile:" & tFilePath) ----- --- Greg (pink) Miller mad, pink and dangerous to code -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From capellan2000 at gmail.com Wed Oct 18 20:46:07 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 18 Oct 2017 20:46:07 -0400 Subject: [OT] Myst and The Manhole Message-ID: Hi All, Before I catch some well deserved hours of sleep, I have to leave here, this video and article from a few weeks earlier: https://www.youtube.com/watch?v=hOGZNG8jA7Q http://www.businessinsider.com/photos-psychedelic-funhouse-george-rr-martin-2017-9 Why this interactive art project remembers me Cyan's games: Myst and The Manhole? Read your comments tomorrow. :-D Al From MikeKerner at roadrunner.com Wed Oct 18 21:05:08 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 18 Oct 2017 21:05:08 -0400 Subject: Need Dropbox guidance In-Reply-To: <1508369874714-0.post@n4.nabble.com> References: <1508241085922-0.post@n4.nabble.com> <1508327474755-0.post@n4.nabble.com> <1508369874714-0.post@n4.nabble.com> Message-ID: Well, I haven't been sending binary files, so check to see if what you get back is the same as what you sent up. The phx_dropbox library required encoding binary data. ALSO, don't you have to put a single slash after "binfile:"? I don't remember. On Wed, Oct 18, 2017 at 7:37 PM, pink via use-livecode < use-livecode at lists.runrev.com> wrote: > THat worked... so now how do I download the file and save it? > > I tried doing the opposite, but the file I got didn't come out right. > > dropboxDownload myToken, "/data.livecode" > put it into URL ("binfile:" & tFilePath) > > > > > ----- > --- > Greg (pink) Miller > mad, pink and dangerous to code > -- > 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 > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Thu Oct 19 08:23:54 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 19 Oct 2017 08:23:54 -0400 Subject: Clipboard pastes into single spreadsheet cell In-Reply-To: <8253FD43-B2F4-47F6-87B4-F73EFA2CF891@appisle.net> References: <6C112BC3-BF24-4F85-95DE-90DBBF7291E1@iotecdigital.com> <8253FD43-B2F4-47F6-87B4-F73EFA2CF891@appisle.net> Message-ID: What I discovered when I was fiddling around with this was that when I copy text from a text editor (ST, atom, BBE, TW), and check the fullClipboardData in LC, the only key is "text". The rtf, html, etc. are all missing (put the keys of the fullClipboardData). When I put something into the clipboard in LC, all of the keys are populated, and I haven't figured out how to remove those keys. Putting empty into those values does not seem to fix it. On Wed, Oct 18, 2017 at 6:41 PM, Monte Goulding via use-livecode < use-livecode at lists.runrev.com> wrote: > > > On 19 Oct 2017, at 1:34 am, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > That is a function of how Google Spreadsheet and BBEdit treat tabs, not > the Livecode Clipboard. > > > > Bob S > > > > > >> On Oct 18, 2017, at 01:27 , Paul Foraker via use-livecode < > use-livecode at lists.runrev.com > > wrote: > >> > >> Tabs coming from LiveCode are converted to spaces when pasted to a > Google > >> spreadsheet, but are not converted when pasting from BBEdit. > > I have a theory for you. > > I suspect that because when you copy text in LC then not only the plain > text representation is put on the clipboard but also a html one, an rtf one > and so on. Some apps might preferentially read the html one for example and > in google sheets might be replaced with space to fit the html chunk to > a single cell. So moral of the story is to either control what > representations are placed on the clipboard by setting the appropriate > array keys or tell users to use the Edit > Paste special > Paste values > only menu. > > 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 > -- 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 paul at whitefeather.com Thu Oct 19 09:18:40 2017 From: paul at whitefeather.com (Paul Foraker) Date: Thu, 19 Oct 2017 06:18:40 -0700 Subject: Clipboard pastes into single spreadsheet cell In-Reply-To: <81f13206-2e41-29e7-def9-ebcc2c5a38b6@gaich.de> References: <81f13206-2e41-29e7-def9-ebcc2c5a38b6@gaich.de> Message-ID: G.W., glad to hear it works OK on a PC. My end user will be using one. Thanks, -- Paul On Wed, Oct 18, 2017 at 7:52 AM, G.W.Gaich via use-livecode < use-livecode at lists.runrev.com> wrote: > I made a test: > > set the clipboarddata to 1 & tab & 2 & tab & 3 > > pasted into a google spreadsheet cell and three cells were filled as > expected. > > Livecode 8.1.6 > windows 7 > firefox 56 > > perhaps it's a mac or browser thing > > > Am 18.10.2017 um 10:27 schrieb Paul Foraker via use-livecode: > >> On a Mac with LC 8.6.1 (Community) >> >> Tabs coming from LiveCode are converted to spaces when pasted to a Google >> spreadsheet, but are not converted when pasting from BBEdit. >> >> I'm collecting data into a tab-delimited row (line) and putting it on the >> Clipboard, then pasting the row into a Google spreadsheet. For example: >> >> *put theData["Date"] &tab& theData["First name"] \* >> *&tab& theData["Surname"] into theRow* >> >> *set the ClipboardData["text"] to theRow* >> >> >> When I go to a Google Spreadsheet, click in an empty cell and paste, the >> tabs are ignored (converted to spaces) and the entire row gets pasted into >> the single cell as space-delimited. >> >> I have discovered a workaround. If I first paste from LiveCode to BBEdit >> (the tabs are recognized) and then copy and paste from BBEdit to the >> spreadsheet, the tabs are OK and the data populates into separate cells. >> >> I've tried this with Safari, Firefox, and Chrome, so the problem isn't >> browser-specific. >> >> >> I don't want to ask my end-user to paste into another application before >> pasting into the spreadsheet. >> >> Anyone know of a fix for this? >> >> -- 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 > -- White Feather Software www.whitefeather.com Cell: 408-391-1480 From paul at whitefeather.com Thu Oct 19 09:24:45 2017 From: paul at whitefeather.com (Paul Foraker) Date: Thu, 19 Oct 2017 06:24:45 -0700 Subject: Clipboard pastes into single spreadsheet cell In-Reply-To: References: <81f13206-2e41-29e7-def9-ebcc2c5a38b6@gaich.de> Message-ID: I just checked this in LC 7.1.1, running in High Sierra. It works as expected; the tabs survive into the spreadsheet. -- Paul On Thu, Oct 19, 2017 at 6:18 AM, Paul Foraker wrote: > G.W., glad to hear it works OK on a PC. My end user will be using one. > Thanks, > -- Paul > > On Wed, Oct 18, 2017 at 7:52 AM, G.W.Gaich via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I made a test: >> >> set the clipboarddata to 1 & tab & 2 & tab & 3 >> >> pasted into a google spreadsheet cell and three cells were filled as >> expected. >> >> Livecode 8.1.6 >> windows 7 >> firefox 56 >> >> perhaps it's a mac or browser thing >> >> >> Am 18.10.2017 um 10:27 schrieb Paul Foraker via use-livecode: >> >>> On a Mac with LC 8.6.1 (Community) >>> >>> Tabs coming from LiveCode are converted to spaces when pasted to a Google >>> spreadsheet, but are not converted when pasting from BBEdit. >>> >>> I'm collecting data into a tab-delimited row (line) and putting it on the >>> Clipboard, then pasting the row into a Google spreadsheet. For example: >>> >>> *put theData["Date"] &tab& theData["First name"] \* >>> *&tab& theData["Surname"] into theRow* >>> >>> *set the ClipboardData["text"] to theRow* >>> >>> >>> When I go to a Google Spreadsheet, click in an empty cell and paste, the >>> tabs are ignored (converted to spaces) and the entire row gets pasted >>> into >>> the single cell as space-delimited. >>> >>> I have discovered a workaround. If I first paste from LiveCode to BBEdit >>> (the tabs are recognized) and then copy and paste from BBEdit to the >>> spreadsheet, the tabs are OK and the data populates into separate cells. >>> >>> I've tried this with Safari, Firefox, and Chrome, so the problem isn't >>> browser-specific. >>> >>> >>> I don't want to ask my end-user to paste into another application before >>> pasting into the spreadsheet. >>> >>> Anyone know of a fix for this? >>> >>> -- 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 >> > > > > -- > > White Feather Software > www.whitefeather.com > Cell: 408-391-1480 <(408)%20391-1480> > > -- White Feather Software www.whitefeather.com Cell: 408-391-1480 From nabble at mad.pink Thu Oct 19 09:36:38 2017 From: nabble at mad.pink (pink) Date: Thu, 19 Oct 2017 06:36:38 -0700 (MST) Subject: Need Dropbox guidance In-Reply-To: References: <1508241085922-0.post@n4.nabble.com> <1508327474755-0.post@n4.nabble.com> <1508369874714-0.post@n4.nabble.com> Message-ID: <1508420198461-0.post@n4.nabble.com> I did have a slash in the value of tFilePath I'm starting to understand my confusion, we're not uploading and downloading files, but putting and getting data into/from files... which is definitely more useful for what I'm trying to do. Now I've got things working and it is making sense :) ----- --- Greg (pink) Miller mad, pink and dangerous to code -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From MikeKerner at roadrunner.com Thu Oct 19 09:46:40 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 19 Oct 2017 09:46:40 -0400 Subject: Need Dropbox guidance In-Reply-To: <1508420198461-0.post@n4.nabble.com> References: <1508241085922-0.post@n4.nabble.com> <1508327474755-0.post@n4.nabble.com> <1508369874714-0.post@n4.nabble.com> <1508420198461-0.post@n4.nabble.com> Message-ID: what was wrong with the previous try? On Thu, Oct 19, 2017 at 9:36 AM, pink via use-livecode < use-livecode at lists.runrev.com> wrote: > I did have a slash in the value of tFilePath > > I'm starting to understand my confusion, we're not uploading and > downloading > files, but putting and getting data into/from files... which is definitely > more useful for what I'm trying to do. Now I've got things working and it > is > making sense :) > > > > > > ----- > --- > Greg (pink) Miller > mad, pink and dangerous to code > -- > 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 > -- 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 Thu Oct 19 10:30:44 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 19 Oct 2017 14:30:44 +0000 Subject: [OT] Myst and The Manhole In-Reply-To: References: Message-ID: <5E528BB1-89CA-4983-89D9-0DFF3A76EE7F@iotecdigital.com> > http://www.businessinsider.com/photos-psychedelic-funhouse-george-rr-martin-2017-9 > Wait! I recognize that washing machine... AND THERE ARE MY MISSING SOCKS!!! Bob S From dunbarx at aol.com Thu Oct 19 13:54:27 2017 From: dunbarx at aol.com (dunbarx) Date: Thu, 19 Oct 2017 10:54:27 -0700 (MST) Subject: [OT] Myst and The Manhole In-Reply-To: References: Message-ID: <1508435667261-0.post@n4.nabble.com> My favorite was "Cosmic Osmo" Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From tom at makeshyft.com Thu Oct 19 14:37:58 2017 From: tom at makeshyft.com (Tom Glod) Date: Thu, 19 Oct 2017 14:37:58 -0400 Subject: Interview wtth inventor of hypercard Bill Atkinson Message-ID: Here is a great interview with Bill..... in which he reveals ....among other things...... that when he invented Hypercard he was .... http://post.spmailt.com/f/a/HEq2PBZqBCCKldkKRddr2A~~/AAGp3AA~/RgRbyiSwP0EIACzzE6KJEt5XA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18xYA01Mi4zOS4xODIuMjQ4QgoAADDx6FnrMSJ2Uh11c2UtbGl2ZWNvZGVAbGlzdHMucnVucmV2LmNvbQlRBAAAAABEK2h0dHBzOi8vd3d3LnlvdXR1YmUuY29tL3dhdGNoP3Y9NnRVV295MXRKa0VHAnt9 From capellan2000 at gmail.com Thu Oct 19 14:48:08 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 19 Oct 2017 14:48:08 -0400 Subject: [OT] Myst and The Manhole In-Reply-To: References: Message-ID: I remember Cosmic Osmo. :D Still today, this game is available from Steam gaming platform: http://store.steampowered.com/app/63620/Cosmic_Osmo_and_the_Worlds_Beyond_the_Mackerel/ and Archive.org running within the web browser in an emulated Mac Plus: https://archive.org/details/CosmicOsmoMacintosh Al On Wed, Oct 18, 2017 at 8:46 PM, Alejandro Tejada wrote: > Hi All, > > Before I catch some well deserved hours of sleep, > I have to leave here, this video and article from > a few weeks earlier: > > https://www.youtube.com/watch?v=hOGZNG8jA7Q > > http://www.businessinsider.com/photos-psychedelic- > funhouse-george-rr-martin-2017-9 > > Why this interactive art project remembers me Cyan's games: > Myst and The Manhole? > > Read your comments tomorrow. :-D > > Al > From capellan2000 at gmail.com Thu Oct 19 16:24:03 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 19 Oct 2017 16:24:03 -0400 Subject: Interview wtth inventor of hypercard Bill Atkinson Message-ID: Tom Glod wrote: > Here is a great interview with Bill..... in which he reveals .... > among other things...... that when he invented Hypercard he was .... If you ask Walter Cooke, he answers: "I too miss HyperCard, but I also used Xerox's Notecards software BEFORE Bill invented Apple's version for the Macintosh. Google "Xerox Notecards" to read some history of where the concept and OO implementation originated. Poor Xerox - they invented so much but couldn't market their way out of a wet paper bag. A lot of educators were very impressed with Notecards and wanted at their universities real bad. The military loved it for buiding real-time visual simulations. I wanted to use it for building bond trading software. Unfortunately Xerox workstation cost $30K apiece at that time! I remember arguing with Andy Hertzfeld at the '87 MacWorld Expo where HyperCard was announced and demoed on the sexy new Mac II. He was adamant that HyperCard bore no resemblance to Notecards, but grudgingly agreed that he HAD seen Notecards at Xerox and knew what it was. Hmmm.." https://apple.slashdot.org/story/04/03/31/1550216/hypercard-gone-for-good BUT if you ask Paul Heckel, he would say: "Zoomracks was first..." http://www.atarimagazines.com/startv2n3/hypercard.html And now that I remember Paul Heckel, read about his winning lawsuit against Apple for patent-infringement: http://www.nytimes.com/1989/12/20/business/apple-is-said-to-settle-suit.html Al From MikeKerner at roadrunner.com Thu Oct 19 16:48:12 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 19 Oct 2017 16:48:12 -0400 Subject: Interview wtth inventor of hypercard Bill Atkinson In-Reply-To: References: Message-ID: Wasn't yesterday VisiCalc's birthday? If ever there was a case of IP ripoff, it was that one. On Thu, Oct 19, 2017 at 4:24 PM, Alejandro Tejada via use-livecode < use-livecode at lists.runrev.com> wrote: > Tom Glod wrote: > > Here is a great interview with Bill..... in which he reveals .... > > among other things...... that when he invented Hypercard he was .... > > If you ask Walter Cooke, he answers: > > "I too miss HyperCard, but I also used Xerox's Notecards software BEFORE > Bill invented Apple's version for the Macintosh. > > Google "Xerox Notecards" to read some history of where the concept and OO > implementation originated. Poor Xerox - they invented so much but couldn't > market their way out of a wet paper bag. A lot of educators were very > impressed with Notecards and wanted at their universities real bad. The > military loved it for buiding real-time visual simulations. I wanted to use > it for building bond trading software. Unfortunately Xerox workstation cost > $30K apiece at that time! > > I remember arguing with Andy Hertzfeld at the '87 MacWorld Expo where > HyperCard was announced and demoed on the sexy new Mac II. He was adamant > that HyperCard bore no resemblance to Notecards, but grudgingly agreed that > he HAD seen Notecards at Xerox and knew what it was. Hmmm.." > > https://apple.slashdot.org/story/04/03/31/1550216/hypercard-gone-for-good > > BUT if you ask Paul Heckel, he would say: > "Zoomracks was first..." > > http://www.atarimagazines.com/startv2n3/hypercard.html > > And now that I remember Paul Heckel, read about his winning lawsuit against > Apple for patent-infringement: > http://www.nytimes.com/1989/12/20/business/apple-is-said- > to-settle-suit.html > > Al > _______________________________________________ > use-livecode mailing list > use-livecode 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 jacque at hyperactivesw.com Thu Oct 19 17:31:54 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 19 Oct 2017 16:31:54 -0500 Subject: [OT] Myst and The Manhole In-Reply-To: References: Message-ID: <173faf59-fb4b-e78b-a6a5-0cde83d71284@hyperactivesw.com> On 10/19/17 1:48 PM, Alejandro Tejada via use-livecode wrote: > I remember Cosmic Osmo. :D > > Still today, this game is available from Steam gaming platform: > http://store.steampowered.com/app/63620/Cosmic_Osmo_and_the_Worlds_Beyond_the_Mackerel/ That port (Windows only) was done in LiveCode. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From rawa at cyan.com Thu Oct 19 17:42:04 2017 From: rawa at cyan.com (Rich Watson) Date: Thu, 19 Oct 2017 14:42:04 -0700 Subject: [OT] Myst and The Manhole In-Reply-To: <173faf59-fb4b-e78b-a6a5-0cde83d71284@hyperactivesw.com> References: <173faf59-fb4b-e78b-a6a5-0cde83d71284@hyperactivesw.com> Message-ID: J. I was getting ready to post that, so I went to find our old emails to find out the dates. T'was published on GameTap on June 19th, 2008. I do not know if it is still available anywhere. :) RAWA Virus-free. www.avg.com <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> On Thu, Oct 19, 2017 at 2:31 PM, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > On 10/19/17 1:48 PM, Alejandro Tejada via use-livecode wrote: > >> I remember Cosmic Osmo. :D >> >> Still today, this game is available from Steam gaming platform: >> http://store.steampowered.com/app/63620/Cosmic_Osmo_and_the_ >> Worlds_Beyond_the_Mackerel/ >> > > That port (Windows only) was done in 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 Oct 19 17:42:10 2017 From: tom at makeshyft.com (Tom Glod) Date: Thu, 19 Oct 2017 17:42:10 -0400 Subject: Interview wtth inventor of hypercard Bill Atkinson In-Reply-To: References: Message-ID: I wasn't aware that there was objections and controversies when it comes to this.... everything has a deeper history than just the surface I guess..... Forgive my ignorance on the subject. Gonna leave this skeleton right where it is though. On Thu, Oct 19, 2017 at 4:48 PM, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > Wasn't yesterday VisiCalc's birthday? If ever there was a case of IP > ripoff, it was that one. > > On Thu, Oct 19, 2017 at 4:24 PM, Alejandro Tejada via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Tom Glod wrote: > > > Here is a great interview with Bill..... in which he reveals .... > > > among other things...... that when he invented Hypercard he was .... > > > > If you ask Walter Cooke, he answers: > > > > "I too miss HyperCard, but I also used Xerox's Notecards software BEFORE > > Bill invented Apple's version for the Macintosh. > > > > Google "Xerox Notecards" to read some history of where the concept and OO > > implementation originated. Poor Xerox - they invented so much but > couldn't > > market their way out of a wet paper bag. A lot of educators were very > > impressed with Notecards and wanted at their universities real bad. The > > military loved it for buiding real-time visual simulations. I wanted to > use > > it for building bond trading software. Unfortunately Xerox workstation > cost > > $30K apiece at that time! > > > > I remember arguing with Andy Hertzfeld at the '87 MacWorld Expo where > > HyperCard was announced and demoed on the sexy new Mac II. He was adamant > > that HyperCard bore no resemblance to Notecards, but grudgingly agreed > that > > he HAD seen Notecards at Xerox and knew what it was. Hmmm.." > > > > http://post.spmailt.com/f/a/ioIEMDuP10-XlG589Hs0Zg~~/AAGp3AA~/RgRbyk_cP0EIACz0hAuIUUJXA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18xYAw1Mi4zOS4yNi4xNDRCCgAAXBzpWct516ZSHXVzZS1saXZlY29kZUBsaXN0cy5ydW5yZXYuY29tCVEEAAAAAEQyaHR0cHM6Ly9hcHBsZS5zbGFzaGRvdC5vcmcvc3RvcnkvMDQvMDMvMzEvMTU1MDIxNi9HAnt9 > hypercard-gone-for-good > > > > BUT if you ask Paul Heckel, he would say: > > "Zoomracks was first..." > > > > http://post.spmailt.com/f/a/pBqWSS-9L0TY6juiDLxQgg~~/AAGp3AA~/RgRbyk_cP0EIACz0hAuIUUJXA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18xYAw1Mi4zOS4yNi4xNDRCCgAAXBzpWct516ZSHXVzZS1saXZlY29kZUBsaXN0cy5ydW5yZXYuY29tCVEEAAAAAEQ2aHR0cDovL3d3dy5hdGFyaW1hZ2F6aW5lcy5jb20vc3RhcnR2Mm4zL2h5cGVyY2FyZC5odG1sRwJ7fQ~~ > > > > And now that I remember Paul Heckel, read about his winning lawsuit > against > > Apple for patent-infringement: > > http://post.spmailt.com/f/a/GP1VFaIec0p7bLPgLJisoA~~/AAGp3AA~/RgRbyk_cP0EIACz0hAuIUUJXA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18xYAw1Mi4zOS4yNi4xNDRCCgAAXBzpWct516ZSHXVzZS1saXZlY29kZUBsaXN0cy5ydW5yZXYuY29tCVEEAAAAAEQ5aHR0cDovL3d3dy5ueXRpbWVzLmNvbS8xOTg5LzEyLzIwL2J1c2luZXNzL2FwcGxlLWlzLXNhaWQtRwJ7fQ~~ > > to-settle-suit.html > > > > Al > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://post.spmailt.com/f/a/L81QGJXBvzG00p2ScQ9uTw~~/AAGp3AA~/RgRbyk_cP0EIACz0hAuIUUJXA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18xYAw1Mi4zOS4yNi4xNDRCCgAAXBzpWct516ZSHXVzZS1saXZlY29kZUBsaXN0cy5ydW5yZXYuY29tCVEEAAAAAEQ1aHR0cDovL2xpc3RzLnJ1bnJldi5jb20vbWFpbG1hbi9saXN0aW5mby91c2UtbGl2ZWNvZGVHAnt9 > > > > > > -- > 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://post.spmailt.com/f/a/L81QGJXBvzG00p2ScQ9uTw~~/AAGp3AA~/RgRbyk_cP0EIACz0hAuIUUJXA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18xYAw1Mi4zOS4yNi4xNDRCCgAAXBzpWct516ZSHXVzZS1saXZlY29kZUBsaXN0cy5ydW5yZXYuY29tCVEEAAAAAEQ1aHR0cDovL2xpc3RzLnJ1bnJldi5jb20vbWFpbG1hbi9saXN0aW5mby91c2UtbGl2ZWNvZGVHAnt9 > From tom at makeshyft.com Thu Oct 19 17:47:19 2017 From: tom at makeshyft.com (Tom Glod) Date: Thu, 19 Oct 2017 17:47:19 -0400 Subject: Atkinson dither algorithm In-Reply-To: References: Message-ID: wow! my brain hurts. On Tue, Oct 17, 2017 at 2:13 PM, Alejandro Tejada via use-livecode < use-livecode at lists.runrev.com> wrote: > Hermann, your script version won the > LiveCode Script speed contest! :-) > > I feel humbled and grateful that many of you > have taken time to look at this. Although an > image dithering algorithm seems trivial an > barely useful, the fact is that in this thread, > we have pushed Livecode script almost to > it's speed limits. > > After we reach Livecode scripts natural limits, > the next step is > 1) creating a command line application, or > 2) building an external, or (like Hermann demonstrated) > 3) using Javascript within the browser widget or > 4) the next frontier: Livecode widgets. > > This platform does not lack options to get the job > done. It just require time and expertise to select > the best options for each phase of a particular project. > > Later today, after I finished testing an application in > different computers, will update the forum final's > stack version with Alex and Hermann scripts. > > Thanks a lot again! :-D > > Al > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://post.spmailt.com/f/a/V6GU5lCriQ9t-bb23opSXg~~/AAGp3AA~/RgRbylESP0EIACz0hNEHMqNXA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18xYA01Mi4zOS4xODIuMjQ4QgoAAJId6VlTFUhaUh11c2UtbGl2ZWNvZGVAbGlzdHMucnVucmV2LmNvbQlRBAAAAABENWh0dHA6Ly9saXN0cy5ydW5yZXYuY29tL21haWxtYW4vbGlzdGluZm8vdXNlLWxpdmVjb2RlRwJ7fQ~~ > From irog at mac.com Thu Oct 19 17:50:17 2017 From: irog at mac.com (Roger Guay) Date: Thu, 19 Oct 2017 14:50:17 -0700 Subject: Export GIF File Does Retain Frames of Animation Message-ID: <012E1248-C175-4D29-A23C-0758E21612CA@mac.com> I am importing gif animations into my project but find that when they are subsequently exported, they are just one frame of the original animation. Here is my code: export image ?myGif" to file "/Users/rogerguay/Desktop/?&"myGif2"&".gif" as gif Help please. Thanks, Roger From jacque at hyperactivesw.com Thu Oct 19 19:39:02 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 19 Oct 2017 18:39:02 -0500 Subject: [OT] Myst and The Manhole In-Reply-To: References: <173faf59-fb4b-e78b-a6a5-0cde83d71284@hyperactivesw.com> Message-ID: I had no idea you were lurking here. :) On 10/19/17 4:42 PM, Rich Watson via use-livecode wrote: > J. > > I was getting ready to post that, so I went to find our old emails to find > out the dates. > > T'was published on GameTap on June 19th, 2008. I do not know if it is still > available anywhere. > > :) > > RAWA -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From capellan2000 at gmail.com Thu Oct 19 21:03:50 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 19 Oct 2017 21:03:50 -0400 Subject: Atkinson dither algorithm Message-ID: Tom Glod wrote: > wow! my brain hurts. Still pending: 1) creating a command line application 2) compiling an external 3) building a widget In the forum thread, Hermann already demonstrated how to apply this algorithm using Javascript within the browser widget. But creating each one of these would be topic for another thread! :-) Al From m.schonewille at economy-x-talk.com Thu Oct 19 22:18:58 2017 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 20 Oct 2017 04:18:58 +0200 Subject: [OT] If you purchased the book recently... Message-ID: <65816aca-8d44-45bf-47da-6aea0b56fa9b@economy-x-talk.com> Hello list members, Have you purchased Programming LiveCode for the Real Beginner recently? Please, check your mail box (and your spam box) and find our e-mail message. We have asked you to confirm your postal mail address. We need you to reply before we can send you the book! If you confirm your address now, we'll send the book by the end of the week! -- Kind regards, Mark Schonewille http://economy-x-talk.com https://www.facebook.com/marksch Buy the most extensive book on the LiveCode language: http://livecodebeginner.economy-x-talk.com From irog at mac.com Thu Oct 19 22:53:12 2017 From: irog at mac.com (Roger Guay) Date: Thu, 19 Oct 2017 19:53:12 -0700 Subject: Export GIF File Does Retain Frames of Animation In-Reply-To: <012E1248-C175-4D29-A23C-0758E21612CA@mac.com> References: <012E1248-C175-4D29-A23C-0758E21612CA@mac.com> Message-ID: I meant does NOT retain . . . . > On Oct 19, 2017, at 2:50 PM, Roger Guay via use-livecode wrote: > > I am importing gif animations into my project but find that when they are subsequently exported, they are just one frame of the original animation. Here is my code: > > export image ?myGif" to file "/Users/rogerguay/Desktop/?&"myGif2"&".gif" as gif > > > Help please. > > Thanks, > > 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 bonnmike at gmail.com Thu Oct 19 23:55:29 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 19 Oct 2017 21:55:29 -0600 Subject: Export GIF File Does Retain Frames of Animation In-Reply-To: References: <012E1248-C175-4D29-A23C-0758E21612CA@mac.com> Message-ID: instead do this.. put img "myGif" into url ("binfile:Usersrogerguay/Desktop/myGif2.gif") just tried it here, and it seems to work. On Thu, Oct 19, 2017 at 8:53 PM, Roger Guay via use-livecode < use-livecode at lists.runrev.com> wrote: > I meant does NOT retain . . . . > > > On Oct 19, 2017, at 2:50 PM, Roger Guay via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I am importing gif animations into my project but find that when they > are subsequently exported, they are just one frame of the original > animation. Here is my code: > > > > export image ?myGif" to file "/Users/rogerguay/Desktop/?&"myGif2"&".gif" > as gif > > > > > > Help please. > > > > Thanks, > > > > 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 > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Oct 20 01:30:34 2017 From: irog at mac.com (Roger Guay) Date: Thu, 19 Oct 2017 22:30:34 -0700 Subject: Export GIF File Does Retain Frames of Animation In-Reply-To: References: <012E1248-C175-4D29-A23C-0758E21612CA@mac.com> Message-ID: Thank you, Mike. Works here too! Cheers, Roger > On Oct 19, 2017, at 8:55 PM, Mike Bonner via use-livecode wrote: > > instead do this.. > put img "myGif" into url ("binfile:Usersrogerguay/Desktop/myGif2.gif") > just tried it here, and it seems to work. > From jiml at netrin.com Fri Oct 20 11:26:19 2017 From: jiml at netrin.com (Jim Lambert) Date: Fri, 20 Oct 2017 08:26:19 -0700 Subject: [OT] Myst and The Manhole In-Reply-To: References: Message-ID: <57ADA93F-A861-4AD4-9BB8-9DFA7B12A7E0@netrin.com> Last year my wife and I visited Meow Wolf?s House of Eternal Return. It was clear there was a Myst-like puzzle at the heart of it. But we didn?t bother much trying to figure it out. It was just splendid fun to walk, dash, crawl, slide and climb through the wacky spaces. Even 67 year olds can get a kick out of climbing into a washing machine only to pop suddenly out of a refrigerator, much to the startled consternation of the people standing in the ?kitchen?. Jim Lambert From info at trevix.it Fri Oct 20 11:43:14 2017 From: info at trevix.it (trevix) Date: Fri, 20 Oct 2017 17:43:14 +0200 Subject: is a date Message-ID: How about this: function IsDate pDate, pSysDate if pSysDate then put char 3 of the short system dateformat into tDelimiter else put char 3 of the short dateformat into tDelimiter end if if tDelimiter is in pDate and pDate is a date then return true return false end IsDate trevix From rdimola at evergreeninfo.net Fri Oct 20 12:29:25 2017 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 20 Oct 2017 12:29:25 -0400 Subject: Mobile Device Physical Size In-Reply-To: References: Message-ID: <004601d349c0$9b4bf030$d1e3d090$@net> On Richards talk yesterday I brought this up and I am moving it to the list. Say you have 3 Android devices: 1) Phone sized. 2) Note sized. 3) Tablet sized. It is entirely possible that these 3 devices have the same(or close) number x/y of pixels. How can I determine the physical size of mobile devices? Web browsers are able to determine the device size or at least a phone vs. tablet. I would like to change the screen layout based on the physical size. I can determine a phone vs. tablet for Apple devices because of the limited number of iOS devices. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From richmondmathewson at gmail.com Fri Oct 20 13:36:51 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 20 Oct 2017 20:36:51 +0300 Subject: Interview wtth inventor of hypercard Bill Atkinson In-Reply-To: References: Message-ID: <54a75500-6f72-aa94-3cc3-31b47ef3229c@gmail.com> For every single Shakespeare play barring "The Merry Wives of Windsor" there is a play that Shakespeare "ripped-off". So, does that make him a plagiarist and a prize plonker? No, it doesn't, for the simple reason that the plays he ripped-off had crap dialogues and were second or third-rate: Auld Willie rejigged the dialogues, rejhigged the plots and produced marvellous things: he, to coin a phrase "did make silk purses out of pigs' ears". So, even if Bill Atkinson either intentionally or unintentionally ripped-off IBM's "whatever" (rather in the same sort of way MetaCard was a rip-off of Hypercard!!!!!!!!!), his Hypercard was something rather better, as the rip-off or HyperCard with a new front-end strapped on the front (i.e. LiveCode) is a bigger and better beast than either Hypercard or MetaCard ever were. While plagiarism is plagiarism is plagiarism is 100% shameless rip-off, plagiarism is JUST copying with nothing added or improved on,m and Hypercard, MetaCard and Revolution/LiveCode are not JUST copies, in each case there have been both incremental and large leaps which have taken them well beyond what they were supposedly "ripping off". Oh, and while we're here: in 1989 I was able to use a Windowing GUI on a BBC Master Compact that looked very similar indeed to what Apple was pushing at that time; both "ripped off" from IBM. Later on Microsoft, supposedly, ripped the Windows 95 GUI from Mac, and the Linux distros just helped themselves. Should we care? No, we shouldn't, because all that will happen is that a load of lawyers will get fat through pursuing parasitical legal cases. Let's just be VERY GRATEFUL indeed that people such as Bill Atkinson, Scott Rossi and Kevin Miller didn't spend hours agonising over nonsense like this and just got on with the job, whether on drugs at the time or not. Richmond. On 10/20/17 12:42 am, Tom Glod via use-livecode wrote: > I wasn't aware that there was objections and controversies when it comes to > this.... everything has a deeper history than just the surface I guess..... > > Forgive my ignorance on the subject. Gonna leave this skeleton right where > it is though. > > On Thu, Oct 19, 2017 at 4:48 PM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Wasn't yesterday VisiCalc's birthday? If ever there was a case of IP >> ripoff, it was that one. >> >> On Thu, Oct 19, 2017 at 4:24 PM, Alejandro Tejada via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Tom Glod wrote: >>>> Here is a great interview with Bill..... in which he reveals .... >>>> among other things...... that when he invented Hypercard he was .... >>> If you ask Walter Cooke, he answers: >>> >>> "I too miss HyperCard, but I also used Xerox's Notecards software BEFORE >>> Bill invented Apple's version for the Macintosh. >>> >>> Google "Xerox Notecards" to read some history of where the concept and OO >>> implementation originated. Poor Xerox - they invented so much but >> couldn't >>> market their way out of a wet paper bag. A lot of educators were very >>> impressed with Notecards and wanted at their universities real bad. The >>> military loved it for buiding real-time visual simulations. I wanted to >> use >>> it for building bond trading software. Unfortunately Xerox workstation >> cost >>> $30K apiece at that time! >>> >>> I remember arguing with Andy Hertzfeld at the '87 MacWorld Expo where >>> HyperCard was announced and demoed on the sexy new Mac II. He was adamant >>> that HyperCard bore no resemblance to Notecards, but grudgingly agreed >> that >>> he HAD seen Notecards at Xerox and knew what it was. Hmmm.." >>> >>> http://post.spmailt.com/f/a/ioIEMDuP10-XlG589Hs0Zg~~/AAGp3AA~/RgRbyk_cP0EIACz0hAuIUUJXA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18xYAw1Mi4zOS4yNi4xNDRCCgAAXBzpWct516ZSHXVzZS1saXZlY29kZUBsaXN0cy5ydW5yZXYuY29tCVEEAAAAAEQyaHR0cHM6Ly9hcHBsZS5zbGFzaGRvdC5vcmcvc3RvcnkvMDQvMDMvMzEvMTU1MDIxNi9HAnt9 >> hypercard-gone-for-good >>> BUT if you ask Paul Heckel, he would say: >>> "Zoomracks was first..." >>> >>> http://post.spmailt.com/f/a/pBqWSS-9L0TY6juiDLxQgg~~/AAGp3AA~/RgRbyk_cP0EIACz0hAuIUUJXA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18xYAw1Mi4zOS4yNi4xNDRCCgAAXBzpWct516ZSHXVzZS1saXZlY29kZUBsaXN0cy5ydW5yZXYuY29tCVEEAAAAAEQ2aHR0cDovL3d3dy5hdGFyaW1hZ2F6aW5lcy5jb20vc3RhcnR2Mm4zL2h5cGVyY2FyZC5odG1sRwJ7fQ~~ >>> >>> And now that I remember Paul Heckel, read about his winning lawsuit >> against >>> Apple for patent-infringement: >>> http://post.spmailt.com/f/a/GP1VFaIec0p7bLPgLJisoA~~/AAGp3AA~/RgRbyk_cP0EIACz0hAuIUUJXA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18xYAw1Mi4zOS4yNi4xNDRCCgAAXBzpWct516ZSHXVzZS1saXZlY29kZUBsaXN0cy5ydW5yZXYuY29tCVEEAAAAAEQ5aHR0cDovL3d3dy5ueXRpbWVzLmNvbS8xOTg5LzEyLzIwL2J1c2luZXNzL2FwcGxlLWlzLXNhaWQtRwJ7fQ~~ >>> to-settle-suit.html >>> >>> Al >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://post.spmailt.com/f/a/L81QGJXBvzG00p2ScQ9uTw~~/AAGp3AA~/RgRbyk_cP0EIACz0hAuIUUJXA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18xYAw1Mi4zOS4yNi4xNDRCCgAAXBzpWct516ZSHXVzZS1saXZlY29kZUBsaXN0cy5ydW5yZXYuY29tCVEEAAAAAEQ1aHR0cDovL2xpc3RzLnJ1bnJldi5jb20vbWFpbG1hbi9saXN0aW5mby91c2UtbGl2ZWNvZGVHAnt9 >>> >> >> >> -- >> 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://post.spmailt.com/f/a/L81QGJXBvzG00p2ScQ9uTw~~/AAGp3AA~/RgRbyk_cP0EIACz0hAuIUUJXA3NwY1gEAAAAAFkGc2hhcmVkYQdoZWxsb18xYAw1Mi4zOS4yNi4xNDRCCgAAXBzpWct516ZSHXVzZS1saXZlY29kZUBsaXN0cy5ydW5yZXYuY29tCVEEAAAAAEQ1aHR0cDovL2xpc3RzLnJ1bnJldi5jb20vbWFpbG1hbi9saXN0aW5mby91c2UtbGl2ZWNvZGVHAnt9 >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From capellan2000 at gmail.com Fri Oct 20 14:20:10 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 20 Oct 2017 14:20:10 -0400 Subject: Interview wtth inventor of hypercard Bill Atkinson Message-ID: Hi All, Being English my second language, frequently I have to read again (and reread some time after) many of the messages that I post in the mail list and in the forum. In the forum, we could simply edit, reedit and edit again any message until it means what we meant... but in the mail list that is not possible. After reading again my message about the origin of HyperCard, I found that it's easy, very easy, to understand that in my message I am dismissing Bill Atkinson's breakthrough as an intentional copy of previous works. That was NOT my intention. If Bill Atkinson says the he invented HyperCard under the effects of LSD, then we have to believe him... but when you read about any topic, it's logical and necessary to learn and analyze other people's opinions. I already written about Walter Cooke and Paul Helckel opinions, so here is my own opinion: HyperCard was so successful as an innovative breakthrough because it followed the natural path of technological progress. Hypercard was the next step in computer advancement. Who is credited with the conceptual foundation of HyperText? Vannevar Bush with his description of the "Memex": http://www.archivejournal.net/notes/as-we-may-now-think/ While Vannever Bush described a mechanical device, electronic engineers where already creating the foundations of computer science and demonstrating that numbers could represent and store texts, images and sounds: http://royal.pingdom.com/2008/04/08/the-history-of-computer-data-storage-in-pictures/ After the creation of text-only hypertext systems, https://en.wikipedia.org/wiki/Hypertext Which was the next logical step in technological progress? The creation of an Image and Text hypertext system. On Macintosh, it's name was HyperCard. Al From bobsneidar at iotecdigital.com Fri Oct 20 14:46:31 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 20 Oct 2017 18:46:31 +0000 Subject: is a date In-Reply-To: References: Message-ID: <43E2B6C7-73CD-4AF6-9239-D69CAA915A75@iotecdigital.com> Because Friday, October 20, 2017 is also a date. So is 2017-10-20. So is 2017/10/20. So is 17/10/20 amd 9/20/17. Bob S > On Oct 20, 2017, at 08:43 , trevix via use-livecode wrote: > > How about this: > > function IsDate pDate, pSysDate > > if pSysDate then > > put char 3 of the short system dateformat into tDelimiter > > else > > put char 3 of the short dateformat into tDelimiter > > end if > > if tDelimiter is in pDate and pDate is a date then return true > > return false > > end IsDate > > 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 richmondmathewson at gmail.com Fri Oct 20 14:51:04 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 20 Oct 2017 21:51:04 +0300 Subject: Interview wtth inventor of hypercard Bill Atkinson In-Reply-To: References: Message-ID: Ah widnae channer owermuch anent that Sudron is thon secont leid, monie o us hae it as war secont leid, forbye. I would not fuss a lot that English is your second language, a lot of us have it as our second language as well. An, eftir monie a towmond abune the Kinrick, Ah mynd Bulgarian is mair ma secont leid than the Sudron! Eftir aa, its mair yaisefou intil the gates oh ma life juist nou. And, after many years outwith the "UK", Bulgarian is fast becoming my second language instead of English. It is, after all, more useful in my daily life at present. Ah fair forjeskit that aa this has tae be in Sudron, as that leid is in ma hairns, but insnae in ma hairt. Richmond. On 10/20/17 9:20 pm, Alejandro Tejada via use-livecode wrote: > Hi All, > > Being English my second language, frequently I have to > read again (and reread some time after) many of the > messages that I post in the mail list and in the forum. > > In the forum, we could simply edit, reedit and edit again > any message until it means what we meant... but in the > mail list that is not possible. > > After reading again my message about the origin of HyperCard, > I found that it's easy, very easy, to understand that in my > message I am dismissing Bill Atkinson's breakthrough as > an intentional copy of previous works. > > That was NOT my intention. If Bill Atkinson says the he > invented HyperCard under the effects of LSD, then we have > to believe him... but when you read about any topic, it's logical > and necessary to learn and analyze other people's opinions. > > I already written about Walter Cooke and Paul Helckel opinions, > so here is my own opinion: > > HyperCard was so successful as an innovative breakthrough > because it followed the natural path of technological > progress. Hypercard was the next step in > computer advancement. > > Who is credited with the conceptual foundation of HyperText? > Vannevar Bush with his description of the "Memex": > http://www.archivejournal.net/notes/as-we-may-now-think/ > > While Vannever Bush described a mechanical device, > electronic engineers where already creating the foundations > of computer science and demonstrating that numbers could > represent and store texts, images and sounds: > http://royal.pingdom.com/2008/04/08/the-history-of-computer-data-storage-in-pictures/ > > After the creation of text-only hypertext systems, > https://en.wikipedia.org/wiki/Hypertext > Which was the next logical step in technological > progress? > > The creation of an Image and Text hypertext system. > On Macintosh, it's name was HyperCard. > > Al > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 20 14:51:43 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 20 Oct 2017 18:51:43 +0000 Subject: Interview wtth inventor of hypercard Bill Atkinson In-Reply-To: <54a75500-6f72-aa94-3cc3-31b47ef3229c@gmail.com> References: <54a75500-6f72-aa94-3cc3-31b47ef3229c@gmail.com> Message-ID: <5EFCCDCE-AED4-41E9-82EB-6F0A17C93A5F@iotecdigital.com> Actually, RunRev BOUGHT Metacard didn't they? So they owned it, which is why that is not plagiarism. But saying that a pure copy is the only form that can be called plagiarism doesn't hold water in a court of law. If it can be shown that enough sections of code are identical in form and function to the original, especially if it can be demonstrated that the original code was modified to produce the new, then THAT is plagiarism pure and simple. Bob S > On Oct 20, 2017, at 10:36 , Richmond Mathewson via use-livecode wrote: > > as the rip-off or HyperCard with a new front-end strapped on the front (i.e. LiveCode) is a bigger and > better beast than either Hypercard or MetaCard ever were. From richmondmathewson at gmail.com Fri Oct 20 14:55:48 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 20 Oct 2017 21:55:48 +0300 Subject: Interview wtth inventor of hypercard Bill Atkinson In-Reply-To: <5EFCCDCE-AED4-41E9-82EB-6F0A17C93A5F@iotecdigital.com> References: <54a75500-6f72-aa94-3cc3-31b47ef3229c@gmail.com> <5EFCCDCE-AED4-41E9-82EB-6F0A17C93A5F@iotecdigital.com> Message-ID: <4aeba199-b930-eedb-1e81-3c40bc0e9978@gmail.com> RunRev did buy Metacard, but not at the start. I believe (this is where Heather can put us ALL straight) RunRev was initially designed as an alternative interface (front-end/GUI) to the MeatCard one. I don't think RunRev ever plagiarised, especially as they always gave credit to Metacard. Now, wehter Supercard or Metacard plagiarised is not for me to say: and while the lawyers may, I don't really care: that was NOT the thrust of my post. Richmond. On 10/20/17 9:51 pm, Bob Sneidar via use-livecode wrote: > Actually, RunRev BOUGHT Metacard didn't they? So they owned it, which is why that is not plagiarism. But saying that a pure copy is the only form that can be called plagiarism doesn't hold water in a court of law. If it can be shown that enough sections of code are identical in form and function to the original, especially if it can be demonstrated that the original code was modified to produce the new, then THAT is plagiarism pure and simple. > > Bob S > > >> On Oct 20, 2017, at 10:36 , Richmond Mathewson via use-livecode wrote: >> >> as the rip-off or HyperCard with a new front-end strapped on the front (i.e. LiveCode) is a bigger and >> better beast than either Hypercard or MetaCard ever were. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From capellan2000 at gmail.com Fri Oct 20 15:29:50 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 20 Oct 2017 15:29:50 -0400 Subject: Interview wtth inventor of hypercard Bill Atkinson In-Reply-To: References: Message-ID: By the way, according to this article, we already knew which could be the next breakthrough in technological progress... but, we don't know who will pour their blood, sweat and tears to build and sell it to the people. https://zurb.com/blog/the-next-big-innovation-it-s-already-10-o On Fri, Oct 20, 2017 at 2:20 PM, Alejandro Tejada wrote: > Hi All, > > Being English my second language, frequently I have to > read again (and reread some time after) many of the > messages that I post in the mail list and in the forum. > > In the forum, we could simply edit, reedit and edit again > any message until it means what we meant... but in the > mail list that is not possible. > > After reading again my message about the origin of HyperCard, > I found that it's easy, very easy, to understand that in my > message I am dismissing Bill Atkinson's breakthrough as > an intentional copy of previous works. > > That was NOT my intention. If Bill Atkinson says the he > invented HyperCard under the effects of LSD, then we have > to believe him... but when you read about any topic, it's logical > and necessary to learn and analyze other people's opinions. > > I already written about Walter Cooke and Paul Helckel opinions, > so here is my own opinion: > > HyperCard was so successful as an innovative breakthrough > because it followed the natural path of technological > progress. Hypercard was the next step in > computer advancement. > > Who is credited with the conceptual foundation of HyperText? > Vannevar Bush with his description of the "Memex": > http://www.archivejournal.net/notes/as-we-may-now-think/ > > While Vannever Bush described a mechanical device, > electronic engineers where already creating the foundations > of computer science and demonstrating that numbers could > represent and store texts, images and sounds: > http://royal.pingdom.com/2008/04/08/the-history-of-computer- > data-storage-in-pictures/ > > After the creation of text-only hypertext systems, > https://en.wikipedia.org/wiki/Hypertext > Which was the next logical step in technological > progress? > > The creation of an Image and Text hypertext system. > On Macintosh, it's name was HyperCard. > > Al > > > > From jacque at hyperactivesw.com Fri Oct 20 15:39:23 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 20 Oct 2017 14:39:23 -0500 Subject: Interview wtth inventor of hypercard Bill Atkinson In-Reply-To: <54a75500-6f72-aa94-3cc3-31b47ef3229c@gmail.com> References: <54a75500-6f72-aa94-3cc3-31b47ef3229c@gmail.com> Message-ID: <7470d802-f20c-4cf6-e660-13317fc5c2f0@hyperactivesw.com> On 10/20/17 12:36 PM, Richmond Mathewson via use-livecode wrote: > For every single Shakespeare play barring "The Merry Wives of Windsor" > there is a play that Shakespeare "ripped-off". > > So, does that make him a plagiarist and a prize plonker? Plagiarism is a direct copy, or one similar enough to seem like a copy. You can't copyright ideas, they are free for anyone to use as long as the actual implementation is different. That's why it isn't stealing to reproduce the idea of hypelinked text and content. It's only stealing if you swipe the code and assets. There were no such distinctions back in Sharespeare's day but there is now, and HyperCard falls under that jurisdiction. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From sean at pidigital.co.uk Fri Oct 20 16:11:50 2017 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Fri, 20 Oct 2017 21:11:50 +0100 Subject: Interview wtth inventor of hypercard Bill Atkinson In-Reply-To: References: Message-ID: A lot of what he is talking about here is what they are now calling Machine Learning. I didn't 'fully' understand how this worked. But a few paragraphs from Mr Atkinson here helped me immensely. I'm all the better for it. Thanks, Bill, on so many levels. Sean Cole *Pi Digital Productions Ltd* www.pidigital.co.uk +44(1634)402193 +44(7702)116447 'Don't try to think outside the box. Just remember the truth: There is no box!' 'For then you realise it is not the box you are trying to look outside of, but it is yourself!' eMail Ts & Cs Pi Digital Productions Ltd is a UK registered limited company, no. 5255609 On 20 October 2017 at 20:29, Alejandro Tejada via use-livecode < use-livecode at lists.runrev.com> wrote: > By the way, according to this article, we already knew > which could be the next breakthrough in technological > progress... but, we don't know who will pour their blood, > sweat and tears to build and sell it to the people. > > https://zurb.com/blog/the-next-big-innovation-it-s-already-10-o > > > On Fri, Oct 20, 2017 at 2:20 PM, Alejandro Tejada > wrote: > > > Hi All, > > > > Being English my second language, frequently I have to > > read again (and reread some time after) many of the > > messages that I post in the mail list and in the forum. > > > > In the forum, we could simply edit, reedit and edit again > > any message until it means what we meant... but in the > > mail list that is not possible. > > > > After reading again my message about the origin of HyperCard, > > I found that it's easy, very easy, to understand that in my > > message I am dismissing Bill Atkinson's breakthrough as > > an intentional copy of previous works. > > > > That was NOT my intention. If Bill Atkinson says the he > > invented HyperCard under the effects of LSD, then we have > > to believe him... but when you read about any topic, it's logical > > and necessary to learn and analyze other people's opinions. > > > > I already written about Walter Cooke and Paul Helckel opinions, > > so here is my own opinion: > > > > HyperCard was so successful as an innovative breakthrough > > because it followed the natural path of technological > > progress. Hypercard was the next step in > > computer advancement. > > > > Who is credited with the conceptual foundation of HyperText? > > Vannevar Bush with his description of the "Memex": > > http://www.archivejournal.net/notes/as-we-may-now-think/ > > > > While Vannever Bush described a mechanical device, > > electronic engineers where already creating the foundations > > of computer science and demonstrating that numbers could > > represent and store texts, images and sounds: > > http://royal.pingdom.com/2008/04/08/the-history-of-computer- > > data-storage-in-pictures/ > > > > After the creation of text-only hypertext systems, > > https://en.wikipedia.org/wiki/Hypertext > > Which was the next logical step in technological > > progress? > > > > The creation of an Image and Text hypertext system. > > On Macintosh, it's name was HyperCard. > > > > Al > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 20 17:36:29 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 20 Oct 2017 21:36:29 +0000 Subject: Interview wtth inventor of hypercard Bill Atkinson In-Reply-To: References: Message-ID: <52C72BC9-BCD7-405E-A227-1049F9E4EC73@iotecdigital.com> Hmmm... I find the basis of the article somewhat simplistic. I suppose you could go back far enough with anything, and say it is an old idea produced in a new way. For instance, the dissemination of information via writing has been around for millenia, but someone made a way to do it electronically. Eggs, and also Bagels have been around, but I put them together in this amazing breakfast sandwich with sausage and spicy pickles and hash browns and Habanero sauce... wait what was I talking about?? Oh yeah, old ideas in a new way! As Solomon pointed out, there is nothing new under the sun. (If you go back far enough to some basic concept). Bob S > On Oct 20, 2017, at 12:29 , Alejandro Tejada via use-livecode wrote: > > By the way, according to this article, we already knew > which could be the next breakthrough in technological > progress... but, we don't know who will pour their blood, > sweat and tears to build and sell it to the people. > > https://zurb.com/blog/the-next-big-innovation-it-s-already-10-o From bogdanoff at me.com Fri Oct 20 18:14:27 2017 From: bogdanoff at me.com (Peter Bogdanoff) Date: Fri, 20 Oct 2017 15:14:27 -0700 Subject: Resizing stack window by scaling Message-ID: <1095D8BB-F746-4D7D-8B1F-F3A7B4ABE921@me.com> Hi, I?m needing to allow the user resize a stack window using scaleFactor and am needing advice about interface. First of all, I see that some Livecoders are using scripts to scale controls and text when the user drags the stack size larger or smaller. In my case, there are too many controls and text layout is too sensitive, and I really don?t need the improvement in resolution to use that method. In my case: 1. Default size is good for most people 2. Some have 12? laptops that make the window just a tad too large to fit 3. Some have larger screens whereby they might want to expand the window to fill more space For the too-small issue, I can automatically scale the window at start up. However, how do I present the choice to the user to manually make the window larger/smaller? Clicking on the zoom box resizes the window, not scales it?no good. Is there a message that can be intercepted to scale instead of zoom? Do I otherwise (working with the stack with size locked) add drag controls to the edges of the window that scales when dragged? Does anyone have scripts for that? Or should this be some kind of preference item? Thanks, Peter Bogdanoff ArtsInteractive From bobsneidar at iotecdigital.com Fri Oct 20 18:30:29 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 20 Oct 2017 22:30:29 +0000 Subject: Resizing stack window by scaling In-Reply-To: <1095D8BB-F746-4D7D-8B1F-F3A7B4ABE921@me.com> References: <1095D8BB-F746-4D7D-8B1F-F3A7B4ABE921@me.com> Message-ID: <102EFCA0-7AF7-488C-9577-C9F8AAC17A45@iotecdigital.com> This is probably too simple an answer, but for database applications, resizing of windows is not a feature they allow, and there is almost always a "minimum monitor size" requirement so that the form fits inside any window the system might draw. Windows has a feature to increase the monitor scaling, but beyond a certain point this can cause issues with software, and even Microsoft has issues drawing it's own windows when the scale factor is above a certain level! Apple has an Accessibility feature which allows screen zooming which those who have serious vision problems and own a Mac probably already know how to use. I guess I am saying that providing application scaling is not very common. What I would do is define several scales, and then allow users to choose a scale, then have procedures that redraw everything accordingly. Alternately, some have been able to create scrolling groups, so every stack/card would have one of these scrolling groups, so that if the window was made smaller than the smallest size you allow, you would revert to usign the scrolling group. Another thing I have been doing in my app is creating tabs. I group all controls belonging to a tab then name the group like the tab, so selecting a tab hides all the groups then shows it's respective tab. This has worked really nicely, so that no I can have a card that can display customers, sites, devices, contacts etc. all by selecting a tab. The moral of the story is that you can never get ten pounds of potatoes in a five pound sack. Either your sack is too small or you have too many potatoes. But you CAN have more sacks! Bob S > On Oct 20, 2017, at 15:14 , Peter Bogdanoff via use-livecode wrote: > > Hi, > > I?m needing to allow the user resize a stack window using scaleFactor and am needing advice about interface. > > First of all, I see that some Livecoders are using scripts to scale controls and text when the user drags the stack size larger or smaller. In my case, there are too many controls and text layout is too sensitive, and I really don?t need the improvement in resolution to use that method. In my case: > 1. Default size is good for most people > 2. Some have 12? laptops that make the window just a tad too large to fit > 3. Some have larger screens whereby they might want to expand the window to fill more space > > For the too-small issue, I can automatically scale the window at start up. However, how do I present the choice to the user to manually make the window larger/smaller? > > Clicking on the zoom box resizes the window, not scales it?no good. Is there a message that can be intercepted to scale instead of zoom? > > Do I otherwise (working with the stack with size locked) add drag controls to the edges of the window that scales when dragged? Does anyone have scripts for that? > > Or should this be some kind of preference item? > > Thanks, > > Peter Bogdanoff > ArtsInteractive From martyknappster at gmail.com Fri Oct 20 19:11:13 2017 From: martyknappster at gmail.com (Marty Knapp) Date: Fri, 20 Oct 2017 16:11:13 -0700 Subject: Resizing stack window by scaling In-Reply-To: <1095D8BB-F746-4D7D-8B1F-F3A7B4ABE921@me.com> References: <1095D8BB-F746-4D7D-8B1F-F3A7B4ABE921@me.com> Message-ID: <807aed4c-bf76-832a-2dc4-e404b5eab955@knappstersolutions.com> Hi Peter, I was faced with the same issue and for me I ended up adding a "View" menu to the menubar with user selectable sizes. Since scaleFactor was not really meant to be used this way there are some drawbacks, the main one being that the window will move on screen. It will not grow/shrink from the top-left corner. I've also run into an issue with option menus. If you have more items than fit and therefor require the menu items to scroll, it won't work - it only works reliably at 100% Marty > Hi, > > I?m needing to allow the user resize a stack window using scaleFactor and am needing advice about interface. > > First of all, I see that some Livecoders are using scripts to scale controls and text when the user drags the stack size larger or smaller. In my case, there are too many controls and text layout is too sensitive, and I really don?t need the improvement in resolution to use that method. In my case: > 1. Default size is good for most people > 2. Some have 12? laptops that make the window just a tad too large to fit > 3. Some have larger screens whereby they might want to expand the window to fill more space > > For the too-small issue, I can automatically scale the window at start up. However, how do I present the choice to the user to manually make the window larger/smaller? > > Clicking on the zoom box resizes the window, not scales it?no good. Is there a message that can be intercepted to scale instead of zoom? > > Do I otherwise (working with the stack with size locked) add drag controls to the edges of the window that scales when dragged? Does anyone have scripts for that? > > Or should this be some kind of preference item? > > Thanks, > > Peter Bogdanoff > ArtsInteractive > From ambassador at fourthworld.com Fri Oct 20 20:36:31 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 20 Oct 2017 17:36:31 -0700 Subject: Mobile Device Physical Size In-Reply-To: <004601d349c0$9b4bf030$d1e3d090$@net> References: <004601d349c0$9b4bf030$d1e3d090$@net> Message-ID: Thank you for bringing this to the list, Ralph: > On Richards talk yesterday I brought this up and I am moving it to the > list. > > Say you have 3 Android devices: > 1) Phone sized. > 2) Note sized. > 3) Tablet sized. > It is entirely possible that these 3 devices have the same(or close) > number x/y of pixels. > How can I determine the physical size of mobile devices? Web browsers > are able to determine the device size or at least a phone vs. tablet. > I would like to change the screen layout based on the physical size. > > I can determine a phone vs. tablet for Apple devices because of the > limited number of iOS devices. But we don't know what Apple will come up with next, so ideally what we use can accommodate all devices on both iOS and Android, without having to hard-wire values for any specific brand or model. Earlier versions of LC may have been different, but in recent versions it seems that LC's resolution-independence works very much like that of browsers (probably using the same OS APIs under the hood), using logical metrics rather than physical. This allows devs to place objects reliably across devices where physical pixel density may vary. I just ran a quick test to see how well that works: Right now I have only two devices from my test pool charged, but they make for a good comparison because their pixel density difference: a mid-range phone (LG G Stylo) and a super-cheap tablet (Amazon Fire 7; lists for $49, can find on sale now and then for $39 - great for testing). Given the price difference between the two, it's not surprising that this tablet has such low pixel density compared to the phone which is both higher res and physically smaller. To quickly assess browser metrics I went to WhatIsMyScreenResolution.com in Firefox on each device. For LC I added a "Screen Size" button to a test app to display the last two items from the screenRect function, along with the value returned from mobilePixelDensity(). Here are the results: Diag Physical Web LiveCode PxDensity ---- -------- -------- -------- --------- LG G Stylo Phone: 5.5" 720x1280 360x592 360x592 2 Amazon F7 Tablet: 7.0" 600x1024 600x976* 600x976 1 This is awesome. It looks like the core team's work on resolution independence has paid off handsomely for us: we can use the same general layout strategies web devs use with Responsive Design, with good placement using logical coordinates that automatically account for differences in density. This is also good for our development workflow: leave your stack resizable, and once you have your resizeStack handler written you can test your object placement for any size by just grabbing the stack window's corner and moving it around. I don't have my iOS devices with me at the moment, but it would be helpful to learn if any of you see any differences between the logical pixels reported by browsers and those in LC on iOS. * Note: If you use Amazon's pre-installed Silk browser the vertical size of the Fire 7 is shown as 1024; apparently Silk reports the full screen while Firefox and LiveCode subtract the height of the button row at the bottom of the screen (48px) to reflect only usable space. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Fri Oct 20 20:57:59 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 20 Oct 2017 17:57:59 -0700 Subject: Interview wtth inventor of hypercard Bill Atkinson In-Reply-To: <4aeba199-b930-eedb-1e81-3c40bc0e9978@gmail.com> References: <4aeba199-b930-eedb-1e81-3c40bc0e9978@gmail.com> Message-ID: Richmond Mathewson write: > RunRev did buy Metacard, but not at the start. > > I believe (this is where Heather can put us ALL straight) RunRev was > initially designed as an alternative interface (front-end/GUI) to the > MeatCard one. Heather's asleep, so maybe I can help: MetaCard premiered in 1992, and by the late '90s Crossworlds Computing (Kevin's first company) published a more feature-rich IDE that could run with that engine. Dr. Raney actively encouraged that, and other IDEs like FreeGUI (a since-abandoned project to deliver more of a HyperCard-like feel). He wrote the MC IDE for his own needs, and found it a good testament to the power of the language that others could serve their own needs by making tools and even complete IDEs with relative ease. He used to say about those: "Let a thousand flowers bloom". Around the turn of the century Kevin arranged a bundling agreement with MetaCard Corp. This may have been about the same time Kevin changed the company name to Runtime Revolution Ltd. During that time one could choose to purchase licenses for Revolution from Kevin's company or MetaCard from Scott's company, and presumably there was a royalty arrangement between them. In 2003 LiveCode Ltd. acquired the MetaCard engine, and MetaCard ceased operations as a seller of the engine. The MetaCard IDE was released as open source under the MIT License at that time, so folks could maintain and extend it as long as they like. A few years later Kevin rebranded both the company and the engine to become what they're known as today, LiveCode. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bogdanoff at me.com Fri Oct 20 21:47:09 2017 From: bogdanoff at me.com (Peter Bogdanoff) Date: Fri, 20 Oct 2017 18:47:09 -0700 Subject: Resizing stack window by scaling In-Reply-To: <807aed4c-bf76-832a-2dc4-e404b5eab955@knappstersolutions.com> References: <1095D8BB-F746-4D7D-8B1F-F3A7B4ABE921@me.com> <807aed4c-bf76-832a-2dc4-e404b5eab955@knappstersolutions.com> Message-ID: <83797654-ECD2-487D-B21A-1EE974EB5490@me.com> Marty, Thanks, that seems to be a good idea. I don?t have option menus, and I could reset the window position after the scaling. Peter > On Oct 20, 2017, at 4:11 PM, Marty Knapp via use-livecode wrote: > > Hi Peter, > I was faced with the same issue and for me I ended up adding a "View" menu to the menubar with user selectable sizes. Since scaleFactor was not really meant to be used this way there are some drawbacks, the main one being that the window will move on screen. It will not grow/shrink from the top-left corner. I've also run into an issue with option menus. If you have more items than fit and therefor require the menu items to scroll, it won't work - it only works reliably at 100% > > Marty >> Hi, >> >> I?m needing to allow the user resize a stack window using scaleFactor and am needing advice about interface. >> >> First of all, I see that some Livecoders are using scripts to scale controls and text when the user drags the stack size larger or smaller. In my case, there are too many controls and text layout is too sensitive, and I really don?t need the improvement in resolution to use that method. In my case: >> 1. Default size is good for most people >> 2. Some have 12? laptops that make the window just a tad too large to fit >> 3. Some have larger screens whereby they might want to expand the window to fill more space >> >> For the too-small issue, I can automatically scale the window at start up. However, how do I present the choice to the user to manually make the window larger/smaller? >> >> Clicking on the zoom box resizes the window, not scales it?no good. Is there a message that can be intercepted to scale instead of zoom? >> >> Do I otherwise (working with the stack with size locked) add drag controls to the edges of the window that scales when dragged? Does anyone have scripts for that? >> >> Or should this be some kind of preference item? >> >> Thanks, >> >> Peter Bogdanoff >> ArtsInteractive >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From james at thehales.id.au Sat Oct 21 02:37:40 2017 From: james at thehales.id.au (James Hale) Date: Sat, 21 Oct 2017 17:37:40 +1100 Subject: HELP - Script debugger out of sync Message-ID: <222C7840-BDCE-4C42-B4D3-29AB0A59AB7B@thehales.id.au> I have been modifying one of my utility apps and have hit a strange glitch. While trying to debug the script I find the visual feedback of where I am in the script to be out of sync by, it appears, 4 lines. For those interested in how this looks I have uploaded a video of same. http://www.thehales.id.au/samples/lag%20debug.mkv For those not wanting to watch the symptoms are... 1. enter the debug mode of the script editor. 2. step into the handler 3. actually shown at the end of the handler (or more correctly 4 lines in) 4. stepping through script into other handlers I remain 4 lines out of sync with what is actually displayed. I have now tried this in LC versions 8.16, 8.17, 8.20, 9dp9 All do the same thing. I have deleted the preference files They still do the same thing. AURGH!!! what is going on? James From james at thehales.id.au Sat Oct 21 02:55:03 2017 From: james at thehales.id.au (James Hale) Date: Sat, 21 Oct 2017 17:55:03 +1100 Subject: SOLVED Re: HELP - Script debugger out of sync Message-ID: <27E13E06-B262-4C09-8EE5-1E0B42D63154@thehales.id.au> After i sent my post I wondered if perhaps there were unseen gremlins in the script. I copied it out and pasted into BBEDIT and "Zap(ped) gremlins" (one of my favourite BBEDT commands). Pasted the zapped script back into LC and everything was back in sync. How I ended up with some unseen characters in the script I do not know but they are gone now and all is well. Sorry for the disturbance. James From christer at mindcrea.com Sat Oct 21 07:22:31 2017 From: christer at mindcrea.com (=?utf-8?Q?Pyyhti=C3=A4_Christer?=) Date: Sat, 21 Oct 2017 14:22:31 +0300 Subject: Resizing stack window by scaling Message-ID: <942555ED-63D1-4FA8-89F3-C9EF7648629D@mindcrea.com> The following is only one opinion of many possible. First, you should consider automatic scaling only with a very restricted amount of cases. These are for example sort of games, where the "playing field" is the better the larger it is, and the icons / images and their relative positions or moves act well. Second, if you want to make a balanced user interface, you might use the full size of a phablet, but with larger tablets or laptops, you might choose the window to be smaller, and the width and height to be in relation to a phone / phablet form. You maintain your smart phone at a distance of 30+ cm (1 ft), and a laptop or tablet twice the distance. This gives you a guidance for required sizing of the display of your app on a smartphone / phablet / tablet & laptop. The result is that you want to do the scaling retaining the relative positions of objects in all device implementations. I even think that you should drop the option for rotating the display along the device position changes portrait / landscape - unless it is a part of the features and functions of your app. Further the result is that you need to maintain a log of your objects and the possible inheritance of sub-objects (icon -> button; text content -> text field etc.), and do scaling for each object & level based on the screen size & resolution. Yes it hurts initially, but it allows scaling to any device seamlessly. In the case of laptops you just need to define the max window size you want to use (vs the # of available pixels you need), and do some desk simulation what it means on different sizes of tablets. A too big difference from a smart phone screen to a tablet may mean that you need to be able to dig out either from the device by your app coding (where LiveCode is very efficient), or just make assumptions, and have separate versions in distribution. In addition a good tool is to make a test you can send to any user, mailing (with the permission of the user) you all the device characteristics, allowing you to embed yet another exception into your scaling code. Yes, it hurts, but becomes easier every time you must take action. Christer Pyyhti? christer at mindcrea.com From ambassador at fourthworld.com Sat Oct 21 12:15:30 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 21 Oct 2017 09:15:30 -0700 Subject: Resizing stack window by scaling In-Reply-To: <1095D8BB-F746-4D7D-8B1F-F3A7B4ABE921@me.com> References: <1095D8BB-F746-4D7D-8B1F-F3A7B4ABE921@me.com> Message-ID: <5e8b842f-85dd-7b1f-c895-1f170ff07425@fourthworld.com> Hello Peter - Scaling is tempting, but problematic. Automating that with the stack's scaleFactor would be quick, but will scale everything, even controls the user needs to interact with. If the default size is good will they be usable at a smaller size? will text be readable? Hand-coding a more refined scaling can be done, but it's a bit of work. It's been a while since I've seen your app, but from from what I recall of your app's UI it should be possible to craft a scaling routine for it, but it would not be trivial. Many decisions would have to be made about minimum size for both readability and interaction. Your item #2 noted 12" screens are just a bit small. That's actually not a bad problem to have, because it's very close to the most popular size, 11.6", which is also the smallest practical size most apps will need to deal with (more on that below). Moreover, most 12" screens sold in the last half-decade or so have the same resolution as 11.6" screens, 1366x768, with just slightly larger pixels. So for the purposes of UI layout, they're effectively the same. 1366x768 is so common that it may be both less work and more rewarding in terms of market share to consider a refinement of your app's design to make that resolution optimal first, and consider dynamic scaling or other options later on. If this impacts a lot of your content, you may consider looking at ways to automate that once you've identified the common patterns needed to accommodate the change. A world of students using Macbook Airs and the most popular Windows laptops will welcome your app optimized for 1366x768. The exercise may also provide a good opportunity to consider options for making good use of larger monitors without scaling both X and Y axes, or scale each to optimize different content opportunities. For example, with a timeline a longer X axis will let you see more time, while a taller Y axis can offer more details about what's happening in a given moment. Both can be useful, but neither is true "scaling" per se. Many possibilities, but until the app has 1366x768 as its optimal size it may be more difficult to decide best approaches for using the space available on the fewer machines with larger screens. Notes on minimal size for desktop layouts: One of the risks of being a developer is that we often have better gear than our users. Spending all day with our machines we may have more RAM than they do on average, or faster CPUs, and often larger monitors. Now and then this may tempt us to design for our own system, but it's helpful to keep user specs in mind and design for those first. If you haven't yet don't fret; at least you're in good company. I've met some very well-placed UI designers who overlook the market stats on monitor sizes. Indeed it was my own mistake in this area years ago that has me checking resolution trends at least annually now. With monitors, 1366x768 screens are by far the most common, the second leading size only a bit more than half as popular, and it's a long tail of single-digit market share from there: 1366x768: 29.87% 1920x1080: 16.69% 1440x900: 6.86% 1600x900: 5.81% 1280x800: 5.14% 1024x768: 4.74% 1366x768 is most prevalent among small-and-light form factors, but can be found in larger laptops in the 12" and 13" ranges, and once in a while with older, bulkier 15" laptops. Given the market share of 1366x768, desktop software should ideally have their layouts optimized for that first, allowing resizing where appropriate for other sizes. Fortunately, the need to support anything smaller is so rare you may not need to bother unless you're in a specialized niche where a specific small screen size is uncommonly popular. The 4% using 1024x768 are probably machines too old to be in your target market; the other 96% will welcome your time spent on more relevant considerations. So in practical terms, 1366x768 is not only the primary target for today's layouts, but also the smallest you're likely to need to support. That's helpful, as it's usually less of a problem to have more space available than it is to have too little. When designing for any size, keep in mind that in Mac most users will have the Dock at the bottom of the screen, and most Windows users will have their Task Bar there. Additionally, the menu bar will need to be taken into account when designing for the actual content area of your window. So while 768 is a good vertical minimum to target, between the Dock/Task Bar, menus, and drag bar, actual usable size will be much smaller. The Dock is the largest element, 64p by default in El Capitan. With a menu bar height of 22p, and another 22p for the drag bar, the content region of the window is normally only about 660p. Design your content for that and you're golden. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com Peter Bogdanoff wrote: > I?m needing to allow the user resize a stack window using scaleFactor > and am needing advice about interface. > > First of all, I see that some Livecoders are using scripts to scale > controls and text when the user drags the stack size larger or > smaller. In my case, there are too many controls and text layout is > too sensitive, and I really don?t need the improvement in resolution > to use that method. In my case: > 1. Default size is good for most people > 2. Some have 12? laptops that make the window just a tad too large to > fit > 3. Some have larger screens whereby they might want to expand the > window to fill more space > > For the too-small issue, I can automatically scale the window at start > up. However, how do I present the choice to the user to manually make > the window larger/smaller? > > Clicking on the zoom box resizes the window, not scales it?no good. Is > there a message that can be intercepted to scale instead of zoom? > > Do I otherwise (working with the stack with size locked) add drag > controls to the edges of the window that scales when dragged? Does > anyone have scripts for that? > > Or should this be some kind of preference item? > > Thanks, > > Peter Bogdanoff > ArtsInteractive From ambassador at fourthworld.com Sat Oct 21 16:54:16 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 21 Oct 2017 13:54:16 -0700 Subject: Mobile Device Physical Size In-Reply-To: References: Message-ID: Yesterday, in reply to Ralph's post I included these notes about mobile metrics: > ...it seems that LC's resolution-independence works very much like > that of browsers (probably using the same OS APIs under the hood), > using logical metrics rather than physical. ... > I just ran a quick test to see how well that works: ... > Diag Physical Web LiveCode PxDensity > ---- -------- -------- -------- --------- > LG G Stylo Phone: 5.5" 720x1280 360x592 360x592 2 > Amazon F7 Tablet: 7.0" 600x1024 600x976 600x976 1 This morning I had some testing to do so I charged a couple older devices and ran my test on each to get: Samsung S4 Phone: 5.0" 1080x1920 360x640 360x640 3 Samsung S1 Phone: 4.0" 480x800 320x508* 320x534 1.5 So now we have data from four devices with very different specs: - four different resolutions - four different physical sizes - four different pixel densities - four different Android versions - three different vendors ...and in each case the screen metrics as understood by web browsers match those LiveCode gives us (with the one minor exception in the oldest phone, noted in the footnote below). It would be good to know if any of you testing with iOS devices get results that don't like up as well as these. But from what I've seen so far, on Android (and in my limited testing on iOS devices a few months ago) it looks like LC's resolution independence is very reliable for object placement across devices with very different display characteristics. * I don't believe there's a version of FireFox available now for a phone that old (I keep it in its original state with an older Android version for testing), so the web test used the browser Samsung included on those models. The difference of 26p is likely a bug (maybe counting the status bar height twice?), one I've not seen in newer browsers. -- 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 Sat Oct 21 19:09:12 2017 From: brian at milby7.com (Brian Milby) Date: Sat, 21 Oct 2017 18:09:12 -0500 Subject: Mobile Device Physical Size In-Reply-To: References: Message-ID: iPhone6SPlus: 5.5" 1242x2208 414x736 414x736 3 On Sat, Oct 21, 2017 at 3:54 PM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Yesterday, in reply to Ralph's post I included these notes about mobile > metrics: > > > ...it seems that LC's resolution-independence works very much like > > that of browsers (probably using the same OS APIs under the hood), > > using logical metrics rather than physical. > ... > > I just ran a quick test to see how well that works: > ... > > Diag Physical Web LiveCode PxDensity > > ---- -------- -------- -------- --------- > > LG G Stylo Phone: 5.5" 720x1280 360x592 360x592 2 > > Amazon F7 Tablet: 7.0" 600x1024 600x976 600x976 1 > > This morning I had some testing to do so I charged a couple older devices > and ran my test on each to get: > > Samsung S4 Phone: 5.0" 1080x1920 360x640 360x640 3 > Samsung S1 Phone: 4.0" 480x800 320x508* 320x534 1.5 > > So now we have data from four devices with very different specs: > - four different resolutions > - four different physical sizes > - four different pixel densities > - four different Android versions > - three different vendors > > ...and in each case the screen metrics as understood by web browsers match > those LiveCode gives us (with the one minor exception in the oldest phone, > noted in the footnote below). > > It would be good to know if any of you testing with iOS devices get > results that don't like up as well as these. > > But from what I've seen so far, on Android (and in my limited testing on > iOS devices a few months ago) it looks like LC's resolution independence is > very reliable for object placement across devices with very different > display characteristics. > > > * I don't believe there's a version of FireFox available now for a phone > that old (I keep it in its original state with an older Android version for > testing), so the web test used the browser Samsung included on those > models. The difference of 26p is likely a bug (maybe counting the status > bar height twice?), one I've not seen in newer browsers. > > > -- > 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 Sat Oct 21 20:01:03 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 21 Oct 2017 17:01:03 -0700 Subject: Mobile Device Physical Size In-Reply-To: References: Message-ID: <00158e77-ee10-733e-e9d7-a40b953dd7e5@fourthworld.com> Thanks, Brian. With your stats we now have our first anomaly, between the two platforms: The iOS math checks out in terms of the reported logical metrics matching the physical pixels per the pixel density. But when we compare the iPhone 5.5" screen with the LG Stylo 5.5" screen, LiveCode is telling us that the iPhone screen is both wider and taller. Of course given the same diagonal, one screen could be either wide or taller than the other, but not both. This suggests that Apple's APIs and/or LC's handling of the metrics is sufficiently different from how it works with Android that we might run into cross-platform issues where physical size matters. I wouldn't try to make a measuring ruler on a phone screen, but more practical use-cases might involve layouts that require us to put a lot of touchable areas into a small space, so figuring out the smallest practical size for a clickable element can be important. Or even just making sure text is of a sufficiently readable size without making it larger than needed on the other platform. If we set things up in a way that works well for Android, it seems we risk having things too small on iOS. Of course both OSes use their own APIs, and neither is required to adopt another vendor's method of accounting for things like pixel density. But it sure would be nice if we had a method as reliable between platforms as it seems to otherwise be within each platform. Maybe simplest if LC's pixel density could take into account the difference there apparently is between the two OSes. That's the sort of thing that makes a cross-platform tool valuable, though I recognize there may not be as simple as introducing a correction factor for pixel density; given the complexity of rendering/Skia, I suspect it's a bit more involved than that. I guess the only solution where physical size of controls between platforms may be especially important is for us to just remember that regardless of any specific physical pixel density, logical pixels will be reported to us as about 20% larger on iOS than on Android, and try to aim for somewhere in between. -- Richard Gaskin Brian Milby wrote: > iPhone6SPlus: 5.5" 1242x2208 414x736 414x736 3 > > On Sat, Oct 21, 2017 at 3:54 PM, Richard Gaskin via use-livecode > wrote: > >> Yesterday, in reply to Ralph's post I included these notes about mobile >> metrics: >> >> > ...it seems that LC's resolution-independence works very much like >> > that of browsers (probably using the same OS APIs under the hood), >> > using logical metrics rather than physical. >> ... >> > I just ran a quick test to see how well that works: >> ... >> > Diag Physical Web LiveCode PxDensity >> > ---- -------- -------- -------- --------- >> > LG G Stylo Phone: 5.5" 720x1280 360x592 360x592 2 >> > Amazon F7 Tablet: 7.0" 600x1024 600x976 600x976 1 >> >> This morning I had some testing to do so I charged a couple older >> devices and ran my test on each to get: >> >> Samsung S4 Phone: 5.0" 1080x1920 360x640 360x640 3 >> Samsung S1 Phone: 4.0" 480x800 320x508* 320x534 1.5 From ambassador at fourthworld.com Sat Oct 21 20:20:00 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 21 Oct 2017 17:20:00 -0700 Subject: Mobile Device Physical Size In-Reply-To: <00158e77-ee10-733e-e9d7-a40b953dd7e5@fourthworld.com> References: <00158e77-ee10-733e-e9d7-a40b953dd7e5@fourthworld.com> Message-ID: Ignore my last post. Garbage. I had overlooked a rather obvious fact of screen manufacturing: each method will have slight variance in terms of absolute PPI, resulting in variance not only in physical pixelDensity differences but in how accurately the OS will bother to account for them in terms of the approximated logical pixels. Screens aren't rulers. :) When you look at devices with sufficiently different screens, you can see that common elements like the status bar are slightly different from one device to another. LiveCode objects are no exception. This can be seen with pretty much all software. Near the beginning of the year when I was fleshing out layout mechanics for a couple apps I'm working on, I not only laid my test pool devices side by side, but also used a small mm ruler to see how consistently they render controls of a known size. The variance I saw and measured was about the same as what we see here between OSes, not small enough to be completely inconsequential but not large enough to matter for most things. As long as we don't try to make rulers on screen for measuring physical objects, we can likely account for reasonable object placement, even between platforms, well enough. It would be interesting to learn if Apple devices have visible/measurable differences in physical size of software objects between screens made using different manufacturing methods. But it does seem to be the case with Android. -- Richard Gaskin Fourth World Systems Richard Gaskin had too much coffee when he wrote: > Thanks, Brian. With your stats we now have our first anomaly, between > the two platforms: > > The iOS math checks out in terms of the reported logical metrics > matching the physical pixels per the pixel density. > > But when we compare the iPhone 5.5" screen with the LG Stylo 5.5" > screen, LiveCode is telling us that the iPhone screen is both wider and > taller. Of course given the same diagonal, one screen could be either > wide or taller than the other, but not both. > > This suggests that Apple's APIs and/or LC's handling of the metrics is > sufficiently different from how it works with Android that we might run > into cross-platform issues where physical size matters. > > I wouldn't try to make a measuring ruler on a phone screen, but more > practical use-cases might involve layouts that require us to put a lot > of touchable areas into a small space, so figuring out the smallest > practical size for a clickable element can be important. Or even just > making sure text is of a sufficiently readable size without making it > larger than needed on the other platform. > > If we set things up in a way that works well for Android, it seems we > risk having things too small on iOS. > > Of course both OSes use their own APIs, and neither is required to adopt > another vendor's method of accounting for things like pixel density. > > But it sure would be nice if we had a method as reliable between > platforms as it seems to otherwise be within each platform. > > Maybe simplest if LC's pixel density could take into account the > difference there apparently is between the two OSes. That's the sort of > thing that makes a cross-platform tool valuable, though I recognize > there may not be as simple as introducing a correction factor for pixel > density; given the complexity of rendering/Skia, I suspect it's a bit > more involved than that. > > I guess the only solution where physical size of controls between > platforms may be especially important is for us to just remember that > regardless of any specific physical pixel density, logical pixels will > be reported to us as about 20% larger on iOS than on Android, and try to > aim for somewhere in between. > > -- > Richard Gaskin > > > Brian Milby wrote: > > > iPhone6SPlus: 5.5" 1242x2208 414x736 414x736 3 > > > > On Sat, Oct 21, 2017 at 3:54 PM, Richard Gaskin via use-livecode > > wrote: > > > >> Yesterday, in reply to Ralph's post I included these notes about mobile > >> metrics: > >> > >> > ...it seems that LC's resolution-independence works very much like > >> > that of browsers (probably using the same OS APIs under the hood), > >> > using logical metrics rather than physical. > >> ... > >> > I just ran a quick test to see how well that works: > >> ... > >> > Diag Physical Web LiveCode PxDensity > >> > ---- -------- -------- -------- --------- > >> > LG G Stylo Phone: 5.5" 720x1280 360x592 360x592 2 > >> > Amazon F7 Tablet: 7.0" 600x1024 600x976 600x976 1 > >> > >> This morning I had some testing to do so I charged a couple older > >> devices and ran my test on each to get: > >> > >> Samsung S4 Phone: 5.0" 1080x1920 360x640 360x640 3 > >> Samsung S1 Phone: 4.0" 480x800 320x508* 320x534 1.5 > From christer at mindcrea.com Sun Oct 22 08:35:46 2017 From: christer at mindcrea.com (=?utf-8?Q?Pyyhti=C3=A4_Christer?=) Date: Sun, 22 Oct 2017 15:35:46 +0300 Subject: Widget properties Message-ID: <064FFBF7-1EF2-47E8-AC2F-EC91EAE03D78@mindcrea.com> When fixing a problem with non-scaling radio buttons one solution was to use widget switch button, which can be scaled. Now it appears that those buttons do not retain the setup theme, but you need to redo it at every stack startup. Why not. Actually the first question is why can't the LiveCode team make the radio buttons scalable? Using those on a mobile device you hardly see what the hilite status is. Christer Pyyhti? christer at mindcrea.com From jiml at netrin.com Sun Oct 22 14:33:57 2017 From: jiml at netrin.com (Jim Lambert) Date: Sun, 22 Oct 2017 11:33:57 -0700 Subject: Resizing stack window by scaling In-Reply-To: References: Message-ID: > RichardG wrote: > > With monitors, 1366x768 screens are by far the most common, the second > leading size only a bit more than half as popular, and it's a long tail > of single-digit market share from there: > > 1366x768: 29.87% > 1920x1080: 16.69% > 1440x900: 6.86% > 1600x900: 5.81% > 1280x800: 5.14% > 1024x768: 4.74% > > The most common USA screen sizes (below) are a bit different from the worldwide stats (above). 1366x768 19.52% 1920x1080 17.66% 1440x900 10.11% 1280x800 6.95% 1600x900 6.34% 1536x864 5.48% If your app will only be used in certain regions then consulting the statcounter site, that Richard shared, can give you such regional reports. Jim Lambert From ambassador at fourthworld.com Sun Oct 22 16:24:45 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 22 Oct 2017 13:24:45 -0700 Subject: Resizing stack window by scaling In-Reply-To: References: Message-ID: <172c6dcc-a7b8-1f9c-cf02-bd6ab82db09f@fourthworld.com> Good data, Jim. Thanks. And drives the point home well for Peter and the rest of us: Even in the US market, where larger monitors are more common, 1366x768 is still the most popular and a good choice to optimize for as a minimum. One curiosity, though: what computers offer the 1536x864 resolution that apparently 5.48% of users are running? I can't recall even seeing that resolution in any spec listings. -- Richard Gaskin Fourth World Systems Jim Lambert wrote: >> RichardG wrote: >> >> With monitors, 1366x768 screens are by far the most common, the second >> leading size only a bit more than half as popular, and it's a long tail >> of single-digit market share from there: >> >> 1366x768: 29.87% >> 1920x1080: 16.69% >> 1440x900: 6.86% >> 1600x900: 5.81% >> 1280x800: 5.14% >> 1024x768: 4.74% >> > > > > The most common USA screen sizes (below) are a bit different from the worldwide stats (above). > > 1366x768 19.52% > 1920x1080 17.66% > 1440x900 10.11% > 1280x800 6.95% > 1600x900 6.34% > 1536x864 5.48% > > If your app will only be used in certain regions then consulting the > statcounter site, that Richard shared, can give you such regional > reports. From panos.merakos at livecode.com Mon Oct 23 07:20:35 2017 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 23 Oct 2017 12:20:35 +0100 Subject: [ANN] Release 9.0.0 DP-10 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.0.0 DP-10. Developer Preview Release ========================= Warning: this is not a stable release. Please ensure that you back up your stacks before testing them. Getting the Release =================== You can get the release at https://downloads.livecode.com/livecode/ or via the automatic updater. Release Contents ================ LiveCode 9.0.0 DP-10 comes with 27 bugfixes. Moreover, more than 40 bugfixes that were fixed in LiveCode 8.1.x and 8.2.x, are now merged into LiveCode 9.0.0 DP-10. In addition, LiveCode 9.0.0 DP-10 includes several amazing new features: - Java-FFI: Added support for custom classes (.jar files) in desktop and android apps - Java-FFI: Use extensions' code folders to update jarfiles standalone setting - LCB-Engine: Enabled getting the caller from LCB - LCB-Language: Implemented send { command | function } and post LCB syntax for libraries - Implemented Native Scrollers for Datagrid object - Implemented a HTML5 deploy library Known issues ================ - The Browser widget can cause hang in the IDE in some Linux distros - see http://quality.livecode.com/show_bug.cgi?id=19658 - The Android Native Button widget uses "labelColor", not "foregound"/"textColor" to set the text color - You might not be able to run HTML5 standalones locally using the most recent version of Safari or Chrome (Firefox is OK). This is due to those browsers now prohibiting cross-origin-requests. To test out standalones locally using these browser, we suggest using a local HTTP server as described in the HTML5 deployment guide. However, this will not be a problem if you use the new HTML5 deployment library, which does this for you: You just have to choose one of the installed browsers (click on the "Development -> Test Target" menu item), and then click on the "Test" button. - [Business Only] If you use the new feature of HTML5 deployment from the "Test" button, make sure you have unchecked "Script Debug Mode". See bug http://quality.livecode.com/show_bug.cgi?id=20584 The full release notes are available from: http://downloads.livecode.com/livecode/9_0_0/LiveCodeNotes-9_0_0_dp_10.pdf Note: Due to the changes in LCB and , if your custom widgets use these commands, you have to rebuild them in LC 9 DP-10 using the Extensions Builder. Feedback ======== Please report any bugs encountered on our BugZilla at http://quality.livecode.com/ We have a forum available for discussing LiveCode Builder at http://forums.livecode.com/viewforum.php?f=93 Have fun! The LiveCode Team -- From panos.merakos at livecode.com Mon Oct 23 08:35:14 2017 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 23 Oct 2017 13:35:14 +0100 Subject: [ANN] This Week in LiveCode 103 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 #103 here: https://goo.gl/R2KgPk 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 ludovic.thebault at laposte.net Mon Oct 23 10:06:18 2017 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Mon, 23 Oct 2017 16:06:18 +0200 Subject: Bug with first key in dialog Message-ID: <2A93AED1-120D-42A7-978C-882442D927F3@laposte.net> Hello, i?ve opened this bug : http://quality.livecode.com/show_bug.cgi?id=20595 With LV 8.17 rc3 in a dialog you couldn?t use the first key of the keyboard (under the escape key) It?s just for me or someone could confirm ? Thanks From bobsneidar at iotecdigital.com Mon Oct 23 10:35:23 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 23 Oct 2017 14:35:23 +0000 Subject: SOLVED Re: HELP - Script debugger out of sync In-Reply-To: <27E13E06-B262-4C09-8EE5-1E0B42D63154@thehales.id.au> References: <27E13E06-B262-4C09-8EE5-1E0B42D63154@thehales.id.au> Message-ID: <323CEF54-3518-40E3-BB8F-CC5428D71C40@iotecdigital.com> Unseen characters have bitten a few of us. I copy/pasted from LC to SimpleText and back again and that fixed all my issues. I think the transition to unicode is what did it. Bob S > On Oct 20, 2017, at 23:55 , James Hale via use-livecode wrote: > > After i sent my post I wondered if perhaps there were unseen gremlins in the script. > > I copied it out and pasted into BBEDIT and "Zap(ped) gremlins" (one of my favourite BBEDT commands). > > Pasted the zapped script back into LC and everything was back in sync. > > How I ended up with some unseen characters in the script I do not know but they are gone now and all is well. > > Sorry for the disturbance. > > > James > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 23 10:53:50 2017 From: paul at researchware.com (Paul Dupuis) Date: Mon, 23 Oct 2017 10:53:50 -0400 Subject: Save file dialogs... Message-ID: In our application we often provide our customers with the ability to save information in a variety of formats using a code snippet such as: put "YourData.txt" into tDefaultFileName put "Save some data as:" into tPrompt put the defaultFolder &slash& tDefaultFileName into tDefaultFilePath put "Plain Text|txt"&cr&"Rich Text|rtf"&cr&"Microsoft Word|docx" into tTypes ask file tPrompt with tDefaultFilePath with type tTypes put it & cr & the result into fld 1 Note that "it" contains the file path and "the result" contains the type selected (Plain Text, Word, RTF, whatever) It has been pointed out that most other application, on either OSX or Windows, in a save file dialog, dynamically change the file extension when a different type is selected from the save file popup menu. For example, in the above code, if the use is initially presented with "YourData.txt" and "Plain Text" as the type. If the user selected "Microsoft Word" the extension presented in the dialog is not changed to .docx dynamically. This does happen in most other commercial applications (i.e. MS Word). You do get back the chosen type in the result, but only after the dialog has been closed. You can use this to change the extension after the fact, but apparently not dynamically. This behavior exists in at least 6.7.11 through 8.1.6 under both OSX and Windows Questions for the community AND/OR the LiveCode mothership: 1) Is this a "bug"? 2) Is there any work around (like a secret callback message) to detect when the popup type menu has been changed to dynamically update the presented file name's extension? 3) Has anyone else in the community run into this and cares about it or are my customers just being way to picky? From bobsneidar at iotecdigital.com Mon Oct 23 10:54:41 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 23 Oct 2017 14:54:41 +0000 Subject: Widget properties In-Reply-To: <064FFBF7-1EF2-47E8-AC2F-EC91EAE03D78@mindcrea.com> References: <064FFBF7-1EF2-47E8-AC2F-EC91EAE03D78@mindcrea.com> Message-ID: The answer to that question may be academic. But the best answer I can come up with is that mobile devices are fundamentally different than desktop devices. It's already an amazing thing to get a single layout to display in the various desktop operating systems in a consistent manner, and Windows/Mac/Unix/Linux are similar enough for that. iOS and Android are vastly different interfaces, so to look and behave "natively" on these requires in many instances a different kind of object. It is not a big chore, but you can create your own "scalable" radio buttons from regular buttons and some reasonably high resolution images, or even just the images themselves. That is one of the great things about livecode. You can with some ingenuity create your own custom controls. Bob S > On Oct 22, 2017, at 05:35 , Pyyhti? Christer via use-livecode wrote: > > When fixing a problem with non-scaling radio buttons one solution was to use widget switch button, which can be scaled. > > Now it appears that those buttons do not retain the setup theme, but you need to redo it at every stack startup. Why not. > > Actually the first question is why can't the LiveCode team make the radio buttons scalable? Using those on a mobile device you hardly see what the hilite status is. > > > Christer Pyyhti? > christer at mindcrea.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 Oct 23 10:58:20 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 23 Oct 2017 14:58:20 +0000 Subject: Bug with first key in dialog In-Reply-To: <2A93AED1-120D-42A7-978C-882442D927F3@laposte.net> References: <2A93AED1-120D-42A7-978C-882442D927F3@laposte.net> Message-ID: If you mean in an ask dialog text field, that works for me with that same version, MacOS 10.12.6 Bob S > On Oct 23, 2017, at 07:06 , Ludovic THEBAULT via use-livecode wrote: > > Hello, > > i?ve opened this bug : > http://quality.livecode.com/show_bug.cgi?id=20595 > > With LV 8.17 rc3 in a dialog you couldn?t use the first key of the keyboard (under the escape key) > > It?s just for me or someone could confirm ? > > Thanks From matthias_livecode_150811 at m-r-d.de Mon Oct 23 12:08:30 2017 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Mon, 23 Oct 2017 18:08:30 +0200 Subject: LC8/9 Point tool selected - objects are selectable and show the edit frame but no right click menu Message-ID: <0D135976-E9FD-496F-BF6A-CD28B66691C5@m-r-d.de> Hi from time to time i am experiencing on Mac OS X that although the LC ide is in edit mode and although the selected objects show the ?selected? frame, the right click menu does not show up and the mouse pointer still looks like as the ide is in Browse mode. I then have to delete the livecode7.rev preference file to get it working again. I am not totally sure, but i think this is caused by LC9DP9. Sometimes in LC, while in edit mode clicking on a button still sends a mouseup, so the button script is executed. After this the described behaviour can be seen even after a restart of LC9. Only deleting the pref file solves it. Did anyone else noticed this? Regards, Matthias From brian at milby7.com Mon Oct 23 12:31:59 2017 From: brian at milby7.com (Brian Milby) Date: Mon, 23 Oct 2017 16:31:59 +0000 Subject: Save file dialogs... In-Reply-To: References: Message-ID: One option would be to leave the extension off when initially presented to the user. Then add the correct extension before saving if the user did not manually add one. It is probably a little more complicated than that though... unless the user has their OS set to display extensions, they may not be presented with them normally. I?m not sure if that is detectable from within LC though. At least on Mac this would require a change in the engine source to have extensions change in the dialog. On Mon, Oct 23, 2017 at 9:54 AM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > In our application we often provide our customers with the ability to > save information in a variety of formats using a code snippet such as: > > put "YourData.txt" into tDefaultFileName > put "Save some data as:" into tPrompt > put the defaultFolder &slash& tDefaultFileName into tDefaultFilePath > put "Plain Text|txt"&cr&"Rich Text|rtf"&cr&"Microsoft Word|docx" into > tTypes > ask file tPrompt with tDefaultFilePath with type tTypes > put it & cr & the result into fld 1 > > Note that "it" contains the file path and "the result" contains the type > selected (Plain Text, Word, RTF, whatever) > > It has been pointed out that most other application, on either OSX or > Windows, in a save file dialog, dynamically change the file extension > when a different type is selected from the save file popup menu. For > example, in the above code, if the use is initially presented with > "YourData.txt" and "Plain Text" as the type. If the user selected > "Microsoft Word" the extension presented in the dialog is not changed to > .docx dynamically. This does happen in most other commercial > applications (i.e. MS Word). > > You do get back the chosen type in the result, but only after the dialog > has been closed. You can use this to change the extension after the > fact, but apparently not dynamically. > > This behavior exists in at least 6.7.11 through 8.1.6 under both OSX and > Windows > > Questions for the community AND/OR the LiveCode mothership: > > 1) Is this a "bug"? > > 2) Is there any work around (like a secret callback message) to detect > when the popup type menu has been changed to dynamically update the > presented file name's extension? > > 3) Has anyone else in the community run into this and cares about it or > are my customers just being way to picky? > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 23 13:10:18 2017 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 23 Oct 2017 13:10:18 -0400 Subject: Save file dialogs... In-Reply-To: References: Message-ID: <00cc01d34c21$d0ace5a0$7206b0e0$@net> In Windows you can add a hook into the open/save file dialogs. You get call backs for various events including changing the file type. I don?t know about Mac/Linux but I would assume the same(but different) facilities exist. Accessing the windows hooks would of course require changes to the engine. In Windows you can also get a callback when the user clicks the save/open/cancel before the dialog is closed. 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 Brian Milby via use-livecode Sent: Monday, October 23, 2017 12:32 PM To: How to use LiveCode Cc: Brian Milby Subject: Re: Save file dialogs... One option would be to leave the extension off when initially presented to the user. Then add the correct extension before saving if the user did not manually add one. It is probably a little more complicated than that though... unless the user has their OS set to display extensions, they may not be presented with them normally. I?m not sure if that is detectable from within LC though. At least on Mac this would require a change in the engine source to have extensions change in the dialog. On Mon, Oct 23, 2017 at 9:54 AM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > In our application we often provide our customers with the ability to > save information in a variety of formats using a code snippet such as: > > put "YourData.txt" into tDefaultFileName > put "Save some data as:" into tPrompt > put the defaultFolder &slash& tDefaultFileName into tDefaultFilePath > put "Plain Text|txt"&cr&"Rich Text|rtf"&cr&"Microsoft Word|docx" > into tTypes > ask file tPrompt with tDefaultFilePath with type tTypes > put it & cr & the result into fld 1 > > Note that "it" contains the file path and "the result" contains the > type selected (Plain Text, Word, RTF, whatever) > > It has been pointed out that most other application, on either OSX or > Windows, in a save file dialog, dynamically change the file extension > when a different type is selected from the save file popup menu. For > example, in the above code, if the use is initially presented with > "YourData.txt" and "Plain Text" as the type. If the user selected > "Microsoft Word" the extension presented in the dialog is not changed > to .docx dynamically. This does happen in most other commercial > applications (i.e. MS Word). > > You do get back the chosen type in the result, but only after the > dialog has been closed. You can use this to change the extension after > the fact, but apparently not dynamically. > > This behavior exists in at least 6.7.11 through 8.1.6 under both OSX > and Windows > > Questions for the community AND/OR the LiveCode mothership: > > 1) Is this a "bug"? > > 2) Is there any work around (like a secret callback message) to detect > when the popup type menu has been changed to dynamically update the > presented file name's extension? > > 3) Has anyone else in the community run into this and cares about it > or are my customers just being way to picky? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From jiml at netrin.com Mon Oct 23 13:27:32 2017 From: jiml at netrin.com (Jim Lambert) Date: Mon, 23 Oct 2017 10:27:32 -0700 Subject: Resizing stack window by scaling In-Reply-To: References: Message-ID: <8761A995-BD7D-4C9F-9916-C5EBCE74D9AA@netrin.com> RichardG wrote: > One curiosity, though: what computers offer the 1536x864 resolution that > apparently 5.48% of users are running? I can't recall even seeing that > resolution in any spec listings. A Windows thing? https://answers.microsoft.com/en-us/windows/forum/windows_8-performance/screen-resolution-is-lowering/a67543fb-1013-41df-82f3-476a0757627c?auth=1 Jim Lambert From ludovic.thebault at laposte.net Mon Oct 23 14:25:05 2017 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Mon, 23 Oct 2017 20:25:05 +0200 Subject: Bug with first key in dialog In-Reply-To: References: <2A93AED1-120D-42A7-978C-882442D927F3@laposte.net> Message-ID: <83305F85-FA46-4071-806D-6B7BC57B9A63@laposte.net> > Le 23 oct. 2017 ? 16:58, Bob Sneidar via use-livecode a ?crit : > > If you mean in an ask dialog text field, that works for me with that same version, MacOS 10.12.6 > > Bob S Thanks My bug seem the same issue as bug 20503 and it already resolved for the next release. Ludovic From lists at mangomultimedia.com Mon Oct 23 16:01:25 2017 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 23 Oct 2017 20:01:25 +0000 Subject: Save file dialogs... In-Reply-To: References: Message-ID: On Mon, Oct 23, 2017 at 11:32 AM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > One option would be to leave the extension off when initially presented to > the user. Then add the correct extension before saving if the user did not > manually add one. It is probably a little more complicated than that > though... unless the user has their OS set to display extensions, they may > not be presented with them normally. I?m not sure if that is detectable > from within LC though. One thing to be aware of with this approach is that it won?t work if your app is sandboxed (apps distributed through the Mac App Store are sandboxed). When sandboxed you can only write to a file path that the user explicitly specifies. You will get an error if you try to change the path that the user specified in the save as dialog. Trevor DeVore ScreenSteps > From ambassador at fourthworld.com Mon Oct 23 16:23:21 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 23 Oct 2017 13:23:21 -0700 Subject: Save file dialogs... In-Reply-To: References: Message-ID: <0c76e819-1214-fa3e-55b8-5a13b359f1ec@fourthworld.com> Trevor DeVore wrote: > On Mon, Oct 23, 2017 at 11:32 AM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> One option would be to leave the extension off when initially >> presented to the user. Then add the correct extension before saving >> if the user did not manually add one. It is probably a little more >> complicated than that though... unless the user has their OS set to >> display extensions, they may not be presented with them normally. I?m >> not sure if that is detectable from within LC though. > > One thing to be aware of with this approach is that it won?t work if > your app is sandboxed (apps distributed through the Mac App Store are > sandboxed). When sandboxed you can only write to a file path that the > user explicitly specifies. You will get an error if you try to change > the path that the user specified in the save as dialog. Good point. Thanks for that, Trevor. It would seem an enhancement request is in order. Paul, are you in a position to file 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 bobsneidar at iotecdigital.com Mon Oct 23 18:57:25 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 23 Oct 2017 22:57:25 +0000 Subject: Need an Applescript Expert Message-ID: <4FDAA0CB-02B1-4CFC-B601-9A8E2E5ED34D@iotecdigital.com> Hi all. When populating forms on a Macintosh, I figured out a nice little hack which allows me to populate a fillable form with values using AppleScript. The trick is to tell Applescript to tell Acrobat to run a Javascript! Seems a little convoluted but it works great. So I discovered recently that Applescript can run Javascript natively! Great. I figured I would bypass applescript and pass javascript directly! But I've run ingo a snag. Here is a quick sample of what works: tell application "/Applications/Adobe Acrobat DC/Adobe Acrobat.app" set theScript to "this.getField(\"technotes\").value = \"This is only a test. \";" do script theScript end tell Don't let the backslash quotes trip you up I am just escapting quote characters. Now the Javascript version *should* look like this but it does NOT work! Acrobat = Application('Adobe Acrobat'); Acrobat.activate(); delay(1); this.getField("technotes").value = "This is only a test."; I get an error that this.getField is undefined! Whaaaaa??? Why does it work as an applescript command then?? Bob S From rdimola at evergreeninfo.net Mon Oct 23 19:20:59 2017 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 23 Oct 2017 19:20:59 -0400 Subject: Need an Applescript Expert In-Reply-To: <4FDAA0CB-02B1-4CFC-B601-9A8E2E5ED34D@iotecdigital.com> References: <4FDAA0CB-02B1-4CFC-B601-9A8E2E5ED34D@iotecdigital.com> Message-ID: <010b01d34c55$9936c170$cba44450$@net> Shake some dust off from my Acrobat JavaScript days... I think you will have to open the document. You are in a new instance of Acrobat without an currently open document. 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: Monday, October 23, 2017 6:57 PM To: How to use LiveCode Cc: Bob Sneidar Subject: Need an Applescript Expert Hi all. When populating forms on a Macintosh, I figured out a nice little hack which allows me to populate a fillable form with values using AppleScript. The trick is to tell Applescript to tell Acrobat to run a Javascript! Seems a little convoluted but it works great. So I discovered recently that Applescript can run Javascript natively! Great. I figured I would bypass applescript and pass javascript directly! But I've run ingo a snag. Here is a quick sample of what works: tell application "/Applications/Adobe Acrobat DC/Adobe Acrobat.app" set theScript to "this.getField(\"technotes\").value = \"This is only a test. \";" do script theScript end tell Don't let the backslash quotes trip you up I am just escapting quote characters. Now the Javascript version *should* look like this but it does NOT work! Acrobat = Application('Adobe Acrobat'); Acrobat.activate(); delay(1); this.getField("technotes").value = "This is only a test."; I get an error that this.getField is undefined! Whaaaaa??? Why does it work as an applescript command then?? 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 paul at researchware.com Mon Oct 23 20:36:27 2017 From: paul at researchware.com (Paul Dupuis) Date: Mon, 23 Oct 2017 20:36:27 -0400 Subject: Save file dialogs... In-Reply-To: <0c76e819-1214-fa3e-55b8-5a13b359f1ec@fourthworld.com> References: <0c76e819-1214-fa3e-55b8-5a13b359f1ec@fourthworld.com> Message-ID: <17c92593-b567-5b61-d45c-49e7adad7660@researchware.com> On 10/23/2017 4:23 PM, Richard Gaskin via use-livecode wrote: > Trevor DeVore wrote: > > > On Mon, Oct 23, 2017 at 11:32 AM Brian Milby via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> One option would be to leave the extension off when initially > >> presented to the user. Then add the correct extension before saving > >> if the user did not manually add one. It is probably a little more > >> complicated than that though... unless the user has their OS set to > >> display extensions, they may not be presented with them normally. I?m > >> not sure if that is detectable from within LC though. > > > > One thing to be aware of with this approach is that it won?t work if > > your app is sandboxed (apps distributed through the Mac App Store are > > sandboxed). When sandboxed you can only write to a file path that the > > user explicitly specifies. You will get an error if you try to change > > the path that the user specified in the save as dialog. > > Good point. Thanks for that, Trevor. > > It would seem an enhancement request is in order. > > Paul, are you in a position to file that? > I will file an enhancement request. I'd like to see a future/alternative version of ask file that provides the callbacks Ralph mentioned. Perhaps as an LCB widget? From ambassador at fourthworld.com Mon Oct 23 22:02:04 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 23 Oct 2017 19:02:04 -0700 Subject: Save file dialogs... In-Reply-To: <17c92593-b567-5b61-d45c-49e7adad7660@researchware.com> References: <17c92593-b567-5b61-d45c-49e7adad7660@researchware.com> Message-ID: <22fc6e9e-62a3-8a64-74fe-b7e3d8d3ac14@fourthworld.com> Paul Dupuis wrote: > On 10/23/2017 4:23 PM, Richard Gaskin via use-livecode wrote: >> Trevor DeVore wrote: >> >> > On Mon, Oct 23, 2017 at 11:32 AM Brian Milby via use-livecode < >> > use-livecode at lists.runrev.com> wrote: >> > >> >> One option would be to leave the extension off when initially >> >> presented to the user. Then add the correct extension before >> >> saving if the user did not manually add one. It is probably a >> >> little more complicated than that though... unless the user has >> >> their OS set to display extensions, they may not be presented >> >> with them normally. I?m not sure if that is detectable from >> >> within LC though. >> > >> > One thing to be aware of with this approach is that it won?t work >> > if your app is sandboxed (apps distributed through the Mac App >> > Store are sandboxed). When sandboxed you can only write to a file >> > path that the user explicitly specifies. You will get an error if >> > you try to change the path that the user specified in the save as >> > dialog. >> >> Good point. Thanks for that, Trevor. >> >> It would seem an enhancement request is in order. >> >> Paul, are you in a position to file that? > > I will file an enhancement request. I'd like to see a > future/alternative version of ask file that provides the callbacks > Ralph mentioned. Perhaps as an LCB widget? Thanks in advance. It'll be good to get that standard behavior. If it were a new command/function, writing it with LCB using FFI would probably be an excellent choice. Indeed, just about anyone in the community could do it. But in this case it's an extension of an existing command built into the engine, so doing this feature completion in the existing engine code would seem maybe a better move. After all, if it were written in LCB, we'd then have two different versions of some form of Ask File command, and we'd have to remember the nuances between them, which one has what, and if we want the LCB version we'd have to remember to add that component wherever it's needed. As a feature completion of the existing engine-based command, this would be available to everyone always, and it's common enough to expect most folks will want it. And less to remember. -- 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 sean at pidigital.co.uk Tue Oct 24 06:03:28 2017 From: sean at pidigital.co.uk (Pi Digital) Date: Tue, 24 Oct 2017 11:03:28 +0100 Subject: Need an Applescript Expert In-Reply-To: <010b01d34c55$9936c170$cba44450$@net> References: <4FDAA0CB-02B1-4CFC-B601-9A8E2E5ED34D@iotecdigital.com> <010b01d34c55$9936c170$cba44450$@net> Message-ID: Hi Bob Outside of a browser you can use this to find out your running process id?s > function getSysRunningApps() { var oOutput = document.getElementById("processDisplay"); oOutput.value = ""; oOutput.value = getProcessList(); } Or use this for getting a running apps open active window > window = Acrobat.windows[0]; window.name(); Or then you could do this: > window.getField("technotes").value = "This is only a test."; That should make sense. If getField works that is. If not I would try > window.document.getElementById(?technotes?).value = ?Test value?; This should steer you along the right path though. Sean Cole Pi Digital > On 24 Oct 2017, at 00:20, Ralph DiMola via use-livecode wrote: > > Shake some dust off from my Acrobat JavaScript days... > I think you will have to open the document. You are in a new instance of > Acrobat without an currently open document. > > 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: Monday, October 23, 2017 6:57 PM > To: How to use LiveCode > Cc: Bob Sneidar > Subject: Need an Applescript Expert > > Hi all. > > When populating forms on a Macintosh, I figured out a nice little hack which > allows me to populate a fillable form with values using AppleScript. The > trick is to tell Applescript to tell Acrobat to run a Javascript! Seems a > little convoluted but it works great. > > So I discovered recently that Applescript can run Javascript natively! > Great. I figured I would bypass applescript and pass javascript directly! > But I've run ingo a snag. Here is a quick sample of what works: > > tell application "/Applications/Adobe Acrobat DC/Adobe Acrobat.app" > set theScript to "this.getField(\"technotes\").value = \"This is only a > test. \";" > do script theScript > end tell > > Don't let the backslash quotes trip you up I am just escapting quote > characters. Now the Javascript version *should* look like this but it does > NOT work! > > Acrobat = Application('Adobe Acrobat'); > Acrobat.activate(); > delay(1); > > this.getField("technotes").value = "This is only a test."; > > I get an error that this.getField is undefined! Whaaaaa??? Why does it work > as an applescript command then?? > > 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 bobsneidar at iotecdigital.com Tue Oct 24 10:37:53 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 24 Oct 2017 14:37:53 +0000 Subject: Need an Applescript Expert In-Reply-To: References: <4FDAA0CB-02B1-4CFC-B601-9A8E2E5ED34D@iotecdigital.com> <010b01d34c55$9936c170$cba44450$@net> Message-ID: > On Oct 24, 2017, at 03:03 , Pi Digital via use-livecode wrote: > > Or then you could do this: > >> window.getField("technotes").value = "This is only a test."; > Can't find variable window. > That should make sense. If getField works that is. If not I would try > >> window.document.getElementById(?technotes?).value = ?Test value?; > can't find variable window. > > This should steer you along the right path though. > > Sean Cole > Pi Digital > > From bobsneidar at iotecdigital.com Tue Oct 24 10:41:37 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 24 Oct 2017 14:41:37 +0000 Subject: Need an Applescript Expert In-Reply-To: References: <4FDAA0CB-02B1-4CFC-B601-9A8E2E5ED34D@iotecdigital.com> <010b01d34c55$9936c170$cba44450$@net> Message-ID: <67A375E6-6ACB-475E-8074-D976B58AD757@iotecdigital.com> Ya none of this is working. Apparently getField is not a function that is exposed to the script editor. Bob S From heather at livecode.com Tue Oct 24 11:36:56 2017 From: heather at livecode.com (Heather Laine) Date: Tue, 24 Oct 2017 16:36:56 +0100 Subject: Call for Speakers 2018 Message-ID: <2142AD88-DD69-4C64-BB95-D18B6BF8AD50@livecode.com> Dear List Folks, It may or may not yet have come to your attention that due to the great success and popularity of LiveCode Global, we are running it again next year. So I'm once again sending out the call for speakers. Got something interesting to share with the community? Could you fill 7 minutes, 30 minutes or 50 minutes with some LiveCode Goodness? We'll be starting again on January 18th, and then every second month, on 15th March, 17th May, 19th July, 20th September and 15th November. Are you free for an hour on any of those days? If you'd like to speak, please contact me on conference-speaker at livecode.com with a no more than 300 word description of your proposed talk. Warm Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From paul at researchware.com Tue Oct 24 13:13:07 2017 From: paul at researchware.com (Paul Dupuis) Date: Tue, 24 Oct 2017 13:13:07 -0400 Subject: Save file dialogs... In-Reply-To: <22fc6e9e-62a3-8a64-74fe-b7e3d8d3ac14@fourthworld.com> References: <17c92593-b567-5b61-d45c-49e7adad7660@researchware.com> <22fc6e9e-62a3-8a64-74fe-b7e3d8d3ac14@fourthworld.com> Message-ID: http://quality.livecode.com/show_bug.cgi?id=20600 Requested as an enhancement to the 'ask file' engine command. The next question might be what form would that enhancement take? If we look at the syntax of: ask file prompt [with defaultFilePath] [with type types [or type types ...]] [as sheet] You could consider a enhancement where: ask file prompt [with defaultFilePath] [with type types [or type types ...]] [with callback callbackMessage] [as sheet] If the callbackMessage is present the dialog remains, even when the cancel or save button are pressed and instead the callBackMessage is sent to the object that invoked the ask file dialog with the value of the action the user performed as a parameter, i.e. on callBackMessage pAction switch pAction case "Cancel" close window "Ask File" break case "Save" close window "Ask File -- perform save action break case "Plain Text" -- the value of the type popup that was just changed, normally what is returned in 'the result' -- update the default file name in the 'ask file' dialog, but how best to implement this? A property of the window? set the defaultFilepath of window 'Ask File" to pCurrentFileName & tNewExtension break case "MS Word" -- similar to "Plain Text" break end switch end callBackMessage On 10/23/2017 10:02 PM, Richard Gaskin via use-livecode wrote: > Paul Dupuis wrote: > > > On 10/23/2017 4:23 PM, Richard Gaskin via use-livecode wrote: > >> Trevor DeVore wrote: > >> > >> > On Mon, Oct 23, 2017 at 11:32 AM Brian Milby via use-livecode < > >> > use-livecode at lists.runrev.com> wrote: > >> > > >> >> One option would be to leave the extension off when initially > >> >> presented to the user. Then add the correct extension before > >> >> saving if the user did not manually add one. It is probably a > >> >> little more complicated than that though... unless the user has > >> >> their OS set to display extensions, they may not be presented > >> >> with them normally. I?m not sure if that is detectable from > >> >> within LC though. > >> > > >> > One thing to be aware of with this approach is that it won?t work > >> > if your app is sandboxed (apps distributed through the Mac App > >> > Store are sandboxed). When sandboxed you can only write to a file > >> > path that the user explicitly specifies. You will get an error if > >> > you try to change the path that the user specified in the save as > >> > dialog. > >> > >> Good point. Thanks for that, Trevor. > >> > >> It would seem an enhancement request is in order. > >> > >> Paul, are you in a position to file that? > > > > I will file an enhancement request. I'd like to see a > > future/alternative version of ask file that provides the callbacks > > Ralph mentioned. Perhaps as an LCB widget? > > Thanks in advance. It'll be good to get that standard behavior. > > If it were a new command/function, writing it with LCB using FFI would > probably be an excellent choice. Indeed, just about anyone in the > community could do it. > > But in this case it's an extension of an existing command built into > the engine, so doing this feature completion in the existing engine > code would seem maybe a better move. > > After all, if it were written in LCB, we'd then have two different > versions of some form of Ask File command, and we'd have to remember > the nuances between them, which one has what, and if we want the LCB > version we'd have to remember to add that component wherever it's needed. > > As a feature completion of the existing engine-based command, this > would be available to everyone always, and it's common enough to > expect most folks will want it. And less to remember. > From bobsneidar at iotecdigital.com Tue Oct 24 13:26:06 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 24 Oct 2017 17:26:06 +0000 Subject: Need an Applescript Expert In-Reply-To: <27ADDCAD-1C84-4499-B6BB-410BC80E0BBF@iotecdigital.com> References: <4FDAA0CB-02B1-4CFC-B601-9A8E2E5ED34D@iotecdigital.com> <010b01d34c55$9936c170$cba44450$@net> <67A375E6-6ACB-475E-8074-D976B58AD757@iotecdigital.com> <003701d34cdb$f84fbb40$e8ef31c0$@net> <27ADDCAD-1C84-4499-B6BB-410BC80E0BBF@iotecdigital.com> Message-ID: <22570ABB-DB57-449C-9990-B40B2AC4427E@iotecdigital.com> Ooookay I found a .NET port of iText called iTextSharp, and someone wrote a PowerShell module that can access it for the purposes of filling windows forms via the powershell. So now the question becomes, can Livecode access powershell? I suppose I can create a powershell script then launch it with shell or with Livecode's own file commands. Bob S From bonnmike at gmail.com Tue Oct 24 14:37:16 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 24 Oct 2017 12:37:16 -0600 Subject: Need an Applescript Expert In-Reply-To: <22570ABB-DB57-449C-9990-B40B2AC4427E@iotecdigital.com> References: <4FDAA0CB-02B1-4CFC-B601-9A8E2E5ED34D@iotecdigital.com> <010b01d34c55$9936c170$cba44450$@net> <67A375E6-6ACB-475E-8074-D976B58AD757@iotecdigital.com> <003701d34cdb$f84fbb40$e8ef31c0$@net> <27ADDCAD-1C84-4499-B6BB-410BC80E0BBF@iotecdigital.com> <22570ABB-DB57-449C-9990-B40B2AC4427E@iotecdigital.com> Message-ID: try this.. set the shellcommand to "powershell" set the hideconsolewindows to true put shell("ls") should return a listing of files for the current directory. You could also make it interactive.. open process "powershell" for update write "ls" & cr to process "powershell" read from process "powershell" until empty put it -- all text including prompts/etc returned by powershell close process "powershell" On Tue, Oct 24, 2017 at 11:26 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Ooookay I found a .NET port of iText called iTextSharp, and someone wrote > a PowerShell module that can access it for the purposes of filling windows > forms via the powershell. > > So now the question becomes, can Livecode access powershell? I suppose I > can create a powershell script then launch it with shell or with Livecode's > own file commands. > > 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 bodine at bodinetraininggames.com Tue Oct 24 15:55:42 2017 From: bodine at bodinetraininggames.com (tbodine) Date: Tue, 24 Oct 2017 12:55:42 -0700 (MST) Subject: Autosaving stacks corrupted on network drives Message-ID: <1508874942705-0.post@n4.nabble.com> Hi all. Looking for your insights on an issue. Here's the scenario.. I have a standalone Win/Mac app that autosaves user data to a stack file as the user moves from card to card. Typically, files reach sizes of 100-200k. Normally, this works great. But a couple of times a year, some user will manage to get corrupted data causing his stack files to be unusable. I've opened some of these corrupt stack files in a text editor and found the data loss shows the Save operation was interrupted. There's no garble. Just an abrupt end to the data and the file. I've found a common link in these cases -- either the app is on a network drive or the stack file is on a network drive. My theory is that network save operations are slower than saving on a local drive, and somehow this contributes to the data loss. But how? All theories (except conspiracy) are welcome! Thanks, Tom B. -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From lists at mangomultimedia.com Tue Oct 24 15:55:52 2017 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 24 Oct 2017 14:55:52 -0500 Subject: Should engine be applying link or metadata to an LINEFEED (LF) character? Message-ID: Hi all, I?m seeing some behavior that I think is incorrect when setting the htmltext property of a field. I would be interested in other takes on it prior to filing a report, however. Take the following HTML:

This is line 1

This is line 2

If you set the htmltext of a field using the above html then character 15 is a linefeed. If you check the metadata of character 15 it will be 90660. You can confirm this by doing the following: 1) Create a new stack 2) Add a field 3) Copy the html to the clipboard 4) Execute the following in the multiline message box: ``` set the htmltext of field 1 to the clipboarddata put 15 into tChar put charToNum(char tChar of field 1) & cr & the metadata of char tChar of field 1 ``` I don?t think the metadata (or link) should be applied to the LF character. The metadata should only be applied to the characters that the wraps and the

tag is outside of the . Is there a reason the current behavior is desirable and shouldn?t be changed? -- Trevor DeVore ScreenSteps www.screensteps.com From jacque at hyperactivesw.com Tue Oct 24 16:37:44 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 24 Oct 2017 15:37:44 -0500 Subject: [ANN] Release 9.0.0 DP-10 In-Reply-To: References: Message-ID: <07e44c26-60c8-edd6-ef2f-1e66b7dcae55@hyperactivesw.com> On 10/23/17 6:20 AM, panagiotis merakos via use-livecode wrote: > LiveCode 9.0.0 DP-10 comes with 27 bugfixes. Monte, where is the Romote Debugging toggle? Is it tied to Debug Mode? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From merakosp at gmail.com Tue Oct 24 16:39:33 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 24 Oct 2017 21:39:33 +0100 Subject: [ANN] Release 9.0.0 DP-10 In-Reply-To: <07e44c26-60c8-edd6-ef2f-1e66b7dcae55@hyperactivesw.com> References: <07e44c26-60c8-edd6-ef2f-1e66b7dcae55@hyperactivesw.com> Message-ID: @Jacque If you uncheck "Script Debug Mode", the Remote Debugger will not be included in the standalone when you use the "Test" button Best, Panos -- On Tue, Oct 24, 2017 at 9:37 PM, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > On 10/23/17 6:20 AM, panagiotis merakos via use-livecode wrote: > >> LiveCode 9.0.0 DP-10 comes with 27 bugfixes. >> > > Monte, where is the Romote Debugging toggle? Is it tied to Debug Mode? > > -- > 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 MikeKerner at roadrunner.com Tue Oct 24 19:01:49 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 24 Oct 2017 19:01:49 -0400 Subject: Autosaving stacks corrupted on network drives In-Reply-To: <1508874942705-0.post@n4.nabble.com> References: <1508874942705-0.post@n4.nabble.com> Message-ID: Yes, this especially happens with simultaneous sync tools such as google drive (now backup and sync), microsoft ,oneDrive box, and dropbox. There are a variety of things that play into this annoying behavior, but the most common one is timing and latency/connectivity. It really gets to be bad if you quit/save from one machine, and then fire it up from another before the sync/save is complete. Possible solutions: 1) Do what LibreOffice does. Create an invisible semaphore file that the stack checks for on open. If it exists, the open is rejected and the stack immediately closes. This will keep secondary and simultaneous users from getting their grubby paws into the stack before the save/sync is complete. As part of this solution, I would suggest any quit/closeStack event has a built in delay to confirm that the sync/save has completed before removing the semaphore. This is still tricky as you are at the mercy of the sync/save tool, however, if you're clever, you can use the service's api to check, separately, if the sync/save is complete before you let LC finish closing down. 2) Split the data out into a separate data file or better into a database (because most databases use transactions, with greatly minimizes the probability of corruption). On Tue, Oct 24, 2017 at 3:55 PM, tbodine via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi all. > > Looking for your insights on an issue. Here's the scenario.. > > I have a standalone Win/Mac app that autosaves user data to a stack file as > the user moves from card to card. Typically, files reach sizes of 100-200k. > Normally, this works great. But a couple of times a year, some user will > manage to get corrupted data causing his stack files to be unusable. > > I've opened some of these corrupt stack files in a text editor and found > the > data loss shows the Save operation was interrupted. There's no garble. Just > an abrupt end to the data and the file. > > I've found a common link in these cases -- either the app is on a network > drive or the stack file is on a network drive. > > My theory is that network save operations are slower than saving on a local > drive, and somehow this contributes to the data loss. But how? > > All theories (except conspiracy) are welcome! > > Thanks, > Tom B. > > > > > > > -- > 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 > -- 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 lists at mangomultimedia.com Tue Oct 24 19:25:15 2017 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 24 Oct 2017 23:25:15 +0000 Subject: Autosaving stacks corrupted on network drives In-Reply-To: References: <1508874942705-0.post@n4.nabble.com> Message-ID: On Tue, Oct 24, 2017 at 6:03 PM Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > Yes, this especially happens with simultaneous sync tools such as google > drive (now backup and sync), microsoft ,oneDrive box, and dropbox. There > are a variety of things that play into this annoying behavior, but the most > common one is timing and latency/connectivity. It really gets to be bad if > you quit/save from one machine, and then fire it up from another before > the sync/save is complete. I?ve seen similar problems as well. Another option would be to save the file to the temp folder and, if that operation is successful, delete the original file and move the file from the temp folder to the correct location. Trevor DeVore From bernd.niggemann at uni-wh.de Tue Oct 24 19:25:42 2017 From: bernd.niggemann at uni-wh.de (BNig) Date: Tue, 24 Oct 2017 16:25:42 -0700 (MST) Subject: [ANN] TinyDictionary updated to work also in LC 8.2.0 DP2 and LC 9 DP10 Message-ID: <1508887542467-0.post@n4.nabble.com> Due to changes how LC organizes dictionary data in LC 8.2 DP2 and LC 9 DP 10 tinyDictionary did not display LCB dictionary entries anymore. TinyDictionary version 0.8.3 restores that functionality and is backwards compatible. Thanks James Hale for the code for the acqusition of the dictionary array. It has been uploaded to "Sample Stacks" = livecodeshare. http://livecodeshare.runrev.com/stack/825/TinyDictionary Kind regards Bernd -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From Bernd.Niggemann at uni-wh.de Tue Oct 24 19:28:57 2017 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Tue, 24 Oct 2017 23:28:57 +0000 Subject: [ANN] TinyDictionary updated to work also in LC 8.2.0 DP2 and LC 9 DP10 Message-ID: <3F4955EF-FE17-4912-93F5-9A63EC2899CF@uni-wh.de> Due to changes how LC organizes dictionary data in LC 8.2 DP2 and LC 9 DP 10 tinyDictionary did not display LCB dictionary entries anymore. TinyDictionary version 0.8.3 restores that functionality and is backwards compatible. Thanks James Hale for the code for the acquisition of the dictionary array. It has been uploaded to "Sample Stacks" = livecodeshare. http://livecodeshare.runrev.com/stack/825/TinyDictionary Kind regards Bernd From ahsoftware at sonic.net Tue Oct 24 21:34:28 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 24 Oct 2017 18:34:28 -0700 Subject: Call for Speakers 2018 In-Reply-To: <2142AD88-DD69-4C64-BB95-D18B6BF8AD50@livecode.com> References: <2142AD88-DD69-4C64-BB95-D18B6BF8AD50@livecode.com> Message-ID: <2b073d91-faa1-bcf0-2666-7ac2fea169dd@sonic.net> On 10/24/2017 08:36 AM, Heather Laine via use-livecode wrote: > Dear List Folks, > > It may or may not yet have come to your attention that due to the great success and popularity of LiveCode Global, we are running it again next year. So I'm once again sending out the call for speakers. Got something interesting to share with the community? Could you fill 7 minutes, 30 minutes or 50 minutes with some LiveCode Goodness? We'll be starting again on January 18th, and then every second month, on 15th March, 17th May, 19th July, 20th September and 15th November. Are you free for an hour on any of those days? That sounds like the last nail in the coffin for the actual conferences. -- Mark Wieder ahsoftware at gmail.com From peterwawood at gmail.com Tue Oct 24 22:07:43 2017 From: peterwawood at gmail.com (Peter W A Wood) Date: Wed, 25 Oct 2017 10:07:43 +0800 Subject: Call for Speakers 2018 In-Reply-To: <2b073d91-faa1-bcf0-2666-7ac2fea169dd@sonic.net> References: <2142AD88-DD69-4C64-BB95-D18B6BF8AD50@livecode.com> <2b073d91-faa1-bcf0-2666-7ac2fea169dd@sonic.net> Message-ID: <465788EE-15F3-401F-B967-BFE5228CC8BB@gmail.com> On 25 Oct 2017, at 09:34, Mark Wieder via use-livecode wrote: > That sounds like the last nail in the coffin for the actual conferences. Sounds like a great opportunity for you to launch Mark Wieder Event Management Inc. ;-) Peter From james at thehales.id.au Wed Oct 25 01:26:47 2017 From: james at thehales.id.au (James At The Hale) Date: Wed, 25 Oct 2017 16:26:47 +1100 Subject: Update to Dash docset maker Message-ID: I have just updated the make_docset stack to generate a Dash compatibile documentation set for use by Dash (on the Mac) and the other Dash compatible readers on other platforms. http://forums.livecode.com/viewtopic.php?f=16&t=29745 The new documentation set for LC9 dp 10 has also been submitted to the Dash repository and should be available in a day or two to download if you don?t want to roll your own. Enjoy, James From james at thehales.id.au Wed Oct 25 04:07:20 2017 From: james at thehales.id.au (James Hale) Date: Wed, 25 Oct 2017 19:07:20 +1100 Subject: mkvMerge - batch processing stack for mkvToolnix Message-ID: Hi, I have just uploaded a stack "mkvmerge" to livecodeshare. I manipulate lots of video files from different sources. In doing so I have on occassion need to use the main mkv processing app "mkvToolnix". Anyone who has used this app knows how powerful it is. mkvToolnix has a batch file processing capability and where I need to make individual changes to the settings, depending on the files concerned, this is the way to go. However there are many occassions where I wish to apply the same settings to each file in the "batch" I have. Enter "mkvMerger" mkvMerger will take a list of files (or two) and apply the same mkvmerge command to each one. The files are saved to a newly created directory either next to the original first directory (if processing from two directories) or within the the first directory (if processing from that alone.) It will save 5 sets of settings/arguments for the mkvmerge binary but comes with three of them already set. 1. The first will simply remux the supplied files into a "mkv" container. 2. The second will take subtitles from one mkv file and transfer to another. 3. The third will take an srt file and mux it into the mkv file. This has been made on a Mac but I think the filepaths etc should work on Win or Linux. If you wish to make a standalone (I have) you will need to make a splash stack and then call this stack as I save all the settings as custom properties in this stack. Of course, this stack requires the mkvMerge binary to run. The simplest way to get this is to download the mkvToolnix app from the site: https://mkvtoolnix.download/index.html This stack was saved using LC9DP10 Enjoy James From ambassador at fourthworld.com Wed Oct 25 04:16:27 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 25 Oct 2017 01:16:27 -0700 Subject: mkvMerge - batch processing stack for mkvToolnix In-Reply-To: References: Message-ID: That's pretty awesome, James. Thanks for posting that. -- Richard Gaskin Fourth World Systems James Hale wrote: > I have just uploaded a stack "mkvmerge" to livecodeshare. > > I manipulate lots of video files from different sources. > In doing so I have on occassion need to use the main mkv processing app "mkvToolnix". > > Anyone who has used this app knows how powerful it is. > > mkvToolnix has a batch file processing capability and where I need to make individual changes to the settings, depending on the files concerned, this is the way to go. > > However there are many occassions where I wish to apply the same settings to each file in the "batch" I have. > > Enter "mkvMerger" > > mkvMerger will take a list of files (or two) and apply the same mkvmerge command to each one. > > The files are saved to a newly created directory either next to the original first directory (if processing from two directories) or within the the first directory (if processing from that alone.) > > It will save 5 sets of settings/arguments for the mkvmerge binary but comes with three of them already set. > > 1. The first will simply remux the supplied files into a "mkv" container. > > 2. The second will take subtitles from one mkv file and transfer to another. > > 3. The third will take an srt file and mux it into the mkv file. > > This has been made on a Mac but I think the filepaths etc should work on Win or Linux. > > If you wish to make a standalone (I have) you will need to make a splash stack and then call this stack as I save all the settings as custom properties in this stack. > > Of course, this stack requires the mkvMerge binary to run. > > The simplest way to get this is to download the mkvToolnix app from the site: > > https://mkvtoolnix.download/index.html > > This stack was saved using LC9DP10 > > > Enjoy > > James From roger.e.eller at sealedair.com Wed Oct 25 06:16:26 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 25 Oct 2017 06:16:26 -0400 Subject: Call for Speakers 2018 In-Reply-To: <2b073d91-faa1-bcf0-2666-7ac2fea169dd@sonic.net> References: <2142AD88-DD69-4C64-BB95-D18B6BF8AD50@livecode.com> <2b073d91-faa1-bcf0-2666-7ac2fea169dd@sonic.net> Message-ID: All that was missing was the food, the drink, and the boat rides. The content and the video quality was so much more, and so much better, imho. I thoroughly enjoyed the in-person conferences, however there's no reason the group couldn't do smaller sessions specifically to address that gap in social interaction. It's too bad we don't have virtual reality yet. LOL ~Roger On Oct 24, 2017 9:35 PM, "Mark Wieder via use-livecode" < use-livecode at lists.runrev.com> wrote: On 10/24/2017 08:36 AM, Heather Laine via use-livecode wrote: > Dear List Folks, > > It may or may not yet have come to your attention that due to the great > success and popularity of LiveCode Global, we are running it again next > year. So I'm once again sending out the call for speakers. Got something > interesting to share with the community? Could you fill 7 minutes, 30 > minutes or 50 minutes with some LiveCode Goodness? We'll be starting again > on January 18th, and then every second month, on 15th March, 17th May, 19th > July, 20th September and 15th November. Are you free for an hour on any of > those days? > That sounds like the last nail in the coffin for the actual conferences. -- 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 bodine at bodinetraininggames.com Wed Oct 25 10:31:20 2017 From: bodine at bodinetraininggames.com (tbodine) Date: Wed, 25 Oct 2017 07:31:20 -0700 (MST) Subject: Autosaving stacks corrupted on network drives In-Reply-To: <1508874942705-0.post@n4.nabble.com> References: <1508874942705-0.post@n4.nabble.com> Message-ID: <1508941880523-0.post@n4.nabble.com> Thanks, Mark and Trevor, for those ideas. >>Mark wrote: Split the data out into a separate data file or better into a database? (because most databases use transactions, with greatly minimizes the? probability of corruption).? Does "databases use transactions" mean DBs don't rewrite the entire file when there is a Save operation, but only write the changes into the DB file? (Hence, faster saves?) Tom B. -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From MikeKerner at roadrunner.com Wed Oct 25 10:53:06 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 25 Oct 2017 10:53:06 -0400 Subject: Autosaving stacks corrupted on network drives In-Reply-To: <1508941880523-0.post@n4.nabble.com> References: <1508874942705-0.post@n4.nabble.com> <1508941880523-0.post@n4.nabble.com> Message-ID: Yes. Transactions are the individual operations, i.e. an audit trail. Then if there is corruption in the db, it is able to "play back" the transactions to recreate it. On Wed, Oct 25, 2017 at 10:31 AM, tbodine via use-livecode < use-livecode at lists.runrev.com> wrote: > Thanks, Mark and Trevor, for those ideas. > > >>Mark wrote: > Split the data out into a separate data file or better into a database > (because most databases use transactions, with greatly minimizes the > probability of corruption). > > Does "databases use transactions" mean DBs don't rewrite the entire file > when there is a Save operation, but only write the changes into the DB > file? > (Hence, faster saves?) > > Tom B. > > > > > -- > 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 > -- 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 Wed Oct 25 11:34:47 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 25 Oct 2017 15:34:47 +0000 Subject: Standalone Building for multiple platforms Message-ID: <5227CB89-C45B-407C-BC9C-77749E361836@iotecdigital.com> Hi all. Not sure if this would qualify for a bug, but I think the issue where building for multiple platforms failing for a variety of reasons can be resolved, if the Standalone Builder simple CLOSED ALL STACKS before building for the next platform. I just build for Windows, and now what ought to be a main stack with a number of substacks has all the substacks as main stacks, and any attempt to open the original file causes all kinds of problems. I have to actually quit Livecode after buildign for each platform individually. Should I submit this as a bug? Should be pretty simple to fix. Bob S From bobsneidar at iotecdigital.com Wed Oct 25 11:36:11 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 25 Oct 2017 15:36:11 +0000 Subject: Need an Applescript Expert In-Reply-To: References: <4FDAA0CB-02B1-4CFC-B601-9A8E2E5ED34D@iotecdigital.com> <010b01d34c55$9936c170$cba44450$@net> <67A375E6-6ACB-475E-8074-D976B58AD757@iotecdigital.com> <003701d34cdb$f84fbb40$e8ef31c0$@net> <27ADDCAD-1C84-4499-B6BB-410BC80E0BBF@iotecdigital.com> <22570ABB-DB57-449C-9990-B40B2AC4427E@iotecdigital.com> Message-ID: <87CC9467-09FE-433C-85C0-B7A232C6DB7E@iotecdigital.com> Sweet thanks! Bob S > On Oct 24, 2017, at 11:37 , Mike Bonner via use-livecode wrote: > > try this.. > set the shellcommand to "powershell" > set the hideconsolewindows to true > put shell("ls") > > should return a listing of files for the current directory. > > You could also make it interactive.. > open process "powershell" for update > write "ls" & cr to process "powershell" > read from process "powershell" until empty > put it -- all text including prompts/etc returned by powershell > close process "powershell" > > On Tue, Oct 24, 2017 at 11:26 AM, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Ooookay I found a .NET port of iText called iTextSharp, and someone wrote >> a PowerShell module that can access it for the purposes of filling windows >> forms via the powershell. >> >> So now the question becomes, can Livecode access powershell? I suppose I >> can create a powershell script then launch it with shell or with Livecode's >> own file commands. >> >> 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 bobsneidar at iotecdigital.com Wed Oct 25 11:48:01 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 25 Oct 2017 15:48:01 +0000 Subject: Should engine be applying link or metadata to an LINEFEED (LF) character? In-Reply-To: References: Message-ID: <32E99850-8A01-4546-BCAF-5E6DC41BD19A@iotecdigital.com> The only reason I can think is that email sometimes line breaks inside of a link, and might break the link, or at least the link would be applied to the first line, but not the second. If the line feed was also a part of the hyperlink, then the link *should* span across the broken lines. Bob S > On Oct 24, 2017, at 12:55 , Trevor DeVore via use-livecode wrote: > > Hi all, > > I?m seeing some behavior that I think is incorrect when setting the > htmltext property of a field. I would be interested in other takes on it > prior to filing a report, however. > > Take the following HTML: > >

This is line > 1

>

This is line 2

> > If you set the htmltext of a field using the above html then character 15 > is a linefeed. If you check the metadata of character 15 it will be 90660. > You can confirm this by doing the following: > > 1) Create a new stack > 2) Add a field > 3) Copy the html to the clipboard > 4) Execute the following in the multiline message box: > > ``` > set the htmltext of field 1 to the clipboarddata > put 15 into tChar > put charToNum(char tChar of field 1) & cr & the metadata of char tChar of > field 1 > ``` > > I don?t think the metadata (or link) should be applied to the LF character. > The metadata should only be applied to the characters that the wraps > and the

tag is outside of the . Is there a reason the current > behavior is desirable and shouldn?t be changed? > > -- > 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 bobsneidar at iotecdigital.com Wed Oct 25 11:54:06 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 25 Oct 2017 15:54:06 +0000 Subject: Autosaving stacks corrupted on network drives In-Reply-To: References: <1508874942705-0.post@n4.nabble.com> Message-ID: <2F48D760-56FD-4F4D-9B83-E76DBC41386B@iotecdigital.com> I thought the OS takes care of that. Are we saying that when saving to a network share this process of creating the semaphore file does not happen? Bob S > On Oct 24, 2017, at 16:01 , Mike Kerner via use-livecode wrote: > > Possible solutions: > 1) Do what LibreOffice does. Create an invisible semaphore file that the > stack checks for on open. If it exists, the open is rejected and the stack > immediately closes. This will keep secondary and simultaneous users from > getting their grubby paws into the stack before the save/sync is complete. > As part of this solution, I would suggest any quit/closeStack event has a > built in delay to confirm that the sync/save has completed before removing > the semaphore. This is still tricky as you are at the mercy of the > sync/save tool, however, if you're clever, you can use the service's api to > check, separately, if the sync/save is complete before you let LC finish > closing down. > 2) Split the data out into a separate data file or better into a database > (because most databases use transactions, with greatly minimizes the > probability of corruption). From MikeKerner at roadrunner.com Wed Oct 25 12:19:15 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 25 Oct 2017 12:19:15 -0400 Subject: Autosaving stacks corrupted on network drives In-Reply-To: <2F48D760-56FD-4F4D-9B83-E76DBC41386B@iotecdigital.com> References: <1508874942705-0.post@n4.nabble.com> <2F48D760-56FD-4F4D-9B83-E76DBC41386B@iotecdigital.com> Message-ID: I'm saying that it is possible to access the same file from the same share from multiple machines and leave the file in an indeterminate or corrupted state, afterwards, especially if both machines accessing the share are trying to save changes to said file. The purpose of the semaphore would be to stop the simultaneous access of the file from multiple machines. On Wed, Oct 25, 2017 at 11:54 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > I thought the OS takes care of that. Are we saying that when saving to a > network share this process of creating the semaphore file does not happen? > > Bob S > > > > On Oct 24, 2017, at 16:01 , Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Possible solutions: > > 1) Do what LibreOffice does. Create an invisible semaphore file that the > > stack checks for on open. If it exists, the open is rejected and the > stack > > immediately closes. This will keep secondary and simultaneous users from > > getting their grubby paws into the stack before the save/sync is > complete. > > As part of this solution, I would suggest any quit/closeStack event has a > > built in delay to confirm that the sync/save has completed before > removing > > the semaphore. This is still tricky as you are at the mercy of the > > sync/save tool, however, if you're clever, you can use the service's api > to > > check, separately, if the sync/save is complete before you let LC finish > > closing down. > > 2) Split the data out into a separate data file or better into a database > > (because most databases use transactions, with greatly minimizes the > > probability of corruption). > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Wed Oct 25 12:26:00 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 25 Oct 2017 12:26:00 -0400 Subject: Autosaving stacks corrupted on network drives In-Reply-To: References: <1508874942705-0.post@n4.nabble.com> <2F48D760-56FD-4F4D-9B83-E76DBC41386B@iotecdigital.com> Message-ID: Now if what you're suggesting is that the server OS should manage the access process so that you cannot have two simultaneous accesses, I would agree, but my experience has been that it doesn't always work that way. On Wed, Oct 25, 2017 at 12:19 PM, Mike Kerner wrote: > I'm saying that it is possible to access the same file from the same share > from multiple machines and leave the file in an indeterminate or corrupted > state, afterwards, especially if both machines accessing the share are > trying to save changes to said file. The purpose of the semaphore would be > to stop the simultaneous access of the file from multiple machines. > > > On Wed, Oct 25, 2017 at 11:54 AM, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I thought the OS takes care of that. Are we saying that when saving to a >> network share this process of creating the semaphore file does not happen? >> >> Bob S >> >> >> > On Oct 24, 2017, at 16:01 , Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > Possible solutions: >> > 1) Do what LibreOffice does. Create an invisible semaphore file that >> the >> > stack checks for on open. If it exists, the open is rejected and the >> stack >> > immediately closes. This will keep secondary and simultaneous users >> from >> > getting their grubby paws into the stack before the save/sync is >> complete. >> > As part of this solution, I would suggest any quit/closeStack event has >> a >> > built in delay to confirm that the sync/save has completed before >> removing >> > the semaphore. This is still tricky as you are at the mercy of the >> > sync/save tool, however, if you're clever, you can use the service's >> api to >> > check, separately, if the sync/save is complete before you let LC finish >> > closing down. >> > 2) Split the data out into a separate data file or better into a >> database >> > (because most databases use transactions, with greatly minimizes the >> > probability of corruption). >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From bobsneidar at iotecdigital.com Wed Oct 25 13:12:52 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 25 Oct 2017 17:12:52 +0000 Subject: Autosaving stacks corrupted on network drives In-Reply-To: References: <1508874942705-0.post@n4.nabble.com> <2F48D760-56FD-4F4D-9B83-E76DBC41386B@iotecdigital.com> Message-ID: Okay I think I see what is going on here. A Livecode stack, though it appears to be open in the IDE, is NOT open from the OS point of view. To test this, create a new livecode stack, save it, then attempt to delete it in the OS while it's still open in the IDE. If my theory is correct, you should have no problem doing so. I did this and sure enough, I was able to put the file in the trash, AND THEN EMPTY IT! But when I saved again in the IDE, it recreated the file. Bob S > On Oct 25, 2017, at 09:26 , Mike Kerner via use-livecode wrote: > > Now if what you're suggesting is that the server OS should manage the > access process so that you cannot have two simultaneous accesses, I would > agree, but my experience has been that it doesn't always work that way. > > On Wed, Oct 25, 2017 at 12:19 PM, Mike Kerner > wrote: > >> I'm saying that it is possible to access the same file from the same share >> from multiple machines and leave the file in an indeterminate or corrupted >> state, afterwards, especially if both machines accessing the share are >> trying to save changes to said file. The purpose of the semaphore would be >> to stop the simultaneous access of the file from multiple machines. >> >> >> On Wed, Oct 25, 2017 at 11:54 AM, Bob Sneidar via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> I thought the OS takes care of that. Are we saying that when saving to a >>> network share this process of creating the semaphore file does not happen? >>> >>> Bob S >>> >>> >>>> On Oct 24, 2017, at 16:01 , Mike Kerner via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>>> >>>> Possible solutions: >>>> 1) Do what LibreOffice does. Create an invisible semaphore file that >>> the >>>> stack checks for on open. If it exists, the open is rejected and the >>> stack >>>> immediately closes. This will keep secondary and simultaneous users >>> from >>>> getting their grubby paws into the stack before the save/sync is >>> complete. >>>> As part of this solution, I would suggest any quit/closeStack event has >>> a >>>> built in delay to confirm that the sync/save has completed before >>> removing >>>> the semaphore. This is still tricky as you are at the mercy of the >>>> sync/save tool, however, if you're clever, you can use the service's >>> api to >>>> check, separately, if the sync/save is complete before you let LC finish >>>> closing down. >>>> 2) Split the data out into a separate data file or better into a >>> database >>>> (because most databases use transactions, with greatly minimizes the >>>> probability of corruption). >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> >> -- >> On the first day, God created the heavens and the Earth >> On the second day, God created the oceans. >> On the third day, God put the animals on hold for a few hours, >> and did a little diving. >> And God said, "This is good." >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Wed Oct 25 13:15:48 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 25 Oct 2017 13:15:48 -0400 Subject: Autosaving stacks corrupted on network drives In-Reply-To: References: <1508874942705-0.post@n4.nabble.com> <2F48D760-56FD-4F4D-9B83-E76DBC41386B@iotecdigital.com> Message-ID: I was thinking about the mechanics of this. A stack is really a folder/bundle, at least on macos/ios, so I wonder if parts of the stack bundle are open and parts are not, which could really make things problematic... On Wed, Oct 25, 2017 at 1:12 PM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Okay I think I see what is going on here. A Livecode stack, though it > appears to be open in the IDE, is NOT open from the OS point of view. To > test this, create a new livecode stack, save it, then attempt to delete it > in the OS while it's still open in the IDE. If my theory is correct, you > should have no problem doing so. > > I did this and sure enough, I was able to put the file in the trash, AND > THEN EMPTY IT! But when I saved again in the IDE, it recreated the file. > > Bob S > > > > On Oct 25, 2017, at 09:26 , Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Now if what you're suggesting is that the server OS should manage the > > access process so that you cannot have two simultaneous accesses, I would > > agree, but my experience has been that it doesn't always work that way. > > > > On Wed, Oct 25, 2017 at 12:19 PM, Mike Kerner > > > wrote: > > > >> I'm saying that it is possible to access the same file from the same > share > >> from multiple machines and leave the file in an indeterminate or > corrupted > >> state, afterwards, especially if both machines accessing the share are > >> trying to save changes to said file. The purpose of the semaphore > would be > >> to stop the simultaneous access of the file from multiple machines. > >> > >> > >> On Wed, Oct 25, 2017 at 11:54 AM, Bob Sneidar via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >>> I thought the OS takes care of that. Are we saying that when saving to > a > >>> network share this process of creating the semaphore file does not > happen? > >>> > >>> Bob S > >>> > >>> > >>>> On Oct 24, 2017, at 16:01 , Mike Kerner via use-livecode < > >>> use-livecode at lists.runrev.com> wrote: > >>>> > >>>> Possible solutions: > >>>> 1) Do what LibreOffice does. Create an invisible semaphore file that > >>> the > >>>> stack checks for on open. If it exists, the open is rejected and the > >>> stack > >>>> immediately closes. This will keep secondary and simultaneous users > >>> from > >>>> getting their grubby paws into the stack before the save/sync is > >>> complete. > >>>> As part of this solution, I would suggest any quit/closeStack event > has > >>> a > >>>> built in delay to confirm that the sync/save has completed before > >>> removing > >>>> the semaphore. This is still tricky as you are at the mercy of the > >>>> sync/save tool, however, if you're clever, you can use the service's > >>> api to > >>>> check, separately, if the sync/save is complete before you let LC > finish > >>>> closing down. > >>>> 2) Split the data out into a separate data file or better into a > >>> database > >>>> (because most databases use transactions, with greatly minimizes the > >>>> probability of corruption). > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >>> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >> > >> > >> > >> -- > >> On the first day, God created the heavens and the Earth > >> On the second day, God created the oceans. > >> On the third day, God put the animals on hold for a few hours, > >> and did a little diving. > >> And God said, "This is good." > >> > > > > > > > > -- > > On the first day, God created the heavens and the Earth > > On the second day, God created the oceans. > > On the third day, God put the animals on hold for a few hours, > > and did a little diving. > > And God said, "This is good." > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From brian at milby7.com Wed Oct 25 13:45:19 2017 From: brian at milby7.com (Brian Milby) Date: Wed, 25 Oct 2017 17:45:19 +0000 Subject: Autosaving stacks corrupted on network drives In-Reply-To: References: <1508874942705-0.post@n4.nabble.com> <2F48D760-56FD-4F4D-9B83-E76DBC41386B@iotecdigital.com> Message-ID: The stack file isn?t a package. If using an old format, then it may have a resource fork. The stack is read into memory and the file closed (not sure how resource fork stuff is handled though). On Wed, Oct 25, 2017 at 12:16 PM Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > I was thinking about the mechanics of this. A stack is really a > folder/bundle, at least on macos/ios, so I wonder if parts of the stack > bundle are open and parts are not, which could really make things > problematic... > > On Wed, Oct 25, 2017 at 1:12 PM, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Okay I think I see what is going on here. A Livecode stack, though it > > appears to be open in the IDE, is NOT open from the OS point of view. To > > test this, create a new livecode stack, save it, then attempt to delete > it > > in the OS while it's still open in the IDE. If my theory is correct, you > > should have no problem doing so. > > > > I did this and sure enough, I was able to put the file in the trash, AND > > THEN EMPTY IT! But when I saved again in the IDE, it recreated the file. > > > > Bob S > > > > > > > On Oct 25, 2017, at 09:26 , Mike Kerner via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > > Now if what you're suggesting is that the server OS should manage the > > > access process so that you cannot have two simultaneous accesses, I > would > > > agree, but my experience has been that it doesn't always work that way. > > > > > > On Wed, Oct 25, 2017 at 12:19 PM, Mike Kerner < > MikeKerner at roadrunner.com > > > > > > wrote: > > > > > >> I'm saying that it is possible to access the same file from the same > > share > > >> from multiple machines and leave the file in an indeterminate or > > corrupted > > >> state, afterwards, especially if both machines accessing the share are > > >> trying to save changes to said file. The purpose of the semaphore > > would be > > >> to stop the simultaneous access of the file from multiple machines. > > >> > > >> > > >> On Wed, Oct 25, 2017 at 11:54 AM, Bob Sneidar via use-livecode < > > >> use-livecode at lists.runrev.com> wrote: > > >> > > >>> I thought the OS takes care of that. Are we saying that when saving > to > > a > > >>> network share this process of creating the semaphore file does not > > happen? > > >>> > > >>> Bob S > > >>> > > >>> > > >>>> On Oct 24, 2017, at 16:01 , Mike Kerner via use-livecode < > > >>> use-livecode at lists.runrev.com> wrote: > > >>>> > > >>>> Possible solutions: > > >>>> 1) Do what LibreOffice does. Create an invisible semaphore file > that > > >>> the > > >>>> stack checks for on open. If it exists, the open is rejected and > the > > >>> stack > > >>>> immediately closes. This will keep secondary and simultaneous users > > >>> from > > >>>> getting their grubby paws into the stack before the save/sync is > > >>> complete. > > >>>> As part of this solution, I would suggest any quit/closeStack event > > has > > >>> a > > >>>> built in delay to confirm that the sync/save has completed before > > >>> removing > > >>>> the semaphore. This is still tricky as you are at the mercy of the > > >>>> sync/save tool, however, if you're clever, you can use the service's > > >>> api to > > >>>> check, separately, if the sync/save is complete before you let LC > > finish > > >>>> closing down. > > >>>> 2) Split the data out into a separate data file or better into a > > >>> database > > >>>> (because most databases use transactions, with greatly minimizes the > > >>>> probability of corruption). > > >>> > > >>> > > >>> _______________________________________________ > > >>> use-livecode mailing list > > >>> use-livecode at lists.runrev.com > > >>> Please visit this url to subscribe, unsubscribe and manage your > > >>> subscription preferences: > > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > > >>> > > >> > > >> > > >> > > >> -- > > >> On the first day, God created the heavens and the Earth > > >> On the second day, God created the oceans. > > >> On the third day, God put the animals on hold for a few hours, > > >> and did a little diving. > > >> And God said, "This is good." > > >> > > > > > > > > > > > > -- > > > On the first day, God created the heavens and the Earth > > > On the second day, God created the oceans. > > > On the third day, God put the animals on hold for a few hours, > > > and did a little diving. > > > And God said, "This is good." > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From rdimola at evergreeninfo.net Wed Oct 25 14:03:23 2017 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 25 Oct 2017 14:03:23 -0400 Subject: Autosaving stacks corrupted on network drives In-Reply-To: References: <1508874942705-0.post@n4.nabble.com> <2F48D760-56FD-4F4D-9B83-E76DBC41386B@iotecdigital.com> Message-ID: <006701d34dbb$8f9c88e0$aed59aa0$@net> True, The stack is not open after it's read into memory. I can see why/why not this is done from a LC point of view. If the stack is being read in from a web server it's not possible to lock it. If the file is local/network then the stack could remain open and locked for write. Other processes could then open/read it but not save it. This looks like it's been around for a long time. Could locking stack(s) break existing projects? I vote to lock for write any open stacks. 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: Wednesday, October 25, 2017 1:13 PM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: Autosaving stacks corrupted on network drives Okay I think I see what is going on here. A Livecode stack, though it appears to be open in the IDE, is NOT open from the OS point of view. To test this, create a new livecode stack, save it, then attempt to delete it in the OS while it's still open in the IDE. If my theory is correct, you should have no problem doing so. I did this and sure enough, I was able to put the file in the trash, AND THEN EMPTY IT! But when I saved again in the IDE, it recreated the file. Bob S > On Oct 25, 2017, at 09:26 , Mike Kerner via use-livecode wrote: > > Now if what you're suggesting is that the server OS should manage the > access process so that you cannot have two simultaneous accesses, I > would agree, but my experience has been that it doesn't always work that way. > > On Wed, Oct 25, 2017 at 12:19 PM, Mike Kerner > > wrote: > >> I'm saying that it is possible to access the same file from the same >> share from multiple machines and leave the file in an indeterminate >> or corrupted state, afterwards, especially if both machines accessing >> the share are trying to save changes to said file. The purpose of >> the semaphore would be to stop the simultaneous access of the file from multiple machines. >> >> >> On Wed, Oct 25, 2017 at 11:54 AM, Bob Sneidar via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> I thought the OS takes care of that. Are we saying that when saving >>> to a network share this process of creating the semaphore file does not happen? >>> >>> Bob S >>> >>> >>>> On Oct 24, 2017, at 16:01 , Mike Kerner via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>>> >>>> Possible solutions: >>>> 1) Do what LibreOffice does. Create an invisible semaphore file >>>> that >>> the >>>> stack checks for on open. If it exists, the open is rejected and >>>> the >>> stack >>>> immediately closes. This will keep secondary and simultaneous >>>> users >>> from >>>> getting their grubby paws into the stack before the save/sync is >>> complete. >>>> As part of this solution, I would suggest any quit/closeStack event >>>> has >>> a >>>> built in delay to confirm that the sync/save has completed before >>> removing >>>> the semaphore. This is still tricky as you are at the mercy of the >>>> sync/save tool, however, if you're clever, you can use the >>>> service's >>> api to >>>> check, separately, if the sync/save is complete before you let LC >>>> finish closing down. >>>> 2) Split the data out into a separate data file or better into a >>> database >>>> (because most databases use transactions, with greatly minimizes >>>> the probability of corruption). >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> >> -- >> On the first day, God created the heavens and the Earth On the second >> day, God created the oceans. >> On the third day, God put the animals on hold for a few hours, >> and did a little diving. >> And God said, "This is good." >> > > > > -- > On the first day, God created the heavens and the Earth On the second > day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Oct 25 14:12:34 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 25 Oct 2017 18:12:34 +0000 Subject: Autosaving stacks corrupted on network drives In-Reply-To: <006701d34dbb$8f9c88e0$aed59aa0$@net> References: <1508874942705-0.post@n4.nabble.com> <2F48D760-56FD-4F4D-9B83-E76DBC41386B@iotecdigital.com> <006701d34dbb$8f9c88e0$aed59aa0$@net> Message-ID: There may be a way to shell the permissions, but it would require sudo on a Mac and UAC on Windows. There is a locked flag in both OS I believe... but you would then have to script saves. An alternative way to semaphore this process is to have a text file that you increment a number for anytime changes are saved, then check to see if the prior number matches the current number and act accordingly. But all this really lends itself to the adoption of Trevor's Levure Framework, doesn't it? If the only changes being made are script changes, then set the permission of the UI stack so that only one person or a group of persons can open it for editing, and leave the script only behaviors editable by all. Someone can still overwrite someone elses changes though. I was at a SoCal users group some time back, and one of the attendees showed off a very nice commercial app, and they created their own system where files were checked out, including UI files. Otherwise GIT can be used to control access and versioning. Bob S > On Oct 25, 2017, at 11:03 , Ralph DiMola via use-livecode wrote: > > True, The stack is not open after it's read into memory. I can see why/why > not this is done from a LC point of view. If the stack is being read in from > a web server it's not possible to lock it. If the file is local/network then > the stack could remain open and locked for write. Other processes could then > open/read it but not save it. This looks like it's been around for a long > time. Could locking stack(s) break existing projects? I vote to lock for > write any open stacks. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net From ambassador at fourthworld.com Wed Oct 25 15:31:00 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 25 Oct 2017 12:31:00 -0700 Subject: Autosaving stacks corrupted on network drives In-Reply-To: References: Message-ID: Brian Milby wrote: > The stack file isn?t a package. If using an old format, then it may > have a resource fork. Anything in the resource for was put there by the developer. Having been born on Unix. MetaCard (the LC engine's original name) provided functions for using resources on Mac, but never relied on them in its engine or IDE. As for Dropbox and other cloud storage services: Even without multiple simultaneously users modifying the file, this is a pervasive problem not at all limited to LiveCode stack files. Indeed, LC's saves are pretty sparse and rewrite the entire file, as opposed to more complex paging systems like HyperCard and SuperCard used. One of the more complex paging data formats we LC folks use frequently is SQLite, Tons of questions about that all over the Web: One software vendor has gone so far as to explicitly advise their customers not to work on SQLite files directly in cloud-synced folders, recommending copying them there for backups only: Caution We strongly recommend that you do not work with a project inside the synchronized storage area, meaning that you never open a project file from right within the cloud folder (e.g. your Dropbox folder). Instead, we recommend to copy the project to a location that is not synchronized e.g. to your desktop and copy it back to your cloud service when you are finished working on it. Especially when working on a Mac computer we cannot guarantee that project files are damaged by your cloud service starting a synchronisation process while the MAXQDA project is opened, thus possibly corrupting the project. This is reinforced by a "superuser" in the Dropbox forums: "First, it's suggested that you not use database files within Dropbox. Conflicted copies are a likely result (as someone else posted about recently as well). On the SQLite list someone wrote: "If Dropbox decides to take a copy while SQLite is in the middle of processing a transaction, you will temporarily have a copy of the database with a partially-processed transaction on all the computers which have access to that shared area. "Dropbox doesn?t understand that the database file and the journal file go together, even if they?re in the same folder. And in order to stop one user from hogging its servers there?s sometimes a short delay between when it updates its copy of one file and when it updates its copy of another file. So it?s possible for one computer which has a copy of the database to have a newer database file than its journal file, or vice versa." A user in a discussion on this problem in the Xojo forums noted succinctly: "It does not need a Data corruption, it just needs 1 Network related delay of your sync and you loose Data." Since LC writes stack files whole when saving, I'm not sure why this would be as much of a problem as it appears to be with paged formats. I wonder if LC's pre-save step of making a backup copy of a file somehow throws off Dropbox's sync so that it's tardy in then syncing the actual new stack file. Perhaps the extra network traffic may be enough to throw things off, per the Xojo user's point. PS: FWIW with my own use syncing my LC Plugins folder and work files, I've seen far fewer "conflict files" since I switched to Nextcloud after having used Dropbox and Google Drive. Maybe it's just luck, or maybe it's that most of the time I'm syncing over the local network (my Nextcloud box sits three feet from my main workstation). Or maybe Nextcloud's use of OS-provided file-changed flags is just a bit more tidy than whatever monitoring method Dropbox and others use. -- 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 jiml at netrin.com Wed Oct 25 15:42:28 2017 From: jiml at netrin.com (Jim Lambert) Date: Wed, 25 Oct 2017 12:42:28 -0700 Subject: Should engine be applying link or metadata to an LINEFEED (LF) character? In-Reply-To: References: Message-ID: Trevor wrote: > > ... >

This is line > 1

>

This is line 2

> > ? > > set the htmltext of field 1 to the clipboarddata > put 15 into tChar > put charToNum(char tChar of field 1) & cr & the metadata of char tChar of > field 1 As you noted, one gets: 10 90660 Now select before char 1 of line 2 and hit the delete key, so that all the text is on line 1. Next hit the return key, so that the text is again on two lines and looks just as it did before. Next run: > put 15 into tChar > put charToNum(char tChar of field 1) & cr & the metadata of char tChar of > field 1 Now you only get ?10?, no metadata! Check the htmltext and it?s identical to the original. Odd! Jim Lambert From jiml at netrin.com Wed Oct 25 16:05:10 2017 From: jiml at netrin.com (Jim Lambert) Date: Wed, 25 Oct 2017 13:05:10 -0700 Subject: Should engine be applying link or metadata to an LINEFEED (LF) character? In-Reply-To: References: Message-ID: <51591598-88E8-45AD-9891-E94354BFD6AD@netrin.com> If you put LF into char 15 of line 1 of fld 1 the appearance of Fld 1 doesn?t change, neither does its the htmltext. Yet the result of running your script does change. You only get ?10? and no metadata after substituting a LF for a LF in char 15. Jim Lambert From jiml at netrin.com Wed Oct 25 16:07:41 2017 From: jiml at netrin.com (Jim Lambert) Date: Wed, 25 Oct 2017 13:07:41 -0700 Subject: Should engine be applying link or metadata to an LINEFEED (LF) character? In-Reply-To: <51591598-88E8-45AD-9891-E94354BFD6AD@netrin.com> References: <51591598-88E8-45AD-9891-E94354BFD6AD@netrin.com> Message-ID: <2C7A12F8-AA96-4A2C-B7B2-CD50C16BAE03@netrin.com> I wrote: put LF into char 15 of line 1 of fld 1 Oops, that should read: put LF into char 15 of fld 1 Jim Lambert From capellan2000 at gmail.com Wed Oct 25 19:27:56 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 25 Oct 2017 19:27:56 -0400 Subject: LiveCode Windows Applications on Ubuntu Message-ID: Hi All, Recently, I was running a few LiveCode Windows applications in Ubuntu (using Wine) and found that all of them run really well. Do you have some advice and caveats for creating and using LiveCode Windows applications that runs fine under Wine in Ubuntu or any other Linux distribution? Thanks in advance! Al From ambassador at fourthworld.com Wed Oct 25 20:40:46 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 25 Oct 2017 17:40:46 -0700 Subject: LiveCode Windows Applications on Ubuntu In-Reply-To: References: Message-ID: Alejandro Tejada wrote: > Recently, I was running a few LiveCode Windows applications in Ubuntu > (using Wine) and found that all of them run really well. > > Do you have some advice and caveats for creating and using LiveCode > Windows applications that runs fine under Wine in Ubuntu or any other > Linux distribution? Only this: don't. :) Build native apps for Linux and enjoy better performance and a simpler experience. It's been a few years since I used WINE, and it may well be that my experience with it back then bears no resemblance to how it runs today. But it felt very much a workaround, and the range of component it added to my system eventually created a conflict with something else. WINE helped make me a big fan of VirtualBox. :) If it's for testing Windows compatibility, the emulation won't tell you nearly as much as running a full Windows system in a VM. And if all you want is to run a LiveCode app, a Linux-native build is just one click away.... -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From MikeKerner at roadrunner.com Wed Oct 25 21:12:23 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 25 Oct 2017 21:12:23 -0400 Subject: Standalone Building for multiple platforms In-Reply-To: <5227CB89-C45B-407C-BC9C-77749E361836@iotecdigital.com> References: <5227CB89-C45B-407C-BC9C-77749E361836@iotecdigital.com> Message-ID: I have a similar issue when I even build for one platform, except with behavior stacks. After the build, all the behaviors unload and the stacksInUse is reset. Every time I build I have to preOpenStack to get the other stacks back in. On Wed, Oct 25, 2017 at 11:34 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi all. > > Not sure if this would qualify for a bug, but I think the issue where > building for multiple platforms failing for a variety of reasons can be > resolved, if the Standalone Builder simple CLOSED ALL STACKS before > building for the next platform. I just build for Windows, and now what > ought to be a main stack with a number of substacks has all the substacks > as main stacks, and any attempt to open the original file causes all kinds > of problems. I have to actually quit Livecode after buildign for each > platform individually. > > Should I submit this as a bug? Should be pretty simple to fix. > > 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 richmondmathewson at gmail.com Thu Oct 26 00:24:08 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 26 Oct 2017 07:24:08 +0300 Subject: LiveCode Windows Applications on Ubuntu In-Reply-To: References: Message-ID: <2daae0f8-8bc7-6e9c-1627-06f551f0781f@gmail.com> My take on WINE is a bit different from Richard Gaskin's . . . I 100% agree with his: "Build native apps for Linux and enjoy better performance and a simpler experience." and with his: "If it's for testing Windows compatibility, the emulation won't tell you nearly as much as running a full Windows system in a VM." HOWEVER, IFF (If and Only If) you end up with a LiveCode Windows standalone in your hands which you HAVE to run and you have no access either to a box or a VM running Windows then run it with WINE. I have NEVER had a system conflict with WINE, however the fact that in the last 2 years the WINE menu system has vanished, so to get at the settings one has to fiddle around with the terminal, makes it a ridiculous time-waster if there are any other options available to you. I have a small 32-bit and a small 64-bit pair of computers set up in a "murky corner" of my study with Windows on them (my bank had some spare licences they gave me because I did some data retrieval for them when they got "popped" by some ransomware a while ago). As I don't like Windows I use them only for testing standalones. As the actual computers cost me $25 each . . . Creating and using LiveCode Windows applications to run under WINE instead of going directly for a Linux build is daft when LiveCode standalones built for Linux generally run just as well without the expectation that one's end-users are to have WINE installed. Oh, and if you don't find running LiveCode standalones built for Windows with WINE exotic enough try running them with ReactOS (http://www.reactos.org/), but remember to whip round to the local apothecary for a large jar of headache pills first. Richmond. On 10/26/17 3:40 am, Richard Gaskin via use-livecode wrote: > Alejandro Tejada wrote: > > > Recently, I was running a few LiveCode Windows applications in Ubuntu > > (using Wine) and found that all of them run really well. > > > > Do you have some advice and caveats for creating and using LiveCode > > Windows applications that runs fine under Wine in Ubuntu or any other > > Linux distribution? > > Only this: don't. :) > > Build native apps for Linux and enjoy better performance and a simpler > experience. > > It's been a few years since I used WINE, and it may well be that my > experience with it back then bears no resemblance to how it runs > today. But it felt very much a workaround, and the range of component > it added to my system eventually created a conflict with something else. > > WINE helped make me a big fan of VirtualBox. :) > > If it's for testing Windows compatibility, the emulation won't tell > you nearly as much as running a full Windows system in a VM. > > And if all you want is to run a LiveCode app, a Linux-native build is > just one click away.... > From heather at livecode.com Thu Oct 26 05:31:03 2017 From: heather at livecode.com (Heather Laine) Date: Thu, 26 Oct 2017 10:31:03 +0100 Subject: Call for Speakers 2018 In-Reply-To: References: <2142AD88-DD69-4C64-BB95-D18B6BF8AD50@livecode.com> <2b073d91-faa1-bcf0-2666-7ac2fea169dd@sonic.net> Message-ID: <09141EC2-A2E2-4D9F-B888-560F84426CA8@livecode.com> Thank you Roger. We've had so much great feedback about this method of delivering content. It's not the same as a fully live conference, no, but in some ways it works better. They are different things. We're not saying we'll never do another one live. We're just saying hey, this was great. Let's do it again! So folks, come on, be a part of it, and start sending me speaker ideas and submissions. Don't want to speak yourself but know of someone else with a fabulous project or viewpoint to share? Dob them in and tell me all about it. conference-speaker at livecode.com Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 25 Oct 2017, at 11:16, Roger Eller via use-livecode wrote: > > All that was missing was the food, the drink, and the boat rides. The > content and the video quality was so much more, and so much better, imho. > > I thoroughly enjoyed the in-person conferences, however there's no reason > the group couldn't do smaller sessions specifically to address that gap in > social interaction. It's too bad we don't have virtual reality yet. LOL > > ~Roger > > > On Oct 24, 2017 9:35 PM, "Mark Wieder via use-livecode" < > use-livecode at lists.runrev.com> wrote: > > On 10/24/2017 08:36 AM, Heather Laine via use-livecode wrote: > >> Dear List Folks, >> >> It may or may not yet have come to your attention that due to the great >> success and popularity of LiveCode Global, we are running it again next >> year. So I'm once again sending out the call for speakers. Got something >> interesting to share with the community? Could you fill 7 minutes, 30 >> minutes or 50 minutes with some LiveCode Goodness? We'll be starting again >> on January 18th, and then every second month, on 15th March, 17th May, 19th >> July, 20th September and 15th November. Are you free for an hour on any of >> those days? >> > > That sounds like the last nail in the coffin for the actual conferences. > > -- > 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 MikeKerner at roadrunner.com Thu Oct 26 08:28:09 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 26 Oct 2017 08:28:09 -0400 Subject: Call for Speakers 2018 In-Reply-To: <09141EC2-A2E2-4D9F-B888-560F84426CA8@livecode.com> References: <2142AD88-DD69-4C64-BB95-D18B6BF8AD50@livecode.com> <2b073d91-faa1-bcf0-2666-7ac2fea169dd@sonic.net> <09141EC2-A2E2-4D9F-B888-560F84426CA8@livecode.com> Message-ID: I already asked Kevin to add a series on hacking the IDE. We could do a project as part of that, perhaps redoing the project browser - that would probably take long enough to require an hour each session... On Thu, Oct 26, 2017 at 5:31 AM, Heather Laine via use-livecode < use-livecode at lists.runrev.com> wrote: > Thank you Roger. We've had so much great feedback about this method of > delivering content. It's not the same as a fully live conference, no, but > in some ways it works better. They are different things. We're not saying > we'll never do another one live. We're just saying hey, this was great. > Let's do it again! > > So folks, come on, be a part of it, and start sending me speaker ideas and > submissions. Don't want to speak yourself but know of someone else with a > fabulous project or viewpoint to share? Dob them in and tell me all about > it. > > conference-speaker at livecode.com > > Best Regards, > > Heather > > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.com > > > > > On 25 Oct 2017, at 11:16, Roger Eller via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > All that was missing was the food, the drink, and the boat rides. The > > content and the video quality was so much more, and so much better, imho. > > > > I thoroughly enjoyed the in-person conferences, however there's no reason > > the group couldn't do smaller sessions specifically to address that gap > in > > social interaction. It's too bad we don't have virtual reality yet. LOL > > > > ~Roger > > > > > > On Oct 24, 2017 9:35 PM, "Mark Wieder via use-livecode" < > > use-livecode at lists.runrev.com> wrote: > > > > On 10/24/2017 08:36 AM, Heather Laine via use-livecode wrote: > > > >> Dear List Folks, > >> > >> It may or may not yet have come to your attention that due to the great > >> success and popularity of LiveCode Global, we are running it again next > >> year. So I'm once again sending out the call for speakers. Got something > >> interesting to share with the community? Could you fill 7 minutes, 30 > >> minutes or 50 minutes with some LiveCode Goodness? We'll be starting > again > >> on January 18th, and then every second month, on 15th March, 17th May, > 19th > >> July, 20th September and 15th November. Are you free for an hour on any > of > >> those days? > >> > > > > That sounds like the last nail in the coffin for the actual conferences. > > > > -- > > 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 > > _______________________________________________ > use-livecode mailing list > use-livecode 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 roger.e.eller at sealedair.com Thu Oct 26 08:49:31 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 26 Oct 2017 08:49:31 -0400 Subject: LiveCode Windows Applications on Ubuntu In-Reply-To: <2daae0f8-8bc7-6e9c-1627-06f551f0781f@gmail.com> References: <2daae0f8-8bc7-6e9c-1627-06f551f0781f@gmail.com> Message-ID: "WINE is fine, but LiveCode is quicker." as the old saying goes. :) ~Roger On Thu, Oct 26, 2017 at 12:24 AM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > My take on WINE is a bit different from Richard Gaskin's . . . > > I 100% agree with his: "Build native apps for Linux and enjoy better > performance and a simpler experience." > > From panos.merakos at livecode.com Thu Oct 26 09:22:37 2017 From: panos.merakos at livecode.com (panagiotis merakos) Date: Thu, 26 Oct 2017 14:22:37 +0100 Subject: [ANN] Release 8.1.7 RC-4 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 8.1.7 RC-4. Getting the Release =================== You can get the release at https://downloads.livecode.com/livecode/ or via the automatic updater. Release Contents ================ LiveCode 8.1.7 RC-4 contains a regression fix: [Bug 20503] Ensure that the ISOSection keycode has the appropriate (0xA9) mapping Since the last stable release of LiveCode (8.1.6), 49 bugs have been fixed. The full release notes are available from: http://downloads.livecode.com/livecode/8_1_7/LiveCodeNotes-8_1_7_rc_4.pdf Feedback ======== Please report any bugs encountered on our BugZilla at http://quality.livecode.com/ Have fun! The LiveCode Team -- From bobsneidar at iotecdigital.com Thu Oct 26 10:39:19 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 26 Oct 2017 14:39:19 +0000 Subject: LiveCode Windows Applications on Ubuntu In-Reply-To: <2daae0f8-8bc7-6e9c-1627-06f551f0781f@gmail.com> References: <2daae0f8-8bc7-6e9c-1627-06f551f0781f@gmail.com> Message-ID: They clicked the link, didn't they? I Told them! DON'T CLICK THE LINK!!! Bob S > On Oct 25, 2017, at 21:24 , Richmond Mathewson via use-livecode wrote: > > I have a small 32-bit and a small 64-bit pair of computers set up in a "murky corner" of my study with Windows on them > (my bank had some spare licences they gave me because I did some data retrieval for them when they got "popped" by > some ransomware a while ago). As I don't like Windows I use them only for testing standalones. As the actual computers > cost me $25 each . . . From MikeKerner at roadrunner.com Thu Oct 26 11:07:14 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 26 Oct 2017 11:07:14 -0400 Subject: LiveCode Windows Applications on Ubuntu In-Reply-To: References: <2daae0f8-8bc7-6e9c-1627-06f551f0781f@gmail.com> Message-ID: Which reminds me - I've never seen an email server that had the option to strip out all attachments and links. On Thu, Oct 26, 2017 at 10:39 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > They clicked the link, didn't they? I Told them! DON'T CLICK THE LINK!!! > > Bob S > > > > On Oct 25, 2017, at 21:24 , Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I have a small 32-bit and a small 64-bit pair of computers set up in a > "murky corner" of my study with Windows on them > > (my bank had some spare licences they gave me because I did some data > retrieval for them when they got "popped" by > > some ransomware a while ago). As I don't like Windows I use them only > for testing standalones. As the actual computers > > cost me $25 each . . . > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Thu Oct 26 11:21:56 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 26 Oct 2017 15:21:56 +0000 Subject: LiveCode Windows Applications on Ubuntu In-Reply-To: References: <2daae0f8-8bc7-6e9c-1627-06f551f0781f@gmail.com> Message-ID: <591C7B0E-2ABD-42EF-A370-BB5398BC2157@iotecdigital.com> It's probably not the server, but rather a mail gateway. Bob S > On Oct 26, 2017, at 08:07 , Mike Kerner via use-livecode wrote: > > Which reminds me - I've never seen an email server that had the option to > strip out all attachments and links. From richmondmathewson at gmail.com Thu Oct 26 13:05:37 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 26 Oct 2017 20:05:37 +0300 Subject: LiveCode Windows Applications on Ubuntu In-Reply-To: References: <2daae0f8-8bc7-6e9c-1627-06f551f0781f@gmail.com> Message-ID: <48286ee8-8a23-df62-5443-6e0e5dae4800@gmail.com> Yes, they did; silly *ankers (as in "bankers"). Richmond. On 10/26/17 5:39 pm, Bob Sneidar via use-livecode wrote: > They clicked the link, didn't they? I Told them! DON'T CLICK THE LINK!!! > > Bob S > > >> On Oct 25, 2017, at 21:24 , Richmond Mathewson via use-livecode wrote: >> >> I have a small 32-bit and a small 64-bit pair of computers set up in a "murky corner" of my study with Windows on them >> (my bank had some spare licences they gave me because I did some data retrieval for them when they got "popped" by >> some ransomware a while ago). As I don't like Windows I use them only for testing standalones. As the actual computers >> cost me $25 each . . . > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Thu Oct 26 18:47:12 2017 From: hh at hyperhh.de (hh) Date: Fri, 27 Oct 2017 00:47:12 +0200 Subject: Call for Speakers 2018 Message-ID: <36AAF20B-CF59-4113-8B37-664C626BED46@hyperhh.de> > Mike K. wrote: > I already asked Kevin to add a series on hacking the IDE. We could do a project as part of that, perhaps redoing the project browser - that would probably take long enough to require an hour each session... That would be very interesting, whether project browser or not, to get (more) insight into the IDE. From ambassador at fourthworld.com Thu Oct 26 19:49:46 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 26 Oct 2017 16:49:46 -0700 Subject: Call for Speakers 2018 In-Reply-To: <36AAF20B-CF59-4113-8B37-664C626BED46@hyperhh.de> References: <36AAF20B-CF59-4113-8B37-664C626BED46@hyperhh.de> Message-ID: <06a420cb-4869-dac2-d2e2-3488e1a9a7e1@fourthworld.com> hh wrote: >> Mike K. wrote: >> I already asked Kevin to add a series on hacking the IDE. We could do > a project as part of that, perhaps redoing the project browser - that > would probably take long enough to require an hour each session... > > That would be very interesting, whether project browser or not, to get > (more) insight into the IDE. I like it. If I need to dive back into it some more 'tween now and then I might take a stab at that. What sort of IDE hacks would you two be interested in? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From hh at hyperhh.de Thu Oct 26 21:19:17 2017 From: hh at hyperhh.de (hh) Date: Fri, 27 Oct 2017 03:19:17 +0200 Subject: Call for Speakers 2018 Message-ID: <21A89541-7A7C-494E-B6B1-5A1825E061CE@hyperhh.de> > Richard G. wrote: > What sort of IDE hacks would you two be interested in? besides the project browser are possibly interesting objects, more for extending/contributing than "hacking" = the property editor (usable from both, LC Script and LC Builder). = the preferences stack. From monte at appisle.net Fri Oct 27 00:08:49 2017 From: monte at appisle.net (Monte Goulding) Date: Fri, 27 Oct 2017 15:08:49 +1100 Subject: Call for Speakers 2018 In-Reply-To: References: <2142AD88-DD69-4C64-BB95-D18B6BF8AD50@livecode.com> <2b073d91-faa1-bcf0-2666-7ac2fea169dd@sonic.net> <09141EC2-A2E2-4D9F-B888-560F84426CA8@livecode.com> Message-ID: > On 26 Oct 2017, at 11:28 pm, Mike Kerner via use-livecode wrote: > > I already asked Kevin to add a series on hacking the IDE. We could do a > project as part of that, perhaps redoing the project browser - that would > probably take long enough to require an hour each session... If you are interested on project browser improvements you might want to look at the object repository library I did a couple of weeks ago. The idea with it is as the IDE (particularly the PB) needs to keep track of objects that have mutable long IDs it?s hard to make it robust. The library uses a store of direct object references in LCB and an integer reference to them so that if the name changes you can keep track of it. https://github.com/livecode/livecode/pull/6050 Cheers Monte From matthias_livecode_150811 at m-r-d.de Fri Oct 27 05:19:28 2017 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 27 Oct 2017 11:19:28 +0200 Subject: Rich Text Editor features within a LC8/LC9 app? Message-ID: <74529542-A345-4A49-86B9-41559319AAC7@m-r-d.de> Hi, i am looking for a way to allow the user to format text or parts of text in a Field (Font, Textsize, Color, Alignment and so on). I know there is FieldTrip from Curry and i?ve used it very often in the past, but Fieldtrip is not working correctly in LC8 and LC9. Does anyone have created such a rich text editor feature in LC already and would like to share or sell? It does not need to be as feature rich as FieldTrip is. Regards, Matthias From preid at reidit.co.uk Fri Oct 27 07:17:31 2017 From: preid at reidit.co.uk (Peter Reid) Date: Fri, 27 Oct 2017 12:17:31 +0100 Subject: Android Filing System? Message-ID: Please can someone explain the Android filing system as seen by LC 9. I'm developing an app that loads some files & folders with the app initially, but then changes some or all of this data. In addition, the app will read and write files & folders to the SD card plugged into the Android tablet. From the LC dictionary, I have the following: --------- An Android application is installed on the device as a ZIP package. This means that any assets that are included are not available as separate files in the device's native file system. In order to manage this, LiveCode "virtualizes" the asset files you include, allowing read-only access with all the standard LiveCode file and folder handling commands and functions. To access the assets you have included with your application, use file names relative to specialFolderPath("engine"). The following folderIdentifier values are supported: ? "documents": The folder where application-specific data can be placed (typically valuable) ? "cache": The folder where transient application-specific data can be placed (typically not valuable) ? "temporary": Same as "cache" ? "engine": The (virtual) folder containing the application's LiveCode engine and other resources that were copied into the application at build time ? "resources": Same as "engine". ? "external documents": The folder on the primary shared/external storage device where application-specific data can be placed ? "external cache": The folder on the primary shared/external storage device where transient application-specific data can be placed ? "external temporary": same as "external cache" Note: If using any external folderIdentifier values, ensure you have the 'Write External Storage' permission checked in the application standalone settings --------- The above implies that access to the internal filing system is read-only, even for the "documents" special folder and that the only filing system that I can write to is the external one on the SD card. Is this correct? I'm trying to carry out the following sequence of actions: 1. A collection of folders & files are setup in the internal filing system as part of the app ("documents" say). 2. The user can use the default folders & files created above, or they can choose a different set of folders & files to be copied from the SD card into the internal filing system, replacing some or all of the initial default set. 3. During general use of the app, the user will record their voice several times. These recordings should be stored on both the internal and SD card filing systems. What I'm finding is that my file and folder paths are not reliable and that most attempts to write anywhere fail due to being read-only. Any help with this please? Peter -- Peter Reid Loughborough, UK From MikeKerner at roadrunner.com Fri Oct 27 07:36:15 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 27 Oct 2017 07:36:15 -0400 Subject: Call for Speakers 2018 In-Reply-To: References: <2142AD88-DD69-4C64-BB95-D18B6BF8AD50@livecode.com> <2b073d91-faa1-bcf0-2666-7ac2fea169dd@sonic.net> <09141EC2-A2E2-4D9F-B888-560F84426CA8@livecode.com> Message-ID: Cool! Working on the PB was more of an example, though, to get people thinking about what sorts of things a in-depth class that spans several sessions could cover. I was going to suggest standalone settings, but Ali is tackling that. The main question is how do we make all of us more comfortable with the code so we all feel more comfortable diving in, doing things, and therefore expanding the IDE developer group. On Fri, Oct 27, 2017 at 12:08 AM, Monte Goulding via use-livecode < use-livecode at lists.runrev.com> wrote: > > > On 26 Oct 2017, at 11:28 pm, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I already asked Kevin to add a series on hacking the IDE. We could do a > > project as part of that, perhaps redoing the project browser - that would > > probably take long enough to require an hour each session... > > If you are interested on project browser improvements you might want to > look at the object repository library I did a couple of weeks ago. The idea > with it is as the IDE (particularly the PB) needs to keep track of objects > that have mutable long IDs it?s hard to make it robust. The library uses a > store of direct object references in LCB and an integer reference to them > so that if the name changes you can keep track of it. > > https://github.com/livecode/livecode/pull/6050 < > https://github.com/livecode/livecode/pull/6050> > > 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 > -- 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 bonnmike at gmail.com Fri Oct 27 07:51:03 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 27 Oct 2017 05:51:03 -0600 Subject: Android Filing System? In-Reply-To: References: Message-ID: Engine is the virtual/read only part of the file system. Your app will need to copy your initial data files from there into usable locations. you can use 'put url' to do this.. (or copy file..) put url ("binfile:" & specialfolderpath("engine") & "/myfile.dat") into url ("binfile:" & specialfolderpath("documents") & "/myfile.dat") At this point you can use myfile.dat from its location in the documents folder. For organizational purposes of course you'd probably want to create a folder for your app and place files in there. You can use "there is a file" to determine if you still need to copy anything from the engine folder. if there is a file ("path/to/file") then -- load it else -- copy from engine to the proper location -- load it end if On Fri, Oct 27, 2017 at 5:17 AM, Peter Reid via use-livecode < use-livecode at lists.runrev.com> wrote: > Please can someone explain the Android filing system as seen by LC 9. I'm > developing an app that loads some files & folders with the app initially, > but then changes some or all of this data. In addition, the app will read > and write files & folders to the SD card plugged into the Android tablet. > > From the LC dictionary, I have the following: > --------- > An Android application is installed on the device as a ZIP package. > This means that any assets that are included are not available as separate > files in the device's native file system. In order to manage this, LiveCode > "virtualizes" the asset files you include, allowing read-only access with > all the standard LiveCode file and folder handling commands and functions. > To access the assets you have included with your application, use file > names relative to specialFolderPath("engine"). > > The following folderIdentifier values are supported: > > ? "documents": The folder where application-specific data can be > placed (typically valuable) > ? "cache": The folder where transient application-specific data > can be placed (typically not valuable) > ? "temporary": Same as "cache" > ? "engine": The (virtual) folder containing the application's > LiveCode engine and other resources that were copied into the application > at build time > ? "resources": Same as "engine". > ? "external documents": The folder on the primary shared/external > storage device where application-specific data can be placed > ? "external cache": The folder on the primary shared/external > storage device where transient application-specific data can be placed > ? "external temporary": same as "external cache" > > Note: If using any external folderIdentifier values, ensure you have the > 'Write External Storage' permission checked in the application standalone > settings > --------- > > The above implies that access to the internal filing system is read-only, > even for the "documents" special folder and that the only filing system > that I can write to is the external one on the SD card. Is this correct? > > I'm trying to carry out the following sequence of actions: > > 1. A collection of folders & files are setup in the internal filing system > as part of the app ("documents" say). > > 2. The user can use the default folders & files created above, or they can > choose a different set of folders & files to be copied from the SD card > into the internal filing system, replacing some or all of the initial > default set. > > 3. During general use of the app, the user will record their voice several > times. These recordings should be stored on both the internal and SD card > filing systems. > > What I'm finding is that my file and folder paths are not reliable and > that most attempts to write anywhere fail due to being read-only. > > Any help with this please? > > Peter > -- > Peter Reid > Loughborough, UK > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 27 08:09:26 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 27 Oct 2017 08:09:26 -0400 Subject: Rich Text Editor features within a LC8/LC9 app? In-Reply-To: <74529542-A345-4A49-86B9-41559319AAC7@m-r-d.de> References: <74529542-A345-4A49-86B9-41559319AAC7@m-r-d.de> Message-ID: I have a multi-line field which contains editable text (field 15). Above it, I have 4 tiny buttons whose labels are set to "i", "B", "u", and "p". Their names are "txt_style_Itallic", "txt_style_Bold", "txt_style_Underline", and "txt_style_Plain". The Tooltip of each is set to "italic", "bold", "underline", and "plain". The script of each is (except for "plain") is: on mouseUp if the selectedChunk contains "field 15" then set the textStyle[the tooltip of me] of the selectedChunk to true end if end mouseUp The script of button "txt_style_Plain" is: on mouseUp if the selectedChunk contains "field 15" then set the textStyle of the selectedChunk to "plain" end if end mouseUp ~Roger On Fri, Oct 27, 2017 at 5:19 AM, Matthias Rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi, > > i am looking for a way to allow the user to format text or parts of text > in a Field (Font, Textsize, Color, Alignment and so on). > I know there is FieldTrip from Curry and i?ve used it very often in the > past, but Fieldtrip is not working correctly in LC8 and LC9. > Does anyone have created such a rich text editor feature in LC already and > would like to share or sell? It does not need to be as feature rich as > FieldTrip is. > > 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 From wow at together.net Fri Oct 27 08:28:33 2017 From: wow at together.net (Richard Miller) Date: Fri, 27 Oct 2017 08:28:33 -0400 Subject: WebSocket API help needed Message-ID: I have been using LC to access an API through conventional means, but that site has now changed access to use a WebSocket protocol. I have tried various methods, but just can?t get it to work. I would appreciate it if someone familiar with sockets could take a look and show me how to do this. The information I am looking to receive is what is produced through this now deprecated API. It is a list of all of the digital tokens being traded at this site. (Note: you may have to send this link a few times in order to get a response. The site is often overloaded.) ??? put https://api.etherdelta.com/returnTicker I want to receive the same information, but using the new WebSocket API shown here. https://github.com/etherdelta/etherdelta.github.io/blob/master/docs/API.md https://github.com/etherdelta/etherdelta.github.io/tree/master/bots Thank you very much for help with this. Richard Miller From toolbook at kestner.de Fri Oct 27 09:05:45 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Fri, 27 Oct 2017 15:05:45 +0200 Subject: how to split a list in two directions? Message-ID: <007401d34f24$4daa4de0$e8fee9a0$@kestner.de> Hello, I have a delimiter separated list of two columns, first column is an ID, second column a name. I need two arrays of this list, one with the first column (ID) as the key and one with the second column (name) as the key. With split myArray by CR and ";" I get the first column (the ID) as the key. Which is the most straight forward approach to get the second array with the name from the second column as the key? I am sure there is a one liner, without first shifting the columns of the list in a repeat loop. Thanks Tiemo From alex at tweedly.net Fri Oct 27 10:22:04 2017 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 27 Oct 2017 15:22:04 +0100 Subject: how to split a list in two directions? In-Reply-To: <007401d34f24$4daa4de0$e8fee9a0$@kestner.de> References: <007401d34f24$4daa4de0$e8fee9a0$@kestner.de> Message-ID: <5b67bc89-a332-1636-03a5-feaaefe92baf@tweedly.net> Not a one-liner, but I'd be wiling to guess that ? repeat for each line L in theData ????? put item 2 of L into A1[item 1 of L] ????? put item 1 of L into A2[item 2 of L] ? end repeat will be as quick as any other method. -- Alex. On 27/10/2017 14:05, Tiemo Hollmann TB via use-livecode wrote: > Hello, > > I have a delimiter separated list of two columns, first column is an ID, > second column a name. > > I need two arrays of this list, one with the first column (ID) as the key > and one with the second column (name) as the key. > > With split myArray by CR and ";" I get the first column (the ID) as the key. > > Which is the most straight forward approach to get the second array with the > name from the second column as the key? I am sure there is a one liner, > without first shifting the columns of the list in a repeat loop. > > Thanks > > Tiemo > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Fri Oct 27 11:23:36 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Fri, 27 Oct 2017 17:23:36 +0200 Subject: AW: how to split a list in two directions? In-Reply-To: <5b67bc89-a332-1636-03a5-feaaefe92baf@tweedly.net> References: <007401d34f24$4daa4de0$e8fee9a0$@kestner.de> <5b67bc89-a332-1636-03a5-feaaefe92baf@tweedly.net> Message-ID: <008b01d34f37$8fca6d00$af5f4700$@kestner.de> Yes thanks Alex Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Alex Tweedly via use-livecode Gesendet: Freitag, 27. Oktober 2017 16:22 An: use-livecode at lists.runrev.com Cc: Alex Tweedly Betreff: Re: how to split a list in two directions? Not a one-liner, but I'd be wiling to guess that repeat for each line L in theData put item 2 of L into A1[item 1 of L] put item 1 of L into A2[item 2 of L] end repeat will be as quick as any other method. -- Alex. On 27/10/2017 14:05, Tiemo Hollmann TB via use-livecode wrote: > Hello, > > I have a delimiter separated list of two columns, first column is an > ID, second column a name. > > I need two arrays of this list, one with the first column (ID) as the > key and one with the second column (name) as the key. > > With split myArray by CR and ";" I get the first column (the ID) as the key. > > Which is the most straight forward approach to get the second array > with the name from the second column as the key? I am sure there is a > one liner, without first shifting the columns of the list in a repeat loop. > > Thanks > > Tiemo > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From christer at mindcrea.com Fri Oct 27 12:00:59 2017 From: christer at mindcrea.com (=?utf-8?Q?Pyyhti=C3=A4_Christer?=) Date: Fri, 27 Oct 2017 19:00:59 +0300 Subject: Need help with version number definitions with appStores Message-ID: <14EE1A6C-F7C1-4188-A589-E3B6043858D8@mindcrea.com> Just about to re-release my app getDealDone, first with GooglePlay; - there are two version definitions in the Standalone Application Settings / Android; - - which one is the one Android / Google Play requires to be bump ed up with every upload, including the direct development system to device installations? - - iOS setup only shows one version number How should one interprete these? What would be a common acceptable way of doing the version numbering (in both cases)? The bloody fact is, with On-rev server and devices, LiveCode may be the only available solution I can kick off apps for all these with a single package of source code. Can I find somewhere a good document helping in these best practices, for all mobiles, Windows, Mac OS/X and Linux? Look forward to good advices Christer Pyyhti? christer at mindcrea.com From ahsoftware at sonic.net Fri Oct 27 14:01:21 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 27 Oct 2017 11:01:21 -0700 Subject: Call for Speakers 2018 In-Reply-To: References: <2142AD88-DD69-4C64-BB95-D18B6BF8AD50@livecode.com> <2b073d91-faa1-bcf0-2666-7ac2fea169dd@sonic.net> <09141EC2-A2E2-4D9F-B888-560F84426CA8@livecode.com> Message-ID: <2bfcb7c5-58a3-fa21-acd6-d43b6d7033bc@sonic.net> On 10/27/2017 04:36 AM, Mike Kerner via use-livecode wrote: > The main question is how do we make all of us more > comfortable with the code so we all feel more comfortable diving in, doing > things, and therefore expanding the IDE developer group. The main problem I see with working on the IDE components is that they're quite interdependent and tightly coupled. For years now we've had the carrot dangled in front of us that "soon" the IDE will be just a framework to which autonomous components will attach. But the fact remains that the script editor, debugger, tool palette, property editor, menubar, etc, all rely on not only each others' existence, but also the existence and operation of certain features, e.g., when an IDE library frontscript sends a mouseUp message to button x of the tool palette. The pubsub mechanism now in the IDE is a big step forward to relieving this situation, but it's artificially crippled and thwarts anything other than putting bandages on a legacy structure that dates back two decades. -- Mark Wieder ahsoftware at gmail.com From MikeKerner at roadrunner.com Fri Oct 27 14:18:34 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 27 Oct 2017 14:18:34 -0400 Subject: Call for Speakers 2018 In-Reply-To: <2bfcb7c5-58a3-fa21-acd6-d43b6d7033bc@sonic.net> References: <2142AD88-DD69-4C64-BB95-D18B6BF8AD50@livecode.com> <2b073d91-faa1-bcf0-2666-7ac2fea169dd@sonic.net> <09141EC2-A2E2-4D9F-B888-560F84426CA8@livecode.com> <2bfcb7c5-58a3-fa21-acd6-d43b6d7033bc@sonic.net> Message-ID: Which is exactly why a hacking series would be welcome. When I jump in, I find something that looks to me like tangled spaghetti. If I had a better macro understanding, I might spend less time giving up and more time doing something cool with it. On Fri, Oct 27, 2017 at 2:01 PM, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 10/27/2017 04:36 AM, Mike Kerner via use-livecode wrote: > >> The main question is how do we make all of us more >> comfortable with the code so we all feel more comfortable diving in, doing >> things, and therefore expanding the IDE developer group. >> > > The main problem I see with working on the IDE components is that they're > quite interdependent and tightly coupled. For years now we've had the > carrot dangled in front of us that "soon" the IDE will be just a framework > to which autonomous components will attach. But the fact remains that the > script editor, debugger, tool palette, property editor, menubar, etc, all > rely on not only each others' existence, but also the existence and > operation of certain features, e.g., when an IDE library frontscript sends > a mouseUp message to button x of the tool palette. > > The pubsub mechanism now in the IDE is a big step forward to relieving > this situation, but it's artificially crippled and thwarts anything other > than putting bandages on a legacy structure that dates back two decades. > > -- > Mark Wieder > ahsoftware at gmail.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Fri Oct 27 14:23:01 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 27 Oct 2017 14:23:01 -0400 Subject: Call for Speakers 2018 In-Reply-To: References: <2142AD88-DD69-4C64-BB95-D18B6BF8AD50@livecode.com> <2b073d91-faa1-bcf0-2666-7ac2fea169dd@sonic.net> <09141EC2-A2E2-4D9F-B888-560F84426CA8@livecode.com> <2bfcb7c5-58a3-fa21-acd6-d43b6d7033bc@sonic.net> Message-ID: That isn't to say it's a complete mess, but when I jump in to start looking at something, it feels like I'm in an escape room, because I'm trying to learn what the heck is what, why it works that way, and work on it at the same time. On Fri, Oct 27, 2017 at 2:18 PM, Mike Kerner wrote: > Which is exactly why a hacking series would be welcome. When I jump in, I > find something that looks to me like tangled spaghetti. If I had a better > macro understanding, I might spend less time giving up and more time doing > something cool with it. > > On Fri, Oct 27, 2017 at 2:01 PM, Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On 10/27/2017 04:36 AM, Mike Kerner via use-livecode wrote: >> >>> The main question is how do we make all of us more >>> comfortable with the code so we all feel more comfortable diving in, >>> doing >>> things, and therefore expanding the IDE developer group. >>> >> >> The main problem I see with working on the IDE components is that they're >> quite interdependent and tightly coupled. For years now we've had the >> carrot dangled in front of us that "soon" the IDE will be just a framework >> to which autonomous components will attach. But the fact remains that the >> script editor, debugger, tool palette, property editor, menubar, etc, all >> rely on not only each others' existence, but also the existence and >> operation of certain features, e.g., when an IDE library frontscript sends >> a mouseUp message to button x of the tool palette. >> >> The pubsub mechanism now in the IDE is a big step forward to relieving >> this situation, but it's artificially crippled and thwarts anything other >> than putting bandages on a legacy structure that dates back two decades. >> >> -- >> Mark Wieder >> ahsoftware at gmail.com >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- 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 Fri Oct 27 14:26:51 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 27 Oct 2017 18:26:51 +0000 Subject: Call for Speakers 2018 In-Reply-To: References: <2142AD88-DD69-4C64-BB95-D18B6BF8AD50@livecode.com> <2b073d91-faa1-bcf0-2666-7ac2fea169dd@sonic.net> <09141EC2-A2E2-4D9F-B888-560F84426CA8@livecode.com> <2bfcb7c5-58a3-fa21-acd6-d43b6d7033bc@sonic.net> Message-ID: Sounds like my coding experience every single day. ;-) Bob S > On Oct 27, 2017, at 11:23 , Mike Kerner via use-livecode wrote: > > That isn't to say it's a complete mess, but when I jump in to start looking > at something, it feels like I'm in an escape room, because I'm trying to > learn what the heck is what, why it works that way, and work on it at the > same time. From jacque at hyperactivesw.com Fri Oct 27 16:08:05 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 27 Oct 2017 15:08:05 -0500 Subject: Need help with version number definitions with appStores In-Reply-To: <14EE1A6C-F7C1-4188-A589-E3B6043858D8@mindcrea.com> References: <14EE1A6C-F7C1-4188-A589-E3B6043858D8@mindcrea.com> Message-ID: <68a14546-6059-8edf-a8f6-081d545c331e@hyperactivesw.com> On 10/27/17 11:00 AM, Pyyhti? Christer via use-livecode wrote: > Just about to re-release my app getDealDone, first with GooglePlay; > > - there are two version definitions in the Standalone Application Settings / Android; > > - - which one is the one Android / Google Play requires to be bump ed up with every upload, including the direct development system to device installations? > > - - iOS setup only shows one version number > > How should one interprete these? The version number is what the user sees in the Play Store description. The build number is what the Play Store and the device use to determine whether the app has been updated, and if so, notifies the user's device that an update is available. Build numbers must be whole integers. The build number generally increases by one on each new build. The device doesn't track whether the build number has actually increased, only that it is different. During installation, Android will always appear to install but if the build number is the same as the previously installed app it won't really replace the existing app. To ensure that a update/replacement is done, always change the build number. The Android installer ignores the version number, it is for user reference only. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Fri Oct 27 16:13:00 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 27 Oct 2017 15:13:00 -0500 Subject: Android Filing System? In-Reply-To: References: Message-ID: <33ea5bde-f551-e6a0-cb75-fc6807597f14@hyperactivesw.com> On 10/27/17 6:17 AM, Peter Reid via use-livecode wrote: > The following folderIdentifier values are supported: > > ? "documents": The folder where application-specific data can be placed (typically valuable) > ? "cache": The folder where transient application-specific data can be placed (typically not valuable) > ? "temporary": Same as "cache" > ? "engine": The (virtual) folder containing the application's LiveCode engine and other resources that were copied into the application at build time > ? "resources": Same as "engine". > ? "external documents": The folder on the primary shared/external storage device where application-specific data can be placed > ? "external cache": The folder on the primary shared/external storage device where transient application-specific data can be placed > ? "external temporary": same as "external cache" > > Note: If using any external folderIdentifier values, ensure you have the 'Write External Storage' permission checked in the application standalone settings > --------- > > The above implies that access to the internal filing system is read-only, even for the "documents" special folder and that the only filing system that I can write to is the external one on the SD card. Is this correct? Actually, only the engine folder is read-only. All the others are read/write and you should be able to save files to those. It would be helpful if you could post an example of a file path that fails. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From matthias_livecode_150811 at m-r-d.de Sat Oct 28 05:41:20 2017 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sat, 28 Oct 2017 11:41:20 +0200 Subject: Rich Text Editor features within a LC8/LC9 app? In-Reply-To: References: <74529542-A345-4A49-86B9-41559319AAC7@m-r-d.de> Message-ID: Roger, thanks for your post. This helped I have so far now a working toolbar with bold, italic, underline, textsize and alignment. The buttons all use one single behaviour script. Your sample put me in the right direction. I will post my solution later next week to this list for those who are interested in it. Thanks again. Regards, Matthias > Am 27.10.2017 um 14:09 schrieb Roger Eller via use-livecode : > > I have a multi-line field which contains editable text (field 15). Above > it, I have 4 tiny buttons whose labels are set to "i", "B", "u", and "p". > Their names are "txt_style_Itallic", "txt_style_Bold", > "txt_style_Underline", and "txt_style_Plain". The Tooltip of each is set to > "italic", "bold", "underline", and "plain". > > The script of each is (except for "plain") is: > > on mouseUp > if the selectedChunk contains "field 15" then > set the textStyle[the tooltip of me] of the selectedChunk to true > end if > end mouseUp > > The script of button "txt_style_Plain" is: > > on mouseUp > if the selectedChunk contains "field 15" then > set the textStyle of the selectedChunk to "plain" > end if > end mouseUp > > ~Roger > > > On Fri, Oct 27, 2017 at 5:19 AM, Matthias Rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi, >> >> i am looking for a way to allow the user to format text or parts of text >> in a Field (Font, Textsize, Color, Alignment and so on). >> I know there is FieldTrip from Curry and i?ve used it very often in the >> past, but Fieldtrip is not working correctly in LC8 and LC9. >> Does anyone have created such a rich text editor feature in LC already and >> would like to share or sell? It does not need to be as feature rich as >> FieldTrip is. >> >> 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 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jiml at netrin.com Sat Oct 28 14:23:56 2017 From: jiml at netrin.com (Jim Lambert) Date: Sat, 28 Oct 2017 11:23:56 -0700 Subject: how to split a list in two directions? In-Reply-To: References: Message-ID: <79626E97-A96F-4E37-882C-BE34A24F0A30@netrin.com> > Tiemo wrote: > > I have a delimiter separated list of two columns, first column is an ID, > second column a name. > > I need two arrays of this list, one with the first column (ID) as the key > and one with the second column (name) as the key. > > With split myArray by CR and ";"I get the first column (the ID) as the key. > > Which is the most straight forward approach to get the second array with the > name from the second column as the key? > Not a one-liner! set the columnDelimiter to ";" split myList by column -- your original delimiter separated list of two columns put myList[2] into mySecondArray[1] put myList[1] into mySecondArray[2] combine mySecondArray by column split mySecondArray by CR and ?;? Jim Lambert From hh at hyperhh.de Sat Oct 28 19:27:47 2017 From: hh at hyperhh.de (hh) Date: Sun, 29 Oct 2017 01:27:47 +0200 Subject: how to split a list in two directions? Message-ID: <43E4763F-561C-4D00-8390-D50D5E78AC99@hyperhh.de> > Alex T. wrote: > Not a one-liner, but I'd be wiling to guess that > > repeat for each line L in theData > put item 2 of L into A1[item 1 of L] > put item 1 of L into A2[item 2 of L] > end repeat will > > be as quick as any other method. This is certainly a very fast and elegant method. The problem is, that one of the items, here item 2 (a name), may not be unique. So, in case "M?ller" is among the names, this slight change may help: repeat for each line L in theData put space & item 2 of L after A1[item 1 of L] put space & item 1 of L after A2[item 2 of L] end repeat will From christer at mindcrea.com Sun Oct 29 04:28:14 2017 From: christer at mindcrea.com (=?utf-8?Q?Pyyhti=C3=A4_Christer?=) Date: Sun, 29 Oct 2017 10:28:14 +0200 Subject: Radio button scaling Message-ID: <3A670C2D-424E-47A8-8AB9-6C60DFDB052E@mindcrea.com> 1. Question 1: What is the problem with getting the radio buttons "tick boxes" scalable? Trying to remember, I asked about it for a few years ago, and the answer by LC team was, it is about the icon?? I tried using switch button widgets, but the scaling of those isn't linear (width / height) as any other objects. So, do I need to do my own radio buttons (i.e. use a round hilite button + text button) or would there be another solution? 2. Question 2: LC 8.1.7 rc-3; there is instability in retaining setups. For example, upgrading from the previous G version the path to SDK was lost. Also various setups seem to move, the background of the screen goes all grey. Anyone experiencing oddities like this? Christer Pyyhti? christer at mindcrea.com From hh at hyperhh.de Sun Oct 29 06:48:28 2017 From: hh at hyperhh.de (hh) Date: Sun, 29 Oct 2017 11:48:28 +0100 Subject: Radio button scaling Message-ID: Answer 1. This is solvable as soon as icons are settable using SVG. Other scaling would result in non-smooth displays as the icons are images. But you could make a set of images for different "resolutions" and use these images as "icons" for the buttons, dependent on your scale. Also you could make a radio button widget (don't forget the radio-grouping). Answer 2. In case you are using MacOS 10.13, then the culprit is the OS, not LiveCode. MacOS 10.13 is horrible. Sometimes the prefs of some Apps, not only LiveCode, are reset to default in between working. What you describe sounds like that. > Christer P. wrote: > Question 1: > What is the problem with getting the radio buttons "tick boxes" scalable? > Trying to remember, I asked about it for a few years ago, and the answer by LC team was, it is about the icon?? > I tried using switch button widgets, but the scaling of those isn't linear (width / height) as any other objects. > So, do I need to do my own radio buttons (i.e. use a round hilite button + text button) or would there be another solution? > > Question 2: > LC 8.1.7 rc-3; there is instability in retaining setups. For example, upgrading from the previous G version the path to SDK was lost. Also various setups seem to move, the background of the screen goes all grey. Anyone experiencing oddities like this? From wow at together.net Sun Oct 29 07:49:06 2017 From: wow at together.net (Richard Miller) Date: Sun, 29 Oct 2017 07:49:06 -0400 Subject: Socket help needed for API In-Reply-To: References: Message-ID: <5fa7d650-3139-2c01-3dcc-d7e673295a28@together.net> I have been using LC to access an API through conventional means, but that site has now changed to a socket protocol. I have tried various methods, but just can?t get it to work. I would appreciate it if someone familiar with sockets could take a look and show me how to do this. I only need to know how to establish a connection and receive data. I can take it from there. The information I am looking to receive is what is produced through this now deprecated API. It is a list of all of the digital tokens being traded at this site. (Note: you may have to send this link a few times in order to get a response. The site is often overloaded.) ??? put https://api.etherdelta.com/returnTicker I want to receive the same information, but using the new socket-based API shown here. https://github.com/etherdelta/etherdelta.github.io/blob/master/docs/API.md https://github.com/etherdelta/etherdelta.github.io/tree/master/bots Thank you very much for help with this. Richard Miller From christer at mindcrea.com Sun Oct 29 12:11:14 2017 From: christer at mindcrea.com (=?utf-8?Q?Pyyhti=C3=A4_Christer?=) Date: Sun, 29 Oct 2017 18:11:14 +0200 Subject: Radio button scaling Message-ID: Thank you! 1. In the mean while built just a double button scheme, let's see how it looks with the devices. Look forward to simplifying back to single buttons with the new icons for checkBox and radio buttons. "When" is my 2-3 year old question, though. Just ask a nerd nearby to do the job. 2. Still on Mac OS/X 10.12 level. Thanks for the warning. The source of the problem may be that I am using different 2nd screens at the different desks I work at. Not a nice problem. rgds From: hh > To: use-livecode at lists.runrev.com Subject: Re: Radio button scaling Message-ID: > Content-Type: text/plain; charset=us-ascii Answer 1. This is solvable as soon as icons are settable using SVG. Other scaling would result in non-smooth displays as the icons are images. But you could make a set of images for different "resolutions" and use these images as "icons" for the buttons, dependent on your scale. Also you could make a radio button widget (don't forget the radio-grouping). Answer 2. In case you are using MacOS 10.13, then the culprit is the OS, not LiveCode. MacOS 10.13 is horrible. Sometimes the prefs of some Apps, not only LiveCode, are reset to default in between working. What you describe sounds like that. > Christer P. wrote: > Question 1: > What is the problem with getting the radio buttons "tick boxes" scalable? > Trying to remember, I asked about it for a few years ago, and the answer by LC team was, it is about the icon?? > I tried using switch button widgets, but the scaling of those isn't linear (width / height) as any other objects. > So, do I need to do my own radio buttons (i.e. use a round hilite button + text button) or would there be another solution? > > Question 2: > LC 8.1.7 rc-3; there is instability in retaining setups. For example, upgrading from the previous G version the path to SDK was lost. Also various setups seem to move, the background of the screen goes all grey. Anyone experiencing oddities like this? From brahma at hindu.org Sun Oct 29 15:02:00 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 29 Oct 2017 19:02:00 +0000 Subject: Relative Paths in Property Inspector Message-ID: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> Backstory: Sometime back in a round with HQ we got the engine to "remember" relative path settings for the filenames of images/players etc.. such that it would not default to full path from root on the drive which makes the path unique to that user and no longer portable? so "relativity" go supported/sticky in different dev scenarios? so far so good? if you set the filename in an image in a stack that lives here: User/MyDrive/myProject/coolAnimals.livecode with images here to: User/MyDrive/myProject/img/thumbs/little-rooster.jpg # it, obviously works But, now you can a) manually chop of the lead down to this in the property inspector img/thumbs/little-rooster.jpg # and it works? this is also portable if you include "img/*" in the stackfiles when create your standalone and the filename is saved relative to the stack, and, assuming you keep the folder structure intact you don't have to even mess with defaultfolder or even specialFolderPath("engine") because the "relativity" of the path is respected in any and all contexts (I think?) so you can also programatically do this set the filename of img "myPet" to "img/thumbs/little-rooster.jpg" and that also works though you do need to use "specialFolderPath" functions on mobile. Again, so far so good? End backstory (please correct anything you see that is wrong) So, why can't we just a relative path in the Property Inspector itself? The browser tool will always return full path from User down to the "asset.jpg"? if I send that stack to someone else, or use a GIT work flow where these stacks are "pure views" (i.e. no actual imported images anywhere) along with the images. the paths are broken. So, long way of asking: Do we need an enhancement request for a check box in the PI to set the path as relative to the stack? Seems like that would be super usefu Mikey has this request in since May '16? which feels related http://quality.livecode.com/show_bug.cgi?id=17705 but the suggestion for having this in the PI seems a bit different, and might not actually solve his issue for using a cloud instance of his project. Brahmanathaswami From monte at appisle.net Sun Oct 29 19:37:43 2017 From: monte at appisle.net (Monte Goulding) Date: Mon, 30 Oct 2017 10:37:43 +1100 Subject: Socket help needed for API In-Reply-To: <5fa7d650-3139-2c01-3dcc-d7e673295a28@together.net> References: <5fa7d650-3139-2c01-3dcc-d7e673295a28@together.net> Message-ID: <0275FF20-4BBC-47F7-9CFC-863CB54E697E@appisle.net> Hi Richard LiveCode does not currently have websocket support. As this has come up recently in a number of areas I had a quick look at the spec (https://tools.ietf.org/html/rfc6455 ). It looks relatively feasible to implement on top of our current socket support in LiveCode script. Possibly as part of libURL or a separate library. Cheers Monte > On 29 Oct 2017, at 10:49 pm, Richard Miller via use-livecode wrote: > > I have been using LC to access an API through conventional means, but that site has now changed to a socket protocol. I have tried various methods, but just can?t get it to work. > > I would appreciate it if someone familiar with sockets could take a look and show me how to do this. I only need to know how to establish a connection and receive data. I can take it from there. > > The information I am looking to receive is what is produced through this now deprecated API. It is a list of all of the digital tokens being traded at this site. (Note: you may have to send this link a few times in order to get a response. The site is often overloaded.) > > put https://api.etherdelta.com/returnTicker > > I want to receive the same information, but using the new socket-based API shown here. > > https://github.com/etherdelta/etherdelta.github.io/blob/master/docs/API.md > https://github.com/etherdelta/etherdelta.github.io/tree/master/bots > > Thank you very much for help with this. > Richard Miller > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Sun Oct 29 21:01:11 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 29 Oct 2017 21:01:11 -0400 Subject: Relative Paths in Property Inspector In-Reply-To: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> Message-ID: it is related. As soon as I saw your post I said "gee, that looks familiar". On Sun, Oct 29, 2017 at 3:02 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > Backstory: > > Sometime back in a round with HQ we got the engine to "remember" relative > path settings for the filenames of images/players etc.. such that it would > not default to full path from root on the drive which makes the path unique > to that user and no longer portable? so "relativity" go supported/sticky in > different dev scenarios? > > so far so good? if you set the filename in an image in a stack that lives > here: > > User/MyDrive/myProject/coolAnimals.livecode > > with images here to: > > User/MyDrive/myProject/img/thumbs/little-rooster.jpg > > # it, obviously works But, now you can > > a) manually chop of the lead down to this in the property inspector > > img/thumbs/little-rooster.jpg > > # and it works? this is also portable if you include "img/*" in the > stackfiles when create your standalone and the filename is saved relative > to the stack, and, assuming you keep the folder structure intact you don't > have to even mess with defaultfolder or even specialFolderPath("engine") > because the "relativity" of the path is respected in any and all contexts > (I think?) > > so you can also programatically do this > > set the filename of img "myPet" to "img/thumbs/little-rooster.jpg" > > and that also works though you do need to use "specialFolderPath" > functions on mobile. > > Again, so far so good? > > End backstory (please correct anything you see that is wrong) > > So, why can't we just a relative path in the Property Inspector itself? > The browser tool will always return full path from User down to the > "asset.jpg"? if I send that stack to someone else, or use a GIT work flow > where these stacks are "pure views" (i.e. no actual imported images > anywhere) along with the images. the paths are broken. So, long way of > asking: > > Do we need an enhancement request for a check box in the PI to set the > path as relative to the stack? Seems like that would be super usefu > > Mikey has this request in since May '16? which feels related > > http://quality.livecode.com/show_bug.cgi?id=17705 > > but the suggestion for having this in the PI seems a bit different, and > might not actually solve his issue for using a cloud instance of his > project. > > Brahmanathaswami > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 brahma at hindu.org Sun Oct 29 22:30:41 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 30 Oct 2017 02:30:41 +0000 Subject: Relative Paths in Property Inspector In-Reply-To: References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> Message-ID: <05AAB212-DF88-4177-9526-A25AC79C36EB@hindu.org> BR: are you keeping your stacks next to the images? like this ~/Dropbox/Pet Project/animals.livecode ~/Dropbox/Pet Project/img/dangerous-pets/tiger.jpg and if you set the image filename to "img/dangerous-pets/tiger.jpg" it fails? ---------- Mike Kerner wrote: it is related. As soon as I saw your post I said "gee, that looks familiar". Brahmanathaswami wrote: [snip] now you can > > a) manually chop of the lead down to this in the property inspector > > img/thumbs/little-rooster.jpg > > # and it works? this is also portable if you include "img/*" in the > stackfiles when create your standalone and the filename is saved relative > to the stack, and, assuming you keep the folder structure intact you don't > have to even mess with defaultfolder or even specialFolderPath("engine") > because the "relativity" of the path is respected in any and all contexts > (I think?) > > so you can also programatically do this > > set the filename of img "myPet" to "img/thumbs/little-rooster.jpg" > So, why can't we just a relative path in the Property Inspector itself? > The browser tool will always return full path from User down to the > "asset.jpg"? if I send that stack to someone else, or use a GIT work flow > where these stacks are "pure views" (i.e. no actual imported images > anywhere) along with the images. the paths are broken. So, long way of > asking: > > Do we need an enhancement request for a check box in the PI to set the > path as relative to the stack? Seems like that would be super usefu > > Mikey has this request in since May '16? which feels related > > http://quality.livecode.com/show_bug.cgi?id=17705 > > but the suggestion for having this in the PI seems a bit different, and > might not actually solve his issue for using a cloud instance of his > project. > > Brahmanathaswami > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 brahma at hindu.org Sun Oct 29 22:39:03 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 30 Oct 2017 02:39:03 +0000 Subject: Radio button scaling In-Reply-To: References: Message-ID: Christer I have had some success with a) create icon in a vector program b) no gradients! c) set background as transparent d) save as PNG at the largest size you might need. e) scale down (never up) dynamically run time before display. whether it is "non-smooth" will vary depending on the image. some appear very nicely; others do break down even when scaling down?there is a "lower limit" after which point the edges of the image will start to become jaggy. I recently did this myself for radio buttons, creating a circle in Illlustrator?. one for the "checked" state and one for the unchecked state. On 10/29/17, 12:48 AM, "use-livecode on behalf of hh via use-livecode" wrote: This is solvable as soon as icons are settable using SVG. Other scaling would result in non-smooth displays as the icons are images. From brian at milby7.com Sun Oct 29 22:46:57 2017 From: brian at milby7.com (Brian Milby) Date: Mon, 30 Oct 2017 02:46:57 +0000 Subject: Relative Paths in Property Inspector In-Reply-To: References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> Message-ID: So the ask is for a check box in the PI (near the source field with a label like ?Relative path?)? And when checked, the PI would automatically trim the path to be relative to the stack file (probably with the assumption that it only goes down the hierarchy). Or are you asking for a preference that would default to relative path names when choosing files in the PI? I think I know the behavior script that would need to trim the file name (for images). Not quite sure how to get the path of the stack file in that context yet. On Sun, Oct 29, 2017 at 8:02 PM Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > it is related. As soon as I saw your post I said "gee, that looks > familiar". > > On Sun, Oct 29, 2017 at 3:02 PM, Sannyasin Brahmanathaswami via > use-livecode wrote: > > > Backstory: > > > > Sometime back in a round with HQ we got the engine to "remember" relative > > path settings for the filenames of images/players etc.. such that it > would > > not default to full path from root on the drive which makes the path > unique > > to that user and no longer portable? so "relativity" go supported/sticky > in > > different dev scenarios? > > > > so far so good? if you set the filename in an image in a stack that lives > > here: > > > > User/MyDrive/myProject/coolAnimals.livecode > > > > with images here to: > > > > User/MyDrive/myProject/img/thumbs/little-rooster.jpg > > > > # it, obviously works But, now you can > > > > a) manually chop of the lead down to this in the property inspector > > > > img/thumbs/little-rooster.jpg > > > > # and it works? this is also portable if you include "img/*" in the > > stackfiles when create your standalone and the filename is saved relative > > to the stack, and, assuming you keep the folder structure intact you > don't > > have to even mess with defaultfolder or even specialFolderPath("engine") > > because the "relativity" of the path is respected in any and all contexts > > (I think?) > > > > so you can also programatically do this > > > > set the filename of img "myPet" to "img/thumbs/little-rooster.jpg" > > > > and that also works though you do need to use "specialFolderPath" > > functions on mobile. > > > > Again, so far so good? > > > > End backstory (please correct anything you see that is wrong) > > > > So, why can't we just a relative path in the Property Inspector itself? > > The browser tool will always return full path from User down to the > > "asset.jpg"? if I send that stack to someone else, or use a GIT work flow > > where these stacks are "pure views" (i.e. no actual imported images > > anywhere) along with the images. the paths are broken. So, long way of > > asking: > > > > Do we need an enhancement request for a check box in the PI to set the > > path as relative to the stack? Seems like that would be super usefu > > > > Mikey has this request in since May '16? which feels related > > > > http://quality.livecode.com/show_bug.cgi?id=17705 > > > > but the suggestion for having this in the PI seems a bit different, and > > might not actually solve his issue for using a cloud instance of his > > project. > > > > Brahmanathaswami > > > > > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 MikeKerner at roadrunner.com Sun Oct 29 22:46:56 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 29 Oct 2017 22:46:56 -0400 Subject: Relative Paths in Property Inspector In-Reply-To: <05AAB212-DF88-4177-9526-A25AC79C36EB@hindu.org> References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <05AAB212-DF88-4177-9526-A25AC79C36EB@hindu.org> Message-ID: What I meant was not that you shouldn't file a QR, but that I think that all the requests for relative paths should be combined because I think relative paths across LC would be beneficial. Sorry for not being clear about that. I have four obvious cases, where I see a benefit: 1) Using multiple machines - unless usernames are the same, absolute paths won't be the same 2) Using multiple platforms. 3) Using network syncing tools. If I use a syncing tool, the absolute paths won't match, either, unless both the username and the os are the same 4) Using network file storage. The path for syncing and storage won't be the same - for example, if on a lappie you use a network file storage tool to save disk space, the path will start with a network drive letter. If you use a syncing tool for the same service on a desktop, the path will start with some local drive and will be at least one level deeper. On Sun, Oct 29, 2017 at 10:30 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > BR: are you keeping your stacks next to the images? > > like this > > ~/Dropbox/Pet Project/animals.livecode > ~/Dropbox/Pet Project/img/dangerous-pets/tiger.jpg > > and if you set the image filename to "img/dangerous-pets/tiger.jpg" > > it fails? > > ---------- > > Mike Kerner wrote: > > it is related. As soon as I saw your post I said "gee, that looks > familiar". > > Brahmanathaswami wrote: > > [snip] now you can > > > > a) manually chop of the lead down to this in the property inspector > > > > img/thumbs/little-rooster.jpg > > > > # and it works? this is also portable if you include "img/*" in the > > stackfiles when create your standalone and the filename is saved > relative > > to the stack, and, assuming you keep the folder structure intact you > don't > > have to even mess with defaultfolder or even > specialFolderPath("engine") > > because the "relativity" of the path is respected in any and all > contexts > > (I think?) > > > > so you can also programatically do this > > > > set the filename of img "myPet" to "img/thumbs/little-rooster.jpg" > > > So, why can't we just a relative path in the Property Inspector > itself? > > The browser tool will always return full path from User down to the > > "asset.jpg"? if I send that stack to someone else, or use a GIT work > flow > > where these stacks are "pure views" (i.e. no actual imported images > > anywhere) along with the images. the paths are broken. So, long > way of > > asking: > > > > Do we need an enhancement request for a check box in the PI to set > the > > path as relative to the stack? Seems like that would be super usefu > > > > Mikey has this request in since May '16? which feels related > > > > http://quality.livecode.com/show_bug.cgi?id=17705 > > > > but the suggestion for having this in the PI seems a bit different, > and > > might not actually solve his issue for using a cloud instance of his > > project. > > > > Brahmanathaswami > > > > > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 > > _______________________________________________ > use-livecode mailing list > use-livecode 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 irog at mac.com Sun Oct 29 22:54:38 2017 From: irog at mac.com (Roger Guay) Date: Sun, 29 Oct 2017 19:54:38 -0700 Subject: I Hate Full Screen! Message-ID: <500605C5-C456-4441-B7FF-45EA7FA2D13F@mac.com> Why can?t I set the decorations of a stack to only ?Title? without that damnable green ball coming in every time? LC 8.1.6 and Mac OS 10.13. Thanks, Roger From brian at milby7.com Sun Oct 29 23:18:40 2017 From: brian at milby7.com (Brian Milby) Date: Mon, 30 Oct 2017 03:18:40 +0000 Subject: I Hate Full Screen! In-Reply-To: <500605C5-C456-4441-B7FF-45EA7FA2D13F@mac.com> References: <500605C5-C456-4441-B7FF-45EA7FA2D13F@mac.com> Message-ID: Looks like a regression in 8 from 7. Just did a quick test and don?t see the issue in 7.1.4 but do in 8/9. Bug 18213 On Sun, Oct 29, 2017 at 9:55 PM Roger Guay via use-livecode < use-livecode at lists.runrev.com> wrote: > Why can?t I set the decorations of a stack to only ?Title? without that > damnable green ball coming in every time? > > LC 8.1.6 and Mac OS 10.13. > > Thanks, > > 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 preid at reidit.co.uk Mon Oct 30 05:26:58 2017 From: preid at reidit.co.uk (Peter Reid) Date: Mon, 30 Oct 2017 09:26:58 +0000 Subject: Android Filing System using LC9 Message-ID: <681BDBCD-96D8-4EBD-9AC5-376CDDDC0F62@reidit.co.uk> I've investigated further the way the Android filing system seems to be available to LC 9.0.0-dp10. As I reported previously, I have found several anomalies. Here's what I've found, (with my app being identified as "com.reidit.aphtrain" in the examples): 1. The internal storage area pointed to by specialFolderPath("engine") or specialFolderPath("resources") is Read-Only (RO) and contains any files & folder specified in Standalone settings to be included in the Copy Files section. Specifically, the path returned by "engine"/"resources" is: /data/app/com.reidit.aphtrain-2/base.apk This can be accessed RO reliably and seems to be the correct behaviour. 2. The internal storage area pointed to by specialFolderPath("documents") is Read-Write (RW) and can be used as such. However, the path returned by "documents" is INCORRECT: /data/data/com.reidit.aphtrain/files The correct path should be: /Android/data/com.reidit.aphtrain/files If I replace the leading "data" with "Android", the path works fully with RW access. 3. If I pre-load files & folders onto a microSD card on my computer, I have to place them in a path such as: /Android/com.reidit.aphtrain/ Such files & folders are Read-Only in the tablet and accessible using the following path: /storage/sdcard1/Android/com.reidit.aphtrain/ It seems that Android 5 or later (FireOS 5 in my case) locks down SD cards. They used to be fully RW but are now treated as mainly RO apart from an area for the app to use. If I get the path from specialFolderPath("external documents"), the path gives me Read-Write access to the following area: /storage/emulated/0/Android/data/com.reidit.aphtrain/files/ During the running of the app, the above path works fully for RW access but doesn't show any of the pre-loaded files & folders. However, If I connect the microSD card to my computer again, this area is NOT VISIBLE! In summary, we seem to have the following available in LC 9: WHERE SPECIAL ACCESS TABLET? MAC? PATH 1. internal "engine" RO Yes No /data/app/com.reidit.aphtrain-2/base.apk 2. internal "documents" RW ERROR No /data/data/com.reidit.aphtrain/files 3. internal "documents"* RW Yes No /Android/data/com.reidit.aphtrain/files 4. external "external doc" RW Yes NO /storage/emulated/0/Android/data/com.reidit.aphtrain/files 5. external "external doc"* RO Yes Yes /storage/sdcard1/Android/com.reidit.aphtrain The result of the above is that it is difficult creating files & folders on the fly that you can get out of the tablet afterwards such that they can be read on a computer! Can anyone confirm my findings and make recommendations? Also, specialFolderPath("documents") seems to have a BUG as it delivers the wrong path (in LC 9.0.0-dp9/10). Thanks Peter From charles at techstrategies.com.au Mon Oct 30 06:40:37 2017 From: charles at techstrategies.com.au (Charles Warwick) Date: Mon, 30 Oct 2017 20:40:37 +1000 Subject: Socket help needed for API In-Reply-To: <0275FF20-4BBC-47F7-9CFC-863CB54E697E@appisle.net> References: <5fa7d650-3139-2c01-3dcc-d7e673295a28@together.net> <0275FF20-4BBC-47F7-9CFC-863CB54E697E@appisle.net> Message-ID: Hi Richard, I have an LC external under development that supports websockets that could potentially help you. Feel free to contact me off-list if you would like to try it out. Regards, Charles > On 30 Oct 2017, at 9:37 am, Monte Goulding via use-livecode wrote: > > Hi Richard > > LiveCode does not currently have websocket support. As this has come up recently in a number of areas I had a quick look at the spec (https://tools.ietf.org/html/rfc6455 ). It looks relatively feasible to implement on top of our current socket support in LiveCode script. Possibly as part of libURL or a separate library. > > Cheers > > Monte > >> On 29 Oct 2017, at 10:49 pm, Richard Miller via use-livecode wrote: >> >> I have been using LC to access an API through conventional means, but that site has now changed to a socket protocol. I have tried various methods, but just can?t get it to work. >> >> I would appreciate it if someone familiar with sockets could take a look and show me how to do this. I only need to know how to establish a connection and receive data. I can take it from there. >> >> The information I am looking to receive is what is produced through this now deprecated API. It is a list of all of the digital tokens being traded at this site. (Note: you may have to send this link a few times in order to get a response. The site is often overloaded.) >> >> put https://api.etherdelta.com/returnTicker >> >> I want to receive the same information, but using the new socket-based API shown here. >> >> https://github.com/etherdelta/etherdelta.github.io/blob/master/docs/API.md >> https://github.com/etherdelta/etherdelta.github.io/tree/master/bots >> >> Thank you very much for help with this. >> Richard Miller >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From panos.merakos at livecode.com Mon Oct 30 08:10:45 2017 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 30 Oct 2017 12:10:45 +0000 Subject: [ANN] This Week in LiveCode 104 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 #104 here: https://goo.gl/T4hdt5 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 dave at applicationinsight.com Mon Oct 30 08:33:26 2017 From: dave at applicationinsight.com (Dave Kilroy) Date: Mon, 30 Oct 2017 12:33:26 +0000 Subject: Android Filing System using LC9 Message-ID: <82D90135-B5ED-4DCB-A275-BE185F29DAD2@applicationinsight.com> Hi Peter I?ve just done a new test build for my Galaxy S7Android (running Android 7) using LC 9.0.0 (dp10) and I?m able to transfer files from ?engine? to ?documents? and to write to ?documents?. I?ve never had to manually add ?Android? and have found specialFolderPath() to be solid for my on Android - but there again I?m not trying to access data the app stores on the device by any method other than using the app itself... This is what I?m currently using to set up local files (it?s a bit sloppy and could do with updating - especially the test for whether or not to copy all the files over) - but it works: on setupLocalFiles if isMobile() then put the defaultfolder into tDefault put specialFolderPath("engine") & "/ehrdata/" into tFolder set the defaultfolder to tFolder put the files into tFiles repeat with i = 1 to the number of lines in tFiles if char 1 of line i of tFiles = "." then delete line i of tFiles end repeat set the defaultfolder to tDefault put specialFolderPath("engine") & "/ehrdata/" into tSourceFolder put specialFolderPath("documents") & "/ehrdata/" into tTargetFolder if there is not a folder tTargetFolder then create folder tTargetFolder put (the ehr["templateId"] of the current stack) & "_exampledatareduced.json" into tCheckFile replace space with "_" in tCheckFile put files(tSourceFolder) into tFiles if there is not a file (tTargetFolder & tCheckFile) then repeat for each line tFile in tFiles if char 1 of tFile = "." then next repeat put tSourceFolder & tFile into tSourceFile put tTargetFolder & tFile into tTargetFile put URL("binfile:" & tSourceFile) into URL("binfile:" & tTargetFile) end repeat end if end if end setupLocalFiles And this is and example of how I write ?on the fly? to ?documents - again it?s a bit convoluted (it uses encryption) as it?s specific to my needs - but it works: on savePrefs put the uPrefs of stack "Diadem" into tPrefs put doEncryptAnd64(tPrefs) into t64 if word 1 of t64 <> "Bad" then if isMobile() then put "documents" into tSpecialFolder else put "resources" into tSpecialFolder put specialFolderPath(tSpecialFolder) & "/prefs/"into tPath if there is not a folder tPath then create folder tPath put tPath & "prefs.txt" into tFile put t64 into URL("binfile:" & tFile) else answer "Error:" && t64 exit to top end if end savePrefs Kind regards Dave From MikeKerner at roadrunner.com Mon Oct 30 09:33:42 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 30 Oct 2017 09:33:42 -0400 Subject: Relative Paths in Property Inspector In-Reply-To: References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> Message-ID: Sure, but if you were to do that, then I should have an LC-wide preference that I can set so that I don't have to fix it for every project. From MikeKerner at roadrunner.com Mon Oct 30 09:37:43 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 30 Oct 2017 09:37:43 -0400 Subject: I Hate Full Screen! In-Reply-To: References: <500605C5-C456-4441-B7FF-45EA7FA2D13F@mac.com> Message-ID: Ya know, it would be neat if you could select fullscreen mode, and then all the palettes would become part of the border - so maybe on the left would be tools, on the right would be PI, and if I have other plugins open (think three palettes for tmc2) they would go left or right depending on need. On Sun, Oct 29, 2017 at 11:18 PM, Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > Looks like a regression in 8 from 7. Just did a quick test and don?t see > the issue in 7.1.4 but do in 8/9. > > Bug 18213 > On Sun, Oct 29, 2017 at 9:55 PM Roger Guay via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Why can?t I set the decorations of a stack to only ?Title? without that > > damnable green ball coming in every time? > > > > LC 8.1.6 and Mac OS 10.13. > > > > Thanks, > > > > 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 > _______________________________________________ > use-livecode mailing list > use-livecode 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 toolbook at kestner.de Mon Oct 30 09:52:29 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 30 Oct 2017 14:52:29 +0100 Subject: Script editor - what about the handlers with the red cross? Message-ID: <005801d35186$5467c270$fd374750$@kestner.de> Hi, since some versions we find in the script editor window in the left list of handlers a list of system messages with a red cross (below my used handlers). Which selection of handlers are shown in that list? What can I do with it? What is the sense? Thanks Tiemo From panos.merakos at livecode.com Mon Oct 30 10:12:46 2017 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 30 Oct 2017 14:12:46 +0000 Subject: [ANN] Release 8.1.7 Message-ID: Dear List Members, We are pleased to announce the release of LiveCode 8.1.7 Stable. By "Stable", we mean that no reported regressions have been introduced in 8.1.7, compared to the previous Stable release. LiveCode 8.1.7 contains 49 extra bug fixes and new features, compared to LiveCode 8.1.6. You can get the release at https://downloads.livecode.com/livecode/ or via the automatic updater. Please report any bugs encountered on our BugZilla at http://quality.livecode.com/ Warmest regards, The LiveCode Team -- From bobsneidar at iotecdigital.com Mon Oct 30 11:13:06 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 30 Oct 2017 15:13:06 +0000 Subject: Relative Paths in Property Inspector In-Reply-To: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> Message-ID: <57A0B0D0-D23F-4FE4-AE80-D30864DD3644@iotecdigital.com> I think you can. Preface the path with ./ which will refer to the path of the executable. And if I am not mistaken, ../ will refer to the parent folder of the application folder. Bob S > On Oct 29, 2017, at 12:02 , Sannyasin Brahmanathaswami via use-livecode wrote: > > End backstory (please correct anything you see that is wrong) > > So, why can't we just a relative path in the Property Inspector itself? The browser tool will always return full path from User down to the "asset.jpg"? if I send that stack to someone else, or use a GIT work flow where these stacks are "pure views" (i.e. no actual imported images anywhere) along with the images. the paths are broken. So, long way of asking: From bobsneidar at iotecdigital.com Mon Oct 30 11:15:58 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 30 Oct 2017 15:15:58 +0000 Subject: Script editor - what about the handlers with the red cross? In-Reply-To: <005801d35186$5467c270$fd374750$@kestner.de> References: <005801d35186$5467c270$fd374750$@kestner.de> Message-ID: The list is a display of the messages that particular object receives by default from the engine. If you click the PLUS sign, it appends that handler to the script. Bob S > On Oct 30, 2017, at 06:52 , Tiemo Hollmann TB via use-livecode wrote: > > Hi, since some versions we find in the script editor window in the left list > of handlers a list of system messages with a red cross (below my used > handlers). > > Which selection of handlers are shown in that list? What can I do with it? > What is the sense? > > Thanks > > Tiemo From toolbook at kestner.de Mon Oct 30 11:24:47 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 30 Oct 2017 16:24:47 +0100 Subject: AW: Script editor - what about the handlers with the red cross? In-Reply-To: References: <005801d35186$5467c270$fd374750$@kestner.de> Message-ID: <005f01d35193$395090e0$abf1b2a0$@kestner.de> So I can see it just as a suggestion of handlers I could use, but if I don't need, I don't have to do anything with it. Right? Thanks Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Bob Sneidar via use-livecode Gesendet: Montag, 30. Oktober 2017 16:16 An: How to use LiveCode Cc: Bob Sneidar Betreff: Re: Script editor - what about the handlers with the red cross? The list is a display of the messages that particular object receives by default from the engine. If you click the PLUS sign, it appends that handler to the script. Bob S > On Oct 30, 2017, at 06:52 , Tiemo Hollmann TB via use-livecode wrote: > > Hi, since some versions we find in the script editor window in the > left list of handlers a list of system messages with a red cross > (below my used handlers). > > Which selection of handlers are shown in that list? What can I do with it? > What is the sense? > > Thanks > > Tiemo _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Mon Oct 30 11:26:10 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 30 Oct 2017 15:26:10 +0000 Subject: Relative Paths in Property Inspector In-Reply-To: References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> Message-ID: <3D29BA5D-B828-4462-95A4-FCEB48AD74CA@hindu.org> @ Brian: good question. Now that I think of it? maybe both would be good? Option 1: If the pref is on, then the check box is checked by default in the PI; otherwise it's not. This allows the user to use full path. Option 2: no check box in PI, just a pref because: assumes no use cases there are that would "break" if the path was always relative. But I don't know if that assumption is correct, and option 1 seems to be "no skin off the IDE" to implement. Possibly in some secure situation a stack wants to only able to access local resources and would fail to find them, by design, if ported as a package elsewhere. Seems very rare use case to me. One faces this same issue every day in our team? with DTPublishing with doc + links to images, and we all just wish Adobe would make relative paths work "out of the box, everywhere, all the time." @ Mikey a) we understand your use cases? in fact I have the exact same set right here; GIT is in effect the net storage case you describe, and albeit instead of a mounted drive you have your cloned project folder on disk? on another project we used Dropbox. b) Sorry to be tedious, but you did not confirm: if you keep the stack and the image in the same folder on the "cloud" drive that appears as a mount point on your system? ~/Dropbox/Pet Project/animals.livecode ~/Dropbox/Pet Project/img/dangerous-pets/tiger.jpg do relative paths work? of course I could test here, but just want to be sure your context is the same. c) Yes, I will file an QR enhancement request? and agreed they should be considered together, But first: if your answer to b) above is "No" that the relative path on a mounted instance of your cloud drive doesn't work then we have a different problem, OR if the answer is "Yes" it does work? then we do indeed have the same/parallel request and I can just append your QR BR Brian wrote: So the ask is for a check box in the PI (near the source field with a label like ?Relative path?)? And when checked, the PI would automatically trim the path to be relative to the stack file (probably with the assumption that it only goes down the hierarchy). Or are you asking for a preference that would default to relative path names when choosing files in the PI? From bobsneidar at iotecdigital.com Mon Oct 30 11:32:00 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 30 Oct 2017 15:32:00 +0000 Subject: Script editor - what about the handlers with the red cross? In-Reply-To: <005f01d35193$395090e0$abf1b2a0$@kestner.de> References: <005801d35186$5467c270$fd374750$@kestner.de> <005f01d35193$395090e0$abf1b2a0$@kestner.de> Message-ID: Absolutely. It's a convenience, and I find it nice as a quick reference for what handlers will work with that object. For instance, you don't see a closeField handler in a button script do you? Look at a datagrid script. You will see a very limited list of handlers. Now I would love to see all the custom properties specific to datagrids, like dgHilitedLine etc. But maybe that would clutter things up too much. Bob S > On Oct 30, 2017, at 08:24 , Tiemo Hollmann TB via use-livecode wrote: > > So I can see it just as a suggestion of handlers I could use, but if I don't > need, I don't have to do anything with it. Right? > Thanks > Tiemo From dochawk at gmail.com Mon Oct 30 12:03:52 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 30 Oct 2017 09:03:52 -0700 Subject: Script editor - what about the handlers with the red cross? In-Reply-To: <005801d35186$5467c270$fd374750$@kestner.de> References: <005801d35186$5467c270$fd374750$@kestner.de> Message-ID: On Mon, Oct 30, 2017 at 6:52 AM, Tiemo Hollmann TB via use-livecode wrote: > a list of system messages with a red cross (below my used > handlers). > > Which selection of handlers are shown in that list? What can I do with it? That depends--these are reserved for regular blood donors. :) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From MikeKerner at roadrunner.com Mon Oct 30 12:08:18 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 30 Oct 2017 12:08:18 -0400 Subject: Relative Paths in Property Inspector In-Reply-To: <3D29BA5D-B828-4462-95A4-FCEB48AD74CA@hindu.org> References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <3D29BA5D-B828-4462-95A4-FCEB48AD74CA@hindu.org> Message-ID: On "b", I have three machines that I use. Two of them use Google's Backup and Sync service, and the other uses Google's Drive File Stream. So in for two of the machines, the answer is "mostly yes" - the difference is the username, as the "Drive" folder is in the user folder. For the the third, the answer is "no", because in that case, the access is treated as a network store, i.e. its own drive. On Mon, Oct 30, 2017 at 11:26 AM, Sannyasin Brahmanathaswami via use-livecode wrote: > @ Brian: good question. Now that I think of it? maybe both would be good? > > Option 1: If the pref is on, then the check box is checked by default in > the PI; otherwise it's not. This allows the user to use full path. Option > 2: no check box in PI, just a pref because: assumes no use cases there are > that would "break" if the path was always relative. But I don't know if > that assumption is correct, and option 1 seems to be "no skin off the IDE" > to implement. > > Possibly in some secure situation a stack wants to only able to access > local resources and would fail to find them, by design, if ported as a > package elsewhere. Seems very rare use case to me. One faces this same > issue every day in our team? with DTPublishing with doc + links to images, > and we all just wish Adobe would make relative paths work "out of the box, > everywhere, all the time." > > @ Mikey > a) we understand your use cases? in fact I have the exact same set right > here; GIT is in effect the net storage case you describe, and albeit > instead of a mounted drive you have your cloned project folder on disk? on > another project we used Dropbox. > b) Sorry to be tedious, but you did not confirm: if you keep the stack and > the image in the same folder on the "cloud" drive that appears as a mount > point on your system? > > ~/Dropbox/Pet Project/animals.livecode > ~/Dropbox/Pet Project/img/dangerous-pets/tiger.jpg > > do relative paths work? of course I could test here, but just want to be > sure your context is the same. > > c) Yes, I will file an QR enhancement request? and agreed they should be > considered together, > > But first: if your answer to b) above is "No" that the relative path on a > mounted instance of your cloud drive doesn't work then we have a different > problem, > > OR > > if the answer is "Yes" it does work? then we do indeed have the > same/parallel request and I can just append your QR > > BR > > > Brian wrote: > > So the ask is for a check box in the PI (near the source field with a > label > like ?Relative path?)? And when checked, the PI would automatically > trim > the path to be relative to the stack file (probably with the assumption > that it only goes down the hierarchy). > > Or are you asking for a preference that would default to relative path > names when choosing files in the PI? > > _______________________________________________ > use-livecode mailing list > use-livecode 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 brahma at hindu.org Mon Oct 30 13:39:04 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 30 Oct 2017 17:39:04 +0000 Subject: Relative Paths in Property Inspector In-Reply-To: References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <3D29BA5D-B828-4462-95A4-FCEB48AD74CA@hindu.org> Message-ID: @Mike I tried to duplicate your 3rd case. Are you on Mac OS X? if I create a stack, place and img in an adjacent image folder and move to the server ("Chola") in the next room? set the img filename to img/tiger.jpg it works @brian ./img/tiger.jpg also works? but really doesn't get us anything? we have to manually enter either way So from terminal if you do "cd /" and you look under Volumes? the DriveFileStream is not there? in this if I do cd /Volumes I will see MyDrive HD Chola BR Back ups (USB for local Time machine backups) But "Chola" is a "network store"? I guess I don?t understand the nature of the connection/Mount context to Googles Drive File Stream? how that is different? At any rate you do seem to have a different, though obviously related issue. On 10/30/17, 6:09 AM, "use-livecode on behalf of Mike Kerner via use-livecode" wrote: On "b", I have three machines that I use. Two of them use Google's Backup and Sync service, and the other uses Google's Drive File Stream. So in for two of the machines, the answer is "mostly yes" - the difference is the username, as the "Drive" folder is in the user folder. For the the third, the answer is "no", because in that case, the access is treated as a network store, i.e. its own drive. From MikeKerner at roadrunner.com Mon Oct 30 13:48:47 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 30 Oct 2017 13:48:47 -0400 Subject: Relative Paths in Property Inspector In-Reply-To: References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <3D29BA5D-B828-4462-95A4-FCEB48AD74CA@hindu.org> Message-ID: If you use Backup and Sync (the old "Drive"), your folder is ~/Google Drive/ If you use Drive Stream and do not map the mount point to an alias in the documents folder, the mount point will be a volume. Git was not amused when I switched on the one machine. On Mon, Oct 30, 2017 at 1:39 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > @Mike I tried to duplicate your 3rd case. Are you on Mac OS X? > > if I create a stack, place and img in an adjacent image folder and move to > the server ("Chola") in the next room? set the img filename to > > img/tiger.jpg > > it works @brian ./img/tiger.jpg also works? but really doesn't get us > anything? we have to manually enter either way > > So from terminal if you do "cd /" and you look under Volumes? the > DriveFileStream is not there? > > in this if I do > > cd /Volumes > I will see > > MyDrive HD > Chola > BR Back ups (USB for local Time machine backups) > > But "Chola" is a "network store"? I guess I don?t understand the nature of > the connection/Mount context to Googles Drive File Stream? how that is > different? > > At any rate you do seem to have a different, though obviously related > issue. > > > > > On 10/30/17, 6:09 AM, "use-livecode on behalf of Mike Kerner via > use-livecode" use-livecode at lists.runrev.com> wrote: > > On "b", I have three machines that I use. Two of them use Google's > Backup > and Sync service, and the other uses Google's Drive File Stream. So > in for > two of the machines, the answer is "mostly yes" - the difference is the > username, as the "Drive" folder is in the user folder. For the the > third, > the answer is "no", because in that case, the access is treated as a > network store, i.e. its own drive. > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Oct 30 14:24:35 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 30 Oct 2017 18:24:35 +0000 Subject: Relative Paths in Property Inspector In-Reply-To: References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <3D29BA5D-B828-4462-95A4-FCEB48AD74CA@hindu.org> Message-ID: <3C72E38F-D089-4543-B467-F121EBA12CB8@iotecdigital.com> The tilde is a MacOS convention. The period should be universal. ./ as opposed to ~/ Bob S > On Oct 30, 2017, at 10:48 , Mike Kerner via use-livecode wrote: > > If you use Backup and Sync (the old "Drive"), your folder is ~/Google Drive/ > If you use Drive Stream and do not map the mount point to an alias in the > documents folder, the mount point will be a volume. > > Git was not amused when I switched on the one machine. > > On Mon, Oct 30, 2017 at 1:39 PM, Sannyasin Brahmanathaswami via > use-livecode wrote: > >> @Mike I tried to duplicate your 3rd case. Are you on Mac OS X? >> >> if I create a stack, place and img in an adjacent image folder and move to >> the server ("Chola") in the next room? set the img filename to >> >> img/tiger.jpg >> >> it works @brian ./img/tiger.jpg also works? but really doesn't get us >> anything? we have to manually enter either way >> >> So from terminal if you do "cd /" and you look under Volumes? the >> DriveFileStream is not there? >> >> in this if I do >> >> cd /Volumes >> I will see >> >> MyDrive HD >> Chola >> BR Back ups (USB for local Time machine backups) >> >> But "Chola" is a "network store"? I guess I don?t understand the nature of >> the connection/Mount context to Googles Drive File Stream? how that is >> different? >> >> At any rate you do seem to have a different, though obviously related >> issue. >> >> >> >> >> On 10/30/17, 6:09 AM, "use-livecode on behalf of Mike Kerner via >> use-livecode" > use-livecode at lists.runrev.com> wrote: >> >> On "b", I have three machines that I use. Two of them use Google's >> Backup >> and Sync service, and the other uses Google's Drive File Stream. So >> in for >> two of the machines, the answer is "mostly yes" - the difference is the >> username, as the "Drive" folder is in the user folder. For the the >> third, >> the answer is "no", because in that case, the access is treated as a >> network store, i.e. its own drive. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 MikeKerner at roadrunner.com Mon Oct 30 14:58:49 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 30 Oct 2017 14:58:49 -0400 Subject: Relative Paths in Property Inspector In-Reply-To: <3C72E38F-D089-4543-B467-F121EBA12CB8@iotecdigital.com> References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <3D29BA5D-B828-4462-95A4-FCEB48AD74CA@hindu.org> <3C72E38F-D089-4543-B467-F121EBA12CB8@iotecdigital.com> Message-ID: Actually the ~ is a unix convention, so it is also used in Linux. On Mon, Oct 30, 2017 at 2:24 PM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > The tilde is a MacOS convention. The period should be universal. ./ as > opposed to ~/ > > Bob S > > > > On Oct 30, 2017, at 10:48 , Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > If you use Backup and Sync (the old "Drive"), your folder is ~/Google > Drive/ > > If you use Drive Stream and do not map the mount point to an alias in the > > documents folder, the mount point will be a volume. > > > > Git was not amused when I switched on the one machine. > > > > On Mon, Oct 30, 2017 at 1:39 PM, Sannyasin Brahmanathaswami via > > use-livecode wrote: > > > >> @Mike I tried to duplicate your 3rd case. Are you on Mac OS X? > >> > >> if I create a stack, place and img in an adjacent image folder and move > to > >> the server ("Chola") in the next room? set the img filename to > >> > >> img/tiger.jpg > >> > >> it works @brian ./img/tiger.jpg also works? but really doesn't get us > >> anything? we have to manually enter either way > >> > >> So from terminal if you do "cd /" and you look under Volumes? the > >> DriveFileStream is not there? > >> > >> in this if I do > >> > >> cd /Volumes > >> I will see > >> > >> MyDrive HD > >> Chola > >> BR Back ups (USB for local Time machine backups) > >> > >> But "Chola" is a "network store"? I guess I don?t understand the nature > of > >> the connection/Mount context to Googles Drive File Stream? how that is > >> different? > >> > >> At any rate you do seem to have a different, though obviously related > >> issue. > >> > >> > >> > >> > >> On 10/30/17, 6:09 AM, "use-livecode on behalf of Mike Kerner via > >> use-livecode" >> use-livecode at lists.runrev.com> wrote: > >> > >> On "b", I have three machines that I use. Two of them use Google's > >> Backup > >> and Sync service, and the other uses Google's Drive File Stream. So > >> in for > >> two of the machines, the answer is "mostly yes" - the difference is > the > >> username, as the "Drive" folder is in the user folder. For the the > >> third, > >> the answer is "no", because in that case, the access is treated as a > >> network store, i.e. its own drive. > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode 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 > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mon Oct 30 15:07:26 2017 From: brian at milby7.com (Brian Milby) Date: Mon, 30 Oct 2017 19:07:26 +0000 Subject: Relative Paths in Property Inspector In-Reply-To: References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <3D29BA5D-B828-4462-95A4-FCEB48AD74CA@hindu.org> <3C72E38F-D089-4543-B467-F121EBA12CB8@iotecdigital.com> Message-ID: ./ is current directory. ~/ is the user home directory. On Mon, Oct 30, 2017 at 2:00 PM Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > Actually the ~ is a unix convention, so it is also used in Linux. > > On Mon, Oct 30, 2017 at 2:24 PM, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > The tilde is a MacOS convention. The period should be universal. ./ as > > opposed to ~/ > > > > Bob S > > > > > > > On Oct 30, 2017, at 10:48 , Mike Kerner via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > > If you use Backup and Sync (the old "Drive"), your folder is ~/Google > > Drive/ > > > If you use Drive Stream and do not map the mount point to an alias in > the > > > documents folder, the mount point will be a volume. > > > > > > Git was not amused when I switched on the one machine. > > > > > > On Mon, Oct 30, 2017 at 1:39 PM, Sannyasin Brahmanathaswami via > > > use-livecode wrote: > > > > > >> @Mike I tried to duplicate your 3rd case. Are you on Mac OS X? > > >> > > >> if I create a stack, place and img in an adjacent image folder and > move > > to > > >> the server ("Chola") in the next room? set the img filename to > > >> > > >> img/tiger.jpg > > >> > > >> it works @brian ./img/tiger.jpg also works? but really doesn't get us > > >> anything? we have to manually enter either way > > >> > > >> So from terminal if you do "cd /" and you look under Volumes? the > > >> DriveFileStream is not there? > > >> > > >> in this if I do > > >> > > >> cd /Volumes > > >> I will see > > >> > > >> MyDrive HD > > >> Chola > > >> BR Back ups (USB for local Time machine backups) > > >> > > >> But "Chola" is a "network store"? I guess I don?t understand the > nature > > of > > >> the connection/Mount context to Googles Drive File Stream? how that is > > >> different? > > >> > > >> At any rate you do seem to have a different, though obviously related > > >> issue. > > >> > > >> > > >> > > >> > > >> On 10/30/17, 6:09 AM, "use-livecode on behalf of Mike Kerner via > > >> use-livecode" > >> use-livecode at lists.runrev.com> wrote: > > >> > > >> On "b", I have three machines that I use. Two of them use Google's > > >> Backup > > >> and Sync service, and the other uses Google's Drive File Stream. > So > > >> in for > > >> two of the machines, the answer is "mostly yes" - the difference is > > the > > >> username, as the "Drive" folder is in the user folder. For the the > > >> third, > > >> the answer is "no", because in that case, the access is treated as > a > > >> network store, i.e. its own drive. > > >> > > >> _______________________________________________ > > >> use-livecode mailing list > > >> use-livecode 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 > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 MikeKerner at roadrunner.com Mon Oct 30 15:11:36 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 30 Oct 2017 15:11:36 -0400 Subject: Relative Paths in Property Inspector In-Reply-To: References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <3D29BA5D-B828-4462-95A4-FCEB48AD74CA@hindu.org> <3C72E38F-D089-4543-B467-F121EBA12CB8@iotecdigital.com> Message-ID: Yes, Brian. So I'm not sure what you're getting at. On Mon, Oct 30, 2017 at 3:07 PM, Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > ./ is current directory. ~/ is the user home directory. > On Mon, Oct 30, 2017 at 2:00 PM Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Actually the ~ is a unix convention, so it is also used in Linux. > > > > On Mon, Oct 30, 2017 at 2:24 PM, Bob Sneidar via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > The tilde is a MacOS convention. The period should be universal. ./ as > > > opposed to ~/ > > > > > > Bob S > > > > > > > > > > On Oct 30, 2017, at 10:48 , Mike Kerner via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > > > > > > If you use Backup and Sync (the old "Drive"), your folder is ~/Google > > > Drive/ > > > > If you use Drive Stream and do not map the mount point to an alias in > > the > > > > documents folder, the mount point will be a volume. > > > > > > > > Git was not amused when I switched on the one machine. > > > > > > > > On Mon, Oct 30, 2017 at 1:39 PM, Sannyasin Brahmanathaswami via > > > > use-livecode wrote: > > > > > > > >> @Mike I tried to duplicate your 3rd case. Are you on Mac OS X? > > > >> > > > >> if I create a stack, place and img in an adjacent image folder and > > move > > > to > > > >> the server ("Chola") in the next room? set the img filename to > > > >> > > > >> img/tiger.jpg > > > >> > > > >> it works @brian ./img/tiger.jpg also works? but really doesn't get > us > > > >> anything? we have to manually enter either way > > > >> > > > >> So from terminal if you do "cd /" and you look under Volumes? the > > > >> DriveFileStream is not there? > > > >> > > > >> in this if I do > > > >> > > > >> cd /Volumes > > > >> I will see > > > >> > > > >> MyDrive HD > > > >> Chola > > > >> BR Back ups (USB for local Time machine backups) > > > >> > > > >> But "Chola" is a "network store"? I guess I don?t understand the > > nature > > > of > > > >> the connection/Mount context to Googles Drive File Stream? how that > is > > > >> different? > > > >> > > > >> At any rate you do seem to have a different, though obviously > related > > > >> issue. > > > >> > > > >> > > > >> > > > >> > > > >> On 10/30/17, 6:09 AM, "use-livecode on behalf of Mike Kerner via > > > >> use-livecode" > > >> use-livecode at lists.runrev.com> wrote: > > > >> > > > >> On "b", I have three machines that I use. Two of them use > Google's > > > >> Backup > > > >> and Sync service, and the other uses Google's Drive File Stream. > > So > > > >> in for > > > >> two of the machines, the answer is "mostly yes" - the difference > is > > > the > > > >> username, as the "Drive" folder is in the user folder. For the > the > > > >> third, > > > >> the answer is "no", because in that case, the access is treated > as > > a > > > >> network store, i.e. its own drive. > > > >> > > > >> _______________________________________________ > > > >> use-livecode mailing list > > > >> use-livecode 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 > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode 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 > _______________________________________________ > use-livecode mailing list > use-livecode 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 jacque at hyperactivesw.com Mon Oct 30 15:18:28 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 30 Oct 2017 14:18:28 -0500 Subject: Android Filing System using LC9 In-Reply-To: <681BDBCD-96D8-4EBD-9AC5-376CDDDC0F62@reidit.co.uk> References: <681BDBCD-96D8-4EBD-9AC5-376CDDDC0F62@reidit.co.uk> Message-ID: <67b0ce54-384e-c687-4100-4b5222dab716@hyperactivesw.com> On 10/30/17 4:26 AM, Peter Reid via use-livecode wrote: > 2. The internal storage area pointed to by specialFolderPath("documents") is Read-Write (RW) and can be used as such. However, the path returned by "documents" is INCORRECT: > > /data/data/com.reidit.aphtrain/files > > The correct path should be: > > /Android/data/com.reidit.aphtrain/files Not exactly; both are correct. There are two different types of documents folders; one is app-specific and private to the app. The other is the public documents folder you can see in a file manager on the device. The specialFolderPath("documents") points to the private app-specific folder and is correct. SpecialFolderPath("external documents") points to the public documents directory. > > If I replace the leading "data" with "Android", the path works fully with RW access. This path points to the general documents folder that other apps can see. It should be the same as specialFolderPath("external documents"). > > 3. If I pre-load files & folders onto a microSD card on my computer, I have to place them in a path such as: > > /Android/com.reidit.aphtrain/ > > Such files & folders are Read-Only in the tablet and accessible using the following path: > > /storage/sdcard1/Android/com.reidit.aphtrain/ > > It seems that Android 5 or later (FireOS 5 in my case) locks down SD cards. They used to be fully RW but are now treated as mainly RO apart from an area for the app to use. If I get the path from specialFolderPath("external documents"), the path gives me Read-Write access to the following area: > > /storage/emulated/0/Android/data/com.reidit.aphtrain/files/ > > During the running of the app, the above path works fully for RW access but doesn't show any of the pre-loaded files & folders. However, If I connect the microSD card to my computer again, this area is NOT VISIBLE! If you are on a Mac, I believe you need special software to access documents. I know Samsung provides their KIES software for that. I'm not sure how Windows handles it. I'm not sure whether FireOS is representative of all versions of Android OS. Amazon did some heavy customization of their OS so the rules they use may not be the same as pure Android OS. I don't have a Fire tablet but if you can get ahold of a different Android device it would be interesting to see if this behavior is universal. > Also, specialFolderPath("documents") seems to have a BUG as it delivers the wrong path (in LC 9.0.0-dp9/10). See above. The path is correct for the app's virtual folder. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From brian at milby7.com Mon Oct 30 15:22:32 2017 From: brian at milby7.com (Brian Milby) Date: Mon, 30 Oct 2017 19:22:32 +0000 Subject: Relative Paths in Property Inspector In-Reply-To: References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <3D29BA5D-B828-4462-95A4-FCEB48AD74CA@hindu.org> <3C72E38F-D089-4543-B467-F121EBA12CB8@iotecdigital.com> Message-ID: Just clarifying that the two are not interchangeable. From the OP, I don?t think ~/ links would be used at all. I am not saying that we should include the ./ but that when discussing relative links for assets that the fixed point should be the stack location and not something anchored to the profile location. This would mean that all of the Dropbox/Google Drive/network share stuff would work as expected. You could also zip a stack with the associated assets and as long as the structure was preserved another user could unzip and use the stack. On Mon, Oct 30, 2017 at 2:12 PM Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > Yes, Brian. So I'm not sure what you're getting at. > > On Mon, Oct 30, 2017 at 3:07 PM, Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > ./ is current directory. ~/ is the user home directory. > > On Mon, Oct 30, 2017 at 2:00 PM Mike Kerner via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > Actually the ~ is a unix convention, so it is also used in Linux. > > > > > > On Mon, Oct 30, 2017 at 2:24 PM, Bob Sneidar via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > > > > > The tilde is a MacOS convention. The period should be universal. ./ > as > > > > opposed to ~/ > > > > > > > > Bob S > > > > > > > > > > > > > On Oct 30, 2017, at 10:48 , Mike Kerner via use-livecode < > > > > use-livecode at lists.runrev.com> wrote: > > > > > > > > > > If you use Backup and Sync (the old "Drive"), your folder is > ~/Google > > > > Drive/ > > > > > If you use Drive Stream and do not map the mount point to an alias > in > > > the > > > > > documents folder, the mount point will be a volume. > > > > > > > > > > Git was not amused when I switched on the one machine. > > > > > > > > > > On Mon, Oct 30, 2017 at 1:39 PM, Sannyasin Brahmanathaswami via > > > > > use-livecode wrote: > > > > > > > > > >> @Mike I tried to duplicate your 3rd case. Are you on Mac OS X? > > > > >> > > > > >> if I create a stack, place and img in an adjacent image folder and > > > move > > > > to > > > > >> the server ("Chola") in the next room? set the img filename to > > > > >> > > > > >> img/tiger.jpg > > > > >> > > > > >> it works @brian ./img/tiger.jpg also works? but really doesn't > get > > us > > > > >> anything? we have to manually enter either way > > > > >> > > > > >> So from terminal if you do "cd /" and you look under Volumes? the > > > > >> DriveFileStream is not there? > > > > >> > > > > >> in this if I do > > > > >> > > > > >> cd /Volumes > > > > >> I will see > > > > >> > > > > >> MyDrive HD > > > > >> Chola > > > > >> BR Back ups (USB for local Time machine backups) > > > > >> > > > > >> But "Chola" is a "network store"? I guess I don?t understand the > > > nature > > > > of > > > > >> the connection/Mount context to Googles Drive File Stream? how > that > > is > > > > >> different? > > > > >> > > > > >> At any rate you do seem to have a different, though obviously > > related > > > > >> issue. > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> On 10/30/17, 6:09 AM, "use-livecode on behalf of Mike Kerner via > > > > >> use-livecode" > > > >> use-livecode at lists.runrev.com> wrote: > > > > >> > > > > >> On "b", I have three machines that I use. Two of them use > > Google's > > > > >> Backup > > > > >> and Sync service, and the other uses Google's Drive File > Stream. > > > So > > > > >> in for > > > > >> two of the machines, the answer is "mostly yes" - the > difference > > is > > > > the > > > > >> username, as the "Drive" folder is in the user folder. For the > > the > > > > >> third, > > > > >> the answer is "no", because in that case, the access is treated > > as > > > a > > > > >> network store, i.e. its own drive. > > > > >> > > > > >> _______________________________________________ > > > > >> use-livecode mailing list > > > > >> use-livecode 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 > > > > > > > > _______________________________________________ > > > > use-livecode mailing list > > > > use-livecode 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 > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 MikeKerner at roadrunner.com Mon Oct 30 15:45:07 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 30 Oct 2017 15:45:07 -0400 Subject: Relative Paths in Property Inspector In-Reply-To: References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <3D29BA5D-B828-4462-95A4-FCEB48AD74CA@hindu.org> <3C72E38F-D089-4543-B467-F121EBA12CB8@iotecdigital.com> Message-ID: One of the cases where it would be nice is the location of the plugins folder ("User Extensions"), which is why I mentioned ~ to begin with. On Mon, Oct 30, 2017 at 3:22 PM, Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > Just clarifying that the two are not interchangeable. From the OP, I don?t > think ~/ links would be used at all. I am not saying that we should include > the ./ but that when discussing relative links for assets that the fixed > point should be the stack location and not something anchored to the > profile location. This would mean that all of the Dropbox/Google > Drive/network share stuff would work as expected. You could also zip a > stack with the associated assets and as long as the structure was preserved > another user could unzip and use the stack. > On Mon, Oct 30, 2017 at 2:12 PM Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Yes, Brian. So I'm not sure what you're getting at. > > > > On Mon, Oct 30, 2017 at 3:07 PM, Brian Milby via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > ./ is current directory. ~/ is the user home directory. > > > On Mon, Oct 30, 2017 at 2:00 PM Mike Kerner via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > > > > > Actually the ~ is a unix convention, so it is also used in Linux. > > > > > > > > On Mon, Oct 30, 2017 at 2:24 PM, Bob Sneidar via use-livecode < > > > > use-livecode at lists.runrev.com> wrote: > > > > > > > > > The tilde is a MacOS convention. The period should be universal. ./ > > as > > > > > opposed to ~/ > > > > > > > > > > Bob S > > > > > > > > > > > > > > > > On Oct 30, 2017, at 10:48 , Mike Kerner via use-livecode < > > > > > use-livecode at lists.runrev.com> wrote: > > > > > > > > > > > > If you use Backup and Sync (the old "Drive"), your folder is > > ~/Google > > > > > Drive/ > > > > > > If you use Drive Stream and do not map the mount point to an > alias > > in > > > > the > > > > > > documents folder, the mount point will be a volume. > > > > > > > > > > > > Git was not amused when I switched on the one machine. > > > > > > > > > > > > On Mon, Oct 30, 2017 at 1:39 PM, Sannyasin Brahmanathaswami via > > > > > > use-livecode wrote: > > > > > > > > > > > >> @Mike I tried to duplicate your 3rd case. Are you on Mac OS X? > > > > > >> > > > > > >> if I create a stack, place and img in an adjacent image folder > and > > > > move > > > > > to > > > > > >> the server ("Chola") in the next room? set the img filename to > > > > > >> > > > > > >> img/tiger.jpg > > > > > >> > > > > > >> it works @brian ./img/tiger.jpg also works? but really doesn't > > get > > > us > > > > > >> anything? we have to manually enter either way > > > > > >> > > > > > >> So from terminal if you do "cd /" and you look under Volumes? > the > > > > > >> DriveFileStream is not there? > > > > > >> > > > > > >> in this if I do > > > > > >> > > > > > >> cd /Volumes > > > > > >> I will see > > > > > >> > > > > > >> MyDrive HD > > > > > >> Chola > > > > > >> BR Back ups (USB for local Time machine backups) > > > > > >> > > > > > >> But "Chola" is a "network store"? I guess I don?t understand the > > > > nature > > > > > of > > > > > >> the connection/Mount context to Googles Drive File Stream? how > > that > > > is > > > > > >> different? > > > > > >> > > > > > >> At any rate you do seem to have a different, though obviously > > > related > > > > > >> issue. > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> On 10/30/17, 6:09 AM, "use-livecode on behalf of Mike Kerner via > > > > > >> use-livecode" of > > > > > >> use-livecode at lists.runrev.com> wrote: > > > > > >> > > > > > >> On "b", I have three machines that I use. Two of them use > > > Google's > > > > > >> Backup > > > > > >> and Sync service, and the other uses Google's Drive File > > Stream. > > > > So > > > > > >> in for > > > > > >> two of the machines, the answer is "mostly yes" - the > > difference > > > is > > > > > the > > > > > >> username, as the "Drive" folder is in the user folder. For > the > > > the > > > > > >> third, > > > > > >> the answer is "no", because in that case, the access is > treated > > > as > > > > a > > > > > >> network store, i.e. its own drive. > > > > > >> > > > > > >> _______________________________________________ > > > > > >> use-livecode mailing list > > > > > >> use-livecode 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 > > > > > > > > > > _______________________________________________ > > > > > use-livecode mailing list > > > > > use-livecode 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 > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode 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 > _______________________________________________ > use-livecode mailing list > use-livecode 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 richmondmathewson at gmail.com Mon Oct 30 16:07:13 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 30 Oct 2017 22:07:13 +0200 Subject: Relative Paths in Property Inspector In-Reply-To: References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <3D29BA5D-B828-4462-95A4-FCEB48AD74CA@hindu.org> <3C72E38F-D089-4543-B467-F121EBA12CB8@iotecdigital.com> Message-ID: http://forums.livecode.com/viewtopic.php?f=6&t=30074 Richmond. From ahsoftware at sonic.net Mon Oct 30 16:11:36 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 30 Oct 2017 13:11:36 -0700 Subject: Relative Paths in Property Inspector In-Reply-To: References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <3D29BA5D-B828-4462-95A4-FCEB48AD74CA@hindu.org> <3C72E38F-D089-4543-B467-F121EBA12CB8@iotecdigital.com> Message-ID: <2f68368e-4d7b-d493-5783-a7cb2dd4c261@sonic.net> On 10/30/2017 12:45 PM, Mike Kerner via use-livecode wrote: > One of the cases where it would be nice is the location of the plugins > folder ("User Extensions"), which is why I mentioned ~ to begin with. A better way to get that would be revEnvironmentUserExtensionsPath() -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Mon Oct 30 16:19:26 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 30 Oct 2017 20:19:26 +0000 Subject: Relative Paths in Property Inspector In-Reply-To: References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <3D29BA5D-B828-4462-95A4-FCEB48AD74CA@hindu.org> <3C72E38F-D089-4543-B467-F121EBA12CB8@iotecdigital.com> Message-ID: <1383139F-3309-4981-BE1C-93F50498BC80@iotecdigital.com> Oh right you are. Bob S From bobsneidar at iotecdigital.com Mon Oct 30 16:20:55 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 30 Oct 2017 20:20:55 +0000 Subject: Relative Paths in Property Inspector In-Reply-To: References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <3D29BA5D-B828-4462-95A4-FCEB48AD74CA@hindu.org> <3C72E38F-D089-4543-B467-F121EBA12CB8@iotecdigital.com> Message-ID: <6BE74ABC-88F2-4BA1-9F5A-D68AEB9B66A8@iotecdigital.com> Oh right my point was that I am not sure the tilde would work in a Windows standalone, but maybe the engine interprets it either way. And yes, the tilde means user home folder sorry for the misinformation. Bob S > On Oct 30, 2017, at 11:58 , Mike Kerner via use-livecode wrote: > > Actually the ~ is a unix convention, so it is also used in Linux. From MikeKerner at roadrunner.com Mon Oct 30 16:20:22 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 30 Oct 2017 16:20:22 -0400 Subject: Relative Paths in Property Inspector In-Reply-To: <2f68368e-4d7b-d493-5783-a7cb2dd4c261@sonic.net> References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <3D29BA5D-B828-4462-95A4-FCEB48AD74CA@hindu.org> <3C72E38F-D089-4543-B467-F121EBA12CB8@iotecdigital.com> <2f68368e-4d7b-d493-5783-a7cb2dd4c261@sonic.net> Message-ID: All I'm trying to "Get" is a simpler way to store the extensions folder on a network/sync so I get the exact same environment on every box. On Mon, Oct 30, 2017 at 4:11 PM, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 10/30/2017 12:45 PM, Mike Kerner via use-livecode wrote: > >> One of the cases where it would be nice is the location of the plugins >> folder ("User Extensions"), which is why I mentioned ~ to begin with. >> > > A better way to get that would be > revEnvironmentUserExtensionsPath() > > -- > Mark Wieder > ahsoftware at gmail.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From jacque at hyperactivesw.com Mon Oct 30 16:51:29 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 30 Oct 2017 15:51:29 -0500 Subject: Relative Paths in Property Inspector In-Reply-To: References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <3D29BA5D-B828-4462-95A4-FCEB48AD74CA@hindu.org> <3C72E38F-D089-4543-B467-F121EBA12CB8@iotecdigital.com> <2f68368e-4d7b-d493-5783-a7cb2dd4c261@sonic.net> Message-ID: <56cfe104-b41b-f043-9050-381870ecff54@hyperactivesw.com> I've got my extensionos folder in Dropbox. All my machines have Dropbox installed and it syncs to all of them. On 10/30/17 3:20 PM, Mike Kerner via use-livecode wrote: > All I'm trying to "Get" is a simpler way to store the extensions folder on > a network/sync so I get the exact same environment on every box. > > On Mon, Oct 30, 2017 at 4:11 PM, Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On 10/30/2017 12:45 PM, Mike Kerner via use-livecode wrote: >> >>> One of the cases where it would be nice is the location of the plugins >>> folder ("User Extensions"), which is why I mentioned ~ to begin with. >>> >> >> A better way to get that would be >> revEnvironmentUserExtensionsPath() >> >> -- >> 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 >> > > > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ahsoftware at sonic.net Mon Oct 30 18:49:50 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 30 Oct 2017 15:49:50 -0700 Subject: Relative Paths in Property Inspector In-Reply-To: <56cfe104-b41b-f043-9050-381870ecff54@hyperactivesw.com> References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <3D29BA5D-B828-4462-95A4-FCEB48AD74CA@hindu.org> <3C72E38F-D089-4543-B467-F121EBA12CB8@iotecdigital.com> <2f68368e-4d7b-d493-5783-a7cb2dd4c261@sonic.net> <56cfe104-b41b-f043-9050-381870ecff54@hyperactivesw.com> Message-ID: <8e34e3f0-d983-170a-d723-14fe1ecec174@sonic.net> On 10/30/2017 01:51 PM, J. Landman Gay via use-livecode wrote: > I've got my extensionos folder in Dropbox. All my machines have Dropbox > installed and it syncs to all of them. > > On 10/30/17 3:20 PM, Mike Kerner via use-livecode wrote: >> All I'm trying to "Get" is a simpler way to store the extensions >> folder on >> a network/sync so I get the exact same environment on every box. Same here. Trick learned from Andre Garzia. +1 for 'extensionos'. -- Mark Wieder ahsoftware at gmail.com From brian at milby7.com Mon Oct 30 21:03:05 2017 From: brian at milby7.com (Brian Milby) Date: Tue, 31 Oct 2017 01:03:05 +0000 Subject: I Hate Full Screen! In-Reply-To: References: <500605C5-C456-4441-B7FF-45EA7FA2D13F@mac.com> Message-ID: I figured out how to disable full screen and replace it with the old zoom, but that isn?t really that much of an improvement. Something in the SDK has changed since the code didn?t change between 7 and 8 (at least the engine code that sets up the window). On Mon, Oct 30, 2017 at 8:38 AM Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > Ya know, it would be neat if you could select fullscreen mode, and then all > the palettes would become part of the border - so maybe on the left would > be tools, on the right would be PI, and if I have other plugins open (think > three palettes for tmc2) they would go left or right depending on need. > > On Sun, Oct 29, 2017 at 11:18 PM, Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Looks like a regression in 8 from 7. Just did a quick test and don?t see > > the issue in 7.1.4 but do in 8/9. > > > > Bug 18213 > > On Sun, Oct 29, 2017 at 9:55 PM Roger Guay via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > Why can?t I set the decorations of a stack to only ?Title? without that > > > damnable green ball coming in every time? > > > > > > LC 8.1.6 and Mac OS 10.13. > > > > > > Thanks, > > > > > > 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 > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 monte at appisle.net Mon Oct 30 21:53:39 2017 From: monte at appisle.net (Monte Goulding) Date: Tue, 31 Oct 2017 12:53:39 +1100 Subject: I Hate Full Screen! In-Reply-To: References: <500605C5-C456-4441-B7FF-45EA7FA2D13F@mac.com> Message-ID: <34D4CC9A-9D12-402D-A292-AF06DF5936B6@appisle.net> > On 31 Oct 2017, at 12:03 pm, Brian Milby via use-livecode wrote: > > I figured out how to disable full screen and replace it with the old zoom, > but that isn?t really that much of an improvement. Something in the SDK has > changed since the code didn?t change between 7 and 8 (at least the engine > code that sets up the window). Yes Apple in their infinite wisdom decided to make the fullscreen widget the default for all windows. Cheers Monte From brian at milby7.com Mon Oct 30 22:07:47 2017 From: brian at milby7.com (Brian Milby) Date: Tue, 31 Oct 2017 02:07:47 +0000 Subject: I Hate Full Screen! In-Reply-To: <34D4CC9A-9D12-402D-A292-AF06DF5936B6@appisle.net> References: <500605C5-C456-4441-B7FF-45EA7FA2D13F@mac.com> <34D4CC9A-9D12-402D-A292-AF06DF5936B6@appisle.net> Message-ID: Worse than that, the green dot is present when the window can be resized. We can revert to zoom behavior, but not just hide the dot unless we disable window resize. On Mon, Oct 30, 2017 at 8:54 PM Monte Goulding via use-livecode < use-livecode at lists.runrev.com> wrote: > > > On 31 Oct 2017, at 12:03 pm, Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I figured out how to disable full screen and replace it with the old > zoom, > > but that isn?t really that much of an improvement. Something in the SDK > has > > changed since the code didn?t change between 7 and 8 (at least the engine > > code that sets up the window). > > Yes Apple in their infinite wisdom decided to make the fullscreen widget > the default for all windows. > > 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 capellan2000 at gmail.com Mon Oct 30 22:54:45 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 30 Oct 2017 21:54:45 -0500 Subject: The Shrinking size of animated gif Message-ID: Hi All, Could you verify if always that we convert an animaated gif in a series of png images the resulting images are always smaller than the original animated gif? Here is the recipe: 1) Create a new stack 2) create a button and paste this script into the button: (check for broken lines in the mail list server) ---------------------------------------------------------------- on mouseUp -- first, delete all previous images repeat with i = the number of controls of this card down to 1 if word 1 of the long name of control i of this card is "image" then delete control i of this card end repeat answer file "Choose an animated gif..." import paint from file it try put the framecount of img 1 into k repeat with m = 1 to k set the currentframe of img 1 to m create image set the width of it to the width of img 1 set the height of it to the height of img 1 set the imagedata of it to the imagedata of img 1 set the alphadata of it to the alphadata of img 1 end repeat repeat with i = 1 to the number of controls of this card put the long name of control i of this card into q if word 1 of q is "image" then put the size of q & comma after n end if end repeat delete last char of n -- a comma put item 1 of n into tAnimatedGifSize delete item 1 of n put sum(n) into tPngImagesSize if tAnimatedGifSize > tPngImagesSize then put "Animated gif is " & (tAnimatedGifSize - tPngImagesSize) & " bytes larger than png images" else -- sum of sizes of png images is larger -- than size of animated gif put "Png images are " & (tPngImagesSize - tAnimatedGifSize) & " bytes larger than animated gif" end if end try end mouseUp ---------------------------------------------------------------- 3) Click the button and import an animated gif Post your results in this thread, Thanks a lot in advance! Al From MikeKerner at roadrunner.com Mon Oct 30 22:55:25 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 30 Oct 2017 22:55:25 -0400 Subject: Relative Paths in Property Inspector In-Reply-To: <8e34e3f0-d983-170a-d723-14fe1ecec174@sonic.net> References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <3D29BA5D-B828-4462-95A4-FCEB48AD74CA@hindu.org> <3C72E38F-D089-4543-B467-F121EBA12CB8@iotecdigital.com> <2f68368e-4d7b-d493-5783-a7cb2dd4c261@sonic.net> <56cfe104-b41b-f043-9050-381870ecff54@hyperactivesw.com> <8e34e3f0-d983-170a-d723-14fe1ecec174@sonic.net> Message-ID: So what do you have for your paths? Are your usernames the same? For me, I run into the issue because my usernames aren't the same on every box, so the absolute path varies. On Mon, Oct 30, 2017 at 6:49 PM, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 10/30/2017 01:51 PM, J. Landman Gay via use-livecode wrote: > >> I've got my extensionos folder in Dropbox. All my machines have Dropbox >> installed and it syncs to all of them. >> >> On 10/30/17 3:20 PM, Mike Kerner via use-livecode wrote: >> >>> All I'm trying to "Get" is a simpler way to store the extensions folder >>> on >>> a network/sync so I get the exact same environment on every box. >>> >> > Same here. Trick learned from Andre Garzia. > > +1 for 'extensionos'. > > > -- > Mark Wieder > ahsoftware at gmail.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From jacque at hyperactivesw.com Mon Oct 30 23:19:43 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 30 Oct 2017 22:19:43 -0500 Subject: Relative Paths in Property Inspector In-Reply-To: References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <3D29BA5D-B828-4462-95A4-FCEB48AD74CA@hindu.org> <3C72E38F-D089-4543-B467-F121EBA12CB8@iotecdigital.com> <2f68368e-4d7b-d493-5783-a7cb2dd4c261@sonic.net> <56cfe104-b41b-f043-9050-381870ecff54@hyperactivesw.com> <8e34e3f0-d983-170a-d723-14fe1ecec174@sonic.net> Message-ID: <2d197d17-44e2-9a70-08d8-4f72b446b99f@hyperactivesw.com> I have different user names on each machine too. Just set the appropriate path in the LC prefs on each machine. You only have to do it once, and going forward it just works for any other LC versions you install since all versions on a machine share the same prefs file. On 10/30/17 9:55 PM, Mike Kerner via use-livecode wrote: > So what do you have for your paths? Are your usernames the same? For me, > I run into the issue because my usernames aren't the same on every box, so > the absolute path varies. > > On Mon, Oct 30, 2017 at 6:49 PM, Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On 10/30/2017 01:51 PM, J. Landman Gay via use-livecode wrote: >> >>> I've got my extensionos folder in Dropbox. All my machines have Dropbox >>> installed and it syncs to all of them. >>> >>> On 10/30/17 3:20 PM, Mike Kerner via use-livecode wrote: >>> >>>> All I'm trying to "Get" is a simpler way to store the extensions folder >>>> on >>>> a network/sync so I get the exact same environment on every box. >>>> >>> >> Same here. Trick learned from Andre Garzia. >> >> +1 for 'extensionos'. >> >> >> -- >> 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 >> > > > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From irog at mac.com Mon Oct 30 23:22:38 2017 From: irog at mac.com (Roger Guay) Date: Mon, 30 Oct 2017 20:22:38 -0700 Subject: The Shrinking size of animated gif In-Reply-To: References: Message-ID: <3E6D8701-D665-450E-B6AA-43409DD350AF@mac.com> I get "Png images are 130036bytes larger than animated gif? HTH, Roger > On Oct 30, 2017, at 7:54 PM, Alejandro Tejada via use-livecode wrote: > > Could you verify if always that we convert > an animaated gif in a series of png images > the resulting images are always smaller > than the original animated gif? From richmondmathewson at gmail.com Tue Oct 31 06:07:41 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 31 Oct 2017 12:07:41 +0200 Subject: The Shrinking size of animated gif In-Reply-To: References: Message-ID: <6da804b9-9072-ba50-5eaf-82249583998e@gmail.com> I'll "have a bash at this" tonight: currently in my lunch break. HOWEVER . . . I ALWAYS decompose an animated GIF into constituent frames (which I then export on PNG format) using GIMP . . . OK, it's long and tedious, but at least I have a considerable amount of control over the process. Richmond. On 10/31/17 4:54 am, Alejandro Tejada via use-livecode wrote: > Hi All, > > Could you verify if always that we convert > an animaated gif in a series of png images > the resulting images are always smaller > than the original animated gif? > > Here is the recipe: > > 1) Create a new stack > > 2) create a button and paste this script > into the button: (check for broken lines > in the mail list server) > > ---------------------------------------------------------------- > on mouseUp > > -- first, delete all previous images > repeat with i = the number of controls of this card down to 1 > if word 1 of the long name of control i of this card is "image" then > delete control i of this card > end repeat > > answer file "Choose an animated gif..." > import paint from file it > try > put the framecount of img 1 into k > repeat with m = 1 to k > set the currentframe of img 1 to m > create image > set the width of it to the width of img 1 > set the height of it to the height of img 1 > set the imagedata of it to the imagedata of img 1 > set the alphadata of it to the alphadata of img 1 > end repeat > > repeat with i = 1 to the number of controls of this card > put the long name of control i of this card into q > if word 1 of q is "image" then > put the size of q & comma after n > end if > end repeat > > delete last char of n -- a comma > put item 1 of n into tAnimatedGifSize > delete item 1 of n > put sum(n) into tPngImagesSize > > if tAnimatedGifSize > tPngImagesSize then > put "Animated gif is " & (tAnimatedGifSize - tPngImagesSize) & " > bytes larger than png images" > else > -- sum of sizes of png images is larger > -- than size of animated gif > put "Png images are " & (tPngImagesSize - tAnimatedGifSize) & " > bytes larger than animated gif" > end if > end try > end mouseUp > > ---------------------------------------------------------------- > > 3) Click the button and import an animated gif > > Post your results in this thread, > Thanks a lot in advance! > > Al > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From preid at reidit.co.uk Tue Oct 31 06:15:34 2017 From: preid at reidit.co.uk (Peter Reid) Date: Tue, 31 Oct 2017 10:15:34 +0000 Subject: Remote Debugger Frustrations Message-ID: <3A6DEFAF-5C83-45AC-BE9F-C02BBB8D2D57@reidit.co.uk> How are people getting on with the remote debugger facility? I'm finding it very useful but also frustrating for the following reasons: 1. It's SLOW. I'm running LC 9 on an iMac with a 4GHz quad i7 processor and 24GB RAM connected by USB to an Amazon Fire 7 tablet, yet each step through the script in the debugger takes several seconds. 2. It's difficult to stop to make changes. Clicking the stop debugging button often doesn't work or takes a long time to react and even when apparently stopped it's still making everything slow. 3. Often it steps through the script as it was just before the latest change, i.e. it doesn't take into account the latest script edits. 4. It can be difficult to change break points during remote debugging. 5. The only way that guarantees a clean run is to quit LC and start again. 6. A partial reset can be achieved by the following: a. having clicked 'stop debugging'... b. open & close Standalone Application Settings c. click Test, which prompts for Save d. click Save and the remote build & install starts e. however, the above doesn't always recognise script changes. I find the Remote Debugger to be very helpful. BUT, if only there was a quick reliable way of stopping, editing the script and continuing/restarting. Currently the run-check-edit-rerun cycle is far too slow and error prone using the remote debugger. Any thoughts or advice from other users of the Remote Debugger? Peter -- Peter Reid Loughborough, UK From MikeKerner at roadrunner.com Tue Oct 31 06:20:07 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 31 Oct 2017 06:20:07 -0400 Subject: Relative Paths in Property Inspector In-Reply-To: <2d197d17-44e2-9a70-08d8-4f72b446b99f@hyperactivesw.com> References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <3D29BA5D-B828-4462-95A4-FCEB48AD74CA@hindu.org> <3C72E38F-D089-4543-B467-F121EBA12CB8@iotecdigital.com> <2f68368e-4d7b-d493-5783-a7cb2dd4c261@sonic.net> <56cfe104-b41b-f043-9050-381870ecff54@hyperactivesw.com> <8e34e3f0-d983-170a-d723-14fe1ecec174@sonic.net> <2d197d17-44e2-9a70-08d8-4f72b446b99f@hyperactivesw.com> Message-ID: Hmm. I wonder why I've run into trouble with this. Now I don't remember. On Mon, Oct 30, 2017 at 11:19 PM, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > I have different user names on each machine too. Just set the appropriate > path in the LC prefs on each machine. You only have to do it once, and > going forward it just works for any other LC versions you install since all > versions on a machine share the same prefs file. > > > On 10/30/17 9:55 PM, Mike Kerner via use-livecode wrote: > >> So what do you have for your paths? Are your usernames the same? For me, >> I run into the issue because my usernames aren't the same on every box, so >> the absolute path varies. >> >> On Mon, Oct 30, 2017 at 6:49 PM, Mark Wieder via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> On 10/30/2017 01:51 PM, J. Landman Gay via use-livecode wrote: >>> >>> I've got my extensionos folder in Dropbox. All my machines have Dropbox >>>> installed and it syncs to all of them. >>>> >>>> On 10/30/17 3:20 PM, Mike Kerner via use-livecode wrote: >>>> >>>> All I'm trying to "Get" is a simpler way to store the extensions folder >>>>> on >>>>> a network/sync so I get the exact same environment on every box. >>>>> >>>>> >>>> Same here. Trick learned from Andre Garzia. >>> >>> +1 for 'extensionos'. >>> >>> >>> -- >>> 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 >>> >>> >> >> >> > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From benr_mc at cogapp.com Tue Oct 31 06:40:27 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 31 Oct 2017 10:40:27 +0000 Subject: Strange permissions issues calling 'shell' in Windows Message-ID: <82870e28-2e64-9ede-7b46-1d46340b2c5c@cogapp.com> I have an app in LC, which normally runs as a nightly scheduled task on a VM in the client's network. It's been having memory problems, and to help diagnose this I wanted to track memory usage through the job and over time (it runs every night, takes about 40 minutes crunching lots of data, and emails me a log after each run). Unfortunately LC doesn't have any reliable ways to inspect its memory usage, so I've been trying to use a combination of an LC function that estimates the size of all global variables, with a shell call to the 'pslist' sysinternal tool. Run 'live', this works fine. But when run as a scheduled task, logged out of the machine, instead of the expected process information the result of the shell call was Failed to take process snapshot on ORGAPP01. Make sure that the Remote Registry service is running on the remote system, that you have firewall ports allow RPC access, and your account has read access the following key on the remote system: HKLM\Software\Microsoft\Windows NT\CurrentVersion\Perflib I don't have that kind of access (nor the Windows knowledge to use it safely if I did!) so I appealed to the client's IT dept, who said some words I didn't understand to the affect that it should work. When I said again that it worked logged-in, but not as a scheduled task, they asked for details of the batch file; so I thought the simplest thing would be to set up a simple batch file to demonstrate the issue. I made a batch file to invoke pslist and put the result in a text file; it worked. Then I made a scheduled task to invoke this batch file, expecting it to fail with the above issue thus proving my point and giving the IT guy a test case to work with - but in fact when the scheduled task ran, the output from pslist was perfectly good. So then I thought that this was a work-around: instead of my app using shell to invoke pslist and then log the result of the shell call; it could instead use shell to invoke the batch file, and then read back and log the contents of the output file generated by the batch file. So I made the change in the app, moved it over, ran it with the expected and desired result; logged out and waited. This morning however I got the same error message as before in the log. So the situation is: 1) logged-in app uses shell to call pslist: OK 2) not logged-in app uses shell to call pslist: permissions error 3) logged-in batch file calls pslist: OK 4) not logged-in batch file calls pslist: OK 5) not logged-in app uses shell to call batch file which calls pslist: permissions error If step (4) produced a permissions error, I'd be sort-of happy. If step (5) worked, I'd be even happier. But it's the distinction between (4) and (5) that puzzles me. Is there some way that calling 'shell' enters a context with less permission than the app which calls it? And is there something I can do about this? TIA, Ben From christer at mindcrea.com Tue Oct 31 09:09:16 2017 From: christer at mindcrea.com (=?utf-8?Q?Pyyhti=C3=A4_Christer?=) Date: Tue, 31 Oct 2017 15:09:16 +0200 Subject: Go card "xyz" Message-ID: When in a script you issue a command go card "xyz" does the next command line of the script get into execution before the "go" has been completed? Is it comparable to the "move" command, where this is true, with the additional statement "without waiting"? Is it possible to find a delay in the "go" command if you for example go from card 2 to card 28 and there are many objects in the cards in between? The fact is that the behaviour varies, same code at different times in some cases looks like an action is tried to be done for the card going out. Christer Pyyhti? christer at mindcrea.com From dunbarx at aol.com Tue Oct 31 09:26:48 2017 From: dunbarx at aol.com (dunbarx) Date: Tue, 31 Oct 2017 06:26:48 -0700 (MST) Subject: Go card "xyz" In-Reply-To: References: Message-ID: <1509456408463-0.post@n4.nabble.com> If you have a button on a stack with: on mouseUp go stack "otherStack" answer "XYZ" end mouseUp and in the stack script of that other stack: on resumeStack answer "ABC" end resumeStack The "ABC" appears before the "XYZ". Is that what you meant? Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From bobsneidar at iotecdigital.com Tue Oct 31 10:45:26 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 31 Oct 2017 14:45:26 +0000 Subject: I Hate Full Screen! In-Reply-To: References: <500605C5-C456-4441-B7FF-45EA7FA2D13F@mac.com> Message-ID: <0D7A9F9D-9A79-460C-A847-0482A8A80E1C@iotecdigital.com> If you option-click the zoom on a Mac, it uses the old zoom where the menus are still visible. Bob S > On Oct 30, 2017, at 18:03 , Brian Milby via use-livecode wrote: > > I figured out how to disable full screen and replace it with the old zoom, > but that isn?t really that much of an improvement. Something in the SDK has > changed since the code didn?t change between 7 and 8 (at least the engine > code that sets up the window). From bobsneidar at iotecdigital.com Tue Oct 31 10:57:03 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 31 Oct 2017 14:57:03 +0000 Subject: Strange permissions issues calling 'shell' in Windows In-Reply-To: <82870e28-2e64-9ede-7b46-1d46340b2c5c@cogapp.com> References: <82870e28-2e64-9ede-7b46-1d46340b2c5c@cogapp.com> Message-ID: The first thing that comes to my mind is, where are you putting the log file? If you are using a specialfolderpath that only has a context when logged in, then that might be an issue. As far as the firewall goes, unless you or your IT team has intentionally blocked RPC traffic, it should have an exception by default, as a lot of things use this service. Now if you are logged off, I am not sure what account is being used to access the registry (and am not sure why it's accessing it or why you would want to in the first place). Bob S > On Oct 31, 2017, at 03:40 , Ben Rubinstein via use-livecode wrote: > > I have an app in LC, which normally runs as a nightly scheduled task on a VM in the client's network. > > It's been having memory problems, and to help diagnose this I wanted to track memory usage through the job and over time (it runs every night, takes about 40 minutes crunching lots of data, and emails me a log after each run). > > Unfortunately LC doesn't have any reliable ways to inspect its memory usage, so I've been trying to use a combination of an LC function that estimates the size of all global variables, with a shell call to the 'pslist' sysinternal tool. > > Run 'live', this works fine. But when run as a scheduled task, logged out of the machine, instead of the expected process information the result of the shell call was > Failed to take process snapshot on ORGAPP01. > Make sure that the Remote Registry service is running on the remote > system, that you have firewall ports allow RPC access, and your > account has read access the following key on the remote system: > HKLM\Software\Microsoft\Windows NT\CurrentVersion\Perflib > > I don't have that kind of access (nor the Windows knowledge to use it safely if I did!) so I appealed to the client's IT dept, who said some words I didn't understand to the affect that it should work. When I said again that it worked logged-in, but not as a scheduled task, they asked for details of the batch file; so I thought the simplest thing would be to set up a simple batch file to demonstrate the issue. > > I made a batch file to invoke pslist and put the result in a text file; it worked. Then I made a scheduled task to invoke this batch file, expecting it to fail with the above issue thus proving my point and giving the IT guy a test case to work with - but in fact when the scheduled task ran, the output from pslist was perfectly good. > > So then I thought that this was a work-around: instead of my app using shell to invoke pslist and then log the result of the shell call; it could instead use shell to invoke the batch file, and then read back and log the contents of the output file generated by the batch file. > > So I made the change in the app, moved it over, ran it with the expected and desired result; logged out and waited. > > This morning however I got the same error message as before in the log. > > So the situation is: > 1) logged-in app uses shell to call pslist: OK > 2) not logged-in app uses shell to call pslist: permissions error > 3) logged-in batch file calls pslist: OK > 4) not logged-in batch file calls pslist: OK > 5) not logged-in app uses shell to call batch file which calls pslist: permissions error > > > If step (4) produced a permissions error, I'd be sort-of happy. If step (5) worked, I'd be even happier. But it's the distinction between (4) and (5) that puzzles me. > > Is there some way that calling 'shell' enters a context with less permission than the app which calls it? And is there something I can do about this? > > TIA, > > Ben > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 31 11:17:33 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 31 Oct 2017 08:17:33 -0700 Subject: Relative Paths in Property Inspector In-Reply-To: References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <3D29BA5D-B828-4462-95A4-FCEB48AD74CA@hindu.org> <3C72E38F-D089-4543-B467-F121EBA12CB8@iotecdigital.com> <2f68368e-4d7b-d493-5783-a7cb2dd4c261@sonic.net> <56cfe104-b41b-f043-9050-381870ecff54@hyperactivesw.com> <8e34e3f0-d983-170a-d723-14fe1ecec174@sonic.net> Message-ID: On 10/30/2017 07:55 PM, Mike Kerner via use-livecode wrote: > So what do you have for your paths? Are your usernames the same? For me, > I run into the issue because my usernames aren't the same on every box, so > the absolute path varies. Are you referring to the *dropbox* usernames being different? If that's the case, you can share a folder between dropbox users and still use a common repository. -- Mark Wieder ahsoftware at gmail.com From benr_mc at cogapp.com Tue Oct 31 11:48:58 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 31 Oct 2017 15:48:58 +0000 Subject: Strange permissions issues calling 'shell' in Windows In-Reply-To: References: <82870e28-2e64-9ede-7b46-1d46340b2c5c@cogapp.com> Message-ID: Hi Bob, Thanks for taking the trouble to consider this. > The first thing that comes to my mind is, where are you putting the log > file? If you are using a specialfolderpath that only has a context when > logged in, then that might be an issue. It isn't that, the file is being created, the output from pslist.exe is being written to it - but the output is the report from pslist.exe saying that it didn't have permission. > Now if you are logged off, I am not sure what account is being used to > access the registry (and am not sure why it's accessing it or why you would > want to in the first place). The scheduled task is set to use the same account as I use to log in. I thought that the issue was the difference between being logged in as this account, and the task running with the same account. But it isn't (just) that, because when I made the scheduled task a batch script to run the command, it worked. So there is an additional difference imposed by using an LC app using 'shell' to run the command, rather than using a batch script. Both work fine when logged in; only one when it is a scheduled task. The command works fine invoked from a batch script which itself is run as a scheduled task. But the command reports the permission problem when it is invoked from the app running as a scheduled task. Ben On 31/10/2017 14:57, Bob Sneidar via use-livecode wrote: > The first thing that comes to my mind is, where are you putting the log file? If you are using a specialfolderpath that only has a context when logged in, then that might be an issue. As far as the firewall goes, unless you or your IT team has intentionally blocked RPC traffic, it should have an exception by default, as a lot of things use this service. Now if you are logged off, I am not sure what account is being used to access the registry (and am not sure why it's accessing it or why you would want to in the first place). > > Bob S > > >> On Oct 31, 2017, at 03:40 , Ben Rubinstein via use-livecode wrote: >> >> I have an app in LC, which normally runs as a nightly scheduled task on a VM in the client's network. >> >> It's been having memory problems, and to help diagnose this I wanted to track memory usage through the job and over time (it runs every night, takes about 40 minutes crunching lots of data, and emails me a log after each run). >> >> Unfortunately LC doesn't have any reliable ways to inspect its memory usage, so I've been trying to use a combination of an LC function that estimates the size of all global variables, with a shell call to the 'pslist' sysinternal tool. >> >> Run 'live', this works fine. But when run as a scheduled task, logged out of the machine, instead of the expected process information the result of the shell call was >> Failed to take process snapshot on ORGAPP01. >> Make sure that the Remote Registry service is running on the remote >> system, that you have firewall ports allow RPC access, and your >> account has read access the following key on the remote system: >> HKLM\Software\Microsoft\Windows NT\CurrentVersion\Perflib >> >> I don't have that kind of access (nor the Windows knowledge to use it safely if I did!) so I appealed to the client's IT dept, who said some words I didn't understand to the affect that it should work. When I said again that it worked logged-in, but not as a scheduled task, they asked for details of the batch file; so I thought the simplest thing would be to set up a simple batch file to demonstrate the issue. >> >> I made a batch file to invoke pslist and put the result in a text file; it worked. Then I made a scheduled task to invoke this batch file, expecting it to fail with the above issue thus proving my point and giving the IT guy a test case to work with - but in fact when the scheduled task ran, the output from pslist was perfectly good. >> >> So then I thought that this was a work-around: instead of my app using shell to invoke pslist and then log the result of the shell call; it could instead use shell to invoke the batch file, and then read back and log the contents of the output file generated by the batch file. >> >> So I made the change in the app, moved it over, ran it with the expected and desired result; logged out and waited. >> >> This morning however I got the same error message as before in the log. >> >> So the situation is: >> 1) logged-in app uses shell to call pslist: OK >> 2) not logged-in app uses shell to call pslist: permissions error >> 3) logged-in batch file calls pslist: OK >> 4) not logged-in batch file calls pslist: OK >> 5) not logged-in app uses shell to call batch file which calls pslist: permissions error >> >> >> If step (4) produced a permissions error, I'd be sort-of happy. If step (5) worked, I'd be even happier. But it's the distinction between (4) and (5) that puzzles me. >> >> Is there some way that calling 'shell' enters a context with less permission than the app which calls it? And is there something I can do about this? >> >> TIA, >> >> Ben >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 31 12:23:57 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 31 Oct 2017 16:23:57 +0000 Subject: Strange permissions issues calling 'shell' in Windows In-Reply-To: References: <82870e28-2e64-9ede-7b46-1d46340b2c5c@cogapp.com> Message-ID: <6409C7C4-0910-4250-88E1-B7B3AD0C842D@iotecdigital.com> Windows 10? Bob S From bonnmike at gmail.com Tue Oct 31 12:32:57 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 31 Oct 2017 10:32:57 -0600 Subject: Strange permissions issues calling 'shell' in Windows In-Reply-To: <6409C7C4-0910-4250-88E1-B7B3AD0C842D@iotecdigital.com> References: <82870e28-2e64-9ede-7b46-1d46340b2c5c@cogapp.com> <6409C7C4-0910-4250-88E1-B7B3AD0C842D@iotecdigital.com> Message-ID: i'm on 10, no clue what earlier versions would look like. On Tue, Oct 31, 2017 at 10:23 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Windows 10? > > 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 Tue Oct 31 12:35:06 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 31 Oct 2017 10:35:06 -0600 Subject: Strange permissions issues calling 'shell' in Windows In-Reply-To: References: <82870e28-2e64-9ede-7b46-1d46340b2c5c@cogapp.com> <6409C7C4-0910-4250-88E1-B7B3AD0C842D@iotecdigital.com> Message-ID: nvm my response, my earlier message poofed due to size. *sigh* here goes again... one thing you might try is to look at the properties for the scheduled job. You obviously have it set to "run whether user is logged in or not" but i'm wondering if "do not store password" box is checked. If it is, might test with it unchecked. there is also a box for "use highest permissions" that you might try if the first idea fails. disclaimer: I have no idea how this would affect machine security. Also, there is a button that allows you to change user or group, I don't know how to do so, but if you can give a group permission to run pslist, and then set the task to that group, that might be a way also. Here is the screen i'm looking at for all this... https://www.dropbox.com/s/0chbhqcn8hi4cu1/image%20%281%29.png?dl=0 On Tue, Oct 31, 2017 at 10:32 AM, Mike Bonner wrote: > i'm on 10, no clue what earlier versions would look like. > > On Tue, Oct 31, 2017 at 10:23 AM, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Windows 10? >> >> 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 Oct 31 12:57:13 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 31 Oct 2017 12:57:13 -0400 Subject: Relative Paths in Property Inspector In-Reply-To: References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <3D29BA5D-B828-4462-95A4-FCEB48AD74CA@hindu.org> <3C72E38F-D089-4543-B467-F121EBA12CB8@iotecdigital.com> <2f68368e-4d7b-d493-5783-a7cb2dd4c261@sonic.net> <56cfe104-b41b-f043-9050-381870ecff54@hyperactivesw.com> <8e34e3f0-d983-170a-d723-14fe1ecec174@sonic.net> Message-ID: no I'm referring to the usernames on the machine. I'm using google drive (backup and sync and file stream). I use dropbox for app data storage and transfer. On Tue, Oct 31, 2017 at 11:17 AM, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 10/30/2017 07:55 PM, Mike Kerner via use-livecode wrote: > >> So what do you have for your paths? Are your usernames the same? For me, >> I run into the issue because my usernames aren't the same on every box, so >> the absolute path varies. >> > > Are you referring to the *dropbox* usernames being different? If that's > the case, you can share a folder between dropbox users and still use a > common repository. > > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From irog at mac.com Tue Oct 31 13:08:30 2017 From: irog at mac.com (Roger Guay) Date: Tue, 31 Oct 2017 10:08:30 -0700 Subject: I Hate Full Screen! In-Reply-To: <0D7A9F9D-9A79-460C-A847-0482A8A80E1C@iotecdigital.com> References: <500605C5-C456-4441-B7FF-45EA7FA2D13F@mac.com> <0D7A9F9D-9A79-460C-A847-0482A8A80E1C@iotecdigital.com> Message-ID: <3521983C-36B3-4E5A-961C-D197F6514C73@mac.com> Well, that helps but I still hate Full Screen! > On Oct 31, 2017, at 7:45 AM, Bob Sneidar via use-livecode wrote: > > If you option-click the zoom on a Mac, it uses the old zoom where the menus are still visible. > > Bob S > > >> On Oct 30, 2017, at 18:03 , Brian Milby via use-livecode wrote: >> >> I figured out how to disable full screen and replace it with the old zoom, >> but that isn?t really that much of an improvement. Something in the SDK has >> changed since the code didn?t change between 7 and 8 (at least the engine >> code that sets up the window). > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 31 13:28:03 2017 From: brian at milby7.com (Brian Milby) Date: Tue, 31 Oct 2017 17:28:03 +0000 Subject: I Hate Full Screen! In-Reply-To: <3521983C-36B3-4E5A-961C-D197F6514C73@mac.com> References: <500605C5-C456-4441-B7FF-45EA7FA2D13F@mac.com> <0D7A9F9D-9A79-460C-A847-0482A8A80E1C@iotecdigital.com> <3521983C-36B3-4E5A-961C-D197F6514C73@mac.com> Message-ID: And I?m guessing that you do want to allow the stack to be manually resized (since turning that off will hide the green button). On Tue, Oct 31, 2017 at 12:08 PM Roger Guay via use-livecode < use-livecode at lists.runrev.com> wrote: > Well, that helps but I still hate Full Screen! > > > > > On Oct 31, 2017, at 7:45 AM, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > If you option-click the zoom on a Mac, it uses the old zoom where the > menus are still visible. > > > > Bob S > > > > > >> On Oct 30, 2017, at 18:03 , Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> I figured out how to disable full screen and replace it with the old > zoom, > >> but that isn?t really that much of an improvement. Something in the SDK > has > >> changed since the code didn?t change between 7 and 8 (at least the > engine > >> code that sets up the window). > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Oct 31 13:51:41 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 31 Oct 2017 17:51:41 +0000 Subject: Go card "xyz" In-Reply-To: References: Message-ID: <29168A72-B27E-43E2-9C77-BC5C8712D980@iotecdigital.com> When you go to another card, lots of things happen before and after the go. By way of example, Closecard gets sent to the curent card, but before that close field gets sent to any field that you are in that has been edited, etc. Before the card opens, it gets a preOpenCard. So don't think that by going to a card, that command gets executed first, then all the other stuff happens. That isn't how it works. The best way to tell what is going on is to turn on message watching, then set a breakpoint right at the first and then step through every line of code. Then you can review the message watcher and you can see all kinds of messages are flying around that you were unaware of. Bob S > On Oct 31, 2017, at 06:09 , Pyyhti? Christer via use-livecode wrote: > > When in a script you issue a command > > go card "xyz" > > does the next command line of the script get into execution before the "go" has been completed? > > Is it comparable to the "move" command, where this is true, with the additional statement "without waiting"? > > Is it possible to find a delay in the "go" command if you for example go from card 2 to card 28 and there are many objects in the cards in between? > > The fact is that the behaviour varies, same code at different times in some cases looks like an action is tried to be done for the card going out. > > > Christer Pyyhti? > christer at mindcrea.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 Tue Oct 31 14:43:35 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 31 Oct 2017 13:43:35 -0500 Subject: Relative Paths in Property Inspector In-Reply-To: References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <3C72E38F-D089-4543-B467-F121EBA12CB8@iotecdigital.com> <2f68368e-4d7b-d493-5783-a7cb2dd4c261@sonic.net> <56cfe104-b41b-f043-9050-381870ecff54@hyperactivesw.com> <8e34e3f0-d983-170a-d723-14fe1ecec174@sonic.net> Message-ID: On 10/31/17 11:57 AM, Mike Kerner via use-livecode wrote: > no I'm referring to the usernames on the machine. I'm using google drive > (backup and sync and file stream). I use dropbox for app data storage and > transfer. Here is my setup: I created a folder in Dropbox named "Application Support". I put the LC folder in there as well as BBEdit's preferences and a few other things I want to share among machines. On Mac #1, the path in the LC prefs is: /Users/Username1/Dropbox/Application Support/My LiveCode Mac #2: /Users/username2/Dropbox/Application Support/My LiveCode And so forth. Dropbox keeps the folders in sync and because it's a local folder on each drive, LC has no problem accessing it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Oct 31 14:46:32 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 31 Oct 2017 13:46:32 -0500 Subject: Remote Debugger Frustrations In-Reply-To: <3A6DEFAF-5C83-45AC-BE9F-C02BBB8D2D57@reidit.co.uk> References: <3A6DEFAF-5C83-45AC-BE9F-C02BBB8D2D57@reidit.co.uk> Message-ID: <2e6b404a-7778-83f6-0736-343a053ed493@hyperactivesw.com> On 10/31/17 5:15 AM, Peter Reid via use-livecode wrote: > 3. Often it steps through the script as it was just before the latest change, i.e. it doesn't take into account the latest script edits. > > 4. It can be difficult to change break points during remote debugging. You need to recompile/rebuild the app every time you make a change. Built apps can't be modified, and that includes the location of the breakpoints. That does slow down debuging because you can't move or create breakpoints without doing a rebuild, and the scripts are of course permanent until the app is recreated. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Tue Oct 31 15:19:52 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 31 Oct 2017 12:19:52 -0700 Subject: Go card "xyz" In-Reply-To: <29168A72-B27E-43E2-9C77-BC5C8712D980@iotecdigital.com> References: <29168A72-B27E-43E2-9C77-BC5C8712D980@iotecdigital.com> Message-ID: <1869cc78-1e47-2653-d997-2b950dc8a2d8@fourthworld.com> Bob Sneidar wrote: > The best way to tell what is going on is to turn on message watching Agreed, and if you find LC's Message Watcher as unwieldy as I do you may enjoy this more flexible, tailorable tool that produces more readable and useful logs of messages during execution: -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dunbarx at aol.com Tue Oct 31 15:36:14 2017 From: dunbarx at aol.com (dunbarx) Date: Tue, 31 Oct 2017 12:36:14 -0700 (MST) Subject: Go card "xyz" In-Reply-To: <29168A72-B27E-43E2-9C77-BC5C8712D980@iotecdigital.com> References: <29168A72-B27E-43E2-9C77-BC5C8712D980@iotecdigital.com> Message-ID: <1509478574579-0.post@n4.nabble.com> "When you go to another card, lots of things happen before and after the go... What Bob said. I assumed you knew that lots of messages are generated in the case you described, all the comings and goings, and were only asking about the order of events between the two lines of code in the initial handler, the one that sent you off, and the next line. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From christer at mindcrea.com Tue Oct 31 16:18:06 2017 From: christer at mindcrea.com (=?utf-8?Q?Pyyhti=C3=A4_Christer?=) Date: Tue, 31 Oct 2017 22:18:06 +0200 Subject: Go card "xyz" Message-ID: <12789E9E-793F-4518-AA42-6080CFD36005@mindcrea.com> Thank you for a good set of answers! Now, here is the question asked, the heck I could not express it correctly the first time: "When in a script you issue a command go card "xyz" does the next command line of the script get into execution before the "go" has been completed? Is it comparable to the "move" command, where this is true, with the additional statement "without waiting"? Is it possible to find a delay in the "go" command if you for example go from card 2 to card 28 and there are many objects in the cards in between? The fact is that the behaviour varies, same code at different times in some cases looks like an action is tried to be done for the card going out." - I should have added that in the development / IDE environmen,t yes it behaves as nicely as Jeremy Clarkson - no, much more nicely. But. But this is the question of LC (8.1.7) running in the target device (good old Samsung Galaxy S4 with 1.6GHz octa-core CPU (still beats some of the devices, which have come out after it)). There isn't really a chance of debugging in real time how the sequences of messages vs the code execution will sequence / synch. If I add any commands on-top-of-real-time-execution to debug or ask to process logging message timings the real-time execution does not really exist any more. The question really is looking into the device execution environment. The interpretation is that if a 'go to card "xyz"' is issued, it seems to be that the execution continues before all these messages closing the card & objects and opening the new card takes place, and possible references to the expected new card are causing a stop of execution of the handler asking for the go and shoveling new commands into the CPUs.. Thus, my interpretation is that the guiding how to code with LiveCode (or any other event-driven middleware) is missing a key point. There are the following possibilities to manage the problem. 1. wait x ticks / milliSeconds after the go card command; the problem is that if you target to devices, you need to be able to measure what is the best value or your app misbehaves or is a laggard; somewhat ? ... 2. LC to enhance the "go card" with something like "wait until done"; does not sound right, either; 3. Instead of in a handler issuing 'go card "xyz"' use 'send "go card xyz of this stack" (probably need to do it by building a do statement) and put any action behind that new card script handler "openCard", which initiates any action you want to perform with any objects on that card. This is probably the safest path. Also, with such a way you would avoid the continuous path of handlers chained by continuous handler calls, and break the chain of returns handler by handler. Is there any sense behind this thinking? Christer Pyyhti? MindCrea Ltd Mobile: +358-400-410216 Skype: christerp1 christer at mindcrea.com From bobsneidar at iotecdigital.com Tue Oct 31 16:54:36 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 31 Oct 2017 20:54:36 +0000 Subject: Relative Paths in Property Inspector In-Reply-To: References: <98F86026-A143-4612-A4A0-43BB2E9B46B6@hindu.org> <3C72E38F-D089-4543-B467-F121EBA12CB8@iotecdigital.com> <2f68368e-4d7b-d493-5783-a7cb2dd4c261@sonic.net> <56cfe104-b41b-f043-9050-381870ecff54@hyperactivesw.com> <8e34e3f0-d983-170a-d723-14fe1ecec174@sonic.net> Message-ID: <6E082AFC-1F16-4F21-951B-3ECE39C05211@iotecdigital.com> This is called a Watch Folder approach and any cloud based system that uses it (nextcloud does sort of, icloud does as well) will work the same way. Pretty slick. Bob S > On Oct 31, 2017, at 11:43 , J. Landman Gay via use-livecode wrote: > > On 10/31/17 11:57 AM, Mike Kerner via use-livecode wrote: >> no I'm referring to the usernames on the machine. I'm using google drive >> (backup and sync and file stream). I use dropbox for app data storage and >> transfer. > > Here is my setup: I created a folder in Dropbox named "Application Support". I put the LC folder in there as well as BBEdit's preferences and a few other things I want to share among machines. > > On Mac #1, the path in the LC prefs is: > /Users/Username1/Dropbox/Application Support/My LiveCode > > Mac #2: > /Users/username2/Dropbox/Application Support/My LiveCode > > And so forth. Dropbox keeps the folders in sync and because it's a local folder on each drive, LC has no problem accessing it. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Tue Oct 31 17:00:23 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 31 Oct 2017 21:00:23 +0000 Subject: Go card "xyz" In-Reply-To: <12789E9E-793F-4518-AA42-6080CFD36005@mindcrea.com> References: <12789E9E-793F-4518-AA42-6080CFD36005@mindcrea.com> Message-ID: <58950923-44BF-488E-BCB8-1BC933020276@iotecdigital.com> No, and it can't work that way because as you have foreseen, that would wreak havoc on the message hierarchy. Some messages, a very few get processed as a high priority to resolve some issue they would have had if they went through the regular hierarchy (someone correct me if I am wrong) but these are typically not the ones you would read about in the dictionary. Bob S > On Oct 31, 2017, at 13:18 , Pyyhti? Christer via use-livecode wrote: > > "When in a script you issue a command > > go card "xyz" > > does the next command line of the script get into execution before the "go" has been completed? From monte at appisle.net Tue Oct 31 17:14:06 2017 From: monte at appisle.net (Monte Goulding) Date: Wed, 1 Nov 2017 08:14:06 +1100 Subject: Remote Debugger Frustrations In-Reply-To: <3A6DEFAF-5C83-45AC-BE9F-C02BBB8D2D57@reidit.co.uk> References: <3A6DEFAF-5C83-45AC-BE9F-C02BBB8D2D57@reidit.co.uk> Message-ID: > On 31 Oct 2017, at 9:15 pm, Peter Reid via use-livecode wrote: > > How are people getting on with the remote debugger facility? I'm finding it very useful but also frustrating for the following reasons: > > 1. It's SLOW. I'm running LC 9 on an iMac with a 4GHz quad i7 processor and 24GB RAM connected by USB to an Amazon Fire 7 tablet, yet each step through the script in the debugger takes several seconds. The remote debugger diverts calls to the debugger library to go over a socket to the remote process. It will always be much slower than debugging in the engine. If you have lots of variables or a lot of data in them then all of the values need to be requested and updated for each step. > > 2. It's difficult to stop to make changes. Clicking the stop debugging button often doesn't work or takes a long time to react and even when apparently stopped it's still making everything slow. If you have a good recipe for this then it would be good to open a report about it. It shouldn?t take more than a few seconds to stop the debugger. > > 3. Often it steps through the script as it was just before the latest change, i.e. it doesn't take into account the latest script edits. The script of being stepped through is copied over from the remote process so it will only show you the script as it was when you clicked the Test button. > > 4. It can be difficult to change break points during remote debugging. Can you give more detail? Once you hit a breakpoint you should be able to change breakpoints in the open debugger. > > 5. The only way that guarantees a clean run is to quit LC and start again. What do you mean by clean run here? > > 6. A partial reset can be achieved by the following: > a. having clicked 'stop debugging'... > b. open & close Standalone Application Settings > c. click Test, which prompts for Save > d. click Save and the remote build & install starts > e. however, the above doesn't always recognise script changes. I think the above is related to #3. Perhaps a misunderstanding about what happens once you edit the local stack scripts during a remote debugger session? Cheers Monte From monte at appisle.net Tue Oct 31 18:33:43 2017 From: monte at appisle.net (Monte Goulding) Date: Wed, 1 Nov 2017 09:33:43 +1100 Subject: Strange permissions issues calling 'shell' in Windows In-Reply-To: <82870e28-2e64-9ede-7b46-1d46340b2c5c@cogapp.com> References: <82870e28-2e64-9ede-7b46-1d46340b2c5c@cogapp.com> Message-ID: <46DB5DEA-282F-4E72-B65C-521DA1A734DF@appisle.net> > On 31 Oct 2017, at 9:40 pm, Ben Rubinstein via use-livecode wrote: > > Is there some way that calling 'shell' enters a context with less permission than the app which calls it? And is there something I can do about this? LiveCode?s shell function on windows is basically telling cmd.exe to run the command. I have run into permissions issues before on school networks that have policies that block the use of the command prompt. In that case moving to open process with a read from process loop worked around the policy. You might try that. It could be in the scheduled task environment there is something missing that cmd.exe needs. Cheers Monte From jacque at hyperactivesw.com Tue Oct 31 22:45:38 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 31 Oct 2017 21:45:38 -0500 Subject: Remote Debugger Frustrations In-Reply-To: References: <3A6DEFAF-5C83-45AC-BE9F-C02BBB8D2D57@reidit.co.uk> Message-ID: <9b46a44f-0363-8cbd-bd9b-9706ce728a84@hyperactivesw.com> On 10/31/17 4:14 PM, Monte Goulding via use-livecode wrote: > Once you hit a breakpoint you should be able to change breakpoints in the open debugger. This I didn't know, I wasn't able to do that. To verify: I have to be stopped at a breakpoint first before changing or adding one? I didn't do that when I last tried. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From monte at appisle.net Tue Oct 31 22:57:53 2017 From: monte at appisle.net (Monte Goulding) Date: Wed, 1 Nov 2017 13:57:53 +1100 Subject: Remote Debugger Frustrations In-Reply-To: <9b46a44f-0363-8cbd-bd9b-9706ce728a84@hyperactivesw.com> References: <3A6DEFAF-5C83-45AC-BE9F-C02BBB8D2D57@reidit.co.uk> <9b46a44f-0363-8cbd-bd9b-9706ce728a84@hyperactivesw.com> Message-ID: > On 1 Nov 2017, at 1:45 pm, J. Landman Gay via use-livecode wrote: > >> Once you hit a breakpoint you should be able to change breakpoints in the open debugger. > > This I didn't know, I wasn't able to do that. To verify: I have to be stopped at a breakpoint first before changing or adding one? I didn't do that when I last tried. Yes, you should be able to manipulate red dot breakpoints once the debugger is open. If you aren?t stopped at a breakpoint or execution error then you are probably just looking at your local script and therefore any changes to breakpoints won?t go over the wire. Cheers Monte From brahma at hindu.org Sat Oct 7 13:16:56 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 07 Oct 2017 17:16:56 -0000 Subject: Segmented Control Bugs? In-Reply-To: References: <7E734610-AD3C-4367-AA4E-7A105BFF186A@hindu.org> <80744AED-8DA5-4505-8F0C-CDE66E181D62@hindu.org> <6EEA39F1-3C71-4EE3-A1B0-AA8601E44BBB@hindu.org> Message-ID: Thanks, but for now I completely removed it and went back to the "old fashioned" way: three buttons in a group side by side?catch the target. Works like a charm for this use case, not quite as perfect native look and feel on devices, but still looks quite good. Side thoughts on native look and feel? I sometimes wonder about the huge effort going having the entire interface be some perfect match for iOS or MaterialDesign. If you are trying to do a utilitarian app, that needs to fit that genre of apps, maybe that would be ideal; but I've even started deprecating the native picker and use a translucent field or buttons in a group, instead, for short sets of choices. Sometimes the native look and feel doesn't "match" with the look and feel of the app. I also don't buy that attitude (I could be wrong) where someone comments that "that's not the way apple does it" -- users don't really seem to care and we can make it "prettier" and users actually think that, having it work differently is more cool and "lovely" Fortunately, LC makes this easy. BR On 10/7/17, 5:59 AM, "use-livecode on behalf of Brian Milby via use-livecode" wrote: I've posted a PR that should address this issue: https://github.com/livecode/livecode/pull/6044 I created a stack with a segmented control with a substack with a segmented control. As you described, the hiliteChanged message was dispatched for both controls upon opening the stack. In my case, I observed the substack message coming first and then the parent stack message. If you would like assistance testing to see if the change corrects your situation, let me know (there should just be 2 files that need to be replaced in your DP9 install).