From jacque at hyperactivesw.com Tue Nov 1 02:38:27 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 1 Nov 2016 01:38:27 -0500 Subject: Internet date Message-ID: <24ca5c72-9e3f-ecd1-0a97-bec8f3272abb@hyperactivesw.com> Is the internet date in a consistent format in every country? That is, except for the spelling of the day and month names, is the format always the same? Where I am, it is: Tue, 1 Nov 2016 01:35:55 -0500 Geez, where did the year go? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From tore.nilsen at me.com Tue Nov 1 02:55:57 2016 From: tore.nilsen at me.com (Tore Nilsen) Date: Tue, 01 Nov 2016 07:55:57 +0100 Subject: Internet date In-Reply-To: <24ca5c72-9e3f-ecd1-0a97-bec8f3272abb@hyperactivesw.com> References: <24ca5c72-9e3f-ecd1-0a97-bec8f3272abb@hyperactivesw.com> Message-ID: <140358B5-3055-4765-9F4A-02EC02BC2B6A@me.com> Here is what I get in Norway: Tue, 1 Nov 2016 07:54:59 +0100 Tore > 1. nov. 2016 kl. 07.38 skrev J. Landman Gay : > > Is the internet date in a consistent format in every country? That is, except for the spelling of the day and month names, is the format always the same? > > Where I am, it is: Tue, 1 Nov 2016 01:35:55 -0500 > > Geez, where did the year go? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From th.douez at gmail.com Tue Nov 1 02:59:32 2016 From: th.douez at gmail.com (Thierry Douez) Date: Tue, 1 Nov 2016 07:59:32 +0100 Subject: Internet date In-Reply-To: <24ca5c72-9e3f-ecd1-0a97-bec8f3272abb@hyperactivesw.com> References: <24ca5c72-9e3f-ecd1-0a97-bec8f3272abb@hyperactivesw.com> Message-ID: and in France: Tue, 1 Nov 2016 07:57:56 +0100 2016-11-01 7:38 GMT+01:00 J. Landman Gay : > Is the internet date in a consistent format in every country? That is, > except for the spelling of the day and month names, is the format always > the same? > > Where I am, it is: Tue, 1 Nov 2016 01:35:55 -0500 > > Geez, where did the year go? > > -- > 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 > -- ------------------------------------------------ Thierry Douez - http://sunny-tdz.com sunnYrex - sunnYtext2speech - sunnYperl - sunnYmidi - sunnYmage From richmondmathewson at gmail.com Tue Nov 1 10:16:38 2016 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 1 Nov 2016 16:16:38 +0200 Subject: Internet date In-Reply-To: References: <24ca5c72-9e3f-ecd1-0a97-bec8f3272abb@hyperactivesw.com> Message-ID: <3ebee4cf-99c1-a444-ad65-512459c6fdb0@gmail.com> Here, in Bulgaria: Tue, 1 Nov 2016 16:15:56 +0200 *Richmond.* On 1.11.2016 08:59, Thierry Douez wrote: > and in France: > > Tue, 1 Nov 2016 07:57:56 +0100 > > > 2016-11-01 7:38 GMT+01:00 J. Landman Gay : > >> Is the internet date in a consistent format in every country? That is, >> except for the spelling of the day and month names, is the format always >> the same? >> >> Where I am, it is: Tue, 1 Nov 2016 01:35:55 -0500 >> >> Geez, where did the year go? >> >> -- >> 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 toolbook at kestner.de Tue Nov 1 10:11:00 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 1 Nov 2016 15:11:00 +0100 Subject: How do you maintain image source reference on multiple platforms? Message-ID: <003801d23449$c767c7d0$56375770$@kestner.de> Hello, after I got the trick on how to handle multiple image sources for different screen resolutions, I began changing all images in my programs from imported images to external references. I created on my development platform windows a "resource" folder under my development folder, referenced my images to that folder, added all image files to the standalone setting "copy files" and set the destination folder for the copy files in the standalone setting also to a folder "resources". So far, that works fine now. On windows I only create the windows standalone. For the final tests, adaptions and creating the standalone for Mac OS, I copy the source stack to my Mac. Here comes my issue. All of my images have a windows path as source reference, like "C:/myPath/recsources/myImage.png", which obviously doesn't work on Mac. I tried to set the image source path to a relative path like "/resources/myImage.png", hoping that would catch the image on both platforms, but obviously relative paths are not working as image source. This would be a clean solution for this issue. Since the transport of the source stacks is not a one time thing, but can be made quite often in the last steps of the project (to always keep the master source on my main dev platform windows), it actually can't be it to change manually all image paths each time after moving the stack from one platform to the other. Do I oversee anything here, or is the only solution to write a script, which runs thru all objects and converts the image paths each time I transfer my stacks? If yes, has anybody such a small tool? I fear, I am the only one, who is developing on two platforms, otherwise this must have come up earlier. How do you handle this? Any recommendations welcome Tiemo From ambassador at fourthworld.com Tue Nov 1 10:24:25 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 1 Nov 2016 07:24:25 -0700 Subject: Internet date In-Reply-To: <24ca5c72-9e3f-ecd1-0a97-bec8f3272abb@hyperactivesw.com> References: <24ca5c72-9e3f-ecd1-0a97-bec8f3272abb@hyperactivesw.com> Message-ID: <46bcd78e-fcfc-8bb8-a48a-fb0bf153ef17@fourthworld.com> J. Landman Gay wrote: > Is the internet date in a consistent format in every country? That > is, except for the spelling of the day and month names, is the format > always the same? I believe all dates in LC are delivered using US English spellings, except when explicitly directed otherwise by setting the useSystemDate to true. With the Internet date, though, the Dictionary notes that it follows RFC 2822, which IIFC only supports US English date element names, so I think it should be unaffected by the useSystemDate. If anyone using a non-US English system can double-check the format after setting the useSystemDate to true it would be helpful to confirm 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 tore.nilsen at me.com Tue Nov 1 10:45:06 2016 From: tore.nilsen at me.com (Tore Nilsen) Date: Tue, 01 Nov 2016 15:45:06 +0100 Subject: Internet date In-Reply-To: <46bcd78e-fcfc-8bb8-a48a-fb0bf153ef17@fourthworld.com> References: <24ca5c72-9e3f-ecd1-0a97-bec8f3272abb@hyperactivesw.com> <46bcd78e-fcfc-8bb8-a48a-fb0bf153ef17@fourthworld.com> Message-ID: <24ED7CF7-3CBC-4A3B-8F6A-E6F2F69BCCC3@me.com> Use systemDate does not apply to the internet date. I got the same result with this set to both true and false. Tore > 1. nov. 2016 kl. 15.24 skrev Richard Gaskin : > > J. Landman Gay wrote: > > > Is the internet date in a consistent format in every country? That > > is, except for the spelling of the day and month names, is the format > > always the same? > > I believe all dates in LC are delivered using US English spellings, except when explicitly directed otherwise by setting the useSystemDate to true. > > With the Internet date, though, the Dictionary notes that it follows RFC 2822, which IIFC only supports US English date element names, so I think it should be unaffected by the useSystemDate. > > If anyone using a non-US English system can double-check the format after setting the useSystemDate to true it would be helpful to confirm that. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tore.nilsen at me.com Tue Nov 1 10:48:56 2016 From: tore.nilsen at me.com (Tore Nilsen) Date: Tue, 01 Nov 2016 15:48:56 +0100 Subject: Internet date In-Reply-To: <24ED7CF7-3CBC-4A3B-8F6A-E6F2F69BCCC3@me.com> References: <24ca5c72-9e3f-ecd1-0a97-bec8f3272abb@hyperactivesw.com> <46bcd78e-fcfc-8bb8-a48a-fb0bf153ef17@fourthworld.com> <24ED7CF7-3CBC-4A3B-8F6A-E6F2F69BCCC3@me.com> Message-ID: And I guess that is part of the reasoning for the internet date. You can be sure that the information will have a specific format, regardless of any other factors that may affect the way the information is formatted. Put the info in a variable, extract and format the parts you need to your own liking, and away you go. Tore > 1. nov. 2016 kl. 15.45 skrev Tore Nilsen : > > Use systemDate does not apply to the internet date. I got the same result with this set to both true and false. > > Tore > > >> 1. nov. 2016 kl. 15.24 skrev Richard Gaskin : >> >> J. Landman Gay wrote: >> >>> Is the internet date in a consistent format in every country? That >>> is, except for the spelling of the day and month names, is the format >>> always the same? >> >> I believe all dates in LC are delivered using US English spellings, except when explicitly directed otherwise by setting the useSystemDate to true. >> >> With the Internet date, though, the Dictionary notes that it follows RFC 2822, which IIFC only supports US English date element names, so I think it should be unaffected by the useSystemDate. >> >> If anyone using a non-US English system can double-check the format after setting the useSystemDate to true it would be helpful to confirm that. >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Tue Nov 1 10:56:00 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 1 Nov 2016 14:56:00 +0000 Subject: Internet date In-Reply-To: <46bcd78e-fcfc-8bb8-a48a-fb0bf153ef17@fourthworld.com> References: <24ca5c72-9e3f-ecd1-0a97-bec8f3272abb@hyperactivesw.com> <46bcd78e-fcfc-8bb8-a48a-fb0bf153ef17@fourthworld.com> Message-ID: in a related note? > Is the internet date in a consistent format in every country? That > is, except for the spelling of the day and month names, is the format > always the same? I believe the whole rest of the IT world solved this a long time ago.. and I've had an enhancement request in for literally a decade?. to have the engine date function auto output the standard date format in the form of YYYY-MM-DD HH:MM:SEC TZ # where TZ is picked form the local system I'm off line at the moment so I don't have the RFC number for that standard. Yes, I know Richard will respond "The beauty of LC is you can get this out yourself" (hehe) but isn't it time that we have this output as a native form? of course that still requires you to convert this to date items then gets you an array you can depend on for the day and month names? you would have to look those up. And ideally "the monthnames" and "the weekdaynames" would be localized automatically by the engine if there was a "my language is" option in the LC preferences. select: "French: output: Lundi Mardi etc. BR On 11/1/16, 4:24 AM, "use-livecode on behalf of Richard Gaskin" wrote: With the Internet date, though, the Dictionary notes that it follows RFC 2822, which IIFC only supports US English date element names, so I think it should be unaffected by the useSystemDate. If anyone using a non-US English system can double-check the format after setting the useSystemDate to true it would be helpful to confirm that. From paul at researchware.com Tue Nov 1 11:02:19 2016 From: paul at researchware.com (Paul Dupuis) Date: Tue, 01 Nov 2016 11:02:19 -0400 Subject: How do you maintain image source reference on multiple platforms? In-Reply-To: <003801d23449$c767c7d0$56375770$@kestner.de> References: <003801d23449$c767c7d0$56375770$@kestner.de> Message-ID: <5818AE7B.6060503@researchware.com> I'd love to know what people consider the "best practice" solution to this problem is as well. On 11/1/2016 10:11 AM, Tiemo Hollmann TB wrote: > Hello, > > > > after I got the trick on how to handle multiple image sources for different > screen resolutions, I began changing all images in my programs from imported > images to external references. I created on my development platform windows > a "resource" folder under my development folder, referenced my images to > that folder, added all image files to the standalone setting "copy files" > and set the destination folder for the copy files in the standalone setting > also to a folder "resources". So far, that works fine now. > > > > On windows I only create the windows standalone. For the final tests, > adaptions and creating the standalone for Mac OS, I copy the source stack to > my Mac. Here comes my issue. All of my images have a windows path as source > reference, like "C:/myPath/recsources/myImage.png", which obviously doesn't > work on Mac. I tried to set the image source path to a relative path like > "/resources/myImage.png", hoping that would catch the image on both > platforms, but obviously relative paths are not working as image source. > This would be a clean solution for this issue. > > > > Since the transport of the source stacks is not a one time thing, but can be > made quite often in the last steps of the project (to always keep the master > source on my main dev platform windows), it actually can't be it to change > manually all image paths each time after moving the stack from one platform > to the other. Do I oversee anything here, or is the only solution to write a > script, which runs thru all objects and converts the image paths each time I > transfer my stacks? If yes, has anybody such a small tool? I fear, I am the > only one, who is developing on two platforms, otherwise this must have come > up earlier. > > > > How do you handle this? Any recommendations welcome > > 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 ambassador at fourthworld.com Tue Nov 1 11:15:41 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 1 Nov 2016 08:15:41 -0700 Subject: short name broken? Message-ID: <7ee0b68e-1c5c-e5c9-69e2-15f50039c450@fourthworld.com> In v9 try: 1. Create a new field 2. In the Message Box, run: put the short name of last field I get the name instead, e.g. "field id 1009". IIRC the short name of a field is empty until you set it. When a field is unnamed, "the short name" returns empty and "the name" would return the form shown above, yes? Otherwise, we have no way to know when a field has not yet been named. -- 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 Nov 1 11:16:36 2016 From: dunbarx at aol.com (dunbarx) Date: Tue, 1 Nov 2016 08:16:36 -0700 (PDT) Subject: short name broken? In-Reply-To: <7ee0b68e-1c5c-e5c9-69e2-15f50039c450@fourthworld.com> References: <7ee0b68e-1c5c-e5c9-69e2-15f50039c450@fourthworld.com> Message-ID: <1478013396562-4709940.post@n4.nabble.com> Richard. If I make a new control, and immediately ask for its name, or short name, I have always gotten the default name in the inspector, which is something like: field "field" or button "button". Never empty. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/short-name-broken-tp4709939p4709940.html Sent from the Revolution - User mailing list archive at Nabble.com. From tore.nilsen at me.com Tue Nov 1 11:28:35 2016 From: tore.nilsen at me.com (Tore Nilsen) Date: Tue, 01 Nov 2016 16:28:35 +0100 Subject: How do you maintain image source reference on multiple platforms? In-Reply-To: <003801d23449$c767c7d0$56375770$@kestner.de> References: <003801d23449$c767c7d0$56375770$@kestner.de> Message-ID: <46372086-1F8C-4955-BC46-6B80E0603344@me.com> You should probably use the specialFolderPath(?resources?) to set the relative path to your images. This should work on all systems. Tore > 1. nov. 2016 kl. 15.11 skrev Tiemo Hollmann TB : > > Hello, > > > > after I got the trick on how to handle multiple image sources for different > screen resolutions, I began changing all images in my programs from imported > images to external references. I created on my development platform windows > a "resource" folder under my development folder, referenced my images to > that folder, added all image files to the standalone setting "copy files" > and set the destination folder for the copy files in the standalone setting > also to a folder "resources". So far, that works fine now. > > > > On windows I only create the windows standalone. For the final tests, > adaptions and creating the standalone for Mac OS, I copy the source stack to > my Mac. Here comes my issue. All of my images have a windows path as source > reference, like "C:/myPath/recsources/myImage.png", which obviously doesn't > work on Mac. I tried to set the image source path to a relative path like > "/resources/myImage.png", hoping that would catch the image on both > platforms, but obviously relative paths are not working as image source. > This would be a clean solution for this issue. > > > > Since the transport of the source stacks is not a one time thing, but can be > made quite often in the last steps of the project (to always keep the master > source on my main dev platform windows), it actually can't be it to change > manually all image paths each time after moving the stack from one platform > to the other. Do I oversee anything here, or is the only solution to write a > script, which runs thru all objects and converts the image paths each time I > transfer my stacks? If yes, has anybody such a small tool? I fear, I am the > only one, who is developing on two platforms, otherwise this must have come > up earlier. > > > > How do you handle this? Any recommendations welcome > > Tiemo > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Nov 1 11:43:30 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 1 Nov 2016 15:43:30 +0000 Subject: Internet date In-Reply-To: References: <24ca5c72-9e3f-ecd1-0a97-bec8f3272abb@hyperactivesw.com> <46bcd78e-fcfc-8bb8-a48a-fb0bf153ef17@fourthworld.com> Message-ID: <034F0D08-37C0-452F-BE6E-B1D099CF800E@iotecdigital.com> I call this sql date in my formatDate() function. Bob S On Nov 1, 2016, at 07:56 , Sannyasin Brahmanathaswami > wrote: in a related note? Is the internet date in a consistent format in every country? That is, except for the spelling of the day and month names, is the format always the same? I believe the whole rest of the IT world solved this a long time ago.. and I've had an enhancement request in for literally a decade?. to have the engine date function auto output the standard date format in the form of YYYY-MM-DD HH:MM:SEC TZ # where TZ is picked form the local system From jacque at hyperactivesw.com Tue Nov 1 11:48:27 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 01 Nov 2016 10:48:27 -0500 Subject: Internet date In-Reply-To: <24ED7CF7-3CBC-4A3B-8F6A-E6F2F69BCCC3@me.com> References: <24ca5c72-9e3f-ecd1-0a97-bec8f3272abb@hyperactivesw.com> <46bcd78e-fcfc-8bb8-a48a-fb0bf153ef17@fourthworld.com> <24ED7CF7-3CBC-4A3B-8F6A-E6F2F69BCCC3@me.com> Message-ID: <1582093ccf8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Thanks everyone, that tells me what I needed to know. I am surprised that the day and month names aren't in the user's language though, I thought they would be. Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 1, 2016 9:47:11 AM Tore Nilsen wrote: > Use systemDate does not apply to the internet date. I got the same result > with this set to both true and false. > > Tore > > >> 1. nov. 2016 kl. 15.24 skrev Richard Gaskin : >> >> J. Landman Gay wrote: >> >> > Is the internet date in a consistent format in every country? That >> > is, except for the spelling of the day and month names, is the format >> > always the same? >> >> I believe all dates in LC are delivered using US English spellings, except >> when explicitly directed otherwise by setting the useSystemDate to true. >> >> With the Internet date, though, the Dictionary notes that it follows RFC >> 2822, which IIFC only supports US English date element names, so I think it >> should be unaffected by the useSystemDate. >> >> If anyone using a non-US English system can double-check the format after >> setting the useSystemDate to true it would be helpful to confirm that. >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tore.nilsen at me.com Tue Nov 1 11:52:34 2016 From: tore.nilsen at me.com (Tore Nilsen) Date: Tue, 01 Nov 2016 16:52:34 +0100 Subject: Internet date In-Reply-To: <1582093ccf8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <24ca5c72-9e3f-ecd1-0a97-bec8f3272abb@hyperactivesw.com> <46bcd78e-fcfc-8bb8-a48a-fb0bf153ef17@fourthworld.com> <24ED7CF7-3CBC-4A3B-8F6A-E6F2F69BCCC3@me.com> <1582093ccf8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <38385F54-8AE3-4AA3-8178-159ACF4DFEB7@me.com> But you can get the localized week day names: put the system weekdaynames ? be aware that this sets sunday as the first day of the week no matter where you are You can get the localized names of the months: put the system monthnames Regards Tore > 1. nov. 2016 kl. 16.48 skrev J. Landman Gay : > > Thanks everyone, that tells me what I needed to know. I am surprised that the day and month names aren't in the user's language though, I thought they would be. > > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > On November 1, 2016 9:47:11 AM Tore Nilsen wrote: > >> Use systemDate does not apply to the internet date. I got the same result with this set to both true and false. >> >> Tore >> >> >>> 1. nov. 2016 kl. 15.24 skrev Richard Gaskin : >>> >>> J. Landman Gay wrote: >>> >>> > Is the internet date in a consistent format in every country? That >>> > is, except for the spelling of the day and month names, is the format >>> > always the same? >>> >>> I believe all dates in LC are delivered using US English spellings, except when explicitly directed otherwise by setting the useSystemDate to true. >>> >>> With the Internet date, though, the Dictionary notes that it follows RFC 2822, which IIFC only supports US English date element names, so I think it should be unaffected by the useSystemDate. >>> >>> If anyone using a non-US English system can double-check the format after setting the useSystemDate to true it would be helpful to confirm that. >>> >>> -- >>> Richard Gaskin >>> Fourth World Systems >>> Software Design and Development for the Desktop, Mobile, and the Web >>> ____________________________________________________________________ >>> Ambassador at FourthWorld.com http://www.FourthWorld.com >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Nov 1 12:04:21 2016 From: skiplondon at gmail.com (Skip Kimpel) Date: Tue, 1 Nov 2016 12:04:21 -0400 Subject: Using tsNet for sftp directory file listing In-Reply-To: <96ea44fb-2158-ab79-26b1-6cfa72090f26@techstrategies.com.au> References: <96ea44fb-2158-ab79-26b1-6cfa72090f26@techstrategies.com.au> Message-ID: I am still struggling putting this code together correctly. Does anybody have any working examples of downloading a single file, via sftp protocol? I think I can work backwards from there. SKIP On Fri, Oct 28, 2016 at 10:52 PM, Charles Warwick < charles at techstrategies.com.au> wrote: > On 29/10/2016 7:52 AM, Richard Gaskin wrote: > >> Skip Kimpel wrote: >> >> > Can anybody guide me in getting a file listing from a remote >> > directory via SFTP connection? I currently have tsNet functioning >> > to make the connection and uploading / downloading an individual >> > file. However, I need to retrieve a list of files sitting in a >> > directory. >> >> It's been a while since I've used FTP, but IIRC in previous versions you >> could just use "get" on a directory and it'll return the file list (note >> that the trailing "/" is important to let libURL know it's dealing with a >> directory): >> >> get url "ftp://name:pass at server/folder/" >> >> Has that changed? >> >> Using "get url /path/to/dir/" or "put url /path/to/dir/ into x" works > with tsNet for both ftp and sftp protocols. > > You can also do the same thing using the synchronous or asynchronous > tsNetGet* functions by specifying the directory with a trailing slash as > the URL. > > As Richard said, the format varies for directory listings if you get a > "full" listing. If you are just after the list of filenames, you can use > "tsNetSetDirNLST true" if using tsNet commands directly, or > "libUrlSetFtpListCommand 'NLST'" when using libUrl. > > Cheers, > > Charles > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From devin_asay at byu.edu Tue Nov 1 12:21:19 2016 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 1 Nov 2016 16:21:19 +0000 Subject: How do you maintain image source reference on multiple platforms? In-Reply-To: <46372086-1F8C-4955-BC46-6B80E0603344@me.com> References: <003801d23449$c767c7d0$56375770$@kestner.de> <46372086-1F8C-4955-BC46-6B80E0603344@me.com> Message-ID: <5A3A0E06-A72C-4663-9848-DB8A002ADD88@byu.edu> > On Nov 1, 2016, at 9:28 AM, Tore Nilsen wrote: > > You should probably use the specialFolderPath(?resources?) to set the relative path to your images. This should work on all systems. +1 In the development environment this function returns the path to the folder where your stack resides. In a standalone it should be the folder where all files copied in the Standalone Builder reside. On mobile platforms it is the same as specialFolderPath(?engine?), the place where the standalone bundle resides, and the place where resources copied at build time reside. Devin > > Tore >> 1. nov. 2016 kl. 15.11 skrev Tiemo Hollmann TB : >> >> Hello, >> >> >> >> after I got the trick on how to handle multiple image sources for different >> screen resolutions, I began changing all images in my programs from imported >> images to external references. I created on my development platform windows >> a "resource" folder under my development folder, referenced my images to >> that folder, added all image files to the standalone setting "copy files" >> and set the destination folder for the copy files in the standalone setting >> also to a folder "resources". So far, that works fine now. >> >> >> >> On windows I only create the windows standalone. For the final tests, >> adaptions and creating the standalone for Mac OS, I copy the source stack to >> my Mac. Here comes my issue. All of my images have a windows path as source >> reference, like "C:/myPath/recsources/myImage.png", which obviously doesn't >> work on Mac. I tried to set the image source path to a relative path like >> "/resources/myImage.png", hoping that would catch the image on both >> platforms, but obviously relative paths are not working as image source. >> This would be a clean solution for this issue. >> >> >> >> Since the transport of the source stacks is not a one time thing, but can be >> made quite often in the last steps of the project (to always keep the master >> source on my main dev platform windows), it actually can't be it to change >> manually all image paths each time after moving the stack from one platform >> to the other. Do I oversee anything here, or is the only solution to write a >> script, which runs thru all objects and converts the image paths each time I >> transfer my stacks? If yes, has anybody such a small tool? I fear, I am the >> only one, who is developing on two platforms, otherwise this must have come >> up earlier. >> >> >> >> How do you handle this? Any recommendations welcome >> >> 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 Devin Asay Director Office of Digital Humanities Brigham Young University From jacque at hyperactivesw.com Tue Nov 1 12:22:48 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 01 Nov 2016 11:22:48 -0500 Subject: How do you maintain image source reference on multiple platforms? In-Reply-To: <003801d23449$c767c7d0$56375770$@kestner.de> References: <003801d23449$c767c7d0$56375770$@kestner.de> Message-ID: <15820b33fc0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> On November 1, 2016 9:20:17 AM "Tiemo Hollmann TB" wrote: > On windows I only create the windows standalone. For the final tests, > adaptions and creating the standalone for Mac OS, I copy the source stack to > my Mac. Here comes my issue. All of my images have a windows path as source > reference, like "C:/myPath/recsources/myImage.png", which obviously doesn't > work on Mac. I tried to set the image source path to a relative path like > "/resources/myImage.png", hoping that would catch the image on both > platforms, but obviously relative paths are not working as image source. > This would be a clean solution for this issue. If you are setting the path in the property inspector, I think there's an extra slash at the beginning of the path. Try "resources/myImage.png". I believe there's an option in preferences to automatically use relative paths when you select a file in the inspector but I'm not on my computer right now to check. Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From matthias_livecode_150811 at m-r-d.de Tue Nov 1 12:26:36 2016 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Tue, 1 Nov 2016 17:26:36 +0100 Subject: Internet date In-Reply-To: <46bcd78e-fcfc-8bb8-a48a-fb0bf153ef17@fourthworld.com> References: <24ca5c72-9e3f-ecd1-0a97-bec8f3272abb@hyperactivesw.com> <46bcd78e-fcfc-8bb8-a48a-fb0bf153ef17@fourthworld.com> Message-ID: Hi the time the internet date returns depends on the timezone you?ve selected in your settings. On my Mac i changed for example my timezone from Central European time to NewZealand summertime and my internet date changed from Tue, 1 Nov 2016 17:21:22 +0100 to Wed, 2 Nov 2016 05:20:03 +1300 After changing the timezone you have to restart livecode, because LC seems to read that setting only at start and is not able to detect changes w/o a restart. Matthias Rebbe Bramkampsieke 13 32312 L?bbecke Tel +49 5741 310000 +49 160 5504462 Fax: +49 5741 310002 eMail: matthias at m-r-d.de BR5 Konverter - BR5 -> MP3 > Am 01.11.2016 um 15:24 schrieb Richard Gaskin : > > J. Landman Gay wrote: > > > Is the internet date in a consistent format in every country? That > > is, except for the spelling of the day and month names, is the format > > always the same? > > I believe all dates in LC are delivered using US English spellings, except when explicitly directed otherwise by setting the useSystemDate to true. > > With the Internet date, though, the Dictionary notes that it follows RFC 2822, which IIFC only supports US English date element names, so I think it should be unaffected by the useSystemDate. > > If anyone using a non-US English system can double-check the format after setting the useSystemDate to true it would be helpful to confirm that. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From devin_asay at byu.edu Tue Nov 1 12:42:29 2016 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 1 Nov 2016 16:42:29 +0000 Subject: How do you maintain image source reference on multiple platforms? In-Reply-To: <15820b33fc0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <003801d23449$c767c7d0$56375770$@kestner.de> <15820b33fc0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: > On Nov 1, 2016, at 10:22 AM, J. Landman Gay wrote: > > On November 1, 2016 9:20:17 AM "Tiemo Hollmann TB" wrote: > >> On windows I only create the windows standalone. For the final tests, >> adaptions and creating the standalone for Mac OS, I copy the source stack to >> my Mac. Here comes my issue. All of my images have a windows path as source >> reference, like "C:/myPath/recsources/myImage.png", which obviously doesn't >> work on Mac. I tried to set the image source path to a relative path like >> "/resources/myImage.png", hoping that would catch the image on both >> platforms, but obviously relative paths are not working as image source. >> This would be a clean solution for this issue. > > If you are setting the path in the property inspector, I think there's an extra slash at the beginning of the path. Try "resources/myImage.png". I believe there's an option in preferences to automatically use relative paths when you select a file in the inspector but I'm not on my computer right now to check. Or even "./resources/myImage.png?. Devin Devin Asay Director Office of Digital Humanities Brigham Young University From toolbook at kestner.de Tue Nov 1 13:06:24 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 1 Nov 2016 18:06:24 +0100 Subject: AW: How do you maintain image source reference on multiple platforms? In-Reply-To: <5A3A0E06-A72C-4663-9848-DB8A002ADD88@byu.edu> References: <003801d23449$c767c7d0$56375770$@kestner.de> <46372086-1F8C-4955-BC46-6B80E0603344@me.com> <5A3A0E06-A72C-4663-9848-DB8A002ADD88@byu.edu> Message-ID: <004101d23462$46ec0d00$d4c42700$@kestner.de> As far as I see it, you can't set the filename of an image in the property inspector to a specialfolderpath(). Only by script, but since I don't have all of my tons of images linked to an external source, this would make some effort to assign the specialfolderpath() to only the wanted images, even if I would maintain a custom property. Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Devin Asay Gesendet: Dienstag, 1. November 2016 17:21 An: How to use LiveCode Betreff: Re: How do you maintain image source reference on multiple platforms? > On Nov 1, 2016, at 9:28 AM, Tore Nilsen wrote: > > You should probably use the specialFolderPath(?resources?) to set the relative path to your images. This should work on all systems. +1 In the development environment this function returns the path to the folder where your stack resides. In a standalone it should be the folder where all files copied in the Standalone Builder reside. On mobile platforms it is the same as specialFolderPath(?engine?), the place where the standalone bundle resides, and the place where resources copied at build time reside. Devin > > Tore >> 1. nov. 2016 kl. 15.11 skrev Tiemo Hollmann TB : >> >> Hello, >> >> >> >> after I got the trick on how to handle multiple image sources for >> different screen resolutions, I began changing all images in my >> programs from imported images to external references. I created on my >> development platform windows a "resource" folder under my development >> folder, referenced my images to that folder, added all image files to the standalone setting "copy files" >> and set the destination folder for the copy files in the standalone >> setting also to a folder "resources". So far, that works fine now. >> >> >> >> On windows I only create the windows standalone. For the final tests, >> adaptions and creating the standalone for Mac OS, I copy the source >> stack to my Mac. Here comes my issue. All of my images have a windows >> path as source reference, like "C:/myPath/recsources/myImage.png", >> which obviously doesn't work on Mac. I tried to set the image source >> path to a relative path like "/resources/myImage.png", hoping that >> would catch the image on both platforms, but obviously relative paths are not working as image source. >> This would be a clean solution for this issue. >> >> >> >> Since the transport of the source stacks is not a one time thing, but >> can be made quite often in the last steps of the project (to always >> keep the master source on my main dev platform windows), it actually >> can't be it to change manually all image paths each time after moving >> the stack from one platform to the other. Do I oversee anything here, >> or is the only solution to write a script, which runs thru all >> objects and converts the image paths each time I transfer my stacks? >> If yes, has anybody such a small tool? I fear, I am the only one, who >> is developing on two platforms, otherwise this must have come up earlier. >> >> >> >> How do you handle this? Any recommendations welcome >> >> 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 Devin Asay Director Office of Digital Humanities Brigham Young University _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Tue Nov 1 13:10:18 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 1 Nov 2016 18:10:18 +0100 Subject: AW: How do you maintain image source reference on multiple platforms? In-Reply-To: <15820b33fc0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <003801d23449$c767c7d0$56375770$@kestner.de> <15820b33fc0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <004201d23462$d237fe50$76a7faf0$@kestner.de> Once you make it right, it's so easy. Without a starting slash the relative path works fine, like you said it: "resources/myImage.png" Sometime you don't see the obvious... Thanks Jacque Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von J. Landman Gay Gesendet: Dienstag, 1. November 2016 17:23 An: How to use LiveCode Betreff: Re: How do you maintain image source reference on multiple platforms? On November 1, 2016 9:20:17 AM "Tiemo Hollmann TB" wrote: > On windows I only create the windows standalone. For the final tests, > adaptions and creating the standalone for Mac OS, I copy the source > stack to my Mac. Here comes my issue. All of my images have a windows > path as source reference, like "C:/myPath/recsources/myImage.png", > which obviously doesn't work on Mac. I tried to set the image source > path to a relative path like "/resources/myImage.png", hoping that > would catch the image on both platforms, but obviously relative paths are not working as image source. > This would be a clean solution for this issue. If you are setting the path in the property inspector, I think there's an extra slash at the beginning of the path. Try "resources/myImage.png". I believe there's an option in preferences to automatically use relative paths when you select a file in the inspector but I'm not on my computer right now to check. Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Tue Nov 1 13:48:44 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 1 Nov 2016 10:48:44 -0700 Subject: Internet date In-Reply-To: References: Message-ID: Sannyasin Brahmanathaswami wrote: >> Is the internet date in a consistent format in every country? That >> is, except for the spelling of the day and month names, is the format >> always the same? > > I believe the whole rest of the IT world solved this a long time > ago.. and I've had an enhancement request in for literally a > decade?. to have the engine date function auto output the standard > date format in the form of > > YYYY-MM-DD HH:MM:SEC TZ # where TZ is picked form the local system > > I'm off line at the moment so I don't have the RFC number for that > standard. Ah, but there are so many "standards". LC's internet date uses RFC 2822, and I'd wager there are at least two dozen different time/date formats suggested across the countless RFCs out there (the one used in RSS is my least favorite). Unfortunately most of them predate this XKCD comic, so we were unable to shame them into adopting a single standard while there might have been an opportunity to do so: https://xkcd.com/927/ So today what we need isn't just the internet date's RFC 2822, or the one you're proposing, but a more general framework for supporting most (ideally all) of them. > Yes, I know Richard will respond "The beauty of LC is you can get > this out yourself" (hehe) On the contrary, I've started a thread on this subject in the forums last year - this post from Mark Waddingham is particularly helpful in terms of understanding what's needed and how to achieve it: http://forums.livecode.com/viewtopic.php?f=66&t=23547#p122030 The meat of it is: We'd very much like to extend the range of dates in the engine - but at the moment we use platform APIs to do the core processing which means we are restricted to the date ranges they provide. Generally, date/time processing isn't all that hard... However, the critical piece (which we rely on the OSes for) is the translation between universal and local time - this is actually a bit of headache due to 'daylight savings time'. DST varies from timezone to timezone considerably and requires a fair bit of data to do the calculations correctly. I'll put it on the list to re-review whether we can move the OS APIs we are using forward to allow a greater range of dates without us having to implement the functionality and include the data ourselves. Kay turned me onto this fine video which goes into some of these challenges in more detail: https://www.youtube.com/watch?v=-5wpm-gesOY So yes, supporting more formats is highly desirable. And since we often need to convert entire lists of time/date info from seconds into something human-readable, it would be best if done in the engine. But it's just not a trivial thing to do. > And ideally "the monthnames" and "the weekdaynames" would be > localized automatically by the engine if there was a "my language is" > option in the LC preferences. The preference is expressible through the useSystemDate property. This is more useful than a more general setting because it gives us as developers the option of working with time and dates in a consistent format when that's what we need, and also displaying the results of our program's work in a localized format when that's what we need. Having a property to govern this leaves us in control of when consistency is more important than end-user display. A program will often do many things with dates (such as comparing them, sorting, etc.), and only at the end of our program does it display the result to the user. IMO the decision to favor consistency by default is more useful for a programming language. Besides, IDE preferences only affect the IDE, so they wouldn't help us when we ship our apps made with it. In fact, it could easily become an anti-feature by giving the false appearance that dates are always localized by default, when we'll later discover that's now how the engine works. -- 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 Tue Nov 1 14:12:42 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 1 Nov 2016 11:12:42 -0700 Subject: short name broken? In-Reply-To: <1478013396562-4709940.post@n4.nabble.com> References: <1478013396562-4709940.post@n4.nabble.com> Message-ID: dunbarx wrote: > Richard wroteL >> In v9 try: >> >> 1. Create a new field >. 2. In the Message Box, run: >> >> put the short name of last field >> >> I get the name instead, e.g. "field id 1009". >> >> IIRC the short name of a field is empty until you set it. When a >> field is unnamed, "the short name" returns empty and "the name" >> would return the form shown above, yes? >> >> Otherwise, we have no way to know when a field has not yet been >> named. > > If I make a new control, and immediately ask for its name, or short > name, I have always gotten the default name in the inspector, which > is something like: > > field "field" > or > button "button". Exactly. The form has changed. This is at least progress, since the older IDE habit of forcing redudant-form names was always confusing and needed to go, leading us to less-than-graceful coding like: put field "field 1" into field 1 This was made super-awkward since ordinal references are a very specific thing in xTalks, and the force-applied name used an ordinal form that will bear no relationship to its actual ordinal reference the moment its layer changes. So good riddance on that - kudos to the team for finally taking care of that. But here we get to a condundrum: > Never empty. You're absolutely right. When in doubt I check the Winkler-Kamins-DeVoto reference, and indeed they verify that all name queries will return a value, even when the property itself is empty. When using "the short name" on an unnamed object, WKD says it should return the ID form, as LC currently does. I can appreciate the hand-holding of ensuring that name queries always return a meaningful value, it does raise a question: is it possible to know if the name property of an object is empty? For example, if I wrote a script similar to the older IDE script that insisted on setting the name property to a value that resembles what we get with unnamed objects, how could we know the object's name us truly empty? In a pre-coffee moment I had mistakenly believe that the short name might allow this, but I'm not disappointed to find that LC now follows the tradition of the mother tongue. I suppose if I ever find myself needing to know that I could do this: function HasNoName pObj put the properties of pObj into tA return (tA["name"] is empty) end HasNoName -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From richmondmathewson at gmail.com Tue Nov 1 14:29:54 2016 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 1 Nov 2016 20:29:54 +0200 Subject: Goofy question about Datagrids Message-ID: <6ac4a14c-62ea-4893-b916-607f3d825229@gmail.com> What advantage has a datagrid over a tableField? I would be very grateful indeed for a properly formulated explanation. Richmond. From ambassador at fourthworld.com Tue Nov 1 14:31:06 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 1 Nov 2016 11:31:06 -0700 Subject: Using tsNet for sftp directory file listing In-Reply-To: References: Message-ID: Skip Kimpel wrote: > On 29/10/2016 7:52 AM, Richard Gaskin wrote: >> >> It's been a while since I've used FTP, but IIRC in previous versions >> you could just use "get" on a directory and it'll return the file >> list (note that the trailing "/" is important to let libURL know >> it's dealing with a directory): >> >> get url "ftp://name:pass at server/folder/" >> > > I am still struggling putting this code together correctly. Does > anybody have any working examples of downloading a single file, via > sftp protocol? The example I gave earlier was for your request to obtain a list of files. To download a single file it should be as easy as just using the full path to the file on the server, and changing "ftp" to "sftp": get url ("sftp://name:password at server/folder/file.dat") -- 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 Tue Nov 1 14:32:33 2016 From: bogdanoff at me.com (Peter Bogdanoff) Date: Tue, 01 Nov 2016 11:32:33 -0700 Subject: short name broken? In-Reply-To: References: <1478013396562-4709940.post@n4.nabble.com> Message-ID: <924F2C39-EAB8-48D7-A218-3E0EAEB192C4@me.com> On a somewhat related note, I filed this bug yesterday: Property Inspector doesn't retain new control name when clicking properties checkboxes http://quality.livecode.com/show_bug.cgi?id=18740 Peter Bogdanoff On Nov 1, 2016, at 11:12 AM, Richard Gaskin wrote: > dunbarx wrote: > > > > Richard wroteL > >> In v9 try: > >> > >> 1. Create a new field > >. 2. In the Message Box, run: > >> > >> put the short name of last field > >> > >> I get the name instead, e.g. "field id 1009". > >> > >> IIRC the short name of a field is empty until you set it. When a > >> field is unnamed, "the short name" returns empty and "the name" > >> would return the form shown above, yes? > >> > >> Otherwise, we have no way to know when a field has not yet been > >> named. > > > > If I make a new control, and immediately ask for its name, or short > > name, I have always gotten the default name in the inspector, which > > is something like: > > > > field "field" > > or > > button "button". > > Exactly. The form has changed. > > This is at least progress, since the older IDE habit of forcing redudant-form names was always confusing and needed to go, leading us to less-than-graceful coding like: > > put field "field 1" into field 1 > > This was made super-awkward since ordinal references are a very specific thing in xTalks, and the force-applied name used an ordinal form that will bear no relationship to its actual ordinal reference the moment its layer changes. > > So good riddance on that - kudos to the team for finally taking care of that. > > But here we get to a condundrum: > > > Never empty. > > You're absolutely right. When in doubt I check the Winkler-Kamins-DeVoto reference, and indeed they verify that all name queries will return a value, even when the property itself is empty. When using "the short name" on an unnamed object, WKD says it should return the ID form, as LC currently does. > > I can appreciate the hand-holding of ensuring that name queries always return a meaningful value, it does raise a question: is it possible to know if the name property of an object is empty? > > For example, if I wrote a script similar to the older IDE script that insisted on setting the name property to a value that resembles what we get with unnamed objects, how could we know the object's name us truly empty? > > In a pre-coffee moment I had mistakenly believe that the short name might allow this, but I'm not disappointed to find that LC now follows the tradition of the mother tongue. > > I suppose if I ever find myself needing to know that I could do this: > > function HasNoName pObj > put the properties of pObj into tA > return (tA["name"] is empty) > end HasNoName > > -- > 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 roger.e.eller at sealedair.com Tue Nov 1 14:41:15 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 1 Nov 2016 14:41:15 -0400 Subject: Goofy question about Datagrids In-Reply-To: <6ac4a14c-62ea-4893-b916-607f3d825229@gmail.com> References: <6ac4a14c-62ea-4893-b916-607f3d825229@gmail.com> Message-ID: Hi Richmond, I'll give you an 'improperly formulated' explanation of my own experience with datagrids. They are more complicated to use (at first). So most of the time I still use a table field for everything except where the nice appearance of a datagrid gives the design a polished and professional look. The alternating row color is pleasing to the eye, and practical for viewing 'wide' data. Functionally, a datagrid is easier to rearrange column order than a roll-your-own table script. I'm sure there are datagrid advocates, but I still like the simplicity of the table field for most things. ~Roger On Tue, Nov 1, 2016 at 2:29 PM, Richmond wrote: > What advantage has a datagrid over a tableField? > > I would be very grateful indeed for a properly formulated > explanation. > > Richmond. > > From ambassador at fourthworld.com Tue Nov 1 14:50:08 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 1 Nov 2016 11:50:08 -0700 Subject: Fwd: Re: Internet date In-Reply-To: <3c55cac1-9222-ce80-4c35-3bf09c077943@fourthworld.com> References: <3c55cac1-9222-ce80-4c35-3bf09c077943@fourthworld.com> Message-ID: <98619b58-16a5-b125-857a-cdc8b16b9892@fourthworld.com> This didn't seem to go through - resending: -------- Forwarded Message -------- Subject: Re: Internet date Date: Tue, 1 Nov 2016 11:18:21 -0700 From: Richard Gaskin To: use-livecode at lists.runrev.com J. Landman Gay wrote: > I am surprised that the day and month names aren't in the user's > language though, I thought they would be. It may help to consider the use case most RFCs address. While a developer can choose anything they like to display to a human consumer of information, most RFC-based time/date formats are designed for machine consumption, where consistency is more important than the ever-changing nuances involved in localization. -- 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 Tue Nov 1 14:18:21 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 1 Nov 2016 11:18:21 -0700 Subject: Internet date In-Reply-To: <1582093ccf8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <1582093ccf8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <3c55cac1-9222-ce80-4c35-3bf09c077943@fourthworld.com> J. Landman Gay wrote: > I am surprised that the day and month names aren't in the user's > language though, I thought they would be. It may help to consider the use case most RFCs address. While a developer can choose anything they like to display to a human consumer of information, most RFC-based time/date formats are designed for machine consumption, where consistency is more important than the ever-changing nuances involved in localization. -- 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 peter.brett at livecode.com Tue Nov 1 15:15:37 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Tue, 1 Nov 2016 19:15:37 +0000 Subject: Goofy question about Datagrids In-Reply-To: <6ac4a14c-62ea-4893-b916-607f3d825229@gmail.com> References: <6ac4a14c-62ea-4893-b916-607f3d825229@gmail.com> Message-ID: On 01/11/2016 18:29, Richmond wrote: > What advantage has a datagrid over a tableField? You can build each row of datagrid using any controls or widgets. Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From MikeKerner at roadrunner.com Tue Nov 1 15:22:43 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 1 Nov 2016 15:22:43 -0400 Subject: Goofy question about Datagrids In-Reply-To: References: <6ac4a14c-62ea-4893-b916-607f3d825229@gmail.com> Message-ID: N00bs should also check out modTableField and tableLab (Bernd and Scott, respectively) http://berndniggemann.on-rev.com/modTableField/modTableField_0_1_9.livecode.zip http://forums.livecode.com/download/file.php?id=5458&sid=672cdd04a95bc2c80430bc1bc88b7470 On Tue, Nov 1, 2016 at 3:15 PM, Peter TB Brett wrote: > On 01/11/2016 18:29, Richmond wrote: > >> What advantage has a datagrid over a tableField? >> > > You can build each row of datagrid using any controls or widgets. > > Peter > > -- > Dr Peter Brett > LiveCode Technical Project Manager > > lcb-mode for Emacs: https://github.com/peter-b/lcb-mode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Tue Nov 1 15:27:14 2016 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 1 Nov 2016 21:27:14 +0200 Subject: Trigger Warnings in Livecode postings? Message-ID: <89226c22-cf08-fd77-ccb4-42c3646d7899@gmail.com> Why didn't the "Turkey" e-mail message contain a Trigger Warning so that vegetarians were not traumatised? Richmond. From richmondmathewson at gmail.com Tue Nov 1 15:29:29 2016 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 1 Nov 2016 21:29:29 +0200 Subject: Goofy question about Datagrids In-Reply-To: References: <6ac4a14c-62ea-4893-b916-607f3d825229@gmail.com> Message-ID: <4477a5e7-da4f-76a5-a80e-7199c30dbe68@gmail.com> Possibly . . . But what I really meant was "what advantage does a datagrid have over a tableField vis-a-vis spreadsheet handling?" Sorry; finding it rather difficult to formulate an uneasy feeling I've had about datagrids ever since they were first introduced. Richmond. On 1.11.2016 21:15, Peter TB Brett wrote: > On 01/11/2016 18:29, Richmond wrote: >> What advantage has a datagrid over a tableField? > > You can build each row of datagrid using any controls or widgets. > > Peter > From monte at appisle.net Tue Nov 1 15:37:29 2016 From: monte at appisle.net (Monte Goulding) Date: Wed, 2 Nov 2016 06:37:29 +1100 Subject: short name broken? In-Reply-To: <7ee0b68e-1c5c-e5c9-69e2-15f50039c450@fourthworld.com> References: <7ee0b68e-1c5c-e5c9-69e2-15f50039c450@fourthworld.com> Message-ID: <73B50E41-D9E3-49F4-9704-74947A442D0F@appisle.net> Hi Richard When I was working on lcVCS we discussed this on the engine forums and agreed that the properties -> ?name? should be empty instead of this abbreviated id. So you can use that to work out if there?s no name. I?m still not sure why it?s helpful for the short name to be returned as an abbreviated id instead of empty apart from in the IDE but that is so easy to script it would seem to be a non-issue... Cheers Monte > On 2 Nov. 2016, at 2:15 am, Richard Gaskin wrote: > > In v9 try: > > 1. Create a new field > 2. In the Message Box, run: > > put the short name of last field > > I get the name instead, e.g. "field id 1009". > > IIRC the short name of a field is empty until you set it. When a field is unnamed, "the short name" returns empty and "the name" would return the form shown above, yes? > > Otherwise, we have no way to know when a field has not yet been named. > > -- > 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 bogdanoff at me.com Tue Nov 1 16:27:41 2016 From: bogdanoff at me.com (Peter Bogdanoff) Date: Tue, 01 Nov 2016 13:27:41 -0700 Subject: Trigger Warnings in Livecode postings? In-Reply-To: <89226c22-cf08-fd77-ccb4-42c3646d7899@gmail.com> References: <89226c22-cf08-fd77-ccb4-42c3646d7899@gmail.com> Message-ID: <056BBD83-BE4B-4A2A-AB6F-2FA3475645CD@me.com> You obviously missed the cranberries in the picture. And the asparagus. Something for everyone. That turkey does look good. He obviously did not receive a ?trigger? warning. I?m curious? I assumed Thanksgiving with turkey, etc. was an American holiday only. Has rabid American imperialism taken over Scotland? Or, are there a inordinately large number of Americans in the LC user base who will respond to gastronomic ?trigger" images? Peter On Nov 1, 2016, at 12:27 PM, Richmond wrote: > Why didn't the "Turkey" e-mail message contain a Trigger Warning so > that vegetarians were not traumatised? > > 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 skiplondon at gmail.com Tue Nov 1 16:32:05 2016 From: skiplondon at gmail.com (Skip Kimpel) Date: Tue, 1 Nov 2016 16:32:05 -0400 Subject: Using tsNet for sftp directory file listing In-Reply-To: References: Message-ID: Thanks Richard, This whole tsNet thing has got me all turned around. Of course the example you gave works... I am just trying to figure out how this is all aligning with the future of secured sockets. SKIP On Tue, Nov 1, 2016 at 2:31 PM, Richard Gaskin wrote: > Skip Kimpel wrote: > > > On 29/10/2016 7:52 AM, Richard Gaskin wrote: > >> > >> It's been a while since I've used FTP, but IIRC in previous versions > >> you could just use "get" on a directory and it'll return the file > >> list (note that the trailing "/" is important to let libURL know > >> it's dealing with a directory): > >> > >> get url "ftp://name:pass at server/folder/" > >> > > > > I am still struggling putting this code together correctly. Does > > anybody have any working examples of downloading a single file, via > > sftp protocol? > > The example I gave earlier was for your request to obtain a list of files. > > To download a single file it should be as easy as just using the full path > to the file on the server, and changing "ftp" to "sftp": > > get url ("sftp://name:password at server/folder/file.dat") > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dunbarx at aol.com Tue Nov 1 16:37:55 2016 From: dunbarx at aol.com (dunbarx) Date: Tue, 1 Nov 2016 13:37:55 -0700 (PDT) Subject: Goofy question about Datagrids In-Reply-To: <4477a5e7-da4f-76a5-a80e-7199c30dbe68@gmail.com> References: <6ac4a14c-62ea-4893-b916-607f3d825229@gmail.com> <4477a5e7-da4f-76a5-a80e-7199c30dbe68@gmail.com> Message-ID: <1478032675774-4709967.post@n4.nabble.com> Richmond. Very little, in the narrow sense that you ask the question. They are both tab and return delimited data gadgets. In a table field, like any field, you just put in formatted text. In a DG, you set the dgText (or dgData). At the very lowest level of increased functionality, or at least display nicety, DG's automatically display alternate row colors. I had to script this long ago, with scrolling, before I got my feet wet with DG's. And I think you know just a little about how much farther you can go with a DG if you want to get fancy. Table fields are pretty much WYSIWYG. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Goofy-question-about-Datagrids-tp4709954p4709967.html Sent from the Revolution - User mailing list archive at Nabble.com. From hh at hyperhh.de Tue Nov 1 17:03:47 2016 From: hh at hyperhh.de (hh) Date: Tue, 1 Nov 2016 22:03:47 +0100 Subject: short name broken? Message-ID: <52BABF11-E0C3-4897-AB83-C4F80ABD6E5F@hyperhh.de> If documents/stacks titled "Untitled" is OK, why not objects (short) named "Unnamed"? ;-) From livfoss at mac.com Tue Nov 1 18:27:20 2016 From: livfoss at mac.com (Graham Samuel) Date: Tue, 01 Nov 2016 23:27:20 +0100 Subject: Internet date In-Reply-To: <98619b58-16a5-b125-857a-cdc8b16b9892@fourthworld.com> References: <3c55cac1-9222-ce80-4c35-3bf09c077943@fourthworld.com> <98619b58-16a5-b125-857a-cdc8b16b9892@fourthworld.com> Message-ID: <320C5290-75A2-4F98-B88F-D6B73C736C62@mac.com> Richard, the original of this message ended up in the Junk folder on my Mac with [Virus Error] prefixed to the Subject line. Just FYI Graham > On 1 Nov 2016, at 19:50, Richard Gaskin wrote: > > This didn't seem to go through - resending: > > -------- Forwarded Message -------- > Subject: Re: Internet date > Date: Tue, 1 Nov 2016 11:18:21 -0700 > From: Richard Gaskin > To: use-livecode at lists.runrev.com > > J. Landman Gay wrote: > >> I am surprised that the day and month names aren't in the user's >> language though, I thought they would be. > > It may help to consider the use case most RFCs address. While a developer can choose anything they like to display to a human consumer of information, most RFC-based time/date formats are designed for machine consumption, where consistency is more important than the ever-changing nuances involved in localization. > > -- > 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 benr_mc at cogapp.com Tue Nov 1 18:36:56 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 1 Nov 2016 22:36:56 +0000 Subject: Zealous 'file format' save notifications Message-ID: <22ac2fbf-f506-8bdb-ff1d-cb8e107223fb@cogapp.com> I recently started working with a file from 6.7.11 in 8.1.1. Having carefully set the file format preservation, so that I can continue to work with it back and forth between 6.7.11 and 8.1.1, I now get this message each time I save: The preference to preserve stack file formats is set, however, saving this stack file as version 5.5 will result in data loss. The minimum stack file version for this stack is 7.0. Since the stack came directly from LC 6, this seems implausible. On further investigation I see that there is a new property, the minStackFileVersion. "The minStackFileVersion property is read only and determined by the content of the stack file.", according to the dictionary. Well, that sounds good. But then I read "The minimum stack version reported by the property is 7.0.". How can this be helpful? And if that is how the property is defined, wouldn't it better if saving didn't throw up the above dialog when minStackFileVersion = 7.0, since that should in fact be taken as "not sure" or "doesn't need 8.0". Is there a subtlety here that I'm missing? Ben From monte at appisle.net Tue Nov 1 18:53:16 2016 From: monte at appisle.net (Monte Goulding) Date: Wed, 2 Nov 2016 09:53:16 +1100 Subject: Zealous 'file format' save notifications In-Reply-To: <22ac2fbf-f506-8bdb-ff1d-cb8e107223fb@cogapp.com> References: <22ac2fbf-f506-8bdb-ff1d-cb8e107223fb@cogapp.com> Message-ID: This came about because the cost of determining if a file could be saved back to a pre-7 file version was too high yet the risk of not informing the user they are likely to loose data by doing so was also too high. > On 2 Nov. 2016, at 9:36 am, Ben Rubinstein wrote: > > I recently started working with a file from 6.7.11 in 8.1.1. Having carefully set the file format preservation, so that I can continue to work with it back and forth between 6.7.11 and 8.1.1, I now get this message each time I save: > > The preference to preserve stack file formats is set, > however, saving this stack file as version 5.5 will > result in data loss. The minimum stack file version > for this stack is 7.0. > > Since the stack came directly from LC 6, this seems implausible. > > On further investigation I see that there is a new property, the minStackFileVersion. "The minStackFileVersion property is read only and determined by the content of the stack file.", according to the dictionary. > > Well, that sounds good. But then I read "The minimum stack version reported by the property is 7.0.". > > How can this be helpful? And if that is how the property is defined, wouldn't it better if saving didn't throw up the above dialog when minStackFileVersion = 7.0, since that should in fact be taken as "not sure" or "doesn't need 8.0". > > Is there a subtlety here that I'm missing? > > 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 benr_mc at cogapp.com Tue Nov 1 20:46:27 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 2 Nov 2016 00:46:27 +0000 Subject: Zealous 'file format' save notifications Message-ID: <0e12bd38-5cff-c501-78f4-73196d5a3154@cogapp.com> Monte wrote: > This came about because the cost of determining if a file could be saved back to a pre-7 file version was too high yet the risk of not informing the user they are likely to loose data by doing so was also too high. But teaching people to ignore that dialog, because it appears when they know the warning is false, is also a cost, of a different kind. We have had, I believe, five changes of stack file format to date. We have survived all these years leaving it up to the developer to decide whether to save their stack in a older format. It's a great idea to introduce something which can warn people when they will lose data by saving in an old format. But it's not a great idea to tell people that is the case, when it isn't. The new mechanism will help when people add a widget to a stack saved in a pre-8 format. At some point in the future, it will no doubt also help when they attempt to save a stack in 8.1 format although it uses the 4-dimensional geometry manager. That's enough to be a good thing. It doesn't have to pretend it can do another good thing, which it actually can't. My suggestion would be that the minStackFileVersion can report "unknown" or "unknown, 7.0 or earlier" or similar; and that the save mechanism be adjusted to only display the message "saving this stack file as version x.x will result in data loss" when there's good reason to believe that it's the case. The current arrangement has virtually defeated the purpose of allowing the format to be specified - since every save (and some of use autosave mechanisms) will throw up this misleading dialog; and it undermines the value of the dialog itself, since it teaches users not to believe it. > On 2 Nov. 2016, at 9:36 am, Ben Rubinstein wrote: > > I recently started working with a file from 6.7.11 in 8.1.1. Having > carefully set the file format preservation, so that I can continue to work > with it back and forth between 6.7.11 and 8.1.1, I now get this message each > time I save: > > The preference to preserve stack file formats is set, > however, saving this stack file as version 5.5 will > result in data loss. The minimum stack file version > for this stack is 7.0. > > Since the stack came directly from LC 6, this seems implausible. > > On further investigation I see that there is a new property, the > minStackFileVersion. "The minStackFileVersion property is read only and > determined by the content of the stack file.", according to the > dictionary. > > Well, that sounds good. But then I read "The minimum stack version reported by the property is 7.0.". > > How can this be helpful? And if that is how the property is defined, wouldn't it better if saving didn't throw up the above dialog when minStackFileVersion = 7.0, since that should in fact be taken as "not sure" or "doesn't need 8.0". > > Is there a subtlety here that I'm missing? > > Ben > From richmondmathewson at gmail.com Wed Nov 2 03:34:03 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 2 Nov 2016 09:34:03 +0200 Subject: Trigger Warnings in Livecode postings? In-Reply-To: <056BBD83-BE4B-4A2A-AB6F-2FA3475645CD@me.com> References: <89226c22-cf08-fd77-ccb4-42c3646d7899@gmail.com> <056BBD83-BE4B-4A2A-AB6F-2FA3475645CD@me.com> Message-ID: While I wasn't pulling the wishbone with anyone, I was pulling your leg! Fortunately I don't buy into that Trigger Warning nonsense: just couldn't resist it :) Richmond. On 1.11.2016 22:27, Peter Bogdanoff wrote: > You obviously missed the cranberries in the picture. And the asparagus. Something for everyone. > > That turkey does look good. He obviously did not receive a ?trigger? warning. > > I?m curious? I assumed Thanksgiving with turkey, etc. was an American holiday only. Has rabid American imperialism taken over Scotland? Or, are there a inordinately large number of Americans in the LC user base who will respond to gastronomic ?trigger" images? > > Peter > > On Nov 1, 2016, at 12:27 PM, Richmond wrote: > >> Why didn't the "Turkey" e-mail message contain a Trigger Warning so >> that vegetarians were not traumatised? >> >> 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 bernd.niggemann at uni-wh.de Wed Nov 2 03:47:15 2016 From: bernd.niggemann at uni-wh.de (BNig) Date: Wed, 2 Nov 2016 00:47:15 -0700 (PDT) Subject: Goofy question about Datagrids In-Reply-To: References: <6ac4a14c-62ea-4893-b916-607f3d825229@gmail.com> Message-ID: <1478072835765-4709974.post@n4.nabble.com> Mike Kerner wrote > N00bs should also check out modTableField and tableLab (Bernd and Scott, > respectively) > http://berndniggemann.on-rev.com/modTableField/modTableField_0_1_9.livecode.zip > http://forums.livecode.com/download/file.php?id=5458&sid=672cdd04a95bc2c80430bc1bc88b7470 For modTableField I recommend version 0.3.2 http://berndniggemann.on-rev.com/modTableField/modTableField_0_3_2.zip Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Goofy-question-about-Datagrids-tp4709954p4709974.html Sent from the Revolution - User mailing list archive at Nabble.com. From john.allijn.lc at gmail.com Wed Nov 2 06:53:12 2016 From: john.allijn.lc at gmail.com (John Allijn) Date: Wed, 2 Nov 2016 11:53:12 +0100 Subject: LCServer on Synology DSM Message-ID: <124B488E-73DE-4F87-901C-BB065BD72226@gmail.com> Hi, Has anyone tried running the Livecode server on a Synoloy NAS? I use it as a testserver for webpages and was wondering if it would work (and perform well) on this hardware. From james at thehales.id.au Wed Nov 2 09:13:46 2016 From: james at thehales.id.au (jameshale) Date: Wed, 2 Nov 2016 06:13:46 -0700 (PDT) Subject: Goofy question about Datagrids In-Reply-To: <6ac4a14c-62ea-4893-b916-607f3d825229@gmail.com> References: <6ac4a14c-62ea-4893-b916-607f3d825229@gmail.com> Message-ID: <1478092426630-4709976.post@n4.nabble.com> Interestingly I actually wasn't aware of LC's table field when I was working on the interface of my current app. Given all my previous work with LC was really about utilities that acted on something external and produced something external to the stack. Indeed I rarely made standalones being quite happy to use my tools while in the IDE. When I did think of the table field I saw it as nothing more than a way to display tab delimited text. Where I have needed to use a table "like" field I have also wanted to have something more than just text involved. For example, a checkbox or a radio button. An image or some other control associated with a line of the table. The data grid makes this really quite easy, once you get your head around it. It is really useful to go through the examples in the Data Grid guide (the one included with LC 8.1+, not the one on the LC web site) and just follow along. The examples should all work as they had to be tested in order to create the images to match LC8+'s IDE. It is really worthwhile and doing them, rather than just reading through them takes a lot of the mystery out of the Data Grid and makes you appreciate what a phenomenal job Trevor did in creating it. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Goofy-question-about-Datagrids-tp4709954p4709976.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Wed Nov 2 09:24:32 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 2 Nov 2016 06:24:32 -0700 Subject: LCServer on Synology DSM In-Reply-To: <124B488E-73DE-4F87-901C-BB065BD72226@gmail.com> References: <124B488E-73DE-4F87-901C-BB065BD72226@gmail.com> Message-ID: <7ff99aba-ec6e-db1e-1b37-347da151ace8@fourthworld.com> John Allijn wrote: > Has anyone tried running the Livecode server on a Synoloy NAS? > I use it as a testserver for webpages and was wondering if it would > work (and perform well) on this hardware. Which model? This page shows some Synology boxes using x86, while others use ARM-compatible Marvells: The x86 boxes use Atom, Celeron, and Core i3, and some higher-end models use Xeon, so they should run LC Server well. You may need to add a package or two, depending on what ships in Synology's OS, Disktation Manager (DSM). For ARM it's possible that the LC Server build for Raspberry Pi might work. The most recent build of LC for RPi is 7.0.4, available here: http://downloads.livecode.com/livecode/ It's a Zip archive easily extracted with the zip command in bash. That said, while DSM is Linux-based like Raspbian, I have no clue about dependencies on specific packages which may (or hopefully may not) prevent it from running under DSM. But seems worth giving it a shot - I'd be interested to hear how it goes. -- 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 john.allijn.lc at gmail.com Wed Nov 2 09:58:32 2016 From: john.allijn.lc at gmail.com (John Allijn) Date: Wed, 2 Nov 2016 14:58:32 +0100 Subject: LCServer on Synology DSM In-Reply-To: <7ff99aba-ec6e-db1e-1b37-347da151ace8@fourthworld.com> References: <124B488E-73DE-4F87-901C-BB065BD72226@gmail.com> <7ff99aba-ec6e-db1e-1b37-347da151ace8@fourthworld.com> Message-ID: <50495B6F-6A2F-4831-BE9E-70E07F5551C2@gmail.com> Thanks Richard I'll give it a try :) > Op 2 nov. 2016 om 14:24 heeft Richard Gaskin het volgende geschreven: > > John Allijn wrote: > > > Has anyone tried running the Livecode server on a Synoloy NAS? > > I use it as a testserver for webpages and was wondering if it would > > work (and perform well) on this hardware. > > Which model? This page shows some Synology boxes using x86, while others use ARM-compatible Marvells: > > > The x86 boxes use Atom, Celeron, and Core i3, and some higher-end models use Xeon, so they should run LC Server well. You may need to add a package or two, depending on what ships in Synology's OS, Disktation Manager (DSM). > > For ARM it's possible that the LC Server build for Raspberry Pi might work. > > The most recent build of LC for RPi is 7.0.4, available here: > http://downloads.livecode.com/livecode/ > > It's a Zip archive easily extracted with the zip command in bash. > > That said, while DSM is Linux-based like Raspbian, I have no clue about dependencies on specific packages which may (or hopefully may not) prevent it from running under DSM. > > But seems worth giving it a shot - I'd be interested to hear how it goes. > > -- > 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 skiplondon at gmail.com Wed Nov 2 10:29:14 2016 From: skiplondon at gmail.com (Skip Kimpel) Date: Wed, 2 Nov 2016 10:29:14 -0400 Subject: Performance hit on REPEAT Message-ID: Anybody noticing a performance loss on v8.1.1 and using REPEAT? Seems to be taking an abnormal amount of time to process. Before I start sifting through my code I wanted to see if it was a known issue. SKIP From ambassador at fourthworld.com Wed Nov 2 11:06:14 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 2 Nov 2016 08:06:14 -0700 Subject: Performance hit on REPEAT In-Reply-To: References: Message-ID: Skip Kimpel wrote: > Anybody noticing a performance loss on v8.1.1 and using REPEAT? > Seems to be taking an abnormal amount of time to process. > > Before I start sifting through my code I wanted to see if it was a > known issue. There are many forms of repeat, and the scope of possibilities of what might be happening within the loop unpredictably vast. Posting the code snippet in question will enable us to answer the question. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From brahma at hindu.org Wed Nov 2 11:11:21 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Wed, 2 Nov 2016 15:11:21 +0000 Subject: LCServer on Synology DSM In-Reply-To: <50495B6F-6A2F-4831-BE9E-70E07F5551C2@gmail.com> References: <124B488E-73DE-4F87-901C-BB065BD72226@gmail.com> <7ff99aba-ec6e-db1e-1b37-347da151ace8@fourthworld.com> <50495B6F-6A2F-4831-BE9E-70E07F5551C2@gmail.com> Message-ID: <66A87934-8FA2-4C6D-A54B-5B7889B0D7A9@hindu.org> Please keep us posted. When Apple decided to "end of life" for their big OS X Server. Our net admin here switched to a Synology device as the "Maha" (Great) server on the LAN (15 terrabytes storage or more? not sure exactly.) That change hit hard, because I was running LC Server on top of Apache under on the OS X server.. That said, compared to linux plain vanilla web server? Apple'simple mentation of web framework was horrible, strange paths for CGI, lots of conflicts on the same machine with simple file sharing? it was never very happy camper etc. Every upgrade would break it? But at least I could to a lot of useful things locally by setting up API's on the machine that could access the file system, and users could access thing via the browser and desktop clients using HTTP to talk to the web server on that box e.g. one really cool tool was to use the server's Locate database for custom search engine.. sheesh my LC implementation worked even better than Spotlight? All gone now ? I got a small Lenovo Think box here to set up Ubuntu locally for web services? but no interaction with Synology device because it runs some proprietary flavor of web services?I did not pursue it? On 11/2/16, 3:58 AM, "use-livecode on behalf of John Allijn" wrote: Thanks Richard I'll give it a try :) From bobsneidar at iotecdigital.com Wed Nov 2 11:31:10 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 2 Nov 2016 15:31:10 +0000 Subject: Goofy question about Datagrids In-Reply-To: <4477a5e7-da4f-76a5-a80e-7199c30dbe68@gmail.com> References: <6ac4a14c-62ea-4893-b916-607f3d825229@gmail.com> <4477a5e7-da4f-76a5-a80e-7199c30dbe68@gmail.com> Message-ID: It's my impression that Datagrids make terrible spreadsheets as is. But so does the table field. A LOT of work has to be done on both to get them to act like a spreadsheet. As it turns out, a spreadsheet is a quite complicated thing to implement. If you intend to do calculations, then there is a whole layer of vast complexity unto itself. Relative vs. absolute references? Mixed references? What happens when you insert a cell, row or column? Can you paste data in? How will it format? I can't believe you are shooting for all this complexity, but rather are only trying to create a way to display, and perhaps manipulate tabular data. In that case, I'd go with the table field. Bob S > On Nov 1, 2016, at 12:29 , Richmond wrote: > > Possibly . . . > > But what I really meant was "what advantage does a datagrid have over a tableField vis-a-vis > spreadsheet handling?" > > Sorry; finding it rather difficult to formulate an uneasy feeling I've had about datagrids ever > since they were first introduced. > > Richmond. > From bobsneidar at iotecdigital.com Wed Nov 2 11:39:51 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 2 Nov 2016 15:39:51 +0000 Subject: Internet date In-Reply-To: References: Message-ID: <667B4857-F221-4C56-878D-A2AEBDFEF417@iotecdigital.com> Someone a while back posted an article someone did about implementing global time into their app. By the time he got through all the variations and exceptions between zones, countries, specific territories and states, my head was spinning. Hawaii for instance does not use DST, as is the case for a few other states. China has one time zone for the entire country, despite it covering 5 zones. Imagine stepping across the border in the far west. Bob S On Nov 1, 2016, at 10:48 , Richard Gaskin > wrote: Generally, date/time processing isn't all that hard... From bobsneidar at iotecdigital.com Wed Nov 2 11:45:09 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 2 Nov 2016 15:45:09 +0000 Subject: Trigger Warnings in Livecode postings? In-Reply-To: <056BBD83-BE4B-4A2A-AB6F-2FA3475645CD@me.com> References: <89226c22-cf08-fd77-ccb4-42c3646d7899@gmail.com> <056BBD83-BE4B-4A2A-AB6F-2FA3475645CD@me.com> Message-ID: <172F103C-9D54-4B8A-9128-2B8804289629@iotecdigital.com> I don't think it's anything so complicated. Any excuse to eat turkey will be welcomed by anyone in the global community. Except perhaps, Turks. And the whole point to triggers is to accomodate the vast minority. :-) Bob S On Nov 1, 2016, at 13:27 , Peter Bogdanoff > wrote: I?m curious? I assumed Thanksgiving with turkey, etc. was an American holiday only. Has rabid American imperialism taken over Scotland? Or, are there a inordinately large number of Americans in the LC user base who will respond to gastronomic ?trigger" images? Peter From bobsneidar at iotecdigital.com Wed Nov 2 11:48:55 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 2 Nov 2016 15:48:55 +0000 Subject: Zealous 'file format' save notifications In-Reply-To: References: <22ac2fbf-f506-8bdb-ff1d-cb8e107223fb@cogapp.com> Message-ID: <692D8567-78BA-4AE9-9358-0CC79EE3F37B@iotecdigital.com> Agreed, but I cannot help but be reminded of Microsoft's famous disclaimer that downloading a file ending in .doc, .xls or .pptp is "inherently dangerous". ;-) Bob S On Nov 1, 2016, at 15:53 , Monte Goulding > wrote: This came about because the cost of determining if a file could be saved back to a pre-7 file version was too high yet the risk of not informing the user they are likely to loose data by doing so was also too high. From bobsneidar at iotecdigital.com Wed Nov 2 11:51:08 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 2 Nov 2016 15:51:08 +0000 Subject: Zealous 'file format' save notifications In-Reply-To: <0e12bd38-5cff-c501-78f4-73196d5a3154@cogapp.com> References: <0e12bd38-5cff-c501-78f4-73196d5a3154@cogapp.com> Message-ID: If a developer has no backup of his files before proceeding on so treacherous an endeavor, so fraught with peril as saving a file in an older format, well then that developer may get what he deserves. ;-) Bob S On Nov 1, 2016, at 17:46 , Ben Rubinstein > wrote: Monte wrote: This came about because the cost of determining if a file could be saved back to a pre-7 file version was too high yet the risk of not informing the user they are likely to loose data by doing so was also too high. But teaching people to ignore that dialog, because it appears when they know the warning is false, is also a cost, of a different kind. We have had, I believe, five changes of stack file format to date. We have survived all these years leaving it up to the developer to decide whether to save their stack in a older format. From hh at hyperhh.de Wed Nov 2 12:38:44 2016 From: hh at hyperhh.de (hh) Date: Wed, 2 Nov 2016 17:38:44 +0100 Subject: Adding Effects to widgets Message-ID: <0DA4E398-9D10-4BC9-B1AA-E6B9F9002B35@hyperhh.de> > > BR wrote: > > Drop Shadow Not Available on SVG widget > Jeanne D. wrote: > Can you put it in a group and set a drop shadow for the group? This is a real smart trick: Grouping (one or more) widgets. Not only for "adding" bitmap-effects to the widget, also for astounding visual effects by certain combinations of the widget's ink and the group's ink. Allows very 'personalized' appearance of widgets. From richmondmathewson at gmail.com Wed Nov 2 12:44:57 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 2 Nov 2016 18:44:57 +0200 Subject: Trigger Warnings in Livecode postings? In-Reply-To: <172F103C-9D54-4B8A-9128-2B8804289629@iotecdigital.com> References: <89226c22-cf08-fd77-ccb4-42c3646d7899@gmail.com> <056BBD83-BE4B-4A2A-AB6F-2FA3475645CD@me.com> <172F103C-9D54-4B8A-9128-2B8804289629@iotecdigital.com> Message-ID: <2d3bc9e5-3b81-2ebd-7ade-68a00ec83ae0@gmail.com> With no trigger warnings there is a risk that vegetarians might begin salivating; and that just wouldn't do. Richmond. On 2.11.2016 17:45, Bob Sneidar wrote: > I don't think it's anything so complicated. Any excuse to eat turkey will be welcomed by anyone in the global community. Except perhaps, Turks. And the whole point to triggers is to accomodate the vast minority. :-) > > Bob S > > > On Nov 1, 2016, at 13:27 , Peter Bogdanoff > wrote: > > I?m curious? I assumed Thanksgiving with turkey, etc. was an American holiday only. Has rabid American imperialism taken over Scotland? Or, are there a inordinately large number of Americans in the LC user base who will respond to gastronomic ?trigger" images? > > Peter > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 2 12:53:26 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 2 Nov 2016 09:53:26 -0700 Subject: Internet date In-Reply-To: <667B4857-F221-4C56-878D-A2AEBDFEF417@iotecdigital.com> References: <667B4857-F221-4C56-878D-A2AEBDFEF417@iotecdigital.com> Message-ID: <0ff9da17-d072-dea0-2341-926e58f3a709@fourthworld.com> Bob Sneidar wrote: > On Nov 1, 2016, at 10:48 , Richard Gaskin wrote: > > Generally, > date/time processing isn't all that hard... That wasn't me. That was me quoting someone else, to which I replied: ...it's just not a trivial thing to do. I've read enough of Kay's good links on the subject to know better. :) -- 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 peter.brett at livecode.com Wed Nov 2 12:54:43 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Wed, 2 Nov 2016 16:54:43 +0000 Subject: Trigger Warnings in Livecode postings? In-Reply-To: <2d3bc9e5-3b81-2ebd-7ade-68a00ec83ae0@gmail.com> References: <89226c22-cf08-fd77-ccb4-42c3646d7899@gmail.com> <056BBD83-BE4B-4A2A-AB6F-2FA3475645CD@me.com> <172F103C-9D54-4B8A-9128-2B8804289629@iotecdigital.com> <2d3bc9e5-3b81-2ebd-7ade-68a00ec83ae0@gmail.com> Message-ID: Hi all, This thread is getting increasingly off topic, so please end it here. Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From ambassador at fourthworld.com Wed Nov 2 13:01:46 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 2 Nov 2016 10:01:46 -0700 Subject: LCServer on Synology DSM In-Reply-To: <66A87934-8FA2-4C6D-A54B-5B7889B0D7A9@hindu.org> References: <66A87934-8FA2-4C6D-A54B-5B7889B0D7A9@hindu.org> Message-ID: <32eaaad6-63e3-17fb-edda-7488129d8794@fourthworld.com> Sannyasin Brahmanathaswami wrote: > When Apple decided to "end of life" for their big OS X Server. > Our net admin here switched to a Synology device as the "Maha" > (Great) server on the LAN (15 terrabytes storage or more? not > sure exactly.) > > That change hit hard, because I was running LC Server on top > of Apache under on the OS X server.. That said, compared to > linux plain vanilla web server? Apple'simple mentation of web > framework was horrible, strange paths for CGI, lots of conflicts > on the same machine with simple file sharing? it was never very > happy camper etc. Every upgrade would break it? > > But at least I could to a lot of useful things locally by setting > up API's on the machine that could access the file system, and > users could access thing via the browser and desktop clients > using HTTP to talk to the web server on that box e.g. one really > cool tool was to use the server's Locate database for custom > search engine.. sheesh my LC implementation worked even better > than Spotlight? > > All gone now ? I got a small Lenovo Think box here to set up > Ubuntu locally for web services? but no interaction with Synology > device because it runs some proprietary flavor of web services >?I did not pursue it? When I was first looking for a file sharing solution I looked into NASes, even FreeNAS. But ultimately I was hoping to find something more than file sharing, something that sync local folders and provides extensible services as well. And ideally it would run under Ubuntu on the same server I use for other things, rather than require me to get a new box with separate drives for the OS and file storage. And that's when I found Nextcloud (formerly ownCloud): https://nextcloud.com/ Runs under Apache on just about any Linux system, so I can run it alongside LC Server or anything else, all on one box. Native clients for Mac, Windows, and Linux mean my LiveCode Plugins folder is always up to date on every machine I use. And native clients on iOS and Android mean my ebook collection is also in sync. And then there's the build-in support for viewing and editing OpenOffice documents, shared calendar and other apps, a good third-party API for more apps, flexible account management, and so much more..... -- 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 roger.e.eller at sealedair.com Wed Nov 2 13:15:06 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 2 Nov 2016 13:15:06 -0400 Subject: Goofy question about Datagrids In-Reply-To: References: <6ac4a14c-62ea-4893-b916-607f3d825229@gmail.com> <4477a5e7-da4f-76a5-a80e-7199c30dbe68@gmail.com> Message-ID: If you want to total a column in a simple table field, assuming column 8, this is my long-winded approach. on mouseUp set the itemDel to TAB constant tColumn = 8 constant tFieldName = "myFakeSpreadsheet" put the number of lines of fld tFieldName into tLineCount if line -1 of fld tFieldName contains "TOTALS:" then delete line -1 of fld tFieldName put cr & "TOTALS:" after fld tFieldName else put cr & "TOTALS:" after fld tFieldName end if repeat for each line thisLine in fld tFieldName put item tColumn of thisLine & comma after tListOfNumbers end repeat put sum(tListOfNumbers) into tTotal put tTotal into item tColumn of line -1 of fld tFieldName end mouseUp ~Roger On Wed, Nov 2, 2016 at 11:31 AM, Bob Sneidar wrote: > It's my impression that Datagrids make terrible spreadsheets as is. But so > does the table field. A LOT of work has to be done on both to get them to > act like a spreadsheet. As it turns out, a spreadsheet is a quite > complicated thing to implement. If you intend to do calculations, then > there is a whole layer of vast complexity unto itself. Relative vs. > absolute references? Mixed references? What happens when you insert a cell, > row or column? Can you paste data in? How will it format? > > I can't believe you are shooting for all this complexity, but rather are > only trying to create a way to display, and perhaps manipulate tabular > data. In that case, I'd go with the table field. > > Bob S > > > > On Nov 1, 2016, at 12:29 , Richmond wrote: > > > > Possibly . . . > > > > But what I really meant was "what advantage does a datagrid have over a > tableField vis-a-vis > > spreadsheet handling?" > > > > Sorry; finding it rather difficult to formulate an uneasy feeling I've > had about datagrids ever > > since they were first introduced. > > > > 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 sritcp at gmail.com Wed Nov 2 13:21:44 2016 From: sritcp at gmail.com (Sri) Date: Wed, 2 Nov 2016 10:21:44 -0700 (PDT) Subject: Goofy question about Datagrids In-Reply-To: <6ac4a14c-62ea-4893-b916-607f3d825229@gmail.com> References: <6ac4a14c-62ea-4893-b916-607f3d825229@gmail.com> Message-ID: <1478107304688-4709993.post@n4.nabble.com> 1. The underlying data structure is in the form of an array (dgData). So, anytime there is frequent access to edit, calculate, and re-display results, array will have an edge over list. This would be even better if LC introduced additional array manipulation commands such as (multidimensional) matrix multiplication, etc. 2. Individual columns can be populated using their own rules (FillinData). Thus, it is possible, say, to color a row green if the email column of the row data contains "richmond" 3. Since you can have buttons, checkboxes, images, graphics, etc., in a cell (not just text), you can have different tools show up in a cell (column-row) depending on the value of an entry in a different cell in that row. 4. All this with DG table. DG form can do much more, but is not comparable to a spreadsheet and so is not relevant to your query. Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Goofy-question-about-Datagrids-tp4709954p4709993.html Sent from the Revolution - User mailing list archive at Nabble.com. From john.allijn.lc at gmail.com Wed Nov 2 14:03:46 2016 From: john.allijn.lc at gmail.com (John Allijn) Date: Wed, 2 Nov 2016 19:03:46 +0100 Subject: LCServer on Synology DSM In-Reply-To: <32eaaad6-63e3-17fb-edda-7488129d8794@fourthworld.com> References: <66A87934-8FA2-4C6D-A54B-5B7889B0D7A9@hindu.org> <32eaaad6-63e3-17fb-edda-7488129d8794@fourthworld.com> Message-ID: <0094EC20-A57D-4A84-B127-3482E78EA823@gmail.com> The dsm software has improved a lot since in the last two years. I use my DS212j for files storage (it even runs owncloud) and a number of cloud apps. Apache works fine, as does wordpress. It would be nice if I could get LCserver to run. It would than be a really complete test environment. I'll give it a try. Maybe it could help others as well and be an extra platform for other hobbyists like me :) > Op 2 nov. 2016 om 18:01 heeft Richard Gaskin het volgende geschreven: > > Sannyasin Brahmanathaswami wrote: > > > When Apple decided to "end of life" for their big OS X Server. > > Our net admin here switched to a Synology device as the "Maha" > > (Great) server on the LAN (15 terrabytes storage or more? not > > sure exactly.) > > > > That change hit hard, because I was running LC Server on top > > of Apache under on the OS X server.. That said, compared to > > linux plain vanilla web server? Apple'simple mentation of web > > framework was horrible, strange paths for CGI, lots of conflicts > > on the same machine with simple file sharing? it was never very > > happy camper etc. Every upgrade would break it? > > > > But at least I could to a lot of useful things locally by setting > > up API's on the machine that could access the file system, and > > users could access thing via the browser and desktop clients > > using HTTP to talk to the web server on that box e.g. one really > > cool tool was to use the server's Locate database for custom > > search engine.. sheesh my LC implementation worked even better > > than Spotlight? > > > > All gone now ? I got a small Lenovo Think box here to set up > > Ubuntu locally for web services? but no interaction with Synology > > device because it runs some proprietary flavor of web services > >?I did not pursue it? > > When I was first looking for a file sharing solution I looked into NASes, even FreeNAS. > > But ultimately I was hoping to find something more than file sharing, something that sync local folders and provides extensible services as well. And ideally it would run under Ubuntu on the same server I use for other things, rather than require me to get a new box with separate drives for the OS and file storage. > > And that's when I found Nextcloud (formerly ownCloud): > https://nextcloud.com/ > > Runs under Apache on just about any Linux system, so I can run it alongside LC Server or anything else, all on one box. Native clients for Mac, Windows, and Linux mean my LiveCode Plugins folder is always up to date on every machine I use. And native clients on iOS and Android mean my ebook collection is also in sync. > > And then there's the build-in support for viewing and editing OpenOffice documents, shared calendar and other apps, a good third-party API for more apps, flexible account management, and so much more..... > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Nov 2 14:20:31 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 2 Nov 2016 18:20:31 +0000 Subject: Goofy question about Datagrids In-Reply-To: <1478107304688-4709993.post@n4.nabble.com> References: <6ac4a14c-62ea-4893-b916-607f3d825229@gmail.com> <1478107304688-4709993.post@n4.nabble.com> Message-ID: This is something I want to look into. I store datetime data in "international" format, but I want to display it in a kind of short date/time format. Currently I run the datagrid array through some functions for doing that, but it might be advantageous to have the datagrid library do this for me. Trick is, I need to reconvert it going back out, so I would need to display a value one way while leaving the underlying format as is. Bob S On Nov 2, 2016, at 10:21 , Sri > wrote: 2. Individual columns can be populated using their own rules (FillinData). Thus, it is possible, say, to color a row green if the email column of the row data contains "richmond" From ambassador at fourthworld.com Wed Nov 2 15:07:19 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 2 Nov 2016 12:07:19 -0700 Subject: LCServer on Synology DSM In-Reply-To: <0094EC20-A57D-4A84-B127-3482E78EA823@gmail.com> References: <0094EC20-A57D-4A84-B127-3482E78EA823@gmail.com> Message-ID: <89ea4d99-9b6b-ccc2-79da-ab1034868e4e@fourthworld.com> John Allijn wrote: > The dsm software has improved a lot since in the last two years. > I use my DS212j for files storage (it even runs owncloud) and a > number of cloud apps. Apache works fine, as does wordpress. It > would be nice if I could get LCserver to run. It would than be > a really complete test environment. > I'll give it a try. Maybe it could help others as well and be > an extra platform for other hobbyists like me :) Thanks for that background. I knew Synology NASes were more open than most of the consumer solutions, but I hadn't realized just how open they are. Very good to know. Seems like a very flexible toolkit. Now you've got me window shopping at Newegg.... :) -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dunbarx at aol.com Wed Nov 2 15:27:22 2016 From: dunbarx at aol.com (dunbarx) Date: Wed, 2 Nov 2016 12:27:22 -0700 (PDT) Subject: Goofy question about Datagrids In-Reply-To: References: <6ac4a14c-62ea-4893-b916-607f3d825229@gmail.com> <1478107304688-4709993.post@n4.nabble.com> Message-ID: <1478114842776-4709997.post@n4.nabble.com> DG's have individual fields at each "cell". You could store any custom formats representing the displayed values in a custom property of the relevant field, and extract that string instead of the visible one. Of course, this could be managed in the group script as well, since those fields respond to "the target". It is all made in LC, after all. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Goofy-question-about-Datagrids-tp4709954p4709997.html Sent from the Revolution - User mailing list archive at Nabble.com. From sritcp at gmail.com Wed Nov 2 16:21:15 2016 From: sritcp at gmail.com (Sri) Date: Wed, 2 Nov 2016 13:21:15 -0700 (PDT) Subject: Goofy question about Datagrids In-Reply-To: References: <6ac4a14c-62ea-4893-b916-607f3d825229@gmail.com> <1478107304688-4709993.post@n4.nabble.com> Message-ID: <1478118075696-4709998.post@n4.nabble.com> Bob Sneidar-2 wrote > I store datetime data in "international" format, but I want to display it > in a kind of short date/time format. .............. I would need to > display a value one way while leaving the underlying format as is. > > Bob S on FillinData pData set the text of me to fConvert(pData) end FillinData function fConvert pDate /*convert the original format to display format*/ end fConvert Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Goofy-question-about-Datagrids-tp4709954p4709998.html Sent from the Revolution - User mailing list archive at Nabble.com. From bobsneidar at iotecdigital.com Wed Nov 2 19:32:30 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 2 Nov 2016 23:32:30 +0000 Subject: Goofy question about Datagrids In-Reply-To: <1478118075696-4709998.post@n4.nabble.com> References: <6ac4a14c-62ea-4893-b916-607f3d825229@gmail.com> <1478107304688-4709993.post@n4.nabble.com> <1478118075696-4709998.post@n4.nabble.com> Message-ID: Thanks I'll give that a try. Bob S On Nov 2, 2016, at 13:21 , Sri > wrote: on FillinData pData set the text of me to fConvert(pData) end FillinData function fConvert pDate /*convert the original format to display format*/ end fConvert Regards, Sri From sritcp at gmail.com Wed Nov 2 19:30:54 2016 From: sritcp at gmail.com (Sri) Date: Wed, 2 Nov 2016 16:30:54 -0700 (PDT) Subject: Goofy question about Datagrids In-Reply-To: References: <6ac4a14c-62ea-4893-b916-607f3d825229@gmail.com> <1478107304688-4709993.post@n4.nabble.com> <1478118075696-4709998.post@n4.nabble.com> Message-ID: <1478129454734-4710000.post@n4.nabble.com> Hi Bob: Make it set the text of field 1 of me to ............ just to be sure. You can have a group of more than one object in the cell. Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Goofy-question-about-Datagrids-tp4709954p4710000.html Sent from the Revolution - User mailing list archive at Nabble.com. From mark at livecode.com Thu Nov 3 04:42:26 2016 From: mark at livecode.com (Mark Waddingham) Date: Thu, 03 Nov 2016 09:42:26 +0100 Subject: short name =?UTF-8?Q?broken=3F?= In-Reply-To: References: <1478013396562-4709940.post@n4.nabble.com> Message-ID: On 2016-11-01 19:12, Richard Gaskin wrote: > You're absolutely right. When in doubt I check the > Winkler-Kamins-DeVoto reference, and indeed they verify that all name > queries will return a value, even when the property itself is empty. > When using "the short name" on an unnamed object, WKD says it should > return the ID form, as LC currently does. I must confess I struggle to find any reasonable logic behind the current behavior of 'the short name' when the actual name of the object is empty. Indeed, I'd suggest that it is actually a bug (well, I guess 'anomaly' by our current definition). As 'the short name' is not meant to return a control reference, it is slightly unsettling that it does return a control reference in one case. Furthermore, one would hope that the following would always be true: the short name of (control (the short name of tControl)) is the short name of tControl However, if tControl has an empty name, then this actually throws an error - breaking what would appear to be a perfectly valid invariant. Of course, I guess the motivation here is that 'you shouldn't reference unnamed objects by name' (presumably because objects are generally unnamed until explicitly named, and thus you get a lots of objects with the empty name making it usually ambiguous). However, given that it probably just as frequent to get multiple objects with the same name (e.g. lots of buttons with name 'button'); I'm not sure the empty name should be considered specially. Anyway, it is the way it has always been, as you rightly point out. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From john.allijn.lc at gmail.com Thu Nov 3 04:57:09 2016 From: john.allijn.lc at gmail.com (John Allijn) Date: Thu, 3 Nov 2016 09:57:09 +0100 Subject: iOS simulator not found after updating LC and Xcode Message-ID: <0492F5E4-DD79-4C0A-996B-1EC8A10E737C@gmail.com> Hi, Yesterday I updated Xcode to 8.1 and LiveCode to version 8.1.1 and now LiveCode can?t find any simulators for iOS. In the Livecode preferences the list with simulators is empty. When I click Add Entry and select the new Xcode app, it gives an error: "The chosen folder is not a valid iOS SDK. Selected Xcode must have an iOS SDK among: 6.1, 7.1, 8.2, 9.2 and 10.0? When I look in Xcode though, I have iOS 9.1 and iOS 9.2 installed. I can also see the installed SDK?s in the /developer folder on my mac but When I click ?Add Entry? these simulators and their parent folders are not selectable (grayed out) Am I doing something wrong? From th.douez at gmail.com Thu Nov 3 05:07:32 2016 From: th.douez at gmail.com (Thierry Douez) Date: Thu, 3 Nov 2016 10:07:32 +0100 Subject: iOS simulator not found after updating LC and Xcode In-Reply-To: <0492F5E4-DD79-4C0A-996B-1EC8A10E737C@gmail.com> References: <0492F5E4-DD79-4C0A-996B-1EC8A10E737C@gmail.com> Message-ID: Mmm, not sure as I'm far away from my computer, but I think you need Xcode 8 ! not 8.1. Hope someone else could confirm... Regards, Thierry 2016-11-03 9:57 GMT+01:00 John Allijn : > Hi, > Yesterday I updated Xcode to 8.1 and LiveCode to version 8.1.1 and now > LiveCode can?t find any simulators for iOS. > In the Livecode preferences the list with simulators is empty. When I > click Add Entry and select the new Xcode app, it gives an error: > > "The chosen folder is not a valid iOS SDK. Selected Xcode must have an iOS > SDK among: 6.1, 7.1, 8.2, 9.2 and 10.0? > > When I look in Xcode though, I have iOS 9.1 and iOS 9.2 installed. > I can also see the installed SDK?s in the /developer folder on my mac but > When I click ?Add Entry? these simulators and their parent folders are not > selectable (grayed out) > > Am I doing something wrong? > From john.allijn.lc at gmail.com Thu Nov 3 05:19:21 2016 From: john.allijn.lc at gmail.com (John Allijn) Date: Thu, 3 Nov 2016 10:19:21 +0100 Subject: iOS simulator not found after updating LC and Xcode In-Reply-To: References: <0492F5E4-DD79-4C0A-996B-1EC8A10E737C@gmail.com> Message-ID: <33591349-CB65-4DCD-AB3B-F30C8192D40E@gmail.com> Yes, 8.0 used to work just fine but I thought it would be a good idea to bring everything up to date... > Op 3 nov. 2016 om 10:07 heeft Thierry Douez het volgende geschreven: > > Mmm, not sure as I'm far away from my computer, > but I think you need Xcode 8 ! not 8.1. > > Hope someone else could confirm... > > Regards, > > Thierry > > > > 2016-11-03 9:57 GMT+01:00 John Allijn : > >> Hi, >> Yesterday I updated Xcode to 8.1 and LiveCode to version 8.1.1 and now >> LiveCode can?t find any simulators for iOS. >> In the Livecode preferences the list with simulators is empty. When I >> click Add Entry and select the new Xcode app, it gives an error: >> >> "The chosen folder is not a valid iOS SDK. Selected Xcode must have an iOS >> SDK among: 6.1, 7.1, 8.2, 9.2 and 10.0? >> >> When I look in Xcode though, I have iOS 9.1 and iOS 9.2 installed. >> I can also see the installed SDK?s in the /developer folder on my mac but >> When I click ?Add Entry? these simulators and their parent folders are not >> selectable (grayed out) >> >> Am I doing something wrong? >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From john.allijn.lc at gmail.com Thu Nov 3 05:32:33 2016 From: john.allijn.lc at gmail.com (John Allijn) Date: Thu, 3 Nov 2016 10:32:33 +0100 Subject: iOS simulator not found after updating LC and Xcode In-Reply-To: References: <0492F5E4-DD79-4C0A-996B-1EC8A10E737C@gmail.com> Message-ID: <60DED794-5605-4172-9B81-B7EDB7A78B12@gmail.com> Installing livecode 9.0.0 DP1 does not fix it. I'm now downloadind the ios10.0 simulator. Maybe that helps... > Op 3 nov. 2016 om 10:07 heeft Thierry Douez het volgende geschreven: > > Mmm, not sure as I'm far away from my computer, > but I think you need Xcode 8 ! not 8.1. > > Hope someone else could confirm... > > Regards, > > Thierry > > > > 2016-11-03 9:57 GMT+01:00 John Allijn : > >> Hi, >> Yesterday I updated Xcode to 8.1 and LiveCode to version 8.1.1 and now >> LiveCode can?t find any simulators for iOS. >> In the Livecode preferences the list with simulators is empty. When I >> click Add Entry and select the new Xcode app, it gives an error: >> >> "The chosen folder is not a valid iOS SDK. Selected Xcode must have an iOS >> SDK among: 6.1, 7.1, 8.2, 9.2 and 10.0? >> >> When I look in Xcode though, I have iOS 9.1 and iOS 9.2 installed. >> I can also see the installed SDK?s in the /developer folder on my mac but >> When I click ?Add Entry? these simulators and their parent folders are not >> selectable (grayed out) >> >> Am I doing something wrong? >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dave at applicationinsight.com Thu Nov 3 06:05:31 2016 From: dave at applicationinsight.com (Dave Kilroy) Date: Thu, 3 Nov 2016 10:05:31 +0000 Subject: iOS simulator not found after updating LC and Xcode Message-ID: <693D74E3-5074-4B0B-A829-411DAC3D6A3E@applicationinsight.com> Yep Thierry is right - still too early to use Xcode 8.1.1 BTW if you?re going to have multiple versions of Xcode on you machine (which is a sensible thing to do if you?re going to have multiple versions of LiveCode on your machine) the safest way of doing this is to have each of them in their own folder in the Applications folder rather than renaming the .app bundle to something like ?Xcode811.app? Dave > Mmm, not sure as I'm far away from my computer, > but I think you need Xcode 8 ! not 8.1. > > Hope someone else could confirm... > > Regards, > > Thierry > > > > 2016-11-03 9:57 GMT+01:00 John Allijn <[hidden email] >: > > > Hi, > > Yesterday I updated Xcode to 8.1 and LiveCode to version 8.1.1 and now > > LiveCode can?t find any simulators for iOS. > > In the Livecode preferences the list with simulators is empty. When I > > click Add Entry and select the new Xcode app, it gives an error: > > > > "The chosen folder is not a valid iOS SDK. Selected Xcode must have an iOS > > SDK among: 6.1, 7.1, 8.2, 9.2 and 10.0? > > > > When I look in Xcode though, I have iOS 9.1 and iOS 9.2 installed. > > I can also see the installed SDK?s in the /developer folder on my mac but > > When I click ?Add Entry? these simulators and their parent folders are not > > selectable (grayed out) > > > > Am I doing something wrong? > > From dave at applicationinsight.com Thu Nov 3 06:09:17 2016 From: dave at applicationinsight.com (Dave Kilroy) Date: Thu, 3 Nov 2016 10:09:17 +0000 Subject: iOS simulator not found after updating LC and Xcode References: <693D74E3-5074-4B0B-A829-411DAC3D6A3E@applicationinsight.com> Message-ID: Ach - I should have written ?Xcode 8.1? and ?Xcode81.app" > Begin forwarded message: > > From: Dave Kilroy > Subject: Re: iOS simulator not found after updating LC and Xcode > Date: 3 November 2016 at 10:05:31 GMT > To: How to use LiveCode > > Yep Thierry is right - still too early to use Xcode 8.1.1 > > BTW if you?re going to have multiple versions of Xcode on you machine (which is a sensible thing to do if you?re going to have multiple versions of LiveCode on your machine) the safest way of doing this is to have each of them in their own folder in the Applications folder rather than renaming the .app bundle to something like ?Xcode811.app? > > Dave > > >> Mmm, not sure as I'm far away from my computer, >> but I think you need Xcode 8 ! not 8.1. >> >> Hope someone else could confirm... >> >> Regards, >> >> Thierry >> >> >> >> 2016-11-03 9:57 GMT+01:00 John Allijn <[hidden email] >: >> >> > Hi, >> > Yesterday I updated Xcode to 8.1 and LiveCode to version 8.1.1 and now >> > LiveCode can?t find any simulators for iOS. >> > In the Livecode preferences the list with simulators is empty. When I >> > click Add Entry and select the new Xcode app, it gives an error: >> > >> > "The chosen folder is not a valid iOS SDK. Selected Xcode must have an iOS >> > SDK among: 6.1, 7.1, 8.2, 9.2 and 10.0? >> > >> > When I look in Xcode though, I have iOS 9.1 and iOS 9.2 installed. >> > I can also see the installed SDK?s in the /developer folder on my mac but >> > When I click ?Add Entry? these simulators and their parent folders are not >> > selectable (grayed out) >> > >> > Am I doing something wrong? >> > > From iowahengst at mac.com Thu Nov 3 09:22:14 2016 From: iowahengst at mac.com (Randy Hengst) Date: Thu, 03 Nov 2016 08:22:14 -0500 Subject: Apps on iPad Pro Message-ID: <1C1DCA41-F89B-4C18-831A-8C346000A7B3@mac.com> Hi All, This message is more of an FYI than a request for help. I had the chance yesterday for the first time to look at several of my apps on a 12.9?inch iPad Pro. They were downloaded from the app store. The iPad was using iOS 10.01. I?m afraid my development notes didn?t include which version of LC I used to build the app. But, it was accepted on July 27, 2014? so, it was probably LC 6.6.2 When I first opened the app on the iPad Pro I saw this alert: ?Line em Up? May Slow Down Your iPad. The developer of this app needs to update it to improve its compatibility. Apps I updated this summer did not show that alert. I used LC8.0 for those builds. I do not see that alert on other iPads running the same iOS or an earlier one. be well, randy Randy Hengst www.classroomFocusedSoftware.com From bobsneidar at iotecdigital.com Thu Nov 3 10:37:20 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 3 Nov 2016 14:37:20 +0000 Subject: iOS simulator not found after updating LC and Xcode In-Reply-To: <33591349-CB65-4DCD-AB3B-F30C8192D40E@gmail.com> References: <0492F5E4-DD79-4C0A-996B-1EC8A10E737C@gmail.com> <33591349-CB65-4DCD-AB3B-F30C8192D40E@gmail.com> Message-ID: <6A891065-21C5-49D2-AB69-6C0F45DC34C9@iotecdigital.com> When it comes to Xcode, this is almost never the case. What I have gotten from all the iOS posts in this forum, keeping LC and Xcode in sync is far more important than having either/both up to date. Which version works with which should probably be published in a document, and maybe already has been. Bob S > On Nov 3, 2016, at 02:19 , John Allijn wrote: > > Yes, 8.0 used to work just fine but I thought it would be a good idea to bring everything up to date... > >> Op 3 nov. 2016 om 10:07 heeft Thierry Douez het volgende geschreven: >> >> Mmm, not sure as I'm far away from my computer, >> but I think you need Xcode 8 ! not 8.1. >> >> Hope someone else could confirm... >> >> Regards, >> >> Thierry >> >> >> >> 2016-11-03 9:57 GMT+01:00 John Allijn : >> >>> Hi, >>> Yesterday I updated Xcode to 8.1 and LiveCode to version 8.1.1 and now >>> LiveCode can?t find any simulators for iOS. >>> In the Livecode preferences the list with simulators is empty. When I >>> click Add Entry and select the new Xcode app, it gives an error: >>> >>> "The chosen folder is not a valid iOS SDK. Selected Xcode must have an iOS >>> SDK among: 6.1, 7.1, 8.2, 9.2 and 10.0? >>> >>> When I look in Xcode though, I have iOS 9.1 and iOS 9.2 installed. >>> I can also see the installed SDK?s in the /developer folder on my mac but >>> When I click ?Add Entry? these simulators and their parent folders are not >>> selectable (grayed out) >>> >>> Am I doing something wrong? >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From peter.brett at livecode.com Thu Nov 3 10:44:58 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Thu, 3 Nov 2016 14:44:58 +0000 Subject: iOS simulator not found after updating LC and Xcode In-Reply-To: <6A891065-21C5-49D2-AB69-6C0F45DC34C9@iotecdigital.com> References: <0492F5E4-DD79-4C0A-996B-1EC8A10E737C@gmail.com> <33591349-CB65-4DCD-AB3B-F30C8192D40E@gmail.com> <6A891065-21C5-49D2-AB69-6C0F45DC34C9@iotecdigital.com> Message-ID: On 03/11/2016 14:37, Bob Sneidar wrote: > When it comes to Xcode, this is almost never the case. What I have > gotten from all the iOS posts in this forum, keeping LC and Xcode in > sync is far more important than having either/both up to date. Which > version works with which should probably be published in a document, > and maybe already has been. > This information is always included in the release notes for LiveCode. Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From th.douez at gmail.com Thu Nov 3 10:45:21 2016 From: th.douez at gmail.com (Thierry Douez) Date: Thu, 3 Nov 2016 15:45:21 +0100 Subject: iOS simulator not found after updating LC and Xcode In-Reply-To: <6A891065-21C5-49D2-AB69-6C0F45DC34C9@iotecdigital.com> References: <0492F5E4-DD79-4C0A-996B-1EC8A10E737C@gmail.com> <33591349-CB65-4DCD-AB3B-F30C8192D40E@gmail.com> <6A891065-21C5-49D2-AB69-6C0F45DC34C9@iotecdigital.com> Message-ID: 2016-11-03 15:37 GMT+01:00 Bob Sneidar : > Which version works with which should probably be published in a document, > and maybe already has been. > ?Hi Bob, There is one place:? https://livecode.com/resources/support/ask-a-question/ ?but it needs to be updated too :) ? ?Thierry ? From bobsneidar at iotecdigital.com Thu Nov 3 10:53:38 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 3 Nov 2016 14:53:38 +0000 Subject: iOS simulator not found after updating LC and Xcode In-Reply-To: References: <0492F5E4-DD79-4C0A-996B-1EC8A10E737C@gmail.com> <33591349-CB65-4DCD-AB3B-F30C8192D40E@gmail.com> <6A891065-21C5-49D2-AB69-6C0F45DC34C9@iotecdigital.com> Message-ID: There ya go! :-) Bob S On Nov 3, 2016, at 07:44 , Peter TB Brett > wrote: Which version works with which should probably be published in a document, and maybe already has been. This information is always included in the release notes for LiveCode. Peter -- Dr Peter Brett > LiveCode Technical Project Manager From john.allijn.lc at gmail.com Thu Nov 3 10:54:22 2016 From: john.allijn.lc at gmail.com (John Allijn) Date: Thu, 3 Nov 2016 15:54:22 +0100 Subject: iOS simulator not found after updating LC and Xcode In-Reply-To: References: <0492F5E4-DD79-4C0A-996B-1EC8A10E737C@gmail.com> <33591349-CB65-4DCD-AB3B-F30C8192D40E@gmail.com> <6A891065-21C5-49D2-AB69-6C0F45DC34C9@iotecdigital.com> Message-ID: Thanks for the info. Xcode was upgraded, so the old version was gone. I?m now downloading the 4,5GB 8.0 version from developer.apple.com . hope that works! thanks again! > On 03 Nov 2016, at 15:45, Thierry Douez wrote: > > 2016-11-03 15:37 GMT+01:00 Bob Sneidar : > >> Which version works with which should probably be published in a document, >> and maybe already has been. >> > > ?Hi Bob, > > There is one place:? > > https://livecode.com/resources/support/ask-a-question/ > > ?but it needs to be updated too :) > ? > ?Thierry > ? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Thu Nov 3 14:31:34 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 3 Nov 2016 11:31:34 -0700 Subject: disabled on 10/28 for bounces--to gmail??? Message-ID: Did anyone else get de-subscribed recently? I got an email, that got filtered to promotions, that I was unsubscribed on 10/28 due to excessive bounces--but this is a gmail account. And what's the best way to sift through a few days of archives? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From richmondmathewson at gmail.com Thu Nov 3 14:33:06 2016 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 3 Nov 2016 20:33:06 +0200 Subject: disabled on 10/28 for bounces--to gmail??? In-Reply-To: References: Message-ID: Yup: I had that; so went directly and resubscribed: nothing to it really, just some mysterious "god in the machine" nonsense. Richmond. On 3.11.2016 20:31, Dr. Hawkins wrote: > Did anyone else get de-subscribed recently? > > I got an email, that got filtered to promotions, that I was unsubscribed on > 10/28 due to excessive bounces--but this is a gmail account. > > And what's the best way to sift through a few days of archives? > From richmondmathewson at gmail.com Thu Nov 3 14:54:24 2016 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 3 Nov 2016 20:54:24 +0200 Subject: tableField . . . refering to columns Message-ID: <2a044daa-17e2-71bb-acdd-16086564bf93@gmail.com> So: I have a "^" delimited textFile (.CSV) that I imported into a conventional textField ("fPRE") and then tried to do this: on mouseUp set the itemDelimiter to "^" put line 1 of fld "fPRE" into PREE1 put item 1 of PREE1 into column 1 of line 1 of fld "fTF" end mouseUp line 1 if fld "fPRE" contains this "2^45^9^1113" I wonder why this throws a "bluey": button "Button": compilation error at line 4 (Handler: bad command) near "1", char 30 OR . . . to put things another way: How does one refer to columns in a tableField? Richmond. From benr_mc at cogapp.com Thu Nov 3 15:05:37 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 3 Nov 2016 19:05:37 +0000 Subject: disabled on 10/28 for bounces--to gmail??? In-Reply-To: References: Message-ID: I was also de-subscribed for excessive bounces - and I'm not using gmail. I wonder whether it was related to the great DYN attack of October 21st? (Probably not - my suspension started on October 28th, and for various reasons it took me a few days to see what was happening and re-subscribe.) On 03/11/2016 18:31, Dr. Hawkins wrote: > Did anyone else get de-subscribed recently? > > I got an email, that got filtered to promotions, that I was unsubscribed on > 10/28 due to excessive bounces--but this is a gmail account. > > And what's the best way to sift through a few days of archives? > From roger.e.eller at sealedair.com Thu Nov 3 15:11:56 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 3 Nov 2016 15:11:56 -0400 Subject: tableField . . . refering to columns In-Reply-To: <2a044daa-17e2-71bb-acdd-16086564bf93@gmail.com> References: <2a044daa-17e2-71bb-acdd-16086564bf93@gmail.com> Message-ID: A regular table field is TAB delimited. Also, refer to your "column" as "item". Try this: on mouseUp set the itemDelimiter to "^" put line 1 of fld "fPRE" into PREE1 set the itemDeliniter to TAB put item 1 of PREE1 into item 1 of line 1 of fld "fTF" end mouseUp ~Roger On Thu, Nov 3, 2016 at 2:54 PM, Richmond wrote: > So: I have a "^" delimited textFile (.CSV) that I imported into a > conventional textField ("fPRE") > and then tried to do this: > > on mouseUp > set the itemDelimiter to "^" > put line 1 of fld "fPRE" into PREE1 > put item 1 of PREE1 into column 1 of line 1 of fld "fTF" > end mouseUp > > line 1 if fld "fPRE" contains this "2^45^9^1113" > > I wonder why this throws a "bluey": > > button "Button": compilation error at line 4 (Handler: bad command) near > "1", char 30 > > OR . . . to put things another way: How does one refer to columns in a > tableField? > > Richmond. > > From roger.e.eller at sealedair.com Thu Nov 3 15:15:10 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 3 Nov 2016 15:15:10 -0400 Subject: tableField . . . refering to columns In-Reply-To: References: <2a044daa-17e2-71bb-acdd-16086564bf93@gmail.com> Message-ID: Correction: You can't use 2 different item delimiters in the same command. on mouseUp set the itemDelimiter to "^" put line 1 of fld "fPRE" into PREE1 put item 1 of PREE1 into tJustTheItem set the itemDeliniter to TAB put tJustTheItem into item 1 of line 1 of fld "fTF" end mouseUp Roger Eller Graphics Systems Analyst 803 North Maple Street P: 864.967.1625 Simpsonville, SC 29681 C: 864.908.0337 SealedAir.com Roger.E.Eller at SealedAir.com On Thu, Nov 3, 2016 at 3:11 PM, Roger Eller wrote: > A regular table field is TAB delimited. Also, refer to your "column" as > "item". > > Try this: > > on mouseUp > set the itemDelimiter to "^" > put line 1 of fld "fPRE" into PREE1 > set the itemDeliniter to TAB > put item 1 of PREE1 into item 1 of line 1 of fld "fTF" > end mouseUp > > ~Roger > > > On Thu, Nov 3, 2016 at 2:54 PM, Richmond > wrote: > >> So: I have a "^" delimited textFile (.CSV) that I imported into a >> conventional textField ("fPRE") >> and then tried to do this: >> >> on mouseUp >> set the itemDelimiter to "^" >> put line 1 of fld "fPRE" into PREE1 >> put item 1 of PREE1 into column 1 of line 1 of fld "fTF" >> end mouseUp >> >> line 1 if fld "fPRE" contains this "2^45^9^1113" >> >> I wonder why this throws a "bluey": >> >> button "Button": compilation error at line 4 (Handler: bad command) near >> "1", char 30 >> >> OR . . . to put things another way: How does one refer to columns in a >> tableField? >> >> Richmond. >> >> > > From bobsneidar at iotecdigital.com Thu Nov 3 15:47:43 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 3 Nov 2016 19:47:43 +0000 Subject: disabled on 10/28 for bounces--to gmail??? In-Reply-To: References: Message-ID: <5EC80066-D2C7-46AD-9FE7-7DBFEC6F6403@iotecdigital.com> OK, that being said, my spam filter is reporting fairly regularly that certain use list accounts have been quarantined for spam. This can happen if someone gets ahold of your email address, then uses it in a spoofed header to distribute spam. Alternately, some people also actually *do* send spam from their own account by adding WAY to dam many email addresses in the TO: or CC: fields. This is not the way to do this. Use the :BCC field for large numbers of email addresses, and even then, if you have that many addresses, use a list server instead. Bob S > On Nov 3, 2016, at 11:31 , Dr. Hawkins wrote: > > Did anyone else get de-subscribed recently? > > I got an email, that got filtered to promotions, that I was unsubscribed on > 10/28 due to excessive bounces--but this is a gmail account. > > And what's the best way to sift through a few days of archives? > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From iowahengst at mac.com Thu Nov 3 16:14:15 2016 From: iowahengst at mac.com (Randy Hengst) Date: Thu, 03 Nov 2016 15:14:15 -0500 Subject: tableField . . . refering to columns In-Reply-To: <2a044daa-17e2-71bb-acdd-16086564bf93@gmail.com> References: <2a044daa-17e2-71bb-acdd-16086564bf93@gmail.com> Message-ID: <5875D9AE-0D51-4723-9E04-80C403615617@mac.com> What is ?column 1? in your mouseUp handler? As far as I know that doesn?t refer to a reserved word in LC? so that will cause a bump in the code. What do you get if you replace that line of code with: answer item 1 of PREE1 be well, randy > On Nov 3, 2016, at 1:54 PM, Richmond wrote: > > So: I have a "^" delimited textFile (.CSV) that I imported into a conventional textField ("fPRE") > and then tried to do this: > > on mouseUp > set the itemDelimiter to "^" > put line 1 of fld "fPRE" into PREE1 > put item 1 of PREE1 into column 1 of line 1 of fld "fTF" > end mouseUp > > line 1 if fld "fPRE" contains this "2^45^9^1113" > > I wonder why this throws a "bluey": > > button "Button": compilation error at line 4 (Handler: bad command) near "1", char 30 > > OR . . . to put things another way: How does one refer to columns in a tableField? > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Nov 3 16:41:40 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 3 Nov 2016 20:41:40 +0000 Subject: tableField . . . refering to columns In-Reply-To: <5875D9AE-0D51-4723-9E04-80C403615617@mac.com> References: <2a044daa-17e2-71bb-acdd-16086564bf93@gmail.com> <5875D9AE-0D51-4723-9E04-80C403615617@mac.com> Message-ID: Did explicit variables get turned on? I have had my explicit variables turned on without my assistance 3 times in the last 2 days. LC 8.1.1 Bob S > On Nov 3, 2016, at 13:14 , Randy Hengst wrote: > > What is ?column 1? in your mouseUp handler? As far as I know that doesn?t refer to a reserved word in LC? so that will cause a bump in the code. > > What do you get if you replace that line of code with: > answer item 1 of PREE1 > > be well, > randy > > > >> On Nov 3, 2016, at 1:54 PM, Richmond wrote: >> >> So: I have a "^" delimited textFile (.CSV) that I imported into a conventional textField ("fPRE") >> and then tried to do this: >> >> on mouseUp >> set the itemDelimiter to "^" >> put line 1 of fld "fPRE" into PREE1 >> put item 1 of PREE1 into column 1 of line 1 of fld "fTF" >> end mouseUp >> >> line 1 if fld "fPRE" contains this "2^45^9^1113" >> >> I wonder why this throws a "bluey": >> >> button "Button": compilation error at line 4 (Handler: bad command) near "1", char 30 >> >> OR . . . to put things another way: How does one refer to columns in a tableField? >> >> Richmond. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Nov 3 16:43:28 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 3 Nov 2016 20:43:28 +0000 Subject: tableField . . . refering to columns In-Reply-To: <5875D9AE-0D51-4723-9E04-80C403615617@mac.com> References: <2a044daa-17e2-71bb-acdd-16086564bf93@gmail.com> <5875D9AE-0D51-4723-9E04-80C403615617@mac.com> Message-ID: Oh crap yeah I don't think a field has a "column" property. Boy it would be nice if it did! Bob S On Nov 3, 2016, at 13:14 , Randy Hengst > wrote: put item 1 of PREE1 into column 1 of line 1 of fld "fTF" end mouseUp line 1 if fld "fPRE" contains this "2^45^9^1113" I wonder why this throws a "bluey": button "Button": compilation error at line 4 (Handler: bad command) near "1", char 30 OR . . . to put things another way: How does one refer to columns in a tableField? Richmond. From dunbarx at aol.com Thu Nov 3 17:10:27 2016 From: dunbarx at aol.com (dunbarx) Date: Thu, 3 Nov 2016 14:10:27 -0700 (PDT) Subject: tableField . . . refering to columns In-Reply-To: <2a044daa-17e2-71bb-acdd-16086564bf93@gmail.com> References: <2a044daa-17e2-71bb-acdd-16086564bf93@gmail.com> Message-ID: <1478207427977-4710025.post@n4.nabble.com> Richmond. Is "column" a native word in, what I assume you are using, v8? It is not in v6. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/tableField-refering-to-columns-tp4710016p4710025.html Sent from the Revolution - User mailing list archive at Nabble.com. From bonnmike at gmail.com Thu Nov 3 17:28:56 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 3 Nov 2016 15:28:56 -0600 Subject: tableField . . . refering to columns In-Reply-To: References: <2a044daa-17e2-71bb-acdd-16086564bf93@gmail.com> <5875D9AE-0D51-4723-9E04-80C403615617@mac.com> Message-ID: The why has been covered.. no "column" delimiter, and the fact that.. if it were to actually work, putting item 1 of your sample data into item 1 of the field should put the item separated by the specified item delimiter.. so there would be no change. (unless as above you use 2 delimiters Meaning if you did this.. put "1^2^3^4" into tdata set the itemdel to "^" repeat with i = 1 to the number of items in tdata put item i of tdata into item i of tdata end repeat put tdata You get out exactly what you put in. 1^2^3^4 Its interesting to me that the itemdel can't be changed on the fly to do this.. Well, it will but you have to have 2 separate containers because the number of items fluctuates based on chosen delimiter as things are processed. The following works.. put "1^2^3^4" into tdata set the itemdel to "^" repeat with i = 1 to the number of items in tdata put item i of tdata into tTempitem set the itemdel to tab put tTempitem into item i of tdata2 -- separate container, separate item counts set the itemdel to "^" end repeat put tdata2 But it still begs the question why one wouldn't just-- replace "^" with tab in field "whatever" On Thu, Nov 3, 2016 at 2:43 PM, Bob Sneidar wrote: > Oh crap yeah I don't think a field has a "column" property. Boy it would > be nice if it did! > > Bob S > > > On Nov 3, 2016, at 13:14 , Randy Hengst ahengst at mac.com>> wrote: > > put item 1 of PREE1 into column 1 of line 1 of fld "fTF" > end mouseUp > > line 1 if fld "fPRE" contains this "2^45^9^1113" > > I wonder why this throws a "bluey": > > button "Button": compilation error at line 4 (Handler: bad command) near > "1", char 30 > > OR . . . to put things another way: How does one refer to columns in a > tableField? > > 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 monte at appisle.net Thu Nov 3 18:16:10 2016 From: monte at appisle.net (Monte Goulding) Date: Fri, 4 Nov 2016 09:16:10 +1100 Subject: Scripting style: Verbs in function names Message-ID: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> Hi LiveCoders In a PR I have open Peter has asked me to `Please name this function with a verb` and I recognised that in LiveCode this is something I don?t do out of habit while in other languages it is. Why? Because in the context the a function is used there is already a verb in the statement in our language. I definitely think verbs should be used for custom handler names though. It seems to me that if my gut feeling and what I?ve been practicing for a long time is seen as general best practice for the community then it should be documented. I notice that there?s a mix of noun and verb engine functions. What do people think: put GetSomething() into container or put Something() into container BTW I?m happy to change my ways I?m just curious what people think. Cheers Monte From ahsoftware at sonic.net Thu Nov 3 18:29:59 2016 From: ahsoftware at sonic.net (mwieder) Date: Thu, 3 Nov 2016 15:29:59 -0700 (PDT) Subject: Scripting style: Verbs in function names In-Reply-To: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> References: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> Message-ID: <1478212199693-4710028.post@n4.nabble.com> When I'm creating commands I make it a verb. Or at least as verbish as possible. When I'm creating functions I'm inconsistent. The more common function usage is not as a verb: put ThePartNumberOf(someText) into tLine but I also do things like put Tag.Italicize(someText) into tItalicizedText ----- -- Mark Wieder ahsoftware at gmail.com -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scripting-style-Verbs-in-function-names-tp4710027p4710028.html Sent from the Revolution - User mailing list archive at Nabble.com. From jacque at hyperactivesw.com Thu Nov 3 18:44:05 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 3 Nov 2016 17:44:05 -0500 Subject: Scripting style: Verbs in function names In-Reply-To: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> References: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> Message-ID: All the "native" LC functions are nouns. The reason is that LC functions can be used with either parentheses or preceded by "the". So we get this: put the date put the selectedChunk put the target If these were verbs: put the getDate put the getSelectedChunk put the getTarget which is weird. On 11/3/16 5:16 PM, Monte Goulding wrote: > Hi LiveCoders > > In a PR I have open Peter has asked me to `Please name this function > with a verb` and I recognised that in LiveCode this is something I > don?t do out of habit while in other languages it is. Why? Because in > the context the a function is used there is already a verb in the > statement in our language. I definitely think verbs should be used > for custom handler names though. It seems to me that if my gut > feeling and what I?ve been practicing for a long time is seen as > general best practice for the community then it should be > documented. > > I notice that there?s a mix of noun and verb engine functions. > > What do people think: > > put GetSomething() into container > > or > > put Something() into container > > BTW I?m happy to change my ways I?m just curious what people think. > > 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 > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Thu Nov 3 18:50:07 2016 From: paul at researchware.com (Paul Dupuis) Date: Thu, 03 Nov 2016 18:50:07 -0400 Subject: Scripting style: Verbs in function names In-Reply-To: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> References: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> Message-ID: <581BBF1F.7020903@researchware.com> Monte, You might as well ask: Coke or Pepsi? or Mac or Windows? or iOS or Android? or Burger King or McDonalds or (pick your favorite non-American head to head competing things) :-) And is complex because, for example, I like the looks of "put Something() into container" in my code. However, when looking in the dictionary or a list of my own APIs for my apps, where just the name is listed, I like seeing the action (i.e. GetSomething()) as part of the name as it reminds me of the intended action of the function. On 11/3/2016 6:16 PM, Monte Goulding wrote: > Hi LiveCoders > > In a PR I have open Peter has asked me to `Please name this function with a verb` and I recognised that in LiveCode this is something I don?t do out of habit while in other languages it is. Why? Because in the context the a function is used there is already a verb in the statement in our language. I definitely think verbs should be used for custom handler names though. It seems to me that if my gut feeling and what I?ve been practicing for a long time is seen as general best practice for the community then it should be documented. > > I notice that there?s a mix of noun and verb engine functions. > > What do people think: > > put GetSomething() into container > > or > > put Something() into container > > BTW I?m happy to change my ways I?m just curious what people think. > > 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 devin_asay at byu.edu Thu Nov 3 19:00:57 2016 From: devin_asay at byu.edu (Devin Asay) Date: Thu, 3 Nov 2016 23:00:57 +0000 Subject: Scripting style: Verbs in function names In-Reply-To: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> References: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> Message-ID: > On Nov 3, 2016, at 4:16 PM, Monte Goulding wrote: > > Hi LiveCoders > > In a PR I have open Peter has asked me to `Please name this function with a verb` and I recognised that in LiveCode this is something I don?t do out of habit while in other languages it is. Why? Because in the context the a function is used there is already a verb in the statement in our language. I definitely think verbs should be used for custom handler names though. It seems to me that if my gut feeling and what I?ve been practicing for a long time is seen as general best practice for the community then it should be documented. > > I notice that there?s a mix of noun and verb engine functions. > > What do people think: > > put GetSomething() into container > > or > > put Something() into container > > BTW I?m happy to change my ways I?m just curious what people think. Almost all commands are imperative verbs: go do set put import grab etc. Most built-in functions tend to be nouns: date time focusedObject folders files functionNames And some functions are adjectives: random (although you could argue this is a nominalized adjective) licensed Some functions are even predicate phrases, camel-cased: isNumber And there are a few functions that are verbs: flushEvents getResource I think the best function names are the ones that ?read? naturally in a statement: put the random of 10 into myVar if isCorrect(fld ?answer?) then? So when I name commands I use verbs. When I name functions I tend to use nouns or predicate phrases, whatever reads like natural x-talk. Devin Devin Asay Director Office of Digital Humanities Brigham Young University From dunbarx at aol.com Thu Nov 3 18:58:46 2016 From: dunbarx at aol.com (dunbarx) Date: Thu, 3 Nov 2016 15:58:46 -0700 (PDT) Subject: Scripting style: Verbs in function names In-Reply-To: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> References: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> Message-ID: <1478213926723-4710032.post@n4.nabble.com> Monte. I think it is more than purely symmetrical "Coke" or Pepsi" Functions return a value. It is far more natural for me to use a verb: put GoOutThereAndGetAValue() ... Though I must admit that any "subRoutine" call is asking for work to be done elsewhere, so that even a handler is also similarly of this form: doSomething But the way function calls are framed begs for, demands a verb, even if handler calls kind of, ought to, do as well. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scripting-style-Verbs-in-function-names-tp4710027p4710032.html Sent from the Revolution - User mailing list archive at Nabble.com. From colinholgate at gmail.com Thu Nov 3 19:18:19 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Thu, 3 Nov 2016 19:18:19 -0400 Subject: excessive bounces In-Reply-To: References: <6690C26C-FF60-4E35-B13B-FE9551050663@gmail.com> Message-ID: I had another disable today. From revdev at pdslabs.net Thu Nov 3 19:21:10 2016 From: revdev at pdslabs.net (Phil Davis) Date: Thu, 3 Nov 2016 16:21:10 -0700 Subject: Scripting style: Verbs in function names In-Reply-To: References: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> Message-ID: I like Devin's reasoning on this. One of the great benefits we enjoy in using LiveCode is the "English-like" syntax. This is one of LC's hallmark features. As I see it, we should work to preserve it and extend it in our naming of commands and functions. My 2 cents' worth - Phil Davis On 11/3/16 4:00 PM, Devin Asay wrote: >> On Nov 3, 2016, at 4:16 PM, Monte Goulding wrote: >> >> Hi LiveCoders >> >> In a PR I have open Peter has asked me to `Please name this function with a verb` and I recognised that in LiveCode this is something I don?t do out of habit while in other languages it is. Why? Because in the context the a function is used there is already a verb in the statement in our language. I definitely think verbs should be used for custom handler names though. It seems to me that if my gut feeling and what I?ve been practicing for a long time is seen as general best practice for the community then it should be documented. >> >> I notice that there?s a mix of noun and verb engine functions. >> >> What do people think: >> >> put GetSomething() into container >> >> or >> >> put Something() into container >> >> BTW I?m happy to change my ways I?m just curious what people think. > Almost all commands are imperative verbs: > > go > do > set > put > import > grab > etc. > > Most built-in functions tend to be nouns: > > date > time > focusedObject > folders > files > functionNames > > And some functions are adjectives: > > random (although you could argue this is a nominalized adjective) > licensed > > Some functions are even predicate phrases, camel-cased: > > isNumber > > And there are a few functions that are verbs: > > flushEvents > getResource > > I think the best function names are the ones that ?read? naturally in a statement: > > put the random of 10 into myVar > > if isCorrect(fld ?answer?) then? > > So when I name commands I use verbs. When I name functions I tend to use nouns or predicate phrases, whatever reads like natural x-talk. > > Devin > > > Devin Asay > Director > Office of Digital Humanities > Brigham Young University > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis From monte at appisle.net Thu Nov 3 19:43:45 2016 From: monte at appisle.net (Monte Goulding) Date: Fri, 4 Nov 2016 10:43:45 +1100 Subject: Scripting style: Verbs in function names In-Reply-To: References: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> Message-ID: <422B5628-1BA7-45FD-A446-13465EE987DA@appisle.net> > On 4 Nov. 2016, at 10:21 am, Phil Davis wrote: > > I like Devin's reasoning on this. One of the great benefits we enjoy in using LiveCode is the "English-like" syntax. This is one of LC's hallmark features. As I see it, we should work to preserve it and extend it in our naming of commands and functions. I can?t help wondering if there?s a general guideline we can apply here where if there?s a strong case for a verb then refactor as a command and if there isn?t then use a function and leverage the implied verb in the statement. I think there may be an exception with a function that returns a mutated form of the first parameter though (arrayEncode, baseConvert etc), however, they could have easily been commands? Cheers Monte From paul at researchware.com Thu Nov 3 19:55:55 2016 From: paul at researchware.com (Paul Dupuis) Date: Thu, 03 Nov 2016 19:55:55 -0400 Subject: Scripting style: Verbs in function names In-Reply-To: <422B5628-1BA7-45FD-A446-13465EE987DA@appisle.net> References: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> <422B5628-1BA7-45FD-A446-13465EE987DA@appisle.net> Message-ID: <581BCE8B.7020901@researchware.com> Of course, just to be contrary, English has lots of grammatical inconsistencies. So if one of the goals of LiveCode script is to be "English-like" shouldn't it have a few grammatical inconsistencies too? On 11/3/2016 7:43 PM, Monte Goulding wrote: >> On 4 Nov. 2016, at 10:21 am, Phil Davis wrote: >> >> I like Devin's reasoning on this. One of the great benefits we enjoy in using LiveCode is the "English-like" syntax. This is one of LC's hallmark features. As I see it, we should work to preserve it and extend it in our naming of commands and functions. > I can?t help wondering if there?s a general guideline we can apply here where if there?s a strong case for a verb then refactor as a command and if there isn?t then use a function and leverage the implied verb in the statement. I think there may be an exception with a function that returns a mutated form of the first parameter though (arrayEncode, baseConvert etc), however, they could have easily been commands? > > Cheers > > Monte > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at appisle.net Thu Nov 3 20:05:59 2016 From: monte at appisle.net (Monte Goulding) Date: Fri, 4 Nov 2016 11:05:59 +1100 Subject: Scripting style: Verbs in function names In-Reply-To: <581BCE8B.7020901@researchware.com> References: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> <422B5628-1BA7-45FD-A446-13465EE987DA@appisle.net> <581BCE8B.7020901@researchware.com> Message-ID: <35E595FF-EE25-4F73-B1C2-9F7A11FCAC5B@appisle.net> > On 4 Nov. 2016, at 10:55 am, Paul Dupuis wrote: > > Of course, just to be contrary, English has lots of grammatical > inconsistencies. So if one of the goals of LiveCode script is to be > "English-like" shouldn't it have a few grammatical inconsistencies too? Well we won?t have any trouble there. We are already pretty inconsistent with this particularly in the mobile* APIs. Cheers Monte From ambassador at fourthworld.com Thu Nov 3 20:54:18 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 3 Nov 2016 17:54:18 -0700 Subject: Debugging the IDE In-Reply-To: References: Message-ID: <64375d64-8c67-f0ff-0c72-9e4709172e6a@fourthworld.com> Bob Sneidar wrote: > ...I set the global gRevDevelopment to true so I can step through > the scripts. That should not be necessary. > To my horror I am finding a number of errors where a handler is being > called that didn't exist, but it never shows up because if > gRevDevelopment is false, plugins silently fail. How? Plugins are just stacks like any other, they just happen to live in a Plugins folder. Was that a direct call, or using "dispatch"? Dispatch is designed to allow calls to handlers that don't exist. -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bonnmike at gmail.com Thu Nov 3 21:03:02 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 3 Nov 2016 19:03:02 -0600 Subject: disabled on 10/28 for bounces--to gmail??? In-Reply-To: <5EC80066-D2C7-46AD-9FE7-7DBFEC6F6403@iotecdigital.com> References: <5EC80066-D2C7-46AD-9FE7-7DBFEC6F6403@iotecdigital.com> Message-ID: Bumped from the list again. *sigh* On Thu, Nov 3, 2016 at 1:47 PM, Bob Sneidar wrote: > OK, that being said, my spam filter is reporting fairly regularly that > certain use list accounts have been quarantined for spam. This can happen > if someone gets ahold of your email address, then uses it in a spoofed > header to distribute spam. Alternately, some people also actually *do* send > spam from their own account by adding WAY to dam many email addresses in > the TO: or CC: fields. This is not the way to do this. Use the :BCC field > for large numbers of email addresses, and even then, if you have that many > addresses, use a list server instead. > > Bob S > > > > On Nov 3, 2016, at 11:31 , Dr. Hawkins wrote: > > > > Did anyone else get de-subscribed recently? > > > > I got an email, that got filtered to promotions, that I was unsubscribed > on > > 10/28 due to excessive bounces--but this is a gmail account. > > > > And what's the best way to sift through a few days of archives? > > > > -- > > Dr. Richard E. Hawkins, Esq. > > (702) 508-8462 > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Thu Nov 3 21:06:22 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 3 Nov 2016 18:06:22 -0700 Subject: Scripting style: Verbs in function names In-Reply-To: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> References: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> Message-ID: Monte Goulding wrote: > In a PR I have open Peter has asked me to `Please name this function > with a verb` and I recognised that in LiveCode this is something I > don?t do out of habit while in other languages it is. Why? Because in > the context the a function is used there is already a verb in the > statement in our language. I definitely think verbs should be used > for custom handler names though. It seems to me that if my gut > feeling and what I?ve been practicing for a long time is seen as > general best practice for the community then it should be documented. Many languages have only functions, so to describe any action you have no choice but to use a verb in function names. Pascal, xTalk, and others have both commands and functions, each with its own semantic role. Every statement must have a command, and may also contain one or more function calls. Since the command is the verb, it makes sense that a function would be a noun, a thing that the verb acts on. When in doubt, imagine you're in a meeting with some major industry player and you want to show off the beautiful simplicity of LiveCode's "English-like" nature - do you really want do show this?: get getWindowList() So much more elegant, so much more natural, so much more tTalk, to simply write: get WindowList() -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From hh at hyperhh.de Thu Nov 3 21:07:33 2016 From: hh at hyperhh.de (hh) Date: Fri, 4 Nov 2016 02:07:33 +0100 Subject: Scripting style: Verbs in function names Message-ID: <09C08068-641A-49D5-B056-DCABDEFCAE11@hyperhh.de> > Monte wrote: > Peter has asked me to "Please name this function with a verb" Perhaps he simply meant: set property "name" of this function to "a verb"? From MikeKerner at roadrunner.com Thu Nov 3 21:23:01 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 3 Nov 2016 21:23:01 -0400 Subject: disabled on 10/28 for bounces--to gmail??? In-Reply-To: <5EC80066-D2C7-46AD-9FE7-7DBFEC6F6403@iotecdigital.com> References: <5EC80066-D2C7-46AD-9FE7-7DBFEC6F6403@iotecdigital.com> Message-ID: I just had that happen, again - second time in a week. On Thu, Nov 3, 2016 at 3:47 PM, Bob Sneidar wrote: > OK, that being said, my spam filter is reporting fairly regularly that > certain use list accounts have been quarantined for spam. This can happen > if someone gets ahold of your email address, then uses it in a spoofed > header to distribute spam. Alternately, some people also actually *do* send > spam from their own account by adding WAY to dam many email addresses in > the TO: or CC: fields. This is not the way to do this. Use the :BCC field > for large numbers of email addresses, and even then, if you have that many > addresses, use a list server instead. > > Bob S > > > > On Nov 3, 2016, at 11:31 , Dr. Hawkins wrote: > > > > Did anyone else get de-subscribed recently? > > > > I got an email, that got filtered to promotions, that I was unsubscribed > on > > 10/28 due to excessive bounces--but this is a gmail account. > > > > And what's the best way to sift through a few days of archives? > > > > -- > > Dr. Richard E. Hawkins, Esq. > > (702) 508-8462 > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- 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 Nov 3 21:51:29 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 03 Nov 2016 20:51:29 -0500 Subject: disabled on 10/28 for bounces--to gmail??? In-Reply-To: References: <5EC80066-D2C7-46AD-9FE7-7DBFEC6F6403@iotecdigital.com> Message-ID: <1582d089900.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> And this is a test post because the one I sent hours ago never showed up. Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 3, 2016 8:24:49 PM Mike Kerner wrote: > I just had that happen, again - second time in a week. > > On Thu, Nov 3, 2016 at 3:47 PM, Bob Sneidar > wrote: > >> OK, that being said, my spam filter is reporting fairly regularly that >> certain use list accounts have been quarantined for spam. This can happen >> if someone gets ahold of your email address, then uses it in a spoofed >> header to distribute spam. Alternately, some people also actually *do* send >> spam from their own account by adding WAY to dam many email addresses in >> the TO: or CC: fields. This is not the way to do this. Use the :BCC field >> for large numbers of email addresses, and even then, if you have that many >> addresses, use a list server instead. >> >> Bob S >> >> >> > On Nov 3, 2016, at 11:31 , Dr. Hawkins wrote: >> > >> > Did anyone else get de-subscribed recently? >> > >> > I got an email, that got filtered to promotions, that I was unsubscribed >> on >> > 10/28 due to excessive bounces--but this is a gmail account. >> > >> > And what's the best way to sift through a few days of archives? >> > >> > -- >> > Dr. Richard E. Hawkins, Esq. >> > (702) 508-8462 >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at lists.runrev.com >> > Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > 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 ahsoftware at sonic.net Thu Nov 3 22:00:44 2016 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 3 Nov 2016 19:00:44 -0700 Subject: Debugging the IDE In-Reply-To: <64375d64-8c67-f0ff-0c72-9e4709172e6a@fourthworld.com> References: <64375d64-8c67-f0ff-0c72-9e4709172e6a@fourthworld.com> Message-ID: On 11/03/2016 05:54 PM, Richard Gaskin wrote: > Bob Sneidar wrote: > >> ...I set the global gRevDevelopment to true so I can step through >> the scripts. > > That should not be necessary. See below. > > >> To my horror I am finding a number of errors where a handler is being >> called that didn't exist, but it never shows up because if >> gRevDevelopment is false, plugins silently fail. > > How? > > Plugins are just stacks like any other, they just happen to live in a > Plugins folder. Not exactly. Plugin stacks are treated as IDE system stacks. So errors and breakpoints are silently ignored as long as gRevDevelopment is false. Setting that property to true enables debugging plugins without removing them from the Plugins folder but also exposes any errors in the other system stacks (the active breakpoints in the Project Browser, any script errors such as the one Bob uncovered). -- Mark Wieder ahsoftware at gmail.com From monte at appisle.net Thu Nov 3 22:04:21 2016 From: monte at appisle.net (Monte Goulding) Date: Fri, 4 Nov 2016 13:04:21 +1100 Subject: Scripting style: Verbs in function names In-Reply-To: <09C08068-641A-49D5-B056-DCABDEFCAE11@hyperhh.de> References: <09C08068-641A-49D5-B056-DCABDEFCAE11@hyperhh.de> Message-ID: > On 4 Nov. 2016, at 12:07 pm, hh wrote: > >> Monte wrote: >> Peter has asked me to "Please name this function with a verb" > > Perhaps he simply meant: > set property "name" of this function to "a verb"? No I don?t think so. This is common best practice so what?s up for discussion is whether this best practice applies to our language. It seems the general consensus is no but I?m still open to good arguments either way ;-) I must admit I hadn?t thought about this too much before and had just gone with what felt right but it seems having a discussion of this in a style guide would be handy. Cheers Monte From bogdanoff at me.com Fri Nov 4 03:02:24 2016 From: bogdanoff at me.com (Peter Bogdanoff) Date: Fri, 04 Nov 2016 00:02:24 -0700 Subject: Secure file download via HTTP Message-ID: <5FDFA6E1-15AC-44F6-A4B8-618AF3349B1F@me.com> Hi, My application makes extensive use of audio and video in a player control with files accessed from a server via HTTP. There is some concern in my team that in some countries there may be people who will try to access these files outside my application by somehow replicating a URL. So I?m thinking that if I use HTTPS I could prevent this. But I have questions? 1. Am I right that someone could, maybe by a man-in-the-middle process, grab a URL and use that again later? 2. HTTPS would encrypt the at least the directory and filename in the URL? 3. Could someone grab that encrypted stream of data and reuse it in its encrypted form to download the file anyway? 4. For better security, would I need to use some form of authentication to allow only users of my app to access the server? My files aren?t particularly secret, but I?m paying for bandwidth and music licensing, and what I have is supposed to be used only in my app. Anyone have any advice on this or can point me in a direction? Thanks! Peter Bogdanoff From richmondmathewson at gmail.com Fri Nov 4 03:49:34 2016 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 4 Nov 2016 09:49:34 +0200 Subject: Bouncy, bouncy, rubber ball. Message-ID: Hmm: second "bouncy" message from the use-list inside a week . . . Something not quite right. Richmond. From mark at livecode.com Fri Nov 4 04:25:07 2016 From: mark at livecode.com (Mark Waddingham) Date: Fri, 04 Nov 2016 09:25:07 +0100 Subject: Secure file download via HTTP In-Reply-To: <5FDFA6E1-15AC-44F6-A4B8-618AF3349B1F@me.com> References: <5FDFA6E1-15AC-44F6-A4B8-618AF3349B1F@me.com> Message-ID: <95cb27c625b967edbefbda3b82047e8d@livecode.com> On 2016-11-04 08:02, Peter Bogdanoff wrote: > 1. Am I right that someone could, maybe by a man-in-the-middle > process, grab a URL and use that again later? HTTPS prevents man in the middle attacks as long as your client verifies the server side certificate which is sent - i.e. you must not turn off SSL verification. > 2. HTTPS would encrypt the at least the directory and filename in the > URL? HTTPS is HTTP over SSL/TLS - which means that the underlying data transport (sockets) is secured end to end. This means that the entire content of the HTTP request is encrypted - in theory only the server receiving the information is able to decrypt it. > 3. Could someone grab that encrypted stream of data and reuse it in > its encrypted form to download the file anyway? It is possible that someone could 'snoop' on the encrypted stream of traffic (they are just packets going over the network, after all) - however, SSL/TLS is designed to ensure that unless you are the client or the server then it is not possible to decrypt the traffic. (This is not true if the connection is suffering a man-in-the-middle attack - which is what SSL certificate verification ensures cannot happen). > 4. For better security, would I need to use some form of > authentication to allow only users of my app to access the server? Yes - this is required. SSL/TLS is not a means of authentication, only end-to-end encryption. Any client can connect to an HTTPS server so as part of the request you need to provide authentication details so that the server can verify the client's access entitlement. > Anyone have any advice on this or can point me in a direction? Using HTTPS with SSL verification on and a suitable authentication scheme should be sufficient for your needs. Using HTTPS (rather than HTTP) means that no-one can intercept the data which flows between your client and server; and using authentication means that the server will not server files to anyone who doesn't have the appropriate credentials. To summarise: - HTTPS is HTTP over SSL/TLS which means that the entire conversation between client and server is encrypted. - As long as you have certificate verification on, then it should be virtually impossible for anyone to decrypt any part of the conversation. - HTTPS does not give you authentication just encryption, you still need to use some sort of access credentials to ensure that your HTTPS server only serves files to your registered clients. As an addendum it is perhaps worth pointing out that the security of HTTPS is maintained even through proxy servers - the proxy server sees a small amount of plain-text at the start of a connection (basically - please make this a secure stream) but after that point everything is encrypted between the actual client and the server so whilst the proxy might 'see' the data flowing through it, it is no better position than something else snooping the packets which are flowing on the network. Hope this helps! Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Fri Nov 4 05:57:01 2016 From: mark at livecode.com (Mark Waddingham) Date: Fri, 04 Nov 2016 10:57:01 +0100 Subject: Scripting style: Verbs in function names In-Reply-To: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> References: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> Message-ID: <1bbebf61cbfa1b6277b360ba0f73f2c9@livecode.com> If the goal is to emulate (to some extent) the English-like nature of script in our handler names, then I think it is instructive to look at the syntactic forms employed in the current syntax that exists. I can think of the following general forms: - properties: the X the X of Y - chunks (part access): item X of Y - predicates: X is [ not ] there exists - functions (in the mathematical sense): average(X, Y) sin(Z) - commands: encrypt X with Y using password Z import snapshot A property is something which encapsulates a piece of state. Sometimes they are constants; sometimes they are read-only and reflect state that changes over time; sometimes they reflect something about the content of something, or an attribute of something and only change when explicitly set. Getting properties never have any side-effects; setting properties only has side-effects within their domain of concern (whether it be a library, or an object). A chunk is something which allows access to a part of something. Again, sometimes they are read-only, sometimes settable. Getting chunks never have side-effects; setting chunks only have side-effects within their domain of concern. A predicate is a test which returns true or false, and is to test for a particular condition. They never have side-effects. A function (in the mathematical sense) takes inputs, and uses those inputs to generate output. If we want to be completely pure, then they should never have side-effects - they should be used for computational devices... i.e. Things which synthesize a result based on input values and related state. A command is something which actually *does* something. Commands can and do have side-effects. I'd perhaps further suggest that evaluating functions, predicates, chunks and properties should *not* be able to fail apart from due to mis-use (e.g. asking for an object which doesn't exist, trying to convert "ZOO" from base 10 to base 16). I think this is generally true in the engine, the most prominent exception which comes to mind being the 'url' chunk. [ As a slight aside... This latter sitation (functions being able to fail when it is not due to mis-use) is why we have the odd situation with functions being able to return two values (the result, and the actual return value). The reason this is actually not ideal is that you can easily write code which is not and cannot be made correct except by separating out onto multiple lines. e.g. processMyTwoBitsOfData url X, url Y Here, if fetching url X fails, then the command will receive empty, and still get executed which is technically wrong in pretty much any scenario (after all, one of the url's could actually be empty by intent and so you the receiving function cannot tell the difference between a failure in fetching one of its arguments, and the argument actually being empty). In order to write this correctly you need to do: local tX, tY put url X into tX if the result is not empty then throw "fetching X failed" put url Y into tY if the result is not empty then throw "fetching Y failed" processMyTwoBitsOfData tX, tY Of course, this might just suggest that the url chunk should throw an error in the case of failure; but that then violates the principal that things you cannot predict failure of *must* be explicitly checked for success. Unfortunately, however, the world is not perfect. ] In contrast, commands (as they are performing an action, rather than a computation) can and do fail in ways you cannot predict. This is typically indicated by returning a non-empty result; with any actual returned value from a command being placed in it (in the case the command didn't fail). [ Note: Script now has the ability to set either the result or it from a command handler - by using return for value, and return for error ]. So, if the goal is to reflect English-like ness in our library function naming (in lieu of being able to actually define our own syntax directly in one of the above forms) then the following seem reasonable: - property-like things: The[Of] - chunk-like things: Of / TheNumberOfsOf - predicates: Is[Not] / ThereIs(A|An) - functions: (with potential suffixes describing inputs) - commands: (with potential suffixes describing inputs) I realize here function/command are a little too general - they are difficult to abstract in a reasonable pattern as their naming will largely depend on what they are doing. The case in question was a MIME library with the following parts: - a function which returns the version of MIME to use in the MIME header - MIMEVersion - a function which returns the mime type for a given extension - MIMETypeForExtension - a function which returns the list of extensions matching a wildcarded mime pattern - MIMETypeExtensions - a command which encodes the input in a MIME transfer encoding - MIMEEncode - a command which creates a MIME multipart document from an array of pieces - MIMECreateMultipartContent - a command which creates a MIME multipart document from a field - MIMECreateMultipartContentFromField - a command which creates a MIME multipart email from a pre-encoding multipart document and attachments - MIMECreateEmail A naming scheme consistent with the above 'english-like' forms could be something along these lines: The MIMEVersion is actually a read-only property: syntax: the MIMEVersion function form: mimeTheMIMEVersion The MIMETypeForExtension is essentially a parameterized read-only property, or chunk: syntax: the MIMEType of extension function form: mimeTheMIMETypeOfExtension() The MIMETypeExtensions as currently posed is either a direct constant lookup, or a 'map' over a list of constants. I think it is reasonable in this case to consider a 'MIMEType' as either being a fixed string, or wild-carded string (at least restricted wild-carded - e.g. text/* but not t*t/plain): syntax: the extensions of MIMEType function form: mimeTheExtensionsOfMIMEType() THe MIMEEncode command is actually a pure function - it takes an input and produces an output entirely based on the input, it cannot fail: syntax: encoded for MIME transfer function form: mimeEncodeForMIMETransfer(, ) ('for' suggested here because the transformation is *for* a purpose, not an end state) The MIMECreateMultipartContent is again a pure function - it encodes a sequence of transfer-encoded parts into a multipart document: syntax: encoded as MIME multipart document [ with ] function form: mimeEncodeAsMIMEMultipartDocument(, , ) ('as' suggested here because the transformation produces something which is an end state - a multipart document) The MIMECreateMultipartContentFromField, again a pure function - it encodes the content of a field as a mime multipart document: syntax: encoded for MIME multipart document function form: mimeEncodeFieldAsMIMEMultipartDocument() The MIMECreateEmail is not truly a pure function as it can fail - it has to potentially load data from files in the attachment arrays. It also has quite a long argument list so is probably better considered a command: syntax: encode as MIME email with subject from to [cc ] attaching [ into ] command form: mimeEncodeAsMIMEEmail pBody, pSubject, pSender, pRecipient, pCC, pAttachments Are these names any better than the ones already used in the library? It is hard to say - naming preferences are highly subjective! However, one thing which I think is useful to consider in mind is that difficulty in naming things can (in many cases) indicate that the design is of the API is perhaps not quite right. I did the above reimagining of the current names in the library without considering whether there was a better way to 'slice and dice' the functionality. (For example, would it be better to have the concept of a 'mime email object' which you use setters and getters to configure?). Just my two pence. Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From monte at appisle.net Fri Nov 4 06:39:09 2016 From: monte at appisle.net (Monte Goulding) Date: Fri, 4 Nov 2016 21:39:09 +1100 Subject: Scripting style: Verbs in function names In-Reply-To: <1bbebf61cbfa1b6277b360ba0f73f2c9@livecode.com> References: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> <1bbebf61cbfa1b6277b360ba0f73f2c9@livecode.com> Message-ID: <9D9BE443-E003-4784-9B91-4E4A145C6E66@appisle.net> Thanks for taking the time to write such a considered response Mark > > Are these names any better than the ones already used in the library? It is hard to say - naming preferences are highly subjective! > I like them, the only thing I?m not sure about is the multiple `mime` in each. > Just my two pence. Worth much more that the current face value! Cheers Monte From richmondmathewson at gmail.com Fri Nov 4 07:39:04 2016 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 4 Nov 2016 13:39:04 +0200 Subject: tableField . . . refering to columns In-Reply-To: References: <2a044daa-17e2-71bb-acdd-16086564bf93@gmail.com> <5875D9AE-0D51-4723-9E04-80C403615617@mac.com> Message-ID: <25defdb2-0534-6f61-9c5a-e3d5c3371fea@gmail.com> http://forums.livecode.com/viewtopic.php?f=6&t=28257 Feature request. Richmond. On 3.11.2016 22:43, Bob Sneidar wrote: > Oh crap yeah I don't think a field has a "column" property. Boy it would be nice if it did! > > Bob S > > > On Nov 3, 2016, at 13:14 , Randy Hengst > wrote: > > put item 1 of PREE1 into column 1 of line 1 of fld "fTF" > end mouseUp > > line 1 if fld "fPRE" contains this "2^45^9^1113" > > I wonder why this throws a "bluey": > > button "Button": compilation error at line 4 (Handler: bad command) near "1", char 30 > > OR . . . to put things another way: How does one refer to columns in a tableField? > > 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 dave at applicationinsight.com Fri Nov 4 08:11:57 2016 From: dave at applicationinsight.com (Dave Kilroy) Date: Fri, 4 Nov 2016 12:11:57 +0000 Subject: Scripting style: Verbs in function names Message-ID: Thanks all, interesting discussion There is another aspect of function/handler naming which is their names in relation to APIs - for example I might have a checkConnectivity() function in an mainstack's stack or card which calls a cgi.checkConnectivity() function in a code library called ?cgi? - prepending each handler and function in the code library with ?cgi? helps me keep track of what is going on and (I think) makes it easier to maintain and use across different mainstacks? ?just my two penneth? Dave > Thanks for taking the time to write such a considered response Mark > > > > Are these names any better than the ones already used in the library? It is hard to say - naming preferences are highly subjective! > > > I like them, the only thing I?m not sure about is the multiple `mime` in each. > > > Just my two pence. > > Worth much more that the current face value! > > Cheers > > Monte > From thatkeith at mac.com Fri Nov 4 08:27:11 2016 From: thatkeith at mac.com (Keith Martin) Date: Fri, 04 Nov 2016 12:27:11 +0000 Subject: Scripting style: Verbs in function names In-Reply-To: References: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> Message-ID: <1105B45E-A498-4907-9C36-5EB749F6F676@mac.com> On 3 Nov 2016, at 23:00, Devin Asay wrote: > I think the best function names are the ones that ?read? naturally > in a statement And that, in a nutshell, is one of the beautiful things about the xTalk language(s). Natural readability is important, so wherever this makes sense it, rather than generically verbifying, should be the guiding principle. k --- Keith Martin Senior Lecturer, LCC (University of the Arts London) Technical Editor, MacUser magazine (1997-2015) http://PanoramaPhotographer.com http://thatkeith.com +44 (0)7909541365 --- From MikeKerner at roadrunner.com Fri Nov 4 08:39:19 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 4 Nov 2016 08:39:19 -0400 Subject: Scripting style: Verbs in function names In-Reply-To: <1105B45E-A498-4907-9C36-5EB749F6F676@mac.com> References: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> <1105B45E-A498-4907-9C36-5EB749F6F676@mac.com> Message-ID: Do they not teach sentence diagramming to geeks any more? If you can't diagram it, you can't use it in xtalk. That's the rule. Obey. On Fri, Nov 4, 2016 at 8:27 AM, Keith Martin wrote: > On 3 Nov 2016, at 23:00, Devin Asay wrote: > > I think the best function names are the ones that ?read? naturally in a >> statement >> > > And that, in a nutshell, is one of the beautiful things about the xTalk > language(s). Natural readability is important, so wherever this makes sense > it, rather than generically verbifying, should be the guiding principle. > > k > > > --- > > Keith Martin > Senior Lecturer, LCC (University of the Arts London) > Technical Editor, MacUser magazine (1997-2015) > http://PanoramaPhotographer.com > http://thatkeith.com > +44 (0)7909541365 > > --- > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Nov 4 08:40:56 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 4 Nov 2016 08:40:56 -0400 Subject: disabled on 10/28 for bounces--to gmail??? In-Reply-To: <1582d089900.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <5EC80066-D2C7-46AD-9FE7-7DBFEC6F6403@iotecdigital.com> <1582d089900.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Your test post didn't make it. Blink Blink On Thu, Nov 3, 2016 at 9:51 PM, J. Landman Gay wrote: > And this is a test post because the one I sent hours ago never showed up. > > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > > On November 3, 2016 8:24:49 PM Mike Kerner > wrote: > > I just had that happen, again - second time in a week. >> >> On Thu, Nov 3, 2016 at 3:47 PM, Bob Sneidar >> wrote: >> >> OK, that being said, my spam filter is reporting fairly regularly that >>> certain use list accounts have been quarantined for spam. This can happen >>> if someone gets ahold of your email address, then uses it in a spoofed >>> header to distribute spam. Alternately, some people also actually *do* >>> send >>> spam from their own account by adding WAY to dam many email addresses in >>> the TO: or CC: fields. This is not the way to do this. Use the :BCC field >>> for large numbers of email addresses, and even then, if you have that >>> many >>> addresses, use a list server instead. >>> >>> Bob S >>> >>> >>> > On Nov 3, 2016, at 11:31 , Dr. Hawkins wrote: >>> > >>> > Did anyone else get de-subscribed recently? >>> > >>> > I got an email, that got filtered to promotions, that I was >>> unsubscribed >>> on >>> > 10/28 due to excessive bounces--but this is a gmail account. >>> > >>> > And what's the best way to sift through a few days of archives? >>> > >>> > -- >>> > Dr. Richard E. Hawkins, Esq. >>> > (702) 508-8462 >>> > _______________________________________________ >>> > use-livecode mailing list >>> > use-livecode at lists.runrev.com >>> > Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> > http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >> >> >> -- >> 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 rdimola at evergreeninfo.net Fri Nov 4 09:36:34 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 4 Nov 2016 09:36:34 -0400 Subject: disabled on 10/28 for bounces--to gmail??? In-Reply-To: References: <5EC80066-D2C7-46AD-9FE7-7DBFEC6F6403@iotecdigital.com> <1582d089900.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <001301d236a0$75f62aa0$61e27fe0$@net> Don't know if this is related... I have received several spam emails from "livecode-dev" all with various email addresses containing "take me to a virus" links in the past couple of weeks with exciting subject lines such as "Let's go camping!" and "wow, just take a look!" I have received 7 of these since July. 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 Mike Kerner Sent: Friday, November 04, 2016 8:41 AM To: How to use LiveCode Subject: Re: disabled on 10/28 for bounces--to gmail??? Your test post didn't make it. Blink Blink On Thu, Nov 3, 2016 at 9:51 PM, J. Landman Gay wrote: > And this is a test post because the one I sent hours ago never showed up. > > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > > On November 3, 2016 8:24:49 PM Mike Kerner > wrote: > > I just had that happen, again - second time in a week. >> >> On Thu, Nov 3, 2016 at 3:47 PM, Bob Sneidar >> >> wrote: >> >> OK, that being said, my spam filter is reporting fairly regularly >> that >>> certain use list accounts have been quarantined for spam. This can >>> happen if someone gets ahold of your email address, then uses it in >>> a spoofed header to distribute spam. Alternately, some people also >>> actually *do* send spam from their own account by adding WAY to dam >>> many email addresses in the TO: or CC: fields. This is not the way >>> to do this. Use the :BCC field for large numbers of email addresses, >>> and even then, if you have that many addresses, use a list server >>> instead. >>> >>> Bob S >>> >>> >>> > On Nov 3, 2016, at 11:31 , Dr. Hawkins wrote: >>> > >>> > Did anyone else get de-subscribed recently? >>> > >>> > I got an email, that got filtered to promotions, that I was >>> unsubscribed >>> on >>> > 10/28 due to excessive bounces--but this is a gmail account. >>> > >>> > And what's the best way to sift through a few days of archives? >>> > >>> > -- >>> > Dr. Richard E. Hawkins, Esq. >>> > (702) 508-8462 >>> > _______________________________________________ >>> > use-livecode mailing list >>> > use-livecode at lists.runrev.com >>> > Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> > http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >> >> >> -- >> 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 matthias_livecode_150811 at m-r-d.de Fri Nov 4 12:04:22 2016 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 4 Nov 2016 17:04:22 +0100 Subject: tsNET error under Windows Message-ID: Hi, i am currently running into a problem with tsNET external 1.2.2, 1.2.3, 1.2.4 under windows doing a explicit FTPS upload using tsNetUploadSync (IDE and standalone) Under Mac OS X it is just working, but under Windows the same script gives me the following error after successful connection: tsneterr: (35) schannel: next InitializeSecurityContext failed: SEC_E_ILLEGAL_MESSAGE (0x80090326) - This error usually occurs when a fatal SSL/TLS alert is received (e.g. handshake failed). More detail may be available in the Windows System event log. The Windows event log does not show up any entry for error. I?ve completely disabled AV and firewall w/o success. Does anyone know what might cause this error? Regards, Matthias Matthias Rebbe Bramkampsieke 13 32312 L?bbecke Tel +49 5741 310000 +49 160 5504462 Fax: +49 5741 310002 eMail: matthias at m-r-d.de BR5 Konverter - BR5 -> MP3 From skiplondon at gmail.com Fri Nov 4 12:28:01 2016 From: skiplondon at gmail.com (Skip Kimpel) Date: Fri, 4 Nov 2016 12:28:01 -0400 Subject: tsNET error under Windows In-Reply-To: References: Message-ID: I have a support case open with LC regarding a similar matter. Should have some answers shortly and I will share when I receive any info. SKIP > On Nov 4, 2016, at 12:04 PM, Matthias Rebbe wrote: > > > Hi, > > i am currently running into a problem with tsNET external 1.2.2, 1.2.3, 1.2.4 under windows doing a explicit FTPS upload using tsNetUploadSync (IDE and standalone) > Under Mac OS X it is just working, but under Windows the same script gives me the following error after successful connection: > > tsneterr: (35) schannel: next InitializeSecurityContext failed: SEC_E_ILLEGAL_MESSAGE (0x80090326) - This error usually occurs when a fatal SSL/TLS alert is received (e.g. handshake failed). More detail may be available in the Windows System event log. > > The Windows event log does not show up any entry for error. I?ve completely disabled AV and firewall w/o success. > > Does anyone know what might cause this error? > > > Regards, > > Matthias > > > Matthias Rebbe > Bramkampsieke 13 > 32312 L?bbecke > Tel +49 5741 310000 > +49 160 5504462 > Fax: +49 5741 310002 > eMail: matthias at m-r-d.de > > BR5 Konverter - BR5 -> MP3 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Fri Nov 4 12:37:39 2016 From: ray at linkit.com (Ray) Date: Fri, 4 Nov 2016 12:37:39 -0400 Subject: Datagrids Jump when Scrolled In-Reply-To: <573E070A.9020903@researchware.com> References: <2101aed6-08c7-4967-9470-526099320381@LinkIt.Com> <573E070A.9020903@researchware.com> Message-ID: <5907d41a-e4c1-4601-7b20-6d3216fa100d@LinkIt.Com> I posted this last year and never got an answer. Anybody want to take a shot at it? I'm now using 7.1.1 but the same problem persists. ______________________________________________________________ In a data grid with the vScrollBar set to true, scrolling suddenly stops working. Any attempt to scroll through about 100 rows of data simply jumps to the end and shows only the last row at the very top of the grid. It doesn't matter whether I use the arrows, drag the scroll tab or click in the scroll bar. Many thanks, Ray Horsley LinkIt! Software From ambassador at fourthworld.com Fri Nov 4 12:46:36 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 4 Nov 2016 09:46:36 -0700 Subject: short name broken? In-Reply-To: References: Message-ID: <46f3df4d-fc88-c550-7b7f-ef56fe481e93@fourthworld.com> Mark Waddingham wrote: > On 2016-11-01 19:12, Richard Gaskin wrote: >> You're absolutely right. When in doubt I check the >> Winkler-Kamins-DeVoto reference, and indeed they verify that all name >> queries will return a value, even when the property itself is empty. >> When using "the short name" on an unnamed object, WKD says it should >> return the ID form, as LC currently does. > > I must confess I struggle to find any reasonable logic behind the > current behavior of 'the short name' when the actual name of the > object is empty. At least I'm in good company. Despite decades of using this family of languages, it just seemed to logical that querying a property would deliver its actual value that I was momentarily certain that was the case. > Indeed, I'd suggest that it is actually a bug (well, > I guess 'anomaly' by our current definition). > As 'the short name' is not meant to return a control reference, it is > slightly unsettling that it does return a control reference in one > case. Agreed, and it was encouraging to see this request confirmed, for the Inspector to display only the actual value of the object's name (which may be empty): http://quality.livecode.com/show_bug.cgi?id=17432 I'll see if I can get some time to submit a pull request for that. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From pmbrig at gmail.com Fri Nov 4 13:05:13 2016 From: pmbrig at gmail.com (Peter M. Brigham) Date: Fri, 4 Nov 2016 13:05:13 -0400 Subject: tableField . . . refering to columns In-Reply-To: References: <2a044daa-17e2-71bb-acdd-16086564bf93@gmail.com> Message-ID: <83996586-1833-4023-913B-63BDE94F3154@gmail.com> On Nov 3, 2016, at 3:15 PM, Roger Eller wrote: > > on mouseUp > set the itemDelimiter to "^" > put line 1 of fld "fPRE" into PREE1 > put item 1 of PREE1 into tJustTheItem > set the itemDeliniter to TAB > put tJustTheItem into item 1 of line 1 of fld "fTF" > end mouseUp It?s pretty easy to do this kind of thing with some utility handlers. I have a collection of them to enable me to process text in various ways, including: getItem(pContainer, pIndex, pDelim) getNestedItem() getColumns(pData, pColNbrs, pDelim) deleteColumns(pData, pColNbrs, pDelim) getGridCell() replaceItem pList, pItemNbr, pNewItem, pDelim etc. This allows text processing (which I do a lot of) completely within LC and turns script-it-anew-each-time chunks of code into one-liner calls. Most of these are available in the Master Library, I believe. Or email me if you?re interested. ? Peter Peter M. Brigham pmbrig at gmail.com From ambassador at fourthworld.com Fri Nov 4 13:51:31 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 4 Nov 2016 10:51:31 -0700 Subject: Practical TDD in LiveCode Message-ID: <7b9cc137-363a-cec5-8ba0-4ba4f2b35e30@fourthworld.com> One of many interesting discussions in our local LC User Group meeting last night was from a relative newcomer who asked about TDD support. I was able to tell him we have an assert command, and that many developers have a wide range of ad hoc test harnesses in use. But what I couldn't point him to is a single harness framework in our community suitable for broad use. Is there one? If not, what would it look like? How granularly should we write tests? How much value is there if the writing of a test takes longer than writing the thing being tested? Should we write a second test for when a handler in our core business logic is integrated into a GUI, where the varieties of things that can happen with input and events is much broader? Should a good harness simulate GUI events? If so, how to make sure they attempt sufficient erroneous inputs to ensure the scope of our error handling? How do we chain tests into a comprehensive automated "Test All"? So many questions... How do we make one good test harness that answers them all, at least reasonably well? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Fri Nov 4 14:01:11 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 4 Nov 2016 11:01:11 -0700 Subject: Debugging the IDE In-Reply-To: References: Message-ID: <38991d28-d037-fdf8-ffa1-8bdb2f54fc62@fourthworld.com> Mark Wieder write: > On 11/03/2016 05:54 PM, Richard Gaskin wrote: >> Bob Sneidar wrote: >>> To my horror I am finding a number of errors where a handler is >>> being called that didn't exist, but it never shows up because if >>> gRevDevelopment is false, plugins silently fail. >> >> How? >> >> Plugins are just stacks like any other, they just happen to live in a >> Plugins folder. > > Not exactly. Plugin stacks are treated as IDE system stacks. So > errors and breakpoints are silently ignored as long as > gRevDevelopment is false. I can understand not breaking the trace flow in the debugger. But what is the benefit of falsely masking execution errors? And how does it do 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 richmondmathewson at gmail.com Fri Nov 4 14:03:31 2016 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 4 Nov 2016 20:03:31 +0200 Subject: Practical TDD in LiveCode In-Reply-To: <7b9cc137-363a-cec5-8ba0-4ba4f2b35e30@fourthworld.com> References: <7b9cc137-363a-cec5-8ba0-4ba4f2b35e30@fourthworld.com> Message-ID: Surely Test Driven Development depends on how the developers work with a given programming environment, not on the programming environment itself? Richmond. On 4.11.2016 19:51, Richard Gaskin wrote: > One of many interesting discussions in our local LC User Group meeting > last night was from a relative newcomer who asked about TDD support. > > I was able to tell him we have an assert command, and that many > developers have a wide range of ad hoc test harnesses in use. > > But what I couldn't point him to is a single harness framework in our > community suitable for broad use. > > Is there one? > > If not, what would it look like? > > How granularly should we write tests? How much value is there if the > writing of a test takes longer than writing the thing being tested? > Should we write a second test for when a handler in our core business > logic is integrated into a GUI, where the varieties of things that can > happen with input and events is much broader? Should a good harness > simulate GUI events? If so, how to make sure they attempt sufficient > erroneous inputs to ensure the scope of our error handling? How do we > chain tests into a comprehensive automated "Test All"? > > So many questions... > > How do we make one good test harness that answers them all, at least > reasonably well? > From dochawk at gmail.com Fri Nov 4 14:06:33 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 4 Nov 2016 11:06:33 -0700 Subject: loss of access to stacks after "save as" Message-ID: I have a bmpVrsn routine to update the revision numbers of my various stacks. Once the calculations are done, I *close* stack stk *save* stack stk as newFlNm *delete* stack oldFlNm So stk might be "rawForms", which was in file rawForms.161103a.livecode (oldFlNm), and now rawforms.161103b.livecode (newFlNm). Immediately, I tend to get the message asking what to do with stack nwFlNm because oldFlNm is being loaded. Some other updates are done after that--and can't access the new stack. E.g., send "boo!" to stack "rawForms" fails with no such stack found. The first problem was present under 7; the second seems to be new to 8. Any ideas? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ahsoftware at sonic.net Fri Nov 4 14:08:27 2016 From: ahsoftware at sonic.net (mwieder) Date: Fri, 4 Nov 2016 11:08:27 -0700 (PDT) Subject: Debugging the IDE In-Reply-To: <38991d28-d037-fdf8-ffa1-8bdb2f54fc62@fourthworld.com> References: <64375d64-8c67-f0ff-0c72-9e4709172e6a@fourthworld.com> <38991d28-d037-fdf8-ffa1-8bdb2f54fc62@fourthworld.com> Message-ID: <1478282907731-4710067.post@n4.nabble.com> Sorry - I somewhat misspoke there. Plugin stacks that start with "rev" are treated as system stacks. And therefore errors and breakpoints in them are ignored. The reason for the existence of the gRevDevelopment property is so that system stacks can be worked on without errors causing the whole infrastructure to come crashing down. Why it's the default is beyond my pay grade. I assume it's because there are errors in the system stacks that don't cause any effects that would prioritize their getting fixed, some that are too difficult to brain, some that don't affect enough people to warrant assigning resources to... ----- -- Mark Wieder ahsoftware at gmail.com -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Debugging-the-IDE-tp4709922p4710067.html Sent from the Revolution - User mailing list archive at Nabble.com. From bobsneidar at iotecdigital.com Fri Nov 4 14:57:11 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 4 Nov 2016 18:57:11 +0000 Subject: Datagrids Jump when Scrolled In-Reply-To: <5907d41a-e4c1-4601-7b20-6d3216fa100d@LinkIt.Com> References: <2101aed6-08c7-4967-9470-526099320381@LinkIt.Com> <573E070A.9020903@researchware.com> <5907d41a-e4c1-4601-7b20-6d3216fa100d@LinkIt.Com> Message-ID: Hate to say it but the easy thing is to delete the datagrid along with it's template (it will as you) and recreate it from scratch. I've solved a multitude of Datagrid issues this way. Also, keep in mind that if there is something iffy with the data you are putting into the data grid that can cause issues. Bob S > On Nov 4, 2016, at 09:37 , Ray wrote: > > I posted this last year and never got an answer. Anybody want to take a shot at it? I'm now using 7.1.1 but the same problem persists. > > ______________________________________________________________ > > In a data grid with the vScrollBar set to true, scrolling suddenly stops > working. Any attempt to scroll through about 100 rows of data simply > jumps to the end and shows only the last row at the very top of the > grid. It doesn't matter whether I use the arrows, drag the scroll tab > or click in the scroll bar. > > Many thanks, > > Ray Horsley > LinkIt! Software > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Fri Nov 4 15:02:32 2016 From: ray at linkit.com (Ray) Date: Fri, 4 Nov 2016 15:02:32 -0400 Subject: Datagrids Jump when Scrolled In-Reply-To: References: <2101aed6-08c7-4967-9470-526099320381@LinkIt.Com> <573E070A.9020903@researchware.com> <5907d41a-e4c1-4601-7b20-6d3216fa100d@LinkIt.Com> Message-ID: <5b5115c6-7689-c98c-b364-7e1da2a8aa6f@LinkIt.Com> Bob - thanks for the idea and the ever so good feeling that I'm not the only one who's ever run across this. I tried re-populating the datagrid with 500 lines of numbers and that didn't fix the problem so I don't think the issue has to do with the data itself. I'm currently working on a script which will recreate the datagrid from scratch. It's a lot of work, kind of sticky work, too, and it requires a thorough understanding of groups, background behaviors, the place command, row templates, and other stuff I've never really gotten into. Seems like a bug if a datagrid can suddenly become unscrollable, and thus useless. If nobody else responds I'll report it. On 11/4/2016 2:57 PM, Bob Sneidar wrote: > Hate to say it but the easy thing is to delete the datagrid along with it's template (it will as you) and recreate it from scratch. I've solved a multitude of Datagrid issues this way. Also, keep in mind that if there is something iffy with the data you are putting into the data grid that can cause issues. > > Bob S > > >> On Nov 4, 2016, at 09:37 , Ray wrote: >> >> I posted this last year and never got an answer. Anybody want to take a shot at it? I'm now using 7.1.1 but the same problem persists. >> >> ______________________________________________________________ >> >> In a data grid with the vScrollBar set to true, scrolling suddenly stops >> working. Any attempt to scroll through about 100 rows of data simply >> jumps to the end and shows only the last row at the very top of the >> grid. It doesn't matter whether I use the arrows, drag the scroll tab >> or click in the scroll bar. >> >> Many thanks, >> >> Ray Horsley >> LinkIt! Software >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 4 15:02:43 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 4 Nov 2016 19:02:43 +0000 Subject: Debugging the IDE In-Reply-To: <64375d64-8c67-f0ff-0c72-9e4709172e6a@fourthworld.com> References: <64375d64-8c67-f0ff-0c72-9e4709172e6a@fourthworld.com> Message-ID: <5DCB89BF-C012-4048-AF6E-178CDF9BFD18@iotecdigital.com> Already pointed it out to the powers that be, and they acknowledged it was an issue. I was thinking that since dev stacks don't throw errors when gRevRevelopment is set to false, devs might use this as a poor man's "try/catch/donothing" mechanism so they do not have to check for conditions which might make it fail. It was a long shot, but I couldn't think of how a bit of code could be bad syntax in a release version of LC. Apparently it's not code that affects anything major. Bob S > On Nov 3, 2016, at 17:54 , Richard Gaskin wrote: > > Bob Sneidar wrote: > > > ...I set the global gRevDevelopment to true so I can step through > > the scripts. > > That should not be necessary. > > > > To my horror I am finding a number of errors where a handler is being > > called that didn't exist, but it never shows up because if > > gRevDevelopment is false, plugins silently fail. > > How? > > Plugins are just stacks like any other, they just happen to live in a Plugins folder. > > Was that a direct call, or using "dispatch"? Dispatch is designed to allow calls to handlers that don't exist. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for Desktop, Mobile, and Web > ____________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Nov 4 15:04:13 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 4 Nov 2016 19:04:13 +0000 Subject: Datagrids Jump when Scrolled In-Reply-To: <5b5115c6-7689-c98c-b364-7e1da2a8aa6f@LinkIt.Com> References: <2101aed6-08c7-4967-9470-526099320381@LinkIt.Com> <573E070A.9020903@researchware.com> <5907d41a-e4c1-4601-7b20-6d3216fa100d@LinkIt.Com> <5b5115c6-7689-c98c-b364-7e1da2a8aa6f@LinkIt.Com> Message-ID: I've had datagrids suddenly start C to D, and replacing them fixes the issue. Who can say? Bob S On Nov 4, 2016, at 12:02 , Ray > wrote: Seems like a bug if a datagrid can suddenly become unscrollable, and thus useless. If nobody else responds I'll report it. From ray at linkit.com Fri Nov 4 15:05:24 2016 From: ray at linkit.com (Ray) Date: Fri, 4 Nov 2016 15:05:24 -0400 Subject: Datagrids Jump when Scrolled In-Reply-To: References: <2101aed6-08c7-4967-9470-526099320381@LinkIt.Com> <573E070A.9020903@researchware.com> <5907d41a-e4c1-4601-7b20-6d3216fa100d@LinkIt.Com> <5b5115c6-7689-c98c-b364-7e1da2a8aa6f@LinkIt.Com> Message-ID: What do you mean by "C to D"? On 11/4/2016 3:04 PM, Bob Sneidar wrote: > I've had datagrids suddenly start C to D, and replacing them fixes the issue. Who can say? > > Bob S > > > On Nov 4, 2016, at 12:02 , Ray > wrote: > > Seems like a bug if a datagrid can suddenly become unscrollable, and thus useless. If nobody else responds I'll report 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 bobsneidar at iotecdigital.com Fri Nov 4 15:06:47 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 4 Nov 2016 19:06:47 +0000 Subject: disabled on 10/28 for bounces--to gmail??? In-Reply-To: <001301d236a0$75f62aa0$61e27fe0$@net> References: <5EC80066-D2C7-46AD-9FE7-7DBFEC6F6403@iotecdigital.com> <1582d089900.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <001301d236a0$75f62aa0$61e27fe0$@net> Message-ID: Yeah someone somewhere was compromised, and we have made it onto some illustriuos spam filter list. You can check the lists domain agains some free online spam list reports. Usually these have a timeout of 24 to 48 hours for the first few hits, after which they may become more aggressive. Bob S > On Nov 4, 2016, at 06:36 , Ralph DiMola wrote: > > Don't know if this is related... > I have received several spam emails from "livecode-dev" all with various > email addresses containing "take me to a virus" links in the past couple of > weeks with exciting subject lines such as "Let's go camping!" and "wow, just > take a look!" I have received 7 of these since July. > > 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 Mike Kerner > Sent: Friday, November 04, 2016 8:41 AM > To: How to use LiveCode > Subject: Re: disabled on 10/28 for bounces--to gmail??? > > Your test post didn't make it. > Blink > Blink > > On Thu, Nov 3, 2016 at 9:51 PM, J. Landman Gay > wrote: > >> And this is a test post because the one I sent hours ago never showed up. >> >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> >> >> On November 3, 2016 8:24:49 PM Mike Kerner >> wrote: >> >> I just had that happen, again - second time in a week. >>> >>> On Thu, Nov 3, 2016 at 3:47 PM, Bob Sneidar >>> >>> wrote: >>> >>> OK, that being said, my spam filter is reporting fairly regularly >>> that >>>> certain use list accounts have been quarantined for spam. This can >>>> happen if someone gets ahold of your email address, then uses it in >>>> a spoofed header to distribute spam. Alternately, some people also >>>> actually *do* send spam from their own account by adding WAY to dam >>>> many email addresses in the TO: or CC: fields. This is not the way >>>> to do this. Use the :BCC field for large numbers of email addresses, >>>> and even then, if you have that many addresses, use a list server >>>> instead. >>>> >>>> Bob S >>>> >>>> >>>>> On Nov 3, 2016, at 11:31 , Dr. Hawkins wrote: >>>>> >>>>> Did anyone else get de-subscribed recently? >>>>> >>>>> I got an email, that got filtered to promotions, that I was >>>> unsubscribed >>>> on >>>>> 10/28 due to excessive bounces--but this is a gmail account. >>>>> >>>>> And what's the best way to sift through a few days of archives? >>>>> >>>>> -- >>>>> Dr. Richard E. Hawkins, Esq. >>>>> (702) 508-8462 >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>> >>> >>> -- >>> 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 From mark at livecode.com Fri Nov 4 15:11:57 2016 From: mark at livecode.com (Mark Waddingham) Date: Fri, 4 Nov 2016 19:11:57 +0000 Subject: loss of access to stacks after "save as" In-Reply-To: References: Message-ID: <629CA1A6-313D-49A1-A06D-9F58D0F87DF5@livecode.com> If you save a stack with a new filename, then that changes it filename property. Therefore when you subsequently reference the stack by its old filename (in the delete) it will load the old stackfile, thus triggering the process that occurs when you try to load a stack into memory when one with the same name already exists. After the save as you don't need to delete the stack by its old filename, as the stack is already loaded (you just saved it!). Generally I would recommend not using filenames to reference stacks except to load them - once in memory you are better off using just the (short) name. Hope this helps! Mark. Sent from my iPhone > On 4 Nov 2016, at 18:06, Dr. Hawkins wrote: > > I have a bmpVrsn routine to update the revision numbers of my various > stacks. > > Once the calculations are done, I > > *close* stack stk > > *save* stack stk as newFlNm > > *delete* stack oldFlNm > > So stk might be "rawForms", which was in file rawForms.161103a.livecode > (oldFlNm), and now rawforms.161103b.livecode (newFlNm). > > Immediately, I tend to get the message asking what to do with stack nwFlNm > because oldFlNm is being loaded. > > Some other updates are done after that--and can't access the new stack. > E.g., > > send "boo!" to stack "rawForms" > > > fails with no such stack found. > > The first problem was present under 7; the second seems to be new to 8. > > Any ideas? > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Nov 4 15:13:25 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 4 Nov 2016 19:13:25 +0000 Subject: Scripting style: Verbs in function names In-Reply-To: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> References: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> Message-ID: <36F2F57A-5522-426C-8E0D-51DDA4E06784@iotecdigital.com> Hmmm... interesting. Well for instance I have some contact functions and commands like addContact, updateContact, deleteContact, saveContact etc. and I use this regularly so getSomething() for my vote. The assumtion otherwise is that the value returned is the something you are trying to get. What if all you want is to know if the call succeeded or failed, and if failed, why? If the latter, then something() is itself misleading. Bob S > On Nov 3, 2016, at 15:16 , Monte Goulding wrote: > > Hi LiveCoders > > In a PR I have open Peter has asked me to `Please name this function with a verb` and I recognised that in LiveCode this is something I don?t do out of habit while in other languages it is. Why? Because in the context the a function is used there is already a verb in the statement in our language. I definitely think verbs should be used for custom handler names though. It seems to me that if my gut feeling and what I?ve been practicing for a long time is seen as general best practice for the community then it should be documented. > > I notice that there?s a mix of noun and verb engine functions. > > What do people think: > > put GetSomething() into container > > or > > put Something() into container > > BTW I?m happy to change my ways I?m just curious what people think. > > 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 bobsneidar at iotecdigital.com Fri Nov 4 15:13:43 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 4 Nov 2016 19:13:43 +0000 Subject: Datagrids Jump when Scrolled In-Reply-To: References: <2101aed6-08c7-4967-9470-526099320381@LinkIt.Com> <573E070A.9020903@researchware.com> <5907d41a-e4c1-4601-7b20-6d3216fa100d@LinkIt.Com> <5b5115c6-7689-c98c-b364-7e1da2a8aa6f@LinkIt.Com> Message-ID: <4D8B4F50-38E0-4542-9F2D-042288289953@iotecdigital.com> Crash to Desktop Bob S > On Nov 4, 2016, at 12:05 , Ray wrote: > > What do you mean by "C to D"? > > On 11/4/2016 3:04 PM, Bob Sneidar wrote: >> I've had datagrids suddenly start C to D, and replacing them fixes the issue. Who can say? >> >> Bob S >> >> >> On Nov 4, 2016, at 12:02 , Ray > wrote: >> >> Seems like a bug if a datagrid can suddenly become unscrollable, and thus useless. If nobody else responds I'll report 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Fri Nov 4 15:14:51 2016 From: ray at linkit.com (Ray) Date: Fri, 4 Nov 2016 15:14:51 -0400 Subject: Datagrids Jump when Scrolled In-Reply-To: <4D8B4F50-38E0-4542-9F2D-042288289953@iotecdigital.com> References: <2101aed6-08c7-4967-9470-526099320381@LinkIt.Com> <573E070A.9020903@researchware.com> <5907d41a-e4c1-4601-7b20-6d3216fa100d@LinkIt.Com> <5b5115c6-7689-c98c-b364-7e1da2a8aa6f@LinkIt.Com> <4D8B4F50-38E0-4542-9F2D-042288289953@iotecdigital.com> Message-ID: <0553b82f-3de8-c0f8-a2c0-3f0438354cfa@LinkIt.Com> Ahh! There's an acronym I'd like to avoid :) On 11/4/2016 3:13 PM, Bob Sneidar wrote: > Crash to Desktop > > Bob S > > >> On Nov 4, 2016, at 12:05 , Ray wrote: >> >> What do you mean by "C to D"? >> >> On 11/4/2016 3:04 PM, Bob Sneidar wrote: >>> I've had datagrids suddenly start C to D, and replacing them fixes the issue. Who can say? >>> >>> Bob S >>> >>> >>> On Nov 4, 2016, at 12:02 , Ray > wrote: >>> >>> Seems like a bug if a datagrid can suddenly become unscrollable, and thus useless. If nobody else responds I'll report 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 >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Nov 4 15:15:15 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 4 Nov 2016 12:15:15 -0700 Subject: loss of access to stacks after "save as" In-Reply-To: <629CA1A6-313D-49A1-A06D-9F58D0F87DF5@livecode.com> References: <629CA1A6-313D-49A1-A06D-9F58D0F87DF5@livecode.com> Message-ID: On Fri, Nov 4, 2016 at 12:11 PM, Mark Waddingham wrote: > Therefore when you subsequently reference the stack by its old filename > (in the delete) it will load the old stackfile, thus triggering the process > that occurs when you try to load a stack into memory when one with the same > name already exists. > OK--but so how do I get rid of the old stack, and get the new one loaded. This is the only place where I use the filename rather than the stack name (ok, I compute them on initial load, too). If I don't delete the old stack, I get the messages that I have two stacks with the same name, etc. thanks -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From bobsneidar at iotecdigital.com Fri Nov 4 15:18:22 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 4 Nov 2016 19:18:22 +0000 Subject: Scripting style: Verbs in function names In-Reply-To: References: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> Message-ID: <035D64BB-788A-4D6C-BD88-2C4A89E6F793@iotecdigital.com> What is wierd is that we are calling commands and functions as though they were properties. Another layer in the onion. I think all this reveals how truely difficult it is to create an "english like" language, when English (and all languages) are so relative by nature and dependent to some degree on context, whereas a programming language simply cannot be without inspiring the kind of conversation we are having here. Perhaps we have reached the precipice of high level languages and simply cannot go further without tumbling over the edge. Bob S On Nov 3, 2016, at 15:44 , J. Landman Gay > wrote: All the "native" LC functions are nouns. The reason is that LC functions can be used with either parentheses or preceded by "the". So we get this: put the date put the selectedChunk put the target If these were verbs: put the getDate put the getSelectedChunk put the getTarget which is weird. From MikeKerner at roadrunner.com Fri Nov 4 15:22:03 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 4 Nov 2016 15:22:03 -0400 Subject: Datagrids Jump when Scrolled In-Reply-To: <0553b82f-3de8-c0f8-a2c0-3f0438354cfa@LinkIt.Com> References: <2101aed6-08c7-4967-9470-526099320381@LinkIt.Com> <573E070A.9020903@researchware.com> <5907d41a-e4c1-4601-7b20-6d3216fa100d@LinkIt.Com> <5b5115c6-7689-c98c-b364-7e1da2a8aa6f@LinkIt.Com> <4D8B4F50-38E0-4542-9F2D-042288289953@iotecdigital.com> <0553b82f-3de8-c0f8-a2c0-3f0438354cfa@LinkIt.Com> Message-ID: Hey, Ray, did you mess with a group with this DG, either adding it to a group or ungrouping, etc.? I finally isolated a bug that's been annoying me for a while, and it was related to an issue with the way LC handles groups. On Fri, Nov 4, 2016 at 3:14 PM, Ray wrote: > Ahh! There's an acronym I'd like to avoid :) > > > On 11/4/2016 3:13 PM, Bob Sneidar wrote: > >> Crash to Desktop >> >> Bob S >> >> >> On Nov 4, 2016, at 12:05 , Ray wrote: >>> >>> What do you mean by "C to D"? >>> >>> On 11/4/2016 3:04 PM, Bob Sneidar wrote: >>> >>>> I've had datagrids suddenly start C to D, and replacing them fixes the >>>> issue. Who can say? >>>> >>>> Bob S >>>> >>>> >>>> On Nov 4, 2016, at 12:02 , Ray > >>>> wrote: >>>> >>>> Seems like a bug if a datagrid can suddenly become unscrollable, and >>>> thus useless. If nobody else responds I'll report 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 >>>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 ray at linkit.com Fri Nov 4 15:24:35 2016 From: ray at linkit.com (Ray) Date: Fri, 4 Nov 2016 15:24:35 -0400 Subject: Datagrids Jump when Scrolled In-Reply-To: References: <2101aed6-08c7-4967-9470-526099320381@LinkIt.Com> <573E070A.9020903@researchware.com> <5907d41a-e4c1-4601-7b20-6d3216fa100d@LinkIt.Com> <5b5115c6-7689-c98c-b364-7e1da2a8aa6f@LinkIt.Com> <4D8B4F50-38E0-4542-9F2D-042288289953@iotecdigital.com> <0553b82f-3de8-c0f8-a2c0-3f0438354cfa@LinkIt.Com> Message-ID: <39ebf3d4-6b0f-8981-baf8-46f7d72f83bd@LinkIt.Com> I avoid working with groups as much as I can. I don't recall ever ungrouping or grouping this particular datagrid. Is there a way I can test to see if I did so without knowing? On 11/4/2016 3:22 PM, Mike Kerner wrote: > Hey, Ray, did you mess with a group with this DG, either adding it to a > group or ungrouping, etc.? I finally isolated a bug that's been annoying > me for a while, and it was related to an issue with the way LC handles > groups. > > On Fri, Nov 4, 2016 at 3:14 PM, Ray wrote: > >> Ahh! There's an acronym I'd like to avoid :) >> >> >> On 11/4/2016 3:13 PM, Bob Sneidar wrote: >> >>> Crash to Desktop >>> >>> Bob S >>> >>> >>> On Nov 4, 2016, at 12:05 , Ray wrote: >>>> What do you mean by "C to D"? >>>> >>>> On 11/4/2016 3:04 PM, Bob Sneidar wrote: >>>> >>>>> I've had datagrids suddenly start C to D, and replacing them fixes the >>>>> issue. Who can say? >>>>> >>>>> Bob S >>>>> >>>>> >>>>> On Nov 4, 2016, at 12:02 , Ray > >>>>> wrote: >>>>> >>>>> Seems like a bug if a datagrid can suddenly become unscrollable, and >>>>> thus useless. If nobody else responds I'll report 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 >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From mark at livecode.com Fri Nov 4 15:24:34 2016 From: mark at livecode.com (Mark Waddingham) Date: Fri, 4 Nov 2016 19:24:34 +0000 Subject: loss of access to stacks after "save as" In-Reply-To: References: <629CA1A6-313D-49A1-A06D-9F58D0F87DF5@livecode.com> Message-ID: <683FF7E3-6D55-42D6-A64C-039A261DDEE7@livecode.com> I suspect it will be because you are referencing your stacks by (the old) filename somewhere else and not name - thus causing the engine to load in the old file, the stack in which has the same name as the existing stack in memory. 'Saving as' does not create a new stack (in memory) it just saves the stack which is in memory to disk in a new file. Putting it another way, the 'new' stack is already loaded as it is the same stack as it was before - the only things which have changed is the stacks filename property and there being a new file on disk. Mark. Sent from my iPhone > On 4 Nov 2016, at 19:15, Dr. Hawkins wrote: > >> On Fri, Nov 4, 2016 at 12:11 PM, Mark Waddingham wrote: >> >> Therefore when you subsequently reference the stack by its old filename >> (in the delete) it will load the old stackfile, thus triggering the process >> that occurs when you try to load a stack into memory when one with the same >> name already exists. > > OK--but so how do I get rid of the old stack, and get the new one loaded. > > This is the only place where I use the filename rather than the stack name > (ok, I compute them on initial load, too). > > If I don't delete the old stack, I get the messages that I have two stacks > with the same name, etc. > > thanks > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Nov 4 15:24:33 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 4 Nov 2016 19:24:33 +0000 Subject: tableField . . . refering to columns In-Reply-To: <83996586-1833-4023-913B-63BDE94F3154@gmail.com> References: <2a044daa-17e2-71bb-acdd-16086564bf93@gmail.com> <83996586-1833-4023-913B-63BDE94F3154@gmail.com> Message-ID: Agreed Peter. The beauty of LC is the ability to piece together things to create a more functional whole. At some point we are just asking the devs to do all our coding for us. Bob S > On Nov 4, 2016, at 10:05 , Peter M.Brigham wrote: > > On Nov 3, 2016, at 3:15 PM, Roger Eller wrote: >> >> on mouseUp >> set the itemDelimiter to "^" >> put line 1 of fld "fPRE" into PREE1 >> put item 1 of PREE1 into tJustTheItem >> set the itemDeliniter to TAB >> put tJustTheItem into item 1 of line 1 of fld "fTF" >> end mouseUp > > It?s pretty easy to do this kind of thing with some utility handlers. I have a collection of them to enable me to process text in various ways, including: > > getItem(pContainer, pIndex, pDelim) > getNestedItem() > getColumns(pData, pColNbrs, pDelim) > deleteColumns(pData, pColNbrs, pDelim) > getGridCell() > replaceItem pList, pItemNbr, pNewItem, pDelim > > etc. This allows text processing (which I do a lot of) completely within LC and turns script-it-anew-each-time chunks of code into one-liner calls. Most of these are available in the Master Library, I believe. Or email me if you?re interested. > > ? Peter > > Peter M. Brigham > pmbrig 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 dochawk at gmail.com Fri Nov 4 15:37:50 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 4 Nov 2016 12:37:50 -0700 Subject: loss of access to stacks after "save as" In-Reply-To: <683FF7E3-6D55-42D6-A64C-039A261DDEE7@livecode.com> References: <629CA1A6-313D-49A1-A06D-9F58D0F87DF5@livecode.com> <683FF7E3-6D55-42D6-A64C-039A261DDEE7@livecode.com> Message-ID: On Fri, Nov 4, 2016 at 12:24 PM, Mark Waddingham wrote: > I suspect it will be because you are referencing your stacks by (the old) > filename somewhere else and not name - thus causing the engine to load in > the old file, the stack in which has the same name as the existing stack in > memory. > > 'Saving as' does not create a new stack (in memory) it just saves the > stack which is in memory to disk in a new file. > > Putting it another way, the 'new' stack is already loaded as it is the > same stack as it was before - the only things which have changed is the > stacks filename property and there being a new file on disk. > Hmm. I started with a bare "save as", and had to add other pieces to make it work (but I forget why now). Can I reduce it to just "save as" and be on my merry way? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From mark at livecode.com Fri Nov 4 15:48:18 2016 From: mark at livecode.com (Mark Waddingham) Date: Fri, 4 Nov 2016 19:48:18 +0000 Subject: loss of access to stacks after "save as" In-Reply-To: References: <629CA1A6-313D-49A1-A06D-9F58D0F87DF5@livecode.com> <683FF7E3-6D55-42D6-A64C-039A261DDEE7@livecode.com> Message-ID: <2878ED1D-3ED3-4A1B-BB59-84372D46C144@livecode.com> You should be able to - yes. If that doesn't work then it is possible that something in the environment (in the IDE potentially) is holding a reference to the stack by filename and not name. The question then, though, is how to find out what. Mark. Sent from my iPhone > On 4 Nov 2016, at 19:37, Dr. Hawkins wrote: > >> On Fri, Nov 4, 2016 at 12:24 PM, Mark Waddingham wrote: >> >> I suspect it will be because you are referencing your stacks by (the old) >> filename somewhere else and not name - thus causing the engine to load in >> the old file, the stack in which has the same name as the existing stack in >> memory. >> >> 'Saving as' does not create a new stack (in memory) it just saves the >> stack which is in memory to disk in a new file. >> >> Putting it another way, the 'new' stack is already loaded as it is the >> same stack as it was before - the only things which have changed is the >> stacks filename property and there being a new file on disk. > > Hmm. > > I started with a bare "save as", and had to add other pieces to make it > work (but I forget why now). > > Can I reduce it to just "save as" and be on my merry way? > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Fri Nov 4 15:57:05 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 4 Nov 2016 15:57:05 -0400 Subject: Datagrids Jump when Scrolled In-Reply-To: <39ebf3d4-6b0f-8981-baf8-46f7d72f83bd@LinkIt.Com> References: <2101aed6-08c7-4967-9470-526099320381@LinkIt.Com> <573E070A.9020903@researchware.com> <5907d41a-e4c1-4601-7b20-6d3216fa100d@LinkIt.Com> <5b5115c6-7689-c98c-b364-7e1da2a8aa6f@LinkIt.Com> <4D8B4F50-38E0-4542-9F2D-042288289953@iotecdigital.com> <0553b82f-3de8-c0f8-a2c0-3f0438354cfa@LinkIt.Com> <39ebf3d4-6b0f-8981-baf8-46f7d72f83bd@LinkIt.Com> Message-ID: Not that I know of, but you can check to see if the datagrid is part of a group. The bug is that LC recycles group properties, so you can wind up with groups that get assigned behaviors, names, etc. that you never meant to have assigned. If the behavior gets assigned, then your DG will most certainly break. On Fri, Nov 4, 2016 at 3:24 PM, Ray wrote: > I avoid working with groups as much as I can. I don't recall ever > ungrouping or grouping this particular datagrid. Is there a way I can test > to see if I did so without knowing? > > > On 11/4/2016 3:22 PM, Mike Kerner wrote: > >> Hey, Ray, did you mess with a group with this DG, either adding it to a >> group or ungrouping, etc.? I finally isolated a bug that's been annoying >> me for a while, and it was related to an issue with the way LC handles >> groups. >> >> On Fri, Nov 4, 2016 at 3:14 PM, Ray wrote: >> >> Ahh! There's an acronym I'd like to avoid :) >>> >>> >>> On 11/4/2016 3:13 PM, Bob Sneidar wrote: >>> >>> Crash to Desktop >>>> >>>> Bob S >>>> >>>> >>>> On Nov 4, 2016, at 12:05 , Ray wrote: >>>> >>>>> What do you mean by "C to D"? >>>>> >>>>> On 11/4/2016 3:04 PM, Bob Sneidar wrote: >>>>> >>>>> I've had datagrids suddenly start C to D, and replacing them fixes the >>>>>> issue. Who can say? >>>>>> >>>>>> Bob S >>>>>> >>>>>> >>>>>> On Nov 4, 2016, at 12:02 , Ray >>>>> >> >>>>>> wrote: >>>>>> >>>>>> Seems like a bug if a datagrid can suddenly become unscrollable, and >>>>>> thus useless. If nobody else responds I'll report 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 >>>>>> >>>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >> >> > > _______________________________________________ > use-livecode mailing list > use-livecode 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 ray at linkit.com Fri Nov 4 16:01:30 2016 From: ray at linkit.com (Ray) Date: Fri, 4 Nov 2016 16:01:30 -0400 Subject: Datagrids Jump when Scrolled In-Reply-To: References: <2101aed6-08c7-4967-9470-526099320381@LinkIt.Com> <573E070A.9020903@researchware.com> <5907d41a-e4c1-4601-7b20-6d3216fa100d@LinkIt.Com> <5b5115c6-7689-c98c-b364-7e1da2a8aa6f@LinkIt.Com> <4D8B4F50-38E0-4542-9F2D-042288289953@iotecdigital.com> <0553b82f-3de8-c0f8-a2c0-3f0438354cfa@LinkIt.Com> <39ebf3d4-6b0f-8981-baf8-46f7d72f83bd@LinkIt.Com> Message-ID: <421e3f32-429c-bebc-a6d1-1304157f5169@LinkIt.Com> Thanks Mike - I have made a little progress of sorts. I've noticed that when I set the fixed row height property, as in: set the dgProp["fixed row height"] of group "My Datagrid" to true I can suddenly scroll vertically again. I'm not sure this is the total solution but I thought I'd share it with you and Bob Sneidar since you've had trouble with this. I'm still going to write something which will re-create datagrids anew. Thanks! On 11/4/2016 3:57 PM, Mike Kerner wrote: > Not that I know of, but you can check to see if the datagrid is part of a > group. The bug is that LC recycles group properties, so you can wind up > with groups that get assigned behaviors, names, etc. that you never meant > to have assigned. If the behavior gets assigned, then your DG will most > certainly break. > > On Fri, Nov 4, 2016 at 3:24 PM, Ray wrote: > >> I avoid working with groups as much as I can. I don't recall ever >> ungrouping or grouping this particular datagrid. Is there a way I can test >> to see if I did so without knowing? >> >> >> On 11/4/2016 3:22 PM, Mike Kerner wrote: >> >>> Hey, Ray, did you mess with a group with this DG, either adding it to a >>> group or ungrouping, etc.? I finally isolated a bug that's been annoying >>> me for a while, and it was related to an issue with the way LC handles >>> groups. >>> >>> On Fri, Nov 4, 2016 at 3:14 PM, Ray wrote: >>> >>> Ahh! There's an acronym I'd like to avoid :) >>>> >>>> On 11/4/2016 3:13 PM, Bob Sneidar wrote: >>>> >>>> Crash to Desktop >>>>> Bob S >>>>> >>>>> >>>>> On Nov 4, 2016, at 12:05 , Ray wrote: >>>>> >>>>>> What do you mean by "C to D"? >>>>>> >>>>>> On 11/4/2016 3:04 PM, Bob Sneidar wrote: >>>>>> >>>>>> I've had datagrids suddenly start C to D, and replacing them fixes the >>>>>>> issue. Who can say? >>>>>>> >>>>>>> Bob S >>>>>>> >>>>>>> >>>>>>> On Nov 4, 2016, at 12:02 , Ray >>>>>> wrote: >>>>>>> >>>>>>> Seems like a bug if a datagrid can suddenly become unscrollable, and >>>>>>> thus useless. If nobody else responds I'll report 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 >>>>>>> >>>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From ahsoftware at sonic.net Fri Nov 4 17:02:54 2016 From: ahsoftware at sonic.net (mwieder) Date: Fri, 4 Nov 2016 14:02:54 -0700 (PDT) Subject: Debugging the IDE In-Reply-To: <5DCB89BF-C012-4048-AF6E-178CDF9BFD18@iotecdigital.com> References: <64375d64-8c67-f0ff-0c72-9e4709172e6a@fourthworld.com> <5DCB89BF-C012-4048-AF6E-178CDF9BFD18@iotecdigital.com> Message-ID: <1478293374740-4710088.post@n4.nabble.com> Right. I'm in the habit of just reporting the system bugs when I come across them. Sometimes they get fixed, other times no. ----- -- Mark Wieder ahsoftware at gmail.com -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Debugging-the-IDE-tp4709922p4710088.html Sent from the Revolution - User mailing list archive at Nabble.com. From ahsoftware at sonic.net Fri Nov 4 17:19:53 2016 From: ahsoftware at sonic.net (mwieder) Date: Fri, 4 Nov 2016 14:19:53 -0700 (PDT) Subject: Scripting style: Verbs in function names In-Reply-To: References: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> Message-ID: <1478294393742-4710089.post@n4.nabble.com> J. Landman Gay wrote > All the "native" LC functions are nouns. Um, no. That's just sematic sugar the xtalk language creates around some functions. So put the date put the target is the same as put date() put target() Ruby allows the same thing, albeit in a more generic form, i.e. you can create your own function and call it either way. ----- -- Mark Wieder ahsoftware at gmail.com -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scripting-style-Verbs-in-function-names-tp4710027p4710089.html Sent from the Revolution - User mailing list archive at Nabble.com. From bobsneidar at iotecdigital.com Fri Nov 4 17:40:14 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 4 Nov 2016 21:40:14 +0000 Subject: Goofy question about Datagrids In-Reply-To: <1478129454734-4710000.post@n4.nabble.com> References: <6ac4a14c-62ea-4893-b916-607f3d825229@gmail.com> <1478107304688-4709993.post@n4.nabble.com> <1478118075696-4709998.post@n4.nabble.com> <1478129454734-4710000.post@n4.nabble.com> Message-ID: Well I discovered that what you CANNOT do is call a user-defined command or function that has not been loaded yet, as in a front or back script that has not been inserted yet. If I do, when I open the stack I get an error. I suppose I could do the inserts in a preopen handler, but the scripts are contained in buttons in the stack that is not open yet. Not sure how that would play out. Bob S On Nov 2, 2016, at 16:30 , Sri > wrote: Hi Bob: Make it set the text of field 1 of me to ............ just to be sure. You can have a group of more than one object in the cell. Regards, Sri From jacque at hyperactivesw.com Fri Nov 4 18:04:12 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 4 Nov 2016 17:04:12 -0500 Subject: Scripting style: Verbs in function names In-Reply-To: <1478294393742-4710089.post@n4.nabble.com> References: <4942A902-A15C-469E-8525-D78A0FD0AE88@appisle.net> <1478294393742-4710089.post@n4.nabble.com> Message-ID: On 11/4/16 4:19 PM, mwieder wrote: > J. Landman Gay wrote >> All the "native" LC functions are nouns. > > Um, no. > That's just sematic sugar the xtalk language creates around some functions. > So > put the date > put the target > is the same as > put date() > put target() > > Ruby allows the same thing, albeit in a more generic form, i.e. you can > create your own function and call it either way. Yeah, but semantically they're all (or mostly all) nouns so that the "the" can be there. I believe there are some commands that are actually functions too, but we don't have to care about it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dunbarx at aol.com Fri Nov 4 18:13:51 2016 From: dunbarx at aol.com (dunbarx) Date: Fri, 4 Nov 2016 15:13:51 -0700 (PDT) Subject: Goofy question about Datagrids In-Reply-To: References: <6ac4a14c-62ea-4893-b916-607f3d825229@gmail.com> <1478107304688-4709993.post@n4.nabble.com> <1478118075696-4709998.post@n4.nabble.com> <1478129454734-4710000.post@n4.nabble.com> Message-ID: <1478297631061-4710092.post@n4.nabble.com> Hi. Can you do it with the "startUp" message? Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Goofy-question-about-Datagrids-tp4709954p4710092.html Sent from the Revolution - User mailing list archive at Nabble.com. From peterwawood at gmail.com Fri Nov 4 18:33:43 2016 From: peterwawood at gmail.com (Peter W A Wood) Date: Sat, 5 Nov 2016 06:33:43 +0800 Subject: Practical TDD in LiveCode In-Reply-To: <7b9cc137-363a-cec5-8ba0-4ba4f2b35e30@fourthworld.com> References: <7b9cc137-363a-cec5-8ba0-4ba4f2b35e30@fourthworld.com> Message-ID: <17DCC3A6-8595-4DB6-AEA0-FA2D5E89FC7C@gmail.com> Richard > On 5 Nov 2016, at 01:51, Richard Gaskin wrote: > > One of many interesting discussions in our local LC User Group meeting last night was from a relative newcomer who asked about TDD support. > > I was able to tell him we have an assert command, and that many developers have a wide range of ad hoc test harnesses in use. > > But what I couldn't point him to is a single harness framework in our community suitable for broad use. > > Is there one? People?s opinion of what is needed for TDD differs widely. The so called xUnit testing frameworks are generally quite basic (test specification, assertions and test runners) but suffice for many people. They typically cannot be easily used to test GUI code. Other testing frameworks, it seems especially in the JavaScript world, extend much farther with test doubles, code coverage, and testing user interfaces via the browser. I have published a simple test framework, Mini-Test. It can be used to test both LiveCode handlers and GUI interfaces. (This is latter is a credit to LiveCode?s features not me). It is rooted in MiniTest, the testing framework included with Ruby. It does not include test doubles, code coverage or performance testing. LiveCode, the company, has a test framework but, personally, I found it too complicated for my own use. I felt something written wholly in LiveCode would be easier to handle. If you want to take a look: https://github.com/PeterWAWood/LiveCode-MiniTest > If not, what would it look like? > > How granularly should we write tests? How much value is there if the writing of a test takes longer than writing the thing being tested? Should we write a second test for when a handler in our core business logic is integrated into a GUI, where the varieties of things that can happen with input and events is much broader? Should a good harness simulate GUI events? If so, how to make sure they attempt sufficient erroneous inputs to ensure the scope of our error handling? How do we chain tests into a comprehensive automated "Test All"? > > So many questions... > > How do we make one good test harness that answers them all, at least reasonably well? I feel that the LiveCode engine makes it extremely easy to write a test framework that will do all of the above. It just needs a little thought, such as designing a set of commands to automate user input simulation, and a little work. Regards Peter From ambassador at fourthworld.com Fri Nov 4 19:30:46 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 4 Nov 2016 16:30:46 -0700 Subject: Practical TDD in LiveCode In-Reply-To: <17DCC3A6-8595-4DB6-AEA0-FA2D5E89FC7C@gmail.com> References: <17DCC3A6-8595-4DB6-AEA0-FA2D5E89FC7C@gmail.com> Message-ID: <5e18cf37-8fa9-3273-c51f-db1e77e78b66@fourthworld.com> Peter W A Wood wrote: > I have published a simple test framework, Mini-Test. It can be used > to test both LiveCode handlers and GUI interfaces. (This is latter is > a credit to LiveCode?s features not me). It is rooted in MiniTest, > the testing framework included with Ruby. It does not include test > doubles, code coverage or performance testing. > > LiveCode, the company, has a test framework but, personally, I found > it too complicated for my own use. I felt something written wholly in > LiveCode would be easier to handle. > > If you want to take a look: https://github.com/PeterWAWood/LiveCode-MiniTest Thanks, Peter. Sounds like an excellent too. Once I dive into it I may find it very satisfying as-is, but the liberal licensing encourages pull requests if I can think of any to add. Well done. Thanks. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From brahma at hindu.org Sat Nov 5 11:04:15 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 5 Nov 2016 15:04:15 +0000 Subject: Updating Text-Script Only Stacks in Run-Time, Message Path Memory Message-ID: <356B5AC4-B091-4263-A74A-C1F3A6300913@hindu.org> I ran into this today: Run a boot stack that has a list of stack files, Initialization script loads N number of stacks as libs with "start using stack x" on a loop So far so good. I can run cmds from the message box to fire handlers in any of the stacks that were loaded with "start using" Run into small bug? need to do some testing. All the stacks in use appear in the project browser Open script of stack "model_preferences" in the script editor, Add a new handler command checkPrefsFilePath answer "Hello" with "Gotcha" # my default test just to see if the handler is in the message path before actually "coding it out" end checkPrefsFilePath --click yellow button? save ? LC IDE flashes the "saving stack? " modal? --go to message box; enter "checkPrefsFilePath" --msg box returns "checkPrefsFilePath" and does not fire my handler? I set a break point on another handler that was in the script before startup of this session go to msg box; enter "setPref" and it breaks on my break point: ergo the engine sees it/found it. But the engine does not yet "see" my new handler. Just for fun: open stack file on disk.. in BBEdit: yes, confirmed, my changes are there. ERGO conclude: editing a script only stack and saving it does *not* update the "live" version of that file in memory that is in use by the engine. I guess this "kinda" makes sense, since the message path was already "assembled' at start up and editing and save script only stacks doesn?t' necessary make any change to that message path. But, am I the only on that thinks this is odd behavior? If I am right, doesn't it break the "write, run with no compile" principle of LiveCode? If I edit the script of a binary stack, those changes are immediately implemented. Should it not be the same for script only stacks? OK, so given the current behavior, assuming I'm not missing something simple, do we have to manually re-issue a "start using stack "preferences.livecodescript" every time we edit it's script? What am I missing. BR From MikeKerner at roadrunner.com Sat Nov 5 11:11:33 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 5 Nov 2016 11:11:33 -0400 Subject: Mobile tao: mouseStillDown, mouseUp, answer dialog Message-ID: This is the second time I've been bitten by this, so this is more a note to me for the next time it happens, because I had forgotten what I learned, the first time, and I didn't look in the right place for my notes on the subject, but I did look here. For some context, I was trying to (poorly) emulate 3d touches by handling mouseStillDown on mobile. 1) mouseStillDown does not propogate. ONLY the object that the user is touching will receive it. If the object is part of a group, the group will not get the message. You have to specifically send the message to the group for the group to get and handle it. This is important if you are using a skinning tool. If that group has an icon and a face, make sure you catch and send mouseStillDown in both. 2) The answer dialog on mobile is not truly modal. Think of it as having a transparent background that sits over your stack. So, if you catch mouseStillDown and pop up an answer dialog, when you stop pressing on the object (so you can tap on the dialog), the object will receive mouseUp/mouseLeave/etc. 3) The easiest way to handle this is to have a semaphore local MSD on mouseDown put false into MSD end mouseDown on mouseUp if MSD then exit mouseUp end mouseUp on mouseStillDown put true into MSD end mouseStillDown -- 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 sritcp at gmail.com Sat Nov 5 12:31:11 2016 From: sritcp at gmail.com (Sri) Date: Sat, 5 Nov 2016 09:31:11 -0700 (PDT) Subject: Goofy question about Datagrids In-Reply-To: References: <6ac4a14c-62ea-4893-b916-607f3d825229@gmail.com> <1478107304688-4709993.post@n4.nabble.com> <1478118075696-4709998.post@n4.nabble.com> <1478129454734-4710000.post@n4.nabble.com> Message-ID: <1478363471643-4710097.post@n4.nabble.com> Bob Sneidar-2 wrote > Well I discovered that what you CANNOT do is call a user-defined command > or function that has not been loaded yet, as in a front or back script > that has not been inserted yet. If I do, when I open the stack I get an > error. I suppose I could do the inserts in a preopen handler, but the > scripts are contained in buttons in the stack that is not open yet. Not > sure how that would play out. > > Bob S Bob, May be I have not understood what you are trying to do, but a user-defined function in the same script as the FillinData handler of the column in question works perfectly for me. Above is the original phone number format. I tried to convert it by adding an fConvert function in the column behavior of the "Phone" column, as follows: on FillInData pData -- set the text of field 1 of me to pData set the text of field 1 of me to fConvert(pData) end FillInData function fConvert pData set the itemDel to "-" return "(" & item 1 of pData & ")" && (item 2 of pData) && (item 3 of pData) end fConvert It works perfectly; here's the image. I hope the images show in the post (My post wouldn't make any sense otherwise!) Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Goofy-question-about-Datagrids-tp4709954p4710097.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Sat Nov 5 14:28:11 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 5 Nov 2016 11:28:11 -0700 Subject: Stack name conflicts resolved? Message-ID: <7fe4ce00-c803-2254-853f-f844fea99a22@fourthworld.com> I've grown weary of stack name conflict over the years, and this morning decided to take some time to assess where we're really at with that and see if perhaps there's a way to handle things more liberally than how the IDE does now. TL/DR version: It seems there's actually no real problem at all. Long version: Setup ----- I checked revfrontscriptlibrary and found that preOpenStack calls revIDEHandleNewStack, which resides in revbackscriptlibrary. In that handler I found this line #3199, which I commented out: revCheckStackCollision tStackName That handler is apparently the one that compares the stacks in the stack file being opened against a list of stacks already open, and if any stack of the same name is found it brings up the stack name conflict warning. After commenting it out I made two stacks: mainstack: tA substack: foo mainstack tB substack: foo On each mainstack is a button with: on mouseUp toplevel "foo" end mouseUp Each foo substack contains an object to distinguish the stacks from one another, so I can tell which foo stack is which at a glance. With that prep out of the way, I began my experiment: Experiment 1 ------------ I started a fresh session in LC, and opened tA. Then I opened tB. And since I'd commented out revCheckStackCollision, no warning was presented. So then in stack tA I clicked the button, and it opened the foo substack belonging to it. Then I clicked the button in stack tB, and it opened the foo substack belonging to it. Experiment 2 ------------ I created a third stack file, and added a button with the same script as above. When clicked, it opens the foo window belonging to the stack file which had been opened first. Results ------- It would appear that the resolution of substack names follows a logical path that looks for matching stacks in this order: 1. Within the same stack file as the script referring to it. 2. Within another stack file, in the order in which they were opened during the session. This seems more or less what I've been hoping to find for years: http://quality.livecode.com/show_bug.cgi?id=1061 Unless there's something here that I've missed, it would appear that stack name resolution is nearly as logical and useful across stack files as icon ID resolution. And just as we don't need to go through contortions to ensure that every icon ID is unique across all stacks, as long as we remember the resolution rule we can safely use stacks of the same name within the current session. That is, once we modify the IDE to allow it. Is there something I've missed here? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From jacque at hyperactivesw.com Sat Nov 5 15:28:49 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 5 Nov 2016 14:28:49 -0500 Subject: Updating Text-Script Only Stacks in Run-Time, Message Path Memory In-Reply-To: <356B5AC4-B091-4263-A74A-C1F3A6300913@hindu.org> References: <356B5AC4-B091-4263-A74A-C1F3A6300913@hindu.org> Message-ID: On 11/5/16 10:04 AM, Sannyasin Brahmanathaswami wrote: > But the engine does not yet "see" my new handler. Just for fun: open > stack file on disk.. in BBEdit: yes, confirmed, my changes are > there. > > ERGO conclude: editing a script only stack and saving it does *not* > update the "live" version of that file in memory that is in use by > the engine. Actually, I've seen the same thing occasionally in regular stack scripts too, not just script-only stacks. There's been an issue with window confusion for some time, but I have never been able to get a reliable recipe. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From stephenREVOLUTION2 at barncard.com Sat Nov 5 16:09:02 2016 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sat, 5 Nov 2016 13:09:02 -0700 Subject: Stack name conflicts resolved? In-Reply-To: <7fe4ce00-c803-2254-853f-f844fea99a22@fourthworld.com> References: <7fe4ce00-c803-2254-853f-f844fea99a22@fourthworld.com> Message-ID: On Sat, Nov 5, 2016 at 11:28 AM, Richard Gaskin wrote: > I've grown weary of stack name conflict over the years, and this morning > decided to take some time to assess where we're really at with that and see > if perhaps there's a way to handle things more liberally than how the IDE > does now. > > TL/DR version: It seems there's actually no real problem at all. > Thanks Richard, this has been driving me nuts since.... the first day I used Revolution, and it was terrifying. Most of the time I just forced quit. One wonders how many 'solutions to non-problems' are there still working in LC? Things we've been doing for years... (ps I love the thread on the bug report. humor takes many forms.) Stephen Barncard - Sebastopol Ca. USA - mixstream.org From ambassador at fourthworld.com Sat Nov 5 17:08:21 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 5 Nov 2016 14:08:21 -0700 Subject: Stack name conflicts resolved? In-Reply-To: References: Message-ID: <4a380434-e13d-40a3-fe20-76c6b0a086b7@fourthworld.com> stephen barncard wrote: > On Sat, Nov 5, 2016 at 11:28 AM, Richard Gaskin wrote: > >> I've grown weary of stack name conflict over the years, and this >> morning decided to take some time to assess where we're really at >> with that and see if perhaps there's a way to handle things more >> liberally than how the IDE does now. >> >> TL/DR version: It seems there's actually no real problem at all. > > Thanks Richard, this has been driving me nuts since.... the first day > I used Revolution, and it was terrifying. Most of the time I just > forced quit. > > One wonders how many 'solutions to non-problems' are there still > working in LC? Things we've been doing for years... I should clarify that by "no real problem at all" I'm thinking in terms of sharing stacks among potentially-large teams of people who know what they're doing. In my workflow, learning the rule of stack name resolution isn't a big price to pay for the simplicity and flexibility of being able to work on anything at any time regardless of its name. So more specifically, it's fine *in the engine*. But the *IDE* has different responsibilities. I didn't close my feature request yet because I'm undecided about the best way to provide useful guidance for new users who might spend all day working on the wrong stack without some sort of warning. Like you, I've had issues trying to use the existing dialog, never quite certain what either option will do before I pick one, and never quite sure it did what I thought it would do after I clicked it. And like you, I've usually found it at least mentally simpler to quit and start with a fresh session. But perhaps there's another option we haven't yet considered, one which provides sufficient guidance so folks know which stack they're working on, but perhaps less ominous and complex than the solution in place now. Suggestions? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From livfoss at mac.com Sat Nov 5 17:19:16 2016 From: livfoss at mac.com (Graham Samuel) Date: Sat, 05 Nov 2016 22:19:16 +0100 Subject: Background colour of a new stack Message-ID: <3105F30A-A763-428E-BE38-F74A1E39B12F@mac.com> This may be old news to some, but in the LC7x series and earlier, if you created a stack, the card displayed as white. In LC 8.1.1, it displays as grey (reported as 220,220,220). To make cards look the way they did in earlier versions, I have to created a background rectangle graphic specifically coloured white. Was this a deliberate change? Or have I made some odd mistake? Looks like I need to tweak some cards. Graham From ambassador at fourthworld.com Sat Nov 5 17:30:10 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 5 Nov 2016 14:30:10 -0700 Subject: Background colour of a new stack In-Reply-To: <3105F30A-A763-428E-BE38-F74A1E39B12F@mac.com> References: <3105F30A-A763-428E-BE38-F74A1E39B12F@mac.com> Message-ID: <4b45ef55-e4fa-edce-c28e-2eaa16b5be65@fourthworld.com> Graham Samuel wrote: > This may be old news to some, but in the LC7x series and earlier, if > you created a stack, the card displayed as white. In LC 8.1.1, it > displays as grey (reported as 220,220,220). To make cards look the > way they did in earlier versions, I have to created a background > rectangle graphic specifically coloured white. > > Was this a deliberate change? Or have I made some odd mistake? Looks > like I need to tweak some cards. I believe the current default background is inherited from the OS, part of the theming enhancements that make LC 8 much more HIG-savvy than earlier versions. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From brahma at hindu.org Sat Nov 5 17:39:42 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 5 Nov 2016 21:39:42 +0000 Subject: Updating Text-Script Only Stacks in Run-Time, Message Path Memory In-Reply-To: References: <356B5AC4-B091-4263-A74A-C1F3A6300913@hindu.org> Message-ID: right? not the engine? some IDE gremlin? restarted LC? open some script only stack that had been put into use earlier, edit save and the changes are available runtime. So, yes? something is causing the IDE not to pick up the changes in the open scripts and (re)placing it in the message path. no recipe? BR On 11/5/16, 9:28 AM, "use-livecode on behalf of J. Landman Gay" wrote: > >ERGO conclude: editing a script only stack and saving it does *not* >update the "live" version of that file in memory that is in use by >the engine. Actually, I've seen the same thing occasionally in regular stack scripts too, not just script-only stacks. There's been an issue with window confusion for some time, but I have never been able to get a reliable recipe. From iowahengst at mac.com Sat Nov 5 17:40:02 2016 From: iowahengst at mac.com (Randy Hengst) Date: Sat, 05 Nov 2016 16:40:02 -0500 Subject: Background colour of a new stack In-Reply-To: <4b45ef55-e4fa-edce-c28e-2eaa16b5be65@fourthworld.com> References: <3105F30A-A763-428E-BE38-F74A1E39B12F@mac.com> <4b45ef55-e4fa-edce-c28e-2eaa16b5be65@fourthworld.com> Message-ID: <7E4A0BF1-6CFD-470B-B58D-53B79B1092CA@mac.com> Graham, I also thought the change of color to be a bit odd. If I understood you correctly, you are adding a graphic to ?cover up? the gray background. You don?t need to add a graphic to create the white background. Go to the Stack Inspector and change the backgroundColor to white. Then each card you make in the stack will have the white background. be well, randy Randy Hengst www.classroomFocusedSoftware.com > On Nov 5, 2016, at 4:30 PM, Richard Gaskin wrote: > > Graham Samuel wrote: > > > This may be old news to some, but in the LC7x series and earlier, if > > you created a stack, the card displayed as white. In LC 8.1.1, it > > displays as grey (reported as 220,220,220). To make cards look the > > way they did in earlier versions, I have to created a background > > rectangle graphic specifically coloured white. > > > > Was this a deliberate change? Or have I made some odd mistake? Looks > > like I need to tweak some cards. > > I believe the current default background is inherited from the OS, part of the theming enhancements that make LC 8 much more HIG-savvy than earlier versions. > > -- > 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 monte at appisle.net Sat Nov 5 18:02:55 2016 From: monte at appisle.net (Monte Goulding) Date: Sun, 6 Nov 2016 09:02:55 +1100 Subject: Stack name conflicts resolved? In-Reply-To: <7fe4ce00-c803-2254-853f-f844fea99a22@fourthworld.com> References: <7fe4ce00-c803-2254-853f-f844fea99a22@fourthworld.com> Message-ID: > On 6 Nov. 2016, at 5:28 am, Richard Gaskin wrote: > > That is, once we modify the IDE to allow it. ^ this is the issue. For the most part it isn?t the engine that has the issue with multiple stacks with the same name open it?s the IDE. There would be bucket loads of work involved in getting the IDE to play nicely with multiple stacks with the same name open. Cheers Monte From ambassador at fourthworld.com Sat Nov 5 18:08:12 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 5 Nov 2016 15:08:12 -0700 Subject: Stack name conflicts resolved? In-Reply-To: References: Message-ID: <18b2d9cd-a369-9925-c13b-0b7037a8db29@fourthworld.com> Monte Goulding wrote: >> On 6 Nov. 2016, at 5:28 am, Richard Gaskin wrote: >> >> That is, once we modify the IDE to allow it. > > ^ this is the issue. For the most part it isn?t the engine that has > the issue with multiple stacks with the same name open it?s the IDE. > There would be bucket loads of work involved in getting the IDE to > play nicely with multiple stacks with the same name open. I imagine for good reason, but I'm curious: where does topstack not do what an IDE needs? -- 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 monte at appisle.net Sat Nov 5 18:22:43 2016 From: monte at appisle.net (Monte Goulding) Date: Sun, 6 Nov 2016 09:22:43 +1100 Subject: Stack name conflicts resolved? In-Reply-To: <18b2d9cd-a369-9925-c13b-0b7037a8db29@fourthworld.com> References: <18b2d9cd-a369-9925-c13b-0b7037a8db29@fourthworld.com> Message-ID: I didn't say it couldn't be done. Possibly we would need versions of the mainstacks and openstacks that listed long IDs. Sent from my iPhone > On 6 Nov. 2016, at 9:08 am, Richard Gaskin wrote: > > I imagine for good reason, but I'm curious: where does topstack not do what an IDE needs? From livfoss at mac.com Sat Nov 5 18:46:09 2016 From: livfoss at mac.com (Graham Samuel) Date: Sat, 05 Nov 2016 23:46:09 +0100 Subject: Background colour of a new stack In-Reply-To: <7E4A0BF1-6CFD-470B-B58D-53B79B1092CA@mac.com> References: <3105F30A-A763-428E-BE38-F74A1E39B12F@mac.com> <4b45ef55-e4fa-edce-c28e-2eaa16b5be65@fourthworld.com> <7E4A0BF1-6CFD-470B-B58D-53B79B1092CA@mac.com> Message-ID: <2DD3C0E5-1F57-47E5-BDEB-AE5D77ADAC11@mac.com> Thanks Randy, I hadn?t realised I could do that. Excellent! Graham > On 5 Nov 2016, at 22:40, Randy Hengst wrote: > > Graham, > > I also thought the change of color to be a bit odd. > > If I understood you correctly, you are adding a graphic to ?cover up? the gray background. You don?t need to add a graphic to create the white background. Go to the Stack Inspector and change the backgroundColor to white. Then each card you make in the stack will have the white background. > > be well, > randy > > Randy Hengst > www.classroomFocusedSoftware.com > > > >> On Nov 5, 2016, at 4:30 PM, Richard Gaskin wrote: >> >> Graham Samuel wrote: >> >>> This may be old news to some, but in the LC7x series and earlier, if >>> you created a stack, the card displayed as white. In LC 8.1.1, it >>> displays as grey (reported as 220,220,220). To make cards look the >>> way they did in earlier versions, I have to created a background >>> rectangle graphic specifically coloured white. >>> >>> Was this a deliberate change? Or have I made some odd mistake? Looks >>> like I need to tweak some cards. >> >> I believe the current default background is inherited from the OS, part of the theming enhancements that make LC 8 much more HIG-savvy than earlier versions. >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Sat Nov 5 22:31:36 2016 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 5 Nov 2016 19:31:36 -0700 Subject: Stack name conflicts resolved? In-Reply-To: References: <7fe4ce00-c803-2254-853f-f844fea99a22@fourthworld.com> Message-ID: <06d98005-f014-265b-1d0e-0797aabfc704@sonic.net> On 11/05/2016 03:02 PM, Monte Goulding wrote: > >> On 6 Nov. 2016, at 5:28 am, Richard Gaskin wrote: >> >> That is, once we modify the IDE to allow it. > > ^ this is the issue. For the most part it isn?t the engine that has the issue with multiple stacks with the same name open it?s the IDE. There would be bucket loads of work involved in getting the IDE to play nicely with multiple stacks with the same name open. That is indeed the issue. The IDE for some reason allows multiple controls with the same name but keeps track of their individual identities, but insists that stack names be unique in memory. When new stacks are created in memory they are assigned the id 1002. Why? If there's a stack already in memory why not create the new stack with the next sequential id? Then the combination of id and filename should uniquely identify a stack. -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Sat Nov 5 22:33:53 2016 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 5 Nov 2016 19:33:53 -0700 Subject: Updating Text-Script Only Stacks in Run-Time, Message Path Memory In-Reply-To: References: <356B5AC4-B091-4263-A74A-C1F3A6300913@hindu.org> Message-ID: On 11/05/2016 02:39 PM, Sannyasin Brahmanathaswami wrote: > So, yes? something is causing the IDE not to pick up the changes in the open scripts and (re)placing it in the message path. Yep. It's one of the two reasons I don't use script-only stacks. -- Mark Wieder ahsoftware at gmail.com From monte at appisle.net Sun Nov 6 00:31:25 2016 From: monte at appisle.net (Monte Goulding) Date: Sun, 6 Nov 2016 15:31:25 +1100 Subject: Updating Text-Script Only Stacks in Run-Time, Message Path Memory In-Reply-To: References: <356B5AC4-B091-4263-A74A-C1F3A6300913@hindu.org> Message-ID: > On 6 Nov. 2016, at 1:33 pm, Mark Wieder wrote: > >> So, yes? something is causing the IDE not to pick up the changes in the open scripts and (re)placing it in the message path. > > Yep. It's one of the two reasons I don't use script-only stacks. From the sounds of the original description I?m more suspicious of the message box than anything to do with loading the script correctly when it?s applied or script only stacks. The message box does a certain amount of jiggery pokery to interpret what you enter. FWIW I work with script only stacks most of the time and have not noticed anything like this. Of course if you are making changes in a text editor and expecting those to be reflected in the running IDE then you are out of luck. Cheers Monte From monte at appisle.net Sun Nov 6 00:38:41 2016 From: monte at appisle.net (Monte Goulding) Date: Sun, 6 Nov 2016 15:38:41 +1100 Subject: Stack name conflicts resolved? In-Reply-To: <06d98005-f014-265b-1d0e-0797aabfc704@sonic.net> References: <7fe4ce00-c803-2254-853f-f844fea99a22@fourthworld.com> <06d98005-f014-265b-1d0e-0797aabfc704@sonic.net> Message-ID: > On 6 Nov. 2016, at 1:31 pm, Mark Wieder wrote: > > When new stacks are created in memory they are assigned the id 1002. > Why? > If there's a stack already in memory why not create the new stack with the next sequential id? > Then the combination of id and filename should uniquely identify a stack. Stack IDs aren?t really IDs at all they are just the max ID in a stack + 1. The first 1000 IDs are reserved. Card 1 is 1001 and therefore a new stack ID is 1002. Create a new object and the ID changes. I guess we will discuss UUIDs next ;-) Cheers Monte From richmondmathewson at gmail.com Sun Nov 6 06:27:28 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 6 Nov 2016 13:27:28 +0200 Subject: export snapshot Message-ID: <897d92f6-aff2-d890-9184-8dcbcc6d6b49@gmail.com> I tried this: export snapshot from img "met" to file "met.png" as PNG and that worked in 7.1.4 but did NOT work in 8.1 I wonder why? Richmond. From peter.brett at livecode.com Sun Nov 6 06:31:46 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Sun, 6 Nov 2016 11:31:46 +0000 Subject: export snapshot In-Reply-To: <897d92f6-aff2-d890-9184-8dcbcc6d6b49@gmail.com> References: <897d92f6-aff2-d890-9184-8dcbcc6d6b49@gmail.com> Message-ID: <78b3cb40-a013-52a5-0f95-1afc18ecf962@livecode.com> On 06/11/2016 11:27, Richmond wrote: > I tried this: > > export snapshot from img "met" to file "met.png" as PNG > > and that worked in 7.1.4 > > but did NOT work in 8.1 > > I wonder why? Because the correct syntax is: export snapshot of img "met" to file "met.png" as png Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From richmondmathewson at gmail.com Sun Nov 6 06:40:00 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 6 Nov 2016 13:40:00 +0200 Subject: export snapshot In-Reply-To: <78b3cb40-a013-52a5-0f95-1afc18ecf962@livecode.com> References: <897d92f6-aff2-d890-9184-8dcbcc6d6b49@gmail.com> <78b3cb40-a013-52a5-0f95-1afc18ecf962@livecode.com> Message-ID: Thanks: although I have been using "from" for years with no problems at all: I can only conclude that 8.1 is "fussier" than 7.1.4 Richmond. On 6.11.2016 13:31, Peter TB Brett wrote: > On 06/11/2016 11:27, Richmond wrote: >> I tried this: >> >> export snapshot from img "met" to file "met.png" as PNG >> >> and that worked in 7.1.4 >> >> but did NOT work in 8.1 >> >> I wonder why? > > Because the correct syntax is: > > export snapshot of img "met" to file "met.png" as png > > Peter > From richmondmathewson at gmail.com Sun Nov 6 06:42:59 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 6 Nov 2016 13:42:59 +0200 Subject: export snapshot In-Reply-To: <78b3cb40-a013-52a5-0f95-1afc18ecf962@livecode.com> References: <897d92f6-aff2-d890-9184-8dcbcc6d6b49@gmail.com> <78b3cb40-a013-52a5-0f95-1afc18ecf962@livecode.com> Message-ID: So: when I did as you instructed I got this: Script compile error: Error description: export: missing 'to' Richmond. On 6.11.2016 13:31, Peter TB Brett wrote: > On 06/11/2016 11:27, Richmond wrote: >> I tried this: >> >> export snapshot from img "met" to file "met.png" as PNG >> >> and that worked in 7.1.4 >> >> but did NOT work in 8.1 >> >> I wonder why? > > Because the correct syntax is: > > export snapshot of img "met" to file "met.png" as png > > Peter > From richmondmathewson at gmail.com Sun Nov 6 07:00:46 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 6 Nov 2016 14:00:46 +0200 Subject: curioser and curioser Message-ID: I am currently recoding my Devawriter Pro from Livecode 4.5 to Livecode 8.1, and it is proving rather more long-winded than I had envisaged. For instance: put numToCodePoint(107) into fld "TRANZ" which worked perfectly OK in 4.5 does NOT work in 8.1 HOWEVER; if I rename fld "TRANZ" to "fTRANZ" this works: put numToCodePoint(107) into fld "fTRANZ" Am I to conclude that Livecode 8.1 is guilty of discriminating against LGBT fields? Richmond. From hh at hyperhh.de Sun Nov 6 07:11:24 2016 From: hh at hyperhh.de (hh) Date: Sun, 6 Nov 2016 13:11:24 +0100 Subject: curioser and curioser Message-ID: > Richmond M. wrote: > .. put numToCodePoint(107) into fld "TRANZ" which worked > perfectly OK in 4.5 does NOT work in 8.1 HOWEVER; if I > rename fld "TRANZ" to "fTRANZ" this works: > put numToCodePoint(107) into fld "fTRANZ" Such effects usually indicate that there was more than one field named "TRANZ". Herlock Sholmes From richmondmathewson at gmail.com Sun Nov 6 07:44:42 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 6 Nov 2016 14:44:42 +0200 Subject: Recoding: search and replace Message-ID: <7c647376-788a-0992-0d37-6669637327a7@gmail.com> I wonder if there is a way to replace this: set the unicodeText of fld "fDECODE" to (numToCodePoint(107) & numToCodePoint(104)) with this: *put (numToCodePoint(107) & numToCodePoint(104)) into fld "fDECODE"* where /(numToCodePoint(107) & numToCodePoint(104))/ vary? I have no great urge to do that sort of thing manually about 6 million times. Richmond. From richmondmathewson at gmail.com Sun Nov 6 07:52:56 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 6 Nov 2016 14:52:56 +0200 Subject: curioser and curioser In-Reply-To: References: Message-ID: Ha, Ha . . . Where I stay, in the conservative Balkans, there is only one Trans in the town! Richmond. On 6.11.2016 14:11, hh wrote: >> Richmond M. wrote: >> .. put numToCodePoint(107) into fld "TRANZ" which worked >> perfectly OK in 4.5 does NOT work in 8.1 HOWEVER; if I >> rename fld "TRANZ" to "fTRANZ" this works: >> put numToCodePoint(107) into fld "fTRANZ" > Such effects usually indicate that there was more than one field > named "TRANZ". > > Herlock Sholmes > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 6 08:10:07 2016 From: hh at hyperhh.de (hh) Date: Sun, 6 Nov 2016 14:10:07 +0100 Subject: Recoding: search and replace Message-ID: <0D8E612D-2CB4-4C6A-A233-9C5512EB46B4@hyperhh.de> > Richmond M. wrote: > *put (numToCodePoint(107) & numToCodePoint(104)) into \ > fld "fDECODE"* where /(numToCodePoint(107) & numToCodePoint(104))/ vary? You could try put "107,104" &cr& "104,107" &cr & ... into myNums repeat for each line L in myNums put numTocode(item 1 of L) & numToCode(item 2 of L) into fld "fDECODE" end repeat From hh at hyperhh.de Sun Nov 6 08:19:55 2016 From: hh at hyperhh.de (hh) Date: Sun, 6 Nov 2016 14:19:55 +0100 Subject: Recoding: search and replace Message-ID: <375420AF-5A07-4FF8-A138-5C3ACF0ED2D8@hyperhh.de> I'm so tired, but there is an exit from my typos: function numToCode n return numToCodePoint(n) end numToCode ;-) From richmondmathewson at gmail.com Sun Nov 6 08:20:46 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 6 Nov 2016 15:20:46 +0200 Subject: Find chars Message-ID: <8f25ff20-8769-048d-592e-edb3253f1c88@gmail.com> Hey: on page 58 of theDanny Goodman Complete Hypercard Handbook 4th Edition there is talk of a "find chars" function in Hypercard . . . it doesn't seem to have survived in Livecode . . . ? Richmond From richmondmathewson at gmail.com Sun Nov 6 08:22:24 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 6 Nov 2016 15:22:24 +0200 Subject: Recoding: search and replace In-Reply-To: <375420AF-5A07-4FF8-A138-5C3ACF0ED2D8@hyperhh.de> References: <375420AF-5A07-4FF8-A138-5C3ACF0ED2D8@hyperhh.de> Message-ID: Thanks: I hope you manage to get some rest. Richmond On 6.11.2016 15:19, hh wrote: > I'm so tired, but there is an exit from my typos: > > function numToCode n > return numToCodePoint(n) > end numToCode > > ;-) > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Sun Nov 6 10:28:15 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 6 Nov 2016 08:28:15 -0700 Subject: Recoding: search and replace In-Reply-To: References: <375420AF-5A07-4FF8-A138-5C3ACF0ED2D8@hyperhh.de> Message-ID: Using a backup of course.. You might try something simple like.. repeat for each line tline in the script of stack "yourscripttarget"-- wherever your script is. if tline contains "set the unicodetext of fld " & quote & "fDECODE"& quote & " to (numtocodepoint(" then replace "set the unicodetext of fld " & quote & "fDECODE"& quote & " to " with "put " in tline put " into field " & quote & "fDECODE" & quote after tLine put tline & cr after tNewScript else put tline & cr after tNewScript end if end repeat delete the last char of tNewScript set the script of stack "yourscripttarget" to tNewScript On a very small test scale it seems to work. Curious though, is the current method working? On Sun, Nov 6, 2016 at 6:22 AM, Richmond wrote: > Thanks: I hope you manage to get some rest. > > Richmond > > > On 6.11.2016 15:19, hh wrote: > >> I'm so tired, but there is an exit from my typos: >> >> function numToCode n >> return numToCodePoint(n) >> end numToCode >> >> ;-) >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Sun Nov 6 10:32:42 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 6 Nov 2016 08:32:42 -0700 Subject: Find chars In-Reply-To: <8f25ff20-8769-048d-592e-edb3253f1c88@gmail.com> References: <8f25ff20-8769-048d-592e-edb3253f1c88@gmail.com> Message-ID: There is an optional "form" that can be specified with find, so it looks like it still exisits. form enum If no *form* is specified, the normal form is used. anywhere in the field's words One of the following items: - normal -Find each word in textToFind, at start of the field's words - characters, character, chars, char -Find each word in textToFind, - words, word -Find each word in textToFind, as complete words - whole -Find the whole of textToFind, as a sequence of complete words - string -Find the whole of textToFind, anywhere On Sun, Nov 6, 2016 at 6:20 AM, Richmond wrote: > Hey: on page 58 of theDanny Goodman Complete Hypercard Handbook 4th > Edition there is talk > of a "find chars" function in Hypercard . . . it doesn't seem to have > survived in Livecode . . . ? > > 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 brahma at hindu.org Sun Nov 6 10:50:52 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 6 Nov 2016 15:50:52 +0000 Subject: How can we dynamically create variable names from changing value "x" on a loop? Message-ID: Given this scenario: We fetch a preference array from some json on disk We want to insert the key-values into separate discrete local vars in the stack script function getUserPreferences # the following function fetches an object in a JSON file: put getPref ("preferences/modules/color-meditation") into aColorMedPrefs # aColorMedPrefs now appears in variable watcher with keys # aColorMedPrefs["BreathCount"] # value = 5 # aColorMedPrefs["BreathPace,"] # value = 1 # aColorMedPrefs["Cycles "] # value = 2 # aColorMedPrefs["AudioOn"] # value = "true" # we want to pass each to a discrete local: # sBreathCount,sBreathPace,sCycles,sAudioOn repeat for each key x in aColorMedPrefs put "s" & x into tNextPref put aColorMedPrefs[x] into tNextPref put tNextPref & comma after tSettings end repeat return tSettings # result: "5,1,2,true" i.e. the values # But what we really want to do was insert those values in the local vars on each iteration. return (sBreathCount,sBreathPace,sCycles,sAudioOn) # would also return "5,1,2,true" # but we get ",,," i.e now values. end getUserPreferences ------------ i.e. how do we dynamically create/name/instantiate variables & set their values from values in a loop? it begs for some syntax like create var ("s" & x); put x into the last var BR From ahsoftware at sonic.net Sun Nov 6 11:23:30 2016 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 6 Nov 2016 08:23:30 -0800 Subject: Updating Text-Script Only Stacks in Run-Time, Message Path Memory In-Reply-To: References: <356B5AC4-B091-4263-A74A-C1F3A6300913@hindu.org> Message-ID: <794feecf-f39e-4de2-9812-b853e7ff493f@sonic.net> On 11/05/2016 09:31 PM, Monte Goulding wrote: > Of course if you are making changes in a text editor and expecting those to be reflected in the running IDE then you are out of luck. But... shouldn't that be the big advantage of script-only stacks? -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Sun Nov 6 11:40:59 2016 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 6 Nov 2016 08:40:59 -0800 Subject: export snapshot In-Reply-To: <78b3cb40-a013-52a5-0f95-1afc18ecf962@livecode.com> References: <897d92f6-aff2-d890-9184-8dcbcc6d6b49@gmail.com> <78b3cb40-a013-52a5-0f95-1afc18ecf962@livecode.com> Message-ID: On 11/06/2016 03:31 AM, Peter TB Brett wrote: > Because the correct syntax is: > > export snapshot of img "met" to file "met.png" as png My reading of the syntax from the documentation allows the 'from object' form: export snapshot [from rect[angle] rectangle] [of object(glossary)] [(with | without) effects] ... | [from object] [{with|and} metadata metadata] to {file filePath | container} [as format] [with mask maskFile] And, from the documentation examples: export snapshot from Field 1 to file "File1.png" as PNG export snapshot from Group 1 with metadata theMetadataArray to file "File2.jpg" as JPEG -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Sun Nov 6 11:57:58 2016 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 6 Nov 2016 08:57:58 -0800 Subject: Stack name conflicts resolved? In-Reply-To: References: <7fe4ce00-c803-2254-853f-f844fea99a22@fourthworld.com> <06d98005-f014-265b-1d0e-0797aabfc704@sonic.net> Message-ID: <14914149-1b60-9d09-3943-4e5535a73b35@sonic.net> On 11/05/2016 09:38 PM, Monte Goulding wrote: > >> On 6 Nov. 2016, at 1:31 pm, Mark Wieder wrote: >> >> When new stacks are created in memory they are assigned the id 1002. >> Why? >> If there's a stack already in memory why not create the new stack with the next sequential id? >> Then the combination of id and filename should uniquely identify a stack. > > Stack IDs aren?t really IDs at all they are just the max ID in a stack + 1. The first 1000 IDs are reserved. Card 1 is 1001 and therefore a new stack ID is 1002. Create a new object and the ID changes. Yes, good point, but here's the thing: Create two new stacks. They both have the "ID" 1002. Set the id of the second stack to 3000. Now you have stacks 1002 and 3000. Add a button to each stack. The stack ids are now 1003 and 3001. They're obviously different stacks. You see two stacks on the screen, they have different ids. Now rename the second stack to "Untitled 1" The property inspector allows this, but now gets very confused. If you try to bring up the property inspector of either stack, you get only the first one it comes across, until you rename one. I'd prefer the creation timestamp as a unique identifier for stacks, but whatever we use, the short name by itself is inadequate to the task. -- Mark Wieder ahsoftware at gmail.com From dvglasgow at gmail.com Sun Nov 6 12:10:49 2016 From: dvglasgow at gmail.com (David V Glasgow) Date: Sun, 6 Nov 2016 17:10:49 +0000 Subject: OT - cross platform zero slashed font In-Reply-To: References: <73F64553-A930-4B82-AA3D-9344D3AC513E@gmail.com> Message-ID: Belated thanks Richmond and Jeanne Best David Glasgow > On 24 Oct 2016, at 6:37 am, Jeanne A. E. DeVoto wrote: > > At 4:52 PM +0100 10/18/2016, David V Glasgow wrote: >> Is there really no cross platform zero slashed (like Monaco 0) font? Is there one which is substituted by another zero slashed font on different platforms? > > > If you just need a font where the 0 character has a slash (or dot), we discussed a few last month. People seemed to like: > > Source Code Pro > Hack: http://sourcefoundry.org/hack/ > Input Mono: http://input.fontbureau.com/ > > They all have a slashed or dotted zero. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Sun Nov 6 12:13:02 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 6 Nov 2016 10:13:02 -0700 Subject: How can we dynamically create variable names from changing value "x" on a loop? In-Reply-To: References: Message-ID: Why not just leave it as an array? In fact, if you want to have separate preferences categories, that's easy enough to do too. local sPrefsA put getPref ("preferences/modules/color-meditation") into sPrefsA[ColorMedPrefs] at this point you have an local script array variable structured like so.. sprefsA colormedprefs breathcount = 5 breathPace = 1 cycles = 2 audio on = true to get a value from above, a simple function works.. function getSinglePref prefCat,prefName if prefcat is among the keys of sPrefsA if prefName is among the keys of sPrefsA[prefCat] then return sPrefsA[prefCat][prefName] else answer information "No such preference" end if else answer information "No such preference category" end if end getSinglePref If you don't need to categorize, change it to this.. put getPref ("preferences/modules/color-meditation") into sPrefsA at which point you can retrieve a value with sPrefsA[prefname] The code above is just off the top of my head, but it should be close. On Sun, Nov 6, 2016 at 8:50 AM, Sannyasin Brahmanathaswami wrote: > Given this scenario: > > We fetch a preference array from some json on disk > We want to insert the key-values into separate discrete local vars in the > stack script > > function getUserPreferences > > # the following function fetches an object in a JSON file: > > put getPref ("preferences/modules/color-meditation") into aColorMedPrefs > > # aColorMedPrefs now appears in variable watcher with keys > # aColorMedPrefs["BreathCount"] # value = 5 > # aColorMedPrefs["BreathPace,"] # value = 1 > # aColorMedPrefs["Cycles "] # value = 2 > # aColorMedPrefs["AudioOn"] # value = "true" > > # we want to pass each to a discrete local: > # sBreathCount,sBreathPace,sCycles,sAudioOn > > repeat for each key x in aColorMedPrefs > put "s" & x into tNextPref > put aColorMedPrefs[x] into tNextPref > put tNextPref & comma after tSettings > end repeat > > return tSettings > > # result: "5,1,2,true" i.e. the values > > # But what we really want to do was insert those values in the local vars > on each iteration. > > return (sBreathCount,sBreathPace,sCycles,sAudioOn) # would also return > "5,1,2,true" # but we get ",,," i.e now values. > end getUserPreferences > ------------ > i.e. how do we dynamically create/name/instantiate variables & set their > values from values in a loop? > > it begs for some syntax like > > create var ("s" & x); put x into the last var > > 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 ahsoftware at sonic.net Sun Nov 6 12:21:25 2016 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 6 Nov 2016 09:21:25 -0800 Subject: How can we dynamically create variable names from changing value "x" on a loop? In-Reply-To: References: Message-ID: On 11/06/2016 09:13 AM, Mike Bonner wrote: > Why not just leave it as an array? Yeah, that was my reaction too. But maybe Bramanathaswami has some special use case? -- Mark Wieder ahsoftware at gmail.com From richmondmathewson at gmail.com Sun Nov 6 12:41:05 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 6 Nov 2016 19:41:05 +0200 Subject: selectedText Message-ID: I wonder why this: set text of the selectedText to numToCodePoint(2309) [when I have a textField with a selection point within it] doesn't work (LC 8.1). Richmond. From iowahengst at mac.com Sun Nov 6 13:33:03 2016 From: iowahengst at mac.com (Randy Hengst) Date: Sun, 06 Nov 2016 12:33:03 -0600 Subject: Background colour of a new stack In-Reply-To: <2DD3C0E5-1F57-47E5-BDEB-AE5D77ADAC11@mac.com> References: <3105F30A-A763-428E-BE38-F74A1E39B12F@mac.com> <4b45ef55-e4fa-edce-c28e-2eaa16b5be65@fourthworld.com> <7E4A0BF1-6CFD-470B-B58D-53B79B1092CA@mac.com> <2DD3C0E5-1F57-47E5-BDEB-AE5D77ADAC11@mac.com> Message-ID: <06524E31-21F2-4366-85F2-D1CFC9D00788@mac.com> Glad it helped. be well, randy Randy Hengst www.classroomFocusedSoftware.com > On Nov 5, 2016, at 5:46 PM, Graham Samuel wrote: > > Thanks Randy, I hadn?t realised I could do that. Excellent! > > Graham > >> On 5 Nov 2016, at 22:40, Randy Hengst wrote: >> >> Graham, >> >> I also thought the change of color to be a bit odd. >> >> If I understood you correctly, you are adding a graphic to ?cover up? the gray background. You don?t need to add a graphic to create the white background. Go to the Stack Inspector and change the backgroundColor to white. Then each card you make in the stack will have the white background. >> >> be well, >> randy >> >> Randy Hengst >> www.classroomFocusedSoftware.com >> >> >> >>> On Nov 5, 2016, at 4:30 PM, Richard Gaskin wrote: >>> >>> Graham Samuel wrote: >>> >>>> This may be old news to some, but in the LC7x series and earlier, if >>>> you created a stack, the card displayed as white. In LC 8.1.1, it >>>> displays as grey (reported as 220,220,220). To make cards look the >>>> way they did in earlier versions, I have to created a background >>>> rectangle graphic specifically coloured white. >>>> >>>> Was this a deliberate change? Or have I made some odd mistake? Looks >>>> like I need to tweak some cards. >>> >>> I believe the current default background is inherited from the OS, part of the theming enhancements that make LC 8 much more HIG-savvy than earlier versions. >>> >>> -- >>> Richard Gaskin >>> Fourth World Systems >>> Software Design and Development for the Desktop, Mobile, and the Web >>> ____________________________________________________________________ >>> Ambassador at FourthWorld.com http://www.FourthWorld.com >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at livecode.org Sun Nov 6 13:52:43 2016 From: paul at livecode.org (Paul Hibbert) Date: Sun, 6 Nov 2016 10:52:43 -0800 Subject: export snapshot In-Reply-To: <897d92f6-aff2-d890-9184-8dcbcc6d6b49@gmail.com> References: <897d92f6-aff2-d890-9184-8dcbcc6d6b49@gmail.com> Message-ID: > On Nov 6, 2016, at 3:27 AM, Richmond > wrote: > > I wonder why? It seems the ?export snapshot from? doesn?t like the ?img? form, whereas, in a simple experiment the following does work in LC8.1.1(rc2); export snapshot from control "met" to file "met.png" as png Although neither option seems to work in LC9.0.0(dp1)! So I?d suggest there is a bug, or at least, inconsistencies across versions, just as you found out. Paul From monte at appisle.net Sun Nov 6 14:36:29 2016 From: monte at appisle.net (Monte Goulding) Date: Mon, 7 Nov 2016 06:36:29 +1100 Subject: Updating Text-Script Only Stacks in Run-Time, Message Path Memory In-Reply-To: <794feecf-f39e-4de2-9812-b853e7ff493f@sonic.net> References: <356B5AC4-B091-4263-A74A-C1F3A6300913@hindu.org> <794feecf-f39e-4de2-9812-b853e7ff493f@sonic.net> Message-ID: <13E8BCDD-C56F-4159-9CFE-F3256D1742EC@appisle.net> > On 7 Nov. 2016, at 3:23 am, Mark Wieder wrote: > > But... > shouldn't that be the big advantage of script-only stacks? I think this would be relatively handy for trivial stacks but have issues for more complicated ones. Also consider why should this only be the case for script only stacks? If I git checkout and I have a binary stack diff shouldn?t that stack reload too? After all there could be dependencies between the script only stacks and the binary one (they could be its behaviors or something). This introduces some interesting initialisation issues. What if the initialisation is the thing that changed? What if script local values are not appropriate for the new version? What if there?s some self generating UI that isn?t there because only the script was updated. What if I?m mid merge or rebase and there?s conflict markers in the file so it doesn?t compile? I guess it?s possibly OK to have a go updating and the user can restart if they need but I?m not overly sure it?s a good idea. Cheers Monte From paul at livecode.org Sun Nov 6 14:53:05 2016 From: paul at livecode.org (Paul Hibbert) Date: Sun, 6 Nov 2016 11:53:05 -0800 Subject: selectedText In-Reply-To: References: Message-ID: <47B306E9-31E9-4E8D-9090-01657E93AD80@livecode.org> > On Nov 6, 2016, at 9:41 AM, Richmond > wrote: > > I wonder why this: > > set text of the selectedText to numToCodePoint(2309) > > [when I have a textField with a selection point within it] > > doesn't work (LC 8.1). > > Richmond. I didn?t expect it to work (set property of a function?), but it does here on Mac in LC8.1.1(rc2) and LC9.0.0(dp1), either of the following seem to have the desired effect; put numToCodePoint(2309) into the selection put numToCodePoint(2309) into the selectedText Paul From hh at hyperhh.de Sun Nov 6 14:54:03 2016 From: hh at hyperhh.de (hh) Date: Sun, 6 Nov 2016 20:54:03 +0100 Subject: export snapshot Message-ID: <6EBE51F5-88A1-4B27-AB0C-C743E5B14BC9@hyperhh.de> Tested to work here in LC 9.0.0-dp1 on MacOS 10.12.1 Win 7/10 Linux (Mint173) on mouseUp put specialfolderPath(home)&"/test.png" into sph export snapshot from img "test" to file sph as PNG end mouseUp So you could test whether you have write permission in the folder where you wish to write to. From paul at livecode.org Sun Nov 6 15:11:46 2016 From: paul at livecode.org (Paul Hibbert) Date: Sun, 6 Nov 2016 12:11:46 -0800 Subject: export snapshot In-Reply-To: <6EBE51F5-88A1-4B27-AB0C-C743E5B14BC9@hyperhh.de> References: <6EBE51F5-88A1-4B27-AB0C-C743E5B14BC9@hyperhh.de> Message-ID: > On Nov 6, 2016, at 11:54 AM, hh wrote: > > Tested to work here in LC 9.0.0-dp1 on > > MacOS 10.12.1 > Win 7/10 > Linux (Mint173) > > on mouseUp > put specialfolderPath(home)&"/test.png" into sph > export snapshot from img "test" to file sph as PNG > end mouseUp > > So you could test whether you have write permission in the > folder where you wish to write to. A very good point, I found the defaultFolderPath was set to; /Users/paulhibbert/Library/Application Support/RunRev/Documentation Cache/9_0_0_dp_1_commercial/IDE After I had been using the dictionary I presume. So that wasn?t going to work out well! In fact LC9.0.0(dp1) did write the file, it just wasn?t where I expected it to be, but that?s because I didn?t control the destination in my (quick) experiment - another lesson learnt. :) Paul From dunbarx at aol.com Sun Nov 6 15:08:51 2016 From: dunbarx at aol.com (dunbarx) Date: Sun, 6 Nov 2016 12:08:51 -0800 (PST) Subject: How can we dynamically create variable names from changing value "x" on a loop? In-Reply-To: References: Message-ID: <1478462931364-4710142.post@n4.nabble.com> Hi. Arrays are so new_fashioned. But do you mean something like this, from the stone age, that creates variables on the fly, in this case with 2X the value of an index? on mouseUp repeat with y = 1 to 10 do "put y * 2 into onTheFlyVar" & y end repeat end mouseUp Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-can-we-dynamically-create-variable-names-from-changing-value-x-on-a-loop-tp4710128p4710142.html Sent from the Revolution - User mailing list archive at Nabble.com. From monte at appisle.net Sun Nov 6 15:50:45 2016 From: monte at appisle.net (Monte Goulding) Date: Mon, 7 Nov 2016 07:50:45 +1100 Subject: Stack name conflicts resolved? In-Reply-To: <14914149-1b60-9d09-3943-4e5535a73b35@sonic.net> References: <7fe4ce00-c803-2254-853f-f844fea99a22@fourthworld.com> <06d98005-f014-265b-1d0e-0797aabfc704@sonic.net> <14914149-1b60-9d09-3943-4e5535a73b35@sonic.net> Message-ID: <2C996965-E90E-41FC-993E-4971C489B975@appisle.net> > On 7 Nov. 2016, at 3:57 am, Mark Wieder wrote: > > Now rename the second stack to "Untitled 1" > > The property inspector allows this, but now gets very confused. Ah? well that?s probably a bug. If the IDE can?t handle multiple stacks with the same name it should not allow this. Even if the IDE were refactored to only refer to stacks by long ID it would still get confused by multiple stacks with the same name that are unsaved. I think the solution is a more robust object handle we can use in scripts it would help I think. Ideally we can get a handle to an object and pass it around and it won?t matter how much we change the ID or name of the object the handle will still be valid. If we had that then we could get lists of stack handles and not get confused if there are multiple with the same name. Cheers Monte From ahsoftware at sonic.net Sun Nov 6 15:52:11 2016 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 6 Nov 2016 12:52:11 -0800 Subject: Updating Text-Script Only Stacks in Run-Time, Message Path Memory In-Reply-To: <13E8BCDD-C56F-4159-9CFE-F3256D1742EC@appisle.net> References: <356B5AC4-B091-4263-A74A-C1F3A6300913@hindu.org> <794feecf-f39e-4de2-9812-b853e7ff493f@sonic.net> <13E8BCDD-C56F-4159-9CFE-F3256D1742EC@appisle.net> Message-ID: <0229e160-b76d-8839-f0e3-aef8cb9071c5@sonic.net> On 11/06/2016 11:36 AM, Monte Goulding wrote: > This introduces some interesting initialisation issues. What if the initialisation is the thing that changed? What if script local values are not appropriate for the new version? What if there?s some self generating UI that isn?t there because only the script was updated. What if I?m mid merge or rebase and there?s conflict markers in the file so it doesn?t compile? I don't think this is specific to script-only stacks. If I have an initialization routine in a sscript and I edit the script in the IDE, I won't expect it to get called unless I do so explicitly. If I edit a behavior script then I expect objects using that behavior script to use the new features as soon as I compile the script. I would expect that the same would be true of script-only stacks: I edit the script, and on saving the text I would expect it to modify what the script does. I don't expect that I would have to unload and reload (or whatever the proper procedure is) to get the code to stick. If the script doesn't compile then of course I wouldn't expect the executing code to change. But that's no different from the way things work now: my experience has been that script-only stacks will fail silently on errors or in ways that give no clue as to what went wrong. -- Mark Wieder ahsoftware at gmail.com From monte at appisle.net Sun Nov 6 16:00:11 2016 From: monte at appisle.net (Monte Goulding) Date: Mon, 7 Nov 2016 08:00:11 +1100 Subject: Updating Text-Script Only Stacks in Run-Time, Message Path Memory In-Reply-To: <0229e160-b76d-8839-f0e3-aef8cb9071c5@sonic.net> References: <356B5AC4-B091-4263-A74A-C1F3A6300913@hindu.org> <794feecf-f39e-4de2-9812-b853e7ff493f@sonic.net> <13E8BCDD-C56F-4159-9CFE-F3256D1742EC@appisle.net> <0229e160-b76d-8839-f0e3-aef8cb9071c5@sonic.net> Message-ID: <23D73E5A-FEE0-4C3C-87C6-D0B0D04E27D2@appisle.net> > On 7 Nov. 2016, at 7:52 am, Mark Wieder wrote: > > If I edit a behavior script then I expect objects using that behavior script to use the new features as soon as I compile the script. I would expect that the same would be true of script-only stacks: I edit the script, and on saving the text I would expect it to modify what the script does. It does as long as you edit it in the IDE. If you don?t want to edit in the IDE then you need something like the external editor solution that is around or something that just polls the file to check for an update then applies the script. > I don't expect that I would have to unload and reload (or whatever the proper procedure is) to get the code to stick. You only need to do that if you don?t edit in the IDE. I don?t believe there?s ever been official support for editing stack scripts outside the IDE. > > If the script doesn't compile then of course I wouldn't expect the executing code to change. But that's no different from the way things work now: my experience has been that script-only stacks will fail silently on errors or in ways that give no clue as to what went wrong. The IDE doesn?t know much about script only stacks so I?d be surprised if any differences in behaviour can be attributed to the fact it?s script only. There really is very little difference between a script only stack and a regular stack other than reading and writing to disk and a single boolean flag in the class. Cheers Monte From stephenREVOLUTION2 at barncard.com Sun Nov 6 19:23:18 2016 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sun, 6 Nov 2016 16:23:18 -0800 Subject: Updating Text-Script Only Stacks in Run-Time, Message Path Memory In-Reply-To: <23D73E5A-FEE0-4C3C-87C6-D0B0D04E27D2@appisle.net> References: <356B5AC4-B091-4263-A74A-C1F3A6300913@hindu.org> <794feecf-f39e-4de2-9812-b853e7ff493f@sonic.net> <13E8BCDD-C56F-4159-9CFE-F3256D1742EC@appisle.net> <0229e160-b76d-8839-f0e3-aef8cb9071c5@sonic.net> <23D73E5A-FEE0-4C3C-87C6-D0B0D04E27D2@appisle.net> Message-ID: On Sun, Nov 6, 2016 at 1:00 PM, Monte Goulding wrote: > You only need to do that if you don?t edit in the IDE. I don?t believe > there?s ever been official support for editing stack scripts outside the > IDE. We already edit livecode script-only-stacks on server. The only caveat. I would imagine is to make sure the editor you use has the correct text attributes and line termination values. When I use Coda or Textmate in conjunction with Transmit, double clicking a file in the FTP listing will launch the chosen editor, open the text in a page, and when one saves, it saves back to the file, wherever it is, and the FTP program keeps it all straight. I've edited stacks on a remote server and launched my local Livecode app this way too. Anyway, that was long winded. Make sure your editor puts out the right sentence termination characters. Stephen Barncard - Sebastopol Ca. USA - mixstream.org From monte at appisle.net Sun Nov 6 19:27:04 2016 From: monte at appisle.net (Monte Goulding) Date: Mon, 7 Nov 2016 11:27:04 +1100 Subject: Updating Text-Script Only Stacks in Run-Time, Message Path Memory In-Reply-To: References: <356B5AC4-B091-4263-A74A-C1F3A6300913@hindu.org> <794feecf-f39e-4de2-9812-b853e7ff493f@sonic.net> <13E8BCDD-C56F-4159-9CFE-F3256D1742EC@appisle.net> <0229e160-b76d-8839-f0e3-aef8cb9071c5@sonic.net> <23D73E5A-FEE0-4C3C-87C6-D0B0D04E27D2@appisle.net> Message-ID: <5F7AC1C2-382D-4DE7-AC1B-907DE256B079@appisle.net> > On 7 Nov. 2016, at 11:23 am, stephen barncard wrote: > > We already edit livecode script-only-stacks on server. Sure you can edit them in a text editor that?s fine. What we are talking about is having those changes update the version that is currently loaded into a running IDE. Cheers Monte From stephenREVOLUTION2 at barncard.com Sun Nov 6 19:36:41 2016 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sun, 6 Nov 2016 16:36:41 -0800 Subject: Updating Text-Script Only Stacks in Run-Time, Message Path Memory In-Reply-To: <5F7AC1C2-382D-4DE7-AC1B-907DE256B079@appisle.net> References: <356B5AC4-B091-4263-A74A-C1F3A6300913@hindu.org> <794feecf-f39e-4de2-9812-b853e7ff493f@sonic.net> <13E8BCDD-C56F-4159-9CFE-F3256D1742EC@appisle.net> <0229e160-b76d-8839-f0e3-aef8cb9071c5@sonic.net> <23D73E5A-FEE0-4C3C-87C6-D0B0D04E27D2@appisle.net> <5F7AC1C2-382D-4DE7-AC1B-907DE256B079@appisle.net> Message-ID: On Sun, Nov 6, 2016 at 4:27 PM, Monte Goulding wrote: > Sure you can edit them in a text editor that?s fine. What we are talking > about is having those changes update the version that is currently loaded > into a running IDE. I remember Jacque something about using 'revert' for a situation like this, but that was for stack files. there used to be a plugin that did this. Either Trevor or Ken Ray made it. Stephen Barncard - Sebastopol Ca. USA - mixstream.org From ahsoftware at sonic.net Mon Nov 7 02:37:39 2016 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 6 Nov 2016 23:37:39 -0800 Subject: Updating Text-Script Only Stacks in Run-Time, Message Path Memory In-Reply-To: <23D73E5A-FEE0-4C3C-87C6-D0B0D04E27D2@appisle.net> References: <356B5AC4-B091-4263-A74A-C1F3A6300913@hindu.org> <794feecf-f39e-4de2-9812-b853e7ff493f@sonic.net> <13E8BCDD-C56F-4159-9CFE-F3256D1742EC@appisle.net> <0229e160-b76d-8839-f0e3-aef8cb9071c5@sonic.net> <23D73E5A-FEE0-4C3C-87C6-D0B0D04E27D2@appisle.net> Message-ID: <2d3f0f4e-9fa5-77ac-2deb-69b9fd411808@sonic.net> On 11/06/2016 01:00 PM, Monte Goulding wrote: > The IDE doesn?t know much about script only stacks so I?d be surprised if any differences in behaviour can be attributed to the fact it?s script only. There really is very little difference between a script only stack and a regular stack other than reading and writing to disk and a single boolean flag in the class. Really? I can assign substacks to script-only stacks? I can use a script-only stack as a substack? -- Mark Wieder ahsoftware at gmail.com From monte at appisle.net Mon Nov 7 02:46:01 2016 From: monte at appisle.net (Monte Goulding) Date: Mon, 7 Nov 2016 18:46:01 +1100 Subject: Updating Text-Script Only Stacks in Run-Time, Message Path Memory In-Reply-To: <2d3f0f4e-9fa5-77ac-2deb-69b9fd411808@sonic.net> References: <356B5AC4-B091-4263-A74A-C1F3A6300913@hindu.org> <794feecf-f39e-4de2-9812-b853e7ff493f@sonic.net> <13E8BCDD-C56F-4159-9CFE-F3256D1742EC@appisle.net> <0229e160-b76d-8839-f0e3-aef8cb9071c5@sonic.net> <23D73E5A-FEE0-4C3C-87C6-D0B0D04E27D2@appisle.net> <2d3f0f4e-9fa5-77ac-2deb-69b9fd411808@sonic.net> Message-ID: <4D56EF16-49B7-423E-A336-236B1D29F9AD@appisle.net> > On 7 Nov. 2016, at 6:37 pm, Mark Wieder wrote: > > Really? > I can assign substacks to script-only stacks? > I can use a script-only stack as a substack? Sure but nothing but the stack script will save. I think for sanity we have disabled setting of substacks via the property inspector though. A good chunk of the IDE is script only stacks that build their UI in script. Cheers Monte From axwald at gmail.com Mon Nov 7 03:50:13 2016 From: axwald at gmail.com (axwald) Date: Mon, 7 Nov 2016 00:50:13 -0800 (PST) Subject: Updating Text-Script Only Stacks in Run-Time, Message Path Memory In-Reply-To: <356B5AC4-B091-4263-A74A-C1F3A6300913@hindu.org> References: <356B5AC4-B091-4263-A74A-C1F3A6300913@hindu.org> Message-ID: <1478508613137-4710151.post@n4.nabble.com> Hi, Sannyasin Brahmanathaswami wrote > ERGO conclude: editing a script only stack and saving it does *not* update > the "live" version of that file in memory that is in use by the engine. I'd assume this to be legit & desired behavior. Imagine, your StandAlone loads an utility stack from the web ("start using stack URL MyURL") - you want it resident in memory, and you don't want it to be loaded again each time you use a function in it, right? You can change it as desired (on the web, using the IDE or an editor), but your StandAlone will keep running it from memory until you tell it to reload it - usually via reboot, or a custom "reload" msg. That's what I'd expect, and is coherent with other software. For sure, the IDE could help you with such, and auto-update the changed "used stack" in the main stack. But is it really desirable to have the IDE working different than the finished product? I'd rather realize my forgetting to add a "reload" handler before I compile the StandAlone ... Have fun! ----- ? Livecode programming until the cat hits the fan ? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Updating-Text-Script-Only-Stacks-in-Run-Time-Message-Path-Memory-tp4710095p4710151.html Sent from the Revolution - User mailing list archive at Nabble.com. From mark at livecode.com Mon Nov 7 04:36:41 2016 From: mark at livecode.com (Mark Waddingham) Date: Mon, 07 Nov 2016 10:36:41 +0100 Subject: Updating Text-Script Only Stacks in Run-Time, Message Path Memory In-Reply-To: <356B5AC4-B091-4263-A74A-C1F3A6300913@hindu.org> References: <356B5AC4-B091-4263-A74A-C1F3A6300913@hindu.org> Message-ID: <98b0c30c2bbf71b59f27d7facaccdd3f@livecode.com> On 2016-11-05 16:04, Sannyasin Brahmanathaswami wrote: > But, am I the only on that thinks this is odd behavior? If I am right, > doesn't it break the "write, run with no compile" principle of > LiveCode? If I edit the script of a binary stack, those changes are > immediately implemented. Should it not be the same for script only > stacks? No it is not odd behavior. No it doesn't break the edit-run live - since you haven't edited the stack within the engine you have loaded it into. (e.g. Open a binary stackfile into two instances of the IDE, edit in one and save and observe that the changes don't appear in the other instance of the IDE.) Yes it is the same behavior as binary stackfiles - binary/script only stackfiles only affect how the stack is saved on disk and absolutely nothing else. Upshot: Don't expect editing a script-only stackfile outside of the engine it is loaded into to do anything different from a binary stackfile in the same situation. > OK, so given the current behavior, assuming I'm not missing something > simple, do we have to manually re-issue a "start using stack > "preferences.livecodescript" every time we edit it's script? No - you have to delete and reload the stack if you edit it's script outside of the engine it is loaded into - just as you would with a binary stackfile. The point here is that the purpose of script-only stackfiles is purely that of storage - storage in a form which means they work well with version control such as git. Certainly, you can edit them in text editors outside the IDE; and for some things that can be more convenient. However doing so is no different from loading a stackfile into an IDE and editing it there. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From peter.brett at livecode.com Mon Nov 7 06:12:04 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 7 Nov 2016 11:12:04 +0000 Subject: Recoding: search and replace In-Reply-To: <7c647376-788a-0992-0d37-6669637327a7@gmail.com> References: <7c647376-788a-0992-0d37-6669637327a7@gmail.com> Message-ID: <5919ad50-e4a2-1236-cb83-20dd532ae684@livecode.com> On 06/11/2016 12:44, Richmond wrote: > I wonder if there is a way to replace this: > > set the unicodeText of fld "fDECODE" to (numToCodePoint(107) & > numToCodePoint(104)) > > with this: > > *put (numToCodePoint(107) & numToCodePoint(104)) into fld "fDECODE"* > > where /(numToCodePoint(107) & numToCodePoint(104))/ vary? > > I have no great urge to do that sort of thing manually about 6 million > times. Out of curiosity, is setting "the unicodeText" actually broken in the latest versions of LiveCode, or is it merely deprecated? This looks like the sort of task that you might be able to do with regular expressions [1]. Peter [1] https://xkcd.com/208/ -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From peter.brett at livecode.com Mon Nov 7 06:25:06 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 7 Nov 2016 11:25:06 +0000 Subject: [ANN] This Week in LiveCode 58 Message-ID: <264cb1a3-11cc-4f24-69c6-413934f52829@livecode.com> 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 #58 here: https://goo.gl/ZHwIjZ 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. Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From benr_mc at cogapp.com Mon Nov 7 07:17:01 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 7 Nov 2016 12:17:01 +0000 Subject: Stack name conflicts resolved? In-Reply-To: <2C996965-E90E-41FC-993E-4971C489B975@appisle.net> References: <7fe4ce00-c803-2254-853f-f844fea99a22@fourthworld.com> <06d98005-f014-265b-1d0e-0797aabfc704@sonic.net> <14914149-1b60-9d09-3943-4e5535a73b35@sonic.net> <2C996965-E90E-41FC-993E-4971C489B975@appisle.net> Message-ID: On 06/11/2016 20:50, Monte Goulding wrote: > >> On 7 Nov. 2016, at 3:57 am, Mark Wieder wrote: >> >> Now rename the second stack to "Untitled 1" >> >> The property inspector allows this, but now gets very confused. > > Ah? well that?s probably a bug. If the IDE can?t handle multiple stacks with the same name it should not allow this. Even if the IDE were refactored to only refer to stacks by long ID it would still get confused by multiple stacks with the same name that are unsaved. I think the solution is a more robust object handle we can use in scripts it would help I think. Ideally we can get a handle to an object and pass it around and it won?t matter how much we change the ID or name of the object the handle will still be valid. If we had that then we could get lists of stack handles and not get confused if there are multiple with the same name. > My proposal in 2004 http://quality.livecode.com/show_bug.cgi?id=1061#c8 was for the IDE to create not a UUID but a unique-in-this-session "stackID" (since 'id' of a stack is actually used for 'next ID'). There would thus be a way to refer to stacks within the IDE completely uniquely. Modifying all code in the IDE that referenced stacks would doubtless be quite a large task; but once there is a way to reference stacks that is completely unique, then fixing particular identified issues caused by stacks with the same name would become simpler. Currently if I understand it correctly there are issues which seem just too hard to fix: so instead http://quality.livecode.com/show_bug.cgi?id=143 - the most egregious of these issues - was 'fixed' by adding the check that Richard's trying to remove. Ben From benr_mc at cogapp.com Mon Nov 7 07:37:49 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 7 Nov 2016 12:37:49 +0000 Subject: How can we dynamically create variable names from changing value "x" on a loop? In-Reply-To: References: Message-ID: <7bfcc6b8-f61f-3b30-6225-d85d4cb037db@cogapp.com> It's easy to dynamically create and set the values of variables, using the "do" command, e.g.: do format("put tValue into %s", tVarName) I do lots of work with TSV files, which have a first row of field names, and for years have used a function like this to create local variables, named for each column, with the index to that column as their value do makeAccessVars("vi", line 1 of tTSVdata) where the function creates a script doing essentially the above for all the field names, with a prefix (and taking care of spaces etc), which I then "do" in the individual procedure so that the variables are declared local to the procedure. (Re Mike and Mark's comments, if it's a small thing I'll use an array; but for large quantities of data - I'm often dealing with very large files, and after calling this function will loop over tens or hundreds of thousands of rows using the variables - I feel the need for speed outweighs the simplicity.) A minor isse with this is that it doesn't play nice with explicitVars: in order to nicely compile a script that invokes this function and then goes on to, for example, repeat for each line tRec in tTSVdata doSomething item viUserID of tRec, item viUserName of tRec I have to have declared viUserID, and viUserName in the handler. HTH, Ben On 06/11/2016 15:50, Sannyasin Brahmanathaswami wrote: > Given this scenario: > > We fetch a preference array from some json on disk > We want to insert the key-values into separate discrete local vars in the stack script > > function getUserPreferences > > # the following function fetches an object in a JSON file: > > put getPref ("preferences/modules/color-meditation") into aColorMedPrefs > > # aColorMedPrefs now appears in variable watcher with keys > # aColorMedPrefs["BreathCount"] # value = 5 > # aColorMedPrefs["BreathPace,"] # value = 1 > # aColorMedPrefs["Cycles "] # value = 2 > # aColorMedPrefs["AudioOn"] # value = "true" > > # we want to pass each to a discrete local: > # sBreathCount,sBreathPace,sCycles,sAudioOn > > repeat for each key x in aColorMedPrefs > put "s" & x into tNextPref > put aColorMedPrefs[x] into tNextPref > put tNextPref & comma after tSettings > end repeat > > return tSettings > > # result: "5,1,2,true" i.e. the values > > # But what we really want to do was insert those values in the local vars on each iteration. > > return (sBreathCount,sBreathPace,sCycles,sAudioOn) # would also return > "5,1,2,true" # but we get ",,," i.e now values. > end getUserPreferences > ------------ > i.e. how do we dynamically create/name/instantiate variables & set their values from values in a loop? > > it begs for some syntax like > > create var ("s" & x); put x into the last var > > 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 toolbook at kestner.de Mon Nov 7 09:53:35 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 7 Nov 2016 15:53:35 +0100 Subject: OS X 64-Bit standalone doesn't launch Message-ID: <00f701d23906$b8421050$28c630f0$@kestner.de> Hello, OS X 10.11. LC 8.1.1 When I create a 64-bit standalone from my main program, I can't start the standalone. When double clicking the .app there is a short flickering, but nothing, just nothing happens. When creating a 32-bit standalone of the same program, it starts quite normal. 64-bit standalones of other programs run quite normal. Any idea is very welcome what is going on and where to start searching or what to look for. Thanks Tiemo From ambassador at fourthworld.com Mon Nov 7 10:00:36 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 7 Nov 2016 07:00:36 -0800 Subject: Stack name conflicts resolved? In-Reply-To: References: Message-ID: <4f2a9cc5-95a3-2224-35f4-2a15f67c6bf7@fourthworld.com> Ben Rubinstein wrote: > Currently if I understand it correctly there are issues which seem > just too hard to fix: so instead > http://quality.livecode.com/show_bug.cgi?id=143 - the most egregious > of these issues - was 'fixed' by adding the check that Richard's > trying to remove. In all fairness, I'm not *trying* to remove it, but have in fact removed it - in my own copy of the IDE. As I noted in this post, I've not closed #1061 because I recognize that the IDE has different responsibilities beyond those of our own apps: http://lists.runrev.com/pipermail/use-livecode/2016-November/232451.html I'm just glad to find that the rule for looking up stacks by name built into the engine is simple, understandable, and very useful. We can have confidence that our standalones, which don't include IDE-specific code, will allow stacks of the same name to run without issue according to a fairly simple search rule. This means that I can have a classroom of students sharing stacks without having to impose all sorts of complicated schemes to ensure that stack names are unique. For standalones, the engine behavior is beautifully elegant. But I do recognize that the IDE has a special role with special responsibilities, and have left my original enhancement request open as we explore ways to address that, hopefully arriving at a middle ground which provides confidence about which stack we're working on while also giving us the freedom to use stacks as easily as the engine allows. -- 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 Mon Nov 7 10:02:42 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 7 Nov 2016 07:02:42 -0800 Subject: How can we dynamically create variable names from changing value "x" on a loop? In-Reply-To: <7bfcc6b8-f61f-3b30-6225-d85d4cb037db@cogapp.com> References: <7bfcc6b8-f61f-3b30-6225-d85d4cb037db@cogapp.com> Message-ID: <93925e13-722f-5b4e-2c85-6525ded3f43c@fourthworld.com> Ben Rubinstein wrote: > (Re Mike and Mark's comments, if it's a small thing I'll use an > array; but for large quantities of data - I'm often dealing with > very large files, and after calling this function will loop over > tens or hundreds of thousands of rows using the variables - I feel > the need for speed outweighs the simplicity.) Indeed, contrary to popular belief I've seen cases where certain aggregate operations on an array take more time than achieving the same outcomes with delimited lists. But so far only a few. How did you benchmark that, and what was the measured difference? -- 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 panos.merakos at livecode.com Mon Nov 7 10:05:46 2016 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 7 Nov 2016 15:05:46 +0000 Subject: OS X 64-Bit standalone doesn't launch In-Reply-To: <00f701d23906$b8421050$28c630f0$@kestner.de> References: <00f701d23906$b8421050$28c630f0$@kestner.de> Message-ID: Hi Tiemo, A rough guess is that you have added an inclusion/external which is not supported in OS X 64 bit (maybe revVideoGrabber?). Otherwise I suggest you file a bug report :) Best, Panos -- On Mon, Nov 7, 2016 at 2:53 PM, Tiemo Hollmann TB wrote: > Hello, > > > > OS X 10.11. LC 8.1.1 When I create a 64-bit standalone from my main > program, > I can't start the standalone. When double clicking the .app there is a > short > flickering, but nothing, just nothing happens. When creating a 32-bit > standalone of the same program, it starts quite normal. 64-bit standalones > of other programs run quite normal. > > > > Any idea is very welcome what is going on and where to start searching or > what to look for. > > > > 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 > -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From benr_mc at cogapp.com Mon Nov 7 10:21:09 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 7 Nov 2016 15:21:09 +0000 Subject: Stack name conflicts resolved? In-Reply-To: <4f2a9cc5-95a3-2224-35f4-2a15f67c6bf7@fourthworld.com> References: <4f2a9cc5-95a3-2224-35f4-2a15f67c6bf7@fourthworld.com> Message-ID: <7958ac24-d868-cfb9-fbc0-f88c182ac49b@cogapp.com> Hi Richard, No overtones intended by use of word "trying"! I should have said "experimenting with" or similar... I am interested though that you noted, if I understood correctly, that your experiment showed that having two substacks with the same name didn't cause an issue in the IDE when using the substack name with "toplevel". QC #143 suggests that (way) back in the day, there were serious issues that arose in this situation when attempting to save changes to such stacks. Did you find any evidence that this is still a problem? best wishes, Ben On 07/11/2016 15:00, Richard Gaskin wrote: > Ben Rubinstein wrote: > >> Currently if I understand it correctly there are issues which seem >> just too hard to fix: so instead >> http://quality.livecode.com/show_bug.cgi?id=143 - the most egregious >> of these issues - was 'fixed' by adding the check that Richard's >> trying to remove. > > In all fairness, I'm not *trying* to remove it, but have in fact removed it - > in my own copy of the IDE. > > As I noted in this post, I've not closed #1061 because I recognize that the > IDE has different responsibilities beyond those of our own apps: > http://lists.runrev.com/pipermail/use-livecode/2016-November/232451.html > > I'm just glad to find that the rule for looking up stacks by name built into > the engine is simple, understandable, and very useful. > > We can have confidence that our standalones, which don't include IDE-specific > code, will allow stacks of the same name to run without issue according to a > fairly simple search rule. > > This means that I can have a classroom of students sharing stacks without > having to impose all sorts of complicated schemes to ensure that stack names > are unique. > > For standalones, the engine behavior is beautifully elegant. > > But I do recognize that the IDE has a special role with special > responsibilities, and have left my original enhancement request open as we > explore ways to address that, hopefully arriving at a middle ground which > provides confidence about which stack we're working on while also giving us > the freedom to use stacks as easily as the engine allows. > From toolbook at kestner.de Mon Nov 7 10:44:27 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 7 Nov 2016 16:44:27 +0100 Subject: AW: OS X 64-Bit standalone doesn't launch In-Reply-To: References: <00f701d23906$b8421050$28c630f0$@kestner.de> Message-ID: <010a01d2390d$d33241d0$7996c570$@kestner.de> Hi Panos, bingo! I am using Valentina4, which seems not to be 64 bit compatible. Deselecting it, the 64-bit standalone works fine. Thanks for the quick guess! Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von panagiotis merakos Gesendet: Montag, 7. November 2016 16:06 An: How to use LiveCode Betreff: Re: OS X 64-Bit standalone doesn't launch Hi Tiemo, A rough guess is that you have added an inclusion/external which is not supported in OS X 64 bit (maybe revVideoGrabber?). Otherwise I suggest you file a bug report :) Best, Panos -- On Mon, Nov 7, 2016 at 2:53 PM, Tiemo Hollmann TB wrote: > Hello, > > > > OS X 10.11. LC 8.1.1 When I create a 64-bit standalone from my main > program, I can't start the standalone. When double clicking the .app > there is a short flickering, but nothing, just nothing happens. When > creating a 32-bit standalone of the same program, it starts quite > normal. 64-bit standalones of other programs run quite normal. > > > > Any idea is very welcome what is going on and where to start searching > or what to look for. > > > > 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 > -- Panagiotis Merakos LiveCode Software Developer 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 benr_mc at cogapp.com Mon Nov 7 10:39:18 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 7 Nov 2016 15:39:18 +0000 Subject: How can we dynamically create variable names from changing value "x" on a loop? In-Reply-To: <93925e13-722f-5b4e-2c85-6525ded3f43c@fourthworld.com> References: <7bfcc6b8-f61f-3b30-6225-d85d4cb037db@cogapp.com> <93925e13-722f-5b4e-2c85-6525ded3f43c@fourthworld.com> Message-ID: On 07/11/2016 15:02, Richard Gaskin wrote: > Ben Rubinstein wrote: > >> (Re Mike and Mark's comments, if it's a small thing I'll use an >> array; but for large quantities of data - I'm often dealing with >> very large files, and after calling this function will loop over >> tens or hundreds of thousands of rows using the variables - I feel >> the need for speed outweighs the simplicity.) > > Indeed, contrary to popular belief I've seen cases where certain aggregate > operations on an array take more time than achieving the same outcomes with > delimited lists. > > But so far only a few. > > How did you benchmark that, and what was the measured difference? I'll confess: no benchmarking has taken place, just intuition. I love arrays - coming from a HyperCard world in which I was similarly doing large amounts of processing over files, the ability to use hashed arrays when I discovered MetaCard made an enormous difference. I was and am blown away by the speed of access they allow. The context in which I'm typically using this 'makeAccessVars' functionality is where the code loads a massive TSV file and then iterates through the rows doing various processing on the data. I don't want to hard-code the columns in which the data will be, because very occasionally that may change, and it's too easy to have a subtle bug here. So the typical routine is something like do makeAccessVars("vi", line 1 of tTSVdata) delete line 1 of tTSVdata repeat for each line tRec in tTSVdata doSomething item viUserID of tRec, item viUserName of tRec ... end repeat If I'm doing something that _isn't_ going to repeat a vast number of times, I often use a variation more along these lines: put line 1 of tTSVdata into tColumnNames delete line 1 of tTSVdata repeat for each line tRec in tTSVdata put explodeRow(tRec, tColumnNames) into aData doSomething aData["User ID"], aData["User Name"] ... end repeat where 'explodeRow' does the obvious thing to construct an array containing the data from the row, each value indexed by the name of the column in which it appeared. I prefer that style, as it makes the "doSomething" part of the code - which is generally the most interesting bit, and therefore the one that needs easiest to understand - clearer. Obviously it must be slower though: but I admit I've never done the experiment to find out how significant the difference is. (Actually I'd probably get better performance in the latter case, and further enhance readability, if I combined the two approaches, i.e modify 'makeAccessVars' to that instead of returning a string which when passed to 'do' declares variables named for each column and assigns indices to them, it's called for each row to assign the actual values to the variables.I'm not sure why I don't do this.) Ben From ambassador at fourthworld.com Mon Nov 7 11:12:57 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 7 Nov 2016 08:12:57 -0800 Subject: Stack name conflicts resolved? In-Reply-To: <7958ac24-d868-cfb9-fbc0-f88c182ac49b@cogapp.com> References: <7958ac24-d868-cfb9-fbc0-f88c182ac49b@cogapp.com> Message-ID: <641f42f1-c568-ff92-abe6-a50324ca4965@fourthworld.com> Ben Rubinstein wrote: > No overtones intended by use of word "trying"! I should have said > "experimenting with" or similar... No offense taken, I just want to be sure that my glee for discovering the soundness and simplicity of the engine's handling of this does not mean I recommend relying on the engine alone for others. As we've seen in this discussion, there are some workflows which can benefit from extra scripting to introduce a prohibition on using two different stacks with the same name during development. > I am interested though that you noted, if I understood correctly, > that your experiment showed that having two substacks with the same > name didn't cause an issue in the IDE when using the substack name > with "toplevel". QC #143 suggests that (way) back in the day, there > were serious issues that arose in this situation when attempting to > save changes to such stacks. Did you find any evidence that this is > still a problem? Good test case - thanks. I hadn't tested it before because my primary interest here is in runtime behavior. In testing here this morning, I discovered what may well be the source of some (if not a majority) of the issues surrounding stack name conflicts: a bug in the topstack function itself. Here's what I found: I made two new mainstacks, both named "foo". While attempting to add controls to them and saving them, I found a bug in the topstack function. Topstack should return the long name of the topmost stack of the lowest mode. Once saved, no two stacks will have the same topstack value, since it includes the path, e.g,: stack "/home/user/Desktop/foo.livecode" stack "/home/user/Documents/foo.livecode" With my IDE mod in place which allows me to open stacks which have the same name (this could also be tested in a standalone), I found that querying the topstack always and only returns the value of the stack which had been opened first, regardless which one was actually topmost. Of course, since the value of the topstack function itself is an absolute reference that includes the path, it would seem reasonable to expect that the engine at least attempt to take that distinguishing factor into account when deriving the value it returns. So I just filed a bug report on that: http://quality.livecode.com/show_bug.cgi?id=18793 This still won't affect the subset of cases involving stacks of the same short name in which both are newly created and have not yet been saved, and for those the IDE prohibition on renaming/creating may suffice. Similarly, downloaded stacks would not be distinguishable, since they also have no value in their filename property. But both of those are relative edge cases I'd be happy to handle through other means once topstack is updated to at least attempt to use available information for accurate results. And once topstack reliably returns a more accurate reference, it would seem many if not most of the issues we've been having would likely go 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 ambassador at fourthworld.com Mon Nov 7 11:24:37 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 7 Nov 2016 08:24:37 -0800 Subject: Updating Text-Script Only Stacks in Run-Time, Message Path Memory In-Reply-To: <98b0c30c2bbf71b59f27d7facaccdd3f@livecode.com> References: <98b0c30c2bbf71b59f27d7facaccdd3f@livecode.com> Message-ID: Mark Waddingham wrote: > The point here is that the purpose of script-only stackfiles is > purely that of storage - storage in a form which means they work > well with version control such as git. This can't be stressed enough. The only difference between script-only stacks and traditional binary stacks is what's stored when saving. As the term makes explicit, with a script-only stack the only thing that gets saved is the stack script. In every other way they are identical. Indeed, as far as I can tell once they're loaded they are indeed the exact same structure in memory as any other stack. And like any stack, as long as they're in memory you can do anything you like with them, even adding cuatom props or substacks. But when you save, only the script will be preserved, as the name tries to make clear. This may be useful for allowing ephemeral data to be bound to such a stack at runtime, safely refreshed with each session by virtue of never having been saved at all. And of course if you need persistence with such additions, just use a traditional binary stack. Conversations about script-only stacks have been much more complex than the subject itself. If it helps, there is only one rule to remember: A stack object is a stack object; the only difference with a script-only stack is that only the stack script is saved to disk. -- 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 Mon Nov 7 11:52:55 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 7 Nov 2016 08:52:55 -0800 Subject: How can we dynamically create variable names from changing value "x" on a loop? In-Reply-To: References: Message-ID: <368ef5da-0476-711b-3cb0-a3fb15da5891@fourthworld.com> Ben Rubinstein wrote: > So the typical routine is something like > > do makeAccessVars("vi", line 1 of tTSVdata) There's your first bug right there - that should be: do makeAccessVars("emacs", line 1 of tTSVdata) (Ducking from Mark Wieder who will no doubt groan at the pun ) But more seriously, the meat here is this: > doSomething item viUserID of tRec, item viUserName of tRec ...vs: > doSomething aData["User ID"], aData["User Name"] On the one hand, each array access requires a small amount of overhead to run the key through a hash to find the value's address. However, that overhead is pretty small as hashes go, since it's not using anything heavy-duty like a cryptographic hash (no sha1Digest or even md5Digest), but some very small bit-shifting hash that only works as hard as it needs to to distribute addresses somewhat uniformly across internal buckets of addresses. On the other hand, any chunk expression like "item viUserID of tRec" will require tRec to be traversed from its beginning, evaluating each character along the way, counting item delimiters as it goes. Of course the loop you have there is much better than "repeat with", since at least each line itself is efficiently isolated for the item-test traversal. But within each line traversal is still needed to identify items. The cases I've seen where chunk expressions can outperform arrays tend to be those with a large number of lines and a small number of items, in which each item is itself a fairly short string. And even then, other specifics about the data can come into play affecting measurable outcomes. But given how lean the hash used for arrays is, I've found only a relatively small number of such cases. The bigger difference by far will be with loading whichever structure you use. While it does indeed require more or less the same character-by-character evaluation to split a chunk into an array, when the alternative leaves you with "do" you're up against the performance weaknesses inherent in it, which require dynamic evaluation of the expression and its context. It takes a fair bit of exploration to find anything slower than "do" (though I'm sure there are a few cases if we look hard enough). "do" is great for those rare moments when we truly have no alternative. And since HyperCard didn't offer arrays, that was usually every day. :) But arrays are a natural fit for cases where not only elements within a collection are variables, but also the names of those elements as well. Indeed, that's the use case they were introduced to support. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dochawk at gmail.com Mon Nov 7 12:19:04 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 7 Nov 2016 09:19:04 -0800 Subject: How can we dynamically create variable names from changing value "x" on a loop? In-Reply-To: <368ef5da-0476-711b-3cb0-a3fb15da5891@fourthworld.com> References: <368ef5da-0476-711b-3cb0-a3fb15da5891@fourthworld.com> Message-ID: On Mon, Nov 7, 2016 at 8:52 AM, Richard Gaskin wrote: > There's your first bug right there - that should be: > > do makeAccessVars("emacs", line 1 of tTSVdata) > damned heretics are everywhere . . . :) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From rdimola at evergreeninfo.net Mon Nov 7 12:23:13 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 7 Nov 2016 12:23:13 -0500 Subject: Updating Text-Script Only Stacks in Run-Time, Message Path Memory In-Reply-To: References: <98b0c30c2bbf71b59f27d7facaccdd3f@livecode.com> Message-ID: <007b01d2391b$9f0830a0$dd1891e0$@net> Richard, Thanks for the pithy explanation! I think the most import thing for the developer's design philosophy in your narrative is: "This may be useful for allowing ephemeral data to be bound to such a stack at runtime, safely refreshed with each session by virtue of never having been saved at all." Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Richard Gaskin Sent: Monday, November 07, 2016 11:25 AM To: use-livecode at lists.runrev.com Subject: Re: Updating Text-Script Only Stacks in Run-Time, Message Path Memory Mark Waddingham wrote: > The point here is that the purpose of script-only stackfiles is > purely that of storage - storage in a form which means they work > well with version control such as git. This can't be stressed enough. The only difference between script-only stacks and traditional binary stacks is what's stored when saving. As the term makes explicit, with a script-only stack the only thing that gets saved is the stack script. In every other way they are identical. Indeed, as far as I can tell once they're loaded they are indeed the exact same structure in memory as any other stack. And like any stack, as long as they're in memory you can do anything you like with them, even adding cuatom props or substacks. But when you save, only the script will be preserved, as the name tries to make clear. This may be useful for allowing ephemeral data to be bound to such a stack at runtime, safely refreshed with each session by virtue of never having been saved at all. And of course if you need persistence with such additions, just use a traditional binary stack. Conversations about script-only stacks have been much more complex than the subject itself. If it helps, there is only one rule to remember: A stack object is a stack object; the only difference with a script-only stack is that only the stack script is saved to disk. -- 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 benr_mc at cogapp.com Mon Nov 7 12:46:08 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 7 Nov 2016 17:46:08 +0000 Subject: How can we dynamically create variable names from changing value "x" on a loop? In-Reply-To: <368ef5da-0476-711b-3cb0-a3fb15da5891@fourthworld.com> References: <368ef5da-0476-711b-3cb0-a3fb15da5891@fourthworld.com> Message-ID: On 07/11/2016 16:52, Richard Gaskin wrote: > But more seriously, the meat here is this: > >> doSomething item viUserID of tRec, item viUserName of tRec > > ...vs: > >> doSomething aData["User ID"], aData["User Name"] > > On the one hand, each array access requires a small amount of overhead to run > the key through a hash to find the value's address. However, that overhead is > pretty small... No, no - the meat here is this: > do makeAccessVars("vi", line 1 of tTSVdata) > ... > repeat for each line tRec in tTSVdata vs > repeat for each line tRec in tTSVdata > put explodeRow(tRec, tColumnNames) into aData I wouldn't care to hazard a guess as to the relative speed of "aData[x]" versus "item x": but it's the overhead of the function which creates the array on that I don't want to pay *on every row*. Ben From mark at livecode.com Mon Nov 7 13:01:26 2016 From: mark at livecode.com (Mark Waddingham) Date: Mon, 07 Nov 2016 19:01:26 +0100 Subject: Stack name conflicts =?UTF-8?Q?resolved=3F?= In-Reply-To: <7fe4ce00-c803-2254-853f-f844fea99a22@fourthworld.com> References: <7fe4ce00-c803-2254-853f-f844fea99a22@fourthworld.com> Message-ID: <12f22c34f2b42906ee7be7a1d9093722@livecode.com> On 2016-11-05 19:28, Richard Gaskin wrote: > I've grown weary of stack name conflict over the years, and this > morning decided to take some time to assess where we're really at with > that and see if perhaps there's a way to handle things more liberally > than how the IDE does now. > > That is, once we modify the IDE to allow it. > > Is there something I've missed here? The engine has always been 'okay' (I believe) with substacks of the same name when they are owned by *different* mainstacks - the only rule you must follow in your code is that if you are referencing a substack when the 'defaultStack' is not the main stack owning it, then you must use: stack ... of stack ... Just as you would if you have two controls with the same name in two different groups. There is still the general problem of having multiple mainstacks with the same name, or multiple substacks with the same name with the same owner. Unfortunately, I'm not sure there is a general solution to that (mainly because we use stack as the reference for a specific stack in script, and when you start making cross-stack references, any search order is likely to cause 'surprising' results at unexpected times). I'd perhaps use the observation that you wouldn't expect to have two files in the same folder with the same name on disk... So why expect to be able to have two mainstacks with the same name in memory? (Or indeed, two substacks with the same name owned by the same stack). I think it would be generally true to say that in one project, you don't want more than one (main) stack with the same name - as you would never know what stack you were referring to in script. I'd actually propose that the only use-case for multiple (main) stacks with the same name is for the purposes of editing (in the IDE) - e.g. so you can compare and contrast two revisions of the same stackfile. However, beyond opening two instances of the IDE, that isn't possible at present. I do wonder if the engine was a little bit more hard-line about stack naming if some of the issues people find might go away. Also, it *might* be reasonable for the engine to actually rename a stack when loaded if there is already one with the same name in memory - so you can at least access it; although it might not work because its scripts might still be using 'stack ' to refer to itself (which, of course, would refer to the originally opened stack and not itself). In regards to the IDE as it is now - it uses long ids to reference objects internally throughout - and because this means substacks are always references as stack X of stack Y, it now does not break if you have two substacks with the same name in memory. (However 'the finding the right stack' problem still exists if you have a substack anywhere with the same name as a mainstack). Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From ambassador at fourthworld.com Mon Nov 7 13:05:00 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 7 Nov 2016 10:05:00 -0800 Subject: How can we dynamically create variable names from changing value "x" on a loop? In-Reply-To: References: Message-ID: <6d301f09-9963-73c3-d096-1c0538fb51a6@fourthworld.com> Ben Rubinstein wrote: > On 07/11/2016 16:52, Richard Gaskin wrote: >> On the one hand, each array access requires a small amount of >> overhead to run the key through a hash to find the value's address. >> However, that overhead is pretty small... > > No, no - the meat here is this: > >> do makeAccessVars("vi", line 1 of tTSVdata) >> ... >> repeat for each line tRec in tTSVdata > > vs > >> repeat for each line tRec in tTSVdata >> put explodeRow(tRec, tColumnNames) into aData Ah, thanks. Without seeing the code for explodeRow it's not possible for me to have an informed assessment of its impact. > I wouldn't care to hazard a guess as to the relative speed of > "aData[x]" versus "item x": but it's the overhead of the function > which creates the array on that I don't want to pay *on every row*. The function call itself has very small overheard. Whether the definition of that function takes more time than walking through the characters for the chunk expression can't be known without testing. -- 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 Mon Nov 7 13:29:21 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 7 Nov 2016 10:29:21 -0800 Subject: Stack name conflicts resolved? In-Reply-To: <12f22c34f2b42906ee7be7a1d9093722@livecode.com> References: <12f22c34f2b42906ee7be7a1d9093722@livecode.com> Message-ID: <84c6be6c-2259-9d73-6a45-db267d8802df@fourthworld.com> Mark Waddingham wrote: > The engine has always been 'okay' (I believe) with substacks of the > same name when they are owned by *different* mainstacks - the only > rule you must follow in your code is that if you are referencing a > substack when the 'defaultStack' is not the main stack owning it, > then you must use: > > stack ... of stack ... > > Just as you would if you have two controls with the same name in two > different groups. > > There is still the general problem of having multiple mainstacks with > the same name, or multiple substacks with the same name with the same > owner. Unfortunately, I'm not sure there is a general solution to > that (mainly because we use stack as the reference for a > specific stack in script, and when you start making cross-stack > references, any search order is likely to cause 'surprising' results > at unexpected times). In my ongoing tests it seems to be even better than that. Apparently referring to a stack by short name will cause the engine to resolve it somewhat similarly to how it resolves other universal references like image IDs: 1. It looks for the stack in the same stack file as the script referring to it. 2. If not found, it searches other open stack files in the order in which they were loaded into the environment. This appears to work well for both substacks and mainstacks (easy enough to explore once I commented out line #3199 of revbackscriptlibrary, worth doing at least temporarily to see how things run). Given the apparent simplicity and consistency of how this works, I read Ben's post earlier this morning with great interest, which pointed me to cases where the engine appears to get confused by stacks with the same name: http://lists.runrev.com/pipermail/use-livecode/2016-November/232505.html Since I'd already disabled the IDE's same-name check, I was empowered to explore those issues and found what seems to be the heart of at least a big chunk of this: The topstack function returns a value that includes information it isn't checking when it attempts its resolution to derive it. Or more simply, topstack only checks short name, apparently using the same load-order search path other stack-name-resolution methods rely on. E.g.: if I have two stacks both named "foo" but saved to two different files, no matter which one is on top "topstack()" will only return the long name of the one opened first. Since topstack includes the path, it would seem reasonable to expect that the path would be checked as part of the resolution process, and indeed useful if it were. I included other notes related to this in my other post this morning: http://lists.runrev.com/pipermail/use-livecode/2016-November/232514.html ...along with the link to a new bug report for topstack: http://quality.livecode.com/show_bug.cgi?id=18793 This won't handle all possible cases (caveats noted in report), but will make the topstack function more reliable across a broader range of circumstances, perhaps eliminating a majority of issues relating to stack name conflicts. -- 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 Mon Nov 7 13:30:39 2016 From: ahsoftware at sonic.net (mwieder) Date: Mon, 7 Nov 2016 10:30:39 -0800 (PST) Subject: Stack name conflicts resolved? In-Reply-To: <12f22c34f2b42906ee7be7a1d9093722@livecode.com> References: <7fe4ce00-c803-2254-853f-f844fea99a22@fourthworld.com> <12f22c34f2b42906ee7be7a1d9093722@livecode.com> Message-ID: <1478543439022-4710173.post@n4.nabble.com> Mark- Those are (mostly) all good points. But the problem that concerns me is not when I have done something stupid and end up with two stacks of the same name competing for memory space, but when the IDE suddenly pops up the warning message and I have no idea what has just happened. At that point I go to shutdown mode because the three options in the dialog are confusing and ambiguous (assuming a three-state ambiguity isn't a contradiction). Using the long id to refer to stacks works (or at least should work) for all situations except for stacks that haven't yet been saved to disk. And for those stacks I would suggest storing the creation timestamp as a custom property on creating a new stack so that they can be distinguished. (but I also think the idea that a newly created stack gets the name "Untitled_1" needs revisiting). I haven't yet had the chance to implement Richard's patch, but I'm looking forward to trying it out. ----- -- Mark Wieder ahsoftware at gmail.com -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Stack-name-conflicts-resolved-tp4710098p4710173.html Sent from the Revolution - User mailing list archive at Nabble.com. From ahsoftware at sonic.net Mon Nov 7 13:41:57 2016 From: ahsoftware at sonic.net (mwieder) Date: Mon, 7 Nov 2016 10:41:57 -0800 (PST) Subject: Updating Text-Script Only Stacks in Run-Time, Message Path Memory In-Reply-To: References: <356B5AC4-B091-4263-A74A-C1F3A6300913@hindu.org> <98b0c30c2bbf71b59f27d7facaccdd3f@livecode.com> Message-ID: <1478544117610-4710174.post@n4.nabble.com> app. Richard Gaskin wrote > This can't be stressed enough. > > The only difference between script-only stacks and traditional binary > stacks is what's stored when saving. OK - I stand corrected then. I thought script-only stacks had to be separate files. I didn't realize they could be attached as substacks and bound into standalone apps. That does make a difference. ----- -- Mark Wieder ahsoftware at gmail.com -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Updating-Text-Script-Only-Stacks-in-Run-Time-Message-Path-Memory-tp4710095p4710174.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Mon Nov 7 13:56:41 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 7 Nov 2016 10:56:41 -0800 Subject: Updating Text-Script Only Stacks in Run-Time, Message Path Memory In-Reply-To: <1478544117610-4710174.post@n4.nabble.com> References: <1478544117610-4710174.post@n4.nabble.com> Message-ID: mwieder wrote: > I thought script-only stacks had to be separate files. I didn't > realize they could be attached as substacks and bound into standalone > apps. That does make a difference. Hmmm...I'm not sure that they can. For a script-only stack to be truly script-only, it would need to be saved only as the stack script in a text file. If later the mainstack of a script-only stack is changed to be a binary stack, I would imagine that the script-only stack would no longer be script-only, attached to the new mainstack as a binary stack since it's now part of the binary structure of the mainstack. -- 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 Mon Nov 7 14:24:21 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 7 Nov 2016 11:24:21 -0800 Subject: Stack name conflicts resolved? In-Reply-To: <1478543439022-4710173.post@n4.nabble.com> References: <1478543439022-4710173.post@n4.nabble.com> Message-ID: <00921b19-0503-6151-7b22-6b3e62337faf@fourthworld.com> mwieder wrote: > Using the long id to refer to stacks works (or at least should work) > for all situations except for stacks that haven't yet been saved to > disk. And for those stacks I would suggest storing the creation > timestamp as a custom property on creating a new stack so that they > can be distinguished. A UUID in the v9 file format could help a lot with those cases. > I haven't yet had the chance to implement Richard's patch, but I'm > looking forward to trying it out. If/when you do, give this a whirl - in my initial tests it seems to work well in delivering the true topstack even when the short name is the same, accomplished by taking full advantage of the stack file path (just added to BZ#18793 as inspiration how the engine might handle this even better and certainly more efficiently): function FixedTopStack put the stacks into tStackFiles put the openStacks into tStackNames put 0 into i repeat for each line tStackName in tStackNames add 1 to i put line i of tStackFiles into tStackFile if tStackFile is not empty then -- Mainstack? if the mainstack of stack tStackFile = tStackName then put "stack "& quote& tStackFile "e into tStackRef else -- Substack: put "stack ""e& tStackName "e& " of stack ""e \ & tStackFile "e into tStackRef end if else -- No stack filename: put "stack "& quote& tStackName "e into tStackRef end if put the mode of tStackRef &tab& tStackRef &cr after tList end repeat delete last char of tList -- trailing CR set the itemdel to tab sort lines of tList numeric by item 1 of each put item 2 of line 1 of tList exit to top return item 2 of line 1 of tList end FixedTopStack If the topstack took the stack file path into account, most conflicts would go away. If the file format were extended so that stacks include a UUID property at creation, that would provide distinction so complete that I'm unable to think of a case where identifying the true topstack would fail. For backward compatibility, topstack might first check the filename and return that as it does now, e.g.: stack "/home/rg/something.livecode" When the filename is empty, an enhanced topstack could return something like stack uuid c5087287-7884-49a0-95e5-a4a3009221c2 This is similar to other cases where attempting to get the long name of an object returns the long ID when the name is empty. Since it only comes into play when stacks are unsaved, it would rarely ever been seen. And even then, topstack is commonly used in momentary contexts so it would be rarely seen even then. But would it would provide is a way of referring to all stacks that would always work regardless of their short name and regardless if they've ever been saved. For now, just making sure topstack has checked the file path info it delivers will by itself move things forward in a big way. -- 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 roger.e.eller at sealedair.com Mon Nov 7 14:41:27 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Mon, 7 Nov 2016 14:41:27 -0500 Subject: [OT] Quartum PDF Library - How to change text color of a cell in a table? Message-ID: I am using Jan Shenkel's PDF Library in a project, and need to display negative numbers in a table in red. It seems to be possible to affect the entire table, but how can I apply color commands to a specific cell? TIA, ~Roger From brahma at hindu.org Mon Nov 7 16:06:27 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 7 Nov 2016 21:06:27 +0000 Subject: Setting up Android SDK on Mac Message-ID: <39BDD341-086B-4C88-A672-0F2492CE725A@hindu.org> The online tutorial asks mac users to install the latest JDK -- done then gives this URL https://developer.android.com/studio/index.html for the Android SDK.. but it links to a completely new IDE: Android Studio? and nothing matches the LC lesson on this any more? hmmm what to do: lesson online is out of date now? go ahead and install it anyway. ends up in my Mac/applications folder. But I am unable to now select the android SDK in the LC preferences/mobile set up. what next? BR From rdimola at evergreeninfo.net Mon Nov 7 16:37:47 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 7 Nov 2016 16:37:47 -0500 Subject: Setting up Android SDK on Mac In-Reply-To: <39BDD341-086B-4C88-A672-0F2492CE725A@hindu.org> References: <39BDD341-086B-4C88-A672-0F2492CE725A@hindu.org> Message-ID: <00c101d2393f$2f239670$8d6ac350$@net> Sannyasin, There are 2 downloads, one is the SDK and Studio/IDE the other download is just the SDK. I downloaded just the SDK and followed the tutorial. I used to download all sorts of stuff in the SDK but the tutorial enumerates the modules that need to be downloaded. It save a lot of time and disk space. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Sannyasin Brahmanathaswami Sent: Monday, November 07, 2016 4:06 PM To: How LiveCode Subject: Setting up Android SDK on Mac The online tutorial asks mac users to install the latest JDK -- done then gives this URL https://developer.android.com/studio/index.html for the Android SDK.. but it links to a completely new IDE: Android Studio? and nothing matches the LC lesson on this any more? hmmm what to do: lesson online is out of date now? go ahead and install it anyway. ends up in my Mac/applications folder. But I am unable to now select the android SDK in the LC preferences/mobile set up. what next? BR _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From monte at appisle.net Mon Nov 7 17:30:44 2016 From: monte at appisle.net (Monte Goulding) Date: Tue, 8 Nov 2016 09:30:44 +1100 Subject: Stack name conflicts resolved? In-Reply-To: <00921b19-0503-6151-7b22-6b3e62337faf@fourthworld.com> References: <1478543439022-4710173.post@n4.nabble.com> <00921b19-0503-6151-7b22-6b3e62337faf@fourthworld.com> Message-ID: > On 8 Nov. 2016, at 6:24 am, Richard Gaskin wrote: > > > Using the long id to refer to stacks works (or at least should work) > > for all situations except for stacks that haven't yet been saved to > > disk. And for those stacks I would suggest storing the creation > > timestamp as a custom property on creating a new stack so that they > > can be distinguished. > > A UUID in the v9 file format could help a lot with those cases. Ah? I knew we would get onto UUIDs ;-) One thing to note is if objects have UUIDs then there?s no need to qualify the UUID with an object type and the engine should just work out if the object reference is a UUID then look up the corresponding object. In other words we don?t need `the of stack UUID ` we just need `the of `. For most of the issues this thread is discussing though I actually don?t think the main thing we need is UUIDs. We *think* we need UUIDs only because we are used to thinking of object references as strings. If we have an object reference (think `is strictly an object`) and we have versions of all APIs that return object references that can return these object references instead then we have something much better because it won?t need to be parsed from string -> object all the time. Now if we have a UUID as a string representation of the object reference that?s fine and probably helpful. There?s obviously times where you need to do stuff that will turn the object reference into a string. Cheers Monte From ambassador at fourthworld.com Mon Nov 7 18:19:37 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 7 Nov 2016 15:19:37 -0800 Subject: Stack name conflicts resolved? In-Reply-To: References: Message-ID: Monte Goulding wrote: > For most of the issues this thread is discussing though I actually > don?t think the main thing we need is UUIDs. We *think* we need UUIDs > only because we are used to thinking of object references as strings. > If we have an object reference (think `is strictly an object`) and we > have versions of all APIs that return object references that can > return these object references instead then we have something much > better because it won?t need to be parsed from string -> object all > the time. I'd like that, and I agree, UUIDs are a longer-term consideration here. For now many of our stack name conflicts could be resolved if topstack used the path info it delivers to make sure it's returning the right object reference. http://quality.livecode.com/show_bug.cgi?id=18793 -- 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 alanstenhouse at hotmail.com Tue Nov 8 00:16:11 2016 From: alanstenhouse at hotmail.com (Alan) Date: Tue, 8 Nov 2016 05:16:11 +0000 Subject: Stop app going to sleep - need locationChanged? Message-ID: Using LC 8.1 on iOS I'm trying to get my app to not sleep so that I can continue to receive location updates for path tracking etc. However, when the phone goes to sleep or the phone is manually locked, then the location updates (locationChanged) messages no longer appear to be received/sent. I've tried also setting the "Background audio (experimental)" flag in the Standalone settings screen which should stop "Exit on Suspend" (apparently). But this still doesn't help with locationChanged messages - they're no longer sent/received until the app is woken up, when they start again. I haven't yet tried the hack to add the Exit on Suspend flag to the .plist file. I also haven't tried Monte's MergBgTask external for iOS. Anyone done this before and if so, what's the solution? Or is the answer just to turn "Auto-lock" off in General settings on the phone? cheers Alan From alanstenhouse at hotmail.com Tue Nov 8 01:00:02 2016 From: alanstenhouse at hotmail.com (Alan) Date: Tue, 8 Nov 2016 06:00:02 +0000 Subject: iPad Pro screenshots? Message-ID: Does anyone know of a way I can get an iPad Pro screenshot using OSX 10.9.5? i.e. using a Simulator? I think it's not possible and that I'll have to upgrade my system, XCode etc in order to make this screenshot for an about-to-be released app? But I'd rather not go down that route, if at all possible! Thanks for any tips! cheers Alan From bogdanoff at me.com Tue Nov 8 01:15:32 2016 From: bogdanoff at me.com (Peter Bogdanoff) Date: Mon, 07 Nov 2016 22:15:32 -0800 Subject: iPad Pro screenshots? In-Reply-To: References: Message-ID: On the Mac you can type command/shift/4 to grab a portion of the screen?you click and drag out a rectangle; press the escape key to cancel. It leaves a PNG on your desktop. Peter On Nov 7, 2016, at 10:00 PM, Alan wrote: > 9skg+U= > x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900003); > DIR:OUT; SFP:1102; SCL:1; SRVR:PU1APC01HT097; > H:KL1PR03MB1895.apcprd03.prod.outlook.com; FPR:; SPF:None; LANG:en; > x-ms-office365-filtering-correlation-id: f331aa03-c148-4630-2c7f-08d4079c7a3a > x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:PU1APC01HT097; > x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; > RULEID:(432015012)(82015046); SRVR:PU1APC01HT097; BCL:0; PCL:0; RULEID:; > SRVR:PU1APC01HT097; > x-forefront-prvs: 01208B1E18 > X-OriginatorOrg: hotmail.com > X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Nov 2016 06:00:02.1906 (UTC) > X-MS-Exchange-CrossTenant-fromentityheader: Internet > X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa > X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1APC01HT097 > X-AntiAbuse: This header was added to track abuse, > please include it with any abuse report > X-AntiAbuse: Primary Hostname - meg.on-rev.com > X-AntiAbuse: Original Domain - me.com > X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] > X-AntiAbuse: Sender Address Domain - lists.runrev.com > X-Get-Message-Sender-Via: meg.on-rev.com: acl_c_authenticated_local_user: > mailman/mailman > > Does anyone know of a way I can get an iPad Pro screenshot using OSX 10.9.5? i.e. using a Simulator? > > I think it's not possible and that I'll have to upgrade my system, XCode etc in order to make this screenshot for an about-to-be released app? But I'd rather not go down that route, if at all possible! > > Thanks for any tips! > > cheers > > Alan > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From stephenREVOLUTION2 at barncard.com Tue Nov 8 01:21:01 2016 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Mon, 7 Nov 2016 22:21:01 -0800 Subject: iPad Pro screenshots? In-Reply-To: References: Message-ID: On Mon, Nov 7, 2016 at 10:00 PM, Alan wrote: > Does anyone know of a way I can get an iPad Pro screenshot using OSX > 10.9.5? i.e. using a Simulator? can't you just take a screenshot on the iPad? home button plus that 'hold' button on the side. Stephen Barncard - Sebastopol Ca. USA - mixstream.org From stephenREVOLUTION2 at barncard.com Tue Nov 8 01:22:07 2016 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Mon, 7 Nov 2016 22:22:07 -0800 Subject: iPad Pro screenshots? In-Reply-To: References: Message-ID: On Mon, Nov 7, 2016 at 10:21 PM, stephen barncard < stephenREVOLUTION2 at barncard.com> wrote: > can't you just take a screenshot on the iPad? home button plus that > 'hold' button on the side. > oh. on a simulator. Stephen Barncard - Sebastopol Ca. USA - mixstream.org From terry.judd at unimelb.edu.au Tue Nov 8 01:38:04 2016 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Tue, 8 Nov 2016 06:38:04 +0000 Subject: iPad Pro screenshots? In-Reply-To: References: Message-ID: <36AB40BB-CAB0-4538-9014-5A99AB3FAF42@unimelb.edu.au> Command-ctrl-shift-4 (adding the control key captures to the clipboard instead of to file) then when the cross-hairs are visible click the space key and move the mouse to select a window to be captured rather than the entire desktop. If you throw in the option key when you click the mouse to do the capture then you get the window without the drop shadow. You?ll still need to remove the window?s titlebar though. Terry... On 8/11/2016 5:15 pm, "use-livecode on behalf of Peter Bogdanoff" wrote: On the Mac you can type command/shift/4 to grab a portion of the screen?you click and drag out a rectangle; press the escape key to cancel. It leaves a PNG on your desktop. Peter On Nov 7, 2016, at 10:00 PM, Alan wrote: > > Does anyone know of a way I can get an iPad Pro screenshot using OSX 10.9.5? i.e. using a Simulator? > > I think it's not possible and that I'll have to upgrade my system, XCode etc in order to make this screenshot for an about-to-be released app? But I'd rather not go down that route, if at all possible! > > Thanks for any tips! > > cheers > > Alan > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Tue Nov 8 05:33:23 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 8 Nov 2016 18:33:23 +0800 Subject: How can we dynamically create variable names from changing value "x" on a loop? In-Reply-To: References: Message-ID: On Mon, Nov 7, 2016 at 1:21 AM, Mark Wieder wrote: > But maybe Bramanathaswami has some special use case? Assuming that is the case then 'do' is the answer and you'll find an example in the Dictionary under the 'local' command; the last example. Unfortunately the example is a bit of negative learning and the use of 'local' inside a 'do' statement is unlikely to behave the way you expect. A discussion, with an excellent explanation by Mark Waddingham is available on the List under the Subject "local and do - what NOT to do" dated 18Feb16. Sorry I don't know how to link to old posts. From alanstenhouse at hotmail.com Tue Nov 8 06:50:03 2016 From: alanstenhouse at hotmail.com (Alan) Date: Tue, 8 Nov 2016 11:50:03 +0000 Subject: iPad Pro screenshots? In-Reply-To: References: Message-ID: Thanks for the replies Peter, Stephen, Terry... but I guess I didn't explain myself well enough. The problem is that, AFAIK, the iPad Pro isn't supported with OSX 10.9.5? i.e. I can't install the required xCode that will provide the necessary simulator and/or support for building for iPad Pro (if I had a physical one to test on). Is that correct and, if so, is there a work-around? If I'm wrong, what can I install to support iPad Pro simulator on OSX 10.9.5? Thanks! On 8 Nov 2016, at 9:30 pm, wrote: > From: Alan > To: "use-livecode at lists.runrev.com" > Subject: iPad Pro screenshots? > Message-ID: > > > Content-Type: text/plain; charset="us-ascii" > > Does anyone know of a way I can get an iPad Pro screenshot using OSX 10.9.5? i.e. using a Simulator? > > I think it's not possible and that I'll have to upgrade my system, XCode etc in order to make this screenshot for an about-to-be released app? But I'd rather not go down that route, if at all possible! > > Thanks for any tips! > > cheers > > Alan From benr_mc at cogapp.com Tue Nov 8 06:48:47 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 8 Nov 2016 11:48:47 +0000 Subject: How can we dynamically create variable names from changing value "x" on a loop? In-Reply-To: <6d301f09-9963-73c3-d096-1c0538fb51a6@fourthworld.com> References: <6d301f09-9963-73c3-d096-1c0538fb51a6@fourthworld.com> Message-ID: On 07/11/2016 18:05, Richard Gaskin wrote: >> I wouldn't care to hazard a guess as to the relative speed of >> "aData[x]" versus "item x": but it's the overhead of the function >> which creates the array on that I don't want to pay *on every row*. > > The function call itself has very small overheard. Whether the definition of > that function takes more time than walking through the characters for the > chunk expression can't be known without testing. Not to flog this horse, but in this case it definitely does. The point is that in my first pattern, I have outside the loop assigned column (item) indices to named variables (based on the items of the first, header, row). In the loop LC then has to locate the indexed items in an individual data row. In the second pattern, the code which happens to be in a function for neatness has to create a new empty array, and chunk both the data row and the header row in order to get column names and values to put into the array. You can loop over one set of items, but not both, so LC still has to locate indexed items in at least one case. So in short, the function is doing what the inline code is, plus a whole lot more. (Not to mention that in many cases the 'do something' code only acts on a subset of the items in each row, whereas the array of necessity is built out of all of them.) It may or may not be significantly slower; but it definitely is slower. Ben From mark at livecode.com Tue Nov 8 07:16:22 2016 From: mark at livecode.com (Mark Waddingham) Date: Tue, 08 Nov 2016 13:16:22 +0100 Subject: How can we dynamically create variable names from changing value "x" on a =?UTF-8?Q?loop=3F?= In-Reply-To: References: <6d301f09-9963-73c3-d096-1c0538fb51a6@fourthworld.com> Message-ID: <488d4de2e49d348c42f2f801135b5b28@livecode.com> On 2016-11-08 12:48, Ben Rubinstein wrote: > The point is that in my first pattern, I have outside the loop > assigned column (item) indices to named variables (based on the items > of the first, header, row). In the loop LC then has to locate the > indexed items in an individual data row. In the first pattern: repeat for each line tRec in tTSVdata doSomething item viUserID of tRec, item viUserName of tRec ... end repeat The 'item of tRec' expressions cause the engine to iterate through tRect until it has found the relevant item. This means that this single line will be looking through the tRec string twice from the start - the first time up until the viUserID'd item, the second time up to the viUserName'd item. The speed of this will largely depend on how large the item indicies are, and how large tRec is (and where the items fall in tRec). If the item indices are small, close and near to the start, and tRec is small, and you don't use 'item ... of tRec' anywhere else in the loop, then it will likely be faster than anything else. > In the second pattern, the code which happens to be in a function for > neatness has to create a new empty array, and chunk both the data row > and the header row in order to get column names and values to put into > the array. You can loop over one set of items, but not both, so LC > still has to locate indexed items in at least one case. put line 1 of tTSVdata into tColumnNames delete line 1 of tTSVdata repeat for each line tRec in tTSVdata put explodeRow(tRec, tColumnNames) into aData doSomething aData["User ID"], aData["User Name"] ... end repeat The performance will largely depend on the implementation of explodeRow and (as you said subsequently) what > So in short, the function is doing what the inline code is, plus a > whole lot more. (Not to mention that in many cases the 'do something' > code only acts on a subset of the items in each row, whereas the array > of necessity is built out of all of them.) It may or may not be > significantly slower; but it definitely is slower. > > 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 -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Tue Nov 8 07:23:25 2016 From: mark at livecode.com (Mark Waddingham) Date: Tue, 08 Nov 2016 13:23:25 +0100 Subject: How can we dynamically create variable names from changing value "x" on a =?UTF-8?Q?loop=3F?= In-Reply-To: References: <6d301f09-9963-73c3-d096-1c0538fb51a6@fourthworld.com> Message-ID: <19b37090322a3cf6419dbeae2fa40954@livecode.com> Apologies - I clicked the wrong button in my email client and managed to send a partially composed message. Here is the correct version! On 2016-11-08 12:48, Ben Rubinstein wrote: > The point is that in my first pattern, I have outside the loop > assigned column (item) indices to named variables (based on the items > of the first, header, row). In the loop LC then has to locate the > indexed items in an individual data row. In the first pattern: repeat for each line tRec in tTSVdata doSomething item viUserID of tRec, item viUserName of tRec ... end repeat The 'item of tRec' expressions cause the engine to iterate through tRect until it has found the relevant item. This means that this single line will be looking through the tRec string twice from the start - the first time up until the viUserID'd item, the second time up to the viUserName'd item. The speed of this will largely depend on how large the item indicies are, and how large tRec is (and where the items fall in tRec). If the item indices are small, close and near to the start, and tRec is small, and you don't use 'item ... of tRec' anywhere else in the loop, then it will likely be faster than anything else. > In the second pattern, the code which happens to be in a function for > neatness has to create a new empty array, and chunk both the data row > and the header row in order to get column names and values to put into > the array. You can loop over one set of items, but not both, so LC > still has to locate indexed items in at least one case. put line 1 of tTSVdata into tColumnNames delete line 1 of tTSVdata repeat for each line tRec in tTSVdata put explodeRow(tRec, tColumnNames) into aData doSomething aData["User ID"], aData["User Name"] ... end repeat The performance will largely depend on the implementation of explodeRow and (as you said subsequently) how many columns you want from the row. If you only want 2 then unless each tRec is very long and you are fetching two items near the end then the non-array version will likely be faster. If, however, the two items are near the end of the row or you are wanting to access lots of items then this will be faster than either: repeat for each line tRec in tTSVdata split tRec by tab doSomething tRec[viUserID], tRec[viUserName] ... end repeat The difference here is that with the 'item' approach the speed will reduce quadratically with the length of tRec and the max(viUserId, viUserName); with the 'split' approach the speed will reduce linearly with the length of tRec. Depending on the average lengths of tRec and values of viUserId / viUserName, at somepoint the 'item' approach will start to be significantly slower than the 'split' version. The explodeRow approach sounds like it has lots of overhead. A fair amount of the overhead could probably be eliminated by doing 'split tColumnNames by tab', and then using array access in explodeRow to form the aData array (also making sure explodeRow is private will help too). Just my two pence. 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 benr_mc at cogapp.com Tue Nov 8 07:46:10 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 8 Nov 2016 12:46:10 +0000 Subject: How can we dynamically create variable names from changing value "x" on a loop? In-Reply-To: <19b37090322a3cf6419dbeae2fa40954@livecode.com> References: <6d301f09-9963-73c3-d096-1c0538fb51a6@fourthworld.com> <19b37090322a3cf6419dbeae2fa40954@livecode.com> Message-ID: <0239c14d-ec0b-0cfe-507e-c0147ad9971d@cogapp.com> Hi Mark, There's a reason why I haven't posted the code of explodeRow... but I'm sure it _could_ be efficient! Thanks for reminding me about split with one delimiter - I never use that. I think when I first encountered it I was so annoyed by the thought that it was pointless, because what I was looking for was for it have the opposite effect (key on the chunk text, value being the index) that I never considered it again. But of course it makes a lot of sense in a context where dipping into indexed items repeatedly is going to be expensive - I'll try to remember its use in the future. Ben On 08/11/2016 12:23, Mark Waddingham wrote: > Apologies - I clicked the wrong button in my email client and managed to send > a partially composed message. Here is the correct version! > > On 2016-11-08 12:48, Ben Rubinstein wrote: >> The point is that in my first pattern, I have outside the loop >> assigned column (item) indices to named variables (based on the items >> of the first, header, row). In the loop LC then has to locate the >> indexed items in an individual data row. > > In the first pattern: > > repeat for each line tRec in tTSVdata > doSomething item viUserID of tRec, item viUserName of tRec > ... > end repeat > > The 'item of tRec' expressions cause the engine to iterate through > tRect until it has found the relevant item. This means that this single line > will be looking through the tRec string twice from the start - the first time > up until the viUserID'd item, the second time up to the viUserName'd item. The > speed of this will largely depend on how large the item indicies are, and how > large tRec is (and where the items fall in tRec). > > If the item indices are small, close and near to the start, and tRec is small, > and you don't use 'item ... of tRec' anywhere else in the loop, then it will > likely be faster than anything else. > >> In the second pattern, the code which happens to be in a function for >> neatness has to create a new empty array, and chunk both the data row >> and the header row in order to get column names and values to put into >> the array. You can loop over one set of items, but not both, so LC >> still has to locate indexed items in at least one case. > > put line 1 of tTSVdata into tColumnNames > delete line 1 of tTSVdata > repeat for each line tRec in tTSVdata > put explodeRow(tRec, tColumnNames) into aData > doSomething aData["User ID"], aData["User Name"] > ... > end repeat > > The performance will largely depend on the implementation of explodeRow and > (as you said subsequently) how many columns you want from the row. > > If you only want 2 then unless each tRec is very long and you are fetching two > items near the end then the non-array version will likely be faster. If, > however, the two items are near the end of the row or you are wanting to > access lots of items then this will be faster than either: > > repeat for each line tRec in tTSVdata > split tRec by tab > doSomething tRec[viUserID], tRec[viUserName] > ... > end repeat > > The difference here is that with the 'item' approach the speed will reduce > quadratically with the length of tRec and the max(viUserId, viUserName); with > the 'split' approach the speed will reduce linearly with the length of tRec. > > Depending on the average lengths of tRec and values of viUserId / viUserName, > at somepoint the 'item' approach will start to be significantly slower than > the 'split' version. > > The explodeRow approach sounds like it has lots of overhead. A fair amount of > the overhead could probably be eliminated by doing 'split tColumnNames by > tab', and then using array access in explodeRow to form the aData array (also > making sure explodeRow is private will help too). > > Just my two pence. > > Mark. > From bonnmike at gmail.com Tue Nov 8 08:22:48 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 8 Nov 2016 06:22:48 -0700 Subject: How can we dynamically create variable names from changing value "x" on a loop? In-Reply-To: <0239c14d-ec0b-0cfe-507e-c0147ad9971d@cogapp.com> References: <6d301f09-9963-73c3-d096-1c0538fb51a6@fourthworld.com> <19b37090322a3cf6419dbeae2fa40954@livecode.com> <0239c14d-ec0b-0cfe-507e-c0147ad9971d@cogapp.com> Message-ID: Very interesting discussion! I'm still curious though. Since the op already takes the json based file and turns it into an array ( probably using an existing json library.) Since this step is already done, and the array esists, is there an actual benefit to then breaking that array into separate variables using do? If so, why? (perhaps this has already been covered, but information overload is making my brain melt) On Tue, Nov 8, 2016 at 5:46 AM, Ben Rubinstein wrote: > Hi Mark, > > There's a reason why I haven't posted the code of explodeRow... but I'm > sure it _could_ be efficient! > > Thanks for reminding me about split with one delimiter - I never use that. > > I think when I first encountered it I was so annoyed by the thought that > it was pointless, because what I was looking for was for it have the > opposite effect (key on the chunk text, value being the index) that I never > considered it again. But of course it makes a lot of sense in a context > where dipping into indexed items repeatedly is going to be expensive - I'll > try to remember its use in the future. > > Ben > > > On 08/11/2016 12:23, Mark Waddingham wrote: > >> Apologies - I clicked the wrong button in my email client and managed to >> send >> a partially composed message. Here is the correct version! >> >> On 2016-11-08 12:48, Ben Rubinstein wrote: >> >>> The point is that in my first pattern, I have outside the loop >>> assigned column (item) indices to named variables (based on the items >>> of the first, header, row). In the loop LC then has to locate the >>> indexed items in an individual data row. >>> >> >> In the first pattern: >> >> repeat for each line tRec in tTSVdata >> doSomething item viUserID of tRec, item viUserName of tRec >> ... >> end repeat >> >> The 'item of tRec' expressions cause the engine to iterate >> through >> tRect until it has found the relevant item. This means that this single >> line >> will be looking through the tRec string twice from the start - the first >> time >> up until the viUserID'd item, the second time up to the viUserName'd >> item. The >> speed of this will largely depend on how large the item indicies are, and >> how >> large tRec is (and where the items fall in tRec). >> >> If the item indices are small, close and near to the start, and tRec is >> small, >> and you don't use 'item ... of tRec' anywhere else in the loop, then it >> will >> likely be faster than anything else. >> >> In the second pattern, the code which happens to be in a function for >>> neatness has to create a new empty array, and chunk both the data row >>> and the header row in order to get column names and values to put into >>> the array. You can loop over one set of items, but not both, so LC >>> still has to locate indexed items in at least one case. >>> >> >> put line 1 of tTSVdata into tColumnNames >> delete line 1 of tTSVdata >> repeat for each line tRec in tTSVdata >> put explodeRow(tRec, tColumnNames) into aData >> doSomething aData["User ID"], aData["User Name"] >> ... >> end repeat >> >> The performance will largely depend on the implementation of explodeRow >> and >> (as you said subsequently) how many columns you want from the row. >> >> If you only want 2 then unless each tRec is very long and you are >> fetching two >> items near the end then the non-array version will likely be faster. If, >> however, the two items are near the end of the row or you are wanting to >> access lots of items then this will be faster than either: >> >> repeat for each line tRec in tTSVdata >> split tRec by tab >> doSomething tRec[viUserID], tRec[viUserName] >> ... >> end repeat >> >> The difference here is that with the 'item' approach the speed will reduce >> quadratically with the length of tRec and the max(viUserId, viUserName); >> with >> the 'split' approach the speed will reduce linearly with the length of >> tRec. >> >> Depending on the average lengths of tRec and values of viUserId / >> viUserName, >> at somepoint the 'item' approach will start to be significantly slower >> than >> the 'split' version. >> >> The explodeRow approach sounds like it has lots of overhead. A fair >> amount of >> the overhead could probably be eliminated by doing 'split tColumnNames by >> tab', and then using array access in explodeRow to form the aData array >> (also >> making sure explodeRow is private will help too). >> >> Just my two pence. >> >> Mark. >> >> > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From colinholgate at gmail.com Tue Nov 8 10:16:51 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Tue, 8 Nov 2016 10:16:51 -0500 Subject: iPad Pro screenshots? In-Reply-To: References: Message-ID: <9882E28F-19FB-4655-A8C6-C84AB9C8B7A7@gmail.com> In the simulator the File menu only has one entry, Save Screen Shot. Maybe that would do? > On Nov 8, 2016, at 1:22 AM, stephen barncard wrote: > > On Mon, Nov 7, 2016 at 10:21 PM, stephen barncard < > stephenREVOLUTION2 at barncard.com> wrote: > >> can't you just take a screenshot on the iPad? home button plus that >> 'hold' button on the side. >> > > oh. on a simulator. > > Stephen Barncard - Sebastopol Ca. USA - > mixstream.org > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From colinholgate at gmail.com Tue Nov 8 10:20:31 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Tue, 8 Nov 2016 10:20:31 -0500 Subject: iPad Pro screenshots? In-Reply-To: References: Message-ID: <585F8F69-49D3-4877-B3D0-039E154BDD6A@gmail.com> All iPad apps work on iPad Pro. What would you achieve if you could simulate it, that you can?t already do? > On Nov 8, 2016, at 6:50 AM, Alan wrote: > > Thanks for the replies Peter, Stephen, Terry... but I guess I didn't explain myself well enough. > > The problem is that, AFAIK, the iPad Pro isn't supported with OSX 10.9.5? i.e. I can't install the required xCode that will provide the necessary simulator and/or support for building for iPad Pro (if I had a physical one to test on). > > Is that correct and, if so, is there a work-around? If I'm wrong, what can I install to support iPad Pro simulator on OSX 10.9.5? > > Thanks! > > On 8 Nov 2016, at 9:30 pm, wrote: > >> From: Alan >> To: "use-livecode at lists.runrev.com" >> Subject: iPad Pro screenshots? >> Message-ID: >> >> >> Content-Type: text/plain; charset="us-ascii" >> >> Does anyone know of a way I can get an iPad Pro screenshot using OSX 10.9.5? i.e. using a Simulator? >> >> I think it's not possible and that I'll have to upgrade my system, XCode etc in order to make this screenshot for an about-to-be released app? But I'd rather not go down that route, if at all possible! >> >> Thanks for any tips! >> >> cheers >> >> Alan > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Nov 8 10:44:25 2016 From: tore.nilsen at me.com (Tore Nilsen) Date: Tue, 08 Nov 2016 16:44:25 +0100 Subject: Lock moves is not working when objects are moved to the points of an other graphic Message-ID: <752967C2-FE22-4F41-AC91-48A161F08B59@me.com> In LC 8.1.0 on a Mac with macOS 10.12, I have encountered some problems when trying to move several objects simultaneously. The script below works as expected: on mouseUp set lockmoves to true move grc "Oval1" from 50,60 to 1200,60 in 350 milliseconds without waiting move grc "Oval2" from 50,200 to 1280,200 in 2 seconds without waiting set lockmoves to false end mouseUp However, is a try to substitute the startPoint/endPoint with a reference to different graphics, the first move is completed, without anything happening with the second move. Once the first move is completed, the second object is moved to a point along the path that seems to be consistent with where it should have been by this time, and the animation then starts from there. Has anyone else noticed this? Regards Tore From bobsneidar at iotecdigital.com Tue Nov 8 10:51:06 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 8 Nov 2016 15:51:06 +0000 Subject: Stack name conflicts resolved? In-Reply-To: <7fe4ce00-c803-2254-853f-f844fea99a22@fourthworld.com> References: <7fe4ce00-c803-2254-853f-f844fea99a22@fourthworld.com> Message-ID: <130E69A5-5EBD-4A04-86BC-23870C3C20BE@iotecdigital.com> As he said, the stack ID is not really it's ID. In other words LC does not use the stack ID to identify it. Think of the stack ID as "the next ID to be assigned to a new object" much like SQL maintains a value in a master table of some sort with the next unique ID for each unique numerical column. So unlike any other object whose unique-ness can be determined by it's ID, a stack can only be differentiated by it's name. Bob S > On Nov 5, 2016, at 11:28 , Richard Gaskin wrote: > > I've grown weary of stack name conflict over the years, and this morning decided to take some time to assess where we're really at with that and see if perhaps there's a way to handle things more liberally than how the IDE does now. > > TL/DR version: It seems there's actually no real problem at all. > > Long version: > > > Setup > ----- > I checked revfrontscriptlibrary and found that preOpenStack calls revIDEHandleNewStack, which resides in revbackscriptlibrary. > > In that handler I found this line #3199, which I commented out: > > revCheckStackCollision tStackName > > That handler is apparently the one that compares the stacks in the stack file being opened against a list of stacks already open, and if any stack of the same name is found it brings up the stack name conflict warning. > > After commenting it out I made two stacks: > > mainstack: tA > substack: foo > > mainstack tB > substack: foo > > On each mainstack is a button with: > > on mouseUp > toplevel "foo" > end mouseUp > > Each foo substack contains an object to distinguish the stacks from one another, so I can tell which foo stack is which at a glance. > > With that prep out of the way, I began my experiment: > > > Experiment 1 > ------------ > I started a fresh session in LC, and opened tA. > > Then I opened tB. > > And since I'd commented out revCheckStackCollision, no warning was presented. > > So then in stack tA I clicked the button, and it opened the foo substack belonging to it. > > Then I clicked the button in stack tB, and it opened the foo substack belonging to it. > > > Experiment 2 > ------------ > I created a third stack file, and added a button with the same script as above. > > When clicked, it opens the foo window belonging to the stack file which had been opened first. > > > > Results > ------- > It would appear that the resolution of substack names follows a logical path that looks for matching stacks in this order: > > 1. Within the same stack file as the script referring to it. > > 2. Within another stack file, in the order in which they were opened during the session. > > This seems more or less what I've been hoping to find for years: > http://quality.livecode.com/show_bug.cgi?id=1061 > > Unless there's something here that I've missed, it would appear that stack name resolution is nearly as logical and useful across stack files as icon ID resolution. > > And just as we don't need to go through contortions to ensure that every icon ID is unique across all stacks, as long as we remember the resolution rule we can safely use stacks of the same name within the current session. > > That is, once we modify the IDE to allow it. > > Is there something I've missed here? > > -- > 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 phil at liverpool.ac.uk Tue Nov 8 11:03:19 2016 From: phil at liverpool.ac.uk (Phil Jimmieson) Date: Tue, 8 Nov 2016 16:03:19 +0000 Subject: iPad Pro screenshots? In-Reply-To: <585F8F69-49D3-4877-B3D0-039E154BDD6A@gmail.com> References: <585F8F69-49D3-4877-B3D0-039E154BDD6A@gmail.com> Message-ID: The screen size is bigger, and Apple now expect you to provide at least one screenshot in that size. I did it for a recent App update using the iPad Pro simulator in Xcode 8 on iOS 10.11.6 on a retina iMac. The previous time I did it for an App update I took a standard iPad retina screenshot and scaled it up in Preview - the reviewer in the App Store didn?t notice it was very slightly blurry... > On 8 Nov 2016, at 15:20, Colin Holgate wrote: > > All iPad apps work on iPad Pro. What would you achieve if you could simulate it, that you can?t already do? > > >> On Nov 8, 2016, at 6:50 AM, Alan wrote: >> >> Thanks for the replies Peter, Stephen, Terry... but I guess I didn't explain myself well enough. >> >> The problem is that, AFAIK, the iPad Pro isn't supported with OSX 10.9.5? i.e. I can't install the required xCode that will provide the necessary simulator and/or support for building for iPad Pro (if I had a physical one to test on). >> >> Is that correct and, if so, is there a work-around? If I'm wrong, what can I install to support iPad Pro simulator on OSX 10.9.5? >> >> Thanks! >> >> On 8 Nov 2016, at 9:30 pm, wrote: >> >>> From: Alan >>> To: "use-livecode at lists.runrev.com" >>> Subject: iPad Pro screenshots? >>> Message-ID: >>> >>> >>> Content-Type: text/plain; charset="us-ascii" >>> >>> Does anyone know of a way I can get an iPad Pro screenshot using OSX 10.9.5? i.e. using a Simulator? >>> >>> I think it's not possible and that I'll have to upgrade my system, XCode etc in order to make this screenshot for an about-to-be released app? But I'd rather not go down that route, if at all possible! >>> >>> Thanks for any tips! >>> >>> cheers >>> >>> Alan >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Jimmieson phil at liverpool.ac.uk (UK) 0151 795 4236 (Mobile) 07976 983164 Computer Science Dept., Liverpool University, Ashton Building, Ashton Street Liverpool L69 3BX http://www.csc.liv.ac.uk/~phil/ I used to sit on a special medical board... ...but now I use this ointment. From rdimola at evergreeninfo.net Tue Nov 8 11:14:48 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 8 Nov 2016 11:14:48 -0500 Subject: iPad Pro screenshots? In-Reply-To: References: <585F8F69-49D3-4877-B3D0-039E154BDD6A@gmail.com> Message-ID: <004e01d239db$3a4d4810$aee7d830$@net> I create all my screen shots in the IDE. I resize the screen for each resolution and then export a screen shot to a png. The status bar is missing but one click export of all resolutions makes up for that. 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 Phil Jimmieson Sent: Tuesday, November 08, 2016 11:03 AM To: How to use LiveCode Subject: Re: iPad Pro screenshots? The screen size is bigger, and Apple now expect you to provide at least one screenshot in that size. I did it for a recent App update using the iPad Pro simulator in Xcode 8 on iOS 10.11.6 on a retina iMac. The previous time I did it for an App update I took a standard iPad retina screenshot and scaled it up in Preview - the reviewer in the App Store didn?t notice it was very slightly blurry... > On 8 Nov 2016, at 15:20, Colin Holgate wrote: > > All iPad apps work on iPad Pro. What would you achieve if you could simulate it, that you can?t already do? > > >> On Nov 8, 2016, at 6:50 AM, Alan wrote: >> >> Thanks for the replies Peter, Stephen, Terry... but I guess I didn't explain myself well enough. >> >> The problem is that, AFAIK, the iPad Pro isn't supported with OSX 10.9.5? i.e. I can't install the required xCode that will provide the necessary simulator and/or support for building for iPad Pro (if I had a physical one to test on). >> >> Is that correct and, if so, is there a work-around? If I'm wrong, what can I install to support iPad Pro simulator on OSX 10.9.5? >> >> Thanks! >> >> On 8 Nov 2016, at 9:30 pm, wrote: >> >>> From: Alan >>> To: "use-livecode at lists.runrev.com" >>> Subject: iPad Pro screenshots? >>> Message-ID: >>> >>> >> outlook.com> >>> >>> Content-Type: text/plain; charset="us-ascii" >>> >>> Does anyone know of a way I can get an iPad Pro screenshot using OSX 10.9.5? i.e. using a Simulator? >>> >>> I think it's not possible and that I'll have to upgrade my system, XCode etc in order to make this screenshot for an about-to-be released app? But I'd rather not go down that route, if at all possible! >>> >>> Thanks for any tips! >>> >>> cheers >>> >>> Alan >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Jimmieson phil at liverpool.ac.uk (UK) 0151 795 4236 (Mobile) 07976 983164 Computer Science Dept., Liverpool University, Ashton Building, Ashton Street Liverpool L69 3BX http://www.csc.liv.ac.uk/~phil/ I used to sit on a special medical board... ...but now I use this ointment. _______________________________________________ use-livecode mailing list use-livecode at 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 Tue Nov 8 11:16:21 2016 From: dunbarx at aol.com (dunbarx) Date: Tue, 8 Nov 2016 08:16:21 -0800 (PST) Subject: Lock moves is not working when objects are moved to the points of an other graphic In-Reply-To: <752967C2-FE22-4F41-AC91-48A161F08B59@me.com> References: <752967C2-FE22-4F41-AC91-48A161F08B59@me.com> Message-ID: <1478621781195-4710201.post@n4.nabble.com> Hi. Do you mean something like this: on mouseUp set lockmoves to true move grc "Oval1" to the points of grc 3 in 350 milliseconds without waiting move grc "Oval2" to the points of grc 4 in 2 seconds without waiting set lockmoves to false end mouseUp Works fine here in v 6.7, so I assume the issue is with v8. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Lock-moves-is-not-working-when-objects-are-moved-to-the-points-of-an-other-graphic-tp4710197p4710201.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Tue Nov 8 11:28:12 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 8 Nov 2016 08:28:12 -0800 Subject: Stack name conflicts resolved? In-Reply-To: <130E69A5-5EBD-4A04-86BC-23870C3C20BE@iotecdigital.com> References: <130E69A5-5EBD-4A04-86BC-23870C3C20BE@iotecdigital.com> Message-ID: <4effe0ee-0185-f5b7-21c0-3980966a92c9@fourthworld.com> I made no reference to stack ID; I'm familiar with its role as a container for the ID incrementer. The short name of a stack is not the only distinguishing attribute. Its file path is also available. Indeed, topstack returns the path as a part of the stack reference, but apparently does not check the path when resolving that reference. I wrote an example function showing how this can be handled in script using information we have available today, included in Comment 1 in the bug report I filed on this: http://quality.livecode.com/show_bug.cgi?id=18793 Of course the engine could do that far more efficiently, and indeed it would require fixing this in the engine because LiveCode doesn't provide a means of overriding built-in functions. Once fixed, we'll be able to open up old copies of our stacks to check or copy things, or open up another project that happens to have a stack named something common like "About" which we may have in the one we're working on, or any number of other cases which have given rise to discussions of workarounds here. Many such workflows would become as graceful as the language itself. SuperCard had no such limitation, and IIRC neither did OMO, Gain Momentum, Tookbook, or even HyperCard. Indeed, the LiveCode engine itself has no such prohibition: it allows opening stacks with the same name, and any references using a stack's short name are resolved using a simple and predictable rule: The stack containing the script is checked first, and if not found it checks stacks in the order they were loaded during the current session. The only limitation with this is what Ben pointed me to, problems copying and pasting objects or other actions dependent on topstack or other things related to the stack reference resolution topstack relies on, like default stack. Topstack is normally the stack with the highest layer of the lowest mode. But in the current engine resolution, when given a short name it appears to use load order only, without taking into account window layer. Since two different stack files will have different paths (as Mark Waddingham reminded us, file systems enforce that very consistently for us), most issues with working on multiple stacks with the same value in the name property go away once the stack resolution uses available path information to return a more accurate value. Given the long history of the IDE and engine development, I can understand how we got where we are. The IDE has been owned by LiveCode Ltd. far longer than the engine, and back then prohibiting stacks from have the same name value was by far the simpler option. And once that was in place, it was no longer possible to explore the issue further, so it's remained that way so long we've all just come to accept that it's just how things are. But once I experimented with disabling the IDE block, I was at last able to explore the engine behaviors in isolation. They're generally pretty good, in almost all respects as flexible as what SuperCard provides, with the sole exception of an incomplete algorithm used for internal resolution of the stack reference. And since that can be done in script, it would seem reasonable to at least suggest looking into how this might be refined in the engine. -- Richard Gaskin Fourth World Systems Bob Sneidar wrote: > As he said, the stack ID is not really it's ID. In other words LC does not use the stack ID to identify it. Think of the stack ID as "the next ID to be assigned to a new object" much like SQL maintains a value in a master table of some sort with the next unique ID for each unique numerical column. > > So unlike any other object whose unique-ness can be determined by it's ID, a stack can only be differentiated by it's name. > > Bob S > > >> On Nov 5, 2016, at 11:28 , Richard Gaskin wrote: >> >> I've grown weary of stack name conflict over the years, and this morning decided to take some time to assess where we're really at with that and see if perhaps there's a way to handle things more liberally than how the IDE does now. >> >> TL/DR version: It seems there's actually no real problem at all. >> >> Long version: >> >> >> Setup >> ----- >> I checked revfrontscriptlibrary and found that preOpenStack calls revIDEHandleNewStack, which resides in revbackscriptlibrary. >> >> In that handler I found this line #3199, which I commented out: >> >> revCheckStackCollision tStackName >> >> That handler is apparently the one that compares the stacks in the stack file being opened against a list of stacks already open, and if any stack of the same name is found it brings up the stack name conflict warning. >> >> After commenting it out I made two stacks: >> >> mainstack: tA >> substack: foo >> >> mainstack tB >> substack: foo >> >> On each mainstack is a button with: >> >> on mouseUp >> toplevel "foo" >> end mouseUp >> >> Each foo substack contains an object to distinguish the stacks from one another, so I can tell which foo stack is which at a glance. >> >> With that prep out of the way, I began my experiment: >> >> >> Experiment 1 >> ------------ >> I started a fresh session in LC, and opened tA. >> >> Then I opened tB. >> >> And since I'd commented out revCheckStackCollision, no warning was presented. >> >> So then in stack tA I clicked the button, and it opened the foo substack belonging to it. >> >> Then I clicked the button in stack tB, and it opened the foo substack belonging to it. >> >> >> Experiment 2 >> ------------ >> I created a third stack file, and added a button with the same script as above. >> >> When clicked, it opens the foo window belonging to the stack file which had been opened first. >> >> >> >> Results >> ------- >> It would appear that the resolution of substack names follows a logical path that looks for matching stacks in this order: >> >> 1. Within the same stack file as the script referring to it. >> >> 2. Within another stack file, in the order in which they were opened during the session. >> >> This seems more or less what I've been hoping to find for years: >> http://quality.livecode.com/show_bug.cgi?id=1061 >> >> Unless there's something here that I've missed, it would appear that stack name resolution is nearly as logical and useful across stack files as icon ID resolution. >> >> And just as we don't need to go through contortions to ensure that every icon ID is unique across all stacks, as long as we remember the resolution rule we can safely use stacks of the same name within the current session. >> >> That is, once we modify the IDE to allow it. >> >> Is there something I've missed here? >> >> -- >> 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 Tue Nov 8 11:51:59 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 8 Nov 2016 11:51:59 -0500 Subject: 8 datagrid text properties Message-ID: I guess I haven't had to work any text properties in dg's in 8, because I don't see how to change either the header or the body text props. -- 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 Nov 8 12:06:47 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 8 Nov 2016 12:06:47 -0500 Subject: property inspector lock Message-ID: Any idea how to make the lock on the property inspector stick? If I select the property inspector for an object and hit the lock, it does not seem to stick. So for example, pick A. Unlock PI. Pick B. PI is now locked. Unlock PI. Repeat - PI lock doesn't seem to stick. -- 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 rdimola at evergreeninfo.net Tue Nov 8 12:33:19 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 8 Nov 2016 12:33:19 -0500 Subject: property inspector lock In-Reply-To: References: Message-ID: <005501d239e6$32a3e9b0$97ebbd10$@net> How does one duplicate a card in v8? I can't seem to select a card in the IDE. "duplicate card" is no longer displayed. I guess this have been replaced by the "duplicate" text. If I select the card in the property inspector the copy and duplicate edit options are grayed out. Also after selecting the card in the property inspector the click on the code button the stack script not the card script is opened. What am I missing here? How do I select a card? Thanks Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From rdimola at evergreeninfo.net Tue Nov 8 12:35:00 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 8 Nov 2016 12:35:00 -0500 Subject: Duplicating a card in v8 In-Reply-To: References: Message-ID: <005601d239e6$6ecb6350$4c6229f0$@net> How does one duplicate a card in v8? I can't seem to select a card in the IDE. "duplicate card" is no longer displayed. I guess this have been replaced by the "duplicate" text. If I select the card in the property inspector the copy and duplicate edit options are grayed out. Also after selecting the card in the property inspector the click on the code button the stack script not the card script is opened. What am I missing here? How do I select a card? Thanks Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From tore.nilsen at me.com Tue Nov 8 12:33:05 2016 From: tore.nilsen at me.com (Tore Nilsen) Date: Tue, 08 Nov 2016 18:33:05 +0100 Subject: Lock moves is not working when objects are moved to the points of an other graphic In-Reply-To: <1478621781195-4710201.post@n4.nabble.com> References: <752967C2-FE22-4F41-AC91-48A161F08B59@me.com> <1478621781195-4710201.post@n4.nabble.com> Message-ID: <9B4D2574-51EB-47F6-8594-947794E23AB3@me.com> Yes, this is what does not work in 8.1.0. I've tried it both on my Macbook and on my iMac, and the second movement only start once the first is finished. I should probably look for a bug report/file a bug report if no other report exists. Tore > 8. nov. 2016 kl. 17.16 skrev dunbarx : > > Hi. > > Do you mean something like this: > > on mouseUp > set lockmoves to true > move grc "Oval1" to the points of grc 3 in 350 milliseconds without waiting > move grc "Oval2" to the points of grc 4 in 2 seconds without waiting > set lockmoves to false > end mouseUp > > Works fine here in v 6.7, so I assume the issue is with v8. > > Craig > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Lock-moves-is-not-working-when-objects-are-moved-to-the-points-of-an-other-graphic-tp4710197p4710201.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From msiskin at andrew.cmu.edu Tue Nov 8 12:35:03 2016 From: msiskin at andrew.cmu.edu (Marc Siskin) Date: Tue, 8 Nov 2016 17:35:03 +0000 Subject: property inspector lock In-Reply-To: <005501d239e6$32a3e9b0$97ebbd10$@net> References: <005501d239e6$32a3e9b0$97ebbd10$@net> Message-ID: <17E71EAB-BB8D-4831-B299-5B25DD660E8A@andrew.cmu.edu> Ralph, Does typing ?Copy this card to this stack? work in the message box? Marc On Nov 8, 2016, at 12:33 PM, Ralph DiMola > wrote: How does one duplicate a card in v8? I can't seem to select a card in the IDE. "duplicate card" is no longer displayed. I guess this have been replaced by the "duplicate" text. If I select the card in the property inspector the copy and duplicate edit options are grayed out. Also after selecting the card in the property inspector the click on the code button the stack script not the card script is opened. What am I missing here? How do I select a card? Thanks Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode --------------- Marc Siskin Manager, Modern Language Resource Center Carnegie Mellon University msiskin at andrew.cmu.edu From MikeKerner at roadrunner.com Tue Nov 8 12:49:50 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 8 Nov 2016 12:49:50 -0500 Subject: property inspector lock In-Reply-To: <17E71EAB-BB8D-4831-B299-5B25DD660E8A@andrew.cmu.edu> References: <005501d239e6$32a3e9b0$97ebbd10$@net> <17E71EAB-BB8D-4831-B299-5B25DD660E8A@andrew.cmu.edu> Message-ID: Thanks for hijacking my thread, guys. GET YOUR OWN THREAD! On Tue, Nov 8, 2016 at 12:35 PM, Marc Siskin wrote: > Ralph, > > Does typing ?Copy this card to this stack? work in the message box? > > Marc > On Nov 8, 2016, at 12:33 PM, Ralph DiMola mailto:rdimola at evergreeninfo.net>> wrote: > > How does one duplicate a card in v8? I can't seem to select a card in the > IDE. "duplicate card" is no longer displayed. I guess this have been > replaced by the "duplicate" text. If I select the card in the property > inspector the copy and duplicate edit options are grayed out. Also after > selecting the card in the property inspector the click on the code button > the stack script not the card script is opened. What am I missing here? How > do I select a card? > > Thanks > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > --------------- > Marc Siskin > Manager, Modern Language Resource Center > Carnegie Mellon University > msiskin at andrew.cmu.edu > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 rdimola at evergreeninfo.net Tue Nov 8 12:57:57 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 8 Nov 2016 12:57:57 -0500 Subject: property inspector lock In-Reply-To: References: <005501d239e6$32a3e9b0$97ebbd10$@net> <17E71EAB-BB8D-4831-B299-5B25DD660E8A@andrew.cmu.edu> Message-ID: <005b01d239e9$a3a97280$eafc5780$@net> Sorry, I had a "hot key nightmare" and sent it with the wrong subject line. I resent with correct subject. 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 Mike Kerner Sent: Tuesday, November 08, 2016 12:50 PM To: How to use LiveCode Subject: Re: property inspector lock Thanks for hijacking my thread, guys. GET YOUR OWN THREAD! On Tue, Nov 8, 2016 at 12:35 PM, Marc Siskin wrote: > Ralph, > > Does typing ?Copy this card to this stack? work in the message box? > > Marc > On Nov 8, 2016, at 12:33 PM, Ralph DiMola mailto:rdimola at evergreeninfo.net>> wrote: > > How does one duplicate a card in v8? I can't seem to select a card in > the IDE. "duplicate card" is no longer displayed. I guess this have > been replaced by the "duplicate" text. If I select the card in the > property inspector the copy and duplicate edit options are grayed out. > Also after selecting the card in the property inspector the click on > the code button the stack script not the card script is opened. What > am I missing here? How do I select a card? > > Thanks > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > --------------- > Marc Siskin > Manager, Modern Language Resource Center Carnegie Mellon University > msiskin at andrew.cmu.edu > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 iowahengst at mac.com Tue Nov 8 13:28:21 2016 From: iowahengst at mac.com (Randy Hengst) Date: Tue, 08 Nov 2016 12:28:21 -0600 Subject: Duplicating a card in v8 In-Reply-To: <005601d239e6$6ecb6350$4c6229f0$@net> References: <005601d239e6$6ecb6350$4c6229f0$@net> Message-ID: <4FD83468-B24F-4FEA-9A4A-78AF8B0EE734@mac.com> Ralph, In a button use either of these statements: copy card ?ymCardToCopy" of this stack to this stack copy card "ymCardToCopy" of this to stack "DemoStack? ---assuming DemoStack stack is open be well, randy Randy Hengst www.classroomFocusedSoftware.com > On Nov 8, 2016, at 11:35 AM, Ralph DiMola wrote: > > How does one duplicate a card in v8? I can't seem to select a card in the > IDE. "duplicate card" is no longer displayed. I guess this have been > replaced by the "duplicate" text. If I select the card in the property > inspector the copy and duplicate edit options are grayed out. Also after > selecting the card in the property inspector the click on the code button > the stack script not the card script is opened. What am I missing here? How > do I select a card? > > Thanks > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Tue Nov 8 13:40:55 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 08 Nov 2016 12:40:55 -0600 Subject: property inspector lock In-Reply-To: <17E71EAB-BB8D-4831-B299-5B25DD660E8A@andrew.cmu.edu> References: <005501d239e6$32a3e9b0$97ebbd10$@net> <17E71EAB-BB8D-4831-B299-5B25DD660E8A@andrew.cmu.edu> Message-ID: <158453e36d8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> The easiest way, without a menu item, is from the message box: "clone this card". Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 8, 2016 11:36:12 AM Marc Siskin wrote: > Ralph, > > Does typing ?Copy this card to this stack? work in the message box? > > Marc > On Nov 8, 2016, at 12:33 PM, Ralph DiMola > > wrote: > > How does one duplicate a card in v8? I can't seem to select a card in the > IDE. "duplicate card" is no longer displayed. I guess this have been > replaced by the "duplicate" text. If I select the card in the property > inspector the copy and duplicate edit options are grayed out. Also after > selecting the card in the property inspector the click on the code button > the stack script not the card script is opened. What am I missing here? How > do I select a card? > > Thanks > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > --------------- > Marc Siskin > Manager, Modern Language Resource Center > Carnegie Mellon University > msiskin at andrew.cmu.edu > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 8 14:08:33 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 8 Nov 2016 14:08:33 -0500 Subject: property inspector lock 2 Message-ID: Since the original thread was hijacked, Any idea how to make the lock on the property inspector stick? If I select the property inspector for an object and hit the lock, it does not seem to stick. So for example, pick A. Unlock PI. Pick B. PI is now locked. Unlock PI. Repeat - PI lock doesn't seem to stick. -- 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 Tue Nov 8 14:47:29 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 8 Nov 2016 11:47:29 -0800 Subject: property inspector lock 2 In-Reply-To: References: Message-ID: Mike Kerner wrote: > Any idea how to make the lock on the property inspector stick? If I > select the property inspector for an object and hit the lock, it does > not seem to stick. So for example, pick A. Unlock PI. Pick B. PI > is now locked. Unlock PI. Repeat - PI lock doesn't seem to stick. UTR here, works as expected in v9 on Ubuntu. -- 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 stephenREVOLUTION2 at barncard.com Tue Nov 8 14:52:57 2016 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Tue, 8 Nov 2016 11:52:57 -0800 Subject: property inspector lock 2 In-Reply-To: References: Message-ID: I've noticed that inspector windows stack perfectly on top of each other, and the 'new' inspector falls directly on top of the locked one, giving the visual feedback of being replaced, when actually the locked one is behind the new one. Some UI designs make sure 'new' windows will be offset slightly, revealing the obfuscated window. Stephen Barncard - Sebastopol Ca. USA - mixstream.org On Tue, Nov 8, 2016 at 11:08 AM, Mike Kerner wrote: > Since the original thread was hijacked, > Any idea how to make the lock on the property inspector stick? If I select > the property inspector for an object and hit the lock, it does not seem to > stick. So for example, pick A. Unlock PI. Pick B. PI is now locked. > Unlock PI. Repeat - PI lock doesn't seem to stick. > > -- > 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 hh at hyperhh.de Tue Nov 8 15:27:15 2016 From: hh at hyperhh.de (hh) Date: Tue, 8 Nov 2016 21:27:15 +0100 Subject: Lock moves is not working when objects are moved to the points of an other graphic Message-ID: <83CABED1-1884-4A30-952A-FCCE0D9B460F@hyperhh.de> 'Lock moves' or 'set lockmoves to true' works here as it should with LC 8.1.1 and 9.0.0-dp1 on MacOS 10.12.1. From hh at hyperhh.de Tue Nov 8 15:39:29 2016 From: hh at hyperhh.de (hh) Date: Tue, 8 Nov 2016 21:39:29 +0100 Subject: Lock moves is not working when objects are moved to the points of an other graphic Message-ID: <3CCC69FF-1DB3-46FD-94E8-FE1DC7EF068F@hyperhh.de> Tore. Did you notice the difference in Craig's post? We can't use 'from point A to the points of' but either 'from point A to point B' or 'to the points of'. Hermann From MikeKerner at roadrunner.com Tue Nov 8 16:03:12 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 8 Nov 2016 16:03:12 -0500 Subject: property inspector lock 2 In-Reply-To: References: Message-ID: What I'm seeing is if I unlock the PI, then I ask for a PI on something else (say an object on a separate card), the unlocked PI becomes up locked with the new object. I did think about the location being the same, so I checked that, but no joy. Same token: If I lock the PI, it doesn't always seem to stick, either, and I end up with extra windows when I want one. On Tue, Nov 8, 2016 at 2:52 PM, stephen barncard < stephenREVOLUTION2 at barncard.com> wrote: > I've noticed that inspector windows stack perfectly on top of each other, > and the 'new' inspector falls directly on top of the locked one, giving the > visual feedback of being replaced, when actually the locked one is behind > the new one. Some UI designs make sure 'new' windows will be offset > slightly, revealing the obfuscated window. > > Stephen Barncard - Sebastopol Ca. USA - > mixstream.org > > On Tue, Nov 8, 2016 at 11:08 AM, Mike Kerner > wrote: > > > Since the original thread was hijacked, > > Any idea how to make the lock on the property inspector stick? If I > select > > the property inspector for an object and hit the lock, it does not seem > to > > stick. So for example, pick A. Unlock PI. Pick B. PI is now locked. > > Unlock PI. Repeat - PI lock doesn't seem to stick. > > > > -- > > 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 alanstenhouse at hotmail.com Tue Nov 8 18:40:13 2016 From: alanstenhouse at hotmail.com (Alan) Date: Tue, 8 Nov 2016 23:40:13 +0000 Subject: iPad Pro screenshots? In-Reply-To: References: Message-ID: Thanks Ralph, Phil, Colin So the interim solution (until I upgrade my systems to get access to iPad Pro Simulator) is to take a Retina screenshot and scale up (this is to satisfy that AppStore requirements) and hope that's good enough...! :-) cheers Alan On 9 Nov 2016, at 4:03 am, wrote: > From: "Ralph DiMola" > Subject: RE: iPad Pro screenshots? > > I create all my screen shots in the IDE. I resize the screen for each resolution and then export a screen shot to a png. The status bar is missing but one click export of all resolutions makes up for that. > > 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 Phil Jimmieson > Sent: Tuesday, November 08, 2016 11:03 AM > Subject: Re: iPad Pro screenshots? > > The screen size is bigger, and Apple now expect you to provide at least one screenshot in that size. I did it for a recent App update using the iPad Pro simulator in Xcode 8 on iOS 10.11.6 on a retina iMac. The previous time I did it for an App update I took a standard iPad retina screenshot and scaled it up in Preview - the reviewer in the App Store didn?t notice it was very slightly blurry... > > > >> On 8 Nov 2016, at 15:20, Colin Holgate wrote: >> >> All iPad apps work on iPad Pro. What would you achieve if you could simulate it, that you can?t already do? >> >> >>> On Nov 8, 2016, at 6:50 AM, Alan wrote: >>> >>> Thanks for the replies Peter, Stephen, Terry... but I guess I didn't explain myself well enough. >>> >>> The problem is that, AFAIK, the iPad Pro isn't supported with OSX 10.9.5? i.e. I can't install the required xCode that will provide the necessary simulator and/or support for building for iPad Pro (if I had a physical one to test on). >>> >>> Is that correct and, if so, is there a work-around? If I'm wrong, what can I install to support iPad Pro simulator on OSX 10.9.5? >>> >>> Thanks! From colinholgate at gmail.com Tue Nov 8 19:22:07 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Tue, 8 Nov 2016 19:22:07 -0500 Subject: iPad Pro screenshots? In-Reply-To: References: Message-ID: Ralph?s idea was good though, you could export snapshot from a card window that?s the real size. But yes, scaling up is what I?ve done as well. One thing to be wary of is having complex splash screens. You will find that if you support every required size you could reach 30 MB of app space, before the app has even opened. These days I have a flat color that is the average of the title screen, then let it cut to the title screen. Flat color PNGs take up little space. > On Nov 8, 2016, at 6:40 PM, Alan wrote: > > Thanks Ralph, Phil, Colin > > So the interim solution (until I upgrade my systems to get access to iPad Pro Simulator) is to take a Retina screenshot and scale up (this is to satisfy that AppStore requirements) and hope that's good enough...! :-) > > cheers > > Alan > > On 9 Nov 2016, at 4:03 am, wrote: > >> From: "Ralph DiMola" >> Subject: RE: iPad Pro screenshots? >> >> I create all my screen shots in the IDE. I resize the screen for each resolution and then export a screen shot to a png. The status bar is missing but one click export of all resolutions makes up for that. >> >> 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 Phil Jimmieson >> Sent: Tuesday, November 08, 2016 11:03 AM >> Subject: Re: iPad Pro screenshots? >> >> The screen size is bigger, and Apple now expect you to provide at least one screenshot in that size. I did it for a recent App update using the iPad Pro simulator in Xcode 8 on iOS 10.11.6 on a retina iMac. The previous time I did it for an App update I took a standard iPad retina screenshot and scaled it up in Preview - the reviewer in the App Store didn?t notice it was very slightly blurry... >> >> >> >>> On 8 Nov 2016, at 15:20, Colin Holgate wrote: >>> >>> All iPad apps work on iPad Pro. What would you achieve if you could simulate it, that you can?t already do? >>> >>> >>>> On Nov 8, 2016, at 6:50 AM, Alan wrote: >>>> >>>> Thanks for the replies Peter, Stephen, Terry... but I guess I didn't explain myself well enough. >>>> >>>> The problem is that, AFAIK, the iPad Pro isn't supported with OSX 10.9.5? i.e. I can't install the required xCode that will provide the necessary simulator and/or support for building for iPad Pro (if I had a physical one to test on). >>>> >>>> Is that correct and, if so, is there a work-around? If I'm wrong, what can I install to support iPad Pro simulator on OSX 10.9.5? >>>> >>>> Thanks! > > On Nov 8, 2016, at 6:40 PM, Alan wrote: > > Thanks Ralph, Phil, Colin > > So the interim solution (until I upgrade my systems to get access to iPad Pro Simulator) is to take a Retina screenshot and scale up (this is to satisfy that AppStore requirements) and hope that's good enough...! :-) > > cheers > > Alan > > On 9 Nov 2016, at 4:03 am, wrote: > >> From: "Ralph DiMola" >> Subject: RE: iPad Pro screenshots? >> >> I create all my screen shots in the IDE. I resize the screen for each resolution and then export a screen shot to a png. The status bar is missing but one click export of all resolutions makes up for that. >> >> 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 Phil Jimmieson >> Sent: Tuesday, November 08, 2016 11:03 AM >> Subject: Re: iPad Pro screenshots? >> >> The screen size is bigger, and Apple now expect you to provide at least one screenshot in that size. I did it for a recent App update using the iPad Pro simulator in Xcode 8 on iOS 10.11.6 on a retina iMac. The previous time I did it for an App update I took a standard iPad retina screenshot and scaled it up in Preview - the reviewer in the App Store didn?t notice it was very slightly blurry... >> >> >> >>> On 8 Nov 2016, at 15:20, Colin Holgate wrote: >>> >>> All iPad apps work on iPad Pro. What would you achieve if you could simulate it, that you can?t already do? >>> >>> >>>> On Nov 8, 2016, at 6:50 AM, Alan wrote: >>>> >>>> Thanks for the replies Peter, Stephen, Terry... but I guess I didn't explain myself well enough. >>>> >>>> The problem is that, AFAIK, the iPad Pro isn't supported with OSX 10.9.5? i.e. I can't install the required xCode that will provide the necessary simulator and/or support for building for iPad Pro (if I had a physical one to test on). >>>> >>>> Is that correct and, if so, is there a work-around? If I'm wrong, what can I install to support iPad Pro simulator on OSX 10.9.5? >>>> >>>> Thanks! > From james at thehales.id.au Tue Nov 8 19:31:29 2016 From: james at thehales.id.au (James Hale) Date: Wed, 9 Nov 2016 11:31:29 +1100 Subject: What speed advantage comes from a private handler? Message-ID: <8CCAF70D-ABB1-46B8-86C3-A470252B984A@thehales.id.au> In a reply to a post on loop speed Mark made this aside... > the aData array (also making sure explodeRow is private will help too) Can someone explain why making a handler private speeds up a script? Should I be making more of my handlers private? Really intrigued. James From monte at appisle.net Tue Nov 8 19:44:08 2016 From: monte at appisle.net (Monte Goulding) Date: Wed, 9 Nov 2016 11:44:08 +1100 Subject: What speed advantage comes from a private handler? In-Reply-To: <8CCAF70D-ABB1-46B8-86C3-A470252B984A@thehales.id.au> References: <8CCAF70D-ABB1-46B8-86C3-A470252B984A@thehales.id.au> Message-ID: <52DBEEF6-97B4-4163-AD2C-C768C5A31B50@appisle.net> > On 9 Nov. 2016, at 11:31 am, James Hale wrote: > > Can someone explain why making a handler private speeds up a script? Private handlers are called directly rather than giving all the frontscripts a chance to handle them. > Should I be making more of my handlers private? If you only ever need or want to call a handler from the same script then make it private. One thing to watch out for though is at the moment the pending messages queue does not have a sender reference which means that you can?t send in time private handlers or use private handlers for socket callbacks (which are sent via pending messages). Cheers Monte From revdev at pdslabs.net Tue Nov 8 19:52:31 2016 From: revdev at pdslabs.net (Phil Davis) Date: Tue, 8 Nov 2016 16:52:31 -0800 Subject: What speed advantage comes from a private handler? In-Reply-To: <52DBEEF6-97B4-4163-AD2C-C768C5A31B50@appisle.net> References: <8CCAF70D-ABB1-46B8-86C3-A470252B984A@thehales.id.au> <52DBEEF6-97B4-4163-AD2C-C768C5A31B50@appisle.net> Message-ID: You also can't execute a private handler with the "dispatch" command. Phil Davis On 11/8/16 4:44 PM, Monte Goulding wrote: >> On 9 Nov. 2016, at 11:31 am, James Hale wrote: >> >> Can someone explain why making a handler private speeds up a script? > Private handlers are called directly rather than giving all the frontscripts a chance to handle them. > >> Should I be making more of my handlers private? > If you only ever need or want to call a handler from the same script then make it private. > > One thing to watch out for though is at the moment the pending messages queue does not have a sender reference which means that you can?t send in time private handlers or use private handlers for socket callbacks (which are sent via pending messages). > > 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 -- Phil Davis From monte at appisle.net Tue Nov 8 20:00:00 2016 From: monte at appisle.net (Monte Goulding) Date: Wed, 9 Nov 2016 12:00:00 +1100 Subject: What speed advantage comes from a private handler? In-Reply-To: References: <8CCAF70D-ABB1-46B8-86C3-A470252B984A@thehales.id.au> <52DBEEF6-97B4-4163-AD2C-C768C5A31B50@appisle.net> Message-ID: <89949189-DF39-4A26-864C-B51469C17F95@appisle.net> > On 9 Nov. 2016, at 11:52 am, Phil Davis wrote: > > You also can't execute a private handler with the "dispatch" command. I guess that?s true but what use case is there for dispatch within the same script? From revdev at pdslabs.net Tue Nov 8 20:23:04 2016 From: revdev at pdslabs.net (Phil Davis) Date: Tue, 8 Nov 2016 17:23:04 -0800 Subject: What speed advantage comes from a private handler? In-Reply-To: <89949189-DF39-4A26-864C-B51469C17F95@appisle.net> References: <8CCAF70D-ABB1-46B8-86C3-A470252B984A@thehales.id.au> <52DBEEF6-97B4-4163-AD2C-C768C5A31B50@appisle.net> <89949189-DF39-4A26-864C-B51469C17F95@appisle.net> Message-ID: <5789b0fa-10c2-d1fe-1daa-113eb4c2be87@pdslabs.net> Use case: You use 'dispatch' as a coding style preference. (That's all I could come up with.) Phil On 11/8/16 5:00 PM, Monte Goulding wrote: >> On 9 Nov. 2016, at 11:52 am, Phil Davis wrote: >> >> You also can't execute a private handler with the "dispatch" command. > I guess that?s true but what use case is there for dispatch within the same script? > _______________________________________________ > use-livecode mailing list > use-livecode 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 monte at appisle.net Tue Nov 8 20:27:34 2016 From: monte at appisle.net (Monte Goulding) Date: Wed, 9 Nov 2016 12:27:34 +1100 Subject: What speed advantage comes from a private handler? In-Reply-To: <5789b0fa-10c2-d1fe-1daa-113eb4c2be87@pdslabs.net> References: <8CCAF70D-ABB1-46B8-86C3-A470252B984A@thehales.id.au> <52DBEEF6-97B4-4163-AD2C-C768C5A31B50@appisle.net> <89949189-DF39-4A26-864C-B51469C17F95@appisle.net> <5789b0fa-10c2-d1fe-1daa-113eb4c2be87@pdslabs.net> Message-ID: <1AC62CF3-16B5-4247-8195-06FFA224F43A@appisle.net> > On 9 Nov. 2016, at 12:23 pm, Phil Davis wrote: > > Use case: You use 'dispatch' as a coding style preference. > > (That's all I could come up with.) ;-) Actually thinking on it I can imagine a use case but it fails if you are wanting to dispatch a private handler: dispatch ?SomethingOverridableInABehaviorInstance? to me command SomethingOverridableInABehaviorInstance ? default implementation end SomethingOverridableInABehaviorInstance From revdev at pdslabs.net Tue Nov 8 20:44:59 2016 From: revdev at pdslabs.net (Phil Davis) Date: Tue, 8 Nov 2016 17:44:59 -0800 Subject: What speed advantage comes from a private handler? In-Reply-To: <1AC62CF3-16B5-4247-8195-06FFA224F43A@appisle.net> References: <8CCAF70D-ABB1-46B8-86C3-A470252B984A@thehales.id.au> <52DBEEF6-97B4-4163-AD2C-C768C5A31B50@appisle.net> <89949189-DF39-4A26-864C-B51469C17F95@appisle.net> <5789b0fa-10c2-d1fe-1daa-113eb4c2be87@pdslabs.net> <1AC62CF3-16B5-4247-8195-06FFA224F43A@appisle.net> Message-ID: <973f9437-f3a8-4171-e39f-e429777755bb@pdslabs.net> Actually here's another situation where I've used 'dispatch' simply to avoid a 'do'. But I could as easily use 'send' to get the job done: function app_helperAppPath pAppName dispatch function ( "_helperAppPath_" & the platform ) to me with pAppName return the result end app_helperAppPath function _helperAppPath_MacOS pAppName -- Mac-specific app path discovery code end _helperAppPath_MacOS function _helperAppPath_Win32 pAppName -- Windows-specific app path discovery code end _helperAppPath_Win32 Phil Davis On 11/8/16 5:27 PM, Monte Goulding wrote: >> On 9 Nov. 2016, at 12:23 pm, Phil Davis wrote: >> >> Use case: You use 'dispatch' as a coding style preference. >> >> (That's all I could come up with.) > ;-) > > Actually thinking on it I can imagine a use case but it fails if you are wanting to dispatch a private handler: > > dispatch ?SomethingOverridableInABehaviorInstance? to me > > command SomethingOverridableInABehaviorInstance > ? default implementation > end SomethingOverridableInABehaviorInstance > _______________________________________________ > use-livecode mailing list > use-livecode 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 monte at appisle.net Tue Nov 8 20:53:04 2016 From: monte at appisle.net (Monte Goulding) Date: Wed, 9 Nov 2016 12:53:04 +1100 Subject: What speed advantage comes from a private handler? In-Reply-To: <973f9437-f3a8-4171-e39f-e429777755bb@pdslabs.net> References: <8CCAF70D-ABB1-46B8-86C3-A470252B984A@thehales.id.au> <52DBEEF6-97B4-4163-AD2C-C768C5A31B50@appisle.net> <89949189-DF39-4A26-864C-B51469C17F95@appisle.net> <5789b0fa-10c2-d1fe-1daa-113eb4c2be87@pdslabs.net> <1AC62CF3-16B5-4247-8195-06FFA224F43A@appisle.net> <973f9437-f3a8-4171-e39f-e429777755bb@pdslabs.net> Message-ID: > On 9 Nov. 2016, at 12:44 pm, Phil Davis wrote: > > function app_helperAppPath pAppName > dispatch function ( "_helperAppPath_" & the platform ) to me with pAppName > return the result > end app_helperAppPath > > > function _helperAppPath_MacOS pAppName > -- Mac-specific app path discovery code > end _helperAppPath_MacOS > > > function _helperAppPath_Win32 pAppName > -- Windows-specific app path discovery code > end _helperAppPath_Win32 Hmm? I guess that is a use case where support for private handlers in dispatch would be helpful. I?d probably need to see an example that could be so easily refactored away with a control structure to be sure on that though. From peter.brett at livecode.com Wed Nov 9 06:43:45 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Wed, 9 Nov 2016 11:43:45 +0000 Subject: [ANN] Release 8.1.2 RC-1 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 8.1.2 RC 1. Getting the Release =================== You can get the release at https://downloads.livecode.com/livecode/ or via the automatic updater. Release Contents ================ Fewer crashes ------------- LiveCode was sometimes accessing objects after they had been deleted, getting seriously upset as a result. We rewrote a large chunk of the LiveCode engine to stop it from doing that. We've created mechanisms that will help us detect and fix issues like this more easily. IDE improvements ---------------- We resolved several minor but irritating bugs in the IDE and standalone builder. The tools palette and selection handles work more nicely, the debugger can watch global variables, we tweaked the property inspector user interface (including restoring "Resize" and "Fit Content" options to the "Size" pane) and fixed the way the standalone builder places resource files. Xcode 8.1 and iOS 10.1 support ------------------------------ We added support for deploying iOS 10.1 standalones using Xcode 8.1. When you redeploy your app with LiveCode 8.1.2, you'll also get fixes to the native scroller mobile control, in-app purchasing, and the mobile browser widget. sqlite FTS 5 ------------ revdb's sqlite driver now supports the FTS5 full-text search engine. LiveCode 8.1.2 RC 1 contains 62 bug fixes and stability improvements. The full release notes are available from: http://downloads.livecode.com/livecode/8_1_2/LiveCodeNotes-8_1_2_rc_1.pdf Feedback ======== Please report any bugs encountered on our BugZilla at http://quality.livecode.com/ Have fun! The LiveCode Team From capellan2000 at gmail.com Wed Nov 9 07:46:08 2016 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 9 Nov 2016 07:46:08 -0500 Subject: Pattern Matching in Livecode Message-ID: Hi all, Recently I made a very long script for searching 3 words among a list of 1080 lines of words. Download the zipped stack MatchingPatternsv02 from this forum thread: http://forums.livecode.com/viewtopic.php?f=7&t=28288 I suspect that LiveCode provides better tools for this task, but I don't know which are and how to use them. Maybe a simpler solution is to employ a regex, arrays operation or a really clever handler. How many different methods (functions and commands) provides Livecode to make this task of comparing and finding 3 words (taken from a list of 12 words) among 1080 lines of 4 words? Thanks in advance! Al From james at thehales.id.au Wed Nov 9 08:07:10 2016 From: james at thehales.id.au (James Hale) Date: Thu, 10 Nov 2016 00:07:10 +1100 Subject: Subject: Re: What speed advantage comes from a private handler? Message-ID: <88C5DF12-399E-4185-A451-850B0B4410FC@thehales.id.au> Monte wrote: > Private handlers are called directly rather than giving all the frontscripts a chance to handle them. Thanks Monte, The send and despatch restrictions do not apply in the cases I am considering. These are support handlers and functions outside the main handler within a script library. James From dunbarx at aol.com Wed Nov 9 09:07:56 2016 From: dunbarx at aol.com (dunbarx) Date: Wed, 9 Nov 2016 06:07:56 -0800 (PST) Subject: Pattern Matching in Livecode In-Reply-To: References: Message-ID: <1478700476291-4710232.post@n4.nabble.com> Hi. Long handler? Wouldn't the judicious use of the "wordOffset" function, with a little help from the "words to skip" parameter, do this rather quickly and with just a handful of lines of code? I did not download your stack, but perhaps I am not understanding what you meant? Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Pattern-Matching-in-Livecode-tp4710230p4710232.html Sent from the Revolution - User mailing list archive at Nabble.com. From heather at livecode.com Wed Nov 9 10:12:15 2016 From: heather at livecode.com (Heather Laine) Date: Wed, 9 Nov 2016 15:12:15 +0000 Subject: [Blog] Infinite LiveCode Progress Message-ID: <39EB1612-5EF9-4B51-A705-706A4F459FE9@livecode.com> Dear List Folks, Ali Lloyd has an update for you on the hard work that has been going on behind the scenes on Infinite LiveCode: https://livecode.com/infinite-livecode-java-progress/ Enjoy! Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From pmbrig at gmail.com Wed Nov 9 10:38:39 2016 From: pmbrig at gmail.com (Peter M. Brigham) Date: Wed, 9 Nov 2016 10:38:39 -0500 Subject: Pattern Matching in Livecode In-Reply-To: References: Message-ID: <73478245-EFA6-4A32-ACB6-A800F356208B@gmail.com> On Nov 9, 2016, at 7:46 AM, Alejandro Tejada wrote: > > Hi all, > > Recently I made a very long script for searching 3 words among a list > of 1080 lines of words. > > Download the zipped stack MatchingPatternsv02 > from this forum thread: > http://forums.livecode.com/viewtopic.php?f=7&t=28288 > > I suspect that LiveCode provides better tools for this task, but I > don't know which are and how to use them. Maybe a simpler solution is > to employ a regex, arrays operation or a really clever handler. > > How many different methods (functions and commands) provides Livecode > to make this task of comparing and finding 3 words (taken from a list > of 12 words) among 1080 lines of 4 words? Here?s one way, using some text-munching utility functions. The following is a longish list of handlers, but as you can see the basic function find3words() is pretty compact. Once you have the utilities in place in a library, they can be used in all different kinds of contexts to shortcut things. You might be able to do this with a Regex expression, I don?t know, I?m allergic to Regex. I like to work in pure LC. ? Peter Peter M. Brigham pmbrig at gmail.com -------- ? the following function is not tested: function find3words pList, pWords repeat with w = 1 to 3 put line offsets(word w of pWords,pList) into A[w] end repeat put A[1] into f1 put A[2] into f2 put A[3] into f3 put intersectLIsts(f1,f2) into out1 put intersectLIsts(out1,f3) into outlist ? now have to check that we have found whole items, not just part of a word repeat for each item i in outlist repeat with w = 1 to 3 if not (item w of pWords is among the items of line i of pList) then next repeat put i & comma after finalList end repeat end repeat if finalList = empty then put 0 into finalList return item 1 to -1 of finalList end find3words function lineOffsets str, pContainer, matchWhole -- returns a comma-delimited list of all the lineOffsets of str -- in pContainer -- if matchWhole = true then only whole lines are located -- else finds line matches everywhere str is part of a line in pContainer -- duplicates are stripped out -- note: to get the last lineOffset of a string in a container (often useful) -- use "item -1 of lineOffsets(...)" -- requires offsets() if matchWhole = empty then put false into matchWhole put offsets(str,pContainer) into offList if offList = "0" then return "0" repeat for each item i in offList put the number of lines of (char 1 to i of pContainer) into lineNbr if matchWhole then if line lineNbr of pContainer <> str then next repeat end if put 1 into A[lineNbr] -- using an array avoids duplicates end repeat put the keys of A into lineList sort lines of lineList ascending numeric replace cr with comma in lineList return lineList end lineOffsets function offsets str, pContainer -- returns a comma-delimited list of all the offsets of str in pContainer -- returns 0 if str is not found -- note: offsets("xx","xxxxxx") returns "1,3,5" not "1,2,3,4,5" -- ie, overlapping offsets are not counted -- note: to get the last occurrence of a string in a container (often useful) -- use "item -1 of offsets(...)" if str is not in pContainer then return 0 put 0 into startPoint repeat put offset(str,pContainer,startPoint) into thisOffset if thisOffset = 0 then exit repeat add thisOffset to startPoint put startPoint & comma after offsetList add length(str)-1 to startPoint end repeat return item 1 to -1 of offsetList -- delete trailing comma end offsets function intersectLists listA, listB, pDelim -- returns the intersection of two lists, ie., a list of items/lines common to both -- if pDelim = empty then looks first for the presence of cr in the lists, -- if found, defaults to cr as the delimiter -- if no cr found, looks for the presence of comma in the lists, -- if found, defaults to comma as the delimiter -- if neither found, returns empty (user should have specified another delim) -- order of items may be changed, result may require sorting -- by Peter M. Brigham, pmbrig at gmail.com ? freeware -- the idea of using "split tArray with pDelim and pDelim" -- comes from Peter Hayworth on the use-LC list -- it's very clever! -- requires getDelimiters(), noDupes if listA = empty or listB = empty then return empty if pDelim = empty then if listA & listB contains cr then put cr into pDelim else if listA & listB contains comma then put comma into pDelim else return empty end if end if noDupes listA,pDelim noDupes listB,pDelim put getDelimiters(listA & listB) into tempDelim if tempDelim begins with "Error" then return "Error in getDelimiters()" split listA with pDelim and pDelim split listB with pDelim and pDelim intersect listA with listB combine listA with pDelim and tempDelim replace tempDelim with empty in listA return listA end intersectLists function getDelimiters pText, nbrNeeded -- returns a cr-delimited list of characters -- none of which are found in the variable pText -- use for delimiters for, eg, parsing text files, manipulating arrays, etc. -- usage: put getDelimiters(pText,2) into tDelims -- if tDelims begins with "Error" then exit to top -- or whatever -- put line 1 of tDelims into lineDivider -- put line 2 of tDelims into itemDivider -- etc. if pText = empty then return "Error: no text specified." if nbrNeeded = empty then put 1 into nbrNeeded -- default 1 delimiter put "2,3,4,5,6,7,8,16,17,18,19,20,21,22,23,24,25,26" into baseList -- low ASCII values, excluding CR, LF, tab, etc. put the number of items of baseList into maxNbr if nbrNeeded > maxNbr then return "Error: max" && maxNbr && "delimiters." repeat for each item testCharNbr in baseList put numtochar(testCharNbr) into testChar if testChar is not in pText then -- found one, store and get next delim put testChar & cr after delimList if the number of lines of delimList = nbrNeeded then return line 1 to -1 of delimList -- done end if end repeat -- if we got this far, there was an error put the number of lines of delimList into totalFound if totalFound = 0 then return "Error: cannot get any delimiters." else if totalFound = 1 then return "Error: can only get 1 delimiter." else return "Error: can only get" && totalFound && "delimiters." end if end getDelimiters on noDupes @pList, pDelim -- strips duplicate (and empty) lines/items from a list -- note: pList is referenced, so the original list will be changed. -- if pDelim = empty then looks first for the presence of cr in pList, -- if found, defaults to cr as the delimiter -- if no cr found, looks for the presence of comma in pList, -- if found, defaults to comma as the delimiter -- if neither found, exits without changing pList -- (user should have specified another delim) -- note: the order of the list will likely be changed, may require sorting -- note: the split command is inherently case-sensitive -- (irrespective of the value of the caseSensitive property), -- so "Chuck" and "chuck" will not be considered duplicates -- if you need case insensitive, use the noDupes() function instead -- this command scales better with very large lists than noDupes() -- note: pDelim could be a string of characters, so you could do: -- put "apple and orange and pear and orange and banana and apple" into pList -- noDupes pList," and " -- after which pList will be: "pear and banana and apple and orange" -- thanks to Peter Hayworth of the use-LC mailing list -- -- the idea of using "split tArray with pDelim and pDelim" is very clever! -- adjusted by Peter M. Brigham, pmbrig at gmail.com -- requires getDelimiters() if pDelim = empty then if cr is in pList then put cr into pDelim else if comma is in pList then put comma into pDelim else answer "noDupes: no delimiter specified" as sheet exit noDupes end if end if put getDelimiters(pList) into tempDelim replace pDelim with tempDelim in pList split pList by tempDelim and tempDelim put the keys of pList into pList filter pList without empty replace cr with pDelim in pList end noDupes From bobsneidar at iotecdigital.com Wed Nov 9 11:09:55 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 9 Nov 2016 16:09:55 +0000 Subject: [ANN] Release 8.1.2 RC-1 In-Reply-To: References: Message-ID: Nice! Bob S > On Nov 9, 2016, at 03:43 , Peter TB Brett wrote: > > Dear list members, > > We are pleased to announce the release of LiveCode 8.1.2 RC 1. > > Getting the Release > =================== > You can get the release at https://downloads.livecode.com/livecode/ or via the automatic updater. > > > Release Contents > ================ > Fewer crashes > ------------- > LiveCode was sometimes accessing objects after they had been deleted, getting seriously upset as a result. We rewrote a large chunk of the LiveCode engine to stop it from doing that. We've created mechanisms that will help us detect and fix issues like this more easily. > > IDE improvements > ---------------- > We resolved several minor but irritating bugs in the IDE and standalone builder. The tools palette and selection handles work more nicely, the debugger can watch global variables, we tweaked the property inspector user interface (including restoring "Resize" and "Fit Content" options to the "Size" pane) and fixed the way the standalone builder places resource files. > > Xcode 8.1 and iOS 10.1 support > ------------------------------ > We added support for deploying iOS 10.1 standalones using Xcode 8.1. When you redeploy your app with LiveCode 8.1.2, you'll also get fixes to the native scroller mobile control, in-app purchasing, and the mobile browser widget. > > sqlite FTS 5 > ------------ > revdb's sqlite driver now supports the FTS5 full-text search engine. > > > LiveCode 8.1.2 RC 1 contains 62 bug fixes and stability > improvements. > > The full release notes are available from: > http://downloads.livecode.com/livecode/8_1_2/LiveCodeNotes-8_1_2_rc_1.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 bobsneidar at iotecdigital.com Wed Nov 9 11:13:05 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 9 Nov 2016 16:13:05 +0000 Subject: Subject: Re: What speed advantage comes from a private handler? In-Reply-To: <88C5DF12-399E-4185-A451-850B0B4410FC@thehales.id.au> References: <88C5DF12-399E-4185-A451-850B0B4410FC@thehales.id.au> Message-ID: Oh! I thought private handlers were ones only accessible by handlers in the same script. Bob S > On Nov 9, 2016, at 05:07 , James Hale wrote: > > Monte wrote: >> Private handlers are called directly rather than giving all the frontscripts a chance to handle them. > > Thanks Monte, > > The send and despatch restrictions do not apply in the cases I am considering. > These are support handlers and functions outside the main handler within a script library. > > 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 peter.brett at livecode.com Wed Nov 9 11:18:59 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Wed, 9 Nov 2016 16:18:59 +0000 Subject: Subject: Re: What speed advantage comes from a private handler? In-Reply-To: References: <88C5DF12-399E-4185-A451-850B0B4410FC@thehales.id.au> Message-ID: <46f06d32-6007-a3cf-7ab2-25574029d7a0@livecode.com> On 09/11/2016 16:13, Bob Sneidar wrote: > Oh! I thought private handlers were ones only accessible by handlers in the same script. Private handlers are indeed only accessible by handlers in the same script. Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From bobsneidar at iotecdigital.com Wed Nov 9 11:18:58 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 9 Nov 2016 16:18:58 +0000 Subject: What speed advantage comes from a private handler? In-Reply-To: <973f9437-f3a8-4171-e39f-e429777755bb@pdslabs.net> References: <8CCAF70D-ABB1-46B8-86C3-A470252B984A@thehales.id.au> <52DBEEF6-97B4-4163-AD2C-C768C5A31B50@appisle.net> <89949189-DF39-4A26-864C-B51469C17F95@appisle.net> <5789b0fa-10c2-d1fe-1daa-113eb4c2be87@pdslabs.net> <1AC62CF3-16B5-4247-8195-06FFA224F43A@appisle.net> <973f9437-f3a8-4171-e39f-e429777755bb@pdslabs.net> Message-ID: <458808DE-D508-42E6-BD5F-9A585D2B5060@iotecdigital.com> I wasn't familiar with the dispatch function form. It's not in the dictionary. Do you have to use this form when dispatching to functions? Bob S On Nov 8, 2016, at 17:44 , Phil Davis > wrote: function app_helperAppPath pAppName dispatch function ( "_helperAppPath_" & the platform ) to me with pAppName return the result end app_helperAppPath From revdev at pdslabs.net Wed Nov 9 11:54:52 2016 From: revdev at pdslabs.net (Phil Davis) Date: Wed, 9 Nov 2016 08:54:52 -0800 Subject: What speed advantage comes from a private handler? In-Reply-To: <458808DE-D508-42E6-BD5F-9A585D2B5060@iotecdigital.com> References: <8CCAF70D-ABB1-46B8-86C3-A470252B984A@thehales.id.au> <52DBEEF6-97B4-4163-AD2C-C768C5A31B50@appisle.net> <89949189-DF39-4A26-864C-B51469C17F95@appisle.net> <5789b0fa-10c2-d1fe-1daa-113eb4c2be87@pdslabs.net> <1AC62CF3-16B5-4247-8195-06FFA224F43A@appisle.net> <973f9437-f3a8-4171-e39f-e429777755bb@pdslabs.net> <458808DE-D508-42E6-BD5F-9A585D2B5060@iotecdigital.com> Message-ID: <95f09246-2333-6ea4-cd83-2c590bb5103c@pdslabs.net> Yes. Phil On 11/9/16 8:18 AM, Bob Sneidar wrote: > I wasn't familiar with the dispatch function form. It's not in the dictionary. Do you have to use this form when dispatching to functions? > > Bob S > > > On Nov 8, 2016, at 17:44 , Phil Davis > wrote: > > function app_helperAppPath pAppName > dispatch function ( "_helperAppPath_" & the platform ) to me with pAppName > return the result > end app_helperAppPath > > _______________________________________________ > use-livecode mailing list > use-livecode 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 smudge.andy at googlemail.com Wed Nov 9 11:59:47 2016 From: smudge.andy at googlemail.com (AndyP) Date: Wed, 9 Nov 2016 08:59:47 -0800 (PST) Subject: [ANN] Release 8.1.2 RC-1 In-Reply-To: References: Message-ID: <1478710787224-4710240.post@n4.nabble.com> Great work, lots of bugs squashed! unfortunately a new serious bug has emerged. using Cut on an object always crashes the IDE >Win 10 http://quality.livecode.com/show_bug.cgi?id=18810 ----- Andy Piddock My software never has bugs. It just develops random features. Copy the new cloud space, get your free 15GB space now: Get Copy 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 -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-Release-8-1-2-RC-1-tp4710229p4710240.html Sent from the Revolution - User mailing list archive at Nabble.com. From rdimola at evergreeninfo.net Wed Nov 9 12:42:24 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 9 Nov 2016 12:42:24 -0500 Subject: Duplicating a card in v8 In-Reply-To: <158453e36d8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <005501d239e6$32a3e9b0$97ebbd10$@net> <17E71EAB-BB8D-4831-B299-5B25DD660E8A@andrew.cmu.edu> <158453e36d8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <003d01d23ab0$a1e61030$e5b23090$@net> J, Thanks! That's a sweet workaround but is so easy that it's now in my basket of command line thingies that will bypasses mouse clicks. I filed bug report 18811. 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 J. Landman Gay Sent: Tuesday, November 08, 2016 1:41 PM To: How to use LiveCode Subject: Re: property inspector lock The easiest way, without a menu item, is from the message box: "clone this card". Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 8, 2016 11:36:12 AM Marc Siskin wrote: > Ralph, > > Does typing ?Copy this card to this stack? work in the message box? > > Marc > On Nov 8, 2016, at 12:33 PM, Ralph DiMola > > wrote: > > How does one duplicate a card in v8? I can't seem to select a card in > the IDE. "duplicate card" is no longer displayed. I guess this have > been replaced by the "duplicate" text. If I select the card in the > property inspector the copy and duplicate edit options are grayed out. > Also after selecting the card in the property inspector the click on > the code button the stack script not the card script is opened. What > am I missing here? How do I select a card? > > Thanks > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > --------------- > Marc Siskin > Manager, Modern Language Resource Center Carnegie Mellon University > msiskin at andrew.cmu.edu > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at 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 livecode.org Wed Nov 9 13:17:00 2016 From: paul at livecode.org (Paul Hibbert) Date: Wed, 9 Nov 2016 10:17:00 -0800 Subject: [ANN] Release 8.1.2 RC-1 In-Reply-To: <1478710787224-4710240.post@n4.nabble.com> References: <1478710787224-4710240.post@n4.nabble.com> Message-ID: Same problem on Mac OSX 10.12.1 too, so I have added to your bug report. Paul > On Nov 9, 2016, at 8:59 AM, AndyP wrote: > > Great work, lots of bugs squashed! > > unfortunately a new serious bug has emerged. > > using Cut on an object always crashes the IDE >Win 10 > > http://quality.livecode.com/show_bug.cgi?id=18810 > > > > > > > ----- > Andy Piddock > > > My software never has bugs. It just develops random features. > > Copy the new cloud space, get your free 15GB space now: > Get Copy > > > 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 > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-Release-8-1-2-RC-1-tp4710229p4710240.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Wed Nov 9 13:24:08 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 9 Nov 2016 13:24:08 -0500 Subject: [ANN] Release 8.1.2 RC-1 In-Reply-To: <1478710787224-4710240.post@n4.nabble.com> References: <1478710787224-4710240.post@n4.nabble.com> Message-ID: <003e01d23ab6$7676c600$63645200$@net> >Andy P wrote: >Great work, lots of bugs squashed! +1 I found another IDE crash when doing an "Open Card" on Win 10. http://quality.livecode.com/show_bug.cgi?id=18812 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 AndyP Sent: Wednesday, November 09, 2016 12:00 PM To: use-revolution at lists.runrev.com Subject: Re: [ANN] Release 8.1.2 RC-1 Great work, lots of bugs squashed! unfortunately a new serious bug has emerged. using Cut on an object always crashes the IDE >Win 10 http://quality.livecode.com/show_bug.cgi?id=18810 ----- Andy Piddock My software never has bugs. It just develops random features. Copy the new cloud space, get your free 15GB space now: Get Copy 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 -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-Release-8-1-2-RC-1-tp4710 229p4710240.html Sent from the Revolution - User mailing list archive at Nabble.com. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Wed Nov 9 13:24:08 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 9 Nov 2016 13:24:08 -0500 Subject: [ANN] Release 8.1.2 RC-1 In-Reply-To: <1478710787224-4710240.post@n4.nabble.com> References: <1478710787224-4710240.post@n4.nabble.com> Message-ID: <003e01d23ab6$7676c600$63645200$@net> >Andy P wrote: >Great work, lots of bugs squashed! +1 I found another IDE crash when doing an "Open Card" on Win 10. http://quality.livecode.com/show_bug.cgi?id=18812 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 AndyP Sent: Wednesday, November 09, 2016 12:00 PM To: use-revolution at lists.runrev.com Subject: Re: [ANN] Release 8.1.2 RC-1 Great work, lots of bugs squashed! unfortunately a new serious bug has emerged. using Cut on an object always crashes the IDE >Win 10 http://quality.livecode.com/show_bug.cgi?id=18810 ----- Andy Piddock My software never has bugs. It just develops random features. Copy the new cloud space, get your free 15GB space now: Get Copy 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 -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-Release-8-1-2-RC-1-tp4710 229p4710240.html Sent from the Revolution - User mailing list archive at Nabble.com. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Wed Nov 9 14:31:42 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 9 Nov 2016 14:31:42 -0500 Subject: [ANN] Release 8.1.2 RC-1 In-Reply-To: <003e01d23ab6$7676c600$63645200$@net> References: <1478710787224-4710240.post@n4.nabble.com> <003e01d23ab6$7676c600$63645200$@net> Message-ID: Well, maybe I won't move up, just yet. On Wed, Nov 9, 2016 at 1:24 PM, Ralph DiMola wrote: > >Andy P wrote: > >Great work, lots of bugs squashed! > > +1 > > I found another IDE crash when doing an "Open Card" on Win 10. > > http://quality.livecode.com/show_bug.cgi?id=18812 > > 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 AndyP > Sent: Wednesday, November 09, 2016 12:00 PM > To: use-revolution at lists.runrev.com > Subject: Re: [ANN] Release 8.1.2 RC-1 > > Great work, lots of bugs squashed! > > unfortunately a new serious bug has emerged. > > using Cut on an object always crashes the IDE >Win 10 > > http://quality.livecode.com/show_bug.cgi?id=18810 > > > > > > > ----- > Andy Piddock > > > My software never has bugs. It just develops random features. > > Copy the new cloud space, get your free 15GB space now: > Get Copy > > > 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 > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/ANN- > Release-8-1-2-RC-1-tp4710 > 229p4710240.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Wed Nov 9 15:19:20 2016 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 9 Nov 2016 15:19:20 -0500 Subject: Pattern Matching in Livecode Message-ID: Hi Craig, Your clever idea of reverting search terms works great too. Many Thanks for answering my request! :D I have posted a new stack and a screenshot at the forum thread: http://forums.livecode.com/viewtopic.php?f=7&t=28288 on mouseUp put fld id 1008 into WL -- 12 words put fld id 1014 into SC -- 1080 combinations repeat for each line Q in SC if lineoffset(word 1 of Q,WL) <> 0 and \ lineoffset(word 2 of Q,WL) <> 0 and \ lineoffset(word 3 of Q,WL) <> 0 then put word 1 to 3 of Q & return after tCombinations end if end repeat if the number of words of tCombinations > 2 then -- delete last char of tCombinations -- a CR character sort numeric descending tCombinations put word 1 to -1 of tCombinations into fld id 1025 else put "No matching set found" into fld id 1025 end if end mouseUp Still, I am curious to learn if regex and arrays operations could produce the same results but faster. Have a nice week! Al From capellan2000 at gmail.com Wed Nov 9 15:25:25 2016 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 9 Nov 2016 15:25:25 -0500 Subject: Pattern Matching in Livecode Message-ID: Just noticed that Peter and Hermann posted handlers too. I will update the stack and post a new version in a few minutes. :D Al From sritcp at gmail.com Wed Nov 9 17:48:25 2016 From: sritcp at gmail.com (Sri) Date: Wed, 9 Nov 2016 14:48:25 -0800 (PST) Subject: 8 datagrid text properties In-Reply-To: References: Message-ID: <1478731705633-4710247.post@n4.nabble.com> Hi Mike: Have you consulted the DataGrid help document (or dictionary)? set the dgProp["Property Name"] of group "DataGrid Name" to thePropertyValue where you have a slew of properties you can set: "header height" "header margins" "header text color" "header text font" "header text style" "header text size" "header background color" "header background hilite color" etc. Similarly to set the properties of body text, you have "text color" "text font" "text style" "text size" "hilited text color" etc. I tested. They work in LC8. Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/8-datagrid-text-properties-tp4710203p4710247.html Sent from the Revolution - User mailing list archive at Nabble.com. From james at thehales.id.au Wed Nov 9 18:22:43 2016 From: james at thehales.id.au (James Hale) Date: Thu, 10 Nov 2016 10:22:43 +1100 Subject: Subject: Re: Subject: Re: What speed advantage comes from a private handler? Message-ID: <756CB933-4C95-4855-9063-C03D8840CD90@thehales.id.au> > > Oh! I thought private handlers were ones only accessible by handlers in the same script They are. Perhaps my expression was clumsy. James From brahma at hindu.org Wed Nov 9 21:35:29 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 10 Nov 2016 02:35:29 +0000 Subject: 8.1.1 can't get URL? (somewhat urgent) Message-ID: <3CFB2A3F-1C37-45EC-8C57-A41FB53FD30C@hindu.org> 8.1.1 GM put url "https://www.himalayanacademy.com/ping.txt" is returning: Message execution error: Error description: Function: error in function handler Hint: ulExtIsBlocked what's happening? From lan.kc.macmail at gmail.com Wed Nov 9 21:39:05 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 10 Nov 2016 10:39:05 +0800 Subject: 8.1.1 can't get URL? (somewhat urgent) In-Reply-To: <3CFB2A3F-1C37-45EC-8C57-A41FB53FD30C@hindu.org> References: <3CFB2A3F-1C37-45EC-8C57-A41FB53FD30C@hindu.org> Message-ID: I get: true OS X 10.11.6 LG 8.1.1 GM Have you tried in your browser? On Thu, Nov 10, 2016 at 10:35 AM, Sannyasin Brahmanathaswami wrote: > 8.1.1 GM > > put url "https://www.himalayanacademy.com/ping.txt" > > is returning: > > Message execution error: > Error description: Function: error in function handler > Hint: ulExtIsBlocked > > what's happening? > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Nov 9 21:49:24 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 10 Nov 2016 02:49:24 +0000 Subject: 8.1.1 can't get URL? (somewhat urgent) In-Reply-To: References: <3CFB2A3F-1C37-45EC-8C57-A41FB53FD30C@hindu.org> Message-ID: <8A24501B-561C-4E2F-A89E-5F8ABC745757@hindu.org> Yes, it works in a browser. are you using community, Indy or Business? I have a business licensed version of 8.1.1 I wonder if that is the issue? Oh wait? never mind? I rebooted LC and now it works.. this goes the on going problem of the IDE slowly "degrading" over time? all kinds of bad stuff starts happening if I don?t reboot it periodically. Svasti Astu, Be Well Brahmanathaswami www.himalayanacademy.com On 11/9/16, 4:39 PM, "use-livecode on behalf of Kay C Lan" wrote: I get: true OS X 10.11.6 LG 8.1.1 GM Have you tried in your browser? On Thu, Nov 10, 2016 at 10:35 AM, Sannyasin Brahmanathaswami wrote: >8.1.1 GM > >put url "https://www.himalayanacademy.com/ping.txt" > >is returning: > >Message execution error: >Error description: Function: error in function handler >Hint: ulExtIsBlocked > >what's happening? From lan.kc.macmail at gmail.com Wed Nov 9 21:51:53 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 10 Nov 2016 10:51:53 +0800 Subject: 8.1.1 can't get URL? (somewhat urgent) In-Reply-To: <8A24501B-561C-4E2F-A89E-5F8ABC745757@hindu.org> References: <3CFB2A3F-1C37-45EC-8C57-A41FB53FD30C@hindu.org> <8A24501B-561C-4E2F-A89E-5F8ABC745757@hindu.org> Message-ID: Glad you got it working. Yes, unfortunately Restarting LC is a reflex reaction now. On Thu, Nov 10, 2016 at 10:49 AM, Sannyasin Brahmanathaswami wrote: > Yes, it works in a browser. > > are you using community, Indy or Business? > > I have a business licensed version of 8.1.1 I wonder if that is the issue? > > Oh wait? never mind? I rebooted LC and now it works.. > > this goes the on going problem of the IDE slowly "degrading" over time? all kinds of bad stuff starts happening if I don?t reboot it periodically. > > > Svasti Astu, Be Well > Brahmanathaswami > > www.himalayanacademy.com > > > > On 11/9/16, 4:39 PM, "use-livecode on behalf of Kay C Lan" wrote: > > I get: > > true > > OS X 10.11.6 LG 8.1.1 GM > > Have you tried in your browser? > > On Thu, Nov 10, 2016 at 10:35 AM, Sannyasin Brahmanathaswami > wrote: > >8.1.1 GM > > > >put url "https://www.himalayanacademy.com/ping.txt" > > > >is returning: > > > >Message execution error: > >Error description: Function: error in function handler > >Hint: ulExtIsBlocked > > > >what's happening? > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Nov 9 21:57:28 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 10 Nov 2016 02:57:28 +0000 Subject: 8.1.1 can't get URL? (somewhat urgent) In-Reply-To: References: <3CFB2A3F-1C37-45EC-8C57-A41FB53FD30C@hindu.org> <8A24501B-561C-4E2F-A89E-5F8ABC745757@hindu.org> Message-ID: <486E03ED-9D0C-4F2C-824A-D4805B7856FD@hindu.org> Ouch! after rebooting and running just for a few minutes suddenly now again put url https://www.himalayanacademy.com/ping.txt result: Message execution error: Error description: Function: error in function handler Hint: ulExtIsBlocked ! Something is triggering the libURL or TSNet to choke BR let me try 8.1.2 RC 1 On 11/9/16, 4:51 PM, "use-livecode on behalf of Kay C Lan" wrote: Glad you got it working. Yes, unfortunately Restarting LC is a reflex reaction now. On Thu, Nov 10, 2016 at 10:49 AM, Sannyasin Brahmanathaswami wrote: >Yes, it works in a browser. > >are you using community, Indy or Business? > >I have a business licensed version of 8.1.1 I wonder if that is the issue? > >Oh wait? never mind? I rebooted LC and now it works.. > >this goes the on going problem of the IDE slowly "degrading" over time? all kinds of bad stuff starts happening if I don?t reboot it periodically. > > >Svasti Astu, Be Well >Brahmanathaswami > >www.himalayanacademy.com > From charles at techstrategies.com.au Wed Nov 9 22:18:31 2016 From: charles at techstrategies.com.au (Charles Warwick) Date: Thu, 10 Nov 2016 13:18:31 +1000 Subject: 8.1.1 can't get URL? (somewhat urgent) In-Reply-To: <486E03ED-9D0C-4F2C-824A-D4805B7856FD@hindu.org> References: <3CFB2A3F-1C37-45EC-8C57-A41FB53FD30C@hindu.org> <8A24501B-561C-4E2F-A89E-5F8ABC745757@hindu.org> <486E03ED-9D0C-4F2C-824A-D4805B7856FD@hindu.org> Message-ID: <928c942a-4ccf-e31d-a182-d06ce9abb3c9@techstrategies.com.au> What happens if you type: put ulExtIsBlocked() into the message box? Maybe something is unloading the tsNetLibUrl library. Can you confirm that stack is loaded? On 10/11/2016 12:57 PM, Sannyasin Brahmanathaswami wrote: > Ouch! after rebooting and running just for a few minutes suddenly now again > > put url https://www.himalayanacademy.com/ping.txt > > result: > > Message execution error: > Error description: Function: error in function handler > Hint: ulExtIsBlocked > > ! > > Something is triggering the libURL or TSNet to choke > > BR > > let me try 8.1.2 RC 1 > > > > On 11/9/16, 4:51 PM, "use-livecode on behalf of Kay C Lan" wrote: > > Glad you got it working. > > Yes, unfortunately Restarting LC is a reflex reaction now. > > On Thu, Nov 10, 2016 at 10:49 AM, Sannyasin Brahmanathaswami > wrote: > >Yes, it works in a browser. > > > >are you using community, Indy or Business? > > > >I have a business licensed version of 8.1.1 I wonder if that is the issue? > > > >Oh wait? never mind? I rebooted LC and now it works.. > > > >this goes the on going problem of the IDE slowly "degrading" over time? all kinds of bad stuff starts happening if I don?t reboot it periodically. > > > > > >Svasti Astu, Be Well > >Brahmanathaswami > > > >www.himalayanacademy.com > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Thu Nov 10 08:46:05 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 10 Nov 2016 08:46:05 -0500 Subject: 8 datagrid text properties In-Reply-To: <1478731705633-4710247.post@n4.nabble.com> References: <1478731705633-4710247.post@n4.nabble.com> Message-ID: Sorry, I meant in the PI, not in LCS. Yes, I'm well aware of how to warp DG's in LCS On Wed, Nov 9, 2016 at 5:48 PM, Sri wrote: > Hi Mike: > > Have you consulted the DataGrid help document (or dictionary)? > > set the dgProp["Property Name"] of group "DataGrid Name" to > thePropertyValue > > where you have a slew of properties you can set: > "header height" > "header margins" > "header text color" > "header text font" > "header text style" > "header text size" > "header background color" > "header background hilite color" > etc. > > Similarly to set the properties of body text, you have > "text color" > "text font" > "text style" > "text size" > "hilited text color" > etc. > > I tested. They work in LC8. > > Regards, > Sri > > > > > > -- > View this message in context: http://runtime-revolution. > 278305.n4.nabble.com/8-datagrid-text-properties-tp4710203p4710247.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- 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 dochawk at gmail.com Thu Nov 10 16:16:30 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 10 Nov 2016 13:16:30 -0800 Subject: margins ignored in formattedHeight for 8? Message-ID: Is 8 ignoring margins in calculating formattedHeight? Placing a single line of text into a field, which is Helvitica Bold size 9, and margins of 0,6,0,0, it manages to return a formattedHeight of 7 when checking . . . uhh . . . . Am I missing something here? This worked for years in 5/7 for years; now I am having to add the topMargin explicitly, with timers (if the seconds > something then breakpoint) to remember to take them back out. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From jacque at hyperactivesw.com Thu Nov 10 16:39:06 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 10 Nov 2016 15:39:06 -0600 Subject: margins ignored in formattedHeight for 8? In-Reply-To: References: Message-ID: <76bbdee2-b243-4b38-3a00-ae152c05f398@hyperactivesw.com> Interesting...I'm working with formattedheight today too. I have a field placed under an image where it can't be seen. It slides down sometimes and moves everything below it down to accomodate. When I get the formattedheight of the group the controls are in, it returns the same number regardless of whether the field is under the image or below it. Something's odd. LC 8.1.1. On 11/10/16 3:16 PM, Dr. Hawkins wrote: > Is 8 ignoring margins in calculating formattedHeight? > > Placing a single line of text into a field, which is Helvitica Bold size 9, > and margins of 0,6,0,0, it manages to return a formattedHeight of 7 when > checking . . . > > uhh . . . . > > Am I missing something here? > > This worked for years in 5/7 for years; now I am having to add the > topMargin explicitly, with timers (if the seconds > something then > breakpoint) to remember to take them back out. > > > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From brahma at hindu.org Thu Nov 10 21:28:18 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 11 Nov 2016 02:28:18 +0000 Subject: 8.1.1 can't get URL? (somewhat urgent) In-Reply-To: <928c942a-4ccf-e31d-a182-d06ce9abb3c9@techstrategies.com.au> References: <3CFB2A3F-1C37-45EC-8C57-A41FB53FD30C@hindu.org> <8A24501B-561C-4E2F-A89E-5F8ABC745757@hindu.org> <486E03ED-9D0C-4F2C-824A-D4805B7856FD@hindu.org> <928c942a-4ccf-e31d-a182-d06ce9abb3c9@techstrategies.com.au> Message-ID: Next day, Thursday?I can't reproduce this today? BR On 11/9/16, 5:18 PM, "use-livecode on behalf of Charles Warwick" wrote: What happens if you type: put ulExtIsBlocked() into the message box? Maybe something is unloading the tsNetLibUrl library. Can you confirm that stack is loaded? On 10/11/2016 12:57 PM, Sannyasin Brahmanathaswami wrote: >Ouch! after rebooting and running just for a few minutes suddenly now again > >put url https://www.himalayanacademy.com/ping.txt > >result: > >Message execution error: >Error description: Function: error in function handler >Hint: ulExtIsBlocked > >! > >Something is triggering the libURL or TSNet to choke > >BR From bobsneidar at iotecdigital.com Fri Nov 11 11:18:50 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 11 Nov 2016 16:18:50 +0000 Subject: Offset bug fixed in 8.1.2 rc1 Message-ID: I've confirmed the offset bug is resolved. set the itemDelimiter to "|" set wholematches to true put "|123|456|" into tContactType put itemOffset("456", tContactType) will return 3. Prior to the fix it would return 0. Bob S From dochawk at gmail.com Fri Nov 11 12:24:34 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 11 Nov 2016 09:24:34 -0800 Subject: margins ignored in formattedHeight for 8? In-Reply-To: <76bbdee2-b243-4b38-3a00-ae152c05f398@hyperactivesw.com> References: <76bbdee2-b243-4b38-3a00-ae152c05f398@hyperactivesw.com> Message-ID: On Thu, Nov 10, 2016 at 1:39 PM, J. Landman Gay wrote: > Interesting...I'm working with formattedheight today too. I have a field > placed under an image where it can't be seen. It slides down sometimes and > moves everything below it down to accomodate. When I get the > formattedheight of the group the controls are in, it returns the same > number regardless of whether the field is under the image or below it. I just filed as *Bug 18832* - margins not included in formattedHeight on field (edit ) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From bobsneidar at iotecdigital.com Fri Nov 11 21:18:58 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 12 Nov 2016 02:18:58 +0000 Subject: Moving Groups Bug Message-ID: <695A6612-D7FF-40BF-A89D-27A532B1B630@iotecdigital.com> Not sure if this is a bug actually. I recently selected a data grid and moved it back one level, and it disappeared! Select Grouped was off. I discovered my errant datagrid had been added to the group one level back, and because the boundaries of that group did not encompass the data grid, and the size and position were locked, it "appeared to disappear". Is this what is supposed to happen?? If so, then BOOOO!!! It's my humble opinion that nothing should be added to a group unless I explicitly tell it to be. Moving an object backwards and forwards should only happen within the group the object is in, or else outside of any group. What think ye? Bob S From revdev at pdslabs.net Fri Nov 11 21:39:18 2016 From: revdev at pdslabs.net (Phil Davis) Date: Fri, 11 Nov 2016 18:39:18 -0800 Subject: Moving Groups Bug In-Reply-To: <695A6612-D7FF-40BF-A89D-27A532B1B630@iotecdigital.com> References: <695A6612-D7FF-40BF-A89D-27A532B1B630@iotecdigital.com> Message-ID: <318216fc-4b3d-7fb4-8d5e-68488483a29d@pdslabs.net> Sounds to me like 'relayerGroupedControls' may have been set to true? Otherwise I can't imagine it would be swallowed whole by the next lower-layer group. Phil Davis On 11/11/16 6:18 PM, Bob Sneidar wrote: > Not sure if this is a bug actually. I recently selected a data grid and moved it back one level, and it disappeared! Select Grouped was off. I discovered my errant datagrid had been added to the group one level back, and because the boundaries of that group did not encompass the data grid, and the size and position were locked, it "appeared to disappear". > > Is this what is supposed to happen?? If so, then BOOOO!!! It's my humble opinion that nothing should be added to a group unless I explicitly tell it to be. Moving an object backwards and forwards should only happen within the group the object is in, or else outside of any group. > > What think ye? > > 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 > -- Phil Davis From bobsneidar at iotecdigital.com Fri Nov 11 23:09:37 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 12 Nov 2016 04:09:37 +0000 Subject: Moving Groups Bug In-Reply-To: <318216fc-4b3d-7fb4-8d5e-68488483a29d@pdslabs.net> References: <695A6612-D7FF-40BF-A89D-27A532B1B630@iotecdigital.com> <318216fc-4b3d-7fb4-8d5e-68488483a29d@pdslabs.net> Message-ID: <3526E8E7-9401-4667-BEBD-D0A39FC3DDC5@iotecdigital.com> Nope it's false. Just checked. Bob S > On Nov 11, 2016, at 18:39 , Phil Davis wrote: > > Sounds to me like 'relayerGroupedControls' may have been set to true? Otherwise I can't imagine it would be swallowed whole by the next lower-layer group. > > Phil Davis > > > > On 11/11/16 6:18 PM, Bob Sneidar wrote: >> Not sure if this is a bug actually. I recently selected a data grid and moved it back one level, and it disappeared! Select Grouped was off. I discovered my errant datagrid had been added to the group one level back, and because the boundaries of that group did not encompass the data grid, and the size and position were locked, it "appeared to disappear". >> >> Is this what is supposed to happen?? If so, then BOOOO!!! It's my humble opinion that nothing should be added to a group unless I explicitly tell it to be. Moving an object backwards and forwards should only happen within the group the object is in, or else outside of any group. >> >> What think ye? >> >> 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 >> > > -- > Phil Davis > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sat Nov 12 01:52:49 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 12 Nov 2016 00:52:49 -0600 Subject: Moving Groups Bug In-Reply-To: <3526E8E7-9401-4667-BEBD-D0A39FC3DDC5@iotecdigital.com> References: <695A6612-D7FF-40BF-A89D-27A532B1B630@iotecdigital.com> <318216fc-4b3d-7fb4-8d5e-68488483a29d@pdslabs.net> <3526E8E7-9401-4667-BEBD-D0A39FC3DDC5@iotecdigital.com> Message-ID: <2b4724bb-c4aa-298d-6390-8eb5e8605d4b@hyperactivesw.com> Were you using the Project Browser? I thought I'd try it because the app browser doesn't offer drag-relayering, but the same thing happened to me when I dragged a control upwards. It popped into the group above it in the list. On 11/11/16 10:09 PM, Bob Sneidar wrote: > Nope it's false. Just checked. > > Bob S > > >> On Nov 11, 2016, at 18:39 , Phil Davis wrote: >> >> Sounds to me like 'relayerGroupedControls' may have been set to true? Otherwise I can't imagine it would be swallowed whole by the next lower-layer group. >> >> Phil Davis >> >> >> >> On 11/11/16 6:18 PM, Bob Sneidar wrote: >>> Not sure if this is a bug actually. I recently selected a data grid and moved it back one level, and it disappeared! Select Grouped was off. I discovered my errant datagrid had been added to the group one level back, and because the boundaries of that group did not encompass the data grid, and the size and position were locked, it "appeared to disappear". >>> >>> Is this what is supposed to happen?? If so, then BOOOO!!! It's my humble opinion that nothing should be added to a group unless I explicitly tell it to be. Moving an object backwards and forwards should only happen within the group the object is in, or else outside of any group. >>> >>> What think ye? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From janschenkel at yahoo.com Sat Nov 12 10:09:24 2016 From: janschenkel at yahoo.com (Jan Schenkel) Date: Sat, 12 Nov 2016 15:09:24 +0000 (UTC) Subject: [OT] Quartum PDF Library - How to change text color of a cell in a table? References: <162661478.2360823.1478963364007.ref@mail.yahoo.com> Message-ID: <162661478.2360823.1478963364007@mail.yahoo.com> Hi Roger, Sorry for the late reply - I was at the Devoxx conference this past week and am only now wading through my email backlog. As you found out, the qrtPDF_WriteTextTable command doesn't currently offer a way to influence the formatting for an individual cell. It was designed for single formatting, and adding a callback function to let you influence the formatting per cell means it will need some refactoring. After all, if you were to change not only the colour but also the font style or size, the calculation of the row heights becomes a lot more complex. That is not to say that the idea is too hard to pursue, but it will take time to get it 'right' under all circumstances. In the meantime, you can build the table with separate qrtPDF_WriteTextBox commands, as demonstrated in Example 4 of the script demos stack. If you need a hand with that, feel free to post on the Quartam forums at or email me directly. Best regards, Jan Schenkel. ===== Quartam Reports & PDF Library for LiveCode www.quartam.com ===== "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) -------------------------------------------- On Mon, 11/7/16, Roger Eller wrote: Subject: [OT] Quartum PDF Library - How to change text color of a cell in a table? To: "How to use LiveCode" Date: Monday, November 7, 2016, 9:41 PM I am using Jan Shenkel's PDF Library in a project, and need to display negative numbers in a table in red. It seems to be possible to affect the entire table, but how can I apply color commands to a specific cell? TIA, ~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 MikeKerner at roadrunner.com Sat Nov 12 14:13:59 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 12 Nov 2016 14:13:59 -0500 Subject: Moving Groups Bug In-Reply-To: <2b4724bb-c4aa-298d-6390-8eb5e8605d4b@hyperactivesw.com> References: <695A6612-D7FF-40BF-A89D-27A532B1B630@iotecdigital.com> <318216fc-4b3d-7fb4-8d5e-68488483a29d@pdslabs.net> <3526E8E7-9401-4667-BEBD-D0A39FC3DDC5@iotecdigital.com> <2b4724bb-c4aa-298d-6390-8eb5e8605d4b@hyperactivesw.com> Message-ID: I've run into a number of issues in 8 with groups, especially datagrids. 1. The PB and groups do not coexist well, yet, and that includes when editing a group, relayering a group, and editing a group. My advice is do not use the PB when working with a group. 2. LC recycles group properties, and sometimes assigns them when new groups are created (depending on a couple of factors) On Sat, Nov 12, 2016 at 1:52 AM, J. Landman Gay wrote: > Were you using the Project Browser? I thought I'd try it because the app > browser doesn't offer drag-relayering, but the same thing happened to me > when I dragged a control upwards. It popped into the group above it in the > list. > > On 11/11/16 10:09 PM, Bob Sneidar wrote: > >> Nope it's false. Just checked. >> >> Bob S >> >> >> On Nov 11, 2016, at 18:39 , Phil Davis wrote: >>> >>> Sounds to me like 'relayerGroupedControls' may have been set to true? >>> Otherwise I can't imagine it would be swallowed whole by the next >>> lower-layer group. >>> >>> Phil Davis >>> >>> >>> >>> On 11/11/16 6:18 PM, Bob Sneidar wrote: >>> >>>> Not sure if this is a bug actually. I recently selected a data grid and >>>> moved it back one level, and it disappeared! Select Grouped was off. I >>>> discovered my errant datagrid had been added to the group one level back, >>>> and because the boundaries of that group did not encompass the data grid, >>>> and the size and position were locked, it "appeared to disappear". >>>> >>>> Is this what is supposed to happen?? If so, then BOOOO!!! It's my >>>> humble opinion that nothing should be added to a group unless I explicitly >>>> tell it to be. Moving an object backwards and forwards should only happen >>>> within the group the object is in, or else outside of any group. >>>> >>>> What think ye? >>>> >>> > -- > 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 hlowe at me.com Sat Nov 12 17:44:16 2016 From: hlowe at me.com (hlowe) Date: Sat, 12 Nov 2016 14:44:16 -0800 (PST) Subject: Height of a group is limited to 32767 (Int16)? Message-ID: <1478990656143-4710267.post@n4.nabble.com> It appears that the maximum height of a LC group is 32767 pixels. Presumably LC uses an Int16 data type when drawing? I am using a template-based datagrid on iOS with a native scroller (Monte's mergDataGridScroller) to display complex lists and find that the number of items in such a list is limited to a few hundred items before the maximum group height is reached, at which point the datagrid disappears. This occurs in LC 8.1.2 (and earlier) and is a major limitation when trying to create mobile apps that need to scroll large lists. Now that iOS apps are 64 bit, can we expect this limitation to go anytime soon? Henry -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Height-of-a-group-is-limited-to-32767-Int16-tp4710267.html Sent from the Revolution - User mailing list archive at Nabble.com. From hh at hyperhh.de Sat Nov 12 19:27:14 2016 From: hh at hyperhh.de (hh) Date: Sun, 13 Nov 2016 01:27:14 +0100 Subject: Height of a group is limited to 32767 (Int16)? Message-ID: <8BB83AAF-2B5A-4801-894D-7B90413E73A0@hyperhh.de> See bug #16758 (limit to coordinates = limit to LC!) From richmondmathewson at gmail.com Sun Nov 13 05:21:04 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 13 Nov 2016 12:21:04 +0200 Subject: selectedText Message-ID: Does anyone have any idea why when in Livecode 6.x if one has this: on mouseUp set the useUnicode to true set the unicodeText of the selectedText to numToChar(4000) end mouseUp it inserts the character between the chars where the insertion point is inwith a field, but in Livecode 8.1.1 this: on mouseUp set the text of the selectedText to numToCodePoint(4000) end mouseUp it over-writes the char ontop of the existing text (and is bloody awful)? Richmond. From richmondmathewson at gmail.com Sun Nov 13 05:58:48 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 13 Nov 2016 12:58:48 +0200 Subject: selectedText In-Reply-To: References: Message-ID: <13271202-bdf4-3021-2300-8451c1fa513f@gmail.com> Possibly, just possibly, this should be disregarded as numToCodePoint(4000) yields a Bengali character that behave is the way I described; but if one tries to insert numToCodePoint(93) or numToCodePoint(2356) everything works as previously. As one of my godfathers (a Bengali) would say "Bengalis always cause problems." Richmond. On 13.11.2016 12:21, Richmond wrote: > Does anyone have any idea why when in Livecode 6.x if one > > has this: > > on mouseUp > set the useUnicode to true > set the unicodeText of the selectedText to numToChar(4000) > end mouseUp > > it inserts the character between the chars where the insertion point > is inwith a field, > > but in Livecode 8.1.1 > > this: > > on mouseUp > set the text of the selectedText to numToCodePoint(4000) > end mouseUp > > it over-writes the char ontop of the existing text (and is bloody awful)? > > Richmond. From hlowe at me.com Sun Nov 13 11:56:18 2016 From: hlowe at me.com (hlowe) Date: Sun, 13 Nov 2016 08:56:18 -0800 (PST) Subject: Height of a group is limited to 32767 (Int16)? In-Reply-To: <8BB83AAF-2B5A-4801-894D-7B90413E73A0@hyperhh.de> References: <1478990656143-4710267.post@n4.nabble.com> <8BB83AAF-2B5A-4801-894D-7B90413E73A0@hyperhh.de> Message-ID: <1479056178257-4710271.post@n4.nabble.com> Thanks. I see that you reported the problem in January 2016, that it was confirmed, but it is (apparently) unresolved. Is this a bug or a fundamental limitation of the LC engine? Can it be fixed without a major rewrite? It is a major limitation when trying to use a data grid + native scroller to create a list on mobile. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Height-of-a-group-is-limited-to-32767-Int16-tp4710267p4710271.html Sent from the Revolution - User mailing list archive at Nabble.com. From monte at appisle.net Sun Nov 13 14:30:56 2016 From: monte at appisle.net (Monte Goulding) Date: Mon, 14 Nov 2016 06:30:56 +1100 Subject: Height of a group is limited to 32767 (Int16)? In-Reply-To: <1479056178257-4710271.post@n4.nabble.com> References: <1478990656143-4710267.post@n4.nabble.com> <8BB83AAF-2B5A-4801-894D-7B90413E73A0@hyperhh.de> <1479056178257-4710271.post@n4.nabble.com> Message-ID: <20FD4F02-813D-4595-9F81-2972BD055FD4@appisle.net> It is not an issue for the data grid itself it is an issue for the DataGrid + mergDataGridScroller. I wrote mergDataGridScroller with the goal of smooth scrolling relatively short DataGrids. If you want to use scrolling layer mode on a group then you really need to avoid fiddling with the group content while scrolling. That?s why it expands the DataGrid to it?s full formatted height and sets the scroll on the wrapper group instead. My suggestion is you look at the mergDataGridScroller behavior code and limit the height of the data grid to something reasonable and then use a mix of setting the DataGrid scroll and setting the wrapper group scroll. That should give you just one jitter every now and then instead of all the time. Cheers Monte > On 14 Nov. 2016, at 3:56 am, hlowe wrote: > > Thanks. I see that you reported the problem in January 2016, that it was > confirmed, but it is (apparently) unresolved. Is this a bug or a fundamental > limitation of the LC engine? Can it be fixed without a major rewrite? It is > a major limitation when trying to use a data grid + native scroller to > create a list on mobile. > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Height-of-a-group-is-limited-to-32767-Int16-tp4710267p4710271.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hlowe at me.com Sun Nov 13 15:18:47 2016 From: hlowe at me.com (hlowe) Date: Sun, 13 Nov 2016 12:18:47 -0800 (PST) Subject: Height of a group is limited to 32767 (Int16)? In-Reply-To: <20FD4F02-813D-4595-9F81-2972BD055FD4@appisle.net> References: <1478990656143-4710267.post@n4.nabble.com> <8BB83AAF-2B5A-4801-894D-7B90413E73A0@hyperhh.de> <1479056178257-4710271.post@n4.nabble.com> <20FD4F02-813D-4595-9F81-2972BD055FD4@appisle.net> Message-ID: <1479068327669-4710273.post@n4.nabble.com> Thanks Monte. I am curious as to why the height of LC groups are still limited to Int16? Henry -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Height-of-a-group-is-limited-to-32767-Int16-tp4710267p4710273.html Sent from the Revolution - User mailing list archive at Nabble.com. From peter.brett at livecode.com Mon Nov 14 06:46:08 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 14 Nov 2016 11:46:08 +0000 Subject: [ANN] This Week in LiveCode 59 Message-ID: <77440013-b5f7-c00e-ba8a-4131b6667964@livecode.com> 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 #59 here: https://goo.gl/PLhY9B 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. Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From toolbook at kestner.de Mon Nov 14 11:52:46 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 14 Nov 2016 17:52:46 +0100 Subject: German Umlaute get corrupted on macOS Sierra Message-ID: <00b501d23e97$875d53f0$9617fbd0$@kestner.de> Hello, Today a customer with a Mac book Air and macOS Sierra called me and told me that all German Umlaute in my LC 6 program are corrupted (while they are working fine in all other programs). This is in text displayed in fields as well as text entered in fields. Since I don't have Sierra yet installed on my machine, I can't reproduce, if this is a general Sierra issue, or something special on that customer machine. Since this is the first customer telling me this problem I don't even know, if no other customer has installed Sierra yet and it's a LC 6 - Sierra issue or if others already have installed Sierra and don't see this issue. I checked with this customer all language and keyboard layout settings and they are all standard German, like on my 10.11 machine. Has anybody any idea what could cause such a phenomenon? Any idea what to look for? Or is LC 6 just incompatible with Sierra? Thanks Tiemo From dochawk at gmail.com Mon Nov 14 14:10:04 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 14 Nov 2016 11:10:04 -0800 Subject: Increased focus switching causing typing in scripts? Message-ID: I've noticed over the last few weeks that it is becoming increasingly common for the IDE to switch focus to a script editing window, particularly during startup. This seems to be becoming gradually more common, rather than a sudden change from not happening to happening. Most, but not quite all, of the time, this happens when my main stack has sent commands to open scripts in the late part of startup (send in time commands). The result has been typing, sometime unnoticed, in my scripts, with the predictable bad consequences. Grabbing focus while the user is typing is one of my pet peeves in general . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From hh at hyperhh.de Mon Nov 14 16:01:44 2016 From: hh at hyperhh.de (hh) Date: Mon, 14 Nov 2016 22:01:44 +0100 Subject: German Umlaute get corrupted on macOS Sierra Message-ID: Tiemo, this may be a problem arising from the "change" of some system fonts. Did you check this with "font book"? Hermann From paul at livecode.org Mon Nov 14 16:06:31 2016 From: paul at livecode.org (Paul Hibbert) Date: Mon, 14 Nov 2016 13:06:31 -0800 Subject: German Umlaute get corrupted on macOS Sierra In-Reply-To: <00b501d23e97$875d53f0$9617fbd0$@kestner.de> References: <00b501d23e97$875d53f0$9617fbd0$@kestner.de> Message-ID: <0C064B9B-6DF6-4330-9B2E-89BDDC7A3789@livecode.org> I run Sierra on an older iMac (2009) and a newer MacBook Pro, I don?t see any problem with LC6, I just tested the German Umlaut with pasted text as well as typed text in LC5.5.5, LC6.7.11(rc2) and LC8.1.2(rc1) and I?m seeing exactly the same result in all 3 versions, the umlauts are present and correct. If it?s just one customer on one Mac, I would guess that maybe it?s a Font problem, can you check if they have the same font installed that your app uses, and if it is, maybe they need to check for font problems with the Font Book.app (should be in their Applications Folder). Paul > On Nov 14, 2016, at 8:52 AM, Tiemo Hollmann TB wrote: > > Hello, > > > > Today a customer with a Mac book Air and macOS Sierra called me and told me > that all German Umlaute in my LC 6 program are corrupted (while they are > working fine in all other programs). This is in text displayed in fields as > well as text entered in fields. > > Since I don't have Sierra yet installed on my machine, I can't reproduce, if > this is a general Sierra issue, or something special on that customer > machine. Since this is the first customer telling me this problem I don't > even know, if no other customer has installed Sierra yet and it's a LC 6 - > Sierra issue or if others already have installed Sierra and don't see this > issue. > > > > I checked with this customer all language and keyboard layout settings and > they are all standard German, like on my 10.11 machine. > > Has anybody any idea what could cause such a phenomenon? Any idea what to > look for? Or is LC 6 just incompatible with Sierra? > > 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 dunbarx at aol.com Mon Nov 14 18:13:57 2016 From: dunbarx at aol.com (dunbarx) Date: Mon, 14 Nov 2016 15:13:57 -0800 (PST) Subject: Increased focus switching causing typing in scripts? In-Reply-To: References: Message-ID: <1479165237268-4710279.post@n4.nabble.com> Hi. Never noticed this in v.6. Are you in 8? Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Increased-focus-switching-causing-typing-in-scripts-tp4710276p4710279.html Sent from the Revolution - User mailing list archive at Nabble.com. From colinholgate at gmail.com Mon Nov 14 18:49:30 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 14 Nov 2016 18:49:30 -0500 Subject: excessive bounces In-Reply-To: References: <6690C26C-FF60-4E35-B13B-FE9551050663@gmail.com> Message-ID: <5634045A-EB1C-442C-B8C5-DE8FB5E13984@gmail.com> More excessive bounces today. From dochawk at gmail.com Mon Nov 14 18:50:21 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 14 Nov 2016 15:50:21 -0800 Subject: formatting fail? Message-ID: This indents properly (the repeat is a single line, even if email wraps it: *repeat* for each word theList in "obDflFlds obDspFlds obDspBtns obDspObjs " & "obDspCmbs obDspGrps obCtrlFlds obAuxDspObjs obAuxDspCmbs" * put* the theList of srcGr into theProps But *repeat* for each word theList in "obDflFlds obDspFlds obDspBtns obDspObjs " \ & "obDspCmbs obDspGrps obCtrlFlds obAuxDspObjs obAuxDspCmbs" *put* the theList of srcGr into theProps Does not. Is this perhaps related to the property name starting with "the" (just a WAG) This is repeatable as I remove and replace the cr 8.1.2-rc1 -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ahsoftware at sonic.net Mon Nov 14 19:33:07 2016 From: ahsoftware at sonic.net (mwieder) Date: Mon, 14 Nov 2016 16:33:07 -0800 (PST) Subject: excessive bounces In-Reply-To: <5634045A-EB1C-442C-B8C5-DE8FB5E13984@gmail.com> References: <6690C26C-FF60-4E35-B13B-FE9551050663@gmail.com> <5634045A-EB1C-442C-B8C5-DE8FB5E13984@gmail.com> Message-ID: <1479169987284-4710282.post@n4.nabble.com> I used to get that a lot. Finally after some two weeks of bouncing/reinstating/bouncing I switched from that awful on-rev or LiveCode hosting or whatever it's called these days and haven't had a bounce or lost email since. -- Mark Wieder ahsoftware at gmail.com ----- -- Mark Wieder ahsoftware at gmail.com -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/excessive-bounces-tp4709889p4710282.html Sent from the Revolution - User mailing list archive at Nabble.com. From colinholgate at gmail.com Mon Nov 14 19:45:37 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 14 Nov 2016 19:45:37 -0500 Subject: excessive bounces In-Reply-To: <1479169987284-4710282.post@n4.nabble.com> References: <6690C26C-FF60-4E35-B13B-FE9551050663@gmail.com> <5634045A-EB1C-442C-B8C5-DE8FB5E13984@gmail.com> <1479169987284-4710282.post@n4.nabble.com> Message-ID: <04E36197-8CE6-4736-AC0F-1FABC639152A@gmail.com> I don?t think your email client makes a difference. Some are using Gmail, I?m using Mail, others are using browsers. From jerry at jhjensen.com Mon Nov 14 19:55:53 2016 From: jerry at jhjensen.com (Jerry Jensen) Date: Mon, 14 Nov 2016 16:55:53 -0800 Subject: excessive bounces In-Reply-To: <04E36197-8CE6-4736-AC0F-1FABC639152A@gmail.com> References: <6690C26C-FF60-4E35-B13B-FE9551050663@gmail.com> <5634045A-EB1C-442C-B8C5-DE8FB5E13984@gmail.com> <1479169987284-4710282.post@n4.nabble.com> <04E36197-8CE6-4736-AC0F-1FABC639152A@gmail.com> Message-ID: <04F26C38-A8EC-4352-8039-A47F435892EA@jhjensen.com> Has anybody had a look at the headers of a bounce message? Do those messages actually exist? > On Nov 14, 2016, at 4:45 PM, Colin Holgate wrote: > > I don?t think your email client makes a difference. Some are using Gmail, I?m using Mail, others are using browsers. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From colinholgate at gmail.com Mon Nov 14 19:57:22 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 14 Nov 2016 19:57:22 -0500 Subject: excessive bounces In-Reply-To: <04F26C38-A8EC-4352-8039-A47F435892EA@jhjensen.com> References: <6690C26C-FF60-4E35-B13B-FE9551050663@gmail.com> <5634045A-EB1C-442C-B8C5-DE8FB5E13984@gmail.com> <1479169987284-4710282.post@n4.nabble.com> <04E36197-8CE6-4736-AC0F-1FABC639152A@gmail.com> <04F26C38-A8EC-4352-8039-A47F435892EA@jhjensen.com> Message-ID: I think that we don?t get a copy of a bounced message. Heather might be the one to look for that. > On Nov 14, 2016, at 7:55 PM, Jerry Jensen wrote: > > Has anybody had a look at the headers of a bounce message? Do those messages actually exist? > >> On Nov 14, 2016, at 4:45 PM, Colin Holgate wrote: >> >> I don?t think your email client makes a difference. Some are using Gmail, I?m using Mail, others are using browsers. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Mon Nov 14 19:58:37 2016 From: tom at makeshyft.com (Tom Glod) Date: Mon, 14 Nov 2016 19:58:37 -0500 Subject: excessive bounces In-Reply-To: <04E36197-8CE6-4736-AC0F-1FABC639152A@gmail.com> References: <6690C26C-FF60-4E35-B13B-FE9551050663@gmail.com> <5634045A-EB1C-442C-B8C5-DE8FB5E13984@gmail.com> <1479169987284-4710282.post@n4.nabble.com> <04E36197-8CE6-4736-AC0F-1FABC639152A@gmail.com> Message-ID: yup...me too. On Mon, Nov 14, 2016 at 7:45 PM, Colin Holgate wrote: > I don?t think your email client makes a difference. Some are using Gmail, > I?m using Mail, others are using browsers. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jerry at jhjensen.com Mon Nov 14 21:34:47 2016 From: jerry at jhjensen.com (Jerry Jensen) Date: Mon, 14 Nov 2016 18:34:47 -0800 Subject: excessive bounces In-Reply-To: References: <6690C26C-FF60-4E35-B13B-FE9551050663@gmail.com> <5634045A-EB1C-442C-B8C5-DE8FB5E13984@gmail.com> <1479169987284-4710282.post@n4.nabble.com> <04E36197-8CE6-4736-AC0F-1FABC639152A@gmail.com> <04F26C38-A8EC-4352-8039-A47F435892EA@jhjensen.com> Message-ID: <3C59C6D0-0174-4A85-9698-F57E4BBD7904@jhjensen.com> Heather was very helpful when I was having trouble with not receiving email from any sender at verizon.net (including Colin(!)). She looked long and hard for the details. In that case the emails were never sent because verizon had blocked my entire domain by name. I never did solve it, changed incoming providers and sold the domain. Anyway, she worked hard to verify that they had never received the emails. Verizon was impenetrable. > On Nov 14, 2016, at 4:57 PM, Colin Holgate wrote: > > I think that we don?t get a copy of a bounced message. Heather might be the one to look for that. > > >> On Nov 14, 2016, at 7:55 PM, Jerry Jensen wrote: >> >> Has anybody had a look at the headers of a bounce message? Do those messages actually exist? >> >>> On Nov 14, 2016, at 4:45 PM, Colin Holgate wrote: >>> >>> I don?t think your email client makes a difference. Some are using Gmail, I?m using Mail, others are using browsers. >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From colinholgate at gmail.com Mon Nov 14 21:44:39 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 14 Nov 2016 21:44:39 -0500 Subject: excessive bounces In-Reply-To: <3C59C6D0-0174-4A85-9698-F57E4BBD7904@jhjensen.com> References: <6690C26C-FF60-4E35-B13B-FE9551050663@gmail.com> <5634045A-EB1C-442C-B8C5-DE8FB5E13984@gmail.com> <1479169987284-4710282.post@n4.nabble.com> <04E36197-8CE6-4736-AC0F-1FABC639152A@gmail.com> <04F26C38-A8EC-4352-8039-A47F435892EA@jhjensen.com> <3C59C6D0-0174-4A85-9698-F57E4BBD7904@jhjensen.com> Message-ID: <1B50F598-610D-497D-BE1A-C80D5DE556BE@gmail.com> I?m on Verizon, something else must be going on. > On Nov 14, 2016, at 9:34 PM, Jerry Jensen wrote: > > Heather was very helpful when I was having trouble with not receiving email from any sender at verizon.net (including Colin(!)). She looked long and hard for the details. In that case the emails were never sent because verizon had blocked my entire domain by name. I never did solve it, changed incoming providers and sold the domain. Anyway, she worked hard to verify that they had never received the emails. Verizon was impenetrable. > >> On Nov 14, 2016, at 4:57 PM, Colin Holgate wrote: >> >> I think that we don?t get a copy of a bounced message. Heather might be the one to look for that. >> >> >>> On Nov 14, 2016, at 7:55 PM, Jerry Jensen wrote: >>> >>> Has anybody had a look at the headers of a bounce message? Do those messages actually exist? >>> >>>> On Nov 14, 2016, at 4:45 PM, Colin Holgate wrote: >>>> >>>> I don?t think your email client makes a difference. Some are using Gmail, I?m using Mail, others are using browsers. >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jerry at jhjensen.com Mon Nov 14 21:58:04 2016 From: jerry at jhjensen.com (Jerry Jensen) Date: Mon, 14 Nov 2016 18:58:04 -0800 Subject: excessive bounces In-Reply-To: <1B50F598-610D-497D-BE1A-C80D5DE556BE@gmail.com> References: <6690C26C-FF60-4E35-B13B-FE9551050663@gmail.com> <5634045A-EB1C-442C-B8C5-DE8FB5E13984@gmail.com> <1479169987284-4710282.post@n4.nabble.com> <04E36197-8CE6-4736-AC0F-1FABC639152A@gmail.com> <04F26C38-A8EC-4352-8039-A47F435892EA@jhjensen.com> <3C59C6D0-0174-4A85-9698-F57E4BBD7904@jhjensen.com> <1B50F598-610D-497D-BE1A-C80D5DE556BE@gmail.com> Message-ID: <6B896DBB-1C0C-4922-8649-2287B775023B@jhjensen.com> That was just a trip down memory lane. Besides you, Colin, on the east coast, I had several people in southern cal trying to send to me from verizon.net addresses with the same problem. I moved the domain from on-rev to dreamhost and the problem persisted. The mail never left verizon.net . Heather said so, dreamhost said so. Don?t care now. Its a problem for the new owner of jhj.com if the problem still exists. > On Nov 14, 2016, at 6:44 PM, Colin Holgate wrote: > > I?m on Verizon, something else must be going on. > >> On Nov 14, 2016, at 9:34 PM, Jerry Jensen wrote: >> >> Heather was very helpful when I was having trouble with not receiving email from any sender at verizon.net (including Colin(!)). She looked long and hard for the details. In that case the emails were never sent because verizon had blocked my entire domain by name. I never did solve it, changed incoming providers and sold the domain. Anyway, she worked hard to verify that they had never received the emails. Verizon was impenetrable. >> >>> On Nov 14, 2016, at 4:57 PM, Colin Holgate wrote: >>> >>> I think that we don?t get a copy of a bounced message. Heather might be the one to look for that. >>> >>> >>>> On Nov 14, 2016, at 7:55 PM, Jerry Jensen wrote: >>>> >>>> Has anybody had a look at the headers of a bounce message? Do those messages actually exist? >>>> >>>>> On Nov 14, 2016, at 4:45 PM, Colin Holgate wrote: >>>>> >>>>> I don?t think your email client makes a difference. Some are using Gmail, I?m using Mail, others are using browsers. >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Mon Nov 14 22:40:38 2016 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 14 Nov 2016 19:40:38 -0800 Subject: excessive bounces In-Reply-To: <04E36197-8CE6-4736-AC0F-1FABC639152A@gmail.com> References: <6690C26C-FF60-4E35-B13B-FE9551050663@gmail.com> <5634045A-EB1C-442C-B8C5-DE8FB5E13984@gmail.com> <1479169987284-4710282.post@n4.nabble.com> <04E36197-8CE6-4736-AC0F-1FABC639152A@gmail.com> Message-ID: On 11/14/2016 04:45 PM, Colin Holgate wrote: > I don?t think your email client makes a difference. Some are using Gmail, I?m using Mail, others are using browsers. I'm missing what my email client has to do with this. I switched to a different email provider and left the on-rev/LC thing far behind. -- Mark Wieder ahsoftware at gmail.com From colinholgate at gmail.com Mon Nov 14 22:42:17 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 14 Nov 2016 22:42:17 -0500 Subject: excessive bounces In-Reply-To: <6B896DBB-1C0C-4922-8649-2287B775023B@jhjensen.com> References: <6690C26C-FF60-4E35-B13B-FE9551050663@gmail.com> <5634045A-EB1C-442C-B8C5-DE8FB5E13984@gmail.com> <1479169987284-4710282.post@n4.nabble.com> <04E36197-8CE6-4736-AC0F-1FABC639152A@gmail.com> <04F26C38-A8EC-4352-8039-A47F435892EA@jhjensen.com> <3C59C6D0-0174-4A85-9698-F57E4BBD7904@jhjensen.com> <1B50F598-610D-497D-BE1A-C80D5DE556BE@gmail.com> <6B896DBB-1C0C-4922-8649-2287B775023B@jhjensen.com> Message-ID: <544EDCD7-59B9-490A-B96C-856393FE079C@gmail.com> I suspect Heather hates all ISPs. Which is odd, because she?s lovely. From bonnmike at gmail.com Mon Nov 14 22:50:57 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 14 Nov 2016 20:50:57 -0700 Subject: excessive bounces In-Reply-To: <6B896DBB-1C0C-4922-8649-2287B775023B@jhjensen.com> References: <6690C26C-FF60-4E35-B13B-FE9551050663@gmail.com> <5634045A-EB1C-442C-B8C5-DE8FB5E13984@gmail.com> <1479169987284-4710282.post@n4.nabble.com> <04E36197-8CE6-4736-AC0F-1FABC639152A@gmail.com> <04F26C38-A8EC-4352-8039-A47F435892EA@jhjensen.com> <3C59C6D0-0174-4A85-9698-F57E4BBD7904@jhjensen.com> <1B50F598-610D-497D-BE1A-C80D5DE556BE@gmail.com> <6B896DBB-1C0C-4922-8649-2287B775023B@jhjensen.com> Message-ID: Got me (gmail) today again. On Mon, Nov 14, 2016 at 7:58 PM, Jerry Jensen wrote: > That was just a trip down memory lane. Besides you, Colin, on the east > coast, I had several people in southern cal trying to send to me from > verizon.net addresses with the same problem. I moved the domain from > on-rev to dreamhost and the problem persisted. The mail never left > verizon.net . Heather said so, dreamhost said so. Don?t care now. Its a > problem for the new owner of jhj.com if the problem still exists. > > > On Nov 14, 2016, at 6:44 PM, Colin Holgate > wrote: > > > > I?m on Verizon, something else must be going on. > > > >> On Nov 14, 2016, at 9:34 PM, Jerry Jensen wrote: > >> > >> Heather was very helpful when I was having trouble with not receiving > email from any sender at verizon.net (including Colin(!)). She looked > long and hard for the details. In that case the emails were never sent > because verizon had blocked my entire domain by name. I never did solve it, > changed incoming providers and sold the domain. Anyway, she worked hard to > verify that they had never received the emails. Verizon was impenetrable. > >> > >>> On Nov 14, 2016, at 4:57 PM, Colin Holgate > wrote: > >>> > >>> I think that we don?t get a copy of a bounced message. Heather might > be the one to look for that. > >>> > >>> > >>>> On Nov 14, 2016, at 7:55 PM, Jerry Jensen wrote: > >>>> > >>>> Has anybody had a look at the headers of a bounce message? Do those > messages actually exist? > >>>> > >>>>> On Nov 14, 2016, at 4:45 PM, Colin Holgate > wrote: > >>>>> > >>>>> I don?t think your email client makes a difference. Some are using > Gmail, I?m using Mail, others are using browsers. > >>>>> _______________________________________________ > >>>>> use-livecode mailing list > >>>>> use-livecode at lists.runrev.com > >>>>> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>> > >>>> > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode at lists.runrev.com > >>>> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From john.allijn.lc at gmail.com Tue Nov 15 03:43:38 2016 From: john.allijn.lc at gmail.com (John Allijn) Date: Tue, 15 Nov 2016 09:43:38 +0100 Subject: Saving images to webserver Message-ID: Hi I'm working on a mobile app for iOS. In this app I would like to enable the user to take a picture and then save it to my webserver at a hosting provider (shared hosting). I'v been looking at different ways to do that but can't figure out where to start. What is the best way to save pictures and how do I handle the image data? Should I create a php or html file? If so, what methods can I use to save the file to a directory? (I can handle the ios part i think. My only blind spot here is the server side) From ali.lloyd at livecode.com Tue Nov 15 04:45:19 2016 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Tue, 15 Nov 2016 09:45:19 +0000 Subject: savingStandalone message Message-ID: Hi all, Various tweaks to the standalone builder seem to have broken the way the savingStandalone message is supposed to work http://quality.livecode.com/show_bug.cgi?id=18778 I have submitted a pull request that fixes it - the only wrinkle might be that it reintroduces the following bug: http://quality.livecode.com/show_bug.cgi?id=18364, namely that the savingStandalone message gets sent for each build platform. Now, my personal view is that that is how it should work, provided the stack state is restored before building for the next platform. It allows a more fine-grained build step where, if we added suitable parameters to the message, you could for example ensure substacks with platform/architecture specific resources were not included in the standalones where they are irrelevant. My question to you is the same as I asked Lyn Teyla in the above report: Would the following behavior be a problem for your use case, and if so why? store stack state (*) repeat for each target architecture dispatch saving standalone message modify stack for per-arch settings deploy stack restore to state in (*) dispatch standalone saved message end repeat From thatkeith at mac.com Tue Nov 15 05:18:01 2016 From: thatkeith at mac.com (Keith Martin) Date: Tue, 15 Nov 2016 10:18:01 +0000 Subject: Saving images to webserver In-Reply-To: References: Message-ID: On 15 Nov 2016, at 8:43, John Allijn wrote: > What is the best way to save pictures and how do I handle the image > data? For the server, one simple approach would be to use ftp. Set up whatever ftp user config you want on the server and use curl or similar from your app to send JPEG image file data. Otherwise you'd need to look at php or similar server-side file upload setups. k --- Keith Martin Senior Lecturer, LCC (University of the Arts London) Technical Editor, MacUser magazine (1997-2015) http://PanoramaPhotographer.com http://thatkeith.com +44 (0)7909541365 --- From john.allijn.lc at gmail.com Tue Nov 15 05:20:35 2016 From: john.allijn.lc at gmail.com (John Allijn) Date: Tue, 15 Nov 2016 11:20:35 +0100 Subject: Saving images to webserver In-Reply-To: References: Message-ID: <604B4F70-A7CA-4A57-B9A0-2EC58C975CF0@gmail.com> Hi Keith, thanks for your fast reply. Is ftp safe enough? If I understand it right, the password is sent within the URL (not encrypted)? > On 15 Nov 2016, at 11:18, Keith Martin wrote: > > On 15 Nov 2016, at 8:43, John Allijn wrote: > >> What is the best way to save pictures and how do I handle the image data? > > For the server, one simple approach would be to use ftp. Set up whatever ftp user config you want on the server and use curl or similar from your app to send JPEG image file data. Otherwise you'd need to look at php or similar server-side file upload setups. > > k > > > --- > > Keith Martin > Senior Lecturer, LCC (University of the Arts London) > Technical Editor, MacUser magazine (1997-2015) > http://PanoramaPhotographer.com > http://thatkeith.com > +44 (0)7909541365 > > --- > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From thatkeith at mac.com Tue Nov 15 05:33:08 2016 From: thatkeith at mac.com (Keith Martin) Date: Tue, 15 Nov 2016 10:33:08 +0000 Subject: Saving images to webserver In-Reply-To: <604B4F70-A7CA-4A57-B9A0-2EC58C975CF0@gmail.com> References: <604B4F70-A7CA-4A57-B9A0-2EC58C975CF0@gmail.com> Message-ID: <6C9FA5E9-4AD9-44AD-8B94-781AC54E06DD@mac.com> On 15 Nov 2016, at 10:20, John Allijn wrote: > Is ftp safe enough? If I understand it right, the password is sent > within the URL (not encrypted)? Heh. Well, that is something that shouldn't be blindly ignored, but as to how risky that is compared to other methods, I'll have to defer to others. (I do know that of all the hacks I've seen *personally* in 20+ years of running web sites, none have been through cracking ftp details directly ? all have been through exploits with vulnerabilities in stuff such as wordpress or custom php scripts. But that's just one person's experience and no reason to be complacent.) Perhaps Richard Gaskin could chip in? I know he created an ftp-based tool or two very early on in the Revolution era. k --- Keith Martin Senior Lecturer, LCC (University of the Arts London) Technical Editor, MacUser magazine (1997-2015) http://PanoramaPhotographer.com http://thatkeith.com +44 (0)7909541365 --- From john.allijn.lc at gmail.com Tue Nov 15 06:11:15 2016 From: john.allijn.lc at gmail.com (John Allijn) Date: Tue, 15 Nov 2016 12:11:15 +0100 Subject: Saving images to webserver In-Reply-To: <6C9FA5E9-4AD9-44AD-8B94-781AC54E06DD@mac.com> References: <604B4F70-A7CA-4A57-B9A0-2EC58C975CF0@gmail.com> <6C9FA5E9-4AD9-44AD-8B94-781AC54E06DD@mac.com> Message-ID: <5FFEE90A-3D5C-441B-956A-591F7E780CA5@gmail.com> I found this thread on the forums: http://forums.livecode.com/viewtopic.php?f=11&t=19042 If you scroll down, you see the solution at the bottom of the page. Works perfectly! The data that I am sending (pictures of public buildings) isn?t very risky. So I?ll stick with this solution. Maybe a more secure way presents itself in the future :) Thanks Keith! > On 15 Nov 2016, at 11:33, Keith Martin wrote: > > On 15 Nov 2016, at 10:20, John Allijn wrote: > >> Is ftp safe enough? If I understand it right, the password is sent within the URL (not encrypted)? > > Heh. Well, that is something that shouldn't be blindly ignored, but as to how risky that is compared to other methods, I'll have to defer to others. > > (I do know that of all the hacks I've seen *personally* in 20+ years of running web sites, none have been through cracking ftp details directly ? all have been through exploits with vulnerabilities in stuff such as wordpress or custom php scripts. But that's just one person's experience and no reason to be complacent.) > > Perhaps Richard Gaskin could chip in? I know he created an ftp-based tool or two very early on in the Revolution era. > > k > > > --- > > Keith Martin > Senior Lecturer, LCC (University of the Arts London) > Technical Editor, MacUser magazine (1997-2015) > http://PanoramaPhotographer.com > http://thatkeith.com > +44 (0)7909541365 > > --- > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Tue Nov 15 08:18:26 2016 From: paul at researchware.com (Paul Dupuis) Date: Tue, 15 Nov 2016 08:18:26 -0500 Subject: savingStandalone message In-Reply-To: References: Message-ID: <582B0B22.4040404@researchware.com> I make use of the savingStandalone message in a few projects. Generally, I would prefer a single message regardless of the number of platforms I am building for. For ecample, I set a incremental "build' number on savingStandalone and I would want that build number to be the same for all platforms built for. If the message was sent for each platform I suspect I could come up with some what to still do this, but the code complexity would increase for a relatively simple task. It would seem to me that if you are looking for platform specific actions to modify the stack(s) used in each platform build, then ideally you would want a set of platform specific messages. i.e savingStandaloneForWindows savingStandaloneForOSX savingStandaloneForiOS savingStandaloneForAndroid savingStandaloneForHTML5 ... Or something like that. That way if you only meed to make a specific scripted stack modification for Android, you only need to handle that specific message. On 11/15/2016 4:45 AM, Ali Lloyd wrote: > Hi all, > > Various tweaks to the standalone builder seem to have broken the way the > savingStandalone message is supposed to work > http://quality.livecode.com/show_bug.cgi?id=18778 > > I have submitted a pull request that fixes it - the only wrinkle might be > that it reintroduces the following bug: > http://quality.livecode.com/show_bug.cgi?id=18364, namely that the > savingStandalone message gets sent for each build platform. > > Now, my personal view is that that is how it should work, provided the > stack state is restored before building for the next platform. It allows a > more fine-grained build step where, if we added suitable parameters to the > message, you could for example ensure substacks with platform/architecture > specific resources were not included in the standalones where they are > irrelevant. > > My question to you is the same as I asked Lyn Teyla in the above report: > > Would the following behavior be a problem for your use case, and if so why? > > store stack state (*) > repeat for each target architecture > dispatch saving standalone message > modify stack for per-arch settings > deploy stack > restore to state in (*) > dispatch standalone saved message > end repeat > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Nov 15 08:34:25 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 15 Nov 2016 13:34:25 +0000 Subject: savingStandalone message In-Reply-To: <582B0B22.4040404@researchware.com> References: <582B0B22.4040404@researchware.com> Message-ID: <72029ae2-d35e-2a53-8867-df7511e93ec6@cogapp.com> I seem to recall that one A Lloyd made a sensible suggestion for rationalising this area: http://quality.livecode.com/show_bug.cgi?id=18371 Paul, I'd think that your needs (which certainly overlap with mine...) could be met by adopting Ali's suggestion in that report of a single message with parameter to indicate which platform was being built for, if there was an additional parameter to indicate that several standalones were being built at once. Even if it was as crude as: savingStandalone "Windows", 1, 3 savingStandalone "iOS", 2, 3 savingStandalone "Android", 3, 3 That would allow work to be done for the general case to be coded once, even if it actually ran three times; platform-specific cases to be handled; and if you wanted to do something like increment a build number to be the same across platforms, you could increment only for the "1/3" case. On 15/11/2016 13:18, Paul Dupuis wrote: > I make use of the savingStandalone message in a few projects. Generally, > I would prefer a single message regardless of the number of platforms I > am building for. For ecample, I set a incremental "build' number on > savingStandalone and I would want that build number to be the same for > all platforms built for. If the message was sent for each platform I > suspect I could come up with some what to still do this, but the code > complexity would increase for a relatively simple task. > > It would seem to me that if you are looking for platform specific > actions to modify the stack(s) used in each platform build, then ideally > you would want a set of platform specific messages. i.e > > savingStandaloneForWindows > savingStandaloneForOSX > savingStandaloneForiOS > savingStandaloneForAndroid > savingStandaloneForHTML5 > ... > > Or something like that. That way if you only meed to make a specific > scripted stack modification for Android, you only need to handle that > specific message. > > > On 11/15/2016 4:45 AM, Ali Lloyd wrote: >> Hi all, >> >> Various tweaks to the standalone builder seem to have broken the way the >> savingStandalone message is supposed to work >> http://quality.livecode.com/show_bug.cgi?id=18778 >> >> I have submitted a pull request that fixes it - the only wrinkle might be >> that it reintroduces the following bug: >> http://quality.livecode.com/show_bug.cgi?id=18364, namely that the >> savingStandalone message gets sent for each build platform. >> >> Now, my personal view is that that is how it should work, provided the >> stack state is restored before building for the next platform. It allows a >> more fine-grained build step where, if we added suitable parameters to the >> message, you could for example ensure substacks with platform/architecture >> specific resources were not included in the standalones where they are >> irrelevant. >> >> My question to you is the same as I asked Lyn Teyla in the above report: >> >> Would the following behavior be a problem for your use case, and if so why? >> >> store stack state (*) >> repeat for each target architecture >> dispatch saving standalone message >> modify stack for per-arch settings >> deploy stack >> restore to state in (*) >> dispatch standalone saved message >> end repeat >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 15 08:49:12 2016 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Tue, 15 Nov 2016 13:49:12 +0000 Subject: savingStandalone message In-Reply-To: <582B0B22.4040404@researchware.com> References: <582B0B22.4040404@researchware.com> Message-ID: Thanks for the feedback Paul. How is your build number increment implemented? On Tue, Nov 15, 2016 at 1:18 PM Paul Dupuis wrote: > I make use of the savingStandalone message in a few projects. Generally, > I would prefer a single message regardless of the number of platforms I > am building for. For ecample, I set a incremental "build' number on > savingStandalone and I would want that build number to be the same for > all platforms built for. If the message was sent for each platform I > suspect I could come up with some what to still do this, but the code > complexity would increase for a relatively simple task. > > It would seem to me that if you are looking for platform specific > actions to modify the stack(s) used in each platform build, then ideally > you would want a set of platform specific messages. i.e > > savingStandaloneForWindows > savingStandaloneForOSX > savingStandaloneForiOS > savingStandaloneForAndroid > savingStandaloneForHTML5 > ... > > Or something like that. That way if you only meed to make a specific > scripted stack modification for Android, you only need to handle that > specific message. > > > On 11/15/2016 4:45 AM, Ali Lloyd wrote: > > Hi all, > > > > Various tweaks to the standalone builder seem to have broken the way the > > savingStandalone message is supposed to work > > http://quality.livecode.com/show_bug.cgi?id=18778 > > > > I have submitted a pull request that fixes it - the only wrinkle might be > > that it reintroduces the following bug: > > http://quality.livecode.com/show_bug.cgi?id=18364, namely that the > > savingStandalone message gets sent for each build platform. > > > > Now, my personal view is that that is how it should work, provided the > > stack state is restored before building for the next platform. It allows > a > > more fine-grained build step where, if we added suitable parameters to > the > > message, you could for example ensure substacks with > platform/architecture > > specific resources were not included in the standalones where they are > > irrelevant. > > > > My question to you is the same as I asked Lyn Teyla in the above report: > > > > Would the following behavior be a problem for your use case, and if so > why? > > > > store stack state (*) > > repeat for each target architecture > > dispatch saving standalone message > > modify stack for per-arch settings > > deploy stack > > restore to state in (*) > > dispatch standalone saved message > > end repeat > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul at researchware.com Tue Nov 15 10:17:27 2016 From: paul at researchware.com (Paul Dupuis) Date: Tue, 15 Nov 2016 10:17:27 -0500 Subject: savingStandalone message In-Reply-To: References: <582B0B22.4040404@researchware.com> Message-ID: <582B2707.4090701@researchware.com> Ben, Your suggested model with the parameters would work just fine for me. I like it! Ali Different projects of mine do different things, but generally, for some of my projects, I grab a stack custom property that represented a incremental counter (which is basically incremented by 1 on every saveStackRequest message) and clear it for the standalone(s) when built. As noted, I could code around it, or, as I consider this, I realize in this specific case where I am clearing a property, repeated calls of the savingStandalone message would not matter. In another I add a date and time stamp into a property of the standalone - ideally the same date & time for all the platforms I am building for (which in that case is just Windows and OSX) As I noted, any of the above can be coded to work with a savingStandalone message for each platform, so it is not like the proposed change would change anything that could not be fixed. On 11/15/2016 8:49 AM, Ali Lloyd wrote: > Thanks for the feedback Paul. How is your build number increment > implemented? > > On Tue, Nov 15, 2016 at 1:18 PM Paul Dupuis wrote: > >> I make use of the savingStandalone message in a few projects. Generally, >> I would prefer a single message regardless of the number of platforms I >> am building for. For ecample, I set a incremental "build' number on >> savingStandalone and I would want that build number to be the same for >> all platforms built for. If the message was sent for each platform I >> suspect I could come up with some what to still do this, but the code >> complexity would increase for a relatively simple task. >> >> It would seem to me that if you are looking for platform specific >> actions to modify the stack(s) used in each platform build, then ideally >> you would want a set of platform specific messages. i.e >> >> savingStandaloneForWindows >> savingStandaloneForOSX >> savingStandaloneForiOS >> savingStandaloneForAndroid >> savingStandaloneForHTML5 >> ... >> >> Or something like that. That way if you only meed to make a specific >> scripted stack modification for Android, you only need to handle that >> specific message. >> >> >> On 11/15/2016 4:45 AM, Ali Lloyd wrote: >>> Hi all, >>> >>> Various tweaks to the standalone builder seem to have broken the way the >>> savingStandalone message is supposed to work >>> http://quality.livecode.com/show_bug.cgi?id=18778 >>> >>> I have submitted a pull request that fixes it - the only wrinkle might be >>> that it reintroduces the following bug: >>> http://quality.livecode.com/show_bug.cgi?id=18364, namely that the >>> savingStandalone message gets sent for each build platform. >>> >>> Now, my personal view is that that is how it should work, provided the >>> stack state is restored before building for the next platform. It allows >> a >>> more fine-grained build step where, if we added suitable parameters to >> the >>> message, you could for example ensure substacks with >> platform/architecture >>> specific resources were not included in the standalones where they are >>> irrelevant. >>> >>> My question to you is the same as I asked Lyn Teyla in the above report: >>> >>> Would the following behavior be a problem for your use case, and if so >> why? >>> store stack state (*) >>> repeat for each target architecture >>> dispatch saving standalone message >>> modify stack for per-arch settings >>> deploy stack >>> restore to state in (*) >>> dispatch standalone saved message >>> end repeat >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 15 12:02:44 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 15 Nov 2016 17:02:44 +0000 Subject: excessive bounces In-Reply-To: <5634045A-EB1C-442C-B8C5-DE8FB5E13984@gmail.com> References: <6690C26C-FF60-4E35-B13B-FE9551050663@gmail.com> <5634045A-EB1C-442C-B8C5-DE8FB5E13984@gmail.com> Message-ID: <5A6431D3-1CC7-43A6-A474-520CDE87790F@iotecdigital.com> I will reiterate, that I think something more is happening here. I have users on a valid Exchange Online domain who cannot send mail to certain customers, and other customers cannot send mail to certain of our users. I think someone or something is poisoning the snap filters. JMHO Bob S > On Nov 14, 2016, at 15:49 , Colin Holgate wrote: > > More excessive bounces today. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 15 12:08:23 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 15 Nov 2016 17:08:23 +0000 Subject: App Compilation Issues Message-ID: <22A0A99C-AFCA-4DCB-A5E6-48ACFBDB951F@iotecdigital.com> Hi all. I am having app compiling issues on anything higher than 8.0.1. I have a splash stack which opens the main stack which has substacks beyond that. In the main stack Stack Files tab I have the sqlYoga library path set. When I compile the Splash stack, it is failing to include the sqlYoga library (and I assume any library I might call on later). I think something has regressed in the App Build routines. Bob S From ambassador at fourthworld.com Tue Nov 15 12:14:36 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 15 Nov 2016 09:14:36 -0800 Subject: savingStandalone message In-Reply-To: <72029ae2-d35e-2a53-8867-df7511e93ec6@cogapp.com> References: <72029ae2-d35e-2a53-8867-df7511e93ec6@cogapp.com> Message-ID: Ben Rubinstein wrote: > Paul, I'd think that your needs (which certainly overlap with > mine...) could be met by adopting Ali's suggestion in that report > of a single message with parameter to indicate which platform was > being built for, if there was an additional parameter to indicate > that several standalones were being built at > once. Even if it was as crude as: > savingStandalone "Windows", 1, 3 > savingStandalone "iOS", 2, 3 > savingStandalone "Android", 3, 3 > > That would allow work to be done for the general case to be coded > once, even if it actually ran three times; platform-specific cases > to be handled; and if you wanted to do something like increment a > build number to be the same across platforms, you could increment > only for the "1/3" case. Agreed. Parameters allow for simpler implementation while still delivering platform differentiation. I'm less certain about the count params, and would favor a build number. But that would require that all of us use build numbers, and perhaps some don't, so I'm not opposed either. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bobsneidar at iotecdigital.com Tue Nov 15 12:37:21 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 15 Nov 2016 17:37:21 +0000 Subject: savingStandalone message In-Reply-To: <4C181AB4-25B3-4891-92AE-ECE8A27F9532@iotecdigital.com> References: <4C181AB4-25B3-4891-92AE-ECE8A27F9532@iotecdigital.com> Message-ID: <49CB1AFA-7646-4300-AEEA-681D9DDA9B47@iotecdigital.com> I just compiled for Mac only and the dialog about the open library does not appear. However I am getting this runtime error: Executing at 9:35:40 AM on Tuesday, November 15, 2016 Type: Handler: error in statement Object: stack '/Applications/Forms Generator.app/Contents/MacOS/Forms Generator' Line: go invisible to card 'Main' of stack 'Forms Generator' Line Num: 12 Hint: openStack Comments: Remember this compiles on 8.0.1 some something dramatic has changed. And not in a good way. Bob S > On Nov 15, 2016, at 09:30 , Bob Sneidar wrote: > > Okay my standalone building bug is probably related to this one. I can provide any testing and feedback you need on this. For instance, I just quit all versions of Livecode, opened LC 8.1.2 rc1, ONLY opened the splash stack and NOTHING ELSE, tried to compile, and I get this dialog: > > A stack with the same name as the one you > are trying to load is a lready open. > Before loading > /Users/bobsneidar/Documents/livecode > Projects/Forms Generator > 8/Libraries/sql_yoga.livecode, what do you > want to do with stack: > /Users/bobsneidar/Documents/livecode > Projects/Forms Generator 8/Forms > Generator/Windows/sql_yoga.livecode, > libSQLYoga? > > Note the WINDOWS in the second file path. It looks like after it's done compiling for Windows, it is leaving the copied library in memory (why it would have that copy open I do not know), so that when it goes to comile for Mac a second library is open in memory and it wants to save/purge it. As I mentioned this started happening with 8.1.1. > > Bob S > > >> On Nov 15, 2016, at 01:45 , Ali Lloyd wrote: >> >> Hi all, >> >> Various tweaks to the standalone builder seem to have broken the way the >> savingStandalone message is supposed to work >> http://quality.livecode.com/show_bug.cgi?id=18778 >> >> I have submitted a pull request that fixes it - the only wrinkle might be >> that it reintroduces the following bug: >> http://quality.livecode.com/show_bug.cgi?id=18364, namely that the >> savingStandalone message gets sent for each build platform. >> >> Now, my personal view is that that is how it should work, provided the >> stack state is restored before building for the next platform. It allows a >> more fine-grained build step where, if we added suitable parameters to the >> message, you could for example ensure substacks with platform/architecture >> specific resources were not included in the standalones where they are >> irrelevant. >> >> My question to you is the same as I asked Lyn Teyla in the above report: >> >> Would the following behavior be a problem for your use case, and if so why? >> >> store stack state (*) >> repeat for each target architecture >> dispatch saving standalone message >> modify stack for per-arch settings >> deploy stack >> restore to state in (*) >> dispatch standalone saved message >> end repeat >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Nov 15 12:37:37 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 15 Nov 2016 09:37:37 -0800 Subject: Saving images to webserver In-Reply-To: <5FFEE90A-3D5C-441B-956A-591F7E780CA5@gmail.com> References: <5FFEE90A-3D5C-441B-956A-591F7E780CA5@gmail.com> Message-ID: John Allijn wrote: > I found this thread on the forums: http://forums.livecode.com/viewtopic.php?f=11&t=19042 > If you scroll down, you see the solution at the bottom of the page. > Works perfectly! > The data that I am sending (pictures of public buildings) isn?t very > risky. So I?ll stick with this solution. Maybe a more secure way > presents itself in the future :) Good call. REST APIs over HTTP are an excellent default choice, where other options may become relevant if for some reason a REST API cannot be used. FTP is indeed too dangerous for anyone to use, and SFTP only secures the transmission but does not alter the role of FTP as a means of providing ad hoc traversal of a file repository. Of course if that's what you want that's what you should use. But it's often helpful to keep in mind the security principle of Least Privileges: only provide as much access as a given task truly requires. When the goal is to move specific data to a specific location, a REST API allows you control over what can and can't be done. It serves as a gatekeeper, allowing you to examine incoming data to ensure that what's being sent is what's expected, providing an opportunity to sanitize as needed. For example, an image will have a file name, and with FTP/SFTP that file name can be any string that resolves to a valid location on the server. The file path could be "~/public_html/something.jpg.php", and once installed if the file contains PHP code it could be executable from anywhere in the world. A REST API gives you the opportunity to reject file names that include "/", and those which any suffix anywhere in the string which may trigger execution, like ".php" or ".lc" (Apache doesn't care if it's the only file name extension, or even the last; if configured to handle PHP or other scripting engine it'll execute it when requested just the same). You could go even further to ensure the ostensible file data also includes the "magic number" header that should be present in an image file of a given type, though there are reasons why that alone still won't be sufficient, and if you've already blocked arbitrary file locations that risk has already been mitigated. HTTP-based REST APIs make an excellent default choice, for their role as gatekeeper. All systems are hackable, but at a minimum we want to use common good practices to at least make it challenging for the bad guys to get control of our servers. And as long as we keep Least Privileges in mind as we type each line of code, with every decision we make along the way our systems become just a little more hardened against attack. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bobsneidar at iotecdigital.com Tue Nov 15 13:21:14 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 15 Nov 2016 18:21:14 +0000 Subject: Moving Groups Bug In-Reply-To: <2b4724bb-c4aa-298d-6390-8eb5e8605d4b@hyperactivesw.com> References: <695A6612-D7FF-40BF-A89D-27A532B1B630@iotecdigital.com> <318216fc-4b3d-7fb4-8d5e-68488483a29d@pdslabs.net> <3526E8E7-9401-4667-BEBD-D0A39FC3DDC5@iotecdigital.com> <2b4724bb-c4aa-298d-6390-8eb5e8605d4b@hyperactivesw.com> Message-ID: Nope I was simply using the menu option. I really feel sorry for the devs here. They just need to understand that I have a penchant for stumbling over any kind of bug. I was installing a copier yesterday, and found 2 bugs where turning on an OCR option appeared to change the filetype from PDF to TIFF, and then disabling the OCR option. Turns out the settings stick but the web interface is buggy and is not showing me what the settings actually are. Also the Check Connection button for SMB shares always reports a connection failure, but the scan to file works anyway. It's not easy being me. Bob S On Nov 11, 2016, at 22:52 , J. Landman Gay > wrote: Were you using the Project Browser? I thought I'd try it because the app browser doesn't offer drag-relayering, but the same thing happened to me when I dragged a control upwards. It popped into the group above it in the list. On 11/11/16 10:09 PM, Bob Sneidar wrote: Nope it's false. Just checked. Bob S On Nov 11, 2016, at 18:39 , Phil Davis > wrote: Sounds to me like 'relayerGroupedControls' may have been set to true? Otherwise I can't imagine it would be swallowed whole by the next lower-layer group. Phil Davis On 11/11/16 6:18 PM, Bob Sneidar wrote: Not sure if this is a bug actually. I recently selected a data grid and moved it back one level, and it disappeared! Select Grouped was off. I discovered my errant datagrid had been added to the group one level back, and because the boundaries of that group did not encompass the data grid, and the size and position were locked, it "appeared to disappear". Is this what is supposed to happen?? If so, then BOOOO!!! It's my humble opinion that nothing should be added to a group unless I explicitly tell it to be. Moving an object backwards and forwards should only happen within the group the object is in, or else outside of any group. What think ye? -- 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 Tue Nov 15 13:21:17 2016 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 15 Nov 2016 20:21:17 +0200 Subject: excessive bounces In-Reply-To: <5A6431D3-1CC7-43A6-A474-520CDE87790F@iotecdigital.com> References: <6690C26C-FF60-4E35-B13B-FE9551050663@gmail.com> <5634045A-EB1C-442C-B8C5-DE8FB5E13984@gmail.com> <5A6431D3-1CC7-43A6-A474-520CDE87790F@iotecdigital.com> Message-ID: <142492a4-a205-92b6-7315-39bb1d6ba739@gmail.com> I've just had the "Yongy Bongy Bo" disconnected nonsense for the third time: Hey, that's even more than when Heather was banning me "all the time" about 10 years ago :) Richmond. On 15.11.2016 19:02, Bob Sneidar wrote: > I will reiterate, that I think something more is happening here. I have users on a valid Exchange Online domain who cannot send mail to certain customers, and other customers cannot send mail to certain of our users. I think someone or something is poisoning the snap filters. JMHO > > Bob S > > >> On Nov 14, 2016, at 15:49 , Colin Holgate wrote: >> >> More excessive bounces today. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 15 13:24:33 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 15 Nov 2016 18:24:33 +0000 Subject: excessive bounces In-Reply-To: <142492a4-a205-92b6-7315-39bb1d6ba739@gmail.com> References: <6690C26C-FF60-4E35-B13B-FE9551050663@gmail.com> <5634045A-EB1C-442C-B8C5-DE8FB5E13984@gmail.com> <5A6431D3-1CC7-43A6-A474-520CDE87790F@iotecdigital.com> <142492a4-a205-92b6-7315-39bb1d6ba739@gmail.com> Message-ID: On Nov 15, 2016, at 10:21 , Richmond > wrote: I've just had the "Yongy Bongy Bo" disconnected nonsense for the third time: Hey, that's even more than when Heather was banning me "all the time" about 10 years ago :) Richmond. That just means she likes you. Bob S From bobsneidar at iotecdigital.com Tue Nov 15 13:27:09 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 15 Nov 2016 18:27:09 +0000 Subject: Saving images to webserver In-Reply-To: <604B4F70-A7CA-4A57-B9A0-2EC58C975CF0@gmail.com> References: <604B4F70-A7CA-4A57-B9A0-2EC58C975CF0@gmail.com> Message-ID: <204B00C1-E5AD-48C5-BE10-66545AEB999A@iotecdigital.com> No it is not. You need to use secure ftp instead if possible. FTP creds are sent clear text if I am not mistaken. Bob S > On Nov 15, 2016, at 02:20 , John Allijn wrote: > > Hi Keith, > thanks for your fast reply. > Is ftp safe enough? If I understand it right, the password is sent within the URL (not encrypted)? > >> On 15 Nov 2016, at 11:18, Keith Martin wrote: >> >> On 15 Nov 2016, at 8:43, John Allijn wrote: >> >>> What is the best way to save pictures and how do I handle the image data? >> >> For the server, one simple approach would be to use ftp. Set up whatever ftp user config you want on the server and use curl or similar from your app to send JPEG image file data. Otherwise you'd need to look at php or similar server-side file upload setups. >> >> k >> >> >> --- >> >> Keith Martin >> Senior Lecturer, LCC (University of the Arts London) >> Technical Editor, MacUser magazine (1997-2015) >> http://PanoramaPhotographer.com >> http://thatkeith.com >> +44 (0)7909541365 >> >> --- >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Nov 15 13:51:47 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 15 Nov 2016 18:51:47 +0000 Subject: savingStandalone message In-Reply-To: References: <72029ae2-d35e-2a53-8867-df7511e93ec6@cogapp.com> Message-ID: <53c99693-1095-e324-de28-8aaae4c3f150@cogapp.com> On 15/11/2016 17:14, Richard Gaskin wrote: > I'm less certain about the count params, and would favor a build number. > But that would require that all of us use build numbers, and perhaps some > don't, so I'm not opposed either. To be clear, which I may not have been, my proposal was that the parameters should allow the message handler to know - what platform this standalone is being built for - how many standalones are being built in a single pass, and whether this is the first, last, or somewhere in between The latter was really to support Paul's requirement to increment a build number, which would be the same for all the standalones built in that pass, but would be incremented on the next pass. There are certainly other ways to achieve this. If you're proposing that the LC IDE maintain a build number for every stack, that might save a bit of effort for some sub-set of the audience which uses build numbers; but for those who for whatever reason use build numbers or similar in some scheme incompatible with the one provided, it might make workarounds more complicated. I certainly wouldn't object to it as an additional feature! Ben On 15/11/2016 17:14, Richard Gaskin wrote: > Ben Rubinstein wrote: > >> Paul, I'd think that your needs (which certainly overlap with >> mine...) could be met by adopting Ali's suggestion in that report >> of a single message with parameter to indicate which platform was >> being built for, if there was an additional parameter to indicate >> that several standalones were being built at >> once. Even if it was as crude as: >> savingStandalone "Windows", 1, 3 >> savingStandalone "iOS", 2, 3 >> savingStandalone "Android", 3, 3 >> >> That would allow work to be done for the general case to be coded >> once, even if it actually ran three times; platform-specific cases >> to be handled; and if you wanted to do something like increment a >> build number to be the same across platforms, you could increment >> only for the "1/3" case. > > Agreed. Parameters allow for simpler implementation while still delivering > platform differentiation. > > I'm less certain about the count params, and would favor a build number. But > that would require that all of us use build numbers, and perhaps some don't, > so I'm not opposed either. > From dochawk at gmail.com Tue Nov 15 14:19:14 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 15 Nov 2016 11:19:14 -0800 Subject: savingStandalone message In-Reply-To: References: <72029ae2-d35e-2a53-8867-df7511e93ec6@cogapp.com> Message-ID: On Tue, Nov 15, 2016 at 9:14 AM, Richard Gaskin wrote: > I'm less certain about the count params, and would favor a build number. > But that would require that all of us use build numbers, and perhaps some > don't, so I'm not opposed either. I would like to see flexibility on this. Personally, my stacks are named/labeled with YYMMDDv as part of the name, where v start with "a" for the first version that day. I build from several stacks, but the standalone picks up the version of my control stack. (The naming format comes from my law practices, which causes them to sort properly/easily. My paralegal was shocked/awed when her instructor taught her what I already made her do :) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From rdimola at evergreeninfo.net Tue Nov 15 14:25:50 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 15 Nov 2016 14:25:50 -0500 Subject: excessive bounces In-Reply-To: <5A6431D3-1CC7-43A6-A474-520CDE87790F@iotecdigital.com> References: <6690C26C-FF60-4E35-B13B-FE9551050663@gmail.com> <5634045A-EB1C-442C-B8C5-DE8FB5E13984@gmail.com> <5A6431D3-1CC7-43A6-A474-520CDE87790F@iotecdigital.com> Message-ID: <006501d23f76$132e2dd0$398a8970$@net> Bob, I agree. I've been getting a ton of "open me up and get a virus" emails for the last few days with subject lines like "your order is shipped", "You have a fax message", "Your Quote for...". Something's going on. 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 Sent: Tuesday, November 15, 2016 12:03 PM To: How to use LiveCode Subject: Re: excessive bounces I will reiterate, that I think something more is happening here. I have users on a valid Exchange Online domain who cannot send mail to certain customers, and other customers cannot send mail to certain of our users. I think someone or something is poisoning the snap filters. JMHO Bob S > On Nov 14, 2016, at 15:49 , Colin Holgate wrote: > > More excessive bounces today. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at 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 Nov 15 14:28:25 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 15 Nov 2016 11:28:25 -0800 Subject: savingStandalone message In-Reply-To: <53c99693-1095-e324-de28-8aaae4c3f150@cogapp.com> References: <53c99693-1095-e324-de28-8aaae4c3f150@cogapp.com> Message-ID: Ben Rubinstein wrote: > If you're proposing that the LC IDE maintain a build number for every > stack, that might save a bit of effort for some sub-set of the > audience which uses build numbers; but for those who for whatever > reason use build numbers or similar in some scheme incompatible with > the one provided, it might make workarounds more complicated. I > certainly wouldn't object to it as an additional feature! Agreed on both counts: desirable, but not currently universal enough to matter to some. I've adopted build numbers separate from version numbers years ago. Version numbers are useful for communicating change to humans, and build numbers provide a simple means of communicating change among automated processes. Many years ago Ken Ray wrote a very comprehensive function for comparing version numbers that accommodates a wide range of common schemes, but there are always variants, and the schemes he covers require a *lot* of code. For automated processes, hard to beat the simplicity of a single integer value. But I can appreciate that some may not maintain both a version number and a build number, and it's not my place to require that they do. So I'm not opposed to any params sent with a savingStandalone message that work well for most folks. The platform distinction is a must, and I'd love to have the destination path, but beyond that I can take care of my own needs well enough. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ali.lloyd at livecode.com Tue Nov 15 15:41:10 2016 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Tue, 15 Nov 2016 20:41:10 +0000 Subject: savingStandalone message In-Reply-To: References: <53c99693-1095-e324-de28-8aaae4c3f150@cogapp.com> Message-ID: I was thinking a parameter array would be better than many additional params. That way, additional info is cheap. So currently the proposed params are: - current build platform - current build target/architecture (to disambiguate between 32 bit/64 bit/both) - total number of standalones to build - which standalone of the total is being built - build folder Richard, what's the rationale for having the target folder before the standalone is built, considering you get the folder as a parameter to standaloneSaved? It *sort of* strikes me as a recipe for disaster, but that's just a feeling I'm getting. On Tue, Nov 15, 2016 at 7:28 PM Richard Gaskin wrote: > Ben Rubinstein wrote: > > > If you're proposing that the LC IDE maintain a build number for every > > stack, that might save a bit of effort for some sub-set of the > > audience which uses build numbers; but for those who for whatever > > reason use build numbers or similar in some scheme incompatible with > > the one provided, it might make workarounds more complicated. I > > certainly wouldn't object to it as an additional feature! > > Agreed on both counts: desirable, but not currently universal enough to > matter to some. > > I've adopted build numbers separate from version numbers years ago. > Version numbers are useful for communicating change to humans, and build > numbers provide a simple means of communicating change among automated > processes. > > Many years ago Ken Ray wrote a very comprehensive function for comparing > version numbers that accommodates a wide range of common schemes, but > there are always variants, and the schemes he covers require a *lot* of > code. > > For automated processes, hard to beat the simplicity of a single integer > value. > > But I can appreciate that some may not maintain both a version number > and a build number, and it's not my place to require that they do. > > So I'm not opposed to any params sent with a savingStandalone message > that work well for most folks. The platform distinction is a must, and > I'd love to have the destination path, but beyond that I can take care > of my own needs well enough. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Tue Nov 15 15:51:44 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 15 Nov 2016 12:51:44 -0800 Subject: savingStandalone message In-Reply-To: References: Message-ID: <08492359-0e94-ebaa-e063-65a552b5b2e9@fourthworld.com> Ali Lloyd wrote: > I was thinking a parameter array would be better than many additional > params. That way, additional info is cheap. > > So currently the proposed params are: > - current build platform > - current build target/architecture (to disambiguate between 32 bit/64 > bit/both) > - total number of standalones to build > - which standalone of the total is being built > - build folder That all sounds very good to me. > Richard, what's the rationale for having the target folder before the > standalone is built, considering you get the folder as a parameter to > standaloneSaved? It *sort of* strikes me as a recipe for disaster, but > that's just a feeling I'm getting. I was actually thinking of the other message, standaloneSaved. Currently we get an incomplete path, and have to guess what the part will be for each OS. Most of the time we can guess correctly, but if that ever changes we need to guess again. If we just had the complete path to the folder containing the freshly-build executable we'd be done with guessing altogether. Middle ground: if we kept the partial path as it is now, and added a platform param to standaloneSaved as proposed for savingStandalone, and if that param was also the exact name of the target subfolder, I'd be quite happy. -- 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 john.allijn.lc at gmail.com Tue Nov 15 16:04:28 2016 From: john.allijn.lc at gmail.com (John Allijn) Date: Tue, 15 Nov 2016 22:04:28 +0100 Subject: Saving images to webserver In-Reply-To: <204B00C1-E5AD-48C5-BE10-66545AEB999A@iotecdigital.com> References: <604B4F70-A7CA-4A57-B9A0-2EC58C975CF0@gmail.com> <204B00C1-E5AD-48C5-BE10-66545AEB999A@iotecdigital.com> Message-ID: <55202F0C-542A-4324-B4D6-0C48E31C3398@gmail.com> Hi Richard Thank you for your detailed answer. I will dive into this. Thanks again! J. > Op 15 nov. 2016 om 19:27 heeft Bob Sneidar het volgende geschreven: > > No it is not. You need to use secure ftp instead if possible. FTP creds are sent clear text if I am not mistaken. > > Bob S > > >> On Nov 15, 2016, at 02:20 , John Allijn wrote: >> >> Hi Keith, >> thanks for your fast reply. >> Is ftp safe enough? If I understand it right, the password is sent within the URL (not encrypted)? >> >>> On 15 Nov 2016, at 11:18, Keith Martin wrote: >>> >>> On 15 Nov 2016, at 8:43, John Allijn wrote: >>> >>>> What is the best way to save pictures and how do I handle the image data? >>> >>> For the server, one simple approach would be to use ftp. Set up whatever ftp user config you want on the server and use curl or similar from your app to send JPEG image file data. Otherwise you'd need to look at php or similar server-side file upload setups. >>> >>> k >>> >>> >>> --- >>> >>> Keith Martin >>> Senior Lecturer, LCC (University of the Arts London) >>> Technical Editor, MacUser magazine (1997-2015) >>> http://PanoramaPhotographer.com >>> http://thatkeith.com >>> +44 (0)7909541365 >>> >>> --- >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Nov 15 16:51:52 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 15 Nov 2016 13:51:52 -0800 Subject: finding highest value used in a postgres sequence Message-ID: The postgres server defines the values used in my unqKy variable, a sequence. In dealing with backups and a glitch already gone wrong, however, I have found that postgres seems to remember previously used values, even after ALTER SEQUENCE/RESET--but still assigns this enumbers. So After I use the MAX(uniqKy)+1 to reset the sequence, a later INSERT without specifying is throwing an error as it assigns a currently unused number. The nextval/lastval/etc functions don't seem to have "maxval()" that I can use as a new maximum. I'd appreciate any ideas . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ali.lloyd at livecode.com Tue Nov 15 16:58:55 2016 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Tue, 15 Nov 2016 21:58:55 +0000 Subject: savingStandalone message In-Reply-To: <08492359-0e94-ebaa-e063-65a552b5b2e9@fourthworld.com> References: <08492359-0e94-ebaa-e063-65a552b5b2e9@fourthworld.com> Message-ID: Ah yes, I had unthinkingly just corrected the folder parameter to standaloneSaved, but I will have to do it in the array data for backwards compatibility I suppose. On Tue, Nov 15, 2016 at 8:51 PM Richard Gaskin wrote: > Ali Lloyd wrote: > > > I was thinking a parameter array would be better than many additional > > params. That way, additional info is cheap. > > > > So currently the proposed params are: > > - current build platform > > - current build target/architecture (to disambiguate between 32 bit/64 > > bit/both) > > - total number of standalones to build > > - which standalone of the total is being built > > - build folder > > That all sounds very good to me. > > > Richard, what's the rationale for having the target folder before the > > standalone is built, considering you get the folder as a parameter to > > standaloneSaved? It *sort of* strikes me as a recipe for disaster, but > > that's just a feeling I'm getting. > > I was actually thinking of the other message, standaloneSaved. > Currently we get an incomplete path, and have to guess what the part > will be for each OS. Most of the time we can guess correctly, but if > that ever changes we need to guess again. If we just had the complete > path to the folder containing the freshly-build executable we'd be done > with guessing altogether. > > Middle ground: if we kept the partial path as it is now, and added a > platform param to standaloneSaved as proposed for savingStandalone, and > if that param was also the exact name of the target subfolder, I'd be > quite happy. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul at researchware.com Tue Nov 15 17:48:08 2016 From: paul at researchware.com (Paul Dupuis) Date: Tue, 15 Nov 2016 17:48:08 -0500 Subject: savingStandalone message In-Reply-To: References: <53c99693-1095-e324-de28-8aaae4c3f150@cogapp.com> Message-ID: <582B90A8.6000209@researchware.com> On 11/15/2016 3:41 PM, Ali Lloyd wrote: > I was thinking a parameter array would be better than many additional > params. That way, additional info is cheap. > > So currently the proposed params are: > - current build platform > - current build target/architecture (to disambiguate between 32 bit/64 > bit/both) > - total number of standalones to build > - which standalone of the total is being built > - build folder This would be a great enhancement to have this additional data. Once of the beautiful things about LiveCode is that many of the messages have optional parameters (new size with resizeStack, mouseButtonNumber with mouseDown/mouseUp/etc. and so on. If you don't need them, you just ignore them, but they are always there when you do need them. It is an underrated 'feature' of the language that makes it so easy to use. From benr_mc at cogapp.com Tue Nov 15 17:54:36 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 15 Nov 2016 22:54:36 +0000 Subject: savingStandalone message In-Reply-To: <582B90A8.6000209@researchware.com> References: <53c99693-1095-e324-de28-8aaae4c3f150@cogapp.com> <582B90A8.6000209@researchware.com> Message-ID: <75713176-7654-01e0-1435-a059f0f67c72@cogapp.com> On 15/11/2016 22:48, Paul Dupuis wrote: > On 11/15/2016 3:41 PM, Ali Lloyd wrote: >> I was thinking a parameter array would be better than many additional >> params. That way, additional info is cheap. >> >> So currently the proposed params are: >> - current build platform >> - current build target/architecture (to disambiguate between 32 bit/64 >> bit/both) >> - total number of standalones to build >> - which standalone of the total is being built >> - build folder > > This would be a great enhancement to have this additional data. Once of > the beautiful things about LiveCode is that many of the messages have > optional parameters (new size with resizeStack, mouseButtonNumber with > mouseDown/mouseUp/etc. and so on. If you don't need them, you just > ignore them, but they are always there when you do need them. It is an > underrated 'feature' of the language that makes it so easy to use. +1! Ben From wow at together.net Tue Nov 15 20:48:53 2016 From: wow at together.net (Richard Miller) Date: Tue, 15 Nov 2016 20:48:53 -0500 Subject: Signing an application for distribution outside the Mac App Store In-Reply-To: References: <53c99693-1095-e324-de28-8aaae4c3f150@cogapp.com> Message-ID: I am following the livecode instructions for "Signing an application for distribution outside the Mac App Store". When I run this in terminal: codesign -s "Developer ID Application: My Company" /Path/To/My/Application.app .... I get back this error message: "resource fork, Finder information, or similar detritus not allowed" I am trying to sign a LC app built in LC 8.0.0 dp16 running under OS Sierra and XCode 8.1. Thoughts? Thanks, Richard Miller From richmondmathewson at gmail.com Wed Nov 16 02:55:48 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 16 Nov 2016 09:55:48 +0200 Subject: replaceText usage Message-ID: <75d637b7-c6f9-c666-d73a-294e9fa8e143@gmail.com> Would be grateful if someone could tell me why this is NOT working: put line QOUNT of fld "fSSS1" into PROCESST replaceText("unicodeText","unicodeT","t") put PROCESST into line QOUNT of fld "fSSS1" Oh, and, by the way, the URL for PERL reference here https://livecode.com/resources/api/#livecode_script/replacetext seems to be a dud. Richmond. From bonnmike at gmail.com Wed Nov 16 03:14:40 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 16 Nov 2016 01:14:40 -0700 Subject: replaceText usage In-Reply-To: <75d637b7-c6f9-c666-d73a-294e9fa8e143@gmail.com> References: <75d637b7-c6f9-c666-d73a-294e9fa8e143@gmail.com> Message-ID: I have a feeling you're trying to do something that I'm missing but I'll give it a shot.. you put line QOUNT into variable processt.. but then you don't actually use the variable. If you're wanting to actually change the line itself you would need to do replace "unicodeText" as the first parameter with PROCESST, and since its a function you need to do something with the output, so you can combine the 2 last lines and end up with.. put replaceText(PROCESST,"unicodeT","t") into line QOUNT of fld "fSSS1" As it is, (assuming you get replactext("unicodeText","unicodeT","t") ) you replace text in the string unicodeText. On Wed, Nov 16, 2016 at 12:55 AM, Richmond wrote: > Would be grateful if someone could tell me why this is NOT working: > > put line QOUNT of fld "fSSS1" into PROCESST > replaceText("unicodeText","unicodeT","t") > put PROCESST into line QOUNT of fld "fSSS1" > > Oh, and, by the way, the URL for PERL reference here > > https://livecode.com/resources/api/#livecode_script/replacetext > > seems to be a dud. > > 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 Wed Nov 16 03:42:59 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 16 Nov 2016 10:42:59 +0200 Subject: replaceText usage In-Reply-To: References: <75d637b7-c6f9-c666-d73a-294e9fa8e143@gmail.com> Message-ID: You're a star! This works perfectly: put line QOUNT of fld "fSSS1" into PROCESST put replaceText(PROCESST,"unicodeT","t") into line QOUNT of fld "fSSS1" Thank you buckets! However, inevitably I cannot resist the occasion to have a "b*tchy" grumble: The documentation is not up to scratch on replaceText . . . Richmond. On 16.11.2016 10:14, Mike Bonner wrote: > I have a feeling you're trying to do something that I'm missing but I'll > give it a shot.. > > you put line QOUNT into variable processt.. but then you don't actually use > the variable. If you're wanting to actually change the line itself you > would need to do replace "unicodeText" as the first parameter with > PROCESST, and since its a function you need to do something with the > output, so you can combine the 2 last lines and end up with.. > put replaceText(PROCESST,"unicodeT","t") into line QOUNT of fld "fSSS1" > > As it is, (assuming you get replactext("unicodeText","unicodeT","t") ) you > replace text in the string unicodeText. > > On Wed, Nov 16, 2016 at 12:55 AM, Richmond > wrote: > >> Would be grateful if someone could tell me why this is NOT working: >> >> put line QOUNT of fld "fSSS1" into PROCESST >> replaceText("unicodeText","unicodeT","t") >> put PROCESST into line QOUNT of fld "fSSS1" >> >> Oh, and, by the way, the URL for PERL reference here >> >> https://livecode.com/resources/api/#livecode_script/replacetext >> >> seems to be a dud. >> >> Richmond. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Wed Nov 16 03:47:45 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 16 Nov 2016 10:47:45 +0200 Subject: recode: set the useUnicode Message-ID: I am currently working on a series of automated routines to recode my Devawriter Pro stack from Livecode 4.5 to Livecode 8/9 and . . . my code is peppered with set the useUnicode to true and set the useUnicode to false statements. Does anyone know if I have to remove them, or will they just sit there like one's appendix, a useless 'something' from an earlier developmental stage? Richmond. From peter.brett at livecode.com Wed Nov 16 03:51:18 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Wed, 16 Nov 2016 08:51:18 +0000 Subject: recode: set the useUnicode In-Reply-To: References: Message-ID: <6a9b86c2-bb04-ec4a-db82-850fbc64c510@livecode.com> On 16/11/2016 08:47, Richmond wrote: > I am currently working on a series of automated routines to recode my > Devawriter Pro stack > from Livecode 4.5 to Livecode 8/9 and . . . > > my code is peppered with > > set the useUnicode to true > > and > > set the useUnicode to false > > statements. > > Does anyone know if I have to remove them, or will they just sit there > like one's appendix, > a useless 'something' from an earlier developmental stage? The "useUnicode" property will eventually be removed (no sooner than LiveCode 10, I expect), so you should remove code that sets it if you get the opportunity. Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From richmondmathewson at gmail.com Wed Nov 16 04:05:54 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 16 Nov 2016 11:05:54 +0200 Subject: recode: set the useUnicode In-Reply-To: <6a9b86c2-bb04-ec4a-db82-850fbc64c510@livecode.com> References: <6a9b86c2-bb04-ec4a-db82-850fbc64c510@livecode.com> Message-ID: Thanks. On 16.11.2016 10:51, Peter TB Brett wrote: > > > On 16/11/2016 08:47, Richmond wrote: >> I am currently working on a series of automated routines to recode my >> Devawriter Pro stack >> from Livecode 4.5 to Livecode 8/9 and . . . >> >> my code is peppered with >> >> set the useUnicode to true >> >> and >> >> set the useUnicode to false >> >> statements. >> >> Does anyone know if I have to remove them, or will they just sit there >> like one's appendix, >> a useless 'something' from an earlier developmental stage? > > The "useUnicode" property will eventually be removed (no sooner than > LiveCode 10, I expect), so you should remove code that sets it if you > get the opportunity. > > Peter > From richmondmathewson at gmail.com Wed Nov 16 04:38:10 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 16 Nov 2016 11:38:10 +0200 Subject: [OT] lodging in Vienna Message-ID: I have a 19 year old boy (ex-student of mine) who is currently in Vienna and stuck for lodgings; he needs somewhere (room) for about 4-5 months. I would be most grateful if anyone who stays in the area and knows of something could revert to me immediately. Richmond. From richmondmathewson at gmail.com Wed Nov 16 07:44:36 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 16 Nov 2016 14:44:36 +0200 Subject: autoScript Message-ID: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> I wonder what's wrong with this: on mouseUp put "make me coffee" into SKRIPT set the script of btn "BB" to SKRIPT end mouseUp Richmond. From richmondmathewson at gmail.com Wed Nov 16 07:57:46 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 16 Nov 2016 14:57:46 +0200 Subject: autoScript In-Reply-To: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> Message-ID: Nothing is wrong with this in Livecode 7.1.4 BUT is does not work in Livecode 8.1.1 Bug 18864 Richmond. On 16.11.2016 14:44, Richmond wrote: > I wonder what's wrong with this: > > on mouseUp > put "make me coffee" into SKRIPT > set the script of btn "BB" to SKRIPT > end mouseUp > > > Richmond. From tore.nilsen at me.com Wed Nov 16 08:07:36 2016 From: tore.nilsen at me.com (Tore Nilsen) Date: Wed, 16 Nov 2016 14:07:36 +0100 Subject: autoScript In-Reply-To: References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> Message-ID: <04031E56-4249-4C27-A9ED-3A0408815491@me.com> It works in both 7.1.3 and 8.1.0 and 8.1.1 on MacOS here with me. The script is set to whatever you put into the variable. Tore > 16. nov. 2016 kl. 13.57 skrev Richmond : > > Nothing is wrong with this in Livecode 7.1.4 > > BUT is does not work in Livecode 8.1.1 > > Bug 18864 > > Richmond. > > On 16.11.2016 14:44, Richmond wrote: >> I wonder what's wrong with this: >> >> on mouseUp >> put "make me coffee" into SKRIPT >> set the script of btn "BB" to SKRIPT >> end mouseUp >> >> >> 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 tore.nilsen at me.com Wed Nov 16 08:10:15 2016 From: tore.nilsen at me.com (Tore Nilsen) Date: Wed, 16 Nov 2016 14:10:15 +0100 Subject: autoScript In-Reply-To: References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> Message-ID: Putting on mouseUp put "on mouseUp" & return & "beep" & return & "end mouseUp" into SKRIPT set the script of btn "BB" to SKRIPT end mouseUp into the script of the first button makes button BB trigger a beep as expected, also in LC 8.1.1 Regards Tore > 16. nov. 2016 kl. 13.57 skrev Richmond : > > Nothing is wrong with this in Livecode 7.1.4 > > BUT is does not work in Livecode 8.1.1 > > Bug 18864 > > Richmond. > > On 16.11.2016 14:44, Richmond wrote: >> I wonder what's wrong with this: >> >> on mouseUp >> put "make me coffee" into SKRIPT >> set the script of btn "BB" to SKRIPT >> end mouseUp >> >> >> 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 Wed Nov 16 08:21:13 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 16 Nov 2016 15:21:13 +0200 Subject: autoScript In-Reply-To: References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> Message-ID: <6b640252-31a3-02f2-d624-630f3b111b14@gmail.com> Thanks, Tore, On which operating system is that? Richmond. On 16.11.2016 15:10, Tore Nilsen wrote: > Putting > > on mouseUp > > put "on mouseUp" & return & "beep" & return & "end mouseUp" into SKRIPT > > set the script of btn "BB" to SKRIPT > > end mouseUp > > > into the script of the first button makes button BB trigger a beep as expected, also in LC 8.1.1 > > > > Regards > Tore > >> 16. nov. 2016 kl. 13.57 skrev Richmond : >> >> Nothing is wrong with this in Livecode 7.1.4 >> >> BUT is does not work in Livecode 8.1.1 >> >> Bug 18864 >> >> Richmond. >> >> On 16.11.2016 14:44, Richmond wrote: >>> I wonder what's wrong with this: >>> >>> on mouseUp >>> put "make me coffee" into SKRIPT >>> set the script of btn "BB" to SKRIPT >>> end mouseUp >>> >>> >>> Richmond. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tore.nilsen at me.com Wed Nov 16 08:22:16 2016 From: tore.nilsen at me.com (Tore Nilsen) Date: Wed, 16 Nov 2016 14:22:16 +0100 Subject: autoScript In-Reply-To: <6b640252-31a3-02f2-d624-630f3b111b14@gmail.com> References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> <6b640252-31a3-02f2-d624-630f3b111b14@gmail.com> Message-ID: <0611F8A2-8854-4587-9155-DDE7011F345A@me.com> On MacOS 10.12.2 > 16. nov. 2016 kl. 14.21 skrev Richmond : > > Thanks, Tore, > > On which operating system is that? > > Richmond. > > On 16.11.2016 15:10, Tore Nilsen wrote: >> Putting >> >> on mouseUp >> >> put "on mouseUp" & return & "beep" & return & "end mouseUp" into SKRIPT >> >> set the script of btn "BB" to SKRIPT >> >> end mouseUp >> >> >> into the script of the first button makes button BB trigger a beep as expected, also in LC 8.1.1 >> >> >> >> Regards >> Tore >> >>> 16. nov. 2016 kl. 13.57 skrev Richmond : >>> >>> Nothing is wrong with this in Livecode 7.1.4 >>> >>> BUT is does not work in Livecode 8.1.1 >>> >>> Bug 18864 >>> >>> Richmond. >>> >>> On 16.11.2016 14:44, Richmond wrote: >>>> I wonder what's wrong with this: >>>> >>>> on mouseUp >>>> put "make me coffee" into SKRIPT >>>> set the script of btn "BB" to SKRIPT >>>> end mouseUp >>>> >>>> >>>> Richmond. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Wed Nov 16 08:24:52 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 16 Nov 2016 06:24:52 -0700 Subject: autoScript In-Reply-To: <0611F8A2-8854-4587-9155-DDE7011F345A@me.com> References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> <6b640252-31a3-02f2-d624-630f3b111b14@gmail.com> <0611F8A2-8854-4587-9155-DDE7011F345A@me.com> Message-ID: I'm surprised it works in 7 since it should result in an orphaned line of code with no handler designation. (as indicated by tore, you should need to include the on mouseup and end mouseup) On Wed, Nov 16, 2016 at 6:22 AM, Tore Nilsen wrote: > On MacOS 10.12.2 > > > > 16. nov. 2016 kl. 14.21 skrev Richmond : > > > > Thanks, Tore, > > > > On which operating system is that? > > > > Richmond. > > > > On 16.11.2016 15:10, Tore Nilsen wrote: > >> Putting > >> > >> on mouseUp > >> > >> put "on mouseUp" & return & "beep" & return & "end mouseUp" into SKRIPT > >> > >> set the script of btn "BB" to SKRIPT > >> > >> end mouseUp > >> > >> > >> into the script of the first button makes button BB trigger a beep as > expected, also in LC 8.1.1 > >> > >> > >> > >> Regards > >> Tore > >> > >>> 16. nov. 2016 kl. 13.57 skrev Richmond : > >>> > >>> Nothing is wrong with this in Livecode 7.1.4 > >>> > >>> BUT is does not work in Livecode 8.1.1 > >>> > >>> Bug 18864 > >>> > >>> Richmond. > >>> > >>> On 16.11.2016 14:44, Richmond wrote: > >>>> I wonder what's wrong with this: > >>>> > >>>> on mouseUp > >>>> put "make me coffee" into SKRIPT > >>>> set the script of btn "BB" to SKRIPT > >>>> end mouseUp > >>>> > >>>> > >>>> 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 richmondmathewson at gmail.com Wed Nov 16 08:28:01 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 16 Nov 2016 15:28:01 +0200 Subject: autoScript In-Reply-To: References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> <6b640252-31a3-02f2-d624-630f3b111b14@gmail.com> <0611F8A2-8854-4587-9155-DDE7011F345A@me.com> Message-ID: <6fc47bd0-23ab-135d-fda7-a152fba3c2c6@gmail.com> I didn't bother to include the 'on mouseUp' and 'end mouseUp' in my initial message as I thought they would be assumed. Richmond. On 16.11.2016 15:24, Mike Bonner wrote: > I'm surprised it works in 7 since it should result in an orphaned line of > code with no handler designation. (as indicated by tore, you should need to > include the on mouseup and end mouseup) > > On Wed, Nov 16, 2016 at 6:22 AM, Tore Nilsen wrote: > >> On MacOS 10.12.2 >> >> >>> 16. nov. 2016 kl. 14.21 skrev Richmond : >>> >>> Thanks, Tore, >>> >>> On which operating system is that? >>> >>> Richmond. >>> >>> On 16.11.2016 15:10, Tore Nilsen wrote: >>>> Putting >>>> >>>> on mouseUp >>>> >>>> put "on mouseUp" & return & "beep" & return & "end mouseUp" into SKRIPT >>>> >>>> set the script of btn "BB" to SKRIPT >>>> >>>> end mouseUp >>>> >>>> >>>> into the script of the first button makes button BB trigger a beep as >> expected, also in LC 8.1.1 >>>> >>>> >>>> Regards >>>> Tore >>>> >>>>> 16. nov. 2016 kl. 13.57 skrev Richmond : >>>>> >>>>> Nothing is wrong with this in Livecode 7.1.4 >>>>> >>>>> BUT is does not work in Livecode 8.1.1 >>>>> >>>>> Bug 18864 >>>>> >>>>> Richmond. >>>>> >>>>> On 16.11.2016 14:44, Richmond wrote: >>>>>> I wonder what's wrong with this: >>>>>> >>>>>> on mouseUp >>>>>> put "make me coffee" into SKRIPT >>>>>> set the script of btn "BB" to SKRIPT >>>>>> end mouseUp >>>>>> >>>>>> >>>>>> Richmond. >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Wed Nov 16 08:37:28 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 16 Nov 2016 06:37:28 -0700 Subject: autoScript In-Reply-To: <6fc47bd0-23ab-135d-fda7-a152fba3c2c6@gmail.com> References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> <6b640252-31a3-02f2-d624-630f3b111b14@gmail.com> <0611F8A2-8854-4587-9155-DDE7011F345A@me.com> <6fc47bd0-23ab-135d-fda7-a152fba3c2c6@gmail.com> Message-ID: Ah, my apologies. In that case I'm surprised it DOESN'T work in 8 (when including on mouseup and end mouseup) Now I'm curious. If I recall correctly, setting a script with an error of some type, causes the script to be placed into the button but not actually be functional. Since the more recent versions of lc seem to give less latitude in syntax, you might check the result (and it?) after setting the script. In addition, if you go into the script editor afterwards does the script actually appear as it should? If you enter a space (just to set the dirty flag) and then re-apply the script from inside the editor, does it give an error? I think, setting the script pretty much works no matter what, but if the script has a problem, while the script is THERE, it just won't work until the problem is resolved and reapplied. On Wed, Nov 16, 2016 at 6:28 AM, Richmond wrote: > I didn't bother to include the 'on mouseUp' and 'end mouseUp' in my initial > message as I thought they would be assumed. > > Richmond. > > > On 16.11.2016 15:24, Mike Bonner wrote: > >> I'm surprised it works in 7 since it should result in an orphaned line of >> code with no handler designation. (as indicated by tore, you should need >> to >> include the on mouseup and end mouseup) >> >> On Wed, Nov 16, 2016 at 6:22 AM, Tore Nilsen wrote: >> >> On MacOS 10.12.2 >>> >>> >>> 16. nov. 2016 kl. 14.21 skrev Richmond : >>>> >>>> Thanks, Tore, >>>> >>>> On which operating system is that? >>>> >>>> Richmond. >>>> >>>> On 16.11.2016 15:10, Tore Nilsen wrote: >>>> >>>>> Putting >>>>> >>>>> on mouseUp >>>>> >>>>> put "on mouseUp" & return & "beep" & return & "end mouseUp" into SKRIPT >>>>> >>>>> set the script of btn "BB" to SKRIPT >>>>> >>>>> end mouseUp >>>>> >>>>> >>>>> into the script of the first button makes button BB trigger a beep as >>>>> >>>> expected, also in LC 8.1.1 >>> >>>> >>>>> >>>>> Regards >>>>> Tore >>>>> >>>>> 16. nov. 2016 kl. 13.57 skrev Richmond : >>>>>> >>>>>> Nothing is wrong with this in Livecode 7.1.4 >>>>>> >>>>>> BUT is does not work in Livecode 8.1.1 >>>>>> >>>>>> Bug 18864 >>>>>> >>>>>> Richmond. >>>>>> >>>>>> On 16.11.2016 14:44, Richmond wrote: >>>>>> >>>>>>> I wonder what's wrong with this: >>>>>>> >>>>>>> on mouseUp >>>>>>> put "make me coffee" into SKRIPT >>>>>>> set the script of btn "BB" to SKRIPT >>>>>>> end mouseUp >>>>>>> >>>>>>> >>>>>>> Richmond. >>>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> >>>>> subscription preferences: >>> >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> >>>> subscription preferences: >>> >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> >>> subscription preferences: >>> >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From tore.nilsen at me.com Wed Nov 16 08:43:31 2016 From: tore.nilsen at me.com (Tore Nilsen) Date: Wed, 16 Nov 2016 14:43:31 +0100 Subject: autoScript In-Reply-To: References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> <6b640252-31a3-02f2-d624-630f3b111b14@gmail.com> <0611F8A2-8854-4587-9155-DDE7011F345A@me.com> <6fc47bd0-23ab-135d-fda7-a152fba3c2c6@gmail.com> Message-ID: <94911B15-D187-4FEE-92D3-1A3A6C895F64@me.com> At this point in the discussion I feel a need to clarify that while also the original the script (make me coffee) was set, the button BB did not actually make coffee. I still had to go to the kitchen and perform the necessary magic myself. And I think that most people will find that making coffee is slightly beyond the capabilities of LC, regardless of version or OS. Regards Tore > 16. nov. 2016 kl. 14.37 skrev Mike Bonner : > > Ah, my apologies. In that case I'm surprised it DOESN'T work in 8 (when > including on mouseup and end mouseup) > > Now I'm curious. If I recall correctly, setting a script with an error of > some type, causes the script to be placed into the button but not actually > be functional. Since the more recent versions of lc seem to give less > latitude in syntax, you might check the result (and it?) after setting the > script. In addition, if you go into the script editor afterwards does the > script actually appear as it should? If you enter a space (just to set the > dirty flag) and then re-apply the script from inside the editor, does it > give an error? > I think, setting the script pretty much works no matter what, but if the > script has a problem, while the script is THERE, it just won't work until > the problem is resolved and reapplied. > > On Wed, Nov 16, 2016 at 6:28 AM, Richmond > wrote: > >> I didn't bother to include the 'on mouseUp' and 'end mouseUp' in my initial >> message as I thought they would be assumed. >> >> Richmond. >> >> >> On 16.11.2016 15:24, Mike Bonner wrote: >> >>> I'm surprised it works in 7 since it should result in an orphaned line of >>> code with no handler designation. (as indicated by tore, you should need >>> to >>> include the on mouseup and end mouseup) >>> >>> On Wed, Nov 16, 2016 at 6:22 AM, Tore Nilsen wrote: >>> >>> On MacOS 10.12.2 >>>> >>>> >>>> 16. nov. 2016 kl. 14.21 skrev Richmond : >>>>> >>>>> Thanks, Tore, >>>>> >>>>> On which operating system is that? >>>>> >>>>> Richmond. >>>>> >>>>> On 16.11.2016 15:10, Tore Nilsen wrote: >>>>> >>>>>> Putting >>>>>> >>>>>> on mouseUp >>>>>> >>>>>> put "on mouseUp" & return & "beep" & return & "end mouseUp" into SKRIPT >>>>>> >>>>>> set the script of btn "BB" to SKRIPT >>>>>> >>>>>> end mouseUp >>>>>> >>>>>> >>>>>> into the script of the first button makes button BB trigger a beep as >>>>>> >>>>> expected, also in LC 8.1.1 >>>> >>>>> >>>>>> >>>>>> Regards >>>>>> Tore >>>>>> >>>>>> 16. nov. 2016 kl. 13.57 skrev Richmond : >>>>>>> >>>>>>> Nothing is wrong with this in Livecode 7.1.4 >>>>>>> >>>>>>> BUT is does not work in Livecode 8.1.1 >>>>>>> >>>>>>> Bug 18864 >>>>>>> >>>>>>> Richmond. >>>>>>> >>>>>>> On 16.11.2016 14:44, Richmond wrote: >>>>>>> >>>>>>>> I wonder what's wrong with this: >>>>>>>> >>>>>>>> on mouseUp >>>>>>>> put "make me coffee" into SKRIPT >>>>>>>> set the script of btn "BB" to SKRIPT >>>>>>>> end mouseUp >>>>>>>> >>>>>>>> >>>>>>>> Richmond. >>>>>>>> >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>> >>>>>> subscription preferences: >>>> >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> >>>>> subscription preferences: >>>> >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> >>>> subscription preferences: >>>> >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Wed Nov 16 08:49:57 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 16 Nov 2016 06:49:57 -0700 Subject: autoScript In-Reply-To: <94911B15-D187-4FEE-92D3-1A3A6C895F64@me.com> References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> <6b640252-31a3-02f2-d624-630f3b111b14@gmail.com> <0611F8A2-8854-4587-9155-DDE7011F345A@me.com> <6fc47bd0-23ab-135d-fda7-a152fba3c2c6@gmail.com> <94911B15-D187-4FEE-92D3-1A3A6C895F64@me.com> Message-ID: On the contrary, when i tried it here I became hot and delicious, and great to wake up to in the morning. Alas, I had added an undo function and have since reverted to my normal hermity self. I tried "make me rich" once, but I just ended up being triple chocolate cake. On Wed, Nov 16, 2016 at 6:43 AM, Tore Nilsen wrote: > At this point in the discussion I feel a need to clarify that while also > the original the script (make me coffee) was set, the button BB did not > actually make coffee. I still had to go to the kitchen and perform the > necessary magic myself. > > And I think that most people will find that making coffee is slightly > beyond the capabilities of LC, regardless of version or OS. > > Regards > Tore > > > > 16. nov. 2016 kl. 14.37 skrev Mike Bonner : > > > > Ah, my apologies. In that case I'm surprised it DOESN'T work in 8 (when > > including on mouseup and end mouseup) > > > > Now I'm curious. If I recall correctly, setting a script with an error > of > > some type, causes the script to be placed into the button but not > actually > > be functional. Since the more recent versions of lc seem to give less > > latitude in syntax, you might check the result (and it?) after setting > the > > script. In addition, if you go into the script editor afterwards does > the > > script actually appear as it should? If you enter a space (just to set > the > > dirty flag) and then re-apply the script from inside the editor, does it > > give an error? > > I think, setting the script pretty much works no matter what, but if the > > script has a problem, while the script is THERE, it just won't work until > > the problem is resolved and reapplied. > > > > On Wed, Nov 16, 2016 at 6:28 AM, Richmond > > wrote: > > > >> I didn't bother to include the 'on mouseUp' and 'end mouseUp' in my > initial > >> message as I thought they would be assumed. > >> > >> Richmond. > >> > >> > >> On 16.11.2016 15:24, Mike Bonner wrote: > >> > >>> I'm surprised it works in 7 since it should result in an orphaned line > of > >>> code with no handler designation. (as indicated by tore, you should > need > >>> to > >>> include the on mouseup and end mouseup) > >>> > >>> On Wed, Nov 16, 2016 at 6:22 AM, Tore Nilsen > wrote: > >>> > >>> On MacOS 10.12.2 > >>>> > >>>> > >>>> 16. nov. 2016 kl. 14.21 skrev Richmond : > >>>>> > >>>>> Thanks, Tore, > >>>>> > >>>>> On which operating system is that? > >>>>> > >>>>> Richmond. > >>>>> > >>>>> On 16.11.2016 15:10, Tore Nilsen wrote: > >>>>> > >>>>>> Putting > >>>>>> > >>>>>> on mouseUp > >>>>>> > >>>>>> put "on mouseUp" & return & "beep" & return & "end mouseUp" into > SKRIPT > >>>>>> > >>>>>> set the script of btn "BB" to SKRIPT > >>>>>> > >>>>>> end mouseUp > >>>>>> > >>>>>> > >>>>>> into the script of the first button makes button BB trigger a beep > as > >>>>>> > >>>>> expected, also in LC 8.1.1 > >>>> > >>>>> > >>>>>> > >>>>>> Regards > >>>>>> Tore > >>>>>> > >>>>>> 16. nov. 2016 kl. 13.57 skrev Richmond >: > >>>>>>> > >>>>>>> Nothing is wrong with this in Livecode 7.1.4 > >>>>>>> > >>>>>>> BUT is does not work in Livecode 8.1.1 > >>>>>>> > >>>>>>> Bug 18864 > >>>>>>> > >>>>>>> Richmond. > >>>>>>> > >>>>>>> On 16.11.2016 14:44, Richmond wrote: > >>>>>>> > >>>>>>>> I wonder what's wrong with this: > >>>>>>>> > >>>>>>>> on mouseUp > >>>>>>>> put "make me coffee" into SKRIPT > >>>>>>>> set the script of btn "BB" to SKRIPT > >>>>>>>> end mouseUp > >>>>>>>> > >>>>>>>> > >>>>>>>> Richmond. > >>>>>>>> > >>>>>>> _______________________________________________ > >>>>>>> use-livecode mailing list > >>>>>>> use-livecode at lists.runrev.com > >>>>>>> Please visit this url to subscribe, unsubscribe and manage your > >>>>>>> > >>>>>> subscription preferences: > >>>> > >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>>>>> > >>>>>> _______________________________________________ > >>>>>> use-livecode mailing list > >>>>>> use-livecode at lists.runrev.com > >>>>>> Please visit this url to subscribe, unsubscribe and manage your > >>>>>> > >>>>> subscription preferences: > >>>> > >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>>>> > >>>>> > >>>>> _______________________________________________ > >>>>> use-livecode mailing list > >>>>> use-livecode at lists.runrev.com > >>>>> Please visit this url to subscribe, unsubscribe and manage your > >>>>> > >>>> subscription preferences: > >>>> > >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>>> > >>>> > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode at lists.runrev.com > >>>> Please visit this url to subscribe, unsubscribe and manage your > >>>> subscription preferences: > >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>> > >>>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >>> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Nov 16 08:53:11 2016 From: tore.nilsen at me.com (Tore Nilsen) Date: Wed, 16 Nov 2016 14:53:11 +0100 Subject: autoScript In-Reply-To: References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> <6b640252-31a3-02f2-d624-630f3b111b14@gmail.com> <0611F8A2-8854-4587-9155-DDE7011F345A@me.com> <6fc47bd0-23ab-135d-fda7-a152fba3c2c6@gmail.com> <94911B15-D187-4FEE-92D3-1A3A6C895F64@me.com> Message-ID: <398902D9-B0F1-4375-928B-127335E2B568@me.com> Has anyone ever been able to make the ?makeMeRich? command work? If not, has anyone filed a bug report? Tore > 16. nov. 2016 kl. 14.49 skrev Mike Bonner : > > On the contrary, when i tried it here I became hot and delicious, and great > to wake up to in the morning. Alas, I had added an undo function and have > since reverted to my normal hermity self. I tried "make me rich" once, but > I just ended up being triple chocolate cake. > > On Wed, Nov 16, 2016 at 6:43 AM, Tore Nilsen wrote: > >> At this point in the discussion I feel a need to clarify that while also >> the original the script (make me coffee) was set, the button BB did not >> actually make coffee. I still had to go to the kitchen and perform the >> necessary magic myself. >> >> And I think that most people will find that making coffee is slightly >> beyond the capabilities of LC, regardless of version or OS. >> >> Regards >> Tore >> >> >>> 16. nov. 2016 kl. 14.37 skrev Mike Bonner : >>> >>> Ah, my apologies. In that case I'm surprised it DOESN'T work in 8 (when >>> including on mouseup and end mouseup) >>> >>> Now I'm curious. If I recall correctly, setting a script with an error >> of >>> some type, causes the script to be placed into the button but not >> actually >>> be functional. Since the more recent versions of lc seem to give less >>> latitude in syntax, you might check the result (and it?) after setting >> the >>> script. In addition, if you go into the script editor afterwards does >> the >>> script actually appear as it should? If you enter a space (just to set >> the >>> dirty flag) and then re-apply the script from inside the editor, does it >>> give an error? >>> I think, setting the script pretty much works no matter what, but if the >>> script has a problem, while the script is THERE, it just won't work until >>> the problem is resolved and reapplied. >>> >>> On Wed, Nov 16, 2016 at 6:28 AM, Richmond >>> wrote: >>> >>>> I didn't bother to include the 'on mouseUp' and 'end mouseUp' in my >> initial >>>> message as I thought they would be assumed. >>>> >>>> Richmond. >>>> >>>> >>>> On 16.11.2016 15:24, Mike Bonner wrote: >>>> >>>>> I'm surprised it works in 7 since it should result in an orphaned line >> of >>>>> code with no handler designation. (as indicated by tore, you should >> need >>>>> to >>>>> include the on mouseup and end mouseup) >>>>> >>>>> On Wed, Nov 16, 2016 at 6:22 AM, Tore Nilsen >> wrote: >>>>> >>>>> On MacOS 10.12.2 >>>>>> >>>>>> >>>>>> 16. nov. 2016 kl. 14.21 skrev Richmond : >>>>>>> >>>>>>> Thanks, Tore, >>>>>>> >>>>>>> On which operating system is that? >>>>>>> >>>>>>> Richmond. >>>>>>> >>>>>>> On 16.11.2016 15:10, Tore Nilsen wrote: >>>>>>> >>>>>>>> Putting >>>>>>>> >>>>>>>> on mouseUp >>>>>>>> >>>>>>>> put "on mouseUp" & return & "beep" & return & "end mouseUp" into >> SKRIPT >>>>>>>> >>>>>>>> set the script of btn "BB" to SKRIPT >>>>>>>> >>>>>>>> end mouseUp >>>>>>>> >>>>>>>> >>>>>>>> into the script of the first button makes button BB trigger a beep >> as >>>>>>>> >>>>>>> expected, also in LC 8.1.1 >>>>>> >>>>>>> >>>>>>>> >>>>>>>> Regards >>>>>>>> Tore >>>>>>>> >>>>>>>> 16. nov. 2016 kl. 13.57 skrev Richmond >> : >>>>>>>>> >>>>>>>>> Nothing is wrong with this in Livecode 7.1.4 >>>>>>>>> >>>>>>>>> BUT is does not work in Livecode 8.1.1 >>>>>>>>> >>>>>>>>> Bug 18864 >>>>>>>>> >>>>>>>>> Richmond. >>>>>>>>> >>>>>>>>> On 16.11.2016 14:44, Richmond wrote: >>>>>>>>> >>>>>>>>>> I wonder what's wrong with this: >>>>>>>>>> >>>>>>>>>> on mouseUp >>>>>>>>>> put "make me coffee" into SKRIPT >>>>>>>>>> set the script of btn "BB" to SKRIPT >>>>>>>>>> end mouseUp >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Richmond. >>>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> use-livecode mailing list >>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>> >>>>>>>> subscription preferences: >>>>>> >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> use-livecode mailing list >>>>>>>> use-livecode at lists.runrev.com >>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>> >>>>>>> subscription preferences: >>>>>> >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>> >>>>>> subscription preferences: >>>>>> >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Wed Nov 16 08:57:26 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 16 Nov 2016 06:57:26 -0700 Subject: autoScript In-Reply-To: <398902D9-B0F1-4375-928B-127335E2B568@me.com> References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> <6b640252-31a3-02f2-d624-630f3b111b14@gmail.com> <0611F8A2-8854-4587-9155-DDE7011F345A@me.com> <6fc47bd0-23ab-135d-fda7-a152fba3c2c6@gmail.com> <94911B15-D187-4FEE-92D3-1A3A6C895F64@me.com> <398902D9-B0F1-4375-928B-127335E2B568@me.com> Message-ID: I suspect its a misunderstanding of the command. If I recall correctly it requires a library of support function such as hardWork() creativity() and perseverance() Though I guess there are a few people out there who make it work by simply using the blindLuck() function over and over until the rng pops out the right combination. On Wed, Nov 16, 2016 at 6:53 AM, Tore Nilsen wrote: > Has anyone ever been able to make the ?makeMeRich? command work? If not, > has anyone filed a bug report? > > Tore > > 16. nov. 2016 kl. 14.49 skrev Mike Bonner : > > > > On the contrary, when i tried it here I became hot and delicious, and > great > > to wake up to in the morning. Alas, I had added an undo function and > have > > since reverted to my normal hermity self. I tried "make me rich" once, > but > > I just ended up being triple chocolate cake. > > > > On Wed, Nov 16, 2016 at 6:43 AM, Tore Nilsen wrote: > > > >> At this point in the discussion I feel a need to clarify that while also > >> the original the script (make me coffee) was set, the button BB did not > >> actually make coffee. I still had to go to the kitchen and perform the > >> necessary magic myself. > >> > >> And I think that most people will find that making coffee is slightly > >> beyond the capabilities of LC, regardless of version or OS. > >> > >> Regards > >> Tore > >> > >> > >>> 16. nov. 2016 kl. 14.37 skrev Mike Bonner : > >>> > >>> Ah, my apologies. In that case I'm surprised it DOESN'T work in 8 > (when > >>> including on mouseup and end mouseup) > >>> > >>> Now I'm curious. If I recall correctly, setting a script with an error > >> of > >>> some type, causes the script to be placed into the button but not > >> actually > >>> be functional. Since the more recent versions of lc seem to give less > >>> latitude in syntax, you might check the result (and it?) after setting > >> the > >>> script. In addition, if you go into the script editor afterwards does > >> the > >>> script actually appear as it should? If you enter a space (just to set > >> the > >>> dirty flag) and then re-apply the script from inside the editor, does > it > >>> give an error? > >>> I think, setting the script pretty much works no matter what, but if > the > >>> script has a problem, while the script is THERE, it just won't work > until > >>> the problem is resolved and reapplied. > >>> > >>> On Wed, Nov 16, 2016 at 6:28 AM, Richmond > > >>> wrote: > >>> > >>>> I didn't bother to include the 'on mouseUp' and 'end mouseUp' in my > >> initial > >>>> message as I thought they would be assumed. > >>>> > >>>> Richmond. > >>>> > >>>> > >>>> On 16.11.2016 15:24, Mike Bonner wrote: > >>>> > >>>>> I'm surprised it works in 7 since it should result in an orphaned > line > >> of > >>>>> code with no handler designation. (as indicated by tore, you should > >> need > >>>>> to > >>>>> include the on mouseup and end mouseup) > >>>>> > >>>>> On Wed, Nov 16, 2016 at 6:22 AM, Tore Nilsen > >> wrote: > >>>>> > >>>>> On MacOS 10.12.2 > >>>>>> > >>>>>> > >>>>>> 16. nov. 2016 kl. 14.21 skrev Richmond >: > >>>>>>> > >>>>>>> Thanks, Tore, > >>>>>>> > >>>>>>> On which operating system is that? > >>>>>>> > >>>>>>> Richmond. > >>>>>>> > >>>>>>> On 16.11.2016 15:10, Tore Nilsen wrote: > >>>>>>> > >>>>>>>> Putting > >>>>>>>> > >>>>>>>> on mouseUp > >>>>>>>> > >>>>>>>> put "on mouseUp" & return & "beep" & return & "end mouseUp" into > >> SKRIPT > >>>>>>>> > >>>>>>>> set the script of btn "BB" to SKRIPT > >>>>>>>> > >>>>>>>> end mouseUp > >>>>>>>> > >>>>>>>> > >>>>>>>> into the script of the first button makes button BB trigger a beep > >> as > >>>>>>>> > >>>>>>> expected, also in LC 8.1.1 > >>>>>> > >>>>>>> > >>>>>>>> > >>>>>>>> Regards > >>>>>>>> Tore > >>>>>>>> > >>>>>>>> 16. nov. 2016 kl. 13.57 skrev Richmond < > richmondmathewson at gmail.com > >>> : > >>>>>>>>> > >>>>>>>>> Nothing is wrong with this in Livecode 7.1.4 > >>>>>>>>> > >>>>>>>>> BUT is does not work in Livecode 8.1.1 > >>>>>>>>> > >>>>>>>>> Bug 18864 > >>>>>>>>> > >>>>>>>>> Richmond. > >>>>>>>>> > >>>>>>>>> On 16.11.2016 14:44, Richmond wrote: > >>>>>>>>> > >>>>>>>>>> I wonder what's wrong with this: > >>>>>>>>>> > >>>>>>>>>> on mouseUp > >>>>>>>>>> put "make me coffee" into SKRIPT > >>>>>>>>>> set the script of btn "BB" to SKRIPT > >>>>>>>>>> end mouseUp > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> Richmond. > >>>>>>>>>> > >>>>>>>>> _______________________________________________ > >>>>>>>>> use-livecode mailing list > >>>>>>>>> use-livecode at lists.runrev.com > >>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your > >>>>>>>>> > >>>>>>>> subscription preferences: > >>>>>> > >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>>>>>>> > >>>>>>>> _______________________________________________ > >>>>>>>> use-livecode mailing list > >>>>>>>> use-livecode at lists.runrev.com > >>>>>>>> Please visit this url to subscribe, unsubscribe and manage your > >>>>>>>> > >>>>>>> subscription preferences: > >>>>>> > >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>>>>>> > >>>>>>> > >>>>>>> _______________________________________________ > >>>>>>> use-livecode mailing list > >>>>>>> use-livecode at lists.runrev.com > >>>>>>> Please visit this url to subscribe, unsubscribe and manage your > >>>>>>> > >>>>>> subscription preferences: > >>>>>> > >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>>>>> > >>>>>> > >>>>>> _______________________________________________ > >>>>>> use-livecode mailing list > >>>>>> use-livecode at lists.runrev.com > >>>>>> Please visit this url to subscribe, unsubscribe and manage your > >>>>>> subscription preferences: > >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>>>> > >>>>>> _______________________________________________ > >>>>> use-livecode mailing list > >>>>> use-livecode at lists.runrev.com > >>>>> Please visit this url to subscribe, unsubscribe and manage your > >>>>> subscription preferences: > >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>>> > >>>> > >>>> > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode at lists.runrev.com > >>>> Please visit this url to subscribe, unsubscribe and manage your > >>>> subscription preferences: > >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 16 08:58:42 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 16 Nov 2016 15:58:42 +0200 Subject: autoScript In-Reply-To: <94911B15-D187-4FEE-92D3-1A3A6C895F64@me.com> References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> <6b640252-31a3-02f2-d624-630f3b111b14@gmail.com> <0611F8A2-8854-4587-9155-DDE7011F345A@me.com> <6fc47bd0-23ab-135d-fda7-a152fba3c2c6@gmail.com> <94911B15-D187-4FEE-92D3-1A3A6C895F64@me.com> Message-ID: <7af27618-f01b-09ef-5d1f-3242e57794f6@gmail.com> Ha, Ha; yes, to be honest, I am drinking coffee I made myself; but, for the purposes of the posting I decided to NOT give you the 5204 line script I am trying to move: that would be worse than the disappointment of finding that Livecode could not make coffee! Richmond. On 16.11.2016 15:43, Tore Nilsen wrote: > At this point in the discussion I feel a need to clarify that while also the original the script (make me coffee) was set, the button BB did not actually make coffee. I still had to go to the kitchen and perform the necessary magic myself. > > And I think that most people will find that making coffee is slightly beyond the capabilities of LC, regardless of version or OS. > > Regards > Tore > > >> 16. nov. 2016 kl. 14.37 skrev Mike Bonner : >> >> Ah, my apologies. In that case I'm surprised it DOESN'T work in 8 (when >> including on mouseup and end mouseup) >> >> Now I'm curious. If I recall correctly, setting a script with an error of >> some type, causes the script to be placed into the button but not actually >> be functional. Since the more recent versions of lc seem to give less >> latitude in syntax, you might check the result (and it?) after setting the >> script. In addition, if you go into the script editor afterwards does the >> script actually appear as it should? If you enter a space (just to set the >> dirty flag) and then re-apply the script from inside the editor, does it >> give an error? >> I think, setting the script pretty much works no matter what, but if the >> script has a problem, while the script is THERE, it just won't work until >> the problem is resolved and reapplied. >> >> On Wed, Nov 16, 2016 at 6:28 AM, Richmond >> wrote: >> >>> I didn't bother to include the 'on mouseUp' and 'end mouseUp' in my initial >>> message as I thought they would be assumed. >>> >>> Richmond. >>> >>> >>> On 16.11.2016 15:24, Mike Bonner wrote: >>> >>>> I'm surprised it works in 7 since it should result in an orphaned line of >>>> code with no handler designation. (as indicated by tore, you should need >>>> to >>>> include the on mouseup and end mouseup) >>>> >>>> On Wed, Nov 16, 2016 at 6:22 AM, Tore Nilsen wrote: >>>> >>>> On MacOS 10.12.2 >>>>> >>>>> 16. nov. 2016 kl. 14.21 skrev Richmond : >>>>>> Thanks, Tore, >>>>>> >>>>>> On which operating system is that? >>>>>> >>>>>> Richmond. >>>>>> >>>>>> On 16.11.2016 15:10, Tore Nilsen wrote: >>>>>> >>>>>>> Putting >>>>>>> >>>>>>> on mouseUp >>>>>>> >>>>>>> put "on mouseUp" & return & "beep" & return & "end mouseUp" into SKRIPT >>>>>>> >>>>>>> set the script of btn "BB" to SKRIPT >>>>>>> >>>>>>> end mouseUp >>>>>>> >>>>>>> >>>>>>> into the script of the first button makes button BB trigger a beep as >>>>>>> >>>>>> expected, also in LC 8.1.1 >>>>>>> Regards >>>>>>> Tore >>>>>>> >>>>>>> 16. nov. 2016 kl. 13.57 skrev Richmond : >>>>>>>> Nothing is wrong with this in Livecode 7.1.4 >>>>>>>> >>>>>>>> BUT is does not work in Livecode 8.1.1 >>>>>>>> >>>>>>>> Bug 18864 >>>>>>>> >>>>>>>> Richmond. >>>>>>>> >>>>>>>> On 16.11.2016 14:44, Richmond wrote: >>>>>>>> >>>>>>>>> I wonder what's wrong with this: >>>>>>>>> >>>>>>>>> on mouseUp >>>>>>>>> put "make me coffee" into SKRIPT >>>>>>>>> set the script of btn "BB" to SKRIPT >>>>>>>>> end mouseUp >>>>>>>>> >>>>>>>>> >>>>>>>>> Richmond. >>>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> use-livecode mailing list >>>>>>>> use-livecode at lists.runrev.com >>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>> >>>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>> >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> >>>>> subscription preferences: >>>>> >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 16 08:59:43 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 16 Nov 2016 15:59:43 +0200 Subject: autoScript In-Reply-To: References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> <6b640252-31a3-02f2-d624-630f3b111b14@gmail.com> <0611F8A2-8854-4587-9155-DDE7011F345A@me.com> <6fc47bd0-23ab-135d-fda7-a152fba3c2c6@gmail.com> <94911B15-D187-4FEE-92D3-1A3A6C895F64@me.com> Message-ID: <3acabbff-6fec-d37b-ab13-e70e31f24754@gmail.com> Erm: "I became hot and delicious" (sounds a bit kinky, frankly), not any potential coffee . . . Richmond. On 16.11.2016 15:49, Mike Bonner wrote: > On the contrary, when i tried it here I became hot and delicious, and great > to wake up to in the morning. Alas, I had added an undo function and have > since reverted to my normal hermity self. I tried "make me rich" once, but > I just ended up being triple chocolate cake. > > On Wed, Nov 16, 2016 at 6:43 AM, Tore Nilsen wrote: > >> At this point in the discussion I feel a need to clarify that while also >> the original the script (make me coffee) was set, the button BB did not >> actually make coffee. I still had to go to the kitchen and perform the >> necessary magic myself. >> >> And I think that most people will find that making coffee is slightly >> beyond the capabilities of LC, regardless of version or OS. >> >> Regards >> Tore >> >> >>> 16. nov. 2016 kl. 14.37 skrev Mike Bonner : >>> >>> Ah, my apologies. In that case I'm surprised it DOESN'T work in 8 (when >>> including on mouseup and end mouseup) >>> >>> Now I'm curious. If I recall correctly, setting a script with an error >> of >>> some type, causes the script to be placed into the button but not >> actually >>> be functional. Since the more recent versions of lc seem to give less >>> latitude in syntax, you might check the result (and it?) after setting >> the >>> script. In addition, if you go into the script editor afterwards does >> the >>> script actually appear as it should? If you enter a space (just to set >> the >>> dirty flag) and then re-apply the script from inside the editor, does it >>> give an error? >>> I think, setting the script pretty much works no matter what, but if the >>> script has a problem, while the script is THERE, it just won't work until >>> the problem is resolved and reapplied. >>> >>> On Wed, Nov 16, 2016 at 6:28 AM, Richmond >>> wrote: >>> >>>> I didn't bother to include the 'on mouseUp' and 'end mouseUp' in my >> initial >>>> message as I thought they would be assumed. >>>> >>>> Richmond. >>>> >>>> >>>> On 16.11.2016 15:24, Mike Bonner wrote: >>>> >>>>> I'm surprised it works in 7 since it should result in an orphaned line >> of >>>>> code with no handler designation. (as indicated by tore, you should >> need >>>>> to >>>>> include the on mouseup and end mouseup) >>>>> >>>>> On Wed, Nov 16, 2016 at 6:22 AM, Tore Nilsen >> wrote: >>>>> On MacOS 10.12.2 >>>>>> >>>>>> 16. nov. 2016 kl. 14.21 skrev Richmond : >>>>>>> Thanks, Tore, >>>>>>> >>>>>>> On which operating system is that? >>>>>>> >>>>>>> Richmond. >>>>>>> >>>>>>> On 16.11.2016 15:10, Tore Nilsen wrote: >>>>>>> >>>>>>>> Putting >>>>>>>> >>>>>>>> on mouseUp >>>>>>>> >>>>>>>> put "on mouseUp" & return & "beep" & return & "end mouseUp" into >> SKRIPT >>>>>>>> set the script of btn "BB" to SKRIPT >>>>>>>> >>>>>>>> end mouseUp >>>>>>>> >>>>>>>> >>>>>>>> into the script of the first button makes button BB trigger a beep >> as >>>>>>> expected, also in LC 8.1.1 >>>>>>>> Regards >>>>>>>> Tore >>>>>>>> >>>>>>>> 16. nov. 2016 kl. 13.57 skrev Richmond >> : >>>>>>>>> Nothing is wrong with this in Livecode 7.1.4 >>>>>>>>> >>>>>>>>> BUT is does not work in Livecode 8.1.1 >>>>>>>>> >>>>>>>>> Bug 18864 >>>>>>>>> >>>>>>>>> Richmond. >>>>>>>>> >>>>>>>>> On 16.11.2016 14:44, Richmond wrote: >>>>>>>>> >>>>>>>>>> I wonder what's wrong with this: >>>>>>>>>> >>>>>>>>>> on mouseUp >>>>>>>>>> put "make me coffee" into SKRIPT >>>>>>>>>> set the script of btn "BB" to SKRIPT >>>>>>>>>> end mouseUp >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Richmond. >>>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> use-livecode mailing list >>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>> >>>>>>>> subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>> _______________________________________________ >>>>>>>> use-livecode mailing list >>>>>>>> use-livecode at lists.runrev.com >>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>> >>>>>>> subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>> >>>>>> subscription preferences: >>>>>> >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 16 09:02:52 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 16 Nov 2016 16:02:52 +0200 Subject: autoScript In-Reply-To: References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> <6b640252-31a3-02f2-d624-630f3b111b14@gmail.com> <0611F8A2-8854-4587-9155-DDE7011F345A@me.com> <6fc47bd0-23ab-135d-fda7-a152fba3c2c6@gmail.com> <94911B15-D187-4FEE-92D3-1A3A6C895F64@me.com> <398902D9-B0F1-4375-928B-127335E2B568@me.com> Message-ID: Dunno about that: I suffer from hardWork, creativity and perseverance, but there are no signs on even payForMyCoffee let alone makeMeRich . . . could be something to do with too many uses of the term 'wrongNiche' in my code . . . now back to the Sanskrit . . . Love, Richmond. On 16.11.2016 15:57, Mike Bonner wrote: > I suspect its a misunderstanding of the command. If I recall correctly it > requires a library of support function such as hardWork() creativity() and > perseverance() Though I guess there are a few people out there who make it > work by simply using the blindLuck() function over and over until the rng > pops out the right combination. > > On Wed, Nov 16, 2016 at 6:53 AM, Tore Nilsen wrote: > >> Has anyone ever been able to make the ?makeMeRich? command work? If not, >> has anyone filed a bug report? >> >> Tore >>> 16. nov. 2016 kl. 14.49 skrev Mike Bonner : >>> >>> On the contrary, when i tried it here I became hot and delicious, and >> great >>> to wake up to in the morning. Alas, I had added an undo function and >> have >>> since reverted to my normal hermity self. I tried "make me rich" once, >> but >>> I just ended up being triple chocolate cake. >>> >>> On Wed, Nov 16, 2016 at 6:43 AM, Tore Nilsen wrote: >>> >>>> At this point in the discussion I feel a need to clarify that while also >>>> the original the script (make me coffee) was set, the button BB did not >>>> actually make coffee. I still had to go to the kitchen and perform the >>>> necessary magic myself. >>>> >>>> And I think that most people will find that making coffee is slightly >>>> beyond the capabilities of LC, regardless of version or OS. >>>> >>>> Regards >>>> Tore >>>> >>>> >>>>> 16. nov. 2016 kl. 14.37 skrev Mike Bonner : >>>>> >>>>> Ah, my apologies. In that case I'm surprised it DOESN'T work in 8 >> (when >>>>> including on mouseup and end mouseup) >>>>> >>>>> Now I'm curious. If I recall correctly, setting a script with an error >>>> of >>>>> some type, causes the script to be placed into the button but not >>>> actually >>>>> be functional. Since the more recent versions of lc seem to give less >>>>> latitude in syntax, you might check the result (and it?) after setting >>>> the >>>>> script. In addition, if you go into the script editor afterwards does >>>> the >>>>> script actually appear as it should? If you enter a space (just to set >>>> the >>>>> dirty flag) and then re-apply the script from inside the editor, does >> it >>>>> give an error? >>>>> I think, setting the script pretty much works no matter what, but if >> the >>>>> script has a problem, while the script is THERE, it just won't work >> until >>>>> the problem is resolved and reapplied. >>>>> >>>>> On Wed, Nov 16, 2016 at 6:28 AM, Richmond >>>> wrote: >>>>> >>>>>> I didn't bother to include the 'on mouseUp' and 'end mouseUp' in my >>>> initial >>>>>> message as I thought they would be assumed. >>>>>> >>>>>> Richmond. >>>>>> >>>>>> >>>>>> On 16.11.2016 15:24, Mike Bonner wrote: >>>>>> >>>>>>> I'm surprised it works in 7 since it should result in an orphaned >> line >>>> of >>>>>>> code with no handler designation. (as indicated by tore, you should >>>> need >>>>>>> to >>>>>>> include the on mouseup and end mouseup) >>>>>>> >>>>>>> On Wed, Nov 16, 2016 at 6:22 AM, Tore Nilsen >>>> wrote: >>>>>>> On MacOS 10.12.2 >>>>>>>> >>>>>>>> 16. nov. 2016 kl. 14.21 skrev Richmond >> : >>>>>>>>> Thanks, Tore, >>>>>>>>> >>>>>>>>> On which operating system is that? >>>>>>>>> >>>>>>>>> Richmond. >>>>>>>>> >>>>>>>>> On 16.11.2016 15:10, Tore Nilsen wrote: >>>>>>>>> >>>>>>>>>> Putting >>>>>>>>>> >>>>>>>>>> on mouseUp >>>>>>>>>> >>>>>>>>>> put "on mouseUp" & return & "beep" & return & "end mouseUp" into >>>> SKRIPT >>>>>>>>>> set the script of btn "BB" to SKRIPT >>>>>>>>>> >>>>>>>>>> end mouseUp >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> into the script of the first button makes button BB trigger a beep >>>> as >>>>>>>>> expected, also in LC 8.1.1 >>>>>>>>>> Regards >>>>>>>>>> Tore >>>>>>>>>> >>>>>>>>>> 16. nov. 2016 kl. 13.57 skrev Richmond < >> richmondmathewson at gmail.com >>>>> : >>>>>>>>>>> Nothing is wrong with this in Livecode 7.1.4 >>>>>>>>>>> >>>>>>>>>>> BUT is does not work in Livecode 8.1.1 >>>>>>>>>>> >>>>>>>>>>> Bug 18864 >>>>>>>>>>> >>>>>>>>>>> Richmond. >>>>>>>>>>> >>>>>>>>>>> On 16.11.2016 14:44, Richmond wrote: >>>>>>>>>>> >>>>>>>>>>>> I wonder what's wrong with this: >>>>>>>>>>>> >>>>>>>>>>>> on mouseUp >>>>>>>>>>>> put "make me coffee" into SKRIPT >>>>>>>>>>>> set the script of btn "BB" to SKRIPT >>>>>>>>>>>> end mouseUp >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> Richmond. >>>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> use-livecode mailing list >>>>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>>>> >>>>>>>>>> subscription preferences: >>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>>> _______________________________________________ >>>>>>>>>> use-livecode mailing list >>>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>>> >>>>>>>>> subscription preferences: >>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>> _______________________________________________ >>>>>>>>> use-livecode mailing list >>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>> >>>>>>>> subscription preferences: >>>>>>>> >>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> use-livecode mailing list >>>>>>>> use-livecode at lists.runrev.com >>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>> subscription preferences: >>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>> subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Wed Nov 16 09:06:16 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 16 Nov 2016 07:06:16 -0700 Subject: autoScript In-Reply-To: References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> <6b640252-31a3-02f2-d624-630f3b111b14@gmail.com> <0611F8A2-8854-4587-9155-DDE7011F345A@me.com> <6fc47bd0-23ab-135d-fda7-a152fba3c2c6@gmail.com> <94911B15-D187-4FEE-92D3-1A3A6C895F64@me.com> <398902D9-B0F1-4375-928B-127335E2B568@me.com> Message-ID: My apology for the inadvertent foray into the kink domain. The only kinks in my life are on the radio, and in my neck. (shuts up now to avoid digging the hole deeper) On Wed, Nov 16, 2016 at 7:02 AM, Richmond wrote: > Dunno about that: I suffer from hardWork, creativity and perseverance, but > there are no > signs on even payForMyCoffee let alone makeMeRich . . . > > could be something to do with too many uses of the term 'wrongNiche' in my > code . . . > > now back to the Sanskrit . . . > > Love, Richmond. > > > On 16.11.2016 15:57, Mike Bonner wrote: > >> I suspect its a misunderstanding of the command. If I recall correctly it >> requires a library of support function such as hardWork() creativity() and >> perseverance() Though I guess there are a few people out there who make >> it >> work by simply using the blindLuck() function over and over until the rng >> pops out the right combination. >> >> On Wed, Nov 16, 2016 at 6:53 AM, Tore Nilsen wrote: >> >> Has anyone ever been able to make the ?makeMeRich? command work? If not, >>> has anyone filed a bug report? >>> >>> Tore >>> >>>> 16. nov. 2016 kl. 14.49 skrev Mike Bonner : >>>> >>>> On the contrary, when i tried it here I became hot and delicious, and >>>> >>> great >>> >>>> to wake up to in the morning. Alas, I had added an undo function and >>>> >>> have >>> >>>> since reverted to my normal hermity self. I tried "make me rich" once, >>>> >>> but >>> >>>> I just ended up being triple chocolate cake. >>>> >>>> On Wed, Nov 16, 2016 at 6:43 AM, Tore Nilsen >>>> wrote: >>>> >>>> At this point in the discussion I feel a need to clarify that while also >>>>> the original the script (make me coffee) was set, the button BB did not >>>>> actually make coffee. I still had to go to the kitchen and perform the >>>>> necessary magic myself. >>>>> >>>>> And I think that most people will find that making coffee is slightly >>>>> beyond the capabilities of LC, regardless of version or OS. >>>>> >>>>> Regards >>>>> Tore >>>>> >>>>> >>>>> 16. nov. 2016 kl. 14.37 skrev Mike Bonner : >>>>>> >>>>>> Ah, my apologies. In that case I'm surprised it DOESN'T work in 8 >>>>>> >>>>> (when >>> >>>> including on mouseup and end mouseup) >>>>>> >>>>>> Now I'm curious. If I recall correctly, setting a script with an >>>>>> error >>>>>> >>>>> of >>>>> >>>>>> some type, causes the script to be placed into the button but not >>>>>> >>>>> actually >>>>> >>>>>> be functional. Since the more recent versions of lc seem to give less >>>>>> latitude in syntax, you might check the result (and it?) after setting >>>>>> >>>>> the >>>>> >>>>>> script. In addition, if you go into the script editor afterwards does >>>>>> >>>>> the >>>>> >>>>>> script actually appear as it should? If you enter a space (just to >>>>>> set >>>>>> >>>>> the >>>>> >>>>>> dirty flag) and then re-apply the script from inside the editor, does >>>>>> >>>>> it >>> >>>> give an error? >>>>>> I think, setting the script pretty much works no matter what, but if >>>>>> >>>>> the >>> >>>> script has a problem, while the script is THERE, it just won't work >>>>>> >>>>> until >>> >>>> the problem is resolved and reapplied. >>>>>> >>>>>> On Wed, Nov 16, 2016 at 6:28 AM, Richmond < >>>>>> richmondmathewson at gmail.com >>>>>> wrote: >>>>>> >>>>>> I didn't bother to include the 'on mouseUp' and 'end mouseUp' in my >>>>>>> >>>>>> initial >>>>> >>>>>> message as I thought they would be assumed. >>>>>>> >>>>>>> Richmond. >>>>>>> >>>>>>> >>>>>>> On 16.11.2016 15:24, Mike Bonner wrote: >>>>>>> >>>>>>> I'm surprised it works in 7 since it should result in an orphaned >>>>>>>> >>>>>>> line >>> >>>> of >>>>> >>>>>> code with no handler designation. (as indicated by tore, you should >>>>>>>> >>>>>>> need >>>>> >>>>>> to >>>>>>>> include the on mouseup and end mouseup) >>>>>>>> >>>>>>>> On Wed, Nov 16, 2016 at 6:22 AM, Tore Nilsen >>>>>>>> >>>>>>> wrote: >>>>> >>>>>> On MacOS 10.12.2 >>>>>>>> >>>>>>>>> >>>>>>>>> 16. nov. 2016 kl. 14.21 skrev Richmond < >>>>>>>>> richmondmathewson at gmail.com >>>>>>>>> >>>>>>>> : >>>> >>>>> Thanks, Tore, >>>>>>>>>> >>>>>>>>>> On which operating system is that? >>>>>>>>>> >>>>>>>>>> Richmond. >>>>>>>>>> >>>>>>>>>> On 16.11.2016 15:10, Tore Nilsen wrote: >>>>>>>>>> >>>>>>>>>> Putting >>>>>>>>>>> >>>>>>>>>>> on mouseUp >>>>>>>>>>> >>>>>>>>>>> put "on mouseUp" & return & "beep" & return & "end mouseUp" into >>>>>>>>>>> >>>>>>>>>> SKRIPT >>>>> >>>>>> set the script of btn "BB" to SKRIPT >>>>>>>>>>> >>>>>>>>>>> end mouseUp >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> into the script of the first button makes button BB trigger a >>>>>>>>>>> beep >>>>>>>>>>> >>>>>>>>>> as >>>>> >>>>>> expected, also in LC 8.1.1 >>>>>>>>>> >>>>>>>>>>> Regards >>>>>>>>>>> Tore >>>>>>>>>>> >>>>>>>>>>> 16. nov. 2016 kl. 13.57 skrev Richmond < >>>>>>>>>>> >>>>>>>>>> richmondmathewson at gmail.com >>> >>>> : >>>>>> >>>>>>> Nothing is wrong with this in Livecode 7.1.4 >>>>>>>>>>>> >>>>>>>>>>>> BUT is does not work in Livecode 8.1.1 >>>>>>>>>>>> >>>>>>>>>>>> Bug 18864 >>>>>>>>>>>> >>>>>>>>>>>> Richmond. >>>>>>>>>>>> >>>>>>>>>>>> On 16.11.2016 14:44, Richmond wrote: >>>>>>>>>>>> >>>>>>>>>>>> I wonder what's wrong with this: >>>>>>>>>>>>> >>>>>>>>>>>>> on mouseUp >>>>>>>>>>>>> put "make me coffee" into SKRIPT >>>>>>>>>>>>> set the script of btn "BB" to SKRIPT >>>>>>>>>>>>> end mouseUp >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> Richmond. >>>>>>>>>>>>> >>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>> use-livecode mailing list >>>>>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>>>>> >>>>>>>>>>>> subscription preferences: >>>>>>>>>>> >>>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> use-livecode mailing list >>>>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>>>> >>>>>>>>>>> subscription preferences: >>>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>>> _______________________________________________ >>>>>>>>>> use-livecode mailing list >>>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>>> >>>>>>>>>> subscription preferences: >>>>>>>>> >>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>> use-livecode mailing list >>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>> subscription preferences: >>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> >>>>>>>> use-livecode mailing list >>>>>>>> use-livecode at lists.runrev.com >>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>> subscription preferences: >>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>> >>>>>>>> >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>> subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> >>>>> subscription preferences: >>>>> >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> >>> subscription preferences: >>> >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 16 09:13:31 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 16 Nov 2016 06:13:31 -0800 Subject: autoScript In-Reply-To: References: Message-ID: <8a6456bb-d92f-5b6b-1904-b91fc160f6fc@fourthworld.com> Richmond wrote: > Nothing is wrong with this in Livecode 7.1.4 > > BUT is does not work in Livecode 8.1.1 > > Bug 18864 > > Richmond. > > On 16.11.2016 14:44, Richmond wrote: >> I wonder what's wrong with this: >> >> on mouseUp >> put "make me coffee" into SKRIPT >> set the script of btn "BB" to SKRIPT >> end mouseUp >> >> >> Richmond. Your sample stack included in the bug report, as well as a more complete example that includes an actual handler definition, both work as expected in v9dp1 under Ubuntu 14..04. Think about it: if the "set the script..." command didn't work, the Script Editor wouldn't work, and it wouldn't be possible to do any scripting in LiveCode at all. I suspect something else is in play in your running of the test.... -- 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 tore.nilsen at me.com Wed Nov 16 09:14:05 2016 From: tore.nilsen at me.com (Tore Nilsen) Date: Wed, 16 Nov 2016 15:14:05 +0100 Subject: autoScript In-Reply-To: References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> <6b640252-31a3-02f2-d624-630f3b111b14@gmail.com> <0611F8A2-8854-4587-9155-DDE7011F345A@me.com> <6fc47bd0-23ab-135d-fda7-a152fba3c2c6@gmail.com> <94911B15-D187-4FEE-92D3-1A3A6C895F64@me.com> <398902D9-B0F1-4375-928B-127335E2B568@me.com> Message-ID: Will the chances of getting rich increase if the randomSeed property is set to a higher value? I guess the the blindLuck() function makes heavy use of random(goodLuck) Or maybe there is an undocumented goodLuckSeed property lurking somewhere in the darkest corners of the engine? > 16. nov. 2016 kl. 14.57 skrev Mike Bonner : > > I suspect its a misunderstanding of the command. If I recall correctly it > requires a library of support function such as hardWork() creativity() and > perseverance() Though I guess there are a few people out there who make it > work by simply using the blindLuck() function over and over until the rng > pops out the right combination. > > On Wed, Nov 16, 2016 at 6:53 AM, Tore Nilsen wrote: > >> Has anyone ever been able to make the ?makeMeRich? command work? If not, >> has anyone filed a bug report? >> >> Tore >>> 16. nov. 2016 kl. 14.49 skrev Mike Bonner : >>> >>> On the contrary, when i tried it here I became hot and delicious, and >> great >>> to wake up to in the morning. Alas, I had added an undo function and >> have >>> since reverted to my normal hermity self. I tried "make me rich" once, >> but >>> I just ended up being triple chocolate cake. >>> >>> On Wed, Nov 16, 2016 at 6:43 AM, Tore Nilsen wrote: >>> >>>> At this point in the discussion I feel a need to clarify that while also >>>> the original the script (make me coffee) was set, the button BB did not >>>> actually make coffee. I still had to go to the kitchen and perform the >>>> necessary magic myself. >>>> >>>> And I think that most people will find that making coffee is slightly >>>> beyond the capabilities of LC, regardless of version or OS. >>>> >>>> Regards >>>> Tore >>>> >>>> >>>>> 16. nov. 2016 kl. 14.37 skrev Mike Bonner : >>>>> >>>>> Ah, my apologies. In that case I'm surprised it DOESN'T work in 8 >> (when >>>>> including on mouseup and end mouseup) >>>>> >>>>> Now I'm curious. If I recall correctly, setting a script with an error >>>> of >>>>> some type, causes the script to be placed into the button but not >>>> actually >>>>> be functional. Since the more recent versions of lc seem to give less >>>>> latitude in syntax, you might check the result (and it?) after setting >>>> the >>>>> script. In addition, if you go into the script editor afterwards does >>>> the >>>>> script actually appear as it should? If you enter a space (just to set >>>> the >>>>> dirty flag) and then re-apply the script from inside the editor, does >> it >>>>> give an error? >>>>> I think, setting the script pretty much works no matter what, but if >> the >>>>> script has a problem, while the script is THERE, it just won't work >> until >>>>> the problem is resolved and reapplied. >>>>> >>>>> On Wed, Nov 16, 2016 at 6:28 AM, Richmond >> >>>>> wrote: >>>>> >>>>>> I didn't bother to include the 'on mouseUp' and 'end mouseUp' in my >>>> initial >>>>>> message as I thought they would be assumed. >>>>>> >>>>>> Richmond. >>>>>> >>>>>> >>>>>> On 16.11.2016 15:24, Mike Bonner wrote: >>>>>> >>>>>>> I'm surprised it works in 7 since it should result in an orphaned >> line >>>> of >>>>>>> code with no handler designation. (as indicated by tore, you should >>>> need >>>>>>> to >>>>>>> include the on mouseup and end mouseup) >>>>>>> >>>>>>> On Wed, Nov 16, 2016 at 6:22 AM, Tore Nilsen >>>> wrote: >>>>>>> >>>>>>> On MacOS 10.12.2 >>>>>>>> >>>>>>>> >>>>>>>> 16. nov. 2016 kl. 14.21 skrev Richmond >> : >>>>>>>>> >>>>>>>>> Thanks, Tore, >>>>>>>>> >>>>>>>>> On which operating system is that? >>>>>>>>> >>>>>>>>> Richmond. >>>>>>>>> >>>>>>>>> On 16.11.2016 15:10, Tore Nilsen wrote: >>>>>>>>> >>>>>>>>>> Putting >>>>>>>>>> >>>>>>>>>> on mouseUp >>>>>>>>>> >>>>>>>>>> put "on mouseUp" & return & "beep" & return & "end mouseUp" into >>>> SKRIPT >>>>>>>>>> >>>>>>>>>> set the script of btn "BB" to SKRIPT >>>>>>>>>> >>>>>>>>>> end mouseUp >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> into the script of the first button makes button BB trigger a beep >>>> as >>>>>>>>>> >>>>>>>>> expected, also in LC 8.1.1 >>>>>>>> >>>>>>>>> >>>>>>>>>> >>>>>>>>>> Regards >>>>>>>>>> Tore >>>>>>>>>> >>>>>>>>>> 16. nov. 2016 kl. 13.57 skrev Richmond < >> richmondmathewson at gmail.com >>>>> : >>>>>>>>>>> >>>>>>>>>>> Nothing is wrong with this in Livecode 7.1.4 >>>>>>>>>>> >>>>>>>>>>> BUT is does not work in Livecode 8.1.1 >>>>>>>>>>> >>>>>>>>>>> Bug 18864 >>>>>>>>>>> >>>>>>>>>>> Richmond. >>>>>>>>>>> >>>>>>>>>>> On 16.11.2016 14:44, Richmond wrote: >>>>>>>>>>> >>>>>>>>>>>> I wonder what's wrong with this: >>>>>>>>>>>> >>>>>>>>>>>> on mouseUp >>>>>>>>>>>> put "make me coffee" into SKRIPT >>>>>>>>>>>> set the script of btn "BB" to SKRIPT >>>>>>>>>>>> end mouseUp >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> Richmond. >>>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> use-livecode mailing list >>>>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>>>> >>>>>>>>>> subscription preferences: >>>>>>>> >>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> use-livecode mailing list >>>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>>> >>>>>>>>> subscription preferences: >>>>>>>> >>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> use-livecode mailing list >>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>> >>>>>>>> subscription preferences: >>>>>>>> >>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> use-livecode mailing list >>>>>>>> use-livecode at lists.runrev.com >>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>> subscription preferences: >>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>> subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 16 09:47:00 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 16 Nov 2016 16:47:00 +0200 Subject: autoScript In-Reply-To: <8a6456bb-d92f-5b6b-1904-b91fc160f6fc@fourthworld.com> References: <8a6456bb-d92f-5b6b-1904-b91fc160f6fc@fourthworld.com> Message-ID: <816a7cb7-7e3b-b6ff-5d32-3f0e8fa2f631@gmail.com> I honestly don't know. I have just tried my stack in LC 9dp1 and, yes, the thing worked. So I tried it again in LC 8.1.1 and the thing did not work. Richmond. On 16.11.2016 16:13, Richard Gaskin wrote: > Richmond wrote: > >> Nothing is wrong with this in Livecode 7.1.4 >> >> BUT is does not work in Livecode 8.1.1 >> >> Bug 18864 >> >> Richmond. >> >> On 16.11.2016 14:44, Richmond wrote: >>> I wonder what's wrong with this: >>> >>> on mouseUp >>> put "make me coffee" into SKRIPT >>> set the script of btn "BB" to SKRIPT >>> end mouseUp >>> >>> >>> Richmond. > > Your sample stack included in the bug report, as well as a more > complete example that includes an actual handler definition, both work > as expected in v9dp1 under Ubuntu 14..04. > > Think about it: if the "set the script..." command didn't work, the > Script Editor wouldn't work, and it wouldn't be possible to do any > scripting in LiveCode at all. > > I suspect something else is in play in your running of the test.... > From bobsneidar at iotecdigital.com Tue Nov 15 12:30:54 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 15 Nov 2016 17:30:54 +0000 Subject: savingStandalone message In-Reply-To: References: Message-ID: <4C181AB4-25B3-4891-92AE-ECE8A27F9532@iotecdigital.com> Okay my standalone building bug is probably related to this one. I can provide any testing and feedback you need on this. For instance, I just quit all versions of Livecode, opened LC 8.1.2 rc1, ONLY opened the splash stack and NOTHING ELSE, tried to compile, and I get this dialog: A stack with the same name as the one you are trying to load is a lready open. Before loading /Users/bobsneidar/Documents/livecode Projects/Forms Generator 8/Libraries/sql_yoga.livecode, what do you want to do with stack: /Users/bobsneidar/Documents/livecode Projects/Forms Generator 8/Forms Generator/Windows/sql_yoga.livecode, libSQLYoga? Note the WINDOWS in the second file path. It looks like after it's done compiling for Windows, it is leaving the copied library in memory (why it would have that copy open I do not know), so that when it goes to comile for Mac a second library is open in memory and it wants to save/purge it. As I mentioned this started happening with 8.1.1. Bob S > On Nov 15, 2016, at 01:45 , Ali Lloyd wrote: > > Hi all, > > Various tweaks to the standalone builder seem to have broken the way the > savingStandalone message is supposed to work > http://quality.livecode.com/show_bug.cgi?id=18778 > > I have submitted a pull request that fixes it - the only wrinkle might be > that it reintroduces the following bug: > http://quality.livecode.com/show_bug.cgi?id=18364, namely that the > savingStandalone message gets sent for each build platform. > > Now, my personal view is that that is how it should work, provided the > stack state is restored before building for the next platform. It allows a > more fine-grained build step where, if we added suitable parameters to the > message, you could for example ensure substacks with platform/architecture > specific resources were not included in the standalones where they are > irrelevant. > > My question to you is the same as I asked Lyn Teyla in the above report: > > Would the following behavior be a problem for your use case, and if so why? > > store stack state (*) > repeat for each target architecture > dispatch saving standalone message > modify stack for per-arch settings > deploy stack > restore to state in (*) > dispatch standalone saved message > end repeat > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Wed Nov 16 09:54:38 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 16 Nov 2016 07:54:38 -0700 Subject: autoScript In-Reply-To: <816a7cb7-7e3b-b6ff-5d32-3f0e8fa2f631@gmail.com> References: <8a6456bb-d92f-5b6b-1904-b91fc160f6fc@fourthworld.com> <816a7cb7-7e3b-b6ff-5d32-3f0e8fa2f631@gmail.com> Message-ID: Did you check the result after setting it? Hopefully it will tell you why it failed. On Wed, Nov 16, 2016 at 7:47 AM, Richmond wrote: > I honestly don't know. > > I have just tried my stack in LC 9dp1 and, yes, the thing worked. > > So I tried it again in LC 8.1.1 and the thing did not work. > > Richmond. > > On 16.11.2016 16:13, Richard Gaskin wrote: > >> Richmond wrote: >> >> Nothing is wrong with this in Livecode 7.1.4 >>> >>> BUT is does not work in Livecode 8.1.1 >>> >>> Bug 18864 >>> >>> Richmond. >>> >>> On 16.11.2016 14:44, Richmond wrote: >>> >>>> I wonder what's wrong with this: >>>> >>>> on mouseUp >>>> put "make me coffee" into SKRIPT >>>> set the script of btn "BB" to SKRIPT >>>> end mouseUp >>>> >>>> >>>> Richmond. >>>> >>> >> Your sample stack included in the bug report, as well as a more complete >> example that includes an actual handler definition, both work as expected >> in v9dp1 under Ubuntu 14..04. >> >> Think about it: if the "set the script..." command didn't work, the >> Script Editor wouldn't work, and it wouldn't be possible to do any >> scripting in LiveCode at all. >> >> I suspect something else is in play in your running of the test.... >> >> > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 16 07:13:41 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 16 Nov 2016 14:13:41 +0200 Subject: Recoding: search and replace In-Reply-To: <7c647376-788a-0992-0d37-6669637327a7@gmail.com> References: <7c647376-788a-0992-0d37-6669637327a7@gmail.com> Message-ID: <2e83ce32-bc9b-cb7c-83f5-58d43818f919@gmail.com> So; here I am, as per usual, replying to my own message having found that nothing quite so elaborate was required: /put empty into fld "fSSS1"// // put the script of img "xxx" into fld "fSSS1"// // put the number of lines of fld "fSSS1" into TERMINUS// // put 1 into QOUNT// // repeat until QOUNT > TERMINUS// // if line QOUNT of fld "fSSS1" contains "unicodeText" then// // put line QOUNT of fld "fSSS1" into PROCESST// // put replaceText(PROCESST,"unicodeT","t") into line QOUNT of fld "fSSS1"// // end if// // if line QOUNT of fld "fSSS1" contains "useUnicode" then// // put "--deprecated code removed (useUnicode)" into line QOUNT of fld "fSSS1"// // end if// // add 1 to QOUNT// // end repeat// /// Richmond. On 6.11.2016 14:44, Richmond wrote: > I wonder if there is a way to replace this: > > set the unicodeText of fld "fDECODE" to (numToCodePoint(107) & > numToCodePoint(104)) > > with this: > > *put (numToCodePoint(107) & numToCodePoint(104)) into fld "fDECODE"* > > where /(numToCodePoint(107) & numToCodePoint(104))/ vary? > > I have no great urge to do that sort of thing manually about 6 million > times. > > Richmond. From tore.nilsen at me.com Wed Nov 16 10:20:20 2016 From: tore.nilsen at me.com (Tore Nilsen) Date: Wed, 16 Nov 2016 16:20:20 +0100 Subject: Recoding: search and replace In-Reply-To: <2e83ce32-bc9b-cb7c-83f5-58d43818f919@gmail.com> References: <7c647376-788a-0992-0d37-6669637327a7@gmail.com> <2e83ce32-bc9b-cb7c-83f5-58d43818f919@gmail.com> Message-ID: <50499DB9-8344-4E40-AFF9-A77E06D2F0D5@me.com> I think this will be even faster. Put the script directly into a variable, use a repeat for structure and replace text as needed directly in the variable. You may not notice much of a speed improvement for smaller scripts, but if the script is longer, this should execute faster than your version, as both the "repeat for" structure is faster than the "repeat with" structure, and replacing the text in a variable rather than in the field, should also be faster. Regards Tore > 16. nov. 2016 kl. 13.13 skrev Richmond : > > So; here I am, as per usual, replying to my own message having found that nothing quite so elaborate was required: > > /put empty into fld "fSSS1"// > // put the script of img "xxx" into fld "fSSS1"// > // put the number of lines of fld "fSSS1" into TERMINUS// > // put 1 into QOUNT// > // repeat until QOUNT > TERMINUS// > // if line QOUNT of fld "fSSS1" contains "unicodeText" then// > // put line QOUNT of fld "fSSS1" into PROCESST// > // put replaceText(PROCESST,"unicodeT","t") into line QOUNT of fld "fSSS1"// > // end if// > // if line QOUNT of fld "fSSS1" contains "useUnicode" then// > // put "--deprecated code removed (useUnicode)" into line QOUNT of fld "fSSS1"// > // end if// > // add 1 to QOUNT// > // end repeat// > /// > Richmond. > > On 6.11.2016 14:44, Richmond wrote: >> I wonder if there is a way to replace this: >> >> set the unicodeText of fld "fDECODE" to (numToCodePoint(107) & numToCodePoint(104)) >> >> with this: >> >> *put (numToCodePoint(107) & numToCodePoint(104)) into fld "fDECODE"* >> >> where /(numToCodePoint(107) & numToCodePoint(104))/ vary? >> >> I have no great urge to do that sort of thing manually about 6 million times. >> >> 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 tore.nilsen at me.com Wed Nov 16 10:20:58 2016 From: tore.nilsen at me.com (Tore Nilsen) Date: Wed, 16 Nov 2016 16:20:58 +0100 Subject: Recoding: search and replace In-Reply-To: <50499DB9-8344-4E40-AFF9-A77E06D2F0D5@me.com> References: <7c647376-788a-0992-0d37-6669637327a7@gmail.com> <2e83ce32-bc9b-cb7c-83f5-58d43818f919@gmail.com> <50499DB9-8344-4E40-AFF9-A77E06D2F0D5@me.com> Message-ID: <704030D6-F550-4BDB-9A45-6DB3FF2AB391@me.com> And this should be: on mouseUp put script of image "xxx" into tScriptToChange put 0 into tLineNumber repeat for each line tLine in tScriptToChange add 1 to tLineNumber if "unicodeText" is in tLine then put replaceText(tLine,"unicodeT","t") into line tLineNumber of tScriptToChange end if if "useUnicode" is in tLine then put "--deprecated code removed (useUnicode)" into line tLineNumber of tScriptToChange end if end repeat end mouseUp > 16. nov. 2016 kl. 16.20 skrev Tore Nilsen : > > I think this will be even faster. Put the script directly into a variable, use a repeat for structure and replace text as needed directly in the variable. You may not notice much of a speed improvement for smaller scripts, but if the script is longer, this should execute faster than your version, as both the "repeat for" structure is faster than the "repeat with" structure, and replacing the text in a variable rather than in the field, should also be faster. > > Regards > Tore >> 16. nov. 2016 kl. 13.13 skrev Richmond : >> >> So; here I am, as per usual, replying to my own message having found that nothing quite so elaborate was required: >> >> /put empty into fld "fSSS1"// >> // put the script of img "xxx" into fld "fSSS1"// >> // put the number of lines of fld "fSSS1" into TERMINUS// >> // put 1 into QOUNT// >> // repeat until QOUNT > TERMINUS// >> // if line QOUNT of fld "fSSS1" contains "unicodeText" then// >> // put line QOUNT of fld "fSSS1" into PROCESST// >> // put replaceText(PROCESST,"unicodeT","t") into line QOUNT of fld "fSSS1"// >> // end if// >> // if line QOUNT of fld "fSSS1" contains "useUnicode" then// >> // put "--deprecated code removed (useUnicode)" into line QOUNT of fld "fSSS1"// >> // end if// >> // add 1 to QOUNT// >> // end repeat// >> /// >> Richmond. >> >> On 6.11.2016 14:44, Richmond wrote: >>> I wonder if there is a way to replace this: >>> >>> set the unicodeText of fld "fDECODE" to (numToCodePoint(107) & numToCodePoint(104)) >>> >>> with this: >>> >>> *put (numToCodePoint(107) & numToCodePoint(104)) into fld "fDECODE"* >>> >>> where /(numToCodePoint(107) & numToCodePoint(104))/ vary? >>> >>> I have no great urge to do that sort of thing manually about 6 million times. >>> >>> Richmond. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Wed Nov 16 10:21:26 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 16 Nov 2016 08:21:26 -0700 Subject: Recoding: search and replace In-Reply-To: <2e83ce32-bc9b-cb7c-83f5-58d43818f919@gmail.com> References: <7c647376-788a-0992-0d37-6669637327a7@gmail.com> <2e83ce32-bc9b-cb7c-83f5-58d43818f919@gmail.com> Message-ID: The only thing I would do different would be to use the "repeat for each" form rather than putting into lines. If your script is really long, the time savings will add up. I THINK it will make an even greater difference because you a) have to look at a specific line, then b) you have to grab the specific line, and then c) you have to put the modified line back in to a specific line. Even if the "if" doesn't fire for a line, it will still have to count through from 1 to the line in question for every loop, getting slower as it goes. (Plus the slowdown of doing it in a field rather than a variable) I think I would change it to this: put the script of img "xxx" into tScript repeat for each line tLine in tScript switch -- for this particular thing, I find switch easier but if can be made to work case tLine contains "unicodeText" put replacetext(tline,"unicodeT","t") & cr after tNewScript break case not (tLine contains "useUnicode") put tLine & cr after tNewScript break end switch end repeat delete the last char of tNewScript set the script of img "xxx" to tNewScript if the result is not empty then answer error "There was a problem: " & the result On Wed, Nov 16, 2016 at 5:13 AM, Richmond wrote: > So; here I am, as per usual, replying to my own message having found that > nothing quite so elaborate was required: > > /put empty into fld "fSSS1"// > // put the script of img "xxx" into fld "fSSS1"// > // put the number of lines of fld "fSSS1" into TERMINUS// > // put 1 into QOUNT// > // repeat until QOUNT > TERMINUS// > // if line QOUNT of fld "fSSS1" contains "unicodeText" then// > // put line QOUNT of fld "fSSS1" into PROCESST// > // put replaceText(PROCESST,"unicodeT","t") into line QOUNT of > fld "fSSS1"// > // end if// > // if line QOUNT of fld "fSSS1" contains "useUnicode" then// > // put "--deprecated code removed (useUnicode)" into line QOUNT of > fld "fSSS1"// > // end if// > // add 1 to QOUNT// > // end repeat// > /// > Richmond. > > On 6.11.2016 14:44, Richmond wrote: > >> I wonder if there is a way to replace this: >> >> set the unicodeText of fld "fDECODE" to (numToCodePoint(107) & >> numToCodePoint(104)) >> >> with this: >> >> *put (numToCodePoint(107) & numToCodePoint(104)) into fld "fDECODE"* >> >> where /(numToCodePoint(107) & numToCodePoint(104))/ vary? >> >> I have no great urge to do that sort of thing manually about 6 million >> times. >> >> Richmond. >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Wed Nov 16 10:48:12 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 16 Nov 2016 09:48:12 -0600 Subject: autoScript In-Reply-To: References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> <6b640252-31a3-02f2-d624-630f3b111b14@gmail.com> <0611F8A2-8854-4587-9155-DDE7011F345A@me.com> <6fc47bd0-23ab-135d-fda7-a152fba3c2c6@gmail.com> <94911B15-D187-4FEE-92D3-1A3A6C895F64@me.com> <398902D9-B0F1-4375-928B-127335E2B568@me.com> Message-ID: <1586dd2f660.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> It sounds to me like there's a problem with the inheritance path. You could try looping through the childIDs and deleting any that are interfering. Note that you may be criticized by purists for this type of coding style. Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 16, 2016 8:16:22 AM Tore Nilsen wrote: > Will the chances of getting rich increase if the randomSeed property is set > to a higher value? I guess the the blindLuck() function makes heavy use of > random(goodLuck) Or maybe there is an undocumented goodLuckSeed property > lurking somewhere in the darkest corners of the engine? > > >> 16. nov. 2016 kl. 14.57 skrev Mike Bonner : >> >> I suspect its a misunderstanding of the command. If I recall correctly it >> requires a library of support function such as hardWork() creativity() and >> perseverance() Though I guess there are a few people out there who make it >> work by simply using the blindLuck() function over and over until the rng >> pops out the right combination. >> >> On Wed, Nov 16, 2016 at 6:53 AM, Tore Nilsen wrote: >> >>> Has anyone ever been able to make the ?makeMeRich? command work? If not, >>> has anyone filed a bug report? >>> >>> Tore >>>> 16. nov. 2016 kl. 14.49 skrev Mike Bonner : >>>> >>>> On the contrary, when i tried it here I became hot and delicious, and >>> great >>>> to wake up to in the morning. Alas, I had added an undo function and >>> have >>>> since reverted to my normal hermity self. I tried "make me rich" once, >>> but >>>> I just ended up being triple chocolate cake. >>>> >>>> On Wed, Nov 16, 2016 at 6:43 AM, Tore Nilsen wrote: >>>> >>>>> At this point in the discussion I feel a need to clarify that while also >>>>> the original the script (make me coffee) was set, the button BB did not >>>>> actually make coffee. I still had to go to the kitchen and perform the >>>>> necessary magic myself. >>>>> >>>>> And I think that most people will find that making coffee is slightly >>>>> beyond the capabilities of LC, regardless of version or OS. >>>>> >>>>> Regards >>>>> Tore >>>>> >>>>> >>>>>> 16. nov. 2016 kl. 14.37 skrev Mike Bonner : >>>>>> >>>>>> Ah, my apologies. In that case I'm surprised it DOESN'T work in 8 >>> (when >>>>>> including on mouseup and end mouseup) >>>>>> >>>>>> Now I'm curious. If I recall correctly, setting a script with an error >>>>> of >>>>>> some type, causes the script to be placed into the button but not >>>>> actually >>>>>> be functional. Since the more recent versions of lc seem to give less >>>>>> latitude in syntax, you might check the result (and it?) after setting >>>>> the >>>>>> script. In addition, if you go into the script editor afterwards does >>>>> the >>>>>> script actually appear as it should? If you enter a space (just to set >>>>> the >>>>>> dirty flag) and then re-apply the script from inside the editor, does >>> it >>>>>> give an error? >>>>>> I think, setting the script pretty much works no matter what, but if >>> the >>>>>> script has a problem, while the script is THERE, it just won't work >>> until >>>>>> the problem is resolved and reapplied. >>>>>> >>>>>> On Wed, Nov 16, 2016 at 6:28 AM, Richmond >>> >>>>>> wrote: >>>>>> >>>>>>> I didn't bother to include the 'on mouseUp' and 'end mouseUp' in my >>>>> initial >>>>>>> message as I thought they would be assumed. >>>>>>> >>>>>>> Richmond. >>>>>>> >>>>>>> >>>>>>> On 16.11.2016 15:24, Mike Bonner wrote: >>>>>>> >>>>>>>> I'm surprised it works in 7 since it should result in an orphaned >>> line >>>>> of >>>>>>>> code with no handler designation. (as indicated by tore, you should >>>>> need >>>>>>>> to >>>>>>>> include the on mouseup and end mouseup) >>>>>>>> >>>>>>>> On Wed, Nov 16, 2016 at 6:22 AM, Tore Nilsen >>>>> wrote: >>>>>>>> >>>>>>>> On MacOS 10.12.2 >>>>>>>>> >>>>>>>>> >>>>>>>>> 16. nov. 2016 kl. 14.21 skrev Richmond >>> : >>>>>>>>>> >>>>>>>>>> Thanks, Tore, >>>>>>>>>> >>>>>>>>>> On which operating system is that? >>>>>>>>>> >>>>>>>>>> Richmond. >>>>>>>>>> >>>>>>>>>> On 16.11.2016 15:10, Tore Nilsen wrote: >>>>>>>>>> >>>>>>>>>>> Putting >>>>>>>>>>> >>>>>>>>>>> on mouseUp >>>>>>>>>>> >>>>>>>>>>> put "on mouseUp" & return & "beep" & return & "end mouseUp" into >>>>> SKRIPT >>>>>>>>>>> >>>>>>>>>>> set the script of btn "BB" to SKRIPT >>>>>>>>>>> >>>>>>>>>>> end mouseUp >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> into the script of the first button makes button BB trigger a beep >>>>> as >>>>>>>>>>> >>>>>>>>>> expected, also in LC 8.1.1 >>>>>>>>> >>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Regards >>>>>>>>>>> Tore >>>>>>>>>>> >>>>>>>>>>> 16. nov. 2016 kl. 13.57 skrev Richmond < >>> richmondmathewson at gmail.com >>>>>> : >>>>>>>>>>>> >>>>>>>>>>>> Nothing is wrong with this in Livecode 7.1.4 >>>>>>>>>>>> >>>>>>>>>>>> BUT is does not work in Livecode 8.1.1 >>>>>>>>>>>> >>>>>>>>>>>> Bug 18864 >>>>>>>>>>>> >>>>>>>>>>>> Richmond. >>>>>>>>>>>> >>>>>>>>>>>> On 16.11.2016 14:44, Richmond wrote: >>>>>>>>>>>> >>>>>>>>>>>>> I wonder what's wrong with this: >>>>>>>>>>>>> >>>>>>>>>>>>> on mouseUp >>>>>>>>>>>>> put "make me coffee" into SKRIPT >>>>>>>>>>>>> set the script of btn "BB" to SKRIPT >>>>>>>>>>>>> end mouseUp >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> Richmond. >>>>>>>>>>>>> >>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>> use-livecode mailing list >>>>>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>>>>> >>>>>>>>>>> subscription preferences: >>>>>>>>> >>>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> use-livecode mailing list >>>>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>>>> >>>>>>>>>> subscription preferences: >>>>>>>>> >>>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> use-livecode mailing list >>>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>>> >>>>>>>>> subscription preferences: >>>>>>>>> >>>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> use-livecode mailing list >>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>> subscription preferences: >>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>> use-livecode mailing list >>>>>>>> use-livecode at lists.runrev.com >>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>> subscription preferences: >>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>> subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 16 10:52:16 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 16 Nov 2016 15:52:16 +0000 Subject: excessive bounces In-Reply-To: <5A6431D3-1CC7-43A6-A474-520CDE87790F@iotecdigital.com> References: <6690C26C-FF60-4E35-B13B-FE9551050663@gmail.com> <5634045A-EB1C-442C-B8C5-DE8FB5E13984@gmail.com> <5A6431D3-1CC7-43A6-A474-520CDE87790F@iotecdigital.com> Message-ID: make that SPAM filters. Bob S On Nov 15, 2016, at 09:02 , Bob Sneidar > wrote: I think someone or something is poisoning the snap filters. JMHO From panos.merakos at livecode.com Wed Nov 16 10:54:45 2016 From: panos.merakos at livecode.com (panagiotis merakos) Date: Wed, 16 Nov 2016 15:54:45 +0000 Subject: [ANN} Release 8.1.2 RC-2 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 8.1.2 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.2 RC-2 contains bug fixes, stability and security improvements. In total, 78 bugs have been fixed since the last stable release (LiveCode 8.1.1). Thanks to the people who tried out RC-1, we have been able to fix the following issues in this release: 18812 - IDE Crash when opening a card that contains buttons with icons 18823 - Crash during destruction of popup widget stack 18484 - MobilePlaySoundOnChannel cause app crash 18824 - Assertion failure during drag selection 18809 - Not selecting a menu choice in the PI text menu freezes PI 18810 - Cut crashes IDE 18857 - Import as control > Text file doesn't set text of control Moreover, we have updated the OpenSSL version to 1.1.0c, which includes important security improvements, including support for the latest secure encryption algorithms. All users of previous 8.1.2 RC-1 release are advised to update their copies of LiveCode as soon as possible. The full release notes are available from: http://downloads.livecode.com/livecode/8_1_2/LiveCodeNotes-8_1_2_rc_2.pdf 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 bobsneidar at iotecdigital.com Wed Nov 16 10:55:49 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 16 Nov 2016 15:55:49 +0000 Subject: autoScript In-Reply-To: References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> <6b640252-31a3-02f2-d624-630f3b111b14@gmail.com> <0611F8A2-8854-4587-9155-DDE7011F345A@me.com> <6fc47bd0-23ab-135d-fda7-a152fba3c2c6@gmail.com> <94911B15-D187-4FEE-92D3-1A3A6C895F64@me.com> Message-ID: <1F7763D5-B307-4A2B-AF2A-35C13E82EC4B@iotecdigital.com> :-) Bob S > On Nov 16, 2016, at 05:49 , Mike Bonner wrote: > > On the contrary, when i tried it here I became hot and delicious, and great > to wake up to in the morning. Alas, I had added an undo function and have > since reverted to my normal hermity self. I tried "make me rich" once, but > I just ended up being triple chocolate cake. > > On Wed, Nov 16, 2016 at 6:43 AM, Tore Nilsen wrote: > >> At this point in the discussion I feel a need to clarify that while also >> the original the script (make me coffee) was set, the button BB did not >> actually make coffee. I still had to go to the kitchen and perform the >> necessary magic myself. >> >> And I think that most people will find that making coffee is slightly >> beyond the capabilities of LC, regardless of version or OS. >> >> Regards >> Tore >> >> >>> 16. nov. 2016 kl. 14.37 skrev Mike Bonner : >>> >>> Ah, my apologies. In that case I'm surprised it DOESN'T work in 8 (when >>> including on mouseup and end mouseup) >>> >>> Now I'm curious. If I recall correctly, setting a script with an error >> of >>> some type, causes the script to be placed into the button but not >> actually >>> be functional. Since the more recent versions of lc seem to give less >>> latitude in syntax, you might check the result (and it?) after setting >> the >>> script. In addition, if you go into the script editor afterwards does >> the >>> script actually appear as it should? If you enter a space (just to set >> the >>> dirty flag) and then re-apply the script from inside the editor, does it >>> give an error? >>> I think, setting the script pretty much works no matter what, but if the >>> script has a problem, while the script is THERE, it just won't work until >>> the problem is resolved and reapplied. >>> >>> On Wed, Nov 16, 2016 at 6:28 AM, Richmond >>> wrote: >>> >>>> I didn't bother to include the 'on mouseUp' and 'end mouseUp' in my >> initial >>>> message as I thought they would be assumed. >>>> >>>> Richmond. >>>> >>>> >>>> On 16.11.2016 15:24, Mike Bonner wrote: >>>> >>>>> I'm surprised it works in 7 since it should result in an orphaned line >> of >>>>> code with no handler designation. (as indicated by tore, you should >> need >>>>> to >>>>> include the on mouseup and end mouseup) >>>>> >>>>> On Wed, Nov 16, 2016 at 6:22 AM, Tore Nilsen >> wrote: >>>>> >>>>> On MacOS 10.12.2 >>>>>> >>>>>> >>>>>> 16. nov. 2016 kl. 14.21 skrev Richmond : >>>>>>> >>>>>>> Thanks, Tore, >>>>>>> >>>>>>> On which operating system is that? >>>>>>> >>>>>>> Richmond. >>>>>>> >>>>>>> On 16.11.2016 15:10, Tore Nilsen wrote: >>>>>>> >>>>>>>> Putting >>>>>>>> >>>>>>>> on mouseUp >>>>>>>> >>>>>>>> put "on mouseUp" & return & "beep" & return & "end mouseUp" into >> SKRIPT >>>>>>>> >>>>>>>> set the script of btn "BB" to SKRIPT >>>>>>>> >>>>>>>> end mouseUp >>>>>>>> >>>>>>>> >>>>>>>> into the script of the first button makes button BB trigger a beep >> as >>>>>>>> >>>>>>> expected, also in LC 8.1.1 >>>>>> >>>>>>> >>>>>>>> >>>>>>>> Regards >>>>>>>> Tore >>>>>>>> >>>>>>>> 16. nov. 2016 kl. 13.57 skrev Richmond >> : >>>>>>>>> >>>>>>>>> Nothing is wrong with this in Livecode 7.1.4 >>>>>>>>> >>>>>>>>> BUT is does not work in Livecode 8.1.1 >>>>>>>>> >>>>>>>>> Bug 18864 >>>>>>>>> >>>>>>>>> Richmond. >>>>>>>>> >>>>>>>>> On 16.11.2016 14:44, Richmond wrote: >>>>>>>>> >>>>>>>>>> I wonder what's wrong with this: >>>>>>>>>> >>>>>>>>>> on mouseUp >>>>>>>>>> put "make me coffee" into SKRIPT >>>>>>>>>> set the script of btn "BB" to SKRIPT >>>>>>>>>> end mouseUp >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Richmond. >>>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> use-livecode mailing list >>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>> >>>>>>>> subscription preferences: >>>>>> >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> use-livecode mailing list >>>>>>>> use-livecode at lists.runrev.com >>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>> >>>>>>> subscription preferences: >>>>>> >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>> >>>>>> subscription preferences: >>>>>> >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 16 10:57:48 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 16 Nov 2016 15:57:48 +0000 Subject: autoScript In-Reply-To: <398902D9-B0F1-4375-928B-127335E2B568@me.com> References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> <6b640252-31a3-02f2-d624-630f3b111b14@gmail.com> <0611F8A2-8854-4587-9155-DDE7011F345A@me.com> <6fc47bd0-23ab-135d-fda7-a152fba3c2c6@gmail.com> <94911B15-D187-4FEE-92D3-1A3A6C895F64@me.com> <398902D9-B0F1-4375-928B-127335E2B568@me.com> Message-ID: <4B5BFA89-CF42-48AC-8F22-461583DF98AE@iotecdigital.com> I worked on this once, but I became a comic book kid and all my money was Monopoly money. Thanks for the Undo script Mike! Bob S > On Nov 16, 2016, at 05:53 , Tore Nilsen wrote: > > Has anyone ever been able to make the ?makeMeRich? command work? If not, has anyone filed a bug report? > > Tore From jacque at hyperactivesw.com Wed Nov 16 10:58:26 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 16 Nov 2016 09:58:26 -0600 Subject: autoScript In-Reply-To: <816a7cb7-7e3b-b6ff-5d32-3f0e8fa2f631@gmail.com> References: <8a6456bb-d92f-5b6b-1904-b91fc160f6fc@fourthworld.com> <816a7cb7-7e3b-b6ff-5d32-3f0e8fa2f631@gmail.com> Message-ID: <1586ddc54d0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Could you define "does not work"? The script doesn't get set? It's there but it errors? It's lazy? Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 16, 2016 8:48:57 AM Richmond wrote: > I honestly don't know. > > I have just tried my stack in LC 9dp1 and, yes, the thing worked. > > So I tried it again in LC 8.1.1 and the thing did not work. > > Richmond. > > On 16.11.2016 16:13, Richard Gaskin wrote: >> Richmond wrote: >> >>> Nothing is wrong with this in Livecode 7.1.4 >>> >>> BUT is does not work in Livecode 8.1.1 >>> >>> Bug 18864 >>> >>> Richmond. >>> >>> On 16.11.2016 14:44, Richmond wrote: >>>> I wonder what's wrong with this: >>>> >>>> on mouseUp >>>> put "make me coffee" into SKRIPT >>>> set the script of btn "BB" to SKRIPT >>>> end mouseUp >>>> >>>> >>>> Richmond. >> >> Your sample stack included in the bug report, as well as a more >> complete example that includes an actual handler definition, both work >> as expected in v9dp1 under Ubuntu 14..04. >> >> Think about it: if the "set the script..." command didn't work, the >> Script Editor wouldn't work, and it wouldn't be possible to do any >> scripting in LiveCode at all. >> >> I suspect something else is in play in your running of the test.... >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Wed Nov 16 11:20:22 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 16 Nov 2016 17:20:22 +0100 Subject: AW: German Umlaute get corrupted on macOS Sierra In-Reply-To: <0C064B9B-6DF6-4330-9B2E-89BDDC7A3789@livecode.org> References: <00b501d23e97$875d53f0$9617fbd0$@kestner.de> <0C064B9B-6DF6-4330-9B2E-89BDDC7A3789@livecode.org> Message-ID: <007501d24025$55aec390$010c4ab0$@kestner.de> Hello Hermann and Paul, good idea, but my customer checked "Tahoma" with the fontbook and it is installed and looks fine in the fontbook. I also tried the indirect enter with holding the "u" for 2 sec and then choosing the "?" from the menu, but the letter also is corrupted, when displayed in the field. Very weird. Thanks Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Paul Hibbert Gesendet: Montag, 14. November 2016 22:07 An: How to use LiveCode Betreff: Re: German Umlaute get corrupted on macOS Sierra I run Sierra on an older iMac (2009) and a newer MacBook Pro, I don?t see any problem with LC6, I just tested the German Umlaut with pasted text as well as typed text in LC5.5.5, LC6.7.11(rc2) and LC8.1.2(rc1) and I?m seeing exactly the same result in all 3 versions, the umlauts are present and correct. If it?s just one customer on one Mac, I would guess that maybe it?s a Font problem, can you check if they have the same font installed that your app uses, and if it is, maybe they need to check for font problems with the Font Book.app (should be in their Applications Folder). Paul > On Nov 14, 2016, at 8:52 AM, Tiemo Hollmann TB wrote: > > Hello, > > > > Today a customer with a Mac book Air and macOS Sierra called me and > told me that all German Umlaute in my LC 6 program are corrupted > (while they are working fine in all other programs). This is in text > displayed in fields as well as text entered in fields. > > Since I don't have Sierra yet installed on my machine, I can't > reproduce, if this is a general Sierra issue, or something special on > that customer machine. Since this is the first customer telling me > this problem I don't even know, if no other customer has installed > Sierra yet and it's a LC 6 - Sierra issue or if others already have > installed Sierra and don't see this issue. > > > > I checked with this customer all language and keyboard layout settings > and they are all standard German, like on my 10.11 machine. > > Has anybody any idea what could cause such a phenomenon? Any idea what > to look for? Or is LC 6 just incompatible with Sierra? > > 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 heather at livecode.com Wed Nov 16 11:37:33 2016 From: heather at livecode.com (Heather Laine) Date: Wed, 16 Nov 2016 16:37:33 +0000 Subject: excessive bounces In-Reply-To: References: <6690C26C-FF60-4E35-B13B-FE9551050663@gmail.com> <5634045A-EB1C-442C-B8C5-DE8FB5E13984@gmail.com> <5A6431D3-1CC7-43A6-A474-520CDE87790F@iotecdigital.com> Message-ID: <4AA82063-79B4-419D-A27A-0A97CE9B9279@livecode.com> I think I heard my name a couple of times... There does seem to be an unusual amount of bouncing going on. I've turned on some options in mailman to try and see if I can catch some and figure it out, but I would not hold your breath. I've found mailman to be a very intransigent piece of software when it comes to tracking down bounces. I do suspect its something to do with heightened spam levels, causing some of you to bounce "list" mail which is actually spam getting through. I'll report back if I discover anything illuminating. Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 16 Nov 2016, at 15:52, Bob Sneidar wrote: > > make that SPAM filters. > > Bob S > > > On Nov 15, 2016, at 09:02 , Bob Sneidar > wrote: > > I think someone or something is poisoning the snap filters. JMHO > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 16 11:43:06 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 16 Nov 2016 18:43:06 +0200 Subject: Recoding: search and replace In-Reply-To: <50499DB9-8344-4E40-AFF9-A77E06D2F0D5@me.com> References: <7c647376-788a-0992-0d37-6669637327a7@gmail.com> <2e83ce32-bc9b-cb7c-83f5-58d43818f919@gmail.com> <50499DB9-8344-4E40-AFF9-A77E06D2F0D5@me.com> Message-ID: <4f606ca3-e1cd-7128-5a91-97c492181973@gmail.com> Thanks, but to be honest I'm not worried about speed: I can go and have a bath, listen to some music, and, heaven forfend (!), go and spend some time talking with my wife. As Devawriter Pro is an ongoing project (7 years and counting) that has brought me almost exactl $300 so far the speed at which I work is neither here nor there. What I do NOT want to do is to have to recode millions of line manually; that's all. Richmond. On 16.11.2016 17:20, Tore Nilsen wrote: > I think this will be even faster. Put the script directly into a variable, use a repeat for structure and replace text as needed directly in the variable. You may not notice much of a speed improvement for smaller scripts, but if the script is longer, this should execute faster than your version, as both the "repeat for" structure is faster than the "repeat with" structure, and replacing the text in a variable rather than in the field, should also be faster. > > Regards > Tore >> 16. nov. 2016 kl. 13.13 skrev Richmond : >> >> So; here I am, as per usual, replying to my own message having found that nothing quite so elaborate was required: >> >> /put empty into fld "fSSS1"// >> // put the script of img "xxx" into fld "fSSS1"// >> // put the number of lines of fld "fSSS1" into TERMINUS// >> // put 1 into QOUNT// >> // repeat until QOUNT > TERMINUS// >> // if line QOUNT of fld "fSSS1" contains "unicodeText" then// >> // put line QOUNT of fld "fSSS1" into PROCESST// >> // put replaceText(PROCESST,"unicodeT","t") into line QOUNT of fld "fSSS1"// >> // end if// >> // if line QOUNT of fld "fSSS1" contains "useUnicode" then// >> // put "--deprecated code removed (useUnicode)" into line QOUNT of fld "fSSS1"// >> // end if// >> // add 1 to QOUNT// >> // end repeat// >> /// >> Richmond. >> >> On 6.11.2016 14:44, Richmond wrote: >>> I wonder if there is a way to replace this: >>> >>> set the unicodeText of fld "fDECODE" to (numToCodePoint(107) & numToCodePoint(104)) >>> >>> with this: >>> >>> *put (numToCodePoint(107) & numToCodePoint(104)) into fld "fDECODE"* >>> >>> where /(numToCodePoint(107) & numToCodePoint(104))/ vary? >>> >>> I have no great urge to do that sort of thing manually about 6 million times. >>> >>> Richmond. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Wed Nov 16 11:55:13 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 16 Nov 2016 18:55:13 +0200 Subject: autoScript In-Reply-To: <1586dd2f660.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> <6b640252-31a3-02f2-d624-630f3b111b14@gmail.com> <0611F8A2-8854-4587-9155-DDE7011F345A@me.com> <6fc47bd0-23ab-135d-fda7-a152fba3c2c6@gmail.com> <94911B15-D187-4FEE-92D3-1A3A6C895F64@me.com> <398902D9-B0F1-4375-928B-127335E2B568@me.com> <1586dd2f660.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: I am very, very far from being a purist, lest you have not worked that out many long years ago. When I submitted a Master's degree thesis in Applied Linguistics at Southern Illinois University at Carbondale I was criticised by 2 out of 3 of my degree committee for not sticking to 'pure' Cognitive Linguistics, but pinching bits from Functionalism, and even (Ouch) drawing on Philosophy of Language. I told the defence team that I didn't like barriers between disciplines, and as Cognitive Linguistics criticised Chomsky's Generative Linguistics for relying on sharply defined categories, there should be nothing wrong with my not stopping within any sharply defined "Congnitive Linguistics" boundaries, and that as my first degree was in Philosophy (rather more empirical than rational) I really wasn't convinced that 'Linguistics' wasn't a discipline invented by failed Philosophers who couldn't tackle Philosophy of Language for fear of getting their feet wet. The world does not deal is 'purity', and, indeed, 'purity' may be a socking great delusion that has caused the human race no end of problems. Now my approach to coding (whether in Livecode or elsewhere) is like my approach to EFL teaching: unless it is illegal, harmful or obviously immoral, as long as it gets the job done that's fine. Somebody the other day accused me of being a "computer programmer", at which point I just stopped myself laughing in their face; while they intended that to be a compliment, I'm not really sure if I like it. I would far rather see myself as a person who, when he has a job to get done, tries, by any means possible, to get it done. This is, exactly, one of the reasons I like Livecode so much: it lends itself to all styles of "getting things done" ! Richmond. On 16.11.2016 17:48, J. Landman Gay wrote: > It sounds to me like there's a problem with the inheritance path. You > could try looping through the childIDs and deleting any that are > interfering. Note that you may be criticized by purists for this type > of coding style. > > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > On November 16, 2016 8:16:22 AM Tore Nilsen wrote: > >> Will the chances of getting rich increase if the randomSeed property >> is set to a higher value? I guess the the blindLuck() function makes >> heavy use of random(goodLuck) Or maybe there is an undocumented >> goodLuckSeed property lurking somewhere in the darkest corners of the >> engine? >> >> >>> 16. nov. 2016 kl. 14.57 skrev Mike Bonner : >>> >>> I suspect its a misunderstanding of the command. If I recall >>> correctly it >>> requires a library of support function such as hardWork() >>> creativity() and >>> perseverance() Though I guess there are a few people out there who >>> make it >>> work by simply using the blindLuck() function over and over until >>> the rng >>> pops out the right combination. >>> >>> On Wed, Nov 16, 2016 at 6:53 AM, Tore Nilsen >>> wrote: >>> >>>> Has anyone ever been able to make the ?makeMeRich? command work? If >>>> not, >>>> has anyone filed a bug report? >>>> >>>> Tore >>>>> 16. nov. 2016 kl. 14.49 skrev Mike Bonner : >>>>> >>>>> On the contrary, when i tried it here I became hot and delicious, and >>>> great >>>>> to wake up to in the morning. Alas, I had added an undo function and >>>> have >>>>> since reverted to my normal hermity self. I tried "make me rich" >>>>> once, >>>> but >>>>> I just ended up being triple chocolate cake. >>>>> >>>>> On Wed, Nov 16, 2016 at 6:43 AM, Tore Nilsen >>>>> wrote: >>>>> >>>>>> At this point in the discussion I feel a need to clarify that >>>>>> while also >>>>>> the original the script (make me coffee) was set, the button BB >>>>>> did not >>>>>> actually make coffee. I still had to go to the kitchen and >>>>>> perform the >>>>>> necessary magic myself. >>>>>> >>>>>> And I think that most people will find that making coffee is >>>>>> slightly >>>>>> beyond the capabilities of LC, regardless of version or OS. >>>>>> >>>>>> Regards >>>>>> Tore >>>>>> >>>>>> >>>>>>> 16. nov. 2016 kl. 14.37 skrev Mike Bonner : >>>>>>> >>>>>>> Ah, my apologies. In that case I'm surprised it DOESN'T work in 8 >>>> (when >>>>>>> including on mouseup and end mouseup) >>>>>>> >>>>>>> Now I'm curious. If I recall correctly, setting a script with >>>>>>> an error >>>>>> of >>>>>>> some type, causes the script to be placed into the button but not >>>>>> actually >>>>>>> be functional. Since the more recent versions of lc seem to >>>>>>> give less >>>>>>> latitude in syntax, you might check the result (and it?) after >>>>>>> setting >>>>>> the >>>>>>> script. In addition, if you go into the script editor >>>>>>> afterwards does >>>>>> the >>>>>>> script actually appear as it should? If you enter a space (just >>>>>>> to set >>>>>> the >>>>>>> dirty flag) and then re-apply the script from inside the editor, >>>>>>> does >>>> it >>>>>>> give an error? >>>>>>> I think, setting the script pretty much works no matter what, >>>>>>> but if >>>> the >>>>>>> script has a problem, while the script is THERE, it just won't work >>>> until >>>>>>> the problem is resolved and reapplied. >>>>>>> >>>>>>> On Wed, Nov 16, 2016 at 6:28 AM, Richmond >>>>>>> >>>> >>>>>>> wrote: >>>>>>> >>>>>>>> I didn't bother to include the 'on mouseUp' and 'end mouseUp' >>>>>>>> in my >>>>>> initial >>>>>>>> message as I thought they would be assumed. >>>>>>>> >>>>>>>> Richmond. >>>>>>>> >>>>>>>> >>>>>>>> On 16.11.2016 15:24, Mike Bonner wrote: >>>>>>>> >>>>>>>>> I'm surprised it works in 7 since it should result in an orphaned >>>> line >>>>>> of >>>>>>>>> code with no handler designation. (as indicated by tore, you >>>>>>>>> should >>>>>> need >>>>>>>>> to >>>>>>>>> include the on mouseup and end mouseup) >>>>>>>>> >>>>>>>>> On Wed, Nov 16, 2016 at 6:22 AM, Tore Nilsen >>>>>> wrote: >>>>>>>>> >>>>>>>>> On MacOS 10.12.2 >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> 16. nov. 2016 kl. 14.21 skrev Richmond >>>>>>>>>> >>>> : >>>>>>>>>>> >>>>>>>>>>> Thanks, Tore, >>>>>>>>>>> >>>>>>>>>>> On which operating system is that? >>>>>>>>>>> >>>>>>>>>>> Richmond. >>>>>>>>>>> >>>>>>>>>>> On 16.11.2016 15:10, Tore Nilsen wrote: >>>>>>>>>>> >>>>>>>>>>>> Putting >>>>>>>>>>>> >>>>>>>>>>>> on mouseUp >>>>>>>>>>>> >>>>>>>>>>>> put "on mouseUp" & return & "beep" & return & "end mouseUp" >>>>>>>>>>>> into >>>>>> SKRIPT >>>>>>>>>>>> >>>>>>>>>>>> set the script of btn "BB" to SKRIPT >>>>>>>>>>>> >>>>>>>>>>>> end mouseUp >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> into the script of the first button makes button BB trigger >>>>>>>>>>>> a beep >>>>>> as >>>>>>>>>>>> >>>>>>>>>>> expected, also in LC 8.1.1 >>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> Regards >>>>>>>>>>>> Tore >>>>>>>>>>>> >>>>>>>>>>>> 16. nov. 2016 kl. 13.57 skrev Richmond < >>>> richmondmathewson at gmail.com >>>>>>> : >>>>>>>>>>>>> >>>>>>>>>>>>> Nothing is wrong with this in Livecode 7.1.4 >>>>>>>>>>>>> >>>>>>>>>>>>> BUT is does not work in Livecode 8.1.1 >>>>>>>>>>>>> >>>>>>>>>>>>> Bug 18864 >>>>>>>>>>>>> >>>>>>>>>>>>> Richmond. >>>>>>>>>>>>> >>>>>>>>>>>>> On 16.11.2016 14:44, Richmond wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> I wonder what's wrong with this: >>>>>>>>>>>>>> >>>>>>>>>>>>>> on mouseUp >>>>>>>>>>>>>> put "make me coffee" into SKRIPT >>>>>>>>>>>>>> set the script of btn "BB" to SKRIPT >>>>>>>>>>>>>> end mouseUp >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> Richmond. >>>>>>>>>>>>>> >>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>> use-livecode mailing list >>>>>>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>>>>>> Please visit this url to subscribe, unsubscribe and manage >>>>>>>>>>>>> your >>>>>>>>>>>>> >>>>>>>>>>>> subscription preferences: >>>>>>>>>> >>>>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>>>>>> >>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>> use-livecode mailing list >>>>>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>>>>> Please visit this url to subscribe, unsubscribe and manage >>>>>>>>>>>> your >>>>>>>>>>>> >>>>>>>>>>> subscription preferences: >>>>>>>>>> >>>>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> use-livecode mailing list >>>>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>>>> >>>>>>>>>> subscription preferences: >>>>>>>>>> >>>>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> use-livecode mailing list >>>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>>> subscription preferences: >>>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>> use-livecode mailing list >>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>> subscription preferences: >>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> use-livecode mailing list >>>>>>>> use-livecode at lists.runrev.com >>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>> subscription preferences: >>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>> >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 16 11:56:15 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 16 Nov 2016 18:56:15 +0200 Subject: autoScript In-Reply-To: <1586ddc54d0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <8a6456bb-d92f-5b6b-1904-b91fc160f6fc@fourthworld.com> <816a7cb7-7e3b-b6ff-5d32-3f0e8fa2f631@gmail.com> <1586ddc54d0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: The script does not get set. Richmond. On 16.11.2016 17:58, J. Landman Gay wrote: > Could you define "does not work"? The script doesn't get set? It's > there but it errors? It's lazy? > > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > On November 16, 2016 8:48:57 AM Richmond > wrote: > >> I honestly don't know. >> >> I have just tried my stack in LC 9dp1 and, yes, the thing worked. >> >> So I tried it again in LC 8.1.1 and the thing did not work. >> >> Richmond. >> >> On 16.11.2016 16:13, Richard Gaskin wrote: >>> Richmond wrote: >>> >>>> Nothing is wrong with this in Livecode 7.1.4 >>>> >>>> BUT is does not work in Livecode 8.1.1 >>>> >>>> Bug 18864 >>>> >>>> Richmond. >>>> >>>> On 16.11.2016 14:44, Richmond wrote: >>>>> I wonder what's wrong with this: >>>>> >>>>> on mouseUp >>>>> put "make me coffee" into SKRIPT >>>>> set the script of btn "BB" to SKRIPT >>>>> end mouseUp >>>>> >>>>> >>>>> Richmond. >>> >>> Your sample stack included in the bug report, as well as a more >>> complete example that includes an actual handler definition, both work >>> as expected in v9dp1 under Ubuntu 14..04. >>> >>> Think about it: if the "set the script..." command didn't work, the >>> Script Editor wouldn't work, and it wouldn't be possible to do any >>> scripting in LiveCode at all. >>> >>> I suspect something else is in play in your running of the test.... >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Nov 16 12:09:48 2016 From: iphonelagi at gmail.com (Lagi Pittas) Date: Wed, 16 Nov 2016 17:09:48 +0000 Subject: autoScript In-Reply-To: References: <8a6456bb-d92f-5b6b-1904-b91fc160f6fc@fourthworld.com> <816a7cb7-7e3b-b6ff-5d32-3f0e8fa2f631@gmail.com> <1586ddc54d0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Hi Richmond I know this might sound stupid but ..... Did you create a BRAND NEW stack within 8.1 and try that? Now if you opened it in 9 and it worked that still doesn't mean what I suggest won't work because these are computers we are working with. Sometimes they are not logical (because we don't have access to all the data - read extraneous crap - that they are reading from hidden crevices ). Just as a for instance I was trying to transfer a program of mine from windows to android - LC v6.7.11) it would not compile to a standalone try as i might. So I created a new stack cut and pasted everything and it worked - but it shouldn't have should it? Kindest Regards Lagi p.s. if that no worky re-install livecode and remove the preferences files (switch it off and on again of software!) On 16 November 2016 at 16:56, Richmond wrote: > The script does not get set. > > Richmond. > > On 16.11.2016 17:58, J. Landman Gay wrote: > >> Could you define "does not work"? The script doesn't get set? It's there >> but it errors? It's lazy? >> >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> >> On November 16, 2016 8:48:57 AM Richmond >> wrote: >> >> I honestly don't know. >>> >>> I have just tried my stack in LC 9dp1 and, yes, the thing worked. >>> >>> So I tried it again in LC 8.1.1 and the thing did not work. >>> >>> Richmond. >>> >>> On 16.11.2016 16:13, Richard Gaskin wrote: >>> >>>> Richmond wrote: >>>> >>>> Nothing is wrong with this in Livecode 7.1.4 >>>>> >>>>> BUT is does not work in Livecode 8.1.1 >>>>> >>>>> Bug 18864 >>>>> >>>>> Richmond. >>>>> >>>>> On 16.11.2016 14:44, Richmond wrote: >>>>> >>>>>> I wonder what's wrong with this: >>>>>> >>>>>> on mouseUp >>>>>> put "make me coffee" into SKRIPT >>>>>> set the script of btn "BB" to SKRIPT >>>>>> end mouseUp >>>>>> >>>>>> >>>>>> Richmond. >>>>>> >>>>> >>>> Your sample stack included in the bug report, as well as a more >>>> complete example that includes an actual handler definition, both work >>>> as expected in v9dp1 under Ubuntu 14..04. >>>> >>>> Think about it: if the "set the script..." command didn't work, the >>>> Script Editor wouldn't work, and it wouldn't be possible to do any >>>> scripting in LiveCode at all. >>>> >>>> I suspect something else is in play in your running of the test.... >>>> >>>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 16 12:13:13 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 16 Nov 2016 11:13:13 -0600 Subject: autoScript In-Reply-To: References: <8a6456bb-d92f-5b6b-1904-b91fc160f6fc@fourthworld.com> <816a7cb7-7e3b-b6ff-5d32-3f0e8fa2f631@gmail.com> <1586ddc54d0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <1586e20cc28.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Okay. That usually means there's an error in it that prevents compilation. Since it does work in LC 9 maybe the error was in the engine or the IDE. Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 16, 2016 10:58:08 AM Richmond wrote: > The script does not get set. > > Richmond. > > On 16.11.2016 17:58, J. Landman Gay wrote: >> Could you define "does not work"? The script doesn't get set? It's >> there but it errors? It's lazy? >> >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> >> On November 16, 2016 8:48:57 AM Richmond >> wrote: >> >>> I honestly don't know. >>> >>> I have just tried my stack in LC 9dp1 and, yes, the thing worked. >>> >>> So I tried it again in LC 8.1.1 and the thing did not work. >>> >>> Richmond. >>> >>> On 16.11.2016 16:13, Richard Gaskin wrote: >>>> Richmond wrote: >>>> >>>>> Nothing is wrong with this in Livecode 7.1.4 >>>>> >>>>> BUT is does not work in Livecode 8.1.1 >>>>> >>>>> Bug 18864 >>>>> >>>>> Richmond. >>>>> >>>>> On 16.11.2016 14:44, Richmond wrote: >>>>>> I wonder what's wrong with this: >>>>>> >>>>>> on mouseUp >>>>>> put "make me coffee" into SKRIPT >>>>>> set the script of btn "BB" to SKRIPT >>>>>> end mouseUp >>>>>> >>>>>> >>>>>> Richmond. >>>> >>>> Your sample stack included in the bug report, as well as a more >>>> complete example that includes an actual handler definition, both work >>>> as expected in v9dp1 under Ubuntu 14..04. >>>> >>>> Think about it: if the "set the script..." command didn't work, the >>>> Script Editor wouldn't work, and it wouldn't be possible to do any >>>> scripting in LiveCode at all. >>>> >>>> I suspect something else is in play in your running of the test.... >>>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 16 12:18:32 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 16 Nov 2016 11:18:32 -0600 Subject: autoScript In-Reply-To: References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> <6b640252-31a3-02f2-d624-630f3b111b14@gmail.com> <0611F8A2-8854-4587-9155-DDE7011F345A@me.com> <6fc47bd0-23ab-135d-fda7-a152fba3c2c6@gmail.com> <94911B15-D187-4FEE-92D3-1A3A6C895F64@me.com> <398902D9-B0F1-4375-928B-127335E2B568@me.com> <1586dd2f660.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <1586e25aa40.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I should have used a smiley. Killing children is frowned upon by almost everyone. -> :-) On November 16, 2016 10:57:17 AM Richmond wrote: > This is, exactly, one of the reasons I like Livecode so much: it lends > itself to all styles of "getting things done" ! > > Richmond. > > On 16.11.2016 17:48, J. Landman Gay wrote: >> It sounds to me like there's a problem with the inheritance path. You >> could try looping through the childIDs and deleting any that are >> interfering. Note that you may be criticized by purists for this type >> of coding style. >> >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> >> On November 16, 2016 8:16:22 AM Tore Nilsen wrote: >> >>> Will the chances of getting rich increase if the randomSeed property >>> is set to a higher value? I guess the the blindLuck() function makes >>> heavy use of random(goodLuck) Or maybe there is an undocumented >>> goodLuckSeed property lurking somewhere in the darkest corners of the >>> engine? >>> >>> >>>> 16. nov. 2016 kl. 14.57 skrev Mike Bonner : >>>> >>>> I suspect its a misunderstanding of the command. If I recall >>>> correctly it >>>> requires a library of support function such as hardWork() >>>> creativity() and >>>> perseverance() Though I guess there are a few people out there who >>>> make it >>>> work by simply using the blindLuck() function over and over until >>>> the rng >>>> pops out the right combination. >>>> >>>> On Wed, Nov 16, 2016 at 6:53 AM, Tore Nilsen >>>> wrote: >>>> >>>>> Has anyone ever been able to make the ?makeMeRich? command work? If >>>>> not, >>>>> has anyone filed a bug report? >>>>> >>>>> Tore >>>>>> 16. nov. 2016 kl. 14.49 skrev Mike Bonner : >>>>>> >>>>>> On the contrary, when i tried it here I became hot and delicious, and >>>>> great >>>>>> to wake up to in the morning. Alas, I had added an undo function and >>>>> have >>>>>> since reverted to my normal hermity self. I tried "make me rich" >>>>>> once, >>>>> but >>>>>> I just ended up being triple chocolate cake. >>>>>> >>>>>> On Wed, Nov 16, 2016 at 6:43 AM, Tore Nilsen >>>>>> wrote: >>>>>> >>>>>>> At this point in the discussion I feel a need to clarify that >>>>>>> while also >>>>>>> the original the script (make me coffee) was set, the button BB >>>>>>> did not >>>>>>> actually make coffee. I still had to go to the kitchen and >>>>>>> perform the >>>>>>> necessary magic myself. >>>>>>> >>>>>>> And I think that most people will find that making coffee is >>>>>>> slightly >>>>>>> beyond the capabilities of LC, regardless of version or OS. >>>>>>> >>>>>>> Regards >>>>>>> Tore >>>>>>> >>>>>>> >>>>>>>> 16. nov. 2016 kl. 14.37 skrev Mike Bonner : >>>>>>>> >>>>>>>> Ah, my apologies. In that case I'm surprised it DOESN'T work in 8 >>>>> (when >>>>>>>> including on mouseup and end mouseup) >>>>>>>> >>>>>>>> Now I'm curious. If I recall correctly, setting a script with >>>>>>>> an error >>>>>>> of >>>>>>>> some type, causes the script to be placed into the button but not >>>>>>> actually >>>>>>>> be functional. Since the more recent versions of lc seem to >>>>>>>> give less >>>>>>>> latitude in syntax, you might check the result (and it?) after >>>>>>>> setting >>>>>>> the >>>>>>>> script. In addition, if you go into the script editor >>>>>>>> afterwards does >>>>>>> the >>>>>>>> script actually appear as it should? If you enter a space (just >>>>>>>> to set >>>>>>> the >>>>>>>> dirty flag) and then re-apply the script from inside the editor, >>>>>>>> does >>>>> it >>>>>>>> give an error? >>>>>>>> I think, setting the script pretty much works no matter what, >>>>>>>> but if >>>>> the >>>>>>>> script has a problem, while the script is THERE, it just won't work >>>>> until >>>>>>>> the problem is resolved and reapplied. >>>>>>>> >>>>>>>> On Wed, Nov 16, 2016 at 6:28 AM, Richmond >>>>>>>> >>>>> >>>>>>>> wrote: >>>>>>>> >>>>>>>>> I didn't bother to include the 'on mouseUp' and 'end mouseUp' >>>>>>>>> in my >>>>>>> initial >>>>>>>>> message as I thought they would be assumed. >>>>>>>>> >>>>>>>>> Richmond. >>>>>>>>> >>>>>>>>> >>>>>>>>> On 16.11.2016 15:24, Mike Bonner wrote: >>>>>>>>> >>>>>>>>>> I'm surprised it works in 7 since it should result in an orphaned >>>>> line >>>>>>> of >>>>>>>>>> code with no handler designation. (as indicated by tore, you >>>>>>>>>> should >>>>>>> need >>>>>>>>>> to >>>>>>>>>> include the on mouseup and end mouseup) >>>>>>>>>> >>>>>>>>>> On Wed, Nov 16, 2016 at 6:22 AM, Tore Nilsen >>>>>>> wrote: >>>>>>>>>> >>>>>>>>>> On MacOS 10.12.2 >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> 16. nov. 2016 kl. 14.21 skrev Richmond >>>>>>>>>>> >>>>> : >>>>>>>>>>>> >>>>>>>>>>>> Thanks, Tore, >>>>>>>>>>>> >>>>>>>>>>>> On which operating system is that? >>>>>>>>>>>> >>>>>>>>>>>> Richmond. >>>>>>>>>>>> >>>>>>>>>>>> On 16.11.2016 15:10, Tore Nilsen wrote: >>>>>>>>>>>> >>>>>>>>>>>>> Putting >>>>>>>>>>>>> >>>>>>>>>>>>> on mouseUp >>>>>>>>>>>>> >>>>>>>>>>>>> put "on mouseUp" & return & "beep" & return & "end mouseUp" >>>>>>>>>>>>> into >>>>>>> SKRIPT >>>>>>>>>>>>> >>>>>>>>>>>>> set the script of btn "BB" to SKRIPT >>>>>>>>>>>>> >>>>>>>>>>>>> end mouseUp >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> into the script of the first button makes button BB trigger >>>>>>>>>>>>> a beep >>>>>>> as >>>>>>>>>>>>> >>>>>>>>>>>> expected, also in LC 8.1.1 >>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> Regards >>>>>>>>>>>>> Tore >>>>>>>>>>>>> >>>>>>>>>>>>> 16. nov. 2016 kl. 13.57 skrev Richmond < >>>>> richmondmathewson at gmail.com >>>>>>>> : >>>>>>>>>>>>>> >>>>>>>>>>>>>> Nothing is wrong with this in Livecode 7.1.4 >>>>>>>>>>>>>> >>>>>>>>>>>>>> BUT is does not work in Livecode 8.1.1 >>>>>>>>>>>>>> >>>>>>>>>>>>>> Bug 18864 >>>>>>>>>>>>>> >>>>>>>>>>>>>> Richmond. >>>>>>>>>>>>>> >>>>>>>>>>>>>> On 16.11.2016 14:44, Richmond wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>>> I wonder what's wrong with this: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> on mouseUp >>>>>>>>>>>>>>> put "make me coffee" into SKRIPT >>>>>>>>>>>>>>> set the script of btn "BB" to SKRIPT >>>>>>>>>>>>>>> end mouseUp >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Richmond. >>>>>>>>>>>>>>> >>>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>>> use-livecode mailing list >>>>>>>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>>>>>>> Please visit this url to subscribe, unsubscribe and manage >>>>>>>>>>>>>> your >>>>>>>>>>>>>> >>>>>>>>>>>>> subscription preferences: >>>>>>>>>>> >>>>>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>>>>>>> >>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>> use-livecode mailing list >>>>>>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>>>>>> Please visit this url to subscribe, unsubscribe and manage >>>>>>>>>>>>> your >>>>>>>>>>>>> >>>>>>>>>>>> subscription preferences: >>>>>>>>>>> >>>>>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>> use-livecode mailing list >>>>>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>>>>> >>>>>>>>>>> subscription preferences: >>>>>>>>>>> >>>>>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> use-livecode mailing list >>>>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>>>> subscription preferences: >>>>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>> use-livecode mailing list >>>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>>> subscription preferences: >>>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> use-livecode mailing list >>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>> subscription preferences: >>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> use-livecode mailing list >>>>>>>> use-livecode at lists.runrev.com >>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>> subscription preferences: >>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>> subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 richmondmathewson at gmail.com Wed Nov 16 12:25:59 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 16 Nov 2016 19:25:59 +0200 Subject: autoScript In-Reply-To: References: <8a6456bb-d92f-5b6b-1904-b91fc160f6fc@fourthworld.com> <816a7cb7-7e3b-b6ff-5d32-3f0e8fa2f631@gmail.com> <1586ddc54d0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <9a3f2853-4d05-765c-a881-d3659aab14cc@gmail.com> The original stack was created in 8.1.1. /Deus ex machina/ Richmond. On 16.11.2016 19:09, Lagi Pittas wrote: > Hi Richmond > > I know this might sound stupid but ..... > > Did you create a BRAND NEW stack within 8.1 and try that? > > Now if you opened it in 9 and it worked that still doesn't mean what I > suggest won't work because these are computers we are working with. > Sometimes they are not logical (because we don't have access to all the > data - read extraneous crap - that they are reading from hidden crevices ). > > Just as a for instance I was trying to transfer a program of mine from > windows to android - LC v6.7.11) it would not compile to a standalone try > as i might. > So I created a new stack cut and pasted everything and it worked - but it > shouldn't have should it? > > Kindest Regards Lagi > > p.s. > > if that no worky re-install livecode and remove the preferences files > (switch it off and on again of software!) > > On 16 November 2016 at 16:56, Richmond wrote: > >> The script does not get set. >> >> Richmond. >> >> On 16.11.2016 17:58, J. Landman Gay wrote: >> >>> Could you define "does not work"? The script doesn't get set? It's there >>> but it errors? It's lazy? >>> >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> >>> >>> >>> On November 16, 2016 8:48:57 AM Richmond >>> wrote: >>> >>> I honestly don't know. >>>> I have just tried my stack in LC 9dp1 and, yes, the thing worked. >>>> >>>> So I tried it again in LC 8.1.1 and the thing did not work. >>>> >>>> Richmond. >>>> >>>> On 16.11.2016 16:13, Richard Gaskin wrote: >>>> >>>>> Richmond wrote: >>>>> >>>>> Nothing is wrong with this in Livecode 7.1.4 >>>>>> BUT is does not work in Livecode 8.1.1 >>>>>> >>>>>> Bug 18864 >>>>>> >>>>>> Richmond. >>>>>> >>>>>> On 16.11.2016 14:44, Richmond wrote: >>>>>> >>>>>>> I wonder what's wrong with this: >>>>>>> >>>>>>> on mouseUp >>>>>>> put "make me coffee" into SKRIPT >>>>>>> set the script of btn "BB" to SKRIPT >>>>>>> end mouseUp >>>>>>> >>>>>>> >>>>>>> Richmond. >>>>>>> >>>>> Your sample stack included in the bug report, as well as a more >>>>> complete example that includes an actual handler definition, both work >>>>> as expected in v9dp1 under Ubuntu 14..04. >>>>> >>>>> Think about it: if the "set the script..." command didn't work, the >>>>> Script Editor wouldn't work, and it wouldn't be possible to do any >>>>> scripting in LiveCode at all. >>>>> >>>>> I suspect something else is in play in your running of the test.... >>>>> >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 16 12:31:16 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 16 Nov 2016 19:31:16 +0200 Subject: autoScript In-Reply-To: <1586e20cc28.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <8a6456bb-d92f-5b6b-1904-b91fc160f6fc@fourthworld.com> <816a7cb7-7e3b-b6ff-5d32-3f0e8fa2f631@gmail.com> <1586ddc54d0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <1586e20cc28.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: I just tried the stack in LC 8.1.2 rc2 and that didn't set the script either. Richmond. On 16.11.2016 19:13, J. Landman Gay wrote: > Okay. That usually means there's an error in it that prevents > compilation. Since it does work in LC 9 maybe the error was in the > engine or the IDE. > > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > On November 16, 2016 10:58:08 AM Richmond > wrote: > >> The script does not get set. >> >> Richmond. >> >> On 16.11.2016 17:58, J. Landman Gay wrote: >>> Could you define "does not work"? The script doesn't get set? It's >>> there but it errors? It's lazy? >>> >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> >>> >>> >>> On November 16, 2016 8:48:57 AM Richmond >>> wrote: >>> >>>> I honestly don't know. >>>> >>>> I have just tried my stack in LC 9dp1 and, yes, the thing worked. >>>> >>>> So I tried it again in LC 8.1.1 and the thing did not work. >>>> >>>> Richmond. >>>> >>>> On 16.11.2016 16:13, Richard Gaskin wrote: >>>>> Richmond wrote: >>>>> >>>>>> Nothing is wrong with this in Livecode 7.1.4 >>>>>> >>>>>> BUT is does not work in Livecode 8.1.1 >>>>>> >>>>>> Bug 18864 >>>>>> >>>>>> Richmond. >>>>>> >>>>>> On 16.11.2016 14:44, Richmond wrote: >>>>>>> I wonder what's wrong with this: >>>>>>> >>>>>>> on mouseUp >>>>>>> put "make me coffee" into SKRIPT >>>>>>> set the script of btn "BB" to SKRIPT >>>>>>> end mouseUp >>>>>>> >>>>>>> >>>>>>> Richmond. >>>>> >>>>> Your sample stack included in the bug report, as well as a more >>>>> complete example that includes an actual handler definition, both >>>>> work >>>>> as expected in v9dp1 under Ubuntu 14..04. >>>>> >>>>> Think about it: if the "set the script..." command didn't work, the >>>>> Script Editor wouldn't work, and it wouldn't be possible to do any >>>>> scripting in LiveCode at all. >>>>> >>>>> I suspect something else is in play in your running of the test.... >>>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Nov 16 12:42:50 2016 From: heather at livecode.com (Heather Laine) Date: Wed, 16 Nov 2016 17:42:50 +0000 Subject: [ANN] LiveCode for FM Brings Easy Flexible Coding to FileMaker Apps Message-ID: <5C65DE10-E884-4A01-A9A2-8747427018C5@livecode.com> Dear List members, Today we are proud to announce the first release of the LiveCode for FM beta: https://filemaker.livecode.com This allows you to use the power of LiveCode inside FileMaker, bringing the best of both worlds to your app. FileMaker excels at providing data driven capabilities while LiveCode excels at native app centric features. By running LiveCode applications within FileMaker a whole new class of interactive app can now be created rapidly by using the unique strengths from each environment. For example you can: - Display fully interactive content built in LiveCode within FileMaker - Use LiveCode?s complete feature set, with 30+ fully customizable interface objects and 5000+ language features built-in, plus flexible widgets and community built libraries for even the most sophisticated project - Continue to use all of FileMaker?s great data toolset and rich business app building features - Integrate external systems including OS and complex web APIs - Add functions that are currently difficult or impossible in FileMaker, for example: * A billing calculator * Survey tool * Tree data display * Animated chart * Rich text editor * Manipulate data going into or retrieved from FileMaker using natural English ?chunk? expressions, traditional regular expressions, nested arrays, and a whole host of professional grade data manipulation tools. This release will bring great benefits to a new audience for the LiveCode platform. It has been built on the new LiveCode 8 platform which shipped earlier this year. In other news 8.1.2-rc-2 was released today, and a new DP of the 9 series is expected this week, being built by our separate LiveCode Language team. If you are a FileMaker user, check out our new LiveCode for FM Beta here today: https://filemaker.livecode.com Warm Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From iphonelagi at gmail.com Wed Nov 16 12:46:47 2016 From: iphonelagi at gmail.com (Lagi Pittas) Date: Wed, 16 Nov 2016 17:46:47 +0000 Subject: autoScript In-Reply-To: <9a3f2853-4d05-765c-a881-d3659aab14cc@gmail.com> References: <8a6456bb-d92f-5b6b-1904-b91fc160f6fc@fourthworld.com> <816a7cb7-7e3b-b6ff-5d32-3f0e8fa2f631@gmail.com> <1586ddc54d0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <9a3f2853-4d05-765c-a881-d3659aab14cc@gmail.com> Message-ID: Hi Richmond I understand that , i'm just suggesting you create a brand new stack with that button don't use the same one., and type it in from scratch no cut and paste even Best Lagi On 16 November 2016 at 17:25, Richmond wrote: > The original stack was created in 8.1.1. > > /Deus ex machina/ > > Richmond. > > On 16.11.2016 19:09, Lagi Pittas wrote: > >> Hi Richmond >> >> I know this might sound stupid but ..... >> >> Did you create a BRAND NEW stack within 8.1 and try that? >> >> Now if you opened it in 9 and it worked that still doesn't mean what I >> suggest won't work because these are computers we are working with. >> Sometimes they are not logical (because we don't have access to all the >> data - read extraneous crap - that they are reading from hidden crevices >> ). >> >> Just as a for instance I was trying to transfer a program of mine from >> windows to android - LC v6.7.11) it would not compile to a standalone try >> as i might. >> So I created a new stack cut and pasted everything and it worked - but it >> shouldn't have should it? >> >> Kindest Regards Lagi >> >> p.s. >> >> if that no worky re-install livecode and remove the preferences files >> (switch it off and on again of software!) >> >> On 16 November 2016 at 16:56, Richmond >> wrote: >> >> The script does not get set. >>> >>> Richmond. >>> >>> On 16.11.2016 17:58, J. Landman Gay wrote: >>> >>> Could you define "does not work"? The script doesn't get set? It's there >>>> but it errors? It's lazy? >>>> >>>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>>> HyperActive Software | http://www.hyperactivesw.com >>>> >>>> >>>> >>>> On November 16, 2016 8:48:57 AM Richmond >>>> wrote: >>>> >>>> I honestly don't know. >>>> >>>>> I have just tried my stack in LC 9dp1 and, yes, the thing worked. >>>>> >>>>> So I tried it again in LC 8.1.1 and the thing did not work. >>>>> >>>>> Richmond. >>>>> >>>>> On 16.11.2016 16:13, Richard Gaskin wrote: >>>>> >>>>> Richmond wrote: >>>>>> >>>>>> Nothing is wrong with this in Livecode 7.1.4 >>>>>> >>>>>>> BUT is does not work in Livecode 8.1.1 >>>>>>> >>>>>>> Bug 18864 >>>>>>> >>>>>>> Richmond. >>>>>>> >>>>>>> On 16.11.2016 14:44, Richmond wrote: >>>>>>> >>>>>>> I wonder what's wrong with this: >>>>>>>> >>>>>>>> on mouseUp >>>>>>>> put "make me coffee" into SKRIPT >>>>>>>> set the script of btn "BB" to SKRIPT >>>>>>>> end mouseUp >>>>>>>> >>>>>>>> >>>>>>>> Richmond. >>>>>>>> >>>>>>>> Your sample stack included in the bug report, as well as a more >>>>>> complete example that includes an actual handler definition, both work >>>>>> as expected in v9dp1 under Ubuntu 14..04. >>>>>> >>>>>> Think about it: if the "set the script..." command didn't work, the >>>>>> Script Editor wouldn't work, and it wouldn't be possible to do any >>>>>> scripting in LiveCode at all. >>>>>> >>>>>> I suspect something else is in play in your running of the test.... >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Wed Nov 16 12:56:35 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 16 Nov 2016 10:56:35 -0700 Subject: autoScript In-Reply-To: References: <8a6456bb-d92f-5b6b-1904-b91fc160f6fc@fourthworld.com> <816a7cb7-7e3b-b6ff-5d32-3f0e8fa2f631@gmail.com> <1586ddc54d0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <1586e20cc28.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: I've found a way to make it fail, but find it is very unlikely it is the cause of your issue (because its a silly little thing) But out of curiosity. if you add some type of msg box output to the handler that sets the script of the button, this would ensure that the setting handler actually fires. (which is related to the silly little extremely unlikely method I've found that I'm hesitant to share because it is SO darn unlikely.) From johnpatten at me.com Wed Nov 16 15:13:05 2016 From: johnpatten at me.com (JOHN PATTEN) Date: Wed, 16 Nov 2016 12:13:05 -0800 Subject: Inconsistent results in simple script Message-ID: Hi All, I have two, two column lists. Each list has the same barcode item (item 1). The second item in the first list is a username, and the second item in the second list is a serial number. I am trying to combine the username and serial number into one list. I have about 1000 lines in each list. However, I have cut my username list down to about 30. My script is leaving out username/serial number combinations that are common in each list. I am not sure why? For example: List 1 12345,johndoe 11234,maryjane 12234,stevesmith List 2 12345,SDTKNY12345 12234,SDTKLL54RR2 11234,SDKTHYUPTO9 I?m sure there are more elegant ways to do this, but here is my script: on mouseUp lock screen put cd fld "csv1" into tcsv1 repeat for number of lines in tcsv1 put line 1 of tcsv1 into tStudentInfo put item 1 of tStudentInfo into tbarcode put the number of chars of tBarcode into tCharCount -- if tCharCount > 5 then -- delete char 1 of tbarcode -- end if put cd fld "csv2" into tcsv2 find tBarcode in cd fld "csv2" if the result is empty then put the foundLine into tLine select tLine --put the selectedText of tcsv2 into tdeviceInfo put the selectedText of cd fld "csv2" into tDeviceInfo delete char 1 of item 2 of tDeviceInfo put item 2 of tStudentInfo & "," & item 2 of tDeviceInfo & return after tUploadFile else end if put empty into tStudentInfo put empty into tbarcode put empty into tCharCount put empty into tLine put empty into tDeviceInfo delete line 1 of tcsv1 end repeat put tUploadFile into cd fld "Upload File" unlock screen end mouseUp Any suggestions would be helpful. Thank you! John Patten SUSD From dunbarx at aol.com Wed Nov 16 15:22:14 2016 From: dunbarx at aol.com (dunbarx) Date: Wed, 16 Nov 2016 12:22:14 -0800 (PST) Subject: Inconsistent results in simple script In-Reply-To: References: Message-ID: <1479327734048-4710377.post@n4.nabble.com> HI. So, a single list. What is the relationship between the fact that a particular barcode refers both to a student and a serial number? In other words, if you had a single list, how would "12345" relate to both "john doe" and "SDTKNY12345"? Would you simply have two lines: 12345,johndoe 12345,SDTKNY12345 Also, I do not understand what you mean when you said: "I have cut my username list down to about 30." Does that mean that in your 1000 line first list, the usernames appear with multiple barcodes? Or are those lines empty? Or is that list now only 30 lines long? It looks like this begs for an array, but I am missing what you expect as output. Whatever it is, the procedure will be simple. But I cannot even start to advise about that procedure until I know what the answer is. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Inconsistent-results-in-simple-script-tp4710376p4710377.html Sent from the Revolution - User mailing list archive at Nabble.com. From dunbarx at aol.com Wed Nov 16 15:26:57 2016 From: dunbarx at aol.com (dunbarx) Date: Wed, 16 Nov 2016 12:26:57 -0800 (PST) Subject: Inconsistent results in simple script In-Reply-To: References: Message-ID: <1479328017614-4710378.post@n4.nabble.com> On another note, are you an old Hypercard user? I noticed you used the term "cd fld". Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Inconsistent-results-in-simple-script-tp4710376p4710378.html Sent from the Revolution - User mailing list archive at Nabble.com. From johnpatten at me.com Wed Nov 16 15:43:28 2016 From: johnpatten at me.com (JOHN PATTEN) Date: Wed, 16 Nov 2016 12:43:28 -0800 Subject: Inconsistent results in simple script In-Reply-To: <1479327734048-4710377.post@n4.nabble.com> References: <1479327734048-4710377.post@n4.nabble.com> Message-ID: Hi Craig, I have about 1000 students that are in a library system showing them as having checked out an iPad. In the library system it uses the student username and the barcode as the item identifier. I have another list that shows our iPads by barcode and serial number. Unfortunately there is no way for me to pull a report that shows the student username and the device serial number in one report. So I was essentially searching for the barcode in both lists and then combining the username from one and the serial number from the other. Ultimately ending up with a list that consists of student username and device serial number. I hope that is a little clearer. Thank you! John Patten SUSD > On Nov 16, 2016, at 12:22 PM, dunbarx wrote: > > HI. > > So, a single list. What is the relationship between the fact that a > particular barcode refers both to a student and a serial number? In other > words, if you had a single list, how would "12345" relate to both "john doe" > and "SDTKNY12345"? > Would you simply have two lines: > > 12345,johndoe > 12345,SDTKNY12345 > > Also, I do not understand what you mean when you said: > > "I have cut my username list down to about 30." > > Does that mean that in your 1000 line first list, the usernames appear with > multiple barcodes? Or are those lines empty? Or is that list now only 30 > lines long? > > It looks like this begs for an array, but I am missing what you expect as > output. Whatever it is, the procedure will be simple. But I cannot even > start to advise about that procedure until I know what the answer is. > > Craig > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Inconsistent-results-in-simple-script-tp4710376p4710377.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Wed Nov 16 15:45:34 2016 From: dunbarx at aol.com (dunbarx) Date: Wed, 16 Nov 2016 12:45:34 -0800 (PST) Subject: Inconsistent results in simple script In-Reply-To: References: Message-ID: <1479329134093-4710380.post@n4.nabble.com> Ah. OK, put the first list snippet into a field named "csv1" and the second snippet into a field named "csv2". Now make a button and put this into its script: on mouseUp put fld "csv1" into student put fld "csv2" into serNum repeat with y = 1 to the number of lines of student put item 2 of line y of serNum into masterList[item 2 of line y of student][item 1 of line y of student] end repeat breakPoint end mouseUp Check out the array in the debugger. Is this what you needed? Do you need help getting this data back "into the clear"? Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Inconsistent-results-in-simple-script-tp4710376p4710380.html Sent from the Revolution - User mailing list archive at Nabble.com. From bonnmike at gmail.com Wed Nov 16 15:58:17 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 16 Nov 2016 13:58:17 -0700 Subject: Inconsistent results in simple script In-Reply-To: References: <1479327734048-4710377.post@n4.nabble.com> Message-ID: Craig is right, this is asking to be an array, though if you prefer a flat file you can combine it at the end like so. on mouseUp repeat for each line tLine in field "csv1" put item 2 of tLine into tDataA[item 1 of tLine] end repeat repeat for each line tLIne in field "csv2" put comma & item 2 of tLine after tDataA[item 1 of tLine] end repeat combine tDataA with return and comma /* Places the following into tDataA 11234,maryjane,SDKTHYUPTO9 12234,stevesmith,SDTKLL54RR2 12345,johndoe,SDTKNY12345 */ end mouseUp On Wed, Nov 16, 2016 at 1:43 PM, JOHN PATTEN wrote: > Hi Craig, > > I have about 1000 students that are in a library system showing them as > having checked out an iPad. In the library system it uses the student > username and the barcode as the item identifier. > > I have another list that shows our iPads by barcode and serial number. > > Unfortunately there is no way for me to pull a report that shows the > student username and the device serial number in one report. So I was > essentially searching for the barcode in both lists and then combining the > username from one and the serial number from the other. Ultimately ending > up with a list that consists of student username and device serial number. > > I hope that is a little clearer. > > Thank you! > > John Patten > SUSD > > > > On Nov 16, 2016, at 12:22 PM, dunbarx wrote: > > > > HI. > > > > So, a single list. What is the relationship between the fact that a > > particular barcode refers both to a student and a serial number? In other > > words, if you had a single list, how would "12345" relate to both "john > doe" > > and "SDTKNY12345"? > > Would you simply have two lines: > > > > 12345,johndoe > > 12345,SDTKNY12345 > > > > Also, I do not understand what you mean when you said: > > > > "I have cut my username list down to about 30." > > > > Does that mean that in your 1000 line first list, the usernames appear > with > > multiple barcodes? Or are those lines empty? Or is that list now only 30 > > lines long? > > > > It looks like this begs for an array, but I am missing what you expect as > > output. Whatever it is, the procedure will be simple. But I cannot even > > start to advise about that procedure until I know what the answer is. > > > > Craig > > > > > > > > -- > > View this message in context: http://runtime-revolution. > 278305.n4.nabble.com/Inconsistent-results-in-simple-script- > tp4710376p4710377.html > > Sent from the Revolution - User mailing list archive at Nabble.com. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 16 16:07:35 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 16 Nov 2016 13:07:35 -0800 Subject: Inconsistent results in simple script In-Reply-To: References: Message-ID: <2042875a-8dd8-2b19-907b-06d8239e0f4a@fourthworld.com> JOHN PATTEN wrote: > I have two, two column lists. Each list has the same barcode item > (item 1). The second item in the first list is a username, and the > second item in the second list is a serial number. I am trying to > combine the username and serial number into one list. I have about > 1000 lines in each list. However, I have cut my username list down to > about 30. My script is leaving out username/serial number > combinations that are common in each list. I am not sure why? > > For example: > > List 1 > > 12345,johndoe > 11234,maryjane > 12234,stevesmith > > List 2 > > 12345,SDTKNY12345 > 12234,SDTKLL54RR2 > 11234,SDKTHYUPTO9 > > I?m sure there are more elegant ways to do this, but here is my > script: > > on mouseUp > lock screen > put cd fld "csv1" into tcsv1 > repeat for number of lines in tcsv1 > put line 1 of tcsv1 into tStudentInfo > put item 1 of tStudentInfo into tbarcode > put the number of chars of tBarcode into tCharCount > -- if tCharCount > 5 then > -- delete char 1 of tbarcode > -- end if > put cd fld "csv2" into tcsv2 > find tBarcode in cd fld "csv2" > if the result is empty then > put the foundLine into tLine > select tLine > --put the selectedText of tcsv2 into tdeviceInfo > put the selectedText of cd fld "csv2" into tDeviceInfo > delete char 1 of item 2 of tDeviceInfo > put item 2 of tStudentInfo & "," & item 2 of tDeviceInfo & return after tUploadFile > else > end if > put empty into tStudentInfo > put empty into tbarcode > put empty into tCharCount > put empty into tLine > put empty into tDeviceInfo > delete line 1 of tcsv1 > end repeat > put tUploadFile into cd fld "Upload File" > unlock screen > end mouseUp > > > Any suggestions would be helpful. Try this: on mouseUp put fld "csv1" into tStudentArray split tStudentArray by cr and comma put fld "csv2" into tDeviceArray split tDeviceArray by cr and comma repeat for each key tStudentID in tStudentArray put tStudentArray[tStudentID] into tStudentName put tDeviceArray[tStudentID] into tDeviceID put tStudentID &","& tStudentName &","& tDeviceID &cr \ after tCombinedList end repeat delete last char of tCombinedList -- trailing CR put tCombinedList into fld "Upload File" end mouseUp -- 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 johnpatten at me.com Wed Nov 16 16:08:00 2016 From: johnpatten at me.com (JOHN PATTEN) Date: Wed, 16 Nov 2016 13:08:00 -0800 Subject: Inconsistent results in simple script In-Reply-To: References: <1479327734048-4710377.post@n4.nabble.com> Message-ID: <48C66901-B12D-460B-89F0-E97A2DC502F8@me.com> Thanks Mike and Craig, One of my challenges is the two lists do not mirror each other by barcode number. The barcodes are not on the same lines in each list. That is why I was running the ?find barcode in list two.? I have teachers and other staff in the list of serial numbers and I was hoping not to have to weed them out of my lists so that the two lists lined up. Can I use an array and still search be barcode prior to doing the username and serial number? /..Yes Craig, old HyperCard habits are hard to break, at least for me :) ?/ Thank you! John Patten SUSD > On Nov 16, 2016, at 12:58 PM, Mike Bonner wrote: > > Craig is right, this is asking to be an array, though if you prefer a flat > file you can combine it at the end like so. > > on mouseUp > repeat for each line tLine in field "csv1" > put item 2 of tLine into tDataA[item 1 of tLine] > end repeat > > repeat for each line tLIne in field "csv2" > put comma & item 2 of tLine after tDataA[item 1 of tLine] > end repeat > combine tDataA with return and comma > > /* > Places the following into tDataA > 11234,maryjane,SDKTHYUPTO9 > 12234,stevesmith,SDTKLL54RR2 > 12345,johndoe,SDTKNY12345 > */ > end mouseUp > > On Wed, Nov 16, 2016 at 1:43 PM, JOHN PATTEN wrote: > >> Hi Craig, >> >> I have about 1000 students that are in a library system showing them as >> having checked out an iPad. In the library system it uses the student >> username and the barcode as the item identifier. >> >> I have another list that shows our iPads by barcode and serial number. >> >> Unfortunately there is no way for me to pull a report that shows the >> student username and the device serial number in one report. So I was >> essentially searching for the barcode in both lists and then combining the >> username from one and the serial number from the other. Ultimately ending >> up with a list that consists of student username and device serial number. >> >> I hope that is a little clearer. >> >> Thank you! >> >> John Patten >> SUSD >> >> >>> On Nov 16, 2016, at 12:22 PM, dunbarx wrote: >>> >>> HI. >>> >>> So, a single list. What is the relationship between the fact that a >>> particular barcode refers both to a student and a serial number? In other >>> words, if you had a single list, how would "12345" relate to both "john >> doe" >>> and "SDTKNY12345"? >>> Would you simply have two lines: >>> >>> 12345,johndoe >>> 12345,SDTKNY12345 >>> >>> Also, I do not understand what you mean when you said: >>> >>> "I have cut my username list down to about 30." >>> >>> Does that mean that in your 1000 line first list, the usernames appear >> with >>> multiple barcodes? Or are those lines empty? Or is that list now only 30 >>> lines long? >>> >>> It looks like this begs for an array, but I am missing what you expect as >>> output. Whatever it is, the procedure will be simple. But I cannot even >>> start to advise about that procedure until I know what the answer is. >>> >>> Craig >>> >>> >>> >>> -- >>> View this message in context: http://runtime-revolution. >> 278305.n4.nabble.com/Inconsistent-results-in-simple-script- >> tp4710376p4710377.html >>> Sent from the Revolution - User mailing list archive at Nabble.com. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Nov 16 16:32:19 2016 From: johnpatten at me.com (JOHN PATTEN) Date: Wed, 16 Nov 2016 13:32:19 -0800 Subject: Inconsistent results in simple script In-Reply-To: <48C66901-B12D-460B-89F0-E97A2DC502F8@me.com> References: <1479327734048-4710377.post@n4.nabble.com> <48C66901-B12D-460B-89F0-E97A2DC502F8@me.com> Message-ID: <0C470914-857B-4FC4-B259-DDA2534D0A48@me.com> Thanks Everyone, One follow up question, how is the script that Richard provided: on mouseUp put fld "csv1" into tStudentArray split tStudentArray by cr and comma put fld "csv2" into tDeviceArray split tDeviceArray by cr and comma repeat for each key tStudentID in tStudentArray put tStudentArray[tStudentID] into tStudentName put tDeviceArray[tStudentID] into tDeviceID put tStudentID &","& tStudentName &","& tDeviceID &cr \ after tCombinedList end repeat delete last char of tCombinedList -- trailing CR put tCombinedList into fld "Upload File" end mouseUp ?find the correct line via the barcode in the serial number list? Is he using the array item [tStudentID] (which I believe is actually [tBarcodeID]) to key in on the content in both arrays? So in a sense, it is doing a find this barcode, but in an array construct? When you don?t use arrays very much, and you have old, slow, brute force scripting skills, arrays are kind of hard to wrap your head around. But I obviously see their advantages :) Thank you! > On Nov 16, 2016, at 1:08 PM, JOHN PATTEN wrote: > > Thanks Mike and Craig, > > One of my challenges is the two lists do not mirror each other by barcode number. The barcodes are not on the same lines in each list. That is why I was running the ?find barcode in list two.? I have teachers and other staff in the list of serial numbers and I was hoping not to have to weed them out of my lists so that the two lists lined up. > > Can I use an array and still search be barcode prior to doing the username and serial number? > > /..Yes Craig, old HyperCard habits are hard to break, at least for me :) ?/ > > Thank you! > > John Patten > SUSD > > > >> On Nov 16, 2016, at 12:58 PM, Mike Bonner wrote: >> >> Craig is right, this is asking to be an array, though if you prefer a flat >> file you can combine it at the end like so. >> >> on mouseUp >> repeat for each line tLine in field "csv1" >> put item 2 of tLine into tDataA[item 1 of tLine] >> end repeat >> >> repeat for each line tLIne in field "csv2" >> put comma & item 2 of tLine after tDataA[item 1 of tLine] >> end repeat >> combine tDataA with return and comma >> >> /* >> Places the following into tDataA >> 11234,maryjane,SDKTHYUPTO9 >> 12234,stevesmith,SDTKLL54RR2 >> 12345,johndoe,SDTKNY12345 >> */ >> end mouseUp >> >> On Wed, Nov 16, 2016 at 1:43 PM, JOHN PATTEN wrote: >> >>> Hi Craig, >>> >>> I have about 1000 students that are in a library system showing them as >>> having checked out an iPad. In the library system it uses the student >>> username and the barcode as the item identifier. >>> >>> I have another list that shows our iPads by barcode and serial number. >>> >>> Unfortunately there is no way for me to pull a report that shows the >>> student username and the device serial number in one report. So I was >>> essentially searching for the barcode in both lists and then combining the >>> username from one and the serial number from the other. Ultimately ending >>> up with a list that consists of student username and device serial number. >>> >>> I hope that is a little clearer. >>> >>> Thank you! >>> >>> John Patten >>> SUSD >>> >>> >>>> On Nov 16, 2016, at 12:22 PM, dunbarx wrote: >>>> >>>> HI. >>>> >>>> So, a single list. What is the relationship between the fact that a >>>> particular barcode refers both to a student and a serial number? In other >>>> words, if you had a single list, how would "12345" relate to both "john >>> doe" >>>> and "SDTKNY12345"? >>>> Would you simply have two lines: >>>> >>>> 12345,johndoe >>>> 12345,SDTKNY12345 >>>> >>>> Also, I do not understand what you mean when you said: >>>> >>>> "I have cut my username list down to about 30." >>>> >>>> Does that mean that in your 1000 line first list, the usernames appear >>> with >>>> multiple barcodes? Or are those lines empty? Or is that list now only 30 >>>> lines long? >>>> >>>> It looks like this begs for an array, but I am missing what you expect as >>>> output. Whatever it is, the procedure will be simple. But I cannot even >>>> start to advise about that procedure until I know what the answer is. >>>> >>>> Craig >>>> >>>> >>>> >>>> -- >>>> View this message in context: http://runtime-revolution. >>> 278305.n4.nabble.com/Inconsistent-results-in-simple-script- >>> tp4710376p4710377.html >>>> Sent from the Revolution - User mailing list archive at Nabble.com. >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Wed Nov 16 16:24:46 2016 From: dunbarx at aol.com (dunbarx) Date: Wed, 16 Nov 2016 13:24:46 -0800 (PST) Subject: Inconsistent results in simple script In-Reply-To: <48C66901-B12D-460B-89F0-E97A2DC502F8@me.com> References: <1479327734048-4710377.post@n4.nabble.com> <48C66901-B12D-460B-89F0-E97A2DC502F8@me.com> Message-ID: <1479331486567-4710385.post@n4.nabble.com> "The barcodes are not on the same lines in each list. " In that case what Richard did, using the barcode as keys, will obviate that issue. Do you see? With arrays, the appropriate data can be made to go only with its associated keys, and the order of play does not matter. So the barcodes rule the procedure. Nor does it matter anymore if the lists are not of the same length. Arrays automatically manage all that. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Inconsistent-results-in-simple-script-tp4710376p4710385.html Sent from the Revolution - User mailing list archive at Nabble.com. From dunbarx at aol.com Wed Nov 16 17:17:34 2016 From: dunbarx at aol.com (dunbarx) Date: Wed, 16 Nov 2016 14:17:34 -0800 (PST) Subject: Inconsistent results in simple script In-Reply-To: <0C470914-857B-4FC4-B259-DDA2534D0A48@me.com> References: <1479327734048-4710377.post@n4.nabble.com> <48C66901-B12D-460B-89F0-E97A2DC502F8@me.com> <0C470914-857B-4FC4-B259-DDA2534D0A48@me.com> Message-ID: <1479334654950-4710386.post@n4.nabble.com> "?find the correct line via the barcode in the serial number list? The resultant list combines all three parts of the data. To find any particular one, just use the lineOffset. answer line lineOffset("12345",tCombinedList) of tCombinedList No? Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Inconsistent-results-in-simple-script-tp4710376p4710386.html Sent from the Revolution - User mailing list archive at Nabble.com. From dunbarx at aol.com Wed Nov 16 18:04:43 2016 From: dunbarx at aol.com (dunbarx) Date: Wed, 16 Nov 2016 15:04:43 -0800 (PST) Subject: Inconsistent results in simple script In-Reply-To: <1479334654950-4710386.post@n4.nabble.com> References: <1479327734048-4710377.post@n4.nabble.com> <48C66901-B12D-460B-89F0-E97A2DC502F8@me.com> <0C470914-857B-4FC4-B259-DDA2534D0A48@me.com> <1479334654950-4710386.post@n4.nabble.com> Message-ID: <1479337483767-4710387.post@n4.nabble.com> "and you have old, slow, brute force scripting skills, " on mouseUp repeat for each line tLine in fld "csv1" put line lineOffset(item 1 of tLine,fld "csv1") of fld "csv1" & "," & \ item 2 of line lineOffset(item 1 of tLine,fld "csv2") of fld "csv2" & return after temp end repeat put temp into fld "Upload File" end mouseUp Me too. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Inconsistent-results-in-simple-script-tp4710376p4710387.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Wed Nov 16 19:51:45 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 16 Nov 2016 16:51:45 -0800 Subject: Inconsistent results in simple script In-Reply-To: <0C470914-857B-4FC4-B259-DDA2534D0A48@me.com> References: <0C470914-857B-4FC4-B259-DDA2534D0A48@me.com> Message-ID: <893f2659-5f61-ab9a-28d8-f2bc1c4bb50b@fourthworld.com> JOHN PATTEN wrote: > When you don?t use arrays very much, and you have old, slow, brute > force scripting skills, arrays are kind of hard to wrap your head > around. But I obviously see their advantages :) Arrays are so useful in so many contexts that they're well worth spending an afternoon experimenting with to really grok them. Once grokked, they open up many worlds of simpler, more efficient algos across a wide range of use cases. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bonnmike at gmail.com Wed Nov 16 22:31:31 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 16 Nov 2016 20:31:31 -0700 Subject: Inconsistent results in simple script In-Reply-To: <893f2659-5f61-ab9a-28d8-f2bc1c4bb50b@fourthworld.com> References: <0C470914-857B-4FC4-B259-DDA2534D0A48@me.com> <893f2659-5f61-ab9a-28d8-f2bc1c4bb50b@fourthworld.com> Message-ID: Yeah, you can use the same handler because order doesn't matter. It sounded from your description like the barcode was unique to 1 item, so it should work dandy. Once the array is built (assuming you decide to leave it as an array and not combine it) the array is keyed by the barcode so its easy to find the associated information. Sorry for the late response, had to actually leave the house today. On Wed, Nov 16, 2016 at 5:51 PM, Richard Gaskin wrote: > JOHN PATTEN wrote: > > When you don?t use arrays very much, and you have old, slow, brute > > force scripting skills, arrays are kind of hard to wrap your head > > around. But I obviously see their advantages :) > > Arrays are so useful in so many contexts that they're well worth spending > an afternoon experimenting with to really grok them. > > Once grokked, they open up many worlds of simpler, more efficient algos > across a wide range of use cases. > > -- > 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 jacques.clavel at gmail.com Thu Nov 17 01:19:59 2016 From: jacques.clavel at gmail.com (Jacques Clavel) Date: Thu, 17 Nov 2016 07:19:59 +0100 Subject: disabled on 10/28 for bounces--to gmail??? In-Reply-To: <1582d089900.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <5EC80066-D2C7-46AD-9FE7-7DBFEC6F6403@iotecdigital.com> <1582d089900.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: I don't understand why I was disabled for the third time from the list and received this message "excessive bounces" as I haven't sent message to the list since two years at least (but I read all posts). Jacques Clavel 2016-11-04 2:51 GMT+01:00 J. Landman Gay : > And this is a test post because the one I sent hours ago never showed up. > > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > > On November 3, 2016 8:24:49 PM Mike Kerner > wrote: > > I just had that happen, again - second time in a week. >> >> On Thu, Nov 3, 2016 at 3:47 PM, Bob Sneidar >> wrote: >> >> OK, that being said, my spam filter is reporting fairly regularly that >>> certain use list accounts have been quarantined for spam. This can happen >>> if someone gets ahold of your email address, then uses it in a spoofed >>> header to distribute spam. Alternately, some people also actually *do* >>> send >>> spam from their own account by adding WAY to dam many email addresses in >>> the TO: or CC: fields. This is not the way to do this. Use the :BCC field >>> for large numbers of email addresses, and even then, if you have that >>> many >>> addresses, use a list server instead. >>> >>> Bob S >>> >>> >>> > On Nov 3, 2016, at 11:31 , Dr. Hawkins wrote: >>> > >>> > Did anyone else get de-subscribed recently? >>> > >>> > I got an email, that got filtered to promotions, that I was >>> unsubscribed >>> on >>> > 10/28 due to excessive bounces--but this is a gmail account. >>> > >>> > And what's the best way to sift through a few days of archives? >>> > >>> > -- >>> > Dr. Richard E. Hawkins, Esq. >>> > (702) 508-8462 >>> > _______________________________________________ >>> > use-livecode mailing list >>> > use-livecode at lists.runrev.com >>> > Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> > http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >> >> >> -- >> 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 > -- Jacques Clavel From smudge.andy at googlemail.com Thu Nov 17 03:39:54 2016 From: smudge.andy at googlemail.com (AndyP) Date: Thu, 17 Nov 2016 00:39:54 -0800 (PST) Subject: autoScript In-Reply-To: <816a7cb7-7e3b-b6ff-5d32-3f0e8fa2f631@gmail.com> References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> <8a6456bb-d92f-5b6b-1904-b91fc160f6fc@fourthworld.com> <816a7cb7-7e3b-b6ff-5d32-3f0e8fa2f631@gmail.com> Message-ID: <1479371994540-4710391.post@n4.nabble.com> Try replacing btn with button I noticed in a couple of versions btn was not picked up but button was ----- Andy Piddock My software never has bugs. It just develops random features. Copy the new cloud space, get your free 15GB space now: Get Copy 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 -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/autoScript-tp4710331p4710391.html Sent from the Revolution - User mailing list archive at Nabble.com. From lan.kc.macmail at gmail.com Thu Nov 17 05:21:34 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 17 Nov 2016 18:21:34 +0800 Subject: autoScript In-Reply-To: <1479371994540-4710391.post@n4.nabble.com> References: <325fe1d0-7561-4c6f-eeda-2db9044275d7@gmail.com> <8a6456bb-d92f-5b6b-1904-b91fc160f6fc@fourthworld.com> <816a7cb7-7e3b-b6ff-5d32-3f0e8fa2f631@gmail.com> <1479371994540-4710391.post@n4.nabble.com> Message-ID: Manually enter a scrip into btn "BB" Then modify your first mentioned script to: on mouseUp put the script of btn "BB" into oldScript put "make me coffee" into newScript set the script of btn "BB" to newScript put the script of btn "BB" into checkScript breakpoint end mouseUp With debug mode ON, running the script should stop at the breakpoint and you should be able to check the values of: oldScript newScript checkScript From dave at applicationinsight.com Thu Nov 17 08:32:40 2016 From: dave at applicationinsight.com (Dave Kilroy) Date: Thu, 17 Nov 2016 13:32:40 +0000 Subject: savingStandalone message Message-ID: <9E2B3A0B-9ADB-48ED-BCB2-99566DEED92C@applicationinsight.com> Hi all Ali I would find it really useful if we could set a build number for iOS builds inside the plist file where I?m using the 'external test? functionality in TestFlight I normally use my own way of setting and recording build numbers - and I?m happy to carry on doing do. But where there?s a problem is that there is currently no way to indicate to iTunesConnect what an app?s build number is as a separate value to the app?s version number (see http://quality.livecode.com/show_bug.cgi?id=14163 ) - this means we can?t upload incremented binaries of the same version number to iTunesConnect for rapid deployment via TestFlight, and must instead upload an incremented version and then wait around three days for it to exit ?Beta review' So, if you are making changes to the standalone builder and including an option for build number could you bear TestFlight in mind? Kind regards Dave > Thanks for the feedback Paul. How is your build number increment > implemented? > > On Tue, Nov 15, 2016 at 1:18 PM Paul Dupuis <[hidden email] > wrote: > > > I make use of the savingStandalone message in a few projects. Generally, > > I would prefer a single message regardless of the number of platforms I > > am building for. For ecample, I set a incremental "build' number on > > savingStandalone and I would want that build number to be the same for > > all platforms built for. If the message was sent for each platform I > > suspect I could come up with some what to still do this, but the code > > complexity would increase for a relatively simple task. > > > > It would seem to me that if you are looking for platform specific > > actions to modify the stack(s) used in each platform build, then ideally > > you would want a set of platform specific messages. i.e > > > > savingStandaloneForWindows > > savingStandaloneForOSX > > savingStandaloneForiOS > > savingStandaloneForAndroid > > savingStandaloneForHTML5 > > ... > > > > Or something like that. That way if you only meed to make a specific > > scripted stack modification for Android, you only need to handle that > > specific message. > > > > > > On 11/15/2016 4:45 AM, Ali Lloyd wrote: > > > Hi all, > > > > > > Various tweaks to the standalone builder seem to have broken the way the > > > savingStandalone message is supposed to work > > > http://quality.livecode.com/show_bug.cgi?id=18778 > > > > > > I have submitted a pull request that fixes it - the only wrinkle might be > > > that it reintroduces the following bug: > > > http://quality.livecode.com/show_bug.cgi?id=18364 , namely that the > > > savingStandalone message gets sent for each build platform. > > > > > > Now, my personal view is that that is how it should work, provided the > > > stack state is restored before building for the next platform. It allows > > a > > > more fine-grained build step where, if we added suitable parameters to > > the > > > message, you could for example ensure substacks with > > platform/architecture > > > specific resources were not included in the standalones where they are > > > irrelevant. > > > > > > My question to you is the same as I asked Lyn Teyla in the above report: > > > > > > Would the following behavior be a problem for your use case, and if so > > why? > > > > > > store stack state (*) > > > repeat for each target architecture > > > dispatch saving standalone message > > > modify stack for per-arch settings > > > deploy stack > > > restore to state in (*) > > > dispatch standalone saved message > > > end repeat > > > _______________________________________________ > > > use-livecode mailing list > > > [hidden email] > > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > _______________________________________________ > > use-livecode mailing list > > [hidden email] > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > From toolbook at kestner.de Thu Nov 17 09:05:14 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 17 Nov 2016 15:05:14 +0100 Subject: AW: German Umlaute get corrupted on macOS Sierra In-Reply-To: <007501d24025$55aec390$010c4ab0$@kestner.de> References: <00b501d23e97$875d53f0$9617fbd0$@kestner.de> <0C064B9B-6DF6-4330-9B2E-89BDDC7A3789@livecode.org> <007501d24025$55aec390$010c4ab0$@kestner.de> Message-ID: <004e01d240db$9f00a200$dd01e600$@kestner.de> I have found a workaround, though not the reason. The version of my program with the corrupted Umlaute is from 2013. I have send my customer a test version of a newer version of my program from 2014 and voila, all Umlaute appear correct. This show to me that the issue is a Livecode issue in combination with Sierra. Since I don't have a history, which standalone I have build with which LC version (I should start with such a history now), I can't say which LC 6 version works with Sierra and which LC 6 version not. I think some nerds can find the LC version in the hex file of the stack, but I can't. Does anybody remembers if there was some change in handling code tables? Any other idea as giving the customer a free upgrade? Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Tiemo Hollmann TB Gesendet: Mittwoch, 16. November 2016 17:20 An: 'How to use LiveCode' Betreff: AW: German Umlaute get corrupted on macOS Sierra Hello Hermann and Paul, good idea, but my customer checked "Tahoma" with the fontbook and it is installed and looks fine in the fontbook. I also tried the indirect enter with holding the "u" for 2 sec and then choosing the "?" from the menu, but the letter also is corrupted, when displayed in the field. Very weird. Thanks Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Paul Hibbert Gesendet: Montag, 14. November 2016 22:07 An: How to use LiveCode Betreff: Re: German Umlaute get corrupted on macOS Sierra I run Sierra on an older iMac (2009) and a newer MacBook Pro, I don?t see any problem with LC6, I just tested the German Umlaut with pasted text as well as typed text in LC5.5.5, LC6.7.11(rc2) and LC8.1.2(rc1) and I?m seeing exactly the same result in all 3 versions, the umlauts are present and correct. If it?s just one customer on one Mac, I would guess that maybe it?s a Font problem, can you check if they have the same font installed that your app uses, and if it is, maybe they need to check for font problems with the Font Book.app (should be in their Applications Folder). Paul > On Nov 14, 2016, at 8:52 AM, Tiemo Hollmann TB wrote: > > Hello, > > > > Today a customer with a Mac book Air and macOS Sierra called me and > told me that all German Umlaute in my LC 6 program are corrupted > (while they are working fine in all other programs). This is in text > displayed in fields as well as text entered in fields. > > Since I don't have Sierra yet installed on my machine, I can't > reproduce, if this is a general Sierra issue, or something special on > that customer machine. Since this is the first customer telling me > this problem I don't even know, if no other customer has installed > Sierra yet and it's a LC 6 - Sierra issue or if others already have > installed Sierra and don't see this issue. > > > > I checked with this customer all language and keyboard layout settings > and they are all standard German, like on my 10.11 machine. > > Has anybody any idea what could cause such a phenomenon? Any idea what > to look for? Or is LC 6 just incompatible with Sierra? > > 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 _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Thu Nov 17 09:34:23 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 17 Nov 2016 15:34:23 +0100 Subject: LC 6 to 8 some strange expieriences aligning objects at resizeStack Message-ID: <006001d240df$b1dea990$159bfcb0$@kestner.de> Hello, I am migrating an old LC 2-6 stack to LC 8.1.1 In this stack I resize and arrange all objects by script when resizing the window. First experience was, that on Windows everything worked the same as in LC 6, all objects looked fine and aligned when resizing. On OS X 10.11 I am still fiddling around since some days to get all objects aligned. The nasty thing is, that I now have lots of code, which I have to differentiate between Win and Mac, where I had all the same code for resizing up to now in LC 6. One of the tiny, nasty things is, that the rect of an option button now can be different, as the visible rect of the button. Only at the default button height of 22 both are congruent. I know, this is a new thing of the underlying OS X drawing routines. But since I can't test it, I have no idea, what happens going back on a 10.8 system or to Sierra, are there the same graphic objects, or do I have to differentiate for 10.8,10.9,..? What is more annoying is that the height of the stack isn't anymore the same as the parameter newHeight of the resizeStack handler (what it was before on OS X and still is on Windows). Again lots more of code differentiation. Another weird issue is that the video appears 26 pixel lower as the player object is located (26 is the height of my stack menubar). Now I have to place the player object more to top by the height of the menubar. Since I couldn't create a recipie in a test stack for this strange issue, I didn't reported this as a bug. Again here I feel very unsafe if this hard coded workaround to place the player object more to top, as the video has to appear, works on all OS X platforms. Now I feel very uncomfortable with LC 8.1.1 shortly before release. (Unfortunatly I discovered these resizing anomalies on OS X pretty late in my project) Do you have any similar experiences? Any recommendations? Tiemo From colinholgate at gmail.com Thu Nov 17 09:46:03 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Thu, 17 Nov 2016 07:46:03 -0700 Subject: disabled on 10/28 for bounces--to gmail??? In-Reply-To: References: <5EC80066-D2C7-46AD-9FE7-7DBFEC6F6403@iotecdigital.com> <1582d089900.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Heather is looking into the issue, and it?s not bounces of posts that you tried to make, it's bounces of the emails other people posted, when they try to get sent to you. > On Nov 16, 2016, at 11:19 PM, Jacques Clavel wrote: > > I don't understand why I was disabled for the third time from the list and > received this message "excessive bounces" as I haven't sent message to the > list since two years at least (but I read all posts). > > Jacques Clavel > > 2016-11-04 2:51 GMT+01:00 J. Landman Gay : > >> And this is a test post because the one I sent hours ago never showed up. >> >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> >> >> On November 3, 2016 8:24:49 PM Mike Kerner >> wrote: >> >> I just had that happen, again - second time in a week. >>> >>> On Thu, Nov 3, 2016 at 3:47 PM, Bob Sneidar >>> wrote: >>> >>> OK, that being said, my spam filter is reporting fairly regularly that >>>> certain use list accounts have been quarantined for spam. This can happen >>>> if someone gets ahold of your email address, then uses it in a spoofed >>>> header to distribute spam. Alternately, some people also actually *do* >>>> send >>>> spam from their own account by adding WAY to dam many email addresses in >>>> the TO: or CC: fields. This is not the way to do this. Use the :BCC field >>>> for large numbers of email addresses, and even then, if you have that >>>> many >>>> addresses, use a list server instead. >>>> >>>> Bob S >>>> >>>> >>>>> On Nov 3, 2016, at 11:31 , Dr. Hawkins wrote: >>>>> >>>>> Did anyone else get de-subscribed recently? >>>>> >>>>> I got an email, that got filtered to promotions, that I was >>>> unsubscribed >>>> on >>>>> 10/28 due to excessive bounces--but this is a gmail account. >>>>> >>>>> And what's the best way to sift through a few days of archives? >>>>> >>>>> -- >>>>> Dr. Richard E. Hawkins, Esq. >>>>> (702) 508-8462 >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>> >>> >>> -- >>> 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 >> > > > > -- > Jacques Clavel > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 17 10:48:36 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 17 Nov 2016 15:48:36 +0000 Subject: savingStandalone message In-Reply-To: <49CB1AFA-7646-4300-AEEA-681D9DDA9B47@iotecdigital.com> References: <4C181AB4-25B3-4891-92AE-ECE8A27F9532@iotecdigital.com> <49CB1AFA-7646-4300-AEEA-681D9DDA9B47@iotecdigital.com> Message-ID: Just discovered that the reason for this is that the compiler somehow changed the path to the mainstack in the Stack Properties Stack Files. What the...??? I reset the path to the main stack and now I can compile. Bob S On Nov 15, 2016, at 09:37 , Bob Sneidar > wrote: I just compiled for Mac only and the dialog about the open library does not appear. However I am getting this runtime error: Executing at 9:35:40 AM on Tuesday, November 15, 2016 Type: Handler: error in statement Object: stack '/Applications/Forms Generator.app/Contents/MacOS/Forms Generator' Line: go invisible to card 'Main' of stack 'Forms Generator' Line Num: 12 Hint: openStack Comments: Remember this compiles on 8.0.1 some something dramatic has changed. And not in a good way. Bob S From bobsneidar at iotecdigital.com Thu Nov 17 10:53:25 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 17 Nov 2016 15:53:25 +0000 Subject: [ANN] LiveCode for FM Brings Easy Flexible Coding to FileMaker Apps In-Reply-To: <5C65DE10-E884-4A01-A9A2-8747427018C5@livecode.com> References: <5C65DE10-E884-4A01-A9A2-8747427018C5@livecode.com> Message-ID: <8610CAE1-8C82-4B85-BAE5-058AE90FD7A3@iotecdigital.com> THAT is interesting. However, there is still a licensing issue for Filemaker standalones which is why I am using Livecode now. But for developing for clients who already use Filemaker clients, this could be a great thing! Bob S > On Nov 16, 2016, at 09:42 , Heather Laine wrote: > > Dear List members, > > Today we are proud to announce the first release of the LiveCode for FM beta: > > https://filemaker.livecode.com > > This allows you to use the power of LiveCode inside FileMaker, bringing the best of both worlds to your app. FileMaker excels at providing data driven capabilities while LiveCode excels at native app centric features. By running LiveCode applications within FileMaker a whole new class of interactive app can now be created rapidly by using the unique strengths from each environment. > From bobsneidar at iotecdigital.com Thu Nov 17 10:55:27 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 17 Nov 2016 15:55:27 +0000 Subject: disabled on 10/28 for bounces--to gmail??? In-Reply-To: References: <5EC80066-D2C7-46AD-9FE7-7DBFEC6F6403@iotecdigital.com> <1582d089900.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Possibly because someone is using your email address in a forged header to send spam to others and your address is the one that has been reported and blocked in spam filters everywhere. Without seeing the initial bounce messages, no one can tell. Do you have one of those? I can look at it for you. Bob S On Nov 16, 2016, at 22:19 , Jacques Clavel > wrote: I don't understand why I was disabled for the third time from the list and received this message "excessive bounces" as I haven't sent message to the list since two years at least (but I read all posts). Jacques Clavel 2016-11-04 2:51 GMT+01:00 J. Landman Gay >: And this is a test post because the one I sent hours ago never showed up. Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 3, 2016 8:24:49 PM Mike Kerner > wrote: I just had that happen, again - second time in a week. From bobsneidar at iotecdigital.com Thu Nov 17 10:59:03 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 17 Nov 2016 15:59:03 +0000 Subject: Inconsistent results in simple script In-Reply-To: <893f2659-5f61-ab9a-28d8-f2bc1c4bb50b@fourthworld.com> References: <0C470914-857B-4FC4-B259-DDA2534D0A48@me.com> <893f2659-5f61-ab9a-28d8-f2bc1c4bb50b@fourthworld.com> Message-ID: <2B7587A8-3744-4786-B468-8FFFB25FC14D@iotecdigital.com> Take Richard's advice. I did and I've never looked back. There are some situations where text parsing becomes cumbersome. Bob S > On Nov 16, 2016, at 16:51 , Richard Gaskin wrote: > > JOHN PATTEN wrote: > > When you don?t use arrays very much, and you have old, slow, brute > > force scripting skills, arrays are kind of hard to wrap your head > > around. But I obviously see their advantages :) > > Arrays are so useful in so many contexts that they're well worth spending an afternoon experimenting with to really grok them. > > Once grokked, they open up many worlds of simpler, more efficient algos across a wide range of use cases. > > -- > 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 revdev at pdslabs.net Thu Nov 17 13:52:40 2016 From: revdev at pdslabs.net (Phil Davis) Date: Thu, 17 Nov 2016 10:52:40 -0800 Subject: Inconsistent results in simple script In-Reply-To: <2B7587A8-3744-4786-B468-8FFFB25FC14D@iotecdigital.com> References: <0C470914-857B-4FC4-B259-DDA2534D0A48@me.com> <893f2659-5f61-ab9a-28d8-f2bc1c4bb50b@fourthworld.com> <2B7587A8-3744-4786-B468-8FFFB25FC14D@iotecdigital.com> Message-ID: <2dfbca3c-3068-b981-ede0-518364343676@pdslabs.net> Amen! First there was sliced bread... Then there was LC text parsing... Then came ARRAYS! (choir singing in background) Phil Davis On 11/17/16 7:59 AM, Bob Sneidar wrote: > Take Richard's advice. I did and I've never looked back. There are some situations where text parsing becomes cumbersome. > > Bob S > > >> On Nov 16, 2016, at 16:51 , Richard Gaskin wrote: >> >> JOHN PATTEN wrote: >>> When you don?t use arrays very much, and you have old, slow, brute >>> force scripting skills, arrays are kind of hard to wrap your head >>> around. But I obviously see their advantages :) >> Arrays are so useful in so many contexts that they're well worth spending an afternoon experimenting with to really grok them. >> >> Once grokked, they open up many worlds of simpler, more efficient algos across a wide range of use cases. >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis From jacques.clavel at gmail.com Thu Nov 17 14:15:25 2016 From: jacques.clavel at gmail.com (Jacques Clavel) Date: Thu, 17 Nov 2016 20:15:25 +0100 Subject: disabled on 10/28 for bounces--to gmail??? In-Reply-To: References: <5EC80066-D2C7-46AD-9FE7-7DBFEC6F6403@iotecdigital.com> <1582d089900.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Thanks Bob, The problem is that all seems to be normal for me, no problem at all, I just received an email (the third) from use-livecode-request which says (see below). I re-enabled my membership by using the first link and I received again the messages from the list. Can I do something to help to solve the problem? Content of the mail : Your membership in the mailing list use-livecode has been disabled due to excessive bounces The last bounce received from you was dated 17-Nov-2016. You will not get any more messages from this list until you re-enable your membership. You will receive 3 more reminders like this before your membership in the list is deleted. To re-enable your membership, you can simply respond to this message (leaving the Subject: line intact), or visit the confirmation page at http://lists.runrev.com/mailman/confirm/use-livecode/ f17a8c7b29616ab1770a683 blablabla... (more hex chars) You can also visit your membership page at http://lists.runrev.com/mailman/options/use-livecode/ jacques.clavel%40gmail.com On your membership page, you can change various delivery options such as your email address and whether you get digests or not. As a reminder, your membership password is xxxxxxxx If you have any questions or problems, you can contact the list owner at use-livecode-owner at lists.runrev.com 2016-11-17 16:55 GMT+01:00 Bob Sneidar : > Possibly because someone is using your email address in a forged header to > send spam to others and your address is the one that has been reported and > blocked in spam filters everywhere. Without seeing the initial bounce > messages, no one can tell. Do you have one of those? I can look at it for > you. > > Bob S > > > On Nov 16, 2016, at 22:19 , Jacques Clavel mailto:jacques.clavel at gmail.com>> wrote: > > I don't understand why I was disabled for the third time from the list and > received this message "excessive bounces" as I haven't sent message to the > list since two years at least (but I read all posts). > > Jacques Clavel > > 2016-11-04 2:51 GMT+01:00 J. Landman Gay jacque at hyperactivesw.com>>: > > And this is a test post because the one I sent hours ago never showed up. > > Jacqueline Landman Gay | jacque at hyperactivesw.com jacque at hyperactivesw.com> > HyperActive Software | http://www.hyperactivesw.com ttp://www.hyperactivesw.com/> > > > > > On November 3, 2016 8:24:49 PM Mike Kerner mailto:MikeKerner at roadrunner.com>> > wrote: > > I just had that happen, again - second time in a week. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacques Clavel From jacque at hyperactivesw.com Thu Nov 17 14:26:52 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 17 Nov 2016 13:26:52 -0600 Subject: disabled on 10/28 for bounces--to gmail??? In-Reply-To: References: <5EC80066-D2C7-46AD-9FE7-7DBFEC6F6403@iotecdigital.com> <1582d089900.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <37882da3-d9fa-80f7-62ad-8cec71f33a48@hyperactivesw.com> On 11/17/16 1:15 PM, Jacques Clavel wrote: > The problem is that all seems to be normal for me, no problem at all, I > just received an email (the third) from use-livecode-request which says > (see below). I re-enabled my membership by using the first link and I > received again the messages from the list. > Can I do something to help to solve the problem? I wonder if the problem is over-aggressive spam filtering. If a spam filter bounces the list mail back to Mailman, you'd have "excessive bounces". I am not having the problem. In my cPanel I have spam filtering set to the default average level (5) and I receive list mails individually. I think sometimes the digest can appear as spam and that might cause a bounce. So I wonder if those people who are getting unsubscribed are receiving the digest? If you try receiving individual messages, do you still get the warning? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Thu Nov 17 14:28:17 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 17 Nov 2016 19:28:17 +0000 Subject: disabled on 10/28 for bounces--to gmail??? In-Reply-To: References: <5EC80066-D2C7-46AD-9FE7-7DBFEC6F6403@iotecdigital.com> <1582d089900.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Looks like you are using Gmail. There may be a setting in your Gmail web page account settings where you can white list *@lists.runrev.com. Bob S On Nov 17, 2016, at 11:15 , Jacques Clavel > wrote: Thanks Bob, The problem is that all seems to be normal for me, no problem at all, I just received an email (the third) from use-livecode-request which says (see below). I re-enabled my membership by using the first link and I received again the messages from the list. Can I do something to help to solve the problem? Content of the mail : Your membership in the mailing list use-livecode has been disabled due to excessive bounces The last bounce received from you was dated 17-Nov-2016. You will not get any more messages from this list until you re-enable your membership. You will receive 3 more reminders like this before your membership in the list is deleted. To re-enable your membership, you can simply respond to this message (leaving the Subject: line intact), or visit the confirmation page at From colinholgate at gmail.com Thu Nov 17 14:31:35 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Thu, 17 Nov 2016 12:31:35 -0700 Subject: disabled on 10/28 for bounces--to gmail??? In-Reply-To: <37882da3-d9fa-80f7-62ad-8cec71f33a48@hyperactivesw.com> References: <5EC80066-D2C7-46AD-9FE7-7DBFEC6F6403@iotecdigital.com> <1582d089900.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <37882da3-d9fa-80f7-62ad-8cec71f33a48@hyperactivesw.com> Message-ID: <1E29DADF-513D-4D1B-8BB7-7DE83334F816@gmail.com> That would make sense if you had spam system that sent back a rejection message. I don?t use spam filters, I just let some emails go into Mail?s Junk mailbox. But I?ve also had the excessive bounce message a few times. For what it?s worth, my Junk mailbox currently has four emails from Roger Eller, one from Jan Schenkel, and two copies of the same email from the LiveCode team. The LiveCode team ones look like adverts, but the other messages seem harmless. > On Nov 17, 2016, at 12:26 PM, J. Landman Gay wrote: > > On 11/17/16 1:15 PM, Jacques Clavel wrote: >> The problem is that all seems to be normal for me, no problem at all, I >> just received an email (the third) from use-livecode-request which says >> (see below). I re-enabled my membership by using the first link and I >> received again the messages from the list. >> Can I do something to help to solve the problem? > > I wonder if the problem is over-aggressive spam filtering. If a spam filter bounces the list mail back to Mailman, you'd have "excessive bounces". > > I am not having the problem. In my cPanel I have spam filtering set to the default average level (5) and I receive list mails individually. I think sometimes the digest can appear as spam and that might cause a bounce. So I wonder if those people who are getting unsubscribed are receiving the digest? If you try receiving individual messages, do you still get the warning? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Thu Nov 17 14:53:00 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 17 Nov 2016 13:53:00 -0600 Subject: disabled on 10/28 for bounces--to gmail??? In-Reply-To: <1E29DADF-513D-4D1B-8BB7-7DE83334F816@gmail.com> References: <5EC80066-D2C7-46AD-9FE7-7DBFEC6F6403@iotecdigital.com> <1582d089900.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <37882da3-d9fa-80f7-62ad-8cec71f33a48@hyperactivesw.com> <1E29DADF-513D-4D1B-8BB7-7DE83334F816@gmail.com> Message-ID: <28844e14-76b9-ca7b-2d9d-a60d4e0fe2af@hyperactivesw.com> Typically the hosting service handles the spam filtering before your email client gets it. That's the filter I was referring to. GMail users may not have the same options though. On 11/17/16 1:31 PM, Colin Holgate wrote: > That would make sense if you had spam system that sent back a rejection message. I don?t use spam filters, I just let some emails go into Mail?s Junk mailbox. But I?ve also had the excessive bounce message a few times. > > For what it?s worth, my Junk mailbox currently has four emails from Roger Eller, one from Jan Schenkel, and two copies of the same email from the LiveCode team. > > The LiveCode team ones look like adverts, but the other messages seem harmless. > > >> On Nov 17, 2016, at 12:26 PM, J. Landman Gay wrote: >> >> On 11/17/16 1:15 PM, Jacques Clavel wrote: >>> The problem is that all seems to be normal for me, no problem at all, I >>> just received an email (the third) from use-livecode-request which says >>> (see below). I re-enabled my membership by using the first link and I >>> received again the messages from the list. >>> Can I do something to help to solve the problem? >> >> I wonder if the problem is over-aggressive spam filtering. If a spam filter bounces the list mail back to Mailman, you'd have "excessive bounces". >> >> I am not having the problem. In my cPanel I have spam filtering set to the default average level (5) and I receive list mails individually. I think sometimes the digest can appear as spam and that might cause a bounce. So I wonder if those people who are getting unsubscribed are receiving the digest? If you try receiving individual messages, do you still get the warning? >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From colinholgate at gmail.com Thu Nov 17 15:01:37 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Thu, 17 Nov 2016 13:01:37 -0700 Subject: disabled on 10/28 for bounces--to gmail??? In-Reply-To: <28844e14-76b9-ca7b-2d9d-a60d4e0fe2af@hyperactivesw.com> References: <5EC80066-D2C7-46AD-9FE7-7DBFEC6F6403@iotecdigital.com> <1582d089900.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <37882da3-d9fa-80f7-62ad-8cec71f33a48@hyperactivesw.com> <1E29DADF-513D-4D1B-8BB7-7DE83334F816@gmail.com> <28844e14-76b9-ca7b-2d9d-a60d4e0fe2af@hyperactivesw.com> Message-ID: <9B5EBD0F-56F5-4E5B-A9EA-B255DCAF9BC5@gmail.com> I?m using Mail, and my provider is Verizon. I checked my settings online, and they do have an option where they delete spam automatically. I?ve changed that to have it save the messages in a spamdetecter folder. I should be able to see which messages are coming from the LiveCode lists. Still not sure that any mail system would pretend to bounce the message, instead of just blocking it. > On Nov 17, 2016, at 12:53 PM, J. Landman Gay wrote: > > Typically the hosting service handles the spam filtering before your email client gets it. That's the filter I was referring to. GMail users may not have the same options though. > > On 11/17/16 1:31 PM, Colin Holgate wrote: >> That would make sense if you had spam system that sent back a rejection message. I don?t use spam filters, I just let some emails go into Mail?s Junk mailbox. But I?ve also had the excessive bounce message a few times. >> >> For what it?s worth, my Junk mailbox currently has four emails from Roger Eller, one from Jan Schenkel, and two copies of the same email from the LiveCode team. >> >> The LiveCode team ones look like adverts, but the other messages seem harmless. >> >> >>> On Nov 17, 2016, at 12:26 PM, J. Landman Gay wrote: >>> >>> On 11/17/16 1:15 PM, Jacques Clavel wrote: >>>> The problem is that all seems to be normal for me, no problem at all, I >>>> just received an email (the third) from use-livecode-request which says >>>> (see below). I re-enabled my membership by using the first link and I >>>> received again the messages from the list. >>>> Can I do something to help to solve the problem? >>> >>> I wonder if the problem is over-aggressive spam filtering. If a spam filter bounces the list mail back to Mailman, you'd have "excessive bounces". >>> >>> I am not having the problem. In my cPanel I have spam filtering set to the default average level (5) and I receive list mails individually. I think sometimes the digest can appear as spam and that might cause a bounce. So I wonder if those people who are getting unsubscribed are receiving the digest? If you try receiving individual messages, do you still get the warning? >>> >>> -- >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Nov 17 16:51:58 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 17 Nov 2016 21:51:58 +0000 Subject: disabled on 10/28 for bounces--to gmail??? In-Reply-To: <9B5EBD0F-56F5-4E5B-A9EA-B255DCAF9BC5@gmail.com> References: <5EC80066-D2C7-46AD-9FE7-7DBFEC6F6403@iotecdigital.com> <1582d089900.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <37882da3-d9fa-80f7-62ad-8cec71f33a48@hyperactivesw.com> <1E29DADF-513D-4D1B-8BB7-7DE83334F816@gmail.com> <28844e14-76b9-ca7b-2d9d-a60d4e0fe2af@hyperactivesw.com> <9B5EBD0F-56F5-4E5B-A9EA-B255DCAF9BC5@gmail.com> Message-ID: Bouncing is highly unusual for cloud based mail systems as it is now an ineffective method for spam systems to remove obsolete emails, and malicious spammers can use this to clean up their databases by purging the bounced emails, or trolling for valid email accounts. It can also be used as a distributed denial of service mechanism. Newer mail systems will just drop the email unless otherwise configured. Exchange defaults to bouncing. Bob S > On Nov 17, 2016, at 12:01 , Colin Holgate wrote: > > I?m using Mail, and my provider is Verizon. I checked my settings online, and they do have an option where they delete spam automatically. I?ve changed that to have it save the messages in a spamdetecter folder. I should be able to see which messages are coming from the LiveCode lists. > > Still not sure that any mail system would pretend to bounce the message, instead of just blocking it. > > >> On Nov 17, 2016, at 12:53 PM, J. Landman Gay wrote: >> >> Typically the hosting service handles the spam filtering before your email client gets it. That's the filter I was referring to. GMail users may not have the same options though. >> >> On 11/17/16 1:31 PM, Colin Holgate wrote: >>> That would make sense if you had spam system that sent back a rejection message. I don?t use spam filters, I just let some emails go into Mail?s Junk mailbox. But I?ve also had the excessive bounce message a few times. >>> >>> For what it?s worth, my Junk mailbox currently has four emails from Roger Eller, one from Jan Schenkel, and two copies of the same email from the LiveCode team. >>> >>> The LiveCode team ones look like adverts, but the other messages seem harmless. >>> >>> >>>> On Nov 17, 2016, at 12:26 PM, J. Landman Gay wrote: >>>> >>>> On 11/17/16 1:15 PM, Jacques Clavel wrote: >>>>> The problem is that all seems to be normal for me, no problem at all, I >>>>> just received an email (the third) from use-livecode-request which says >>>>> (see below). I re-enabled my membership by using the first link and I >>>>> received again the messages from the list. >>>>> Can I do something to help to solve the problem? >>>> >>>> I wonder if the problem is over-aggressive spam filtering. If a spam filter bounces the list mail back to Mailman, you'd have "excessive bounces". >>>> >>>> I am not having the problem. In my cPanel I have spam filtering set to the default average level (5) and I receive list mails individually. I think sometimes the digest can appear as spam and that might cause a bounce. So I wonder if those people who are getting unsubscribed are receiving the digest? If you try receiving individual messages, do you still get the warning? >>>> >>>> -- >>>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>>> HyperActive Software | http://www.hyperactivesw.com >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 17 17:10:54 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 17 Nov 2016 17:10:54 -0500 Subject: Can the new player work with YouTube in 8.1.1? Message-ID: A YouTube URL doesn't seem to work as the fileName. Is there some special method or format of the URL needed? on mouseUp set the fileName of player 1 to "https://www.youtube.com/watch?v=K033kBr3C6c " end mouseUp ~Roger From bogdanoff at me.com Thu Nov 17 18:17:21 2016 From: bogdanoff at me.com (Peter Bogdanoff) Date: Thu, 17 Nov 2016 15:17:21 -0800 Subject: Can the new player work with YouTube in 8.1.1? In-Reply-To: References: Message-ID: <004911FF-FDE2-4818-B9C6-1414FC7655CA@me.com> It might be the codec that YouTube is using. See: http://video.stackexchange.com/questions/5318/how-does-youtube-encode-my-uploads-and-what-codec-should-i-use-to-upload Peter On Nov 17, 2016, at 2:10 PM, Roger Eller wrote: > A YouTube URL doesn't seem to work as the fileName. Is there some special > method or format of the URL needed? > > on mouseUp > > set the fileName of player 1 to "https://www.youtube.com/watch?v=K033kBr3C6c > " > > end mouseUp > > > ~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 alex at tweedly.net Thu Nov 17 19:29:05 2016 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 18 Nov 2016 00:29:05 +0000 Subject: lcGoogleDrive, Livecode for FM, etc. Message-ID: <65a09fc3-cbe4-2af1-f08e-93638f6b1802@tweedly.net> Actually, that subject line should probably be lcGoogleDrive *without* Livecode for FM I see that one of the components listed under Livecode for FM is a library for OAuth2 and GoogleDrive. Have I missed any announcement of those being available generally - i.e. without LC4FM ? I'm not expecting them to be free - but I do think they'd be useful in themselves. Thanks -- Alex. From monte at appisle.net Thu Nov 17 19:58:36 2016 From: monte at appisle.net (Monte Goulding) Date: Fri, 18 Nov 2016 11:58:36 +1100 Subject: lcGoogleDrive, Livecode for FM, etc. In-Reply-To: <65a09fc3-cbe4-2af1-f08e-93638f6b1802@tweedly.net> References: <65a09fc3-cbe4-2af1-f08e-93638f6b1802@tweedly.net> Message-ID: <7C1DE640-6B17-4BB8-9B99-1F1877B512DD@appisle.net> Hi Alex Yes one of the side effects of the LiveCode for FM project is a renewed push to show off what can be done with LiveCode to a community that hasn't seen it before and the oauth2 library and google drive library are a result of that. The oauth2 library is in/will be in LC community 9. We really wanted to facilitate people wrapping web services with this. Google drive might possibly make 9 (not sure on the edition) but it may need to be fleshed out with more APIs than have been done thus far. I also have a MIME library that has a pretty handy htmlText field to multipart email handler. It does embedded images too so it's quite helpful. That's what he Troubleshooting dialog uses. I believe that will be in community too. Cheers Monte Sent from my iPhone > On 18 Nov. 2016, at 11:29 am, Alex Tweedly wrote: > > > Actually, that subject line should probably be > > lcGoogleDrive *without* Livecode for FM > > > I see that one of the components listed under Livecode for FM is a library for OAuth2 and GoogleDrive. > > Have I missed any announcement of those being available generally - i.e. without LC4FM ? I'm not expecting them to be free - but I do think they'd be useful in themselves. > > Thanks > > -- Alex. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at livecode.org Thu Nov 17 20:13:06 2016 From: paul at livecode.org (Paul Hibbert) Date: Thu, 17 Nov 2016 17:13:06 -0800 Subject: Can the new player work with YouTube in 8.1.1? In-Reply-To: References: Message-ID: <0F6CB390-6992-4319-9ECF-20FC46ED04FA@livecode.org> One way that does work with YouTube is to use a browser widget instead of the player control, then set the URL to the ?embed? link provided by YouTube, but first, remove all of the iFrame tags and parameters, so in this case the URL would be, https://www.youtube.com/embed/K033kBr3C6c HTH Paul > On Nov 17, 2016, at 2:10 PM, Roger Eller > wrote: > > A YouTube URL doesn't seem to work as the fileName. Is there some special > method or format of the URL needed? > > on mouseUp > > set the fileName of player 1 to "https://www.youtube.com/watch?v=K033kBr3C6c > " > > end mouseUp > > > ~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 janschenkel at yahoo.com Fri Nov 18 04:46:34 2016 From: janschenkel at yahoo.com (Jan Schenkel) Date: Fri, 18 Nov 2016 09:46:34 +0000 (UTC) Subject: LC 6 to 8 some strange expieriences aligning objects at resizeStack References: <513154410.2362866.1479462394066.ref@mail.yahoo.com> Message-ID: <513154410.2362866.1479462394066@mail.yahoo.com> Hi Tiemo, You can always revert to the 'emulated' look and feel by changing the theme of the stack from "native" to "legacy". There's no drop-down in the property inspector, so you'll have to use the message box. HTH, Jan Schenkel. ===== Quartam Reports & PDF Library for LiveCode www.quartam.com ===== "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) -------------------------------------------- On Thu, 11/17/16, Tiemo Hollmann TB wrote: Subject: LC 6 to 8 some strange expieriences aligning objects at resizeStack To: "LiveCode User Liste senden" Date: Thursday, November 17, 2016, 3:34 PM Hello, I am migrating an old LC 2-6 stack to LC 8.1.1 In this stack I resize and arrange all objects by script when resizing the window. First experience was, that on Windows everything worked the same as in LC 6, all objects looked fine and aligned when resizing. On OS X 10.11 I am still fiddling around since some days to get all objects aligned. The nasty thing is, that I now have lots of code, which I have to differentiate between Win and Mac, where I had all the same code for resizing up to now in LC 6. One of the tiny, nasty things is, that the rect of an option button now can be different, as the visible rect of the button. Only at the default button height of 22 both are congruent. I know, this is a new thing of the underlying OS X drawing routines. But since I can't test it, I have no idea, what happens going back on a 10.8 system or to Sierra, are there the same graphic objects, or do I have to differentiate for 10.8,10.9,..? What is more annoying is that the height of the stack isn't anymore the same as the parameter newHeight of the resizeStack handler (what it was before on OS X and still is on Windows). Again lots more of code differentiation. Another weird issue is that the video appears 26 pixel lower as the player object is located (26 is the height of my stack menubar). Now I have to place the player object more to top by the height of the menubar. Since I couldn't create a recipie in a test stack for this strange issue, I didn't reported this as a bug. Again here I feel very unsafe if this hard coded workaround to place the player object more to top, as the video has to appear, works on all OS X platforms. Now I feel very uncomfortable with LC 8.1.1 shortly before release. (Unfortunatly I discovered these resizing anomalies on OS X pretty late in my project) Do you have any similar experiences? Any recommendations? 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 Nov 18 04:44:18 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Fri, 18 Nov 2016 10:44:18 +0100 Subject: AW: Signing an application for distribution outside the Mac App Store In-Reply-To: References: <53c99693-1095-e324-de28-8aaae4c3f150@cogapp.com> Message-ID: <006201d24180$563f3d10$02bdb730$@kestner.de> I don't know, if thats the issue for this error message, but as the name of the certificate you should only use "My Company", not "Developer ID Application: My Company" Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Richard Miller Gesendet: Mittwoch, 16. November 2016 02:49 An: How to use LiveCode Betreff: Signing an application for distribution outside the Mac App Store I am following the livecode instructions for "Signing an application for distribution outside the Mac App Store". When I run this in terminal: codesign -s "Developer ID Application: My Company" /Path/To/My/Application.app .... I get back this error message: "resource fork, Finder information, or similar detritus not allowed" I am trying to sign a LC app built in LC 8.0.0 dp16 running under OS Sierra and XCode 8.1. Thoughts? Thanks, Richard Miller _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Fri Nov 18 04:56:03 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Fri, 18 Nov 2016 10:56:03 +0100 Subject: AW: LC 6 to 8 some strange expieriences aligning objects at resizeStack In-Reply-To: <513154410.2362866.1479462394066@mail.yahoo.com> References: <513154410.2362866.1479462394066.ref@mail.yahoo.com> <513154410.2362866.1479462394066@mail.yahoo.com> Message-ID: <006301d24181$f93396a0$eb9ac3e0$@kestner.de> Thanks Jan, I'll have a look to it. Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Jan Schenkel Gesendet: Freitag, 18. November 2016 10:47 An: How to use LiveCode Betreff: Re: LC 6 to 8 some strange expieriences aligning objects at resizeStack Hi Tiemo, You can always revert to the 'emulated' look and feel by changing the theme of the stack from "native" to "legacy". There's no drop-down in the property inspector, so you'll have to use the message box. HTH, Jan Schenkel. ===== Quartam Reports & PDF Library for LiveCode www.quartam.com ===== "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) -------------------------------------------- On Thu, 11/17/16, Tiemo Hollmann TB wrote: Subject: LC 6 to 8 some strange expieriences aligning objects at resizeStack To: "LiveCode User Liste senden" Date: Thursday, November 17, 2016, 3:34 PM Hello, I am migrating an old LC 2-6 stack to LC 8.1.1 In this stack I resize and arrange all objects by script when resizing the window. First experience was, that on Windows everything worked the same as in LC 6, all objects looked fine and aligned when resizing. On OS X 10.11 I am still fiddling around since some days to get all objects aligned. The nasty thing is, that I now have lots of code, which I have to differentiate between Win and Mac, where I had all the same code for resizing up to now in LC 6. One of the tiny, nasty things is, that the rect of an option button now can be different, as the visible rect of the button. Only at the default button height of 22 both are congruent. I know, this is a new thing of the underlying OS X drawing routines. But since I can't test it, I have no idea, what happens going back on a 10.8 system or to Sierra, are there the same graphic objects, or do I have to differentiate for 10.8,10.9,..? What is more annoying is that the height of the stack isn't anymore the same as the parameter newHeight of the resizeStack handler (what it was before on OS X and still is on Windows). Again lots more of code differentiation. Another weird issue is that the video appears 26 pixel lower as the player object is located (26 is the height of my stack menubar). Now I have to place the player object more to top by the height of the menubar. Since I couldn't create a recipie in a test stack for this strange issue, I didn't reported this as a bug. Again here I feel very unsafe if this hard coded workaround to place the player object more to top, as the video has to appear, works on all OS X platforms. Now I feel very uncomfortable with LC 8.1.1 shortly before release. (Unfortunatly I discovered these resizing anomalies on OS X pretty late in my project) Do you have any similar experiences? Any recommendations? 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 roger.e.eller at sealedair.com Fri Nov 18 11:15:09 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 18 Nov 2016 11:15:09 -0500 Subject: [OT] Quartum PDF Library - How to change text color of a cell in a table? In-Reply-To: <162661478.2360823.1478963364007@mail.yahoo.com> References: <162661478.2360823.1478963364007.ref@mail.yahoo.com> <162661478.2360823.1478963364007@mail.yahoo.com> Message-ID: Thanks for your reply, Jan. I just found your reply in SPAM, lol. Anyhow, the team decided that black text is just fine. :) ~Roger On Sat, Nov 12, 2016 at 10:09 AM, Jan Schenkel wrote: > Hi Roger, > > Sorry for the late reply - I was at the Devoxx conference this past week > and am only now wading through my email backlog. > > As you found out, the qrtPDF_WriteTextTable command doesn't currently > offer a way to influence the formatting for an individual cell. > It was designed for single formatting, and adding a callback function to > let you influence the formatting per cell means it will need some > refactoring. > After all, if you were to change not only the colour but also the font > style or size, the calculation of the row heights becomes a lot more > complex. > That is not to say that the idea is too hard to pursue, but it will take > time to get it 'right' under all circumstances. > > In the meantime, you can build the table with separate qrtPDF_WriteTextBox > commands, as demonstrated in Example 4 of the script demos stack. > If you need a hand with that, feel free to post on the Quartam forums at < > http://forums.quartam.com> or email me directly. > > Best regards, > > Jan Schenkel. > > ===== > Quartam Reports & PDF Library for LiveCode > www.quartam.com > > ===== > "As we grow older, we grow both wiser and more foolish at the same time." > (La Rochefoucauld) > > -------------------------------------------- > On Mon, 11/7/16, Roger Eller wrote: > > Subject: [OT] Quartum PDF Library - How to change text color of a cell in > a table? > To: "How to use LiveCode" > Date: Monday, November 7, 2016, 9:41 PM > > I am using Jan Shenkel's PDF Library > in a project, and need to display > negative numbers in a table in red. > It seems to be possible to affect the entire table, but how > can I apply > color commands to a specific cell? > > TIA, > ~Roger > > From roger.e.eller at sealedair.com Fri Nov 18 11:31:07 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 18 Nov 2016 11:31:07 -0500 Subject: Can the new player work with YouTube in 8.1.1? Message-ID: For some reason, I never received the replies to my question, and it wasn't in spam either. Thank you Paul Hibbert, and Peter Bogdanoff for your suggestions! ~Roger Peter Bogdanoff Thu, 17 Nov 2016 15:19:54 -0800 It might be the codec that YouTube is using. See: http://video.stackexchange.com/questions/5318/how-does-youtube-encode-my-uploads-and-what-codec-should-i-use-to-upload Peter ----------------------------------------- Paul Hibbert Thu, 17 Nov 2016 17:15:12 -0800 One way that does work with YouTube is to use a browser widget instead of the player control, then set the URL to the ?embed? link provided by YouTube, but first, remove all of the iFrame tags and parameters, so in this case the URL would be, https://www.youtube.com/embed/K033kBr3C6c HTH Paul > On Nov 17, 2016, at 2:10 PM, Roger Eller >> wrote: > > A YouTube URL doesn't seem to work as the fileName. Is there some special > method or format of the URL needed? > > on mouseUp > > set the fileName of player 1 to "https://www.youtube.com/watch?v=K033kBr3C6c > > " > > end mouseUp > > > ~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 paul at researchware.com Fri Nov 18 13:55:34 2016 From: paul at researchware.com (Paul Dupuis) Date: Fri, 18 Nov 2016 13:55:34 -0500 Subject: Bundling an External into a Windows EXE? Message-ID: <582F4EA6.4010901@researchware.com> Does anyone have any tricks to bundle an external (revZip in my case) into the EXE built by the Standalone maker? Once really nice thing about the OSX app bundle (a special folder the OS treats as a bundle) is that if a use drags an app somewhere, everything that belongs to it moves with it. Certain resources, like icons, can be bundled into the EXE, using various Windows resource editor tools, so that has led me to wonder if there are any tricks to folding the dll of an external into the exe in a way that the LiveCode engine can find it? From bogdanoff at me.com Fri Nov 18 21:17:38 2016 From: bogdanoff at me.com (Peter Bogdanoff) Date: Fri, 18 Nov 2016 18:17:38 -0800 Subject: Player Control and focus Message-ID: <668837E3-7AFF-4242-8C59-A306D1371E00@me.com> I?m seeing: LC 6: click on a player control to give it focus and the keyboard spacebar pauses and resumes the player. LC 8.1.2 rc2: click on a player to give it focus and the keyboard spacebar pauses and resumes the player, the left arrow key moves the playhead backwards, and the right arrow key tries to move it forward. Is there a property that turns this behavior off and on? This behavior is a challenge when I want the spacebar to pause/resume, but the arrow keys to navigate cards. These are all standard interface conventions, but the implementation in LC 8 seems, well, undocumented. Peter Bogdanoff From paul at livecode.org Sat Nov 19 01:13:00 2016 From: paul at livecode.org (Paul Hibbert) Date: Fri, 18 Nov 2016 22:13:00 -0800 Subject: Player Control and focus In-Reply-To: <668837E3-7AFF-4242-8C59-A306D1371E00@me.com> References: <668837E3-7AFF-4242-8C59-A306D1371E00@me.com> Message-ID: <2AD976EF-95BD-407C-98A8-EB55852B345B@livecode.org> In a quick test on Mac, you can still trap the rawKeyDown in the player control and respond to the result so? on rawKeyDown pKey if pKey = "65363" then go next card if pKey = "65361" then go prev card pass rawKeyDown end rawKeyDown ?Should work. Paul > On Nov 18, 2016, at 6:17 PM, Peter Bogdanoff wrote: > > I?m seeing: > > LC 6: click on a player control to give it focus and the keyboard spacebar pauses and resumes the player. > > LC 8.1.2 rc2: click on a player to give it focus and the keyboard spacebar pauses and resumes the player, the left arrow key moves the playhead backwards, and the right arrow key tries to move it forward. > > Is there a property that turns this behavior off and on? > > This behavior is a challenge when I want the spacebar to pause/resume, but the arrow keys to navigate cards. > > These are all standard interface conventions, but the implementation in LC 8 seems, well, undocumented. > > Peter Bogdanoff > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sat Nov 19 03:18:07 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 19 Nov 2016 02:18:07 -0600 Subject: Swipe gestures on a mobile scroller Message-ID: I have a native mobile scroller handling the vertical scroll of a field. I want to add swipe gestures to change cards. When swiping, I get a mouseDown, sporadic mouseMoves (the logging might be interfering, not sure, but after a couple they stop) and no mouseUp at all. I tried using touchStart/touchMove/touchEnd instead and the result is the same. TouchStart always fires, touchMove is iffy, and touchEnd never happens. Without the end message I can't calculate the direction. Plain taps work fine with either set of messages, I do get mouseUp/touchEnd if it's a tap. It's only swipes that don't report. The scroller has its hScroll property set to false if that matters, as I don't want horizontal scrolling but I do want to track the touch direction. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From alex at tweedly.net Sat Nov 19 09:13:49 2016 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 19 Nov 2016 14:13:49 +0000 Subject: lcGoogleDrive, Livecode for FM, etc. In-Reply-To: <7C1DE640-6B17-4BB8-9B99-1F1877B512DD@appisle.net> References: <65a09fc3-cbe4-2af1-f08e-93638f6b1802@tweedly.net> <7C1DE640-6B17-4BB8-9B99-1F1877B512DD@appisle.net> Message-ID: <9bebed6e-16c4-4118-3d81-1798c8a037e3@tweedly.net> Wow ! Terrific. Like I said, I would have been happy to pay for extra compnents, so to hear that they will be included, and in the Community version, is better than I would have hoped for. Thanks Monte. Alex. On 18/11/2016 00:58, Monte Goulding wrote: > Hi Alex > > Yes one of the side effects of the LiveCode for FM project is a renewed push to show off what can be done with LiveCode to a community that hasn't seen it before and the oauth2 library and google drive library are a result of that. The oauth2 library is in/will be in LC community 9. We really wanted to facilitate people wrapping web services with this. > > Google drive might possibly make 9 (not sure on the edition) but it may need to be fleshed out with more APIs than have been done thus far. > > I also have a MIME library that has a pretty handy htmlText field to multipart email handler. It does embedded images too so it's quite helpful. That's what he Troubleshooting dialog uses. I believe that will be in community too. > > Cheers > > Monte > > Sent from my iPhone > >> On 18 Nov. 2016, at 11:29 am, Alex Tweedly wrote: >> >> >> Actually, that subject line should probably be >> >> lcGoogleDrive *without* Livecode for FM >> >> >> I see that one of the components listed under Livecode for FM is a library for OAuth2 and GoogleDrive. >> >> Have I missed any announcement of those being available generally - i.e. without LC4FM ? I'm not expecting them to be free - but I do think they'd be useful in themselves. >> >> Thanks >> >> -- Alex. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From skiplondon at gmail.com Sat Nov 19 10:01:59 2016 From: skiplondon at gmail.com (Skip Kimpel) Date: Sat, 19 Nov 2016 10:01:59 -0500 Subject: lcGoogleDrive, Livecode for FM, etc. In-Reply-To: <9bebed6e-16c4-4118-3d81-1798c8a037e3@tweedly.net> References: <65a09fc3-cbe4-2af1-f08e-93638f6b1802@tweedly.net> <7C1DE640-6B17-4BB8-9B99-1F1877B512DD@appisle.net> <9bebed6e-16c4-4118-3d81-1798c8a037e3@tweedly.net> Message-ID: <8DFE6FBC-87C0-4A78-A802-96CBBB70533E@gmail.com> That is really good news! > On Nov 19, 2016, at 9:13 AM, Alex Tweedly wrote: > > Wow ! Terrific. Like I said, I would have been happy to pay for extra compnents, so to hear that they will be included, and in the Community version, is better than I would have hoped for. > > > Thanks Monte. > Alex. > >> On 18/11/2016 00:58, Monte Goulding wrote: >> Hi Alex >> >> Yes one of the side effects of the LiveCode for FM project is a renewed push to show off what can be done with LiveCode to a community that hasn't seen it before and the oauth2 library and google drive library are a result of that. The oauth2 library is in/will be in LC community 9. We really wanted to facilitate people wrapping web services with this. >> >> Google drive might possibly make 9 (not sure on the edition) but it may need to be fleshed out with more APIs than have been done thus far. >> >> I also have a MIME library that has a pretty handy htmlText field to multipart email handler. It does embedded images too so it's quite helpful. That's what he Troubleshooting dialog uses. I believe that will be in community too. >> >> Cheers >> >> Monte >> >> Sent from my iPhone >> >>> On 18 Nov. 2016, at 11:29 am, Alex Tweedly wrote: >>> >>> >>> Actually, that subject line should probably be >>> >>> lcGoogleDrive *without* Livecode for FM >>> >>> >>> I see that one of the components listed under Livecode for FM is a library for OAuth2 and GoogleDrive. >>> >>> Have I missed any announcement of those being available generally - i.e. without LC4FM ? I'm not expecting them to be free - but I do think they'd be useful in themselves. >>> >>> Thanks >>> >>> -- Alex. >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 19 10:13:19 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 19 Nov 2016 17:13:19 +0200 Subject: Macintosh support Message-ID: <2cb910e8-1fa8-756b-7978-059cbc7db8d3@gmail.com> I would like to know why Livecode 9 has dropped support for all versions of Mac OS before 10.9. Richmond. From ambassador at fourthworld.com Sat Nov 19 11:09:30 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 19 Nov 2016 08:09:30 -0800 Subject: Macintosh support In-Reply-To: <2cb910e8-1fa8-756b-7978-059cbc7db8d3@gmail.com> References: <2cb910e8-1fa8-756b-7978-059cbc7db8d3@gmail.com> Message-ID: Richmond wrote: > I would like to know why Livecode 9 has dropped support for all > versions of Mac OS before 10.9. ZDNet reports that OS X 10.8 t hasn't received critical security patches in over four years, and as such is regarded as too dangerous to use: OS X Mountain Lion: Still unsupported and vulnerable One month after the release of OS X Mavericks and the disclosure of 48 vulnerabilities in Mountain Lion, Apple has not released any updates to fix these or any other problems in Mountain Lion. I don't know why Apple doesn't publish EOL dates for their OSes like every other major OS vendor does. Microsoft gives at least a half-decade advance notice for Windows, and Canonical lets you know EOL dates for every version of Ubuntu even before release. But AFAIK for more than a decade Apple merely quietly stops releasing updates, preventing their users from making informed decisions about upgrades. This uniquely dangerous practice leaves millions of Apple customers unwittingly exposed. -- 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 peter.brett at livecode.com Sat Nov 19 11:22:44 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Sat, 19 Nov 2016 16:22:44 +0000 Subject: Macintosh support In-Reply-To: <2cb910e8-1fa8-756b-7978-059cbc7db8d3@gmail.com> References: <2cb910e8-1fa8-756b-7978-059cbc7db8d3@gmail.com> Message-ID: <6aa6da27-0091-998b-bd60-b1fcc9ee0f95@livecode.com> On 19/11/2016 15:13, Richmond wrote: > I would like to know why Livecode 9 has dropped support for all versions > of Mac OS before 10.9. LiveCode 9 may still run on OS X 10.7, for the time being -- we just don't provide any official support for (or run tests on) that platform any more. The development team has to regularly move the LiveCode build system to newer versions of Xcode and newer versions of the MacOS SDK, so that they can keep LiveCode working well with new versions of MacOS and add new features requested by users. Occasionally this means that older versions of OS X won't run LiveCode any more. With a very small development team and quality assurance team, we have to be careful to keep the number and variety of supported platform configurations for LiveCode within a manageable limit. Occasionally this means we have to stop providing technical support for running LiveCode on older versions of OS X. Apple stopped providing any patches or security fixes for OS X 10.8 over a year ago, and it contains many highly-exploitable vulnerabilities. I *very strongly* recommend against using versions of OS X prior to OS X 10.10. If your hardware can't run OS X 10.12, I recommend upgrading its operating system to Linux. You can find more information on our platform support plans in my recent-ish blog post [1], and in due course we will be adding some pages to the website that show the same information in a quicker-to-find way. Peter [1] https://livecode.com/updated-platform-support-policy/ -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From jacque at hyperactivesw.com Sat Nov 19 14:38:40 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 19 Nov 2016 13:38:40 -0600 Subject: Swipe gestures on a mobile scroller In-Reply-To: References: Message-ID: <1b6cc2df-68e2-0fe3-34aa-01d4148127a0@hyperactivesw.com> On 11/19/16 2:18 AM, J. Landman Gay wrote: > I have a native mobile scroller handling the vertical scroll of a field. > I want to add swipe gestures to change cards. When swiping, I get a > mouseDown, sporadic mouseMoves (the logging might be interfering, not > sure, but after a couple they stop) and no mouseUp at all. > > I tried using touchStart/touchMove/touchEnd instead and the result is > the same. TouchStart always fires, touchMove is iffy, and touchEnd never > happens. > > Without the end message I can't calculate the direction. Plain taps work > fine with either set of messages, I do get mouseUp/touchEnd if it's a > tap. It's only swipes that don't report. > > The scroller has its hScroll property set to false if that matters, as I > don't want horizontal scrolling but I do want to track the touch direction. > The problem has apparently been around for quite some time: Anyone have a workaround? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From brahma at hindu.org Sat Nov 19 16:21:12 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 19 Nov 2016 21:21:12 +0000 Subject: GUI Design Tasks Send Back - Bring Forward Message-ID: <110E0503-1282-441B-B470-C76840F4475B@hindu.org> when I switch from code to building GUI.. we are in an world of objects. Is it only me that wishes we could a) import and image b) click right click on the image --arrange send back bring forward ? Use case is in a rapid prototyping/design environment where e.g. you have a background image with a group on top. You need to show your lead stackholder(s) how it looks offer options ?so you group all the controls and then create 5 cards, but now if you want to swap out the image in the back to show everyone different options, you import to the Object --> arrange, send to back to push it all the way down to layer 1. Am I the only one wishing we had this in a contextual menu? I know a lot of you build your GUI tools into a front script that you call on start up which then overrides or augments the IDE. How can I get the "arrange" option in contextual menus for all objects? worth of a feature request? BR From roger.e.eller at sealedair.com Sat Nov 19 16:30:47 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Sat, 19 Nov 2016 16:30:47 -0500 Subject: GUI Design Tasks Send Back - Bring Forward In-Reply-To: <110E0503-1282-441B-B470-C76840F4475B@hindu.org> References: <110E0503-1282-441B-B470-C76840F4475B@hindu.org> Message-ID: Besides wanting to only use the mouse for re-layering, you can already demo your layered images by clicking and pressing Control-[ or Control-]. ~Roger On Sat, Nov 19, 2016 at 4:21 PM, Sannyasin Brahmanathaswami < brahma at hindu.org> wrote: > when I switch from code to building GUI.. we are in an world of objects. > Is it only me that wishes we could > > a) import and image > b) click right click on the image > --arrange > send back > bring forward > > ? > > Use case is in a rapid prototyping/design environment where e.g. you have > a background image with a group on top. You need to show your lead > stackholder(s) how it looks offer options > > ?so you group all the controls and then create 5 cards, but now if you > want to swap out the image in the back to show everyone different options, > you import to the Object --> arrange, send to back to push it all the way > down to layer 1. > > Am I the only one wishing we had this in a contextual menu? > > I know a lot of you build your GUI tools into a front script that you call > on start up which then overrides or augments the IDE. > > How can I get the "arrange" option in contextual menus for all objects? > > worth of a feature request? > > BR > > From brahma at hindu.org Sat Nov 19 17:01:37 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 19 Nov 2016 22:01:37 +0000 Subject: Type on an angle Message-ID: <0EFB2559-A5B4-4F0B-B770-E6F9D98D3407@hindu.org> Working on GUI today I created a field and thinking it would be cool to have it run sideways at an angle along the edge of an element in the background photo? I put this into the msg Box set the angle of fld "cardTitle" to 66 Of course, duh, got this: Message execution error: Error description: Object: object does not have this property went to the dictionary: indeed there seems to be no way to type at an angle. [ OT: A 20-year-old lizard from the underworld starts to slither on my skin; an old crag with hooked nose stirs a rant pot that starts to boil over, the slim in the pot flows over onto floor and forming these words: "Why is LC's graphic UI stuck in circa 1995! Why is it soooo hard to build good looking UI in this environment!" The wizard jumps down from his nap on the ceiling, quickly waves his wand "Have You No Patience? Some things take eons!" The little GUI smithy hangs his head, not one to be shut up by a wizard, saying "True, but we will all be dead by then." ] Any solutions? BR From monte at appisle.net Sat Nov 19 17:04:51 2016 From: monte at appisle.net (Monte Goulding) Date: Sun, 20 Nov 2016 09:04:51 +1100 Subject: lcGoogleDrive, Livecode for FM, etc. In-Reply-To: <9bebed6e-16c4-4118-3d81-1798c8a037e3@tweedly.net> References: <65a09fc3-cbe4-2af1-f08e-93638f6b1802@tweedly.net> <7C1DE640-6B17-4BB8-9B99-1F1877B512DD@appisle.net> <9bebed6e-16c4-4118-3d81-1798c8a037e3@tweedly.net> Message-ID: <221BFBC9-B210-42C4-A982-5143A82C7C51@appisle.net> > On 20 Nov. 2016, at 1:13 am, Alex Tweedly wrote: > > Wow ! Terrific. Like I said, I would have been happy to pay for extra compnents, so to hear that they will be included, and in the Community version, is better than I would have hoped for I should clarify that at the moment there hasn?t been any discussion of making the LiveCode for FM pre-canned custom components generally available to the rest of the community although the PDF selection dialog is the new XPDF demo stack. While I only see benefits in doing so I?m not the one that makes these decisions ;-) It will probably also take us a while to figure out a good plan for providing examples in the IDE that magically turn into custom components when we build LiveCode for FM. There?s also some decisions to be made about which edition things go into. They are intended to be both examples and by the end of the beta period (if not yet already) solid features to add to a FileMaker solution. The idea being that there will likely be a percentage of people buying LiveCode for FM that just want to use the default set of components. As examples they are just as good for regular LiveCode as they are for LiveCode for FM. The main difference with FileMaker being the way data is passed back and forth. Obviously if we can get the wider community adding extra APIs to the google drive library (it currently only has upload file and export as PDF along with the file/folder picker) or wrapping new web services leveraging the oauth2 library then that?s a win for everyone. Cheers Monte From monte at appisle.net Sat Nov 19 17:07:44 2016 From: monte at appisle.net (Monte Goulding) Date: Sun, 20 Nov 2016 09:07:44 +1100 Subject: Type on an angle In-Reply-To: <0EFB2559-A5B4-4F0B-B770-E6F9D98D3407@hindu.org> References: <0EFB2559-A5B4-4F0B-B770-E6F9D98D3407@hindu.org> Message-ID: <1921E3AD-8861-4531-B0AD-A1F397F84520@appisle.net> > On 20 Nov. 2016, at 9:01 am, Sannyasin Brahmanathaswami wrote: > > Any solutions? Do you need to be able to type or just show angled text? Angled text is very easy to do in a widget. I vaguely recall someone in the community releasing an angled text label. Bernd? Cheers Monte From roger.e.eller at sealedair.com Sat Nov 19 17:15:58 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Sat, 19 Nov 2016 17:15:58 -0500 Subject: lcGoogleDrive, Livecode for FM, etc. In-Reply-To: <221BFBC9-B210-42C4-A982-5143A82C7C51@appisle.net> References: <65a09fc3-cbe4-2af1-f08e-93638f6b1802@tweedly.net> <7C1DE640-6B17-4BB8-9B99-1F1877B512DD@appisle.net> <9bebed6e-16c4-4118-3d81-1798c8a037e3@tweedly.net> <221BFBC9-B210-42C4-A982-5143A82C7C51@appisle.net> Message-ID: I have no use at all for FM, but a lcGoogleDrive would be just wonderful. ~Roger On Sat, Nov 19, 2016 at 5:04 PM, Monte Goulding wrote: > > > On 20 Nov. 2016, at 1:13 am, Alex Tweedly wrote: > > > > Wow ! Terrific. Like I said, I would have been happy to pay for extra > compnents, so to hear that they will be included, and in the Community > version, is better than I would have hoped for > > I should clarify that at the moment there hasn?t been any discussion of > making the LiveCode for FM pre-canned custom components generally available > to the rest of the community although the PDF selection dialog is the new > XPDF demo stack. While I only see benefits in doing so I?m not the one that > makes these decisions ;-) It will probably also take us a while to figure > out a good plan for providing examples in the IDE that magically turn into > custom components when we build LiveCode for FM. There?s also some > decisions to be made about which edition things go into. > > They are intended to be both examples and by the end of the beta period > (if not yet already) solid features to add to a FileMaker solution. The > idea being that there will likely be a percentage of people buying LiveCode > for FM that just want to use the default set of components. > > As examples they are just as good for regular LiveCode as they are for > LiveCode for FM. The main difference with FileMaker being the way data is > passed back and forth. Obviously if we can get the wider community adding > extra APIs to the google drive library (it currently only has upload file > and export as PDF along with the file/folder picker) or wrapping new web > services leveraging the oauth2 library then that?s a win for everyone. > > Cheers > > Monte > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From monte at appisle.net Sat Nov 19 17:51:48 2016 From: monte at appisle.net (Monte Goulding) Date: Sun, 20 Nov 2016 09:51:48 +1100 Subject: lcGoogleDrive, Livecode for FM, etc. In-Reply-To: References: <65a09fc3-cbe4-2af1-f08e-93638f6b1802@tweedly.net> <7C1DE640-6B17-4BB8-9B99-1F1877B512DD@appisle.net> <9bebed6e-16c4-4118-3d81-1798c8a037e3@tweedly.net> <221BFBC9-B210-42C4-A982-5143A82C7C51@appisle.net> Message-ID: <2B1FFFB2-20AA-4177-AC6E-302304144EB6@appisle.net> > On 20 Nov. 2016, at 9:15 am, Roger Eller wrote: > > I have no use at all for FM, but a lcGoogleDrive would be just wonderful. Cool, with the OAuth2 library + JSON <-> Array web services aren?t that complicated. It?s largely just a matter or reading the API docs from there to see how to do what you want to do. Here?s the example from the OAuth2 library which posts a message to slack: constant kAuthURL = "https://slack.com/oauth/authorize" constant kTokenURL = "https://slack.com/api/oauth.access" constant kClientID = "XXXXXXXXX.XXXXXXXX" constant kClientSecret = "XXXXXXXXXXXXXXXXXXXXX" constant kScopes = "incoming-webhook" OAuth2 kAuthURL, kTokenURL, kClientID, kClientSecret, kScopes, 54303 if the result is not empty then answer error "Not authorized!" else local tAuth put it into tAuth local tMessage ask question "What do you want to send?" if it is empty then exit mouseUp end if put it into tMessage["text"] put ArrayToJSON(tMessage) into tMessage set the httpHeaders to "Content-type: application/json" & \ return & "Authorization: token " & sAuth["access_token"] post tMessage to url tAuth["incoming_webhook"]["url"] end if From ambassador at fourthworld.com Sat Nov 19 18:15:32 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 19 Nov 2016 15:15:32 -0800 Subject: Type on an angle In-Reply-To: <0EFB2559-A5B4-4F0B-B770-E6F9D98D3407@hindu.org> References: <0EFB2559-A5B4-4F0B-B770-E6F9D98D3407@hindu.org> Message-ID: <1d879f16-e763-f326-9a2c-36e404719d02@fourthworld.com> Sannyasin Brahmanathaswami wrote: > Working on GUI today I created a field and thinking it would be cool > to have it run sideways at an angle along the edge of an element in > the background photo? I put this into the msg Box > > set the angle of fld "cardTitle" to 66 ... > "Why is LC's graphic UI stuck in circa 1995! > Why is it soooo hard to build good looking UI in this environment!" Good point. Far better to make software with Adobe Illustrator. ;) Years ago I started with something like this: import snapshot from fld 1 set the angle of last image to 90 ...and considered extending that to a custom control driven by a behavior script in which a group had both a field for text entry and a bitmap for display; double-click hides the bitmap and shows the field for editing, closeField hides the field and re-renders the bitmap. I wound up not needing it, but definitely doable with a very convenient result. And like Monte said, with LC Builder you get direct access to Skia, so you could render with printer-quality output. If you really want this I'd wager you could make it in an afternoon, certainly far less time than you'd spend doing it in C, and infinitely less time than you'd spend trying to do app development with Adobe Illustrator. :) -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From jacque at hyperactivesw.com Sat Nov 19 18:32:26 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 19 Nov 2016 17:32:26 -0600 Subject: Type on an angle In-Reply-To: <1921E3AD-8861-4531-B0AD-A1F397F84520@appisle.net> References: <0EFB2559-A5B4-4F0B-B770-E6F9D98D3407@hindu.org> <1921E3AD-8861-4531-B0AD-A1F397F84520@appisle.net> Message-ID: <1a1c0cd4-4201-cf2c-ef52-7238992205e7@hyperactivesw.com> On 11/19/16 4:07 PM, Monte Goulding wrote: > >> On 20 Nov. 2016, at 9:01 am, Sannyasin Brahmanathaswami wrote: >> >> Any solutions? > > Do you need to be able to type or just show angled text? Angled text is very easy to do in a widget. I vaguely recall someone in the community releasing an angled text label. Bernd? It was -hh (Hermann) and it's somewhere in the forums. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at livecode.org Sat Nov 19 18:48:20 2016 From: paul at livecode.org (Paul Hibbert) Date: Sat, 19 Nov 2016 15:48:20 -0800 Subject: Swipe gestures on a mobile scroller In-Reply-To: <1b6cc2df-68e2-0fe3-34aa-01d4148127a0@hyperactivesw.com> References: <1b6cc2df-68e2-0fe3-34aa-01d4148127a0@hyperactivesw.com> Message-ID: <440ECBFE-AC8A-4A2B-BA2E-BFB0D79268F9@livecode.org> > On Nov 19, 2016, at 11:38 AM, J. Landman Gay wrote: > > Anyone have a workaround? Kind of! I built an iOS app that needed to display some long fields of text, I built some pages based around this lesson: http://lessons.livecode.com/m/4069/l/94412-creating-a-native-scroller-to-scroll-a-field?id=94412-creating-a-native-scroller-to-scroll-a-field I had the same problem with navigating cards using swipe gestures because the field covered the majority of the card, I managed to work around the problem by modifying the scrollerDidScroll handler to: on scrollerDidScroll hOffset, vOffset // When the user scrolls horizontally, navigate in the desired direction if the hScroll of group "scrollArea" <0 then // Detect the horizontal swipe moveBack // Stack handler to move back to Index card else if the hScroll of group "scrollArea" >0 then moveForward // Stack handler to move to next card end if // When the user swipes vertically, scroll the displayed content set the vScroll of group "scrollArea" to vOffset end scrollerDidScroll To make this work I had to set these properties on the text field; traversalOn ?false? autoHilite ?false? lock text ?true? So this may not work if you need the user to be able to modify the text unless you can give them a method of changing between edit/navigate modes. I?ve managed to update the lesson file, it's on dropbox, so if it helps here it is for you to test: https://www.dropbox.com/s/ak234nlwbgfko3p/Scroll%20Test.livecode?dl=0 It does seem to be reasonably reliable, but not if you tend to swipe too fast, I have?t tried it on Android though. Paul From colinholgate at gmail.com Sat Nov 19 18:57:51 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Sat, 19 Nov 2016 16:57:51 -0700 Subject: Type on an angle In-Reply-To: <0EFB2559-A5B4-4F0B-B770-E6F9D98D3407@hindu.org> References: <0EFB2559-A5B4-4F0B-B770-E6F9D98D3407@hindu.org> Message-ID: <852441FF-DFF3-4666-9B38-056BCBC876E7@gmail.com> Could you import snapshot from rectangle the rect of field 1, then set the angle of the image? You would need to add the left and top of the card window I guess, to get the right part of the screen. From alex at tweedly.net Sat Nov 19 19:13:16 2016 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 20 Nov 2016 00:13:16 +0000 Subject: Free Let's Encrypt SSL Certificates for On-Rev? In-Reply-To: <56A97E1D.30709@ahsoftware.net> References: <56A93418.30106@ahsoftware.net> <56A95C5A.1080401@harryscollar.com> <56A97E1D.30709@ahsoftware.net> Message-ID: <9336b829-2ec0-382c-777b-7e4e3aecca2b@tweedly.net> I know it's an old conversation from Jnuary - but here's an update ... I recently ask suport at on-rev.com and got the following reply from David : > The way this works is that all sites under your account which are not currently secured > with a preexisting SSL certificate will be automatically set up with a Let's Encrypt > certificate. This process is entirely automated and does not require any manual setup > from yourself, and the certificates are automatically renewed when they are about to > expire. > > This can be set up for On-Rev accounts as well as Livecode Hosting accounts. I can > enable this for your account if you would like me to do so. So it looks as though on-rev does indeed use SIN (or equivalent) to allow use on multiple shared domains without static IP addresses. And it also looks as though they still don't support cPanel access, or even requests - but so long as they accept email requests, I don't mind that :-) -- Alex. On 28/01/2016 02:34, Mark Wieder wrote: > On 01/27/2016 04:10 PM, Alex Shaw wrote: > >> Also, it would be nice to support the free Let's Encrypt SSL >> Certificates via cpanel.. > > Server certificates normally need a static ip address. Some other > hosting sites have shims installed to allow you to have certs without > a static address, but I wouldn't count on on-rev putting something > that technical into place. It seems they haven't even gotten the hang > of failovers yet. > From roger.e.eller at sealedair.com Sat Nov 19 20:04:07 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Sat, 19 Nov 2016 20:04:07 -0500 Subject: Type on an angle In-Reply-To: <852441FF-DFF3-4666-9B38-056BCBC876E7@gmail.com> References: <0EFB2559-A5B4-4F0B-B770-E6F9D98D3407@hindu.org> <852441FF-DFF3-4666-9B38-056BCBC876E7@gmail.com> Message-ID: I would much rather have a native angle property as a part of the text field. Live text on an angle like Adobe Photoshop and Illustrator have would enable a whole world of design apps with LiveCode. I've used the snapshot workaround for 15 years, and it has never impressed anyone. ~Roger On Sat, Nov 19, 2016 at 6:57 PM, Colin Holgate wrote: > Could you import snapshot from rectangle the rect of field 1, then set the > angle of the image? > > You would need to add the left and top of the card window I guess, to get > the right part of the screen. > From ambassador at fourthworld.com Sat Nov 19 20:10:47 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 19 Nov 2016 17:10:47 -0800 Subject: Type on an angle In-Reply-To: References: Message-ID: <848db0f9-8f1f-a806-15fc-873782e24a72@fourthworld.com> Roger Eller wrote: > I would much rather have a native angle property as a part of > the text field. That would be cool, but could we perhaps have formatting properties first? I have maybe two apps across all my computing devices that let me edit rotated text, but I have dozens that display text in a variety of formats (date, phone number, currency, etc.). -- 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 terry.judd at unimelb.edu.au Sat Nov 19 21:53:27 2016 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Sun, 20 Nov 2016 02:53:27 +0000 Subject: Swipe gestures on a mobile scroller In-Reply-To: <1b6cc2df-68e2-0fe3-34aa-01d4148127a0@hyperactivesw.com> References: , <1b6cc2df-68e2-0fe3-34aa-01d4148127a0@hyperactivesw.com> Message-ID: Hi Jacque - I struggled with this for ages on an iOS and android app earlier in the year (vertical scrolling content with side-to-side swiping for navigation (a la iCal). After trying a truckload of different approaches (hacks) I mostly got it to work on iOS (I still got intermittent failures) and I eventually gave up altogether on android and used left and right buttons instead. Things might have improved then but based on your experience it sounds unlikely. Happy to dig out my hacky iOS code if that helps but engine level fixes would be better. Terry... Sent from my iPad > On 20 Nov 2016, at 6:39 AM, J. Landman Gay wrote: > >> On 11/19/16 2:18 AM, J. Landman Gay wrote: >> I have a native mobile scroller handling the vertical scroll of a field. >> I want to add swipe gestures to change cards. When swiping, I get a >> mouseDown, sporadic mouseMoves (the logging might be interfering, not >> sure, but after a couple they stop) and no mouseUp at all. >> >> I tried using touchStart/touchMove/touchEnd instead and the result is >> the same. TouchStart always fires, touchMove is iffy, and touchEnd never >> happens. >> >> Without the end message I can't calculate the direction. Plain taps work >> fine with either set of messages, I do get mouseUp/touchEnd if it's a >> tap. It's only swipes that don't report. >> >> The scroller has its hScroll property set to false if that matters, as I >> don't want horizontal scrolling but I do want to track the touch direction. > > The problem has apparently been around for quite some time: > > > Anyone have a workaround? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sat Nov 19 23:06:31 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 19 Nov 2016 22:06:31 -0600 Subject: Swipe gestures on a mobile scroller In-Reply-To: References: <1b6cc2df-68e2-0fe3-34aa-01d4148127a0@hyperactivesw.com> Message-ID: <36e9a2c5-afaf-5f4c-05a7-6b4d24efe25f@hyperactivesw.com> Well, it's good to know I'm not alone I guess. ;) I just wish I'd asked earlier, before I spent some hours tracking down the problem. I'd like to think the omission of mouseUp/touchEnd messages was an oversight, since we do get all the other mouse messages. I haven't tried Paul's workaround. I'm not sure how it could work, since the horizontal scroll of my field is always zero. It doesn't scroll horizontally at all. The fix should really be in the engine though. On 11/19/16 8:53 PM, Terry Judd wrote: > Hi Jacque - I struggled with this for ages on an iOS and android app > earlier in the year (vertical scrolling content with side-to-side > swiping for navigation (a la iCal). After trying a truckload of > different approaches (hacks) I mostly got it to work on iOS (I still > got intermittent failures) and I eventually gave up altogether on > android and used left and right buttons instead. Things might have > improved then but based on your experience it sounds unlikely. Happy > to dig out my hacky iOS code if that helps but engine level fixes > would be better. > > Terry... > > Sent from my iPad > >> On 20 Nov 2016, at 6:39 AM, J. Landman Gay >> wrote: >> >>> On 11/19/16 2:18 AM, J. Landman Gay wrote: I have a native mobile >>> scroller handling the vertical scroll of a field. I want to add >>> swipe gestures to change cards. When swiping, I get a mouseDown, >>> sporadic mouseMoves (the logging might be interfering, not sure, >>> but after a couple they stop) and no mouseUp at all. >>> >>> I tried using touchStart/touchMove/touchEnd instead and the >>> result is the same. TouchStart always fires, touchMove is iffy, >>> and touchEnd never happens. >>> >>> Without the end message I can't calculate the direction. Plain >>> taps work fine with either set of messages, I do get >>> mouseUp/touchEnd if it's a tap. It's only swipes that don't >>> report. >>> >>> The scroller has its hScroll property set to false if that >>> matters, as I don't want horizontal scrolling but I do want to >>> track the touch direction. >> >> The problem has apparently been around for quite some time: >> >> >> Anyone have a workaround? >> >> -- Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> _______________________________________________ use-livecode >> mailing list use-livecode at lists.runrev.com Please visit this url to >> subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ use-livecode mailing > list use-livecode at lists.runrev.com Please visit this url to > subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Nov 19 23:13:23 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 19 Nov 2016 22:13:23 -0600 Subject: Swipe gestures on a mobile scroller In-Reply-To: <36e9a2c5-afaf-5f4c-05a7-6b4d24efe25f@hyperactivesw.com> References: <1b6cc2df-68e2-0fe3-34aa-01d4148127a0@hyperactivesw.com> <36e9a2c5-afaf-5f4c-05a7-6b4d24efe25f@hyperactivesw.com> Message-ID: BTW, there appears to be a related bug that got fixed: MouseUp wasn't being sent when a native scroller was active. It looks like they fixed that one but forgot to check related swipe mouseUps. Hopefully the team can use the same fix again. On 11/19/16 10:06 PM, J. Landman Gay wrote: > Well, it's good to know I'm not alone I guess. ;) I just wish I'd asked > earlier, before I spent some hours tracking down the problem. I'd like > to think the omission of mouseUp/touchEnd messages was an oversight, > since we do get all the other mouse messages. > > I haven't tried Paul's workaround. I'm not sure how it could work, since > the horizontal scroll of my field is always zero. It doesn't scroll > horizontally at all. > > The fix should really be in the engine though. > > On 11/19/16 8:53 PM, Terry Judd wrote: >> Hi Jacque - I struggled with this for ages on an iOS and android app >> earlier in the year (vertical scrolling content with side-to-side >> swiping for navigation (a la iCal). After trying a truckload of >> different approaches (hacks) I mostly got it to work on iOS (I still >> got intermittent failures) and I eventually gave up altogether on >> android and used left and right buttons instead. Things might have >> improved then but based on your experience it sounds unlikely. Happy >> to dig out my hacky iOS code if that helps but engine level fixes >> would be better. >> >> Terry... >> >> Sent from my iPad >> >>> On 20 Nov 2016, at 6:39 AM, J. Landman Gay >>> wrote: >>> >>>> On 11/19/16 2:18 AM, J. Landman Gay wrote: I have a native mobile >>>> scroller handling the vertical scroll of a field. I want to add >>>> swipe gestures to change cards. When swiping, I get a mouseDown, >>>> sporadic mouseMoves (the logging might be interfering, not sure, >>>> but after a couple they stop) and no mouseUp at all. >>>> >>>> I tried using touchStart/touchMove/touchEnd instead and the >>>> result is the same. TouchStart always fires, touchMove is iffy, >>>> and touchEnd never happens. >>>> >>>> Without the end message I can't calculate the direction. Plain >>>> taps work fine with either set of messages, I do get >>>> mouseUp/touchEnd if it's a tap. It's only swipes that don't >>>> report. >>>> >>>> The scroller has its hScroll property set to false if that >>>> matters, as I don't want horizontal scrolling but I do want to >>>> track the touch direction. >>> >>> The problem has apparently been around for quite some time: >>> >>> >>> Anyone have a workaround? >>> >>> -- Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> >>> _______________________________________________ use-livecode >>> mailing list use-livecode at lists.runrev.com Please visit this url to >>> subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ use-livecode mailing >> list use-livecode at lists.runrev.com Please visit this url to >> subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From scott at elementarysoftware.com Sun Nov 20 04:19:50 2016 From: scott at elementarysoftware.com (Scott Morrow) Date: Sun, 20 Nov 2016 01:19:50 -0800 Subject: Swipe gestures on a mobile scroller In-Reply-To: References: <1b6cc2df-68e2-0fe3-34aa-01d4148127a0@hyperactivesw.com> <36e9a2c5-afaf-5f4c-05a7-6b4d24efe25f@hyperactivesw.com> Message-ID: <92766D0A-3587-4B98-9FE4-112EDA8875E7@elementarysoftware.com> I used touchMove and found it at least partially reliable for horizontal swipes on iOS (not tried on Android) Something like: global gHorizontalSwipeDistance local lMouseStartH local lMouseStartV -- put 80 into gHorizontalSwipeDistance -- depending on the resolution during startup on touchStart pID put the mouseV into lMouseStartV put the mouseH into lMouseStartH end touchStart on touchMove pTouchID, pTouchH, pTouchV -- see if there was a horizontal swipe if (abs(pTouchH - lMouseStartH) > gHorizontalSwipeDistance) AND\ (abs(pTouchV - lMouseStartV) < gVerticalSwipeDistance) then -- they swiped end if end touch Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email scott at elementarysoftware.com office 1-800-615-0867 ------------------------------------------------------ > On Nov 19, 2016, at 8:13 PM, J. Landman Gay wrote: > > BTW, there appears to be a related bug that got fixed: > > > MouseUp wasn't being sent when a native scroller was active. It looks like they fixed that one but forgot to check related swipe mouseUps. Hopefully the team can use the same fix again. > > > On 11/19/16 10:06 PM, J. Landman Gay wrote: >> Well, it's good to know I'm not alone I guess. ;) I just wish I'd asked >> earlier, before I spent some hours tracking down the problem. I'd like >> to think the omission of mouseUp/touchEnd messages was an oversight, >> since we do get all the other mouse messages. >> >> I haven't tried Paul's workaround. I'm not sure how it could work, since >> the horizontal scroll of my field is always zero. It doesn't scroll >> horizontally at all. >> >> The fix should really be in the engine though. >> >> On 11/19/16 8:53 PM, Terry Judd wrote: >>> Hi Jacque - I struggled with this for ages on an iOS and android app >>> earlier in the year (vertical scrolling content with side-to-side >>> swiping for navigation (a la iCal). After trying a truckload of >>> different approaches (hacks) I mostly got it to work on iOS (I still >>> got intermittent failures) and I eventually gave up altogether on >>> android and used left and right buttons instead. Things might have >>> improved then but based on your experience it sounds unlikely. Happy >>> to dig out my hacky iOS code if that helps but engine level fixes >>> would be better. >>> >>> Terry... >>> >>> Sent from my iPad >>> >>>> On 20 Nov 2016, at 6:39 AM, J. Landman Gay >>>> wrote: >>>> >>>>> On 11/19/16 2:18 AM, J. Landman Gay wrote: I have a native mobile >>>>> scroller handling the vertical scroll of a field. I want to add >>>>> swipe gestures to change cards. When swiping, I get a mouseDown, >>>>> sporadic mouseMoves (the logging might be interfering, not sure, >>>>> but after a couple they stop) and no mouseUp at all. >>>>> >>>>> I tried using touchStart/touchMove/touchEnd instead and the >>>>> result is the same. TouchStart always fires, touchMove is iffy, >>>>> and touchEnd never happens. >>>>> >>>>> Without the end message I can't calculate the direction. Plain >>>>> taps work fine with either set of messages, I do get >>>>> mouseUp/touchEnd if it's a tap. It's only swipes that don't >>>>> report. >>>>> >>>>> The scroller has its hScroll property set to false if that >>>>> matters, as I don't want horizontal scrolling but I do want to >>>>> track the touch direction. >>>> >>>> The problem has apparently been around for quite some time: >>>> >>>> >>>> Anyone have a workaround? >>>> >>>> -- Jacqueline Landman Gay | jacque at hyperactivesw.com >>>> HyperActive Software | http://www.hyperactivesw.com >>>> >>>> _______________________________________________ use-livecode >>>> mailing list use-livecode at lists.runrev.com Please visit this url to >>>> subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ use-livecode mailing >>> list use-livecode at lists.runrev.com Please visit this url to >>> subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Sun Nov 20 04:42:53 2016 From: hh at hyperhh.de (hh) Date: Sun, 20 Nov 2016 10:42:53 +0100 Subject: Type on an angle Message-ID: Roger E. wrote: > I would much rather have a native angle property as a part of the text > field. Live text on an angle like Adobe Photoshop and Illustrator have > would enable a whole world of design apps with LiveCode. I've used the > snapshot workaround for 15 years, and it has never impressed anyone. Adding a 'native' angle property doesn't turn a bitmap display into a raster display based on postscript/pdf. Adobe Photoshop and Illustrator use postscript/pdf for each and every single glyph. They dont have rotated fields (seen as controls). They even don't have a rotated _postscript_ insertion cursor for 'rotated editing'. But you could use right now LC Builder: If taking an SVG Font (as I do in the SVG-Text widget) you can have more affine transforms than only rotating. From bernd.niggemann at uni-wh.de Sun Nov 20 05:52:12 2016 From: bernd.niggemann at uni-wh.de (BNig) Date: Sun, 20 Nov 2016 02:52:12 -0800 (PST) Subject: Type on an angle In-Reply-To: References: <0EFB2559-A5B4-4F0B-B770-E6F9D98D3407@hindu.org> Message-ID: <1479639132133-4710448.post@n4.nabble.com> Elanor has a simple and bare bones LCB file for a widget that can rotate one line of text in the attachement of http://quality.livecode.com/show_bug.cgi?id=17782 The widget I did turns one line of text horziontally http://runtime-revolution.278305.n4.nabble.com/widget-that-turns-text-horizontal-td4705280.html Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Type-on-an-angle-tp4710431p4710448.html Sent from the Revolution - User mailing list archive at Nabble.com. From revolution at derbrill.de Sun Nov 20 07:07:45 2016 From: revolution at derbrill.de (Malte Brill) Date: Sun, 20 Nov 2016 13:07:45 +0100 Subject: Type on an angle In-Reply-To: References: Message-ID: <37653C0C-86DE-48B7-AB42-30464F393984@derbrill.de> Sorry for hijacking the thread... TL/DR: Do we have Text input into widgets? How can we get our feet wet easier with that stuff? ??? Richard wrote: > I have maybe two apps across all my computing devices that let me edit > rotated text, but I have dozens that display text in a variety of > formats (date, phone number, currency, etc.). > Well, if we had a means of textinput inside a widget, this would be easy enough to implement I guess, I may just have overlooked it if it exists. Is text input into a widget possible right now? If so, where do I find documentation on that? If not is that on the roadmap? I would be really interested going there. Frankly, the first widget that peeked my interest was the calendar that was posted by Bernd. I follow what Herrmann does, but still for what I would need / want to do, I would require a means of keyboard input into the widget. Of course it is possible to code your way around this using what we have right now. A field and making clever use of the message path. This has not gone away (yet). However for me widgets appeared as the way forward to creating custom objects that appear as ONE object to the engine instead of using groups, which are frankly a tad bit brittle as it stands. Oh how often have I screwed up a template group I created that then should have been cloned into a dynamically created UI. Headaches I would have hoped to save myself from with widgets by now. I still do not see builder being at the point where it might be usefull for me. Still in the interim. Still too early. Still not enough learning material on how to get your feet wet with this stuff. Creating a pink circle is good. What are the next steps? I miss easy to follow tutorials to find that information! What is in the Roadmap and expected to arrive when? Those are the questions that keep me from being bothered looking into that stuff yet. I trust myself that I could contribute one widget or the other to the community if it was easier to find the hows! This is not meant as a rant. I still considder the transition to next gen LiveCode to be in progress. That is fine. It looks like it is getting somewhere. Still, and I hope you do not mind me saying that, I considder everything that followed 6.x being interims versions that needed to be released to keep the userbase from tapping their feet too much and keep the boat afloat financially. That is ok for me. Some of the new stuff is really useful already but it comes for a price. LC is not yet in a state of optimization. Pet peeve, benchmarking, but we had that already. Fact is my apps got a whole lot slower with 7 and 8 compared to 5.x and 6.x.. Upside is that this exposed quite a few places where my scripts were inefficient. Doing my part in fixing my stuff. This makes it tolarable in 7 and 8, but the petty is, blazingly fast in 5 / 6. I would rather see stuff we have now being optimized and in turn live with a slower path of Dev releases, which frankly I do not get around testing much anyways these days. Once I find the time to test 8.X 8.Z is released already. I then run my benchmarking on the areas I know affect my apps, see not much of a change there, shrug it off and go back to daily business.This is not yet the next gen livecode I have been kissing in my dreams. It might become it once it matures, but for now I think it still needs to go out a bit and play on the lawn, before I can ask it on a date. ;-) Cheers, Malte From richmondmathewson at gmail.com Sun Nov 20 07:14:32 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 20 Nov 2016 14:14:32 +0200 Subject: Type on an angle In-Reply-To: <37653C0C-86DE-48B7-AB42-30464F393984@derbrill.de> References: <37653C0C-86DE-48B7-AB42-30464F393984@derbrill.de> Message-ID: <5339c160-0b9c-7c80-13bd-991fd4d1881a@gmail.com> I do ALL my graphics externally except for snapshots of textFields. To turn a textField should be no more complicated than: 1. export snapshot of textField (border? backGroundColor? textColor? font?), 2. rotate it in graphics package of choice (GIMP, Photoshop, etc.), 3. import into stack as an image. Typing "at an angle" is probably more trouble than it's worth in terms of developer time. Richmond. On 20.11.2016 14:07, Malte Brill wrote: > Sorry for hijacking the thread... > > TL/DR: Do we have Text input into widgets? How can we get our feet wet easier with that stuff? > > ??? > > Richard wrote: > >> I have maybe two apps across all my computing devices that let me edit >> rotated text, but I have dozens that display text in a variety of >> formats (date, phone number, currency, etc.). >> > Well, if we had a means of textinput inside a widget, this would be easy enough to implement I guess, I may just have overlooked it if it exists. > Is text input into a widget possible right now? If so, where do I find documentation on that? If not is that on the roadmap? > I would be really interested going there. Frankly, the first widget that peeked my interest was the calendar that was posted by Bernd. I follow what Herrmann does, but still for what I would need / want to do, I would require a means of keyboard input into the widget. > > Of course it is possible to code your way around this using what we have right now. A field and making clever use of the message path. This has not gone away (yet). However for me widgets appeared as the way forward to creating custom objects that appear as ONE object to the engine instead of using groups, which are frankly a tad bit brittle as it stands. Oh how often have I screwed up a template group I created that then should have been cloned into a dynamically created UI. Headaches I would have hoped to save myself from with widgets by now. > I still do not see builder being at the point where it might be usefull for me. Still in the interim. Still too early. Still not enough learning material on how to get your feet wet with this stuff. Creating a pink circle is good. What are the next steps? I miss easy to follow tutorials to find that information! What is in the Roadmap and expected to arrive when? Those are the questions that keep me from being bothered looking into that stuff yet. I trust myself that I could contribute one widget or the other to the community if it was easier to find the hows! This is not meant as a rant. I still considder the transition to next gen LiveCode to be in progress. That is fine. It looks like it is getting somewhere. Still, and I hope you do not mind me saying that, I considder everything that followed 6.x being interims versions that needed to be released to keep the userbase from tapping their feet too much and keep the boat afloat financially. That is ok for me. Some of the new stuff is really useful already but it comes for a price. LC is not yet in a state of optimization. Pet peeve, benchmarking, but we had that already. Fact is my apps got a whole lot slower with 7 and 8 compared to 5.x and 6.x.. Upside is that this exposed quite a few places where my scripts were inefficient. Doing my part in fixing my stuff. This makes it tolarable in 7 and 8, but the petty is, blazingly fast in 5 / 6. I would rather see stuff we have now being optimized and in turn live with a slower path of Dev releases, which frankly I do not get around testing much anyways these days. Once I find the time to test 8.X 8.Z is released already. I then run my benchmarking on the areas I know affect my apps, see not much of a change there, shrug it off and go back to daily business.This is not yet the next gen livecode I have been kissing in my dreams. It might become it once it matures, but for now I think it still needs to go out a bit and play on the lawn, before I can ask it on a date. ;-) > > 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 Sun Nov 20 07:27:24 2016 From: revolution at derbrill.de (Malte Brill) Date: Sun, 20 Nov 2016 13:27:24 +0100 Subject: Which widgets would YOU want to build? [WAS] Type on an angle In-Reply-To: References: Message-ID: <73663128-2BD5-4FA4-B7FF-098352B05D90@derbrill.de> I do not want to capture the rotation thread? I went into more details on what is keeping me back from going through the headaches of learning builder at the moment in my previous mail. I think it would be a good idea to desribe what I would be wanting to build (well actually I want to use it, but nothing comes without an effort ) In many of my UIs I need what I would call an intelligent combobox. Just like the combobox you know, but reacting on the text input and thus filtering the otions being displayed in the dropdown, based on whatever you have put into the field part of the combo box. The whole thing must be skinnable. So it needs to be possible to style the button part with the disclosing arrow. I have implemented such a beast as a group. Works somewhat, but is very brittle. If you start working on the template you can easiely screw things up. Also, changes are not being inherited to existing instances. Able to live with that, but wishful thinking for a better solution. One problem that is not solvable in a good manner is the layering of the ?popup listfield? that shows the options. More often that not it dispalys underneath other elements of the UI if you are not careful. Also it is hard to make it behave as one would expect it to work. I would have hoped to being able to solve this as a widget somehow. Would that be possible now? What would you want to create? Cheers, Malte From richmondmathewson at gmail.com Sun Nov 20 07:34:54 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 20 Nov 2016 14:34:54 +0200 Subject: Macintosh support In-Reply-To: <6aa6da27-0091-998b-bd60-b1fcc9ee0f95@livecode.com> References: <2cb910e8-1fa8-756b-7978-059cbc7db8d3@gmail.com> <6aa6da27-0091-998b-bd60-b1fcc9ee0f95@livecode.com> Message-ID: <65338fa3-204d-239d-0dee-af9055ff0161@gmail.com> "LiveCode 9 may still run on OS X 10.7, for the time being" It does, cheers, cheers! Having just invested 190 Euros in a 2006 Intel iMac (max OS 10.7) I am extremely happy about this. Personally I couldn't care less about "Official Support": if I make a c*ck up I'll take the responsibility. "highly-exploitable vulnerabilities": possibly; but on a limited budget I'm very excited about my "new" Mac, and as it is not going to be connected to the internet . . . and why on earth would a hacker waste his/her time exploiting vulnerabilities of an antiquated OS anyway? . . . I really could not care less about them. There is a little bird that keeps whispering in my lug that "highly-exploitable vulnerabilities" is a phrasae that is largely of value insofar as it keeps driving people to shell out more money to buy more machines: as the cheapest iMac on the European market currently retails at 1,250 Euros [ http://www.apple.com/de/shop/buy-mac/imac ] and runs an OS (10.11 ~ 10.12) that has a GUI I just do not like (Steve Jobs died, and while he went, arguably, to heaven, the Mac GUI went to hell) and I don't have 1,250 Euros extra dosh, 190 Euros for a lovely, polycarbonate 21 inch iMac that runs 10.7 (sits right next to my G5 iMac that runs 10.4 so I can dig in Hypercard stacks and copy code directly into LC stacks, and use Appleworks) seems pretty good, even at the risk of "highly-exploitable vulnerabilities". As I often check my email and so on using Classilla [ http://www.floodgap.com/software/classilla/ ] on my G3 iMac running Mac OS 9, I feel that 10.7 is "way ahead" :) This afternoon (Sunday) I have a load of hippy-trippy teenagers who I have, somehow, got hooked on Livecode, coming over to my flat for coffee, coding and a look at the "new" Mac, as my favourite importer (who has supplied all the machines for my school over the last 10 years) has just got a job lot (possibly a "Jobs" lot . . .) of 2006 iMacs (17 inch screens for 125 Euros, 20 inch screens for 190 Euros), and those kids would love an iMac, but are, in Bulgaria, at the bottom of the European financial treacle well, I am very happy that I can tell them that the machines will work with the LC 8 series, and witht he currect LC 9 dp release. I have had reports of my Devawriter Pro screwing up on Macs, so I shall now be building my Mac builds on the Intel iMac rather than on the Linux box. Richmond. On 19.11.2016 18:22, Peter TB Brett wrote: > > > On 19/11/2016 15:13, Richmond wrote: >> I would like to know why Livecode 9 has dropped support for all versions >> of Mac OS before 10.9. > > LiveCode 9 may still run on OS X 10.7, for the time being -- we just > don't provide any official support for (or run tests on) that platform > any more. > > The development team has to regularly move the LiveCode build system > to newer versions of Xcode and newer versions of the MacOS SDK, so > that they can keep LiveCode working well with new versions of MacOS > and add new features requested by users. Occasionally this means that > older versions of OS X won't run LiveCode any more. > > With a very small development team and quality assurance team, we have > to be careful to keep the number and variety of supported platform > configurations for LiveCode within a manageable limit. Occasionally > this means we have to stop providing technical support for running > LiveCode on older versions of OS X. > > Apple stopped providing any patches or security fixes for OS X 10.8 > over a year ago, and it contains many highly-exploitable > vulnerabilities. I *very strongly* recommend against using versions > of OS X prior to OS X 10.10. If your hardware can't run OS X 10.12, I > recommend upgrading its operating system to Linux. > > You can find more information on our platform support plans in my > recent-ish blog post [1], and in due course we will be adding some > pages to the website that show the same information in a > quicker-to-find way. > > Peter > > [1] https://livecode.com/updated-platform-support-policy/ > From zryip.theslug at gmail.com Sun Nov 20 08:07:35 2016 From: zryip.theslug at gmail.com (zryip theSlug) Date: Sun, 20 Nov 2016 14:07:35 +0100 Subject: Type on an angle In-Reply-To: <5339c160-0b9c-7c80-13bd-991fd4d1881a@gmail.com> References: <37653C0C-86DE-48B7-AB42-30464F393984@derbrill.de> <5339c160-0b9c-7c80-13bd-991fd4d1881a@gmail.com> Message-ID: Hi, The only widget I created so far is an orientable text with the following properties: - label - angle - font name - font size - font color - font color opacity - background color - background opacity I created it long time ago with the very first LC version supporting widgets and have updated the code for following the LCB syntax changes. I've stopped to play with widgets after this, so the code is far to be neat but I can share it if someone need it or want to improve it. Where can I share it? Best Regards, On Sun, Nov 20, 2016 at 1:14 PM, Richmond wrote: > I do ALL my graphics externally except for snapshots of textFields. > > To turn a textField should be no more complicated than: > > 1. export snapshot of textField (border? backGroundColor? textColor? font?), > > 2. rotate it in graphics package of choice (GIMP, Photoshop, etc.), > > 3. import into stack as an image. > > Typing "at an angle" is probably more trouble than it's worth in terms of > developer > time. > > Richmond. > > > On 20.11.2016 14:07, Malte Brill wrote: >> >> Sorry for hijacking the thread... >> >> TL/DR: Do we have Text input into widgets? How can we get our feet wet >> easier with that stuff? >> >> ??? >> >> Richard wrote: >> >>> I have maybe two apps across all my computing devices that let me edit >>> rotated text, but I have dozens that display text in a variety of >>> formats (date, phone number, currency, etc.). >>> >> Well, if we had a means of textinput inside a widget, this would be easy >> enough to implement I guess, I may just have overlooked it if it exists. >> Is text input into a widget possible right now? If so, where do I find >> documentation on that? If not is that on the roadmap? >> I would be really interested going there. Frankly, the first widget that >> peeked my interest was the calendar that was posted by Bernd. I follow what >> Herrmann does, but still for what I would need / want to do, I would require >> a means of keyboard input into the widget. >> >> Of course it is possible to code your way around this using what we have >> right now. A field and making clever use of the message path. This has not >> gone away (yet). However for me widgets appeared as the way forward to >> creating custom objects that appear as ONE object to the engine instead of >> using groups, which are frankly a tad bit brittle as it stands. Oh how often >> have I screwed up a template group I created that then should have been >> cloned into a dynamically created UI. Headaches I would have hoped to save >> myself from with widgets by now. >> I still do not see builder being at the point where it might be usefull >> for me. Still in the interim. Still too early. Still not enough learning >> material on how to get your feet wet with this stuff. Creating a pink circle >> is good. What are the next steps? I miss easy to follow tutorials to find >> that information! What is in the Roadmap and expected to arrive when? Those >> are the questions that keep me from being bothered looking into that stuff >> yet. I trust myself that I could contribute one widget or the other to the >> community if it was easier to find the hows! This is not meant as a rant. I >> still considder the transition to next gen LiveCode to be in progress. That >> is fine. It looks like it is getting somewhere. Still, and I hope you do not >> mind me saying that, I considder everything that followed 6.x being interims >> versions that needed to be released to keep the userbase from tapping their >> feet too much and keep the boat afloat financially. That is ok for me. Some >> of the new stuff is really useful already but it comes for a price. LC is >> not yet in a state of optimization. Pet peeve, benchmarking, but we had that >> already. Fact is my apps got a whole lot slower with 7 and 8 compared to 5.x >> and 6.x.. Upside is that this exposed quite a few places where my scripts >> were inefficient. Doing my part in fixing my stuff. This makes it tolarable >> in 7 and 8, but the petty is, blazingly fast in 5 / 6. I would rather see >> stuff we have now being optimized and in turn live with a slower path of Dev >> releases, which frankly I do not get around testing much anyways these days. >> Once I find the time to test 8.X 8.Z is released already. I then run my >> benchmarking on the areas I know affect my apps, see not much of a change >> there, shrug it off and go back to daily business.This is not yet the next >> gen livecode I have been kissing in my dreams. It might become it once it >> matures, but for now I think it still needs to go out a bit and play on the >> lawn, before I can ask it on a date. ;-) >> >> 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 -- Zryip TheSlug http://www.aslugontheroad.com From hh at hyperhh.de Sun Nov 20 10:40:05 2016 From: hh at hyperhh.de (hh) Date: Sun, 20 Nov 2016 16:40:05 +0100 Subject: Which widgets would YOU want to build? Message-ID: <8DE6905F-52B7-470D-8296-072D7C169B41@hyperhh.de> > combobox ... There is, connected to that, already a list widget and a multilist widget https://github.com/livecode/livecode/tree/develop/extensions/widgets There is, also connected to that, no 'pure' field object in LC Builder. From dochawk at gmail.com Sun Nov 20 11:04:32 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 20 Nov 2016 08:04:32 -0800 Subject: Type on an angle In-Reply-To: <5339c160-0b9c-7c80-13bd-991fd4d1881a@gmail.com> References: <37653C0C-86DE-48B7-AB42-30464F393984@derbrill.de> <5339c160-0b9c-7c80-13bd-991fd4d1881a@gmail.com> Message-ID: On Sun, Nov 20, 2016 at 4:14 AM, Richmond wrote: > To turn a textField should be no more complicated than: > > 1. export snapshot of textField (border? backGroundColor? textColor? > font?), > At which point you have a bitmap not an image. Fine for the screen but not for printing. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From hh at hyperhh.de Sun Nov 20 12:11:07 2016 From: hh at hyperhh.de (hh) Date: Sun, 20 Nov 2016 18:11:07 +0100 Subject: Type on an angle Message-ID: BR wrote: > Working on GUI today I created a field and thinking it would be cool > to have it run sideways at an angle along the edge of an element in > the background photo ... Any solutions? You may use my gift for the community (to X-mas or New year's evening or similar): ** Perspective Distortion of an image ** available (fast) at "Sample stacks" of the IDE toolbar or (slower) at http://livecodeshare.runrev.com/stack/812/Perspective-Image-Distortion The stack includes is an example for (close to) live-distorting a field's image, uses font 'Aclonica' at 48 point. From richmondmathewson at gmail.com Sun Nov 20 12:31:02 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 20 Nov 2016 19:31:02 +0200 Subject: Type on an angle In-Reply-To: References: <37653C0C-86DE-48B7-AB42-30464F393984@derbrill.de> <5339c160-0b9c-7c80-13bd-991fd4d1881a@gmail.com> Message-ID: <8b3aed19-63c4-9f5a-dad1-9f1a1160c7a0@gmail.com> Very true. On 20.11.2016 18:04, Dr. Hawkins wrote: > On Sun, Nov 20, 2016 at 4:14 AM, Richmond > wrote: > >> To turn a textField should be no more complicated than: >> >> 1. export snapshot of textField (border? backGroundColor? textColor? >> font?), >> > At which point you have a bitmap not an image. Fine for the screen but not > for printing. > > From jbv at souslelogo.com Sun Nov 20 12:40:04 2016 From: jbv at souslelogo.com (jbv) Date: Sun, 20 Nov 2016 18:40:04 +0100 Subject: external for an Android mobile app In-Reply-To: <8b3aed19-63c4-9f5a-dad1-9f1a1160c7a0@gmail.com> References: <37653C0C-86DE-48B7-AB42-30464F393984@derbrill.de> <5339c160-0b9c-7c80-13bd-991fd4d1881a@gmail.com> <8b3aed19-63c4-9f5a-dad1-9f1a1160c7a0@gmail.com> Message-ID: <6dd9abc8fc0a16789562d152b9b74445.squirrel@sage.on-rev.com> Hi list When one needs an external for an Android version of an app for mobile, where is the best place to turn to ? Thanks jbv From paul at livecode.org Sun Nov 20 13:36:14 2016 From: paul at livecode.org (Paul Hibbert) Date: Sun, 20 Nov 2016 10:36:14 -0800 Subject: Swipe gestures on a mobile scroller In-Reply-To: <36e9a2c5-afaf-5f4c-05a7-6b4d24efe25f@hyperactivesw.com> References: <1b6cc2df-68e2-0fe3-34aa-01d4148127a0@hyperactivesw.com> <36e9a2c5-afaf-5f4c-05a7-6b4d24efe25f@hyperactivesw.com> Message-ID: > On Nov 19, 2016, at 8:06 PM, J. Landman Gay wrote: > > I'm not sure how it could work, since the horizontal scroll of my field is always zero. It doesn't scroll horizontally at all. The actual hScroll of the field isn?t set, only the vScroll is set in this example, but it can detect that you are attempting to scroll horizontally and so you can use that info to initiate a swipe. It is only a workaround implemented by intercepting the scrollerDidScroll message, you don?t need to ?set' the scroll sent by the message, but you can detect it and use it to swipe. Paul From jacque at hyperactivesw.com Sun Nov 20 14:03:07 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 20 Nov 2016 13:03:07 -0600 Subject: Swipe gestures on a mobile scroller In-Reply-To: References: <1b6cc2df-68e2-0fe3-34aa-01d4148127a0@hyperactivesw.com> <36e9a2c5-afaf-5f4c-05a7-6b4d24efe25f@hyperactivesw.com> Message-ID: On 11/20/16 12:36 PM, Paul Hibbert wrote: > >> On Nov 19, 2016, at 8:06 PM, J. Landman Gay >> wrote: >> >> I'm not sure how it could work, since the horizontal scroll of my >> field is always zero. It doesn't scroll horizontally at all. > > The actual hScroll of the field isn?t set, only the vScroll is set in > this example, but it can detect that you are attempting to scroll > horizontally and so you can use that info to initiate a swipe. > > It is only a workaround implemented by intercepting the > scrollerDidScroll message, you don?t need to ?set' the scroll sent by > the message, but you can detect it and use it to swipe. Right, but does that mean the hscroll property of the mobile scroller must be true? Right now mine's false so I assumed it wouldn't even try to detect scrolling horizontally. I can change that setting of course. But your solution and Scott's are very similar so it must work. I'll experiment with both. Thanks for the ideas, both of you, but I sure wish we could use a simple mouseUp to detect it. It would save a lot of trouble. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at livecode.org Sun Nov 20 14:23:15 2016 From: paul at livecode.org (Paul Hibbert) Date: Sun, 20 Nov 2016 11:23:15 -0800 Subject: Swipe gestures on a mobile scroller In-Reply-To: References: <1b6cc2df-68e2-0fe3-34aa-01d4148127a0@hyperactivesw.com> <36e9a2c5-afaf-5f4c-05a7-6b4d24efe25f@hyperactivesw.com> Message-ID: > On Nov 20, 2016, at 11:03 AM, J. Landman Gay > wrote: > > does that mean the hscroll property of the mobile scroller must be true? No, the hScroll prop is still false, you are just detecting and using (diverting) the information that the scrollerDidScroll message would have used to set the hScroll, but it never gets set. This is the handler: on scrollerDidScroll hOffset, vOffset // Scroll or Swipe Detect // if the hScroll of group "scrollArea" <0 then ##-->> Detects the Horiz swipe <<--## moveBack else if the hScroll of group "scrollArea" >0 then moveForward end if set the vScroll of group "scrollArea" to vOffset ##-->> Scroll the field vertically < References: <1b6cc2df-68e2-0fe3-34aa-01d4148127a0@hyperactivesw.com> <36e9a2c5-afaf-5f4c-05a7-6b4d24efe25f@hyperactivesw.com> Message-ID: > On Nov 20, 2016, at 11:03 AM, J. Landman Gay wrote: > > does that mean the hscroll property of the mobile scroller must be true? Just tried this simplified version and it works fine too: on scrollerDidScroll hOffset, vOffset // Scroll Detect // if hOffset <0 then ##-->> Detects the Horiz swipe <<--## moveBack else if hOffset >0 then moveForward end if set the vScroll of group "scrollArea" to vOffset ##-->> Scroll the field vertically < References: <1b6cc2df-68e2-0fe3-34aa-01d4148127a0@hyperactivesw.com> <36e9a2c5-afaf-5f4c-05a7-6b4d24efe25f@hyperactivesw.com> Message-ID: <9b8e5b78-19ab-00e3-10fa-10c96d7ddf9e@hyperactivesw.com> On 11/20/16 12:36 PM, Paul Hibbert wrote: > It is only a workaround implemented by intercepting the scrollerDidScroll message I just tried both Scott's touchMove solution and Paul's scrollerDidScroll suggestion but neither seem to work on Android. I'm not surprised there was no scrollerDidScroll message, because the field width fits the scroller contentRect, so there is nothing to scroll. It may be working on iOS because there you have a "bounce" option which allows overscrolling. Android doesn't have that. I had hopes for the touchMove solution because that message does fire sporadically but it failed also. In my tests yesterday I saw that the message fired fitfully, but even when it did the mouse position was wrong. I attributed that to the fact that I was logging the coords to a field, but maybe there's more to it because after a few responses the logging stopped completely. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From brahma at hindu.org Sun Nov 20 15:06:17 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 20 Nov 2016 20:06:17 +0000 Subject: Type on an angle In-Reply-To: <1479639132133-4710448.post@n4.nabble.com> References: <0EFB2559-A5B4-4F0B-B770-E6F9D98D3407@hindu.org> <1479639132133-4710448.post@n4.nabble.com> Message-ID: Thanks everyone my responses is "All of the above" -- snapshot really has major issues with returning bit map -- widgets all look great and I think they all have their use cases. -- @ HH stack with perspectives is awesome, thank you! -- @ Bernd: your HTML5 demo is amazing! Where can I can we get the source? -- @ Richard: hmmm I have to agree that if it's a matter of HQ resources the angle prop should be at the bottom of the list as I also would want all the formatting to a "regular" field that is up for what we need. -- @ Richard: yes of course we can do things in external editors. -- Still wish I could just "set the angle of fld YY to 60" BR On 11/20/16, 12:52 AM, "use-livecode on behalf of BNig" wrote: Elanor has a simple and bare bones LCB file for a widget that can rotate one line of text in the attachement of http://quality.livecode.com/show_bug.cgi?id=17782 The widget I did turns one line of text horziontally http://runtime-revolution.278305.n4.nabble.com/widget-that-turns-text-horizontal-td4705280.html Kind regards Bernd From bernd.niggemann at uni-wh.de Sun Nov 20 16:20:14 2016 From: bernd.niggemann at uni-wh.de (BNig) Date: Sun, 20 Nov 2016 13:20:14 -0800 (PST) Subject: Type on an angle In-Reply-To: References: <0EFB2559-A5B4-4F0B-B770-E6F9D98D3407@hindu.org> <1479639132133-4710448.post@n4.nabble.com> Message-ID: <1479676814188-4710465.post@n4.nabble.com> Sannyasin Brahmanathaswami wrote > Thanks everyone my responses is > > "All of the above" > > -- @ Bernd: your HTML5 demo is amazing! Where can I can we get the source? > BR > > On 11/20/16, 12:52 AM, "use-livecode on behalf of BNig" wrote: > > Elanor has a simple and bare bones LCB file for a widget that can > rotate one > line of text in the attachement of > http://quality.livecode.com/show_bug.cgi?id=17782 > > The widget I did turns one line of text horziontally Hi BR, You can download the widget at http://berndniggemann.on-rev.com/turnwidget/turnText.zip I recompiled the widget to make sure it works with LC 8.1.1 and up (built using LC 8.1.2 DP2) There is a text file explaining how to install and a stack that uses the widget. That stack is the basis for the HTMLversion. >From that stack you can built a HTML version. >From inside a browser you can download the source for opensource HTML LC stuff at the bottom right. There is a small LC icon that lets you download a zip. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Type-on-an-angle-tp4710431p4710465.html Sent from the Revolution - User mailing list archive at Nabble.com. From scott at elementarysoftware.com Sun Nov 20 16:53:11 2016 From: scott at elementarysoftware.com (Scott Morrow) Date: Sun, 20 Nov 2016 13:53:11 -0800 Subject: Swipe gestures on a mobile scroller In-Reply-To: <9b8e5b78-19ab-00e3-10fa-10c96d7ddf9e@hyperactivesw.com> References: <1b6cc2df-68e2-0fe3-34aa-01d4148127a0@hyperactivesw.com> <36e9a2c5-afaf-5f4c-05a7-6b4d24efe25f@hyperactivesw.com> <9b8e5b78-19ab-00e3-10fa-10c96d7ddf9e@hyperactivesw.com> Message-ID: Jacque, I had intermittent luck with touchMove as well. I was using it to swipe open a ?delete? button. In the app that uses this feature there is another way to accomplish the same thing so I settled for intermittent. Selfishly, hoping it was something I did wrong and that you would solve it :- ) ? Scott > On Nov 20, 2016, at 11:34 AM, J. Landman Gay wrote: > > On 11/20/16 12:36 PM, Paul Hibbert wrote: >> It is only a workaround implemented by intercepting the scrollerDidScroll message > > I just tried both Scott's touchMove solution and Paul's scrollerDidScroll suggestion but neither seem to work on Android. > > I'm not surprised there was no scrollerDidScroll message, because the field width fits the scroller contentRect, so there is nothing to scroll. It may be working on iOS because there you have a "bounce" option which allows overscrolling. Android doesn't have that. > > I had hopes for the touchMove solution because that message does fire sporadically but it failed also. In my tests yesterday I saw that the message fired fitfully, but even when it did the mouse position was wrong. I attributed that to the fact that I was logging the coords to a field, but maybe there's more to it because after a few responses the logging stopped completely. > > -- > 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 brahma at hindu.org Sun Nov 20 17:11:08 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 20 Nov 2016 22:11:08 +0000 Subject: Compound Path SVG Breaks in Widget? Message-ID: <79BC30F4-9B0F-4535-8B8D-7B6263D33CBD@hindu.org> 1) 3 bar menu (hamburger menu" download SVG icon from http://www.flaticon.com/ 2) open in Illustrator 3) select all 4) Make compound path save as SVG file looks like this: three-horizontal-lines_compound Pasting this into the widget generates an error. M112,6H12a12,12,0,0,0,0,24H112A12,12,0,0,0,112,6Zm0,44H12a12,12,0,0,0,0,24H112A12,12,0,0,0,112,50Zm0,44H12a12,12,0,0,0,0,24H112A12,12,0,0,0,112,94Z Any Clues? already entered here: http://quality.livecode.com/show_bug.cgi?id=18884 From jacque at hyperactivesw.com Sun Nov 20 17:51:02 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 20 Nov 2016 16:51:02 -0600 Subject: external for an Android mobile app In-Reply-To: <6dd9abc8fc0a16789562d152b9b74445.squirrel@sage.on-rev.com> References: <37653C0C-86DE-48B7-AB42-30464F393984@derbrill.de> <5339c160-0b9c-7c80-13bd-991fd4d1881a@gmail.com> <8b3aed19-63c4-9f5a-dad1-9f1a1160c7a0@gmail.com> <6dd9abc8fc0a16789562d152b9b74445.squirrel@sage.on-rev.com> Message-ID: <3f2cc642-0298-7c27-94e4-07747c729d18@hyperactivesw.com> On 11/20/16 11:40 AM, jbv wrote: > Hi list > When one needs an external for an Android version > of an app for mobile, where is the best place to > turn to ? I contacted support to have the LC team do one for me. There are people on the list here who might be able to do one too, depending on what you need. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sun Nov 20 17:53:37 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 20 Nov 2016 16:53:37 -0600 Subject: Swipe gestures on a mobile scroller In-Reply-To: References: <1b6cc2df-68e2-0fe3-34aa-01d4148127a0@hyperactivesw.com> <36e9a2c5-afaf-5f4c-05a7-6b4d24efe25f@hyperactivesw.com> <9b8e5b78-19ab-00e3-10fa-10c96d7ddf9e@hyperactivesw.com> Message-ID: I wish. :) I'm hoping the LC team will fix it. Apparently that would solve problems for a lot of us. On 11/20/16 3:53 PM, Scott Morrow wrote: > Jacque, > > I had intermittent luck with touchMove as well. I was using it to > swipe open a ?delete? button. In the app that uses this feature there > is another way to accomplish the same thing so I settled for > intermittent. > > Selfishly, hoping it was something I did wrong and that you would > solve it :- ) > > ? Scott >> On Nov 20, 2016, at 11:34 AM, J. Landman Gay >> wrote: >> >> On 11/20/16 12:36 PM, Paul Hibbert wrote: >>> It is only a workaround implemented by intercepting the >>> scrollerDidScroll message >> >> I just tried both Scott's touchMove solution and Paul's >> scrollerDidScroll suggestion but neither seem to work on Android. >> >> I'm not surprised there was no scrollerDidScroll message, because >> the field width fits the scroller contentRect, so there is nothing >> to scroll. It may be working on iOS because there you have a >> "bounce" option which allows overscrolling. Android doesn't have >> that. >> >> I had hopes for the touchMove solution because that message does >> fire sporadically but it failed also. In my tests yesterday I saw >> that the message fired fitfully, but even when it did the mouse >> position was wrong. I attributed that to the fact that I was >> logging the coords to a field, but maybe there's more to it because >> after a few responses the logging stopped completely. >> >> -- Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> _______________________________________________ use-livecode >> mailing list use-livecode at lists.runrev.com Please visit this url to >> subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ use-livecode mailing > list use-livecode at lists.runrev.com Please visit this url to > subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at livecode.org Sun Nov 20 17:57:35 2016 From: paul at livecode.org (Paul Hibbert) Date: Sun, 20 Nov 2016 14:57:35 -0800 Subject: Compound Path SVG Breaks in Widget? In-Reply-To: <79BC30F4-9B0F-4535-8B8D-7B6263D33CBD@hindu.org> References: <79BC30F4-9B0F-4535-8B8D-7B6263D33CBD@hindu.org> Message-ID: Just re-created your SVG from the SVG text and opened the file in Affinity Designer, then exported it as SVG, converted back to text and then extracted the SVG paths: M112,0l-100,0c-6.583,0 -12,5.417 -12,12c0,6.583 5.417,12 12,12l100,0c6.583,0 12,-5.417 12,-12c0,-6.583 -5.417,-12 -12,-12Zm0,44l-100,0c-6.583,0 -12,5.417 -12,12c0,6.583 5.417,12 12,12l100,0c6.583,0 12,-5.417 12,-12c0,-6.583 -5.417,-12 -12,-12Zm0,44l-100,0c-6.583,0 -12,5.417 -12,12c0,6.583 5.417,12 12,12l100,0c6.583,0 12,-5.417 12,-12c0,-6.583 -5.417,-12 -12,-12Z Pasted that into an SVG Icon widget and it works fine, so I guess it?s something to do with the way Illustrator exports the data, are there any options to try? Maybe compression? Paul > On Nov 20, 2016, at 2:11 PM, Sannyasin Brahmanathaswami wrote: > > > 1) 3 bar menu (hamburger menu" download SVG icon from http://www.flaticon.com/ > 2) open in Illustrator > 3) select all > 4) Make compound path > > save as SVG > > file looks like this: > > three-horizontal-lines_compound > > > Pasting this into the widget generates an error. > > M112,6H12a12,12,0,0,0,0,24H112A12,12,0,0,0,112,6Zm0,44H12a12,12,0,0,0,0,24H112A12,12,0,0,0,112,50Zm0,44H12a12,12,0,0,0,0,24H112A12,12,0,0,0,112,94Z > > Any Clues? > > already entered here: > > http://quality.livecode.com/show_bug.cgi?id=18884 > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 20 18:08:56 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 20 Nov 2016 23:08:56 +0000 Subject: GUI Design Tasks Send Back - Bring Forward In-Reply-To: References: <110E0503-1282-441B-B470-C76840F4475B@hindu.org> Message-ID: <9AB0ACF3-D1E7-4E6C-84E9-9770F6B7DE9E@hindu.org> roger.e.eller at sealedair.com> wrote: pressing Control-[ or Control-]. OH ..duh! yes completely forgot about those key board shortcuts! From scott at tactilemedia.com Sun Nov 20 20:36:16 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Sun, 20 Nov 2016 17:36:16 -0800 Subject: Type on an angle In-Reply-To: References: Message-ID: On 11/20/16, 1:42 AM, "use-livecode on behalf of hh" wrote: > > Adding a 'native' angle property doesn't turn a bitmap display into a > raster display based on postscript/pdf. > Adobe Photoshop and Illustrator use postscript/pdf for each and every > single glyph. They dont have rotated fields (seen as controls). They even > don't have a rotated _postscript_ insertion cursor for 'rotated editing'. Just for the record, the above may be correct from a technical standpoint, but is inaccurate with regard to what is presented to users. The embedded screen capture below may not arrive on the list intact, but illustrates the point. Also provided is the option to assign orientation to text. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design From scott at tactilemedia.com Sun Nov 20 20:44:06 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Sun, 20 Nov 2016 17:44:06 -0800 Subject: Type on an angle In-Reply-To: References: Message-ID: On 11/20/16, 5:36 PM, I wrote: >The embedded screen capture below may not arrive on the list intact, but >illustrates the point. Well, I tried. http://tactilemedia.com/download/rotated_text.gif Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design From scott at tactilemedia.com Sun Nov 20 20:54:25 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Sun, 20 Nov 2016 17:54:25 -0800 Subject: Type on an angle In-Reply-To: References: Message-ID: This is great. True, it runs a bit slowly in 7/8, but scripted image calculations have always been this way, and having any option at all in LC to do this type of manipulation is very welcome. A few of us have been wanting something like this for years. Thanks for this great example. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 11/20/16, 9:11 AM, "use-livecode on behalf of hh" wrote: >** Perspective Distortion of an image ** >available (fast) at "Sample stacks" of the IDE toolbar or (slower) at >http://livecodeshare.runrev.com/stack/812/Perspective-Image-Distortion > >The stack includes is an example for (close to) live-distorting a field's >image, uses font 'Aclonica' at 48 point. From brahma at hindu.org Sun Nov 20 20:56:33 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 21 Nov 2016 01:56:33 +0000 Subject: Adding Effects to widgets In-Reply-To: <0DA4E398-9D10-4BC9-B1AA-E6B9F9002B35@hyperhh.de> References: <0DA4E398-9D10-4BC9-B1AA-E6B9F9002B35@hyperhh.de> Message-ID: HH: what is one or two examples of an "astounding visual effect" that you achieved? I'm looking at putting these on top of photos, looking for the most elegant integration?. The group will automatically be an ugly rectangle/square, (which doesn't help) try this: go stack url "http://wiki.hindu.org/uploads/P2SPickPathDesign.livecode" On 11/2/16, 6:38 AM, "use-livecode on behalf of hh" wrote: >Jeanne D. wrote: >Can you put it in a group and set a drop shadow for the group? This is a real smart trick: Grouping (one or more) widgets. Not only for "adding" bitmap-effects to the widget, also for astounding visual effects by certain combinations of the widget's ink and the group's ink. From hh at hyperhh.de Mon Nov 21 03:55:09 2016 From: hh at hyperhh.de (hh) Date: Mon, 21 Nov 2016 09:55:09 +0100 Subject: Type on an angle Message-ID: <7F00E39C-D05F-4B77-AF6E-860C85938131@hyperhh.de> > Scott R. wrote: > > Hermann H. wrote: > > Adding a 'native' angle property doesn't turn a bitmap display into a > > raster display based on postscript/pdf. > > Adobe Photoshop and Illustrator use postscript/pdf for each and every > > single glyph. They dont have rotated fields (seen as controls). They even > > don't have a rotated _postscript_ insertion cursor for 'rotated editing'. > > Just for the record, the above may be correct from a technical standpoint, > but is inaccurate with regard to what is presented to users. > The embedded screen capture below may not arrive on the list intact, but > illustrates the point. > Also provided is the option to assign orientation to text. This is exactly what I meant. They display simply a rotated text path, rastered from postscript/pdf, NOT a rotated field object. Or does editing also work while the text stays at an angle of 35 degrees, in several lines, text alignment centered, having 'vertical' or 'horizontal' scrollbars? This kind of display and editing rotated Text is already also possible in LC Builder (a 'real' selfmade-cursor, which is AFAIK still a bitmap, at multiple of 90 degrees only). For the problem of rotating a bitmap cursor MaxV started back in 2014 a thread in the forum. There is a 'rough' solution. http://forums.livecode.com/viewtopic.php?f=9&t=21743#p111632 From hh at hyperhh.de Mon Nov 21 05:47:26 2016 From: hh at hyperhh.de (hh) Date: Mon, 21 Nov 2016 11:47:26 +0100 Subject: Adding Effects to widgets Message-ID: > BR wrote: > > hh wrote: > > > Jeanne D. wrote: > > > Can you put it in a group and set a drop shadow for the group? > > This is a real smart trick: Grouping (one or more) widgets. > > Not only for "adding" bitmap-effects to the widget, also for > > astounding visual effects by certain combinations of the widget's > > ink and the group's ink. > HH: what is one or two examples of an "astounding visual effect" > that you achieved? Here are some examples: Just vary below the ink of the group. Of course the effects need a min-Size of the widget for being notable. The list has certainly users that have more experience and skills with using inks than I have. widget gR ="readingIcon" (com.livecode.widget.svgpath) [a] the ink of widget gR is "srcCopy" [b] the foreGroundColor of widget gR is "250,220,160" [c] the hiliteColor of widget gR is "127,127,127" widget group gRg="readingIconGroup" [A] the opaque of grp gRg is false --> important! [B0] the ink of grp gRg is "blendMultiply" [B1] the ink of grp gRg is "blendDifference" [B2] the ink of grp gRg is "blendDstIn" --> 'masking' transparent [B3] the ink of grp gRg is "blendDstOut" --> 'masking' black [B4] the ink of grp gRg is ... (depending on background) [C] the dropshadow is angle,60 blendmode,normal color,0,0,0 distance,1 filter,box3pass knockout,true opacity,255 size,3 spread,0 [D] the innerGlow of grp gRg is blendmode,normal color,0,0,0 filter,box3pass opacity,255 size,2 spread,0 I also used especially innerGlow with the SVG_Text-widget, which has more options (for example don't fill the path, just stroke/outline it). From peter.brett at livecode.com Mon Nov 21 06:35:19 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 21 Nov 2016 11:35:19 +0000 Subject: [ANN] This Week in LiveCode 60 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 #60 here: https://goo.gl/iczS1e 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. Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From benr_mc at cogapp.com Mon Nov 21 07:30:56 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 21 Nov 2016 12:30:56 +0000 Subject: Sharing widgets (was Re: Type on an angle) Message-ID: This sounds great! I don't know the correct answer to the question, but I'd certainly like to see the widget. If nothing else perhaps you could share a dropboxlink or similar with the list. What is a good answer to zryip's question below, where should interesting third-party widgets be shared? Ben On 20/11/2016 13:07, zryip theSlug wrote: > Hi, > > The only widget I created so far is an orientable text with the > following properties: > - label > - angle > - font name > - font size > - font color > - font color opacity > - background color > - background opacity > > I created it long time ago with the very first LC version supporting > widgets and have updated the code for following the LCB syntax > changes. I've stopped to play with widgets after this, so the code is > far to be neat but I can share it if someone need it or want to > improve it. > > Where can I share it? > > > Best Regards, > From smudge.andy at googlemail.com Mon Nov 21 08:26:31 2016 From: smudge.andy at googlemail.com (AndyP) Date: Mon, 21 Nov 2016 05:26:31 -0800 (PST) Subject: Sharing widgets (was Re: Type on an angle) In-Reply-To: References: Message-ID: <1479734791840-4710480.post@n4.nabble.com> The widget could be uploaded as a zip to the Sample Stacks. There are a couple there already. This would help to make the user widgets easier to find for all LC users. ----- Andy Piddock My software never has bugs. It just develops random features. Copy the new cloud space, get your free 15GB space now: Get Copy 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 -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Sharing-widgets-was-Re-Type-on-an-angle-tp4710479p4710480.html Sent from the Revolution - User mailing list archive at Nabble.com. From andrew at midwestcoastmedia.com Mon Nov 21 10:28:51 2016 From: andrew at midwestcoastmedia.com (Mid West Coast Media) Date: Mon, 21 Nov 2016 10:28:51 -0500 Subject: iTunes Connect rejection Message-ID: Upgraded to 8.1.2rc2 and Xcode 8.1 (Mac 10.11.5) and compiled a build to update an existing app. Submitted build got pre-rejected with the following immediate response email from Apple: quote Dear developer, We have discovered one or more issues with your recent delivery for "Indiana On Tap". To process your delivery, the following issues must be corrected: Non-public API usage: The app references non-public symbols in Indiana On Tap: _getcontext, _makecontext, _setcontext If method names in your source code match the private Apple APIs listed above, altering your method names will help prevent this app from being flagged in future submissions. In addition, note that one or more of the above APIs may be located in a static library that was included with your app. If so, they must be removed. /quote Recompiled the same LiveCode file using 8.1.1 and Xcode 8 (I know store multiple versions of Xcode and Android tools on an external hard drive) and submitted to Apple as usual; though I did need to bump up the build number since there was already an existing binary with that value. Not sure what the problem was, or if anyone else had experienced this. --Andrew Bell --Sent from my iPhone From hh at hyperhh.de Mon Nov 21 10:38:32 2016 From: hh at hyperhh.de (hh) Date: Mon, 21 Nov 2016 16:38:32 +0100 Subject: Sharing widgets (was Re: Type on an angle) Message-ID: <8F3F6950-ACF6-4811-9CE4-86A2937086B6@hyperhh.de> > > > zyrip wrote: Where can I share it? > > Ben wrote: What is a good answer to zryip's question below, > > where should interesting third-party widgets be shared? > Andy wrote: The widget could be uploaded as a zip to the > Sample Stacks. There are a couple there already. If you mean snippets or widgets for the community, then you could write a post here (please number it as I did, so it's **easier to refer** to it): Community Snippets: http://forums.livecode.com/viewtopic.php?f=93&t=28225 Community Widgets: http://forums.livecode.com/viewtopic.php?f=93&t=28020 If the zip is less than 256 KByte you can also upload it to the forum. In "Sample Stacks"/livecodeshare there is currently one single _LCB widget_ (there are more LCS groups, also called 'widgets'). This is my proposal: No matter where you upload it if not the forum: Please number the widget/snippet in a forum post in Community Widgets/Snippets and link there to the download location. From mark at livecode.com Mon Nov 21 10:38:40 2016 From: mark at livecode.com (Mark Waddingham) Date: Mon, 21 Nov 2016 16:38:40 +0100 Subject: iTunes Connect rejection In-Reply-To: References: Message-ID: <50ce81cc387654f6129b449e2a5c7931@livecode.com> Hi Andrew, > Recompiled the same LiveCode file using 8.1.1 and Xcode 8 (I know > store multiple versions of Xcode and Android tools on an external hard > drive) and submitted to Apple as usual; though I did need to bump up > the build number since there was already an existing binary with that > value. Do you consistently get the same problem if you recompile with 8.1.2-rc-2? If so, could you compile your app and send the compiled binary to us so we can inspect it? The engine certainly doesn't use those calls (there is no reference to them in the engine source), so it might well be a false-positive on Apple's part (when statically checking the binary). It *could* be that a name of one of the (public) symbols in the engine is confusing their system. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From ambassador at fourthworld.com Mon Nov 21 11:01:09 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 21 Nov 2016 08:01:09 -0800 Subject: Sharing widgets (was Re: Type on an angle) In-Reply-To: <1479734791840-4710480.post@n4.nabble.com> References: <1479734791840-4710480.post@n4.nabble.com> Message-ID: AndyP wrote: > Ben wrote: >> What is a good answer to zryip's question below, where should >> interesting third-party widgets be shared? > > The widget could be uploaded as a zip to the Sample Stacks. > There are a couple there already. > > This would help to make the user widgets easier to find for all LC > users. Yep. A file can of course be uploaded anywhere, but if we use the facility designed for sharing extensions it'll make things that much easier for everyone to find today, and in the future as the Sample Stacks/revOnline repo is updated. -- 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 panos.merakos at livecode.com Mon Nov 21 11:32:40 2016 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 21 Nov 2016 16:32:40 +0000 Subject: [ ANN ] Release 9.0.0 DP-2 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.0.0 DP-2. You can find out more about the release in this blog post: https://livecode.com/whats-new-in-livecode-9-0-dp-2/ 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-2. contains exciting new features, bug fixes, stability and security improvements. In total, 23 bugs have been fixed since the last development preview release (LiveCode 9.0.0 DP-1). Moreover, we had several contributions from the community, in both the Documentation and the LiveCode IDE: Devin Asay KailasNatha Paul McClernan Sean Cole Trevor DeVore seaniepie BerndN Mark Wieder angerangel Thank you all :) The full release notes are available from: http://downloads.livecode.com/livecode/9_0_0/LiveCodeNotes-9_0_0_dp_2.pdf 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 bobsneidar at iotecdigital.com Mon Nov 21 11:36:17 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 21 Nov 2016 16:36:17 +0000 Subject: Bundling an External into a Windows EXE? In-Reply-To: <582F4EA6.4010901@researchware.com> References: <582F4EA6.4010901@researchware.com> Message-ID: <4CD2BEB2-C85A-4CF8-B557-2673975C44FE@iotecdigital.com> I'm going to venture to say no. The whole point to having a dynamic linked library is to have it be external to the application, so that any updates to the dll can be accomplished without completely recompiling the exe. Also, they are designed to be used as shared libraries for other apps needing the same functionality. Ideally, Livecode would put these "dll's" in the apData folder of the user, or in a folder where all drivers are accessible, but sandboxing has essentially made that impossible, or at least highly problematic, with the very real possibility that the next OS version will make it impossible. So into the app folder they go, because LC knows that at least it *should* always have access to that one folder. At least that is how I see it. Bob S On Nov 18, 2016, at 10:55 , Paul Dupuis > wrote: Does anyone have any tricks to bundle an external (revZip in my case) into the EXE built by the Standalone maker? Once really nice thing about the OSX app bundle (a special folder the OS treats as a bundle) is that if a use drags an app somewhere, everything that belongs to it moves with it. Certain resources, like icons, can be bundled into the EXE, using various Windows resource editor tools, so that has led me to wonder if there are any tricks to folding the dll of an external into the exe in a way that the LiveCode engine can find it? From ambassador at fourthworld.com Mon Nov 21 11:43:12 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 21 Nov 2016 08:43:12 -0800 Subject: Bundling an External into a Windows EXE? In-Reply-To: <4CD2BEB2-C85A-4CF8-B557-2673975C44FE@iotecdigital.com> References: <4CD2BEB2-C85A-4CF8-B557-2673975C44FE@iotecdigital.com> Message-ID: <1d1010b3-ba91-fe9f-6e87-668b89a76a39@fourthworld.com> That's one thing I miss from SuperCard: externals were embedded within the executable so we could deliver truly stand-alone standalones. I'm not necessarily advocating that LC do the same, but for those of us whose projects benefit from single-file deliverables it may make for a useful community project to find a way to load them from being part of the EXE file without requiring them to be first written to disk as a separate file. -- Richard Gaskin Fourth World Systems Bob Sneidar wrote: > I'm going to venture to say no. The whole point to having a dynamic > linked library is to have it be external to the application, so that > any updates to the dll can be accomplished without completely > recompiling the exe. Also, they are designed to be used as shared > libraries for other apps needing the same functionality. > > Ideally, Livecode would put these "dll's" in the apData folder of the > user, or in a folder where all drivers are accessible, but sandboxing > has essentially made that impossible, or at least highly problematic, > with the very real possibility that the next OS version will make it > impossible. > > So into the app folder they go, because LC knows that at least it > *should* always have access to that one folder. At least that is how > I see it. > > Bob S > > On Nov 18, 2016, at 10:55 , Paul Dupuis wrote: > > Does anyone have any tricks to bundle an external (revZip in my case) > into the EXE built by the Standalone maker? > > Once really nice thing about the OSX app bundle (a special folder the > OS treats as a bundle) is that if a use drags an app somewhere, > everything that belongs to it moves with it. Certain resources, like > icons, can be bundled into the EXE, using various Windows resource > editor tools, so that has led me to wonder if there are any tricks to > folding the dll of an external into the exe in a way that the > LiveCode engine can find it? From bobsneidar at iotecdigital.com Mon Nov 21 11:44:39 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 21 Nov 2016 16:44:39 +0000 Subject: Macintosh support In-Reply-To: <65338fa3-204d-239d-0dee-af9055ff0161@gmail.com> References: <2cb910e8-1fa8-756b-7978-059cbc7db8d3@gmail.com> <6aa6da27-0091-998b-bd60-b1fcc9ee0f95@livecode.com> <65338fa3-204d-239d-0dee-af9055ff0161@gmail.com> Message-ID: <3CBEBEC5-8EFB-42E7-B456-5F06C6F1BA2E@iotecdigital.com> :-) Bob S On Nov 20, 2016, at 04:34 , Richmond > wrote: as the cheapest iMac on the European market currently retails at 1,250 Euros [ http://www.apple.com/de/shop/buy-mac/imac ] and runs an OS (10.11 ~ 10.12) that has a GUI I just do not like (Steve Jobs died, and while he went, arguably, to heaven, the Mac GUI went to hell) From ambassador at fourthworld.com Mon Nov 21 11:44:52 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 21 Nov 2016 08:44:52 -0800 Subject: [ ANN ] Release 9.0.0 DP-2 In-Reply-To: References: Message-ID: <63779c17-1d0a-2adf-581e-953b6843ce43@fourthworld.com> panagiotis merakos wrote: > We are pleased to announce the release of LiveCode 9.0.0 DP-2. > > You can find out more about the release in this blog post: > https://livecode.com/whats-new-in-livecode-9-0-dp-2/ Thanks! Eagerly awaited, downloading now... Forward! -- 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 Nov 21 11:48:26 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 21 Nov 2016 16:48:26 +0000 Subject: Macintosh support In-Reply-To: <65338fa3-204d-239d-0dee-af9055ff0161@gmail.com> References: <2cb910e8-1fa8-756b-7978-059cbc7db8d3@gmail.com> <6aa6da27-0091-998b-bd60-b1fcc9ee0f95@livecode.com> <65338fa3-204d-239d-0dee-af9055ff0161@gmail.com> Message-ID: Honestly though, nothing is stopping you from developing with LC versions prior to 9. If you use script only stacks for your code libraries, it should be fairly easy to conditionally branch for any new features you might want to make available which older versions do not support. And if you say that this is too much trouble and you shouldn't be expected to go through all that, well then you have just made RunRev's point for them. :-) Bob S On Nov 20, 2016, at 04:34 , Richmond > wrote: "LiveCode 9 may still run on OS X 10.7, for the time being" It does, cheers, cheers! Having just invested 190 Euros in a 2006 Intel iMac (max OS 10.7) I am extremely happy about this. From ali.lloyd at livecode.com Mon Nov 21 12:07:07 2016 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Mon, 21 Nov 2016 17:07:07 +0000 Subject: GUI Design Tasks Send Back - Bring Forward In-Reply-To: <9AB0ACF3-D1E7-4E6C-84E9-9770F6B7DE9E@hindu.org> References: <110E0503-1282-441B-B470-C76840F4475B@hindu.org> <9AB0ACF3-D1E7-4E6C-84E9-9770F6B7DE9E@hindu.org> Message-ID: If anyone particularly wants this feature, it would make a nice and fairly easy community contribution as it only requires changes in the 'revMenuBar' script only stack. You would just have to add the appropriate menu items in revMenuBarObjectContextMenu (probably using the pSelectable parameter to control the enabled of the menu item) and then add to the switch in revMenubarContextMenuPickTarget case "Send to Back" revIDESendToBack pTarget etc On Sun, Nov 20, 2016 at 11:08 PM Sannyasin Brahmanathaswami < brahma at hindu.org> wrote: > roger.e.eller at sealedair.com> wrote: > > pressing Control-[ or Control-]. > > OH ..duh! yes completely forgot about those key board shortcuts! > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Mon Nov 21 13:09:18 2016 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 21 Nov 2016 20:09:18 +0200 Subject: Macintosh support In-Reply-To: References: <2cb910e8-1fa8-756b-7978-059cbc7db8d3@gmail.com> <6aa6da27-0091-998b-bd60-b1fcc9ee0f95@livecode.com> <65338fa3-204d-239d-0dee-af9055ff0161@gmail.com> Message-ID: "nothing is stopping you from developing with LC versions prior to 9" indeed: I'm refactoring, recoding, rejigging and generally have a "fun time" moving my Devawriter Pro from LiveCode 4.5 (which is seriously long in the tooth) to 8.1.1 and, as long as I can get the thing to work on Windows 10 and Mac OS 10.12 I will be entirely happy. The move from "set the unicodeText" to a universal "set the text" is Fantastic, and will keep me very happy indeed for a very long time to come. I cannot express how much I like not having to mess around finding surrogate pairs for wierd characters up in the high planes of Unicode . . . just "Wow!" Richmond. On 21.11.2016 18:48, Bob Sneidar wrote: > Honestly though, nothing is stopping you from developing with LC versions prior to 9. If you use script only stacks for your code libraries, it should be fairly easy to conditionally branch for any new features you might want to make available which older versions do not support. And if you say that this is too much trouble and you shouldn't be expected to go through all that, well then you have just made RunRev's point for them. :-) > > Bob S > > > On Nov 20, 2016, at 04:34 , Richmond > wrote: > > "LiveCode 9 may still run on OS X 10.7, for the time being" > > It does, cheers, cheers! > > Having just invested 190 Euros in a 2006 Intel iMac (max OS 10.7) I am extremely > happy about this. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From capellan2000 at gmail.com Mon Nov 21 13:39:21 2016 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 21 Nov 2016 14:39:21 -0400 Subject: Perspective Distortion of an image (was: Type on an angle) Message-ID: Hi Hermann, On Sun, 20 Nov 2016, Hermann wrote: > ** Perspective Distortion of an image ** > available (fast) at "Sample stacks" of the IDE toolbar or (slower) at > http://livecodeshare.runrev.com/stack/812/Perspective-Image-Distortion > The stack includes is an example for (close to) live-distorting a field's > image, uses font 'Aclonica' at 48 point. Amazing work, Hermann! :D Many Thanks for sharing all these Math Gems. How about this for a new challenge? https://www.willmcgugan.com/blog/tech/post/a-texture-mapped-spinning-3d-globe-rendered-with-javascript-and-html/ Alejandro From brahma at hindu.org Mon Nov 21 15:32:17 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 21 Nov 2016 20:32:17 +0000 Subject: Type on an angle In-Reply-To: References: Message-ID: <38D72E54-5A94-47ED-BFEB-9A946AA31F60@hindu.org> And if your target is a static, image "in perspective" speed is not an issue.. This can be a production tool. then cut and paste. Yes, marvelous! BR On 11/20/16, 3:54 PM, "use-livecode on behalf of Scott Rossi" wrote: This is great. True, it runs a bit slowly in 7/8, but scripted image calculations have always been this way, and having any option at all in LC to do this type of manipulation is very welcome. A few of us have been wanting something like this for years. Thanks for this great example. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 11/20/16, 9:11 AM, "use-livecode on behalf of hh" wrote: >** Perspective Distortion of an image ** >available (fast) at "Sample stacks" of the IDE toolbar or (slower) at >http://livecodeshare.runrev.com/stack/812/Perspective-Image-Distortion > >The stack includes is an example for (close to) live-distorting a field's >image, uses font 'Aclonica' at 48 point. From brahma at hindu.org Mon Nov 21 16:29:49 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 21 Nov 2016 21:29:49 +0000 Subject: Compound Path SVG Breaks in Widget? In-Reply-To: References: <79BC30F4-9B0F-4535-8B8D-7B6263D33CBD@hindu.org> Message-ID: Aloha, Paul: Hmmm there's a huge difference between illustrator output M112,0H12a12,12,0,0,0,0,24H112A12,12,0,0,0,112,0Zm0,44H12a12,12,0,0,0,0,24H112A12,12,0,0,0,112,44Zm0,44H12a12,12,0,0,0,0,24H112A12,12,0,0,0,112,88Z and Affinity output M112,0l-100,0c-6.583,0 -12,5.417 -12,12c0,6.583 5.417,12 12,12l100,0c6.583,0 12,-5.417 12,-12c0,-6.583 -5.417,-12 -12,-12Zm0,44l-100,0c-6.583,0 -12,5.417 -12,12c0,6.583 5.417,12 12,12l100,0c6.583,0 12,-5.417 12,-12c0,-6.583 -5.417,-12 -12,-12Zm0,44l-100,0c-6.583,0 -12,5.417 -12,12c0,6.583 5.417,12 12,12l100,0c6.583,0 12,-5.417 12,-12c0,-6.583 -5.417,-12 -12,-12Z Illustrator there are a variety of settings in the SVG export? but none of them change the string we see above. but the SVG profile option is missing today? now sure why? OT: I keep resisting Adobe suite updates I disabled their update deamon and been sitting on '15 forever? I may need to update. Though I think affinity may be a good tool to have? as I find illustrator less than user friendly. BR On 11/20/16, 12:57 PM, "use-livecode on behalf of Paul Hibbert" wrote: Just re-created your SVG from the SVG text and opened the file in Affinity Designer, then exported it as SVG, converted back to text and then extracted the SVG paths: M112,0l-100,0c-6.583,0 -12,5.417 -12,12c0,6.583 5.417,12 12,12l100,0c6.583,0 12,-5.417 12,-12c0,-6.583 -5.417,-12 -12,-12Zm0,44l-100,0c-6.583,0 -12,5.417 -12,12c0,6.583 5.417,12 12,12l100,0c6.583,0 12,-5.417 12,-12c0,-6.583 -5.417,-12 -12,-12Zm0,44l-100,0c-6.583,0 -12,5.417 -12,12c0,6.583 5.417,12 12,12l100,0c6.583,0 12,-5.417 12,-12c0,-6.583 -5.417,-12 -12,-12Z Pasted that into an SVG Icon widget and it works fine, so I guess it?s something to do with the way Illustrator exports the data, are there any options to try? Maybe compression? Paul From bobsneidar at iotecdigital.com Mon Nov 21 17:22:35 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 21 Nov 2016 22:22:35 +0000 Subject: Perspective Distortion of an image (was: Type on an angle) In-Reply-To: References: Message-ID: <67E9190E-844F-4EE5-97D8-5836EDD4FAED@iotecdigital.com> That is quite nice, and I think a great example of what LC can do simply on an algorithmic level without requesting a new feature or set of commands or external. Almost everything can be worked around or solved, if real time performance is not a requirement. Bob S On Nov 21, 2016, at 10:39 , Alejandro Tejada > wrote: Hi Hermann, On Sun, 20 Nov 2016, Hermann wrote: ** Perspective Distortion of an image ** available (fast) at "Sample stacks" of the IDE toolbar or (slower) at http://livecodeshare.runrev.com/stack/812/Perspective-Image-Distortion The stack includes is an example for (close to) live-distorting a field's image, uses font 'Aclonica' at 48 point. Amazing work, Hermann! :D Many Thanks for sharing all these Math Gems. How about this for a new challenge? https://www.willmcgugan.com/blog/tech/post/a-texture-mapped-spinning-3d-globe-rendered-with-javascript-and-html/ Alejandro From capellan2000 at gmail.com Mon Nov 21 19:17:30 2016 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 21 Nov 2016 20:17:30 -0400 Subject: Box2D Physics Engine Message-ID: Hi All, On the forum, ClipArtGuy wrote: > FWIW, the Box2D Physics Engine goal > was also met and has also been dropped > from the roadmap. http://forums.livecode.com/viewtopic.php?f=10&t=28290&p=148671#p148314 Which LiveCode version includes Box2D? Al From capellan2000 at gmail.com Mon Nov 21 23:32:50 2016 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 22 Nov 2016 00:32:50 -0400 Subject: Max number of colors on a gradient Message-ID: Hi All, I was testing the practical limitations of svg and LiveCode graphics and noticed that a svg with 1024 gradients displayed fine in the browser, but shows a lot of banding, moire and noise within LiveCode. Very similar to this image: http://www.123rf.com/clipart-vector/moire.html?mediapopup=38363779 According to SKIA, How many colors could we add safely to a gradient? What are the practical limits of this feature? Al From colinholgate at gmail.com Mon Nov 21 23:38:34 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 21 Nov 2016 21:38:34 -0700 Subject: Max number of colors on a gradient In-Reply-To: References: Message-ID: <2019E9F4-43CB-4AB9-91BD-C32651613827@gmail.com> I don?t know what colorspace LiveCode uses, but for gradients there are only 256 levels in 24 bit color. If you?re seeing 1024 gradients elsewhere, that?s 30 bit color, which is not common. There is dithering to try to make less levels look like more levels. From roger.e.eller at sealedair.com Tue Nov 22 09:15:33 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 22 Nov 2016 09:15:33 -0500 Subject: roundUp function? Message-ID: We have round, which will either round up or down depending on the decimal value being > or < .5, but what if I want ANY decimal value, even .01 to round UP to the next whole number? Dictionary Examples: the round of 26.2 -- yields 26 the round of 2.5 -- yields 3 (rounds up) I want to: get roundUP(26.2) -- yields 27 set the itemDel to "." --------- I could just evaluate what falls after the decimal. if item 2 of MyDecimalNum > 0 then add 1 to item 1 of MyDecimalNum put 0 into item 2 of MyDecimalNum end if Is there a better way? Probably, I'm guessing... ~Roger From peter.brett at livecode.com Tue Nov 22 09:27:20 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Tue, 22 Nov 2016 14:27:20 +0000 Subject: roundUp function? In-Reply-To: References: Message-ID: <1a6ca8a5-2b67-d54e-26c6-8ec64349e553@livecode.com> On 22/11/2016 14:15, Roger Eller wrote: > We have round, which will either round up or down depending on the decimal > value being > or < .5, but what if I want ANY decimal value, even .01 to > round UP to the next whole number? You probably want to use "the ceiling of ", or "the ceil of ". Best regards, Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From roger.e.eller at sealedair.com Tue Nov 22 09:29:45 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 22 Nov 2016 09:29:45 -0500 Subject: roundUp function? In-Reply-To: <1a6ca8a5-2b67-d54e-26c6-8ec64349e553@livecode.com> References: <1a6ca8a5-2b67-d54e-26c6-8ec64349e553@livecode.com> Message-ID: Thanks, Peter! ~Roger On Tue, Nov 22, 2016 at 9:27 AM, Peter TB Brett wrote: > > > On 22/11/2016 14:15, Roger Eller wrote: > >> We have round, which will either round up or down depending on the >> decimal >> value being > or < .5, but what if I want ANY decimal value, even .01 to >> round UP to the next whole number? >> > > You probably want to use "the ceiling of ", or "the ceil of > ". > > Best regards, > > Peter > > -- > Dr Peter Brett > LiveCode Technical Project Manager > > lcb-mode for Emacs: https://github.com/peter-b/lcb-mode > From bonnmike at gmail.com Tue Nov 22 09:38:26 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 22 Nov 2016 07:38:26 -0700 Subject: roundUp function? In-Reply-To: References: <1a6ca8a5-2b67-d54e-26c6-8ec64349e553@livecode.com> Message-ID: Kinda pointless since you can use ceiling, but you could go old school and add .5 to the number, then round to achieve the same affect. On Tue, Nov 22, 2016 at 7:29 AM, Roger Eller wrote: > Thanks, Peter! > > ~Roger > > > On Tue, Nov 22, 2016 at 9:27 AM, Peter TB Brett > wrote: > > > > > > > On 22/11/2016 14:15, Roger Eller wrote: > > > >> We have round, which will either round up or down depending on the > >> decimal > >> value being > or < .5, but what if I want ANY decimal value, even .01 to > >> round UP to the next whole number? > >> > > > > You probably want to use "the ceiling of ", or "the ceil of > > ". > > > > Best regards, > > > > Peter > > > > -- > > Dr Peter Brett > > LiveCode Technical Project Manager > > > > lcb-mode for Emacs: https://github.com/peter-b/lcb-mode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 22 09:39:00 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 22 Nov 2016 07:39:00 -0700 Subject: roundUp function? In-Reply-To: References: <1a6ca8a5-2b67-d54e-26c6-8ec64349e553@livecode.com> Message-ID: Actually, .4 I guess. On Tue, Nov 22, 2016 at 7:38 AM, Mike Bonner wrote: > Kinda pointless since you can use ceiling, but you could go old school and > add .5 to the number, then round to achieve the same affect. > > On Tue, Nov 22, 2016 at 7:29 AM, Roger Eller > wrote: > >> Thanks, Peter! >> >> ~Roger >> >> >> On Tue, Nov 22, 2016 at 9:27 AM, Peter TB Brett > > >> wrote: >> >> > >> > >> > On 22/11/2016 14:15, Roger Eller wrote: >> > >> >> We have round, which will either round up or down depending on the >> >> decimal >> >> value being > or < .5, but what if I want ANY decimal value, even .01 >> to >> >> round UP to the next whole number? >> >> >> > >> > You probably want to use "the ceiling of ", or "the ceil of >> > ". >> > >> > Best regards, >> > >> > Peter >> > >> > -- >> > Dr Peter Brett >> > LiveCode Technical Project Manager >> > >> > lcb-mode for Emacs: https://github.com/peter-b/lcb-mode >> > >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Tue Nov 22 09:40:02 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 22 Nov 2016 09:40:02 -0500 Subject: roundUp function? In-Reply-To: References: <1a6ca8a5-2b67-d54e-26c6-8ec64349e553@livecode.com> Message-ID: Peter, ceil works in 8.1.1, and in the docs of 8.1.1 says "Introduced in 6.7", yet it fails in 6.7.5 and6.7.8, nor is it in the 6.7.x dictionary. That said, I need it in an app that is built and deployed in 6.7.5. ~Roger On Tue, Nov 22, 2016 at 9:29 AM, Roger Eller wrote: > Thanks, Peter! > > ~Roger > > > On Tue, Nov 22, 2016 at 9:27 AM, Peter TB Brett > wrote: > >> >> >> On 22/11/2016 14:15, Roger Eller wrote: >> >>> We have round, which will either round up or down depending on the >>> decimal >>> value being > or < .5, but what if I want ANY decimal value, even .01 to >>> round UP to the next whole number? >>> >> >> You probably want to use "the ceiling of ", or "the ceil of >> ". >> >> Best regards, >> >> Peter >> >> -- >> Dr Peter Brett >> LiveCode Technical Project Manager >> >> lcb-mode for Emacs: https://github.com/peter-b/lcb-mode >> > > > From roger.e.eller at sealedair.com Tue Nov 22 09:41:58 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 22 Nov 2016 09:41:58 -0500 Subject: roundUp function? In-Reply-To: References: <1a6ca8a5-2b67-d54e-26c6-8ec64349e553@livecode.com> Message-ID: Old school is just awesome sometimes. :) Thanks for that idea, Mike. ~Roger On Tue, Nov 22, 2016 at 9:39 AM, Mike Bonner wrote: > Actually, .4 I guess. > > On Tue, Nov 22, 2016 at 7:38 AM, Mike Bonner wrote: > > > Kinda pointless since you can use ceiling, but you could go old school > and > > add .5 to the number, then round to achieve the same affect. > > > > On Tue, Nov 22, 2016 at 7:29 AM, Roger Eller < > roger.e.eller at sealedair.com> > > wrote: > > > >> Thanks, Peter! > >> > >> ~Roger > >> > >> > >> On Tue, Nov 22, 2016 at 9:27 AM, Peter TB Brett < > peter.brett at livecode.com > >> > > >> wrote: > >> > >> > > >> > > >> > On 22/11/2016 14:15, Roger Eller wrote: > >> > > >> >> We have round, which will either round up or down depending on the > >> >> decimal > >> >> value being > or < .5, but what if I want ANY decimal value, even .01 > >> to > >> >> round UP to the next whole number? > >> >> > >> > > >> > You probably want to use "the ceiling of ", or "the ceil of > >> > ". > >> > > >> > Best regards, > >> > > >> > Peter > >> > > >> > -- > >> > Dr Peter Brett > >> > LiveCode Technical Project Manager > >> > > >> > lcb-mode for Emacs: https://github.com/peter-b/lcb-mode > >> > > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From peter.brett at livecode.com Tue Nov 22 09:44:06 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Tue, 22 Nov 2016 14:44:06 +0000 Subject: roundUp function? In-Reply-To: References: <1a6ca8a5-2b67-d54e-26c6-8ec64349e553@livecode.com> Message-ID: <8a56c52e-5f7d-272d-5651-37590182cc52@livecode.com> On 22/11/2016 14:40, Roger Eller wrote: > ceil works in 8.1.1, and in the docs of 8.1.1 says "Introduced in 6.7", yet > it fails in 6.7.5 and6.7.8, nor is it in the 6.7.x dictionary. > > That said, I need it in an app that is built and deployed in 6.7.5. Hi Roger, That appears to be a documentation error. Mark Wieder introduced the function in 7.1.0 [1]. Peter [1] https://github.com/livecode/livecode/commit/d919382bcd303b631844cd56c4dd3157b2aa8180 -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From roger.e.eller at sealedair.com Tue Nov 22 09:48:12 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 22 Nov 2016 09:48:12 -0500 Subject: roundUp function? In-Reply-To: <8a56c52e-5f7d-272d-5651-37590182cc52@livecode.com> References: <1a6ca8a5-2b67-d54e-26c6-8ec64349e553@livecode.com> <8a56c52e-5f7d-272d-5651-37590182cc52@livecode.com> Message-ID: Good to know. Thanks again. On Tue, Nov 22, 2016 at 9:44 AM, Peter TB Brett wrote: > > > On 22/11/2016 14:40, Roger Eller wrote: > > ceil works in 8.1.1, and in the docs of 8.1.1 says "Introduced in 6.7", yet >> it fails in 6.7.5 and6.7.8, nor is it in the 6.7.x dictionary. >> >> That said, I need it in an app that is built and deployed in 6.7.5. >> > > Hi Roger, > > That appears to be a documentation error. Mark Wieder introduced the > function in 7.1.0 [1]. > > Peter > > [1] https://github.com/livecode/livecode/commit/d919382bcd303b63 > 1844cd56c4dd3157b2aa8180 > > -- > Dr Peter Brett > LiveCode Technical Project Manager > > lcb-mode for Emacs: https://github.com/peter-b/lcb-mode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From peter.brett at livecode.com Tue Nov 22 09:49:05 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Tue, 22 Nov 2016 14:49:05 +0000 Subject: roundUp function? In-Reply-To: References: <1a6ca8a5-2b67-d54e-26c6-8ec64349e553@livecode.com> <8a56c52e-5f7d-272d-5651-37590182cc52@livecode.com> Message-ID: <1dde7deb-1c1c-a39d-1740-bf9aa4fe5209@livecode.com> On 22/11/2016 14:48, Roger Eller wrote: > Good to know. Thanks again. And I've now submitted a pull request to fix that. Thank you for pointing it out! https://github.com/livecode/livecode/pull/4911 Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From zryip.theslug at gmail.com Tue Nov 22 10:04:14 2016 From: zryip.theslug at gmail.com (zryip theSlug) Date: Tue, 22 Nov 2016 16:04:14 +0100 Subject: Sharing widgets (was Re: Type on an angle) In-Reply-To: <8F3F6950-ACF6-4811-9CE4-86A2937086B6@hyperhh.de> References: <8F3F6950-ACF6-4811-9CE4-86A2937086B6@hyperhh.de> Message-ID: Done with number 50. Thanks for the link. On Mon, Nov 21, 2016 at 4:38 PM, hh wrote: >> > > zyrip wrote: Where can I share it? >> > Ben wrote: What is a good answer to zryip's question below, >> > where should interesting third-party widgets be shared? >> Andy wrote: The widget could be uploaded as a zip to the >> Sample Stacks. There are a couple there already. > > If you mean snippets or widgets for the community, then > you could write a post here (please number it as I did, > so it's **easier to refer** to it): > > Community Snippets: > http://forums.livecode.com/viewtopic.php?f=93&t=28225 > Community Widgets: > http://forums.livecode.com/viewtopic.php?f=93&t=28020 > > If the zip is less than 256 KByte you can also upload it to > the forum. > In "Sample Stacks"/livecodeshare there is currently one single > _LCB widget_ (there are more LCS groups, also called 'widgets'). > > This is my proposal: > No matter where you upload it if not the forum: Please number the > widget/snippet in a forum post in Community Widgets/Snippets and > link there to the download location. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Zryip TheSlug http://www.aslugontheroad.com From paul at researchware.com Tue Nov 22 11:03:24 2016 From: paul at researchware.com (Paul Dupuis) Date: Tue, 22 Nov 2016 11:03:24 -0500 Subject: Sharing widgets (was Re: Type on an angle) In-Reply-To: References: <8F3F6950-ACF6-4811-9CE4-86A2937086B6@hyperhh.de> Message-ID: <58346C4C.8040807@researchware.com> Could someone from the Mothership (i.e. LiveCode) weigh in on where people should publish LCB widgets? If Kevin really wants a 1000 widgets, then LiveCode really should designate an "official" place to put them or at least put links to them (if not the actual widgets themselves). As has been illustrated in this thread, some people want to host their widgets themselves and other want a place to upload them to, so both should be supported. I have no preference for whether this is a board on the Forum or the Sample Stacks or a web based repository or where ever, but before lots of widgets organically get deposited all over everywhere, where would LiveCode like them placed? On 11/22/2016 10:04 AM, zryip theSlug wrote: > Done with number 50. Thanks for the link. > > On Mon, Nov 21, 2016 at 4:38 PM, hh wrote: >>>>> zyrip wrote: Where can I share it? >>>> Ben wrote: What is a good answer to zryip's question below, >>>> where should interesting third-party widgets be shared? >>> Andy wrote: The widget could be uploaded as a zip to the >>> Sample Stacks. There are a couple there already. >> If you mean snippets or widgets for the community, then >> you could write a post here (please number it as I did, >> so it's **easier to refer** to it): >> >> Community Snippets: >> http://forums.livecode.com/viewtopic.php?f=93&t=28225 >> Community Widgets: >> http://forums.livecode.com/viewtopic.php?f=93&t=28020 >> >> If the zip is less than 256 KByte you can also upload it to >> the forum. >> In "Sample Stacks"/livecodeshare there is currently one single >> _LCB widget_ (there are more LCS groups, also called 'widgets'). >> >> This is my proposal: >> No matter where you upload it if not the forum: Please number the >> widget/snippet in a forum post in Community Widgets/Snippets and >> link there to the download location. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > From peter.brett at livecode.com Tue Nov 22 13:26:04 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Tue, 22 Nov 2016 18:26:04 +0000 Subject: Sharing widgets (was Re: Type on an angle) In-Reply-To: <58346C4C.8040807@researchware.com> References: <8F3F6950-ACF6-4811-9CE4-86A2937086B6@hyperhh.de> <58346C4C.8040807@researchware.com> Message-ID: <06f8d927-9056-2954-9785-1663e68c8a9a@livecode.com> On 22/11/2016 16:03, Paul Dupuis wrote: > Could someone from the Mothership (i.e. LiveCode) weigh in on where > people should publish LCB widgets? > > If Kevin really wants a 1000 widgets, then LiveCode really should > designate an "official" place to put them or at least put links to them > (if not the actual widgets themselves). As has been illustrated in this > thread, some people want to host their widgets themselves and other want > a place to upload them to, so both should be supported. > > I have no preference for whether this is a board on the Forum or the > Sample Stacks or a web based repository or where ever, but before lots > of widgets organically get deposited all over everywhere, where would > LiveCode like them placed? Hi Paul, For LiveCode 8, the original intention was that there would be an "extension store" area on the main website. The idea was that it would provide a searchable index of LiveCode Builder extensions, with associated documentation, guides, examples, etc. The IDE would know how to hook into the extension store. It would take care of downloading and updating extensions for use in your apps, as well as publishing the extensions that you create. Unfortunately, this ran into a few problems, and around November 2015 the decision was made to drop the extension store feature from the LiveCode 8 release and focus on the other elements. There were quite a few other things that didn't make the cut; for example, LiveCode 8.0 was originally planned to include the Objective C and Java FFI elements that we're currently working on in the Infinite LiveCode project. At the moment, unfortunately, we don't have any concrete plans or timescale for resuming the extension store project -- which I think would deliver what several people are asking for. Maybe there's an opening here for someone to deliver a "LiveCode extensions hub" website of their own? If you're developing an open source widget or library, I personally would recommend creating a git repository for each extension you create -- not necessarily on GitHub, but anywhere that suits -- and storing your widget's files in it with roughly the same layout we use for the widgets we ship in LiveCode. You could then start a thread about your widget on the LCB forum, or maybe post release announcements on this mailing list. It would be very easy for people to install the widget, because most of the git hosting sites let you just download a zip of the files in the repository. Unzip them, open the .lcb file in the extension builder, hit 'Package' and 'Install' -- done. I don't think there's any official "best way to distribute widgets" guideline from LiveCode-the-company right now. For myself, I'm enjoying seeing the various approaches that people are taking, and seeing what works and what doesn't. Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From kevin at livecode.com Tue Nov 22 13:38:42 2016 From: kevin at livecode.com (Kevin Miller) Date: Tue, 22 Nov 2016 18:38:42 +0000 Subject: Sharing widgets (was Re: Type on an angle) In-Reply-To: <58346C4C.8040807@researchware.com> References: <8F3F6950-ACF6-4811-9CE4-86A2937086B6@hyperhh.de> <58346C4C.8040807@researchware.com> Message-ID: As it happens we?ve been talking about that very issue internally today within our marketing team. This is a key priority for us, it has taken us longer than we would have liked but it needs to be moved up the queue and we will be doing that. I?ll post something concrete on this next week. We did start a sharing solution, its not quite ready to launch yet. In the mean time, you can use the forum here as a stopgap http://forums.livecode.com/viewtopic.php?f=93&t=28020 Kind regards, Kevin Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps On 22/11/2016, 16:03, "use-livecode on behalf of Paul Dupuis" wrote: >Could someone from the Mothership (i.e. LiveCode) weigh in on where >people should publish LCB widgets? > >If Kevin really wants a 1000 widgets, then LiveCode really should >designate an "official" place to put them or at least put links to them >(if not the actual widgets themselves). As has been illustrated in this >thread, some people want to host their widgets themselves and other want >a place to upload them to, so both should be supported. > >I have no preference for whether this is a board on the Forum or the >Sample Stacks or a web based repository or where ever, but before lots >of widgets organically get deposited all over everywhere, where would >LiveCode like them placed? > > > > >On 11/22/2016 10:04 AM, zryip theSlug wrote: >> Done with number 50. Thanks for the link. >> >> On Mon, Nov 21, 2016 at 4:38 PM, hh wrote: >>>>>> zyrip wrote: Where can I share it? >>>>> Ben wrote: What is a good answer to zryip's question below, >>>>> where should interesting third-party widgets be shared? >>>> Andy wrote: The widget could be uploaded as a zip to the >>>> Sample Stacks. There are a couple there already. >>> If you mean snippets or widgets for the community, then >>> you could write a post here (please number it as I did, >>> so it's **easier to refer** to it): >>> >>> Community Snippets: >>> http://forums.livecode.com/viewtopic.php?f=93&t=28225 >>> Community Widgets: >>> http://forums.livecode.com/viewtopic.php?f=93&t=28020 >>> >>> If the zip is less than 256 KByte you can also upload it to >>> the forum. >>> In "Sample Stacks"/livecodeshare there is currently one single >>> _LCB widget_ (there are more LCS groups, also called 'widgets'). >>> >>> This is my proposal: >>> No matter where you upload it if not the forum: Please number the >>> widget/snippet in a forum post in Community Widgets/Snippets and >>> link there to the download location. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>>subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> > > >_______________________________________________ >use-livecode mailing list >use-livecode at 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 Nov 22 15:02:58 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 22 Nov 2016 13:02:58 -0700 Subject: OT non LC: cross tab/window browser communication Message-ID: I have a problem I need to solve with a web page i've set up.. On my page (my domain) I have forms that submit to an external domain (paypal) and open a new named tab on submission. I need to be able to block further actions until the paypal page load is complete. Currently, I have simply set up a timer with an overlay and visual feedback letting the user know that "stuff is being done," but since the response time from paypal can vary greatly, I'm hoping there is a way to know when the tab has completed loading, with a backup "max time" so that if the paypal load barfs, page functionality is still returned. Is this sort of thing possible? I've researched, but if it can be done apparently my search terms aren't the correct ones. Thanks in advance for any help. I'm afraid javascript (other than very basic stuff) is not one of my strengths. From m.schonewille at economy-x-talk.com Tue Nov 22 15:42:09 2016 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 22 Nov 2016 21:42:09 +0100 Subject: OT non LC: cross tab/window browser communication In-Reply-To: References: Message-ID: This is strange and very insecure. You should let the tab load and redirect to the PayPal page after the tab has finished doing everything it should do. I had a similar problem though. I needed a page to give PayPal time to process a transaction. I did this with a fake progress bar, which waited 1 minute and then reloaded the page. If the transaction has been completed, I sent the license, but if the transaction hadn't been completed, I showed a message saying that the license would be delivered manually at a later time after additional checks had been performed. 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 Op 22-Nov-16 om 21:02 schreef Mike Bonner: > I have a problem I need to solve with a web page i've set up.. On my page > (my domain) I have forms that submit to an external domain (paypal) and > open a new named tab on submission. I need to be able to block further > actions until the paypal page load is complete. Currently, I have simply > set up a timer with an overlay and visual feedback letting the user know > that "stuff is being done," but since the response time from paypal can > vary greatly, I'm hoping there is a way to know when the tab has completed > loading, with a backup "max time" so that if the paypal load barfs, page > functionality is still returned. > > Is this sort of thing possible? I've researched, but if it can be done > apparently my search terms aren't the correct ones. > > Thanks in advance for any help. I'm afraid javascript (other than very > basic stuff) is not one of my strengths. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ray at linkit.com Tue Nov 22 15:57:14 2016 From: ray at linkit.com (Ray) Date: Tue, 22 Nov 2016 15:57:14 -0500 Subject: Cloning a Pixel C In-Reply-To: <573E070A.9020903@researchware.com> References: <2101aed6-08c7-4967-9470-526099320381@LinkIt.Com> <573E070A.9020903@researchware.com> Message-ID: <7a0e050e-37bd-5cfb-1c8b-8eb5556dba66@LinkIt.Com> This is a little off list but would anybody be able and willing to help me create four image files I can use to clone a Google Pixel C tablet? Specifically, the files I need are system.img, userdata.img, recovery.img, and boot.img. The Pixel C is running Android 7.0. From rdimola at evergreeninfo.net Tue Nov 22 16:11:05 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 22 Nov 2016 16:11:05 -0500 Subject: Socket communication In-Reply-To: References: Message-ID: <005901d24504$f0163a60$d042af20$@net> When one enables socket communication on the server side using the form "accept [datagram] connections on port portNumber with message callbackMessage", how do you stop accepting new connections? The LC lesson show closing all open sockets but not how to prevent new connections. Thanks! Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From brahma at hindu.org Tue Nov 22 16:15:29 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 22 Nov 2016 21:15:29 +0000 Subject: using "preOpenStack" in card script Message-ID: <25C2CDAD-1C2C-4EF2-BF44-AB0C4BE5BC3E@hindu.org> if we put on preopenStack answer "hello" with "OK" # do stuff here end preopenstack into the script of card 1 of a stack As a way to encapsulate the preopenstack from the message path and you put a button "Run" on the card: on mouseUp preopenStack end mouseup click the button and you get the dialog, but it is immediately followed by a script error with the script editor breaking on the "preopenstack" line of the button button "Run": execution error at line 2 (Handler: can't find handler) near "preopenstack", char 1 What's happening? BR From revdev at pdslabs.net Tue Nov 22 16:31:11 2016 From: revdev at pdslabs.net (Phil Davis) Date: Tue, 22 Nov 2016 13:31:11 -0800 Subject: Socket communication In-Reply-To: <005901d24504$f0163a60$d042af20$@net> References: <005901d24504$f0163a60$d042af20$@net> Message-ID: That's a really good question Ralph! Maybe you could put the 'accept' and 'callbackMessage' code in a script that can be put into use / taken out of use and that would do it, but I haven't tried it. Phil Davis On 11/22/16 1:11 PM, Ralph DiMola wrote: > When one enables socket communication on the server side using the form > "accept [datagram] connections on port portNumber with message > callbackMessage", how do you stop accepting new connections? The LC lesson > show closing all open sockets but not how to prevent new connections. > > Thanks! > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Phil Davis From revdev at pdslabs.net Tue Nov 22 16:33:35 2016 From: revdev at pdslabs.net (Phil Davis) Date: Tue, 22 Nov 2016 13:33:35 -0800 Subject: Socket communication In-Reply-To: References: <005901d24504$f0163a60$d042af20$@net> Message-ID: <064e0f10-eb2e-d9e5-ae4e-36b84171495a@pdslabs.net> For clarity, it would be nice to have a "stop accepting connections on port x" command. Phil On 11/22/16 1:31 PM, Phil Davis wrote: > That's a really good question Ralph! > > Maybe you could put the 'accept' and 'callbackMessage' code in a > script that can be put into use / taken out of use and that would do > it, but I haven't tried it. > > Phil Davis > > > > On 11/22/16 1:11 PM, Ralph DiMola wrote: >> When one enables socket communication on the server side using the form >> "accept [datagram] connections on port portNumber with message >> callbackMessage", how do you stop accepting new connections? The LC >> lesson >> show closing all open sockets but not how to prevent new connections. >> >> Thanks! >> >> Ralph DiMola >> IT Director >> Evergreen Information Services >> rdimola at evergreeninfo.net >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > -- Phil Davis From bobsneidar at iotecdigital.com Tue Nov 22 16:37:36 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 22 Nov 2016 21:37:36 +0000 Subject: using "preOpenStack" in card script In-Reply-To: <25C2CDAD-1C2C-4EF2-BF44-AB0C4BE5BC3E@hindu.org> References: <25C2CDAD-1C2C-4EF2-BF44-AB0C4BE5BC3E@hindu.org> Message-ID: <1E863C1F-BB18-4EC8-9131-49E1424F7A74@iotecdigital.com> put the stuff you would perform in a handler and call that from preopenstack and from your button mouseUp handler. Bob S > On Nov 22, 2016, at 13:15 , Sannyasin Brahmanathaswami wrote: > > if we put > > on preopenStack > answer "hello" with "OK" > # do stuff here > end preopenstack > > > into the script of card 1 of a stack > > As a way to encapsulate the preopenstack from the message path > > and you put a button "Run" on the card: > > on mouseUp > preopenStack > end mouseup > > click the button and you get the dialog, but it is immediately followed by a script error with the script editor breaking on the "preopenstack" line of the button > > button "Run": execution error at line 2 (Handler: can't find handler) near "preopenstack", char 1 > > What's happening? > > 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 paul at researchware.com Tue Nov 22 16:40:41 2016 From: paul at researchware.com (Paul Dupuis) Date: Tue, 22 Nov 2016 16:40:41 -0500 Subject: using "preOpenStack" in card script In-Reply-To: <25C2CDAD-1C2C-4EF2-BF44-AB0C4BE5BC3E@hindu.org> References: <25C2CDAD-1C2C-4EF2-BF44-AB0C4BE5BC3E@hindu.org> Message-ID: <5834BB59.5010407@researchware.com> On 11/22/2016 4:15 PM, Sannyasin Brahmanathaswami wrote: > on mouseUp > preopenStack > end mouseup You have to send the message using send or dispatch (or call - see teh dictionary for differences between these three methods). So: on mouseUp send "preOpenStack" to this card end mouseUp From ambassador at fourthworld.com Tue Nov 22 16:52:17 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 22 Nov 2016 13:52:17 -0800 Subject: Socket communication In-Reply-To: <005901d24504$f0163a60$d042af20$@net> References: <005901d24504$f0163a60$d042af20$@net> Message-ID: Ralph DiMola wrote: > When one enables socket communication on the server side using > the form "accept [datagram] connections on port portNumber with > message callbackMessage", how do you stop accepting new connections? > The LC lesson show closing all open sockets but not how to prevent > new connections. After running "accept", check the openSockets. You should see one which has no IP address, and is just the port number you're listening on, e.g.: accept connections on port 4444 with message "foo" put the openSockets ..should yield: 4444 If you then close that you should be unable to receive further connections: close socket 4444 -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From alex at tweedly.org Tue Nov 22 17:04:02 2016 From: alex at tweedly.org (Alex Tweedly) Date: Tue, 22 Nov 2016 22:04:02 +0000 Subject: Socket communication In-Reply-To: References: <005901d24504$f0163a60$d042af20$@net> Message-ID: Yes, what Richard said :-) Don't be misled by the dictionary - the socketID *may* start with an IP address, but it doesn't need to - therefore you can simply close 8765 without an IP address, to close sockets you have 'accepted' on. -- Alex. On 22/11/2016 21:52, Richard Gaskin wrote: > Ralph DiMola wrote: > > > When one enables socket communication on the server side using > > the form "accept [datagram] connections on port portNumber with > > message callbackMessage", how do you stop accepting new connections? > > The LC lesson show closing all open sockets but not how to prevent > > new connections. > > After running "accept", check the openSockets. You should see one > which has no IP address, and is just the port number you're listening > on, e.g.: > > accept connections on port 4444 with message "foo" > put the openSockets > > ..should yield: > > 4444 > > If you then close that you should be unable to receive further > connections: > > close socket 4444 > From ambassador at fourthworld.com Tue Nov 22 16:57:09 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 22 Nov 2016 13:57:09 -0800 Subject: using "preOpenStack" in card script In-Reply-To: <25C2CDAD-1C2C-4EF2-BF44-AB0C4BE5BC3E@hindu.org> References: <25C2CDAD-1C2C-4EF2-BF44-AB0C4BE5BC3E@hindu.org> Message-ID: Sannyasin Brahmanathaswami wrote: > if we put > > on preopenStack > answer "hello" with "OK" > # do stuff here > end preopenstack > > into the script of card 1 of a stack > > As a way to encapsulate the preopenstack from the message path > > and you put a button "Run" on the card: > > on mouseUp > preopenStack > end mouseup > > click the button and you get the dialog, but it is immediately > followed by a script error with the script editor breaking on the > "preopenstack" line of the button > > button "Run": execution error at line 2 (Handler: can't find handler) > near "preopenstack", char 1 > > What's happening? I dunno. I usually use "dispatch" for sending system messages, but I just tried your recipe in v9.0dp2 and it works as expected. Maybe a frontScript of behavior in play somewhere? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dochawk at gmail.com Tue Nov 22 17:06:35 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 22 Nov 2016 14:06:35 -0800 Subject: menu entries are not getting enabled Message-ID: openStack and resumeStack both send a setMenus message Inside setmessage, I have *repeat* with i = 1 to 5 *enable* menuitem i of menu "Window" *end* *repeat* I step through, and it executes these. Nonetheless, all menu items of Window are greyed out. Is there something I'm missing? thanks -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From paul at researchware.com Tue Nov 22 17:10:24 2016 From: paul at researchware.com (Paul Dupuis) Date: Tue, 22 Nov 2016 17:10:24 -0500 Subject: Suffering from a Brain Fart... Message-ID: <5834C250.7080104@researchware.com> Help, I was to open a modal dialog from a single handler and continue the handler, updating certain information in a dialog, in a repeat loop. The 'modal ' command pauses the handler execution until the dialog is closed (presumably from a button in the dialog itself). Therefore I need to open the dialog with something other than the modal command? I have done this before, but for whatever reasons, I can not remember how to do it nor can I find any sample code in any of my stacks where I have done this. From revdev at pdslabs.net Tue Nov 22 17:11:12 2016 From: revdev at pdslabs.net (Phil Davis) Date: Tue, 22 Nov 2016 14:11:12 -0800 Subject: Socket communication In-Reply-To: References: <005901d24504$f0163a60$d042af20$@net> Message-ID: <9ac653aa-57b6-b8de-e824-f4abb534616a@pdslabs.net> Live and learn! Phil On 11/22/16 2:04 PM, Alex Tweedly wrote: > Yes, what Richard said :-) > > Don't be misled by the dictionary - the socketID *may* start with an > IP address, but it doesn't need to - therefore you can simply > close 8765 > > without an IP address, to close sockets you have 'accepted' on. > > -- Alex. > > On 22/11/2016 21:52, Richard Gaskin wrote: >> Ralph DiMola wrote: >> >> > When one enables socket communication on the server side using >> > the form "accept [datagram] connections on port portNumber with >> > message callbackMessage", how do you stop accepting new connections? >> > The LC lesson show closing all open sockets but not how to prevent >> > new connections. >> >> After running "accept", check the openSockets. You should see one >> which has no IP address, and is just the port number you're listening >> on, e.g.: >> >> accept connections on port 4444 with message "foo" >> put the openSockets >> >> ..should yield: >> >> 4444 >> >> If you then close that you should be unable to receive further >> connections: >> >> close socket 4444 >> > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 roger.e.eller at sealedair.com Tue Nov 22 17:14:28 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 22 Nov 2016 17:14:28 -0500 Subject: Suffering from a Brain Fart... In-Reply-To: <5834C250.7080104@researchware.com> References: <5834C250.7080104@researchware.com> Message-ID: Try toplevel stack "myStack" ~Roger On Tue, Nov 22, 2016 at 5:10 PM, Paul Dupuis wrote: > Help, > > I was to open a modal dialog from a single handler and continue the > handler, updating certain information in a dialog, in a repeat loop. > > The 'modal ' command pauses the handler execution until the > dialog is closed (presumably from a button in the dialog itself). > Therefore I need to open the dialog with something other than the modal > command? > > I have done this before, but for whatever reasons, I can not remember > how to do it nor can I find any sample code in any of my stacks where I > have done this. > > > From ray at linkit.com Tue Nov 22 17:14:59 2016 From: ray at linkit.com (Ray) Date: Tue, 22 Nov 2016 17:14:59 -0500 Subject: Suffering from a Brain Fart... In-Reply-To: <5834C250.7080104@researchware.com> References: <5834C250.7080104@researchware.com> Message-ID: <6f88f06a-e130-7a8b-d3d4-779e7fc2d015@LinkIt.Com> Would it work for you to hide the visible stack(s) and open the stack being used as a dialog window as a palette? Then re-show the visible stack(s) when the palette is closed. On 11/22/2016 5:10 PM, Paul Dupuis wrote: > Help, > > I was to open a modal dialog from a single handler and continue the > handler, updating certain information in a dialog, in a repeat loop. > > The 'modal ' command pauses the handler execution until the > dialog is closed (presumably from a button in the dialog itself). > Therefore I need to open the dialog with something other than the modal > command? > > I have done this before, but for whatever reasons, I can not remember > how to do it nor can I find any sample code in any of my stacks where I > have done this. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Tue Nov 22 17:16:37 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 22 Nov 2016 14:16:37 -0800 Subject: Suffering from a Brain Fart... In-Reply-To: <5834C250.7080104@researchware.com> References: <5834C250.7080104@researchware.com> Message-ID: <4a93e3ce-18cf-f8c9-9604-53f1f524f2cd@fourthworld.com> Paul Dupuis wrote: > I was to open a modal dialog from a single handler and continue the > handler, updating certain information in a dialog, in a repeat loop. > > The 'modal ' command pauses the handler execution until the > dialog is closed (presumably from a button in the dialog itself). > Therefore I need to open the dialog with something other than the > modal command? > > I have done this before, but for whatever reasons, I can not remember > how to do it nor can I find any sample code in any of my stacks where > I have done this. I usually prefer to break up the handler for code flow simplicity, but IIRC you should be able to open the dialog invisibly, then show it and go to it "as modal" and it'll retain the modal layering while allowing the current handler to keep running. It's been a long time since I've tried that, though, and with all the event changes for Cocoa I wouldn't be surprised if the event management was tightened up a bit since then. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dochawk at gmail.com Tue Nov 22 17:21:32 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 22 Nov 2016 14:21:32 -0800 Subject: menu entries are not getting enabled In-Reply-To: References: Message-ID: Hmm. It appears that it isn't even setting the menubar to active *switch* the platform *case* "MacOS" *set* the defaultMenubar to stMen *break* as I step through in the IDE, though, the menu doesn't change to stMen (which holds the name of my master menu). So I assume the IDE entries get changed. (note: when setMenus is called, it checks a custom property, so that it can tell where or not to run. It simply exits if the property is set, so that it doesn't run and hit breakpoints recursively). -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From brahma at hindu.org Tue Nov 22 17:25:03 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 22 Nov 2016 22:25:03 +0000 Subject: Script Editor Bug Message-ID: I keep hitting this bug where editing a handler somehow corrupts the end of the previous handler # PREVIOUS HANDLER CLOSES LIKE THIS: end switch nd updateCache # the leading "e" here is deleted, even though I have not touched this line # THE ABOVE HAPPENS WHEN EDITING THE HANDLER BELOW: function quoteValuesforSQLparam pValueList # pass a list of items comma separated and return with quotes put empty into tQuotedList # just in case repeat for each item x in pValueList put quote & x & quote & comma after tQuotedList end repeat delete char -1 of tQuotedList return tQuotedList end quoteValuesforSQLparam Anyone else see this? BR From gregory.lypny at videotron.ca Tue Nov 22 17:29:09 2016 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Tue, 22 Nov 2016 17:29:09 -0500 Subject: Shell Command and cURL In-Reply-To: <9J7LcsUY5kBnL9J7Mc9pXe@videotron.ca> References: <9J7LcsUY5kBnL9J7Mc9pXe@videotron.ca> Message-ID: <8F989815-3697-422D-A391-2B7EB1D33808@videotron.ca> Hello everyone, I have never used LiveCode?s Shell command, and I was hoping that someone on the forum might be able to give me an example of how to use it with cURL to download a list of files from an FTP site. I have been using cURL to download many files at a time from a given directory by pasting the code into Terminal in OS X. The problem is that Terminal cannot handle a command that is too long. This limits me to pasting no more than about 500 file paths at a time, but I need to download about 145,000 files. That?s a fair bit of manual pasting. So if someone could give me an example of using the Shell command with cURL, I?d be much obliged. Regards, Gregory From ambassador at fourthworld.com Tue Nov 22 17:38:07 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 22 Nov 2016 14:38:07 -0800 Subject: Shell Command and cURL In-Reply-To: <8F989815-3697-422D-A391-2B7EB1D33808@videotron.ca> References: <8F989815-3697-422D-A391-2B7EB1D33808@videotron.ca> Message-ID: <89ccff10-22f0-9e85-689e-4efd7265bd1f@fourthworld.com> Gregory Lypny wrote: > I have never used LiveCode?s Shell command, and I was hoping that > someone on the forum might be able to give me an example of how to > use it with cURL to download a list of files from an FTP site. I have > been using cURL to download many files at a time from a given > directory by pasting the code into Terminal in OS X. The problem is > that Terminal cannot handle a command that is too long. This limits > me to pasting no more than about 500 file paths at a time, but I need > to download about 145,000 files. That?s a fair bit of manual pasting. > So if someone could give me an example of using the Shell command > with cURL, I?d be much obliged. Why not use libURL? If you pass it a valid folder path ending in "/" it'll return the list of files there. rsync may be faster for that; see the "--list-only" flag, e.g.: rsync --list-only username at servername:/directoryname/ And if you need to download those files rsync will definitely be much faster. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From rdimola at evergreeninfo.net Tue Nov 22 17:55:50 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 22 Nov 2016 17:55:50 -0500 Subject: Socket communication In-Reply-To: References: <005901d24504$f0163a60$d042af20$@net> Message-ID: <006801d24513$9297c200$b7c74600$@net> Richard/Alex, Thanks!!! As Phil said "Live and learn". The LC example did work because it closes all open sockets, I just did not know why it worked. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Alex Tweedly Sent: Tuesday, November 22, 2016 5:04 PM To: use-livecode at lists.runrev.com Subject: Re: Socket communication Yes, what Richard said :-) Don't be misled by the dictionary - the socketID *may* start with an IP address, but it doesn't need to - therefore you can simply close 8765 without an IP address, to close sockets you have 'accepted' on. -- Alex. On 22/11/2016 21:52, Richard Gaskin wrote: > Ralph DiMola wrote: > > > When one enables socket communication on the server side using the > > form "accept [datagram] connections on port portNumber with message > > callbackMessage", how do you stop accepting new connections? > > The LC lesson show closing all open sockets but not how to prevent > > new connections. > > After running "accept", check the openSockets. You should see one > which has no IP address, and is just the port number you're listening > on, e.g.: > > accept connections on port 4444 with message "foo" > put the openSockets > > ..should yield: > > 4444 > > If you then close that you should be unable to receive further > connections: > > close socket 4444 > _______________________________________________ use-livecode mailing list use-livecode at 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 Nov 22 18:36:09 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 22 Nov 2016 16:36:09 -0700 Subject: OT non LC: cross tab/window browser communication In-Reply-To: References: Message-ID: My problem is the same. *kinda* Basically i'm "adding to cart" and not too long ago.. something changed and it can take 7 or 8 seconds to decrypt the button code. Not that big a deal, but people like me, click once, leave the cart tab open, and then go back to the main shopping tab and click more stuff to add. At this point the background tab doesn't become active, and if they click several items in quick succession, any items that don't complete don't appear in the cart. There are a few ways I can work around this. The first effort is similar to what you're talking about and is what I have done so far. Click an add to cart button, and an overlay and progress indicator blocks further actions for a set amount of time. This works pretty well, but as mentioned.. if paypal decides to be even slower, its still slightly possible for the user to add more items before the process completes. Another option, I could force the user to go to each individual items page, click to add, then make them go back to the first page to then chose another item, load a page, and click again. I really don't want to do this, I don't like the way things flow. Yet another option would be to maintain my own cart, and then do an upload to paypal of all items at once. I think it is possible to make this work with self hosted encrypted buttons, but would require a heavy recode, and which I hope to avoid because it might put it beyond the current ability of the people who may have to maintain it. I'm working with them, but the current setup for adding and managing items works REALLY well for them. I didn't think it was possible to do what I wanted, but was hoping maybe there was some "document complete" message handed back to the original calling page. Thanks for the input, I'll keep pondering. The strange thing is that a month ago, everything was fine, but paypal has rolled out a new cart page that is MUCH less responsive than the old one. Yet a simple "view cart" button still goes to the old style page. Apparently the new page has been rolled out in waves and it finally caught up to us. On Tue, Nov 22, 2016 at 1:42 PM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > This is strange and very insecure. You should let the tab load and > redirect to the PayPal page after the tab has finished doing everything it > should do. > > I had a similar problem though. I needed a page to give PayPal time to > process a transaction. I did this with a fake progress bar, which waited 1 > minute and then reloaded the page. If the transaction has been completed, I > sent the license, but if the transaction hadn't been completed, I showed a > message saying that the license would be delivered manually at a later time > after additional checks had been performed. > > 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 > > Op 22-Nov-16 om 21:02 schreef Mike Bonner: > >> I have a problem I need to solve with a web page i've set up.. On my page >> (my domain) I have forms that submit to an external domain (paypal) and >> open a new named tab on submission. I need to be able to block further >> actions until the paypal page load is complete. Currently, I have simply >> set up a timer with an overlay and visual feedback letting the user know >> that "stuff is being done," but since the response time from paypal can >> vary greatly, I'm hoping there is a way to know when the tab has completed >> loading, with a backup "max time" so that if the paypal load barfs, page >> functionality is still returned. >> >> Is this sort of thing possible? I've researched, but if it can be done >> apparently my search terms aren't the correct ones. >> >> Thanks in advance for any help. I'm afraid javascript (other than very >> basic stuff) is not one of my strengths. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 22 18:52:32 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 22 Nov 2016 23:52:32 +0000 Subject: Save As Standalone Issues Message-ID: http://quality.livecode.com/show_bug.cgi?id=18896 Hi all. Anyone having Save As Standalone isues in 8.1.1 and up should look at this bug report. Essentially, if I have a splash stack that references a Main Stack, which itself has library stacks in it's Stack Files settings, and I Save As Standalone for OS X and Windows, and I autodetect libraries, the "compiler" ADDS the libraries to the Splash Stack Stack Files list, but adds the WRONG COPIES. It adds the copy meant to go with the Windows standalone, so that when the app for OS X is run, it cannot find the libraries. Please take the time to one up this bug. As is I cannot test standalones beyond 8.0.1 as is. Bob S From bobsneidar at iotecdigital.com Tue Nov 22 19:04:03 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 23 Nov 2016 00:04:03 +0000 Subject: Suffering from a Brain Fart... In-Reply-To: <4a93e3ce-18cf-f8c9-9604-53f1f524f2cd@fourthworld.com> References: <5834C250.7080104@researchware.com> <4a93e3ce-18cf-f8c9-9604-53f1f524f2cd@fourthworld.com> Message-ID: <892DE5A9-FCD6-4028-8397-9FC2771CC48F@iotecdigital.com> THAT is interesting! Out of curiosity, I wonder if a stack can then go to itself non-modally! I've often wanted to have a menu item that can de-modalize an open stack so I can step through the code when troubleshooting. Bob S On Nov 22, 2016, at 14:16 , Richard Gaskin > wrote: I usually prefer to break up the handler for code flow simplicity, but IIRC you should be able to open the dialog invisibly, then show it and go to it "as modal" and it'll retain the modal layering while allowing the current handler to keep running. It's been a long time since I've tried that, though, and with all the event changes for Cocoa I wouldn't be surprised if the event management was tightened up a bit since then. -- Richard Gaskin From irog at mac.com Tue Nov 22 19:35:14 2016 From: irog at mac.com (Roger Guay) Date: Tue, 22 Nov 2016 16:35:14 -0800 Subject: Suffering from a Brain Fart... In-Reply-To: <892DE5A9-FCD6-4028-8397-9FC2771CC48F@iotecdigital.com> References: <5834C250.7080104@researchware.com> <4a93e3ce-18cf-f8c9-9604-53f1f524f2cd@fourthworld.com> <892DE5A9-FCD6-4028-8397-9FC2771CC48F@iotecdigital.com> Message-ID: <461819D9-8FA0-45A1-A95F-88B7EE73048B@mac.com> I often use a script like this at the stack level, but I?m sure I?m missing your point. on controlKeyDown pKey if pKey = "e" then set the style of stack "TextOmatic" to topLevel if pKey = "p" then set the style of stack "TextOmatic" to palette end controlKeyDown Roger > On Nov 22, 2016, at 4:04 PM, Bob Sneidar wrote: > > THAT is interesting! Out of curiosity, I wonder if a stack can then go to itself non-modally! I've often wanted to have a menu item that can de-modalize an open stack so I can step through the code when troubleshooting. > > Bob S > > > On Nov 22, 2016, at 14:16 , Richard Gaskin > wrote: > > I usually prefer to break up the handler for code flow simplicity, but IIRC you should be able to open the dialog invisibly, then show it and go to it "as modal" and it'll retain the modal layering while allowing the current handler to keep running. > > It's been a long time since I've tried that, though, and with all the event changes for Cocoa I wouldn't be surprised if the event management was tightened up a bit since then. > > -- > Richard Gaskin > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From m.schonewille at economy-x-talk.com Tue Nov 22 21:51:05 2016 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 23 Nov 2016 03:51:05 +0100 Subject: Shell Command and cURL In-Reply-To: <8F989815-3697-422D-A391-2B7EB1D33808@videotron.ca> References: <9J7LcsUY5kBnL9J7Mc9pXe@videotron.ca> <8F989815-3697-422D-A391-2B7EB1D33808@videotron.ca> Message-ID: It doesn't make sense to create a list of 140000-something files and try to paste it somewhere. Instead, write a shell script that gets the file list and download all files in the list. Your script might look like this: #!/bin/bash $ curl -s ftp://user:pass at IP/path/to/folder/ | \ grep -e '^-' | awk '{ print $9 }' | \ while read f; do \ curl -O ftp://user:pass at IP/path/to/folder/$f; \ done Save the script in a text file and do a chmod 755 on it to make an executable file. Now let LiveCode launch the executable file. I think the files will be downloaded to the defaultFolder or perhaps to the location of the executable file . If this is too much trouble, you might also save your current shell command to a file and have LiveCode launch it. 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 Op 22-Nov-16 om 23:29 schreef Gregory Lypny: > Hello everyone, > > I have never used LiveCode?s Shell command, and I was hoping that someone on the forum might be able to give me an example of how to use it with cURL to download a list of files from an FTP site. I have been using cURL to download many files at a time from a given directory by pasting the code into Terminal in OS X. The problem is that Terminal cannot handle a command that is too long. This limits me to pasting no more than about 500 file paths at a time, but I need to download about 145,000 files. That?s a fair bit of manual pasting. So if someone could give me an example of using the Shell command with cURL, I?d be much obliged. > > Regards, > > Gregory > _______________________________________________ > use-livecode mailing list > use-livecode at 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 livecode.org Tue Nov 22 22:34:18 2016 From: paul at livecode.org (Paul Hibbert) Date: Tue, 22 Nov 2016 19:34:18 -0800 Subject: [ANN] New Menu Shortcut Plugin available [Was - GUI Design Tasks Send Back - Bring Forward] In-Reply-To: References: <110E0503-1282-441B-B470-C76840F4475B@hindu.org> <9AB0ACF3-D1E7-4E6C-84E9-9770F6B7DE9E@hindu.org> Message-ID: <3AD307AD-B858-4441-A352-142681563C18@livecode.org> This is something I have been tinkering with for a while, so I spent most of today testing and polishing the stack to the point where it?s now useable as a plugin, so I?ve uploaded it to the LiveCode Share portal. From within Livecode 8 or 9 go to the Sample Stacks menu and search for, Shortcuts The title of the stack is, LC Menu Shortcuts The web link is: http://livecodeshare.runrev.com/stack/813/LC-Menu-Shortcuts My implementation doesn?t use the method that Ali suggests below, but it?s close. I?ve been testing it for a while now and so far it?s been pretty robust. The stack is best used as a plugin loaded at startup, it adds 17 possible new shortcuts to the LC menus, plus 2 more that already work but don?t show in the menus, so they can be made to show their shortcuts. The stack is currently only tested on Mac and is only compatible with LC 8 and 9. I would be interested to hear from any Windows and Linux users, I doubt that it?s anywhere near perfect, so I am happy to modify and update as necessary. The stack is not locked, so feel free to edit/alter/modify/tinker as you please. One of my main goals for creating this stack was to be able to refresh the Project Browser, so many times I run into situations where the PB doesn?t keep up with what I?m doing, but now I can just use a shortcut (Shift Cmd B), twice to close and re-open the PB and all is well, I can carry on working without interruptions. Paul > On Nov 21, 2016, at 9:07 AM, Ali Lloyd wrote: > > If anyone particularly wants this feature, it would make a nice and fairly > easy community contribution as it only requires changes in the 'revMenuBar' > script only stack. > > You would just have to add the appropriate menu items in > revMenuBarObjectContextMenu (probably using the pSelectable parameter to > control the enabled of the menu item) and then add to the switch in > revMenubarContextMenuPickTarget > case "Send to Back" > revIDESendToBack pTarget > > etc > > On Sun, Nov 20, 2016 at 11:08 PM Sannyasin Brahmanathaswami < > brahma at hindu.org> wrote: > >> roger.e.eller at sealedair.com> wrote: >> >> pressing Control-[ or Control-]. >> >> OH ..duh! yes completely forgot about those key board shortcuts! From jacque at hyperactivesw.com Tue Nov 22 22:44:54 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 22 Nov 2016 21:44:54 -0600 Subject: Suffering from a Brain Fart... In-Reply-To: <892DE5A9-FCD6-4028-8397-9FC2771CC48F@iotecdigital.com> References: <5834C250.7080104@researchware.com> <4a93e3ce-18cf-f8c9-9604-53f1f524f2cd@fourthworld.com> <892DE5A9-FCD6-4028-8397-9FC2771CC48F@iotecdigital.com> Message-ID: <6efb09bb-a34f-6a58-c250-fbf8a4736736@hyperactivesw.com> On 11/22/16 6:04 PM, Bob Sneidar wrote: > I've often wanted to have a menu item that can de-modalize an open > stack so I can step through the code when troubleshooting. On Mac, Cmd-Ctrl-Shift-rightclick to get the contextual menu. Choose Stack -> Stack Mode -> toplevel. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From capellan2000 at gmail.com Tue Nov 22 22:58:17 2016 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 22 Nov 2016 22:58:17 -0500 Subject: Max number of colors on a gradient Message-ID: Hi Colin, Finally I was able to import a svg with 1022 color in a single gradient. Download a stack and svg from this forum thread: http://forums.livecode.com/viewtopic.php?f=10&t=28357 But my questions still remains unanswered: How many colors could we add safely to a LiveCode gradient? What are the practical limits of this feature? Al From t.heaford at icloud.com Wed Nov 23 02:43:50 2016 From: t.heaford at icloud.com (Terence Heaford) Date: Wed, 23 Nov 2016 07:43:50 +0000 Subject: Box2D Physics Engine In-Reply-To: References: Message-ID: <959382A2-DAAC-46C3-A9C3-30FDF316469F@icloud.com> https://www.kickstarter.com/projects/1755283828/open-source-edition-of-livecode/posts/415346 All the best Terry > On 22 Nov 2016, at 00:17, Alejandro Tejada wrote: > > Hi All, > > On the forum, ClipArtGuy wrote: >> FWIW, the Box2D Physics Engine goal >> was also met and has also been dropped >> from the roadmap. > > http://forums.livecode.com/viewtopic.php?f=10&t=28290&p=148671#p148314 > > Which LiveCode version includes Box2D? > > 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 heather at livecode.com Wed Nov 23 12:07:30 2016 From: heather at livecode.com (Heather Laine) Date: Wed, 23 Nov 2016 17:07:30 +0000 Subject: [Blog] Do as Javascript Comes to HTML5 Message-ID: Dear List Folks, Check out this exciting blog post showing you a major advance in LiveCode for HTML5: https://livecode.com/control-your-webpage-with-livecode-html5/ Looking forward to some rainbow web pages :) Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From bobsneidar at iotecdigital.com Wed Nov 23 14:08:09 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 23 Nov 2016 19:08:09 +0000 Subject: [Blog] Do as Javascript Comes to HTML5 In-Reply-To: References: Message-ID: <487B6D5A-D805-4FCE-9885-7EF039CC162C@iotecdigital.com> This is awesome. Right now I fill my fillable PDF's using Applescript to tell Javascript to tell Acrobat what to do. What a kludge. I should be able to work out a better form fill algorithm for the future using this. Bob S On Nov 23, 2016, at 09:07 , Heather Laine > wrote: Dear List Folks, Check out this exciting blog post showing you a major advance in LiveCode for HTML5: https://livecode.com/control-your-webpage-with-livecode-html5/ Looking forward to some rainbow web pages :) Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From peter.brett at livecode.com Wed Nov 23 17:13:17 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Wed, 23 Nov 2016 22:13:17 +0000 Subject: [Blog] Do as Javascript Comes to HTML5 In-Reply-To: References: Message-ID: <5ddea3d7-9d9e-68e8-7d5c-b55442e95f29@livecode.com> On 23/11/2016 17:07, Heather Laine wrote: > Dear List Folks, > > Check out this exciting blog post showing you a major advance in > LiveCode for HTML5: > > https://livecode.com/control-your-webpage-with-livecode-html5/ > > > Looking forward to some rainbow web pages :) There appears to be a problem in DP 2 whereby the new feature only works in Community edition standalones [1]. See, more evidence that LiveCode puts open source first! Peter [1] http://quality.livecode.com/show_bug.cgi?id=18903 -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From m.schonewille at economy-x-talk.com Wed Nov 23 17:27:53 2016 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 23 Nov 2016 23:27:53 +0100 Subject: [ANN] Order Programming LiveCode for the Real Beginner now! Message-ID: Hi coders, In one month, it will be Christmas again. During this time, we are often told that shipments are urgent. If you want to have your copy of the book before the holidays, don't wait but order it now. Any orders placed until Monday 28th November will be sent on Wednesday 30st November. This should give the shipping companies sufficient time to deliver the book to your door. We're currently at the fourth print run of my book Programming LiveCode for the Real Beginner. When the third print run was sold out, we decided to print a large stock of books, so we have plenty of copies available for immediate delivery. The fourth print of Programming LiveCode for the Real Beginner has been updated to include a number of new XML commands, which were introduced after the first release of the book. I have also added a few remarks about LiveCode 7 to the chapter on Unicode. Quite a few new features have been added to LiveCode 7 and 8, but it looks like the examples in the book are still fully compatible with LiveCode 8. Keep in mind, though, that the book is for beginners and focuses on the basics of the LiveCode language. You can order the book at http://tinyurl.com/livecodebook and more info is available at http://tinyurl.com/livecodeblog -- 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 brahma at hindu.org Wed Nov 23 17:31:52 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Wed, 23 Nov 2016 22:31:52 +0000 Subject: LibraryStack Message Message-ID: <553ABA27-FBC5-4E39-9021-D6C37C5520D0@hindu.org> if you have a stack in your repository e.g. lib_colorManipulation.livecode # script only that is in the stack files and your initialization script loops through the stack files and for every "lib_*" file it runs start using stack [lib_colorManipulation.livecode] # and any others? these are all effectively put into the message path. OK so far, no brainer BUT if your stack wants to also do some initialization itself? and you put this into one of those stacks: on libraryStack # do more initialization stuff here that you # may prefer to encapsulate inside this script end libraryStack is "libraryStack" fired every time a handler is used in that script/stack? or is "libraryStack" only issued with the very first "start using ?.." ? this issue is: we don't want the initialization scripts in the stack to fire everytime it is called, only on the very first "start using" Svasti Astu, Be Well Brahmanathaswami www.himalayanacademy.com From ambassador at fourthworld.com Wed Nov 23 17:50:49 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 23 Nov 2016 14:50:49 -0800 Subject: LibraryStack Message In-Reply-To: <553ABA27-FBC5-4E39-9021-D6C37C5520D0@hindu.org> References: <553ABA27-FBC5-4E39-9021-D6C37C5520D0@hindu.org> Message-ID: Sannyasin Brahmanathaswami wrote: ... > on libraryStack > # do more initialization stuff here that you > # may prefer to encapsulate inside this script > end libraryStack ... > ? this issue is: we don't want the initialization scripts in the > stack to fire everytime it is called, only on the very first "start > using" If you don't want your global library to handle all libraryStack messages you can add a condition like: on libraryStack if the short name of the target <> the short name of me then pass libraryStack end if # do more initialization stuff here that you # may prefer to encapsulate inside this script end libraryStack -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From brahma at hindu.org Wed Nov 23 20:09:21 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 24 Nov 2016 01:09:21 +0000 Subject: LibraryStack Message In-Reply-To: References: <553ABA27-FBC5-4E39-9021-D6C37C5520D0@hindu.org> Message-ID: <61196C89-388F-4941-9139-B7B55191B192@hindu.org> I guess I am not being clear (hmm I guess this would be easy enough to test, now that I break it down?.) helloWorld.livecodescript # stack # contains handler 1 on libraryStack answer "One World, One God" with "OK!" end libraryStack # contains handler 2 on wonderOfWonders Answer "The new president!" with "God Help Him/Us!" end wonderOfWonders ------------- initializeApp.livecodeScript # does a variety of job including: start using stack "HelloWorld.livecodescript # helloWord.livecodescript is now a "back" script. ---------- # some higher level button on a card script or wherever on mouseup wonderOfWonders # evokes dialog from helloWorld.livecodescript end mouseUp # but is the "libraryStack" also passed from hello world stackk when that button is pressed that calls a handler within it?? On 11/23/16, 12:50 PM, "use-livecode on behalf of Richard Gaskin" wrote: Sannyasin Brahmanathaswami wrote: ... > on libraryStack > # do more initialization stuff here that you > # may prefer to encapsulate inside this script > end libraryStack ... > ? this issue is: we don't want the initialization scripts in the > stack to fire everytime it is called, only on the very first "start > using" If you don't want your global library to handle all libraryStack messages you can add a condition like: on libraryStack if the short name of the target <> the short name of me then pass libraryStack end if # do more initialization stuff here that you # may prefer to encapsulate inside this script end libraryStack From ambassador at fourthworld.com Wed Nov 23 20:38:16 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 23 Nov 2016 17:38:16 -0800 Subject: LibraryStack Message In-Reply-To: <61196C89-388F-4941-9139-B7B55191B192@hindu.org> References: <61196C89-388F-4941-9139-B7B55191B192@hindu.org> Message-ID: Sannyasin Brahmanathaswami wrote: > (hmm I guess this would be easy enough to test, > now that I break it down?.) Nothing beats hands-on empirical evidence. And maybe needed here, because to be honest I don't understand your script. I see that you have a "start using" command, but I don't see it inside of any handler, so I can't imagine how it ever gets triggered. I also don't see anything in your mouseUp handler that includes "start using", so I can't imagine how the mouseUp handler could trigger a libraryStack message, or anything other than the wonderOfWonders command you included in it. From the number of questions about things like this it seems you may have an unusually complex initialization setup. I wonder if there's some way it may be simplified. I suppose it's possible to write complex code in any language, but loading some libraries needn't be difficult in an xTalk. > helloWorld.livecodescript # stack > > # contains handler 1 > > on libraryStack > answer "One World, One God" with "OK!" > end libraryStack > > # contains handler 2 > > on wonderOfWonders > Answer "The new president!" with "God Help Him/Us!" > end wonderOfWonders > > ------------- > initializeApp.livecodeScript > # does a variety of job including: > start using stack "HelloWorld.livecodescript # > helloWord.livecodescript is now a "back" script. > > ---------- > # some higher level button on a card script or wherever > > on mouseup > wonderOfWonders # evokes dialog from helloWorld.livecodescript > end mouseUp > > # but is the "libraryStack" also passed from hello > world stackk when that button is pressed that calls a handler within > 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 paul at researchware.com Wed Nov 23 21:34:58 2016 From: paul at researchware.com (Paul Dupuis) Date: Wed, 23 Nov 2016 21:34:58 -0500 Subject: AW: Suffering from a Brain Fart... In-Reply-To: <5834C250.7080104@researchware.com> References: <5834C250.7080104@researchware.com> Message-ID: <583651D2.9080407@researchware.com> Thank you all for the replies. ... open inv as modal show repeat wait 0 with messages -- to allow any controls in the dialog to function -- do repeat loop stuff, updating dialog items as needed end repeat close ... does get you a modal dialog while the script continues, where as ... modal ... put up the dialog and pauses the script until the dialog window is closed On 11/22/2016 5:10 PM, Paul Dupuis wrote: > Help, > > I was to open a modal dialog from a single handler and continue the > handler, updating certain information in a dialog, in a repeat loop. > > The 'modal ' command pauses the handler execution until the > dialog is closed (presumably from a button in the dialog itself). > Therefore I need to open the dialog with something other than the modal > command? > > I have done this before, but for whatever reasons, I can not remember > how to do it nor can I find any sample code in any of my stacks where I > have done this. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Wed Nov 23 21:51:50 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 23 Nov 2016 20:51:50 -0600 Subject: LibraryStack Message In-Reply-To: <553ABA27-FBC5-4E39-9021-D6C37C5520D0@hindu.org> References: <553ABA27-FBC5-4E39-9021-D6C37C5520D0@hindu.org> Message-ID: <158943f0d70.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> The libraryStack handler should only fire when the stack is first put in use. It's like an openstack handler for libraries. Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 23, 2016 4:33:42 PM Sannyasin Brahmanathaswami wrote: > if you have a stack in your repository e.g. > > lib_colorManipulation.livecode # script only > > that is in the stack files and your initialization script > loops through the stack files and for every "lib_*" file it runs > > start using stack [lib_colorManipulation.livecode] # and any others? > > these are all effectively put into the message path. > > OK so far, no brainer BUT > > if your stack wants to also do some initialization itself? and you put this > into one of those stacks: > > on libraryStack > # do more initialization stuff here that you > # may prefer to encapsulate inside this script > end libraryStack > > is "libraryStack" > > fired every time a handler is used in that script/stack? or is > "libraryStack" only issued with the very first > > "start using ?.." > > ? this issue is: we don't want the initialization scripts in the stack to > fire everytime it is called, only on the very first "start using" > > > > Svasti Astu, Be Well > Brahmanathaswami > www.himalayanacademy.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Wed Nov 23 23:44:12 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 24 Nov 2016 04:44:12 +0000 Subject: Draw an adjustable Trapezoid in Livecode - How to change x, y of the 4 corner points of a rect Message-ID: I want to be able to draw an adjustable trapezoid in Livecode. The regular polygon tool set to 4 sides doesn't allow you to grab any given Similarly, the polygon graphic also doesn't provide grab points for corners of a rect that you can drag and adjust Is this just impossible? or am I missing something? I could live with the option to set the four points of the graphic such that 4 straight lines are connected but the corners placed where I want them? a bit above my brain pay grade at the moment. of course you could set *all* of the points of the graphic but I'd like just to be able to set the points of the 4 corners of the rect/trapezoid is this even doable? BR From paul at livecode.org Thu Nov 24 00:01:23 2016 From: paul at livecode.org (Paul Hibbert) Date: Wed, 23 Nov 2016 21:01:23 -0800 Subject: Draw an adjustable Trapezoid in Livecode - How to change x, y of the 4 corner points of a rect In-Reply-To: References: Message-ID: <22C0EEC0-875F-47A4-848E-E29C3603196C@livecode.org> > On Nov 23, 2016, at 8:44 PM, Sannyasin Brahmanathaswami wrote: > > is this even doable? The good news: Right click on the Polygon then choose 'Reshape Polygon' and the points that you require should appear. :-) Now the bad news: Sadly this also revealed the ghost trails seen before when you start to drag the points around. :-( Paul Mac OS X 10.12.1 - LC8.1.2. (rc 2) From cubist at aol.com Thu Nov 24 04:31:22 2016 From: cubist at aol.com (Quentin Long) Date: Thu, 24 Nov 2016 04:31:22 -0500 Subject: roundUp function? In-Reply-To: References: Message-ID: <15895acd71d-15c3-38a7@webstg-m05.mail.aol.com> sez Roger Eller : > We have round, which will either round up or down depending on the decimal > value being > or < .5, but what if I want ANY decimal value, even .01 to > round UP to the next whole number? The best solution is the Ceiling function. Since that's not an option for the version of LiveCode you're working with, you gotta roll your own. The proposed "return int (DerNumber +.5)" solution won't do, because any number whose decimal part is *less than* .5 will round down to the integer part. Instead, what you want is something like this: if DerNumber = int (DerNumber) then -- DerNumber doesn't *have* a decimal part return DerNumber else -- DerNumber *does* have a decimal part, hence rounds up return int (DerNumber) + 1 end if That works fine for positive numbers and zero. Negative numbers, not so much. So, a tweak to handle negative numbers: if DerNumber = int (DerNumber) then -- DerNumber doesn't *have* a decimal part return DerNumber else -- DerNumber *does* have a decimal part, hence rounds up return int (DerNumber) + (DerNumber / abs (DerNumber)) end if The expression "DerNumber / abs (DerNumber)" yields a value of +1 when DerNumber is a positive number, and -1 when DerNumber is negative. Alas, it runs into problems when DerNumber is zero. So, tweaking again: function CeilingOf DerNumber if DerNumber = 0 then return 0 else if DerNumber = int (DerNumber) then -- DerNumber doesn't *have* a decimal part return DerNumber else -- DerNumber *does* have a decimal part, hence rounds up return 1 + int (DerNumber) end if end if end CeilingOf Please don't feed a non-number to this function. It won't like that. "Bewitched" + "Charlie's Angels" - Charlie = "At Arm's Length" Read the webcomic at [?http://www.atarmslength.net?]! If you like "At Arm's Length", support it at [?http://www.patreon.com/DarkwingDude?]. From toolbook at kestner.de Thu Nov 24 04:50:37 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 24 Nov 2016 10:50:37 +0100 Subject: LC 8: no keyUp at fast enter Message-ID: <004701d24638$366e0ae0$a34a20a0$@kestner.de> Hello, when entering chars in a fast sequence into a field I don't get a keyUp event in LC 8.1.1 on Windows. When entering single chars I get the keyUp, but when writing 10 finger system keyup stops working. On OS X 10.11 no problem and with LC 6.7 on windows also no problem, so it is not an issue of my keyboard. If I don't get the keyup working for me, I could use rawkeyup as a workaround. I would build manually an array to transform the rawkey code to the real character. Has anybody a better idea or a script snippet for this transformation? Can anybody confirm, before I file a bug? Thanks Tiemo From toolbook at kestner.de Thu Nov 24 06:05:51 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 24 Nov 2016 12:05:51 +0100 Subject: LC 8: slowdown of a repeat loop Message-ID: <006201d24642$b8d4b7e0$2a7e27a0$@kestner.de> Hello, I am converting a 384x288 color image into greyscale, looping thru each pixel of the image and doing some calculations. That works fine. The user can do some fine adjustments using a slider with a live visual control of the effect on the image. For each movement of the slider the looping thru all pixels starts again. Up to LC 6.7 this was pretty responsive but now with LC 8 moving the slider feels like tearing a rubber band. It still works, but is much slower and not so the slider isn't really responsive. Actually it is only a repeat loop with simple LC calculations, some numToByte and byteToNum. Nothing where I can see what could cause the slowdown of LC 8, compared with 6. Before going into each statement of the code, I wanted to ask, if perhaps my approach is a no go and there could be a better approach or if you say, that's just like it is. Perhaps I should run the loop only once after releasing the slider instead of continuously at *scrollbardrag*, but releasing the slider doesn't fire a *rawkeyup*, so I actually don't know, how I should trigger that event. Thanks for any ideas Tiemo From dave at applicationinsight.com Thu Nov 24 06:46:19 2016 From: dave at applicationinsight.com (Dave Kilroy) Date: Thu, 24 Nov 2016 11:46:19 +0000 Subject: Installing LiveCode Server on a Microsoft Azure Bitnami LAMP stack Message-ID: <80F940DA-21A4-4670-907F-521E11048186@applicationinsight.com> Hi all I?ve contracted a smashing guy with great server experience but who is new to LiveCode install LiveCode Server on a Microsoft Azure Bitnami LAMP stack for me - and it?s great working with someone who knows what they?re doing However we?re stuck - could you clever people have a look at this thread http://forums.livecode.com/viewtopic.php?f=20&t=28354&p=148772#p148772 and pass on your suggestions as to how to get it working? Thanks in advance! Dave From toolbook at kestner.de Thu Nov 24 07:31:58 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 24 Nov 2016 13:31:58 +0100 Subject: AW: LC 8: slowdown of a repeat loop In-Reply-To: <006201d24642$b8d4b7e0$2a7e27a0$@kestner.de> References: <006201d24642$b8d4b7e0$2a7e27a0$@kestner.de> Message-ID: <007b01d2464e$c11ccfd0$43566f70$@kestner.de> Picking the thumbposition of the slider at mouseup and doing the calculations only at mouseup feels better now, as doing it simultaneously dragging the slider, though it is not a real "live experience" for the user. Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Tiemo Hollmann TB Gesendet: Donnerstag, 24. November 2016 12:06 An: LiveCode User Liste senden Betreff: LC 8: slowdown of a repeat loop Hello, I am converting a 384x288 color image into greyscale, looping thru each pixel of the image and doing some calculations. That works fine. The user can do some fine adjustments using a slider with a live visual control of the effect on the image. For each movement of the slider the looping thru all pixels starts again. Up to LC 6.7 this was pretty responsive but now with LC 8 moving the slider feels like tearing a rubber band. It still works, but is much slower and not so the slider isn't really responsive. Actually it is only a repeat loop with simple LC calculations, some numToByte and byteToNum. Nothing where I can see what could cause the slowdown of LC 8, compared with 6. Before going into each statement of the code, I wanted to ask, if perhaps my approach is a no go and there could be a better approach or if you say, that's just like it is. Perhaps I should run the loop only once after releasing the slider instead of continuously at *scrollbardrag*, but releasing the slider doesn't fire a *rawkeyup*, so I actually don't know, how I should trigger that event. Thanks for any ideas Tiemo _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From peterwawood at gmail.com Thu Nov 24 07:46:00 2016 From: peterwawood at gmail.com (Peter W A Wood) Date: Thu, 24 Nov 2016 20:46:00 +0800 Subject: Installing LiveCode Server on a Microsoft Azure Bitnami LAMP stack In-Reply-To: <80F940DA-21A4-4670-907F-521E11048186@applicationinsight.com> References: <80F940DA-21A4-4670-907F-521E11048186@applicationinsight.com> Message-ID: <98C92653-502C-40AC-ADE3-FDB0C55AFD2A@gmail.com> Dave > On 24 Nov 2016, at 19:46, Dave Kilroy wrote: > > Hi all > > I?ve contracted a smashing guy with great server experience but who is new to LiveCode install LiveCode Server on a Microsoft Azure Bitnami LAMP stack for me - and it?s great working with someone who knows what they?re doing > > However we?re stuck - could you clever people have a look at this thread http://forums.livecode.com/viewtopic.php?f=20&t=28354&p=148772#p148772 and pass on your suggestions as to how to get it working? > > Thanks in advance! > > Dave > It might be the Apache is being fussy about the lack of a trailing ?/? in the Script Alias or giving the name of an executable when a directory is required. These are the relevant parts of the config I use happily with Apache 2.4: ScriptAlias /livecode-cgi/ "/Users/peter/Sites/LiveCodeServer/? AllowOverride None Options +ExecCGI Require all granted AddHandler lcscript .lc Action lcscript /livecode-cgi/livecode-server Hope this helps. Peter From dave at applicationinsight.com Thu Nov 24 08:19:55 2016 From: dave at applicationinsight.com (Dave Kilroy) Date: Thu, 24 Nov 2016 13:19:55 +0000 Subject: Installing LiveCode Server on a Microsoft Azure Bitnami LAMP stack Message-ID: <0012FD72-0D38-47CD-9EB9-F4345F633178@applicationinsight.com> Thanks Peter! I?ve passed it on? Kind regards Dave > Dave > > > On 24 Nov 2016, at 19:46, Dave Kilroy <[hidden email] > wrote: > > > > Hi all > > > > I?ve contracted a smashing guy with great server experience but who is new to LiveCode install LiveCode Server on a Microsoft Azure Bitnami LAMP stack for me - and it?s great working with someone who knows what they?re doing > > > > However we?re stuck - could you clever people have a look at this thread http://forums.livecode.com/viewtopic.php?f=20&t=28354&p=148772#p148772 > and pass on your suggestions as to how to get it working? > > > > Thanks in advance! > > > > Dave > > > > It might be the Apache is being fussy about the lack of a trailing ?/? in the Script Alias or giving the name of an executable when a directory is required. > > These are the relevant parts of the config I use happily with Apache 2.4: > > ScriptAlias /livecode-cgi/ "/Users/peter/Sites/LiveCodeServer/? > > > AllowOverride None > Options +ExecCGI > Require all granted > > > AddHandler lcscript .lc > Action lcscript /livecode-cgi/livecode-server > > Hope this helps. > > Peter From gregory.lypny at videotron.ca Thu Nov 24 08:39:33 2016 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Thu, 24 Nov 2016 08:39:33 -0500 Subject: Shell Command and cURL In-Reply-To: <9OUdcM8RM3wDa9OUec8jOm@videotron.ca> References: <9OUdcM8RM3wDa9OUec8jOm@videotron.ca> Message-ID: Hi Richard and Mark, Thanks for responding. Richard, I had tinkered with Put and libURLDownloadToFile or whatever version of libURL was available in version 7.1 (I have only today updated to 8.1.2) but the problem with those commands is that they need to make a connection or call (not sure of the proper terminology) to the remote server for every file (say, by using a Repeat For Each loop), and the server cuts me off after a random number of files. cURL makes just one connection or keeps one connection open, and it has worked like a charm. Thanks for the heads up about rsync. I hadn?t heard of it, so I?ll do my homework. Thanks for the script, Mark. Shell scripts will definitely be a new venture for me. Regards, Gregory Richard Gaskin wrote: From tfabacher at gmail.com Thu Nov 24 10:49:33 2016 From: tfabacher at gmail.com (Todd Fabacher) Date: Thu, 24 Nov 2016 10:49:33 -0500 Subject: JavaScript + LC HTML5 = LiveCode.js Message-ID: Hello LiveCode community, At Digital Pomegranate we are very excited about the update to LiveCode HTML5. We already have several projects that we plan on using the platform for. Since our LiveCode team has only a little experience in JavaScript, we are thinking of creating a LiveCode.js. This will be both a LC substack that wraps a Javascript function library which would be in a file named LiveCode.js. Our thinking is it would have 5+ core functionalities that woul dbe shared by most HTML5 apps. I think this would be a great community project and help people who may not be so familiar with Javascript and can stay focused on LiceCode. Communications tsNet has given LiveCode async server communications, the good news is Javascript has had this functionality for quite some time. We would need a simple wrapper of the XMLHttpRequest functionality in LiveCode.js, so it seems seamless in Livecode. I know LC can call the browser's javascript, but can the JS do a callback to LiveCode? It would be great if we could do sockets in JS and create a two way communications system. RestAPI services I have seen recent notes about using revIgniter as a REST server, and there are many other options available. We use mostly WP and the WP RestAPI. Remote Storage Mark's LiveCloud is a great option and there are several different options. As I said, we mostly use WP, but we also use Node.js w/ mongodb. The LiveCode.js will just need a simple way of taking XML. JSON or an encoded array and sending it to the remote storage of choice and returning the values. Local Storage The ability to create and use a local DB within the local browser. My understanding is that LC HTML5 will not because to utilize the database library, so we will have to use Javascript localStorage. We just need to create a controller that will connect LC to create, read and write to the local DB. Javascript even has a way to store the DB and can be accessed for the next session. http://www.w3schools.com/html/html5_webstorage.asp File Picker & Uploaded Not use how to do this in HTML5, but we will need a way to select a file and upload it to a server. We could use an HTML+JS dialog box to do it. Best, Todd From toolbook at kestner.de Thu Nov 24 11:31:08 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 24 Nov 2016 17:31:08 +0100 Subject: Is there a mapping table for all rawKeyUp Codes? Message-ID: <00c301d24670$2ac523d0$804f6b70$@kestner.de> Hello, since keyUp doesn't works anymore as it should on windows in LC 7/8 (see my previous post) I have to workaround with rawKeyUp. Does anybody has a togo mapping table of the rawkeyup codes to the real chars? If not I have to build it myself by testing each char. Thanks Tiemo From mark at livecode.com Thu Nov 24 13:31:19 2016 From: mark at livecode.com (Mark Waddingham) Date: Thu, 24 Nov 2016 18:31:19 +0000 Subject: Is there a mapping table for all rawKeyUp Codes? In-Reply-To: <00c301d24670$2ac523d0$804f6b70$@kestner.de> References: <00c301d24670$2ac523d0$804f6b70$@kestner.de> Message-ID: <8D6F207F-FE38-4BBA-BB9C-5227C2477729@livecode.com> Hi Tiemo, If you search for 'PlatformKeyCode' in this file: https://github.com/livecode/livecode/blob/develop/engine/src/platform.h It should give you what you need. Warmest Regards, Mark. Sent from my iPhone > On 24 Nov 2016, at 16:31, Tiemo Hollmann TB wrote: > > Hello, > > since keyUp doesn't works anymore as it should on windows in LC 7/8 (see my > previous post) I have to workaround with rawKeyUp. > > Does anybody has a togo mapping table of the rawkeyup codes to the real > chars? If not I have to build it myself by testing each char. > > 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 roger.e.eller at sealedair.com Thu Nov 24 13:41:44 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 24 Nov 2016 13:41:44 -0500 Subject: JavaScript + LC HTML5 = LiveCode.js In-Reply-To: References: Message-ID: File picker should not have to be built in another language, in my opinion. Ask or Answer file SHOULD just work. Again, my opinion. This is LiveCode after all. ~Roger On Nov 24, 2016 10:49 AM, "Todd Fabacher" wrote: > Hello LiveCode community, > > At Digital Pomegranate we are very excited about the update to LiveCode > HTML5. We already have several projects that we plan on using the platform > for. Since our LiveCode team has only a little experience in JavaScript, we > are thinking of creating a LiveCode.js. This will be both a LC substack > that wraps a Javascript function library which would be in a file named > LiveCode.js. > > Our thinking is it would have 5+ core functionalities that woul dbe shared > by most HTML5 apps. I think this would be a great community project and > help people who may not be so familiar with Javascript and can stay focused > on LiceCode. > > Communications > tsNet has given LiveCode async server communications, the good news is > Javascript has had this functionality for quite some time. We would need a > simple wrapper of the XMLHttpRequest functionality in LiveCode.js, so it > seems seamless in Livecode. > > I know LC can call the browser's javascript, but can the JS do a callback > to LiveCode? It would be great if we could do sockets in JS and create a > two way communications system. > > RestAPI services > I have seen recent notes about using revIgniter as a REST server, and there > are many other options available. We use mostly WP and the WP RestAPI. > > Remote Storage > Mark's LiveCloud is a great option and there are several different options. > As I said, we mostly use WP, but we also use Node.js w/ mongodb. The > LiveCode.js will just need a simple way of taking XML. JSON or an encoded > array and sending it to the remote storage of choice and returning the > values. > > Local Storage > The ability to create and use a local DB within the local browser. My > understanding is that LC HTML5 will not because to utilize the database > library, so we will have to use Javascript localStorage. We just need to > create a controller that will connect LC to create, read and write to the > local DB. Javascript even has a way to store the DB and can be accessed for > the next session. > > http://www.w3schools.com/html/html5_webstorage.asp > > File Picker & Uploaded > Not use how to do this in HTML5, but we will need a way to select a file > and upload it to a server. We could use an HTML+JS dialog box to do it. > > Best, > > Todd > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mark at livecode.com Thu Nov 24 14:40:25 2016 From: mark at livecode.com (Mark Waddingham) Date: Thu, 24 Nov 2016 19:40:25 +0000 Subject: JavaScript + LC HTML5 = LiveCode.js In-Reply-To: References: Message-ID: Indeed. Once we have JS which 'does a similar thing' to answer file (or any other OS related piece of syntax) - hooking it up to that command is relatively straightforward. The hard part is writing the JavaScript implementations of the various OS services we are so used to using directly in LC. It is important to remember that browsers give no direct access to OS APIs, they are sandboxed and attempt to mitigate security issues as much as they can. The only system type functionality you get is that exposed by supported JS APIs a given browser has. Mark. Sent from my iPhone > On 24 Nov 2016, at 18:41, Roger Eller wrote: > > File picker should not have to be built in another language, in my > opinion. Ask or Answer file SHOULD just work. Again, my opinion. This is > LiveCode after all. > > ~Roger > >> On Nov 24, 2016 10:49 AM, "Todd Fabacher" wrote: >> >> Hello LiveCode community, >> >> At Digital Pomegranate we are very excited about the update to LiveCode >> HTML5. We already have several projects that we plan on using the platform >> for. Since our LiveCode team has only a little experience in JavaScript, we >> are thinking of creating a LiveCode.js. This will be both a LC substack >> that wraps a Javascript function library which would be in a file named >> LiveCode.js. >> >> Our thinking is it would have 5+ core functionalities that woul dbe shared >> by most HTML5 apps. I think this would be a great community project and >> help people who may not be so familiar with Javascript and can stay focused >> on LiceCode. >> >> Communications >> tsNet has given LiveCode async server communications, the good news is >> Javascript has had this functionality for quite some time. We would need a >> simple wrapper of the XMLHttpRequest functionality in LiveCode.js, so it >> seems seamless in Livecode. >> >> I know LC can call the browser's javascript, but can the JS do a callback >> to LiveCode? It would be great if we could do sockets in JS and create a >> two way communications system. >> >> RestAPI services >> I have seen recent notes about using revIgniter as a REST server, and there >> are many other options available. We use mostly WP and the WP RestAPI. >> >> Remote Storage >> Mark's LiveCloud is a great option and there are several different options. >> As I said, we mostly use WP, but we also use Node.js w/ mongodb. The >> LiveCode.js will just need a simple way of taking XML. JSON or an encoded >> array and sending it to the remote storage of choice and returning the >> values. >> >> Local Storage >> The ability to create and use a local DB within the local browser. My >> understanding is that LC HTML5 will not because to utilize the database >> library, so we will have to use Javascript localStorage. We just need to >> create a controller that will connect LC to create, read and write to the >> local DB. Javascript even has a way to store the DB and can be accessed for >> the next session. >> >> http://www.w3schools.com/html/html5_webstorage.asp >> >> File Picker & Uploaded >> Not use how to do this in HTML5, but we will need a way to select a file >> and upload it to a server. We could use an HTML+JS dialog box to do it. >> >> Best, >> >> Todd >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 24 14:57:31 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 24 Nov 2016 19:57:31 +0000 Subject: Draw an adjustable Trapezoid in Livecode - How to change x, y of the 4 corner points of a rect In-Reply-To: <22C0EEC0-875F-47A4-848E-E29C3603196C@livecode.org> References: <22C0EEC0-875F-47A4-848E-E29C3603196C@livecode.org> Message-ID: <43FC7C5C-6ECB-4D84-90C2-631BD4B4B448@hindu.org> The good news: Right click on the Polygon then choose 'Reshape Polygon' and the points that you require should appear. :-) BR: confirmed.. that works. Now the bad news: Sadly this also revealed the ghost trails seen before when you start to drag the points around. :-( BR: oops, right, old bug is back? Question: is there a way to close the polygon path? It does appear to be closed by default, but I can't actually get the last point of the last line to snap-connect to the first point of starting line? maybe that is not doable? But, mute point since when you switch out the polygon is closed even if you have a small "x over" at the return point? From roger.e.eller at sealedair.com Thu Nov 24 15:00:00 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 24 Nov 2016 15:00:00 -0500 Subject: JavaScript + LC HTML5 = LiveCode.js In-Reply-To: References: Message-ID: Mark, Would it be possible to have a LC executable (something resembling LC Server) on a Desktop, allowing the browser to access the local machine by way of that backgrounded process? Could it be an out of the box capability only turned on by the machine's primary user, via the html5 application before it fully launches? Similar to how Android tells the user what permissions are needed is how I imagine it would present itself. ~Roger Roger Eller Graphics Systems Analyst 803 North Maple Street P: 864.967.1625 Simpsonville, SC 29681 C: 864.908.0337 SealedAir.com Roger.E.Eller at SealedAir.com On Thu, Nov 24, 2016 at 2:40 PM, Mark Waddingham wrote: > Indeed. > > Once we have JS which 'does a similar thing' to answer file (or any other > OS related piece of syntax) - hooking it up to that command is relatively > straightforward. > > The hard part is writing the JavaScript implementations of the various OS > services we are so used to using directly in LC. > > It is important to remember that browsers give no direct access to OS > APIs, they are sandboxed and attempt to mitigate security issues as much as > they can. > > The only system type functionality you get is that exposed by supported JS > APIs a given browser has. > > Mark. > > Sent from my iPhone > > > On 24 Nov 2016, at 18:41, Roger Eller > wrote: > > > > File picker should not have to be built in another language, in my > > opinion. Ask or Answer file SHOULD just work. Again, my opinion. This > is > > LiveCode after all. > > > > ~Roger > > > >> On Nov 24, 2016 10:49 AM, "Todd Fabacher" wrote: > >> > >> Hello LiveCode community, > >> > >> At Digital Pomegranate we are very excited about the update to LiveCode > >> HTML5. We already have several projects that we plan on using the > platform > >> for. Since our LiveCode team has only a little experience in > JavaScript, we > >> are thinking of creating a LiveCode.js. This will be both a LC substack > >> that wraps a Javascript function library which would be in a file named > >> LiveCode.js. > >> > >> Our thinking is it would have 5+ core functionalities that woul dbe > shared > >> by most HTML5 apps. I think this would be a great community project and > >> help people who may not be so familiar with Javascript and can stay > focused > >> on LiceCode. > >> > >> Communications > >> tsNet has given LiveCode async server communications, the good news is > >> Javascript has had this functionality for quite some time. We would > need a > >> simple wrapper of the XMLHttpRequest functionality in LiveCode.js, so it > >> seems seamless in Livecode. > >> > >> I know LC can call the browser's javascript, but can the JS do a > callback > >> to LiveCode? It would be great if we could do sockets in JS and create a > >> two way communications system. > >> > >> RestAPI services > >> I have seen recent notes about using revIgniter as a REST server, and > there > >> are many other options available. We use mostly WP and the WP RestAPI. > >> > >> Remote Storage > >> Mark's LiveCloud is a great option and there are several different > options. > >> As I said, we mostly use WP, but we also use Node.js w/ mongodb. The > >> LiveCode.js will just need a simple way of taking XML. JSON or an > encoded > >> array and sending it to the remote storage of choice and returning the > >> values. > >> > >> Local Storage > >> The ability to create and use a local DB within the local browser. My > >> understanding is that LC HTML5 will not because to utilize the database > >> library, so we will have to use Javascript localStorage. We just need to > >> create a controller that will connect LC to create, read and write to > the > >> local DB. Javascript even has a way to store the DB and can be accessed > for > >> the next session. > >> > >> http://www.w3schools.com/html/html5_webstorage.asp > >> > >> File Picker & Uploaded > >> Not use how to do this in HTML5, but we will need a way to select a file > >> and upload it to a server. We could use an HTML+JS dialog box to do it. > >> > >> Best, > >> > >> Todd > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mark at livecode.com Thu Nov 24 15:01:18 2016 From: mark at livecode.com (Mark Waddingham) Date: Thu, 24 Nov 2016 20:01:18 +0000 Subject: Draw an adjustable Trapezoid in Livecode - How to change x, y of the 4 corner points of a rect In-Reply-To: References: Message-ID: Check out the editMode property of graphic objects. Warmest regards, Mark. Sent from my iPhone > On 24 Nov 2016, at 04:44, Sannyasin Brahmanathaswami wrote: > > I want to be able to draw an adjustable trapezoid in Livecode. > > The regular polygon tool set to 4 sides doesn't allow you to grab any given > > Similarly, the polygon graphic also doesn't provide grab points for corners of a rect that you can drag and adjust > > Is this just impossible? or am I missing something? > > I could live with the option to set the four points of the graphic such that 4 straight lines are connected but the corners placed where I want them? a bit above my brain pay grade at the moment. of course you could set *all* of the points of the graphic but I'd like just to be able to set the points of the 4 corners of the rect/trapezoid > > is this even doable? > > 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 mark at livecode.com Thu Nov 24 15:08:33 2016 From: mark at livecode.com (Mark Waddingham) Date: Thu, 24 Nov 2016 20:08:33 +0000 Subject: JavaScript + LC HTML5 = LiveCode.js In-Reply-To: References: Message-ID: <57FD9A2C-108C-493E-9E33-E8EE753EEFC4@livecode.com> The connection could possibly be made by using web sockets I guess (someone correct me if I'm wrong). However, the user would have to download, install and run the helper process... At which point you might as well be running a desktop app I'd think. Browsers do not and will almost certainly never allow execution of (native) subprocesses via JavaScript. (Nor any kind of native code which is not part of the browser executable - well, outside the browsers very tight sandbox). Mark. Sent from my iPhone > On 24 Nov 2016, at 20:00, Roger Eller wrote: > > Mark, > > Would it be possible to have a LC executable (something resembling LC > Server) on a Desktop, allowing the browser to access the local machine by > way of that backgrounded process? Could it be an out of the box capability > only turned on by the machine's primary user, via the html5 application > before it fully launches? Similar to how Android tells the user what > permissions are needed is how I imagine it would present itself. > > ~Roger > > > > Roger Eller > Graphics Systems Analyst > > 803 North Maple Street P: 864.967.1625 > Simpsonville, SC 29681 C: 864.908.0337 > SealedAir.com Roger.E.Eller at SealedAir.com > > > > >> On Thu, Nov 24, 2016 at 2:40 PM, Mark Waddingham wrote: >> >> Indeed. >> >> Once we have JS which 'does a similar thing' to answer file (or any other >> OS related piece of syntax) - hooking it up to that command is relatively >> straightforward. >> >> The hard part is writing the JavaScript implementations of the various OS >> services we are so used to using directly in LC. >> >> It is important to remember that browsers give no direct access to OS >> APIs, they are sandboxed and attempt to mitigate security issues as much as >> they can. >> >> The only system type functionality you get is that exposed by supported JS >> APIs a given browser has. >> >> Mark. >> >> Sent from my iPhone >> >>>> On 24 Nov 2016, at 18:41, Roger Eller >>> wrote: >>> >>> File picker should not have to be built in another language, in my >>> opinion. Ask or Answer file SHOULD just work. Again, my opinion. This >> is >>> LiveCode after all. >>> >>> ~Roger >>> >>>> On Nov 24, 2016 10:49 AM, "Todd Fabacher" wrote: >>>> >>>> Hello LiveCode community, >>>> >>>> At Digital Pomegranate we are very excited about the update to LiveCode >>>> HTML5. We already have several projects that we plan on using the >> platform >>>> for. Since our LiveCode team has only a little experience in >> JavaScript, we >>>> are thinking of creating a LiveCode.js. This will be both a LC substack >>>> that wraps a Javascript function library which would be in a file named >>>> LiveCode.js. >>>> >>>> Our thinking is it would have 5+ core functionalities that woul dbe >> shared >>>> by most HTML5 apps. I think this would be a great community project and >>>> help people who may not be so familiar with Javascript and can stay >> focused >>>> on LiceCode. >>>> >>>> Communications >>>> tsNet has given LiveCode async server communications, the good news is >>>> Javascript has had this functionality for quite some time. We would >> need a >>>> simple wrapper of the XMLHttpRequest functionality in LiveCode.js, so it >>>> seems seamless in Livecode. >>>> >>>> I know LC can call the browser's javascript, but can the JS do a >> callback >>>> to LiveCode? It would be great if we could do sockets in JS and create a >>>> two way communications system. >>>> >>>> RestAPI services >>>> I have seen recent notes about using revIgniter as a REST server, and >> there >>>> are many other options available. We use mostly WP and the WP RestAPI. >>>> >>>> Remote Storage >>>> Mark's LiveCloud is a great option and there are several different >> options. >>>> As I said, we mostly use WP, but we also use Node.js w/ mongodb. The >>>> LiveCode.js will just need a simple way of taking XML. JSON or an >> encoded >>>> array and sending it to the remote storage of choice and returning the >>>> values. >>>> >>>> Local Storage >>>> The ability to create and use a local DB within the local browser. My >>>> understanding is that LC HTML5 will not because to utilize the database >>>> library, so we will have to use Javascript localStorage. We just need to >>>> create a controller that will connect LC to create, read and write to >> the >>>> local DB. Javascript even has a way to store the DB and can be accessed >> for >>>> the next session. >>>> >>>> http://www.w3schools.com/html/html5_webstorage.asp >>>> >>>> File Picker & Uploaded >>>> Not use how to do this in HTML5, but we will need a way to select a file >>>> and upload it to a server. We could use an HTML+JS dialog box to do it. >>>> >>>> Best, >>>> >>>> Todd >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Thu Nov 24 15:33:36 2016 From: mark at livecode.com (Mark Waddingham) Date: Thu, 24 Nov 2016 20:33:36 +0000 Subject: JavaScript + LC HTML5 = LiveCode.js In-Reply-To: <57FD9A2C-108C-493E-9E33-E8EE753EEFC4@livecode.com> References: <57FD9A2C-108C-493E-9E33-E8EE753EEFC4@livecode.com> Message-ID: I should perhaps say that whilst what I'm saying above sounds somewhat doom and gloom, it isn't. Browsers have a huge responsibility to keep your computer safe from malicious attack (there are people who spend all their time trying to find holes to wriggle through and then exploit). Browser JS APIs are rich and diverse, and become more so each year. For most things it will be a case of 'when', and not 'if'. Sent from my iPhone > On 24 Nov 2016, at 20:08, Mark Waddingham wrote: > > The connection could possibly be made by using web sockets I guess (someone correct me if I'm wrong). > > However, the user would have to download, install and run the helper process... At which point you might as well be running a desktop > app I'd think. > > Browsers do not and will almost certainly never allow execution of (native) subprocesses via JavaScript. (Nor any kind of native code which is not part of the browser executable - well, outside the browsers very tight sandbox). > > Mark. > > > > Sent from my iPhone > >> On 24 Nov 2016, at 20:00, Roger Eller wrote: >> >> Mark, >> >> Would it be possible to have a LC executable (something resembling LC >> Server) on a Desktop, allowing the browser to access the local machine by >> way of that backgrounded process? Could it be an out of the box capability >> only turned on by the machine's primary user, via the html5 application >> before it fully launches? Similar to how Android tells the user what >> permissions are needed is how I imagine it would present itself. >> >> ~Roger >> >> >> >> Roger Eller >> Graphics Systems Analyst >> >> 803 North Maple Street P: 864.967.1625 >> Simpsonville, SC 29681 C: 864.908.0337 >> SealedAir.com Roger.E.Eller at SealedAir.com >> >> >> >> >>> On Thu, Nov 24, 2016 at 2:40 PM, Mark Waddingham wrote: >>> >>> Indeed. >>> >>> Once we have JS which 'does a similar thing' to answer file (or any other >>> OS related piece of syntax) - hooking it up to that command is relatively >>> straightforward. >>> >>> The hard part is writing the JavaScript implementations of the various OS >>> services we are so used to using directly in LC. >>> >>> It is important to remember that browsers give no direct access to OS >>> APIs, they are sandboxed and attempt to mitigate security issues as much as >>> they can. >>> >>> The only system type functionality you get is that exposed by supported JS >>> APIs a given browser has. >>> >>> Mark. >>> >>> Sent from my iPhone >>> >>>>> On 24 Nov 2016, at 18:41, Roger Eller >>>> wrote: >>>> >>>> File picker should not have to be built in another language, in my >>>> opinion. Ask or Answer file SHOULD just work. Again, my opinion. This >>> is >>>> LiveCode after all. >>>> >>>> ~Roger >>>> >>>>> On Nov 24, 2016 10:49 AM, "Todd Fabacher" wrote: >>>>> >>>>> Hello LiveCode community, >>>>> >>>>> At Digital Pomegranate we are very excited about the update to LiveCode >>>>> HTML5. We already have several projects that we plan on using the >>> platform >>>>> for. Since our LiveCode team has only a little experience in >>> JavaScript, we >>>>> are thinking of creating a LiveCode.js. This will be both a LC substack >>>>> that wraps a Javascript function library which would be in a file named >>>>> LiveCode.js. >>>>> >>>>> Our thinking is it would have 5+ core functionalities that woul dbe >>> shared >>>>> by most HTML5 apps. I think this would be a great community project and >>>>> help people who may not be so familiar with Javascript and can stay >>> focused >>>>> on LiceCode. >>>>> >>>>> Communications >>>>> tsNet has given LiveCode async server communications, the good news is >>>>> Javascript has had this functionality for quite some time. We would >>> need a >>>>> simple wrapper of the XMLHttpRequest functionality in LiveCode.js, so it >>>>> seems seamless in Livecode. >>>>> >>>>> I know LC can call the browser's javascript, but can the JS do a >>> callback >>>>> to LiveCode? It would be great if we could do sockets in JS and create a >>>>> two way communications system. >>>>> >>>>> RestAPI services >>>>> I have seen recent notes about using revIgniter as a REST server, and >>> there >>>>> are many other options available. We use mostly WP and the WP RestAPI. >>>>> >>>>> Remote Storage >>>>> Mark's LiveCloud is a great option and there are several different >>> options. >>>>> As I said, we mostly use WP, but we also use Node.js w/ mongodb. The >>>>> LiveCode.js will just need a simple way of taking XML. JSON or an >>> encoded >>>>> array and sending it to the remote storage of choice and returning the >>>>> values. >>>>> >>>>> Local Storage >>>>> The ability to create and use a local DB within the local browser. My >>>>> understanding is that LC HTML5 will not because to utilize the database >>>>> library, so we will have to use Javascript localStorage. We just need to >>>>> create a controller that will connect LC to create, read and write to >>> the >>>>> local DB. Javascript even has a way to store the DB and can be accessed >>> for >>>>> the next session. >>>>> >>>>> http://www.w3schools.com/html/html5_webstorage.asp >>>>> >>>>> File Picker & Uploaded >>>>> Not use how to do this in HTML5, but we will need a way to select a file >>>>> and upload it to a server. We could use an HTML+JS dialog box to do it. >>>>> >>>>> Best, >>>>> >>>>> Todd >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 24 15:42:47 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 24 Nov 2016 15:42:47 -0500 Subject: JavaScript + LC HTML5 = LiveCode.js In-Reply-To: <57FD9A2C-108C-493E-9E33-E8EE753EEFC4@livecode.com> References: <57FD9A2C-108C-493E-9E33-E8EE753EEFC4@livecode.com> Message-ID: I disagree that you might as well be running a desktop app. The download of the helper would only be necessary once (like the old RevWeb plugin). Back when we had the RevWeb plugin, my browser based apps just worked. Being in a position where localized automation is primarily what I create for in-house users, this would allow me to update/maintain to a single code-source, but without having my hands tied capability-wise by the browser. ~Roger On Thu, Nov 24, 2016 at 3:08 PM, Mark Waddingham wrote: > The connection could possibly be made by using web sockets I guess > (someone correct me if I'm wrong). > > However, the user would have to download, install and run the helper > process... At which point you might as well be running a desktop > app I'd think. > > Browsers do not and will almost certainly never allow execution of > (native) subprocesses via JavaScript. (Nor any kind of native code which is > not part of the browser executable - well, outside the browsers very tight > sandbox). > > Mark. > > > > Sent from my iPhone > > > On 24 Nov 2016, at 20:00, Roger Eller > wrote: > > > > Mark, > > > > Would it be possible to have a LC executable (something resembling LC > > Server) on a Desktop, allowing the browser to access the local machine by > > way of that backgrounded process? Could it be an out of the box > capability > > only turned on by the machine's primary user, via the html5 application > > before it fully launches? Similar to how Android tells the user what > > permissions are needed is how I imagine it would present itself. > > > > ~Roger > From irog at mac.com Thu Nov 24 16:11:42 2016 From: irog at mac.com (Roger Guay) Date: Thu, 24 Nov 2016 13:11:42 -0800 Subject: Draw an adjustable Trapezoid in Livecode - How to change x, y of the 4 corner points of a rect In-Reply-To: <43FC7C5C-6ECB-4D84-90C2-631BD4B4B448@hindu.org> References: <22C0EEC0-875F-47A4-848E-E29C3603196C@livecode.org> <43FC7C5C-6ECB-4D84-90C2-631BD4B4B448@hindu.org> Message-ID: <38288ABB-8AC8-45ED-A19F-F68E7FD14EB2@mac.com> I don?t know about you, but I got tired trying to figure out how to use the editMode of a polygon in Version 8, so I built what I think you need here: https://www.dropbox.com/s/bbsfkorg9vm32um/PolywHandles.livecode?dl=0 Cheers, Roger > On Nov 24, 2016, at 11:57 AM, Sannyasin Brahmanathaswami wrote: > > > The good news: > Right click on the Polygon then choose 'Reshape Polygon' and the points that you require should appear. :-) > > BR: confirmed.. that works. > > Now the bad news: > Sadly this also revealed the ghost trails seen before when you start to drag the points around. :-( > > BR: oops, right, old bug is back? > > Question: is there a way to close the polygon path? It does appear to be closed by default, but I can't actually get the last point of the last line to snap-connect to the first point of starting line? maybe that is not doable? But, mute point since when you switch out the polygon is closed even if you have a small "x over" at the return point? > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 livecode.org Thu Nov 24 16:20:52 2016 From: paul at livecode.org (Paul Hibbert) Date: Thu, 24 Nov 2016 13:20:52 -0800 Subject: Draw an adjustable Trapezoid in Livecode - How to change x, y of the 4 corner points of a rect In-Reply-To: <43FC7C5C-6ECB-4D84-90C2-631BD4B4B448@hindu.org> References: <22C0EEC0-875F-47A4-848E-E29C3603196C@livecode.org> <43FC7C5C-6ECB-4D84-90C2-631BD4B4B448@hindu.org> Message-ID: > On Nov 24, 2016, at 11:57 AM, Sannyasin Brahmanathaswami wrote: > > Question: is there a way to close the polygon path? It does appear to be closed by default, but I can't actually get the last point of the last line to snap-connect to the first point of starting line? maybe that is not doable? But, mute point since when you switch out the polygon is closed even if you have a small "x over" at the return point? You can do this by script, just use something like the following script in the card or stack; on newGraphic ? use the altKey to ensure this is a chosen behaviour ? leave the altKey condition out if this is to be the default behaviour if the altKey is down and the style of the last graphic = "polygon" then get the points of the last graphic put line 1 of it into line -1 of it set the points of the last graphic to it set the editMode of the last graphic to "polygon" -- Thank you Mark! end if end newGraphic This will make sure the first point and last point are equal and the graphic points are editable. set the editMode of the last graphic to ?none? -- turn off the Reshape Polygon mode and remove the edit handles Regards, Paul From capellan2000 at gmail.com Thu Nov 24 19:19:15 2016 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 24 Nov 2016 20:19:15 -0400 Subject: Draw an adjustable Trapezoid in Livecode - How to change x, y of the 4 corner points of a rect Message-ID: Maybe this could be useful: on mouseUp lock screen create grc set the style of it to polygon set the points of it to "3,0,0,10,10,10,7,0,3,0" -- a very small figure set the rect of it to "0,0,200,100" -- enlarge the figure set the loc of it to the screenloc -- position it in a place easy to find unlock screen end mouseUp Alejandro From brahma at hindu.org Thu Nov 24 22:30:02 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 25 Nov 2016 03:30:02 +0000 Subject: Draw an adjustable Trapezoid in Livecode - How to change x, y of the 4 corner points of a rect In-Reply-To: References: Message-ID: Thanks every one for all the great answers/ideas. That said, @Mark? docs may need clarification 1) create 'regular polygon graphic" with 4 sides 2) name it "trapezoid" 3) make button "set the editMode of grc "trapezoid" to polygon result: nothing happens at all, no change, no option to add or "touch" any points. So perhaps "edit mode of graphics" needs to be "editMode of graphics with style set to "Polygon" and not "regular" @Alejandro: Awesome simple little script! BR On 11/24/16, 10:01 AM, "use-livecode on behalf of Mark Waddingham" wrote: Check out the editMode property of graphic objects. Warmest regards, Mark. From brahma at hindu.org Thu Nov 24 23:34:36 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 25 Nov 2016 04:34:36 +0000 Subject: JavaScript + LC HTML5 = LiveCode.js In-Reply-To: References: <57FD9A2C-108C-493E-9E33-E8EE753EEFC4@livecode.com> Message-ID: <2CFDDC92-459A-43F5-BDC1-26BD623855F3@hindu.org> I too never quite understood why the RevWeb Plugin was abandoned. The old issue that users resist such downloads, never, IMHO, really materialized? just look at the kJillion extensions for FireFox or Chrome, there is no end in sight. So the plugin was abandoned, but in the end, hasn't the team has built the same thing? Enscripten with a wrapper for LC? But instead of being able to deliver that as a "player" ? now the user is forced to download that entire source code with each and every Html5 app built with LC. I get of course that the framework of the RevWeb Plugin was a completely different architecture? and moving to JS means the browser as an "OS" will be more "at peace with the code," so to speak, but yet, why could it not be externalized as a plug-in/helper/player? I must be very na?ve and missing something?.perhaps security issues require us to bundle the code with each app, so that 3rd parties can't hack the player for nefarious ends? as Mark says: legions are trying to find ways to break through to your HD? BR On 11/24/16, 10:42 AM, "use-livecode on behalf of Roger Eller" wrote: I disagree that you might as well be running a desktop app. The download of the helper would only be necessary once (like the old RevWeb plugin). Back when we had the RevWeb plugin, my browser based apps just worked. Being in a position where localized automation is primarily what I create for in-house users, this would allow me to update/maintain to a single code-source, but without having my hands tied capability-wise by the browser. ~Roger From tfabacher at gmail.com Thu Nov 24 23:38:48 2016 From: tfabacher at gmail.com (Todd Fabacher) Date: Thu, 24 Nov 2016 23:38:48 -0500 Subject: JavaScript + LC HTML5 = LiveCode.js Message-ID: Hello Roger, you need to remember almost 50% of web users are on a non-desktop OS, and almost none of them support plugins like you are describing. LC HTML5 is what it is...It is an App running in an HTML5 canvas. We will be limited that those restrictions. But I understand where you are coming from. What I would like to focus on is what are the current possibilities that we can capitalize on with the JavaScript integration - NOW. I need a functioning HTML5 data entry clint for several Apps we are developing. Mark, One question I had that was NOT answered is..Can a JavaScript function call a LiveCode function? I know this was added in the LC8 browser. How do we get started and have the community involved? We can do it and give it to everyone like we have been doing, but I would like to see if we can get several people involved who are passionate about making LC HTML5 easier and more successful. We code just want to do it our way, but the middle ground so more people will use it, and improve it. Richard, Any ideas? --Todd >I disagree that you might as well be running a desktop app. The download >of the helper would only be necessary once (like the old RevWeb plugin). >Back when we had the RevWeb plugin, my browser based apps just worked. >Being in a position where localized automation is primarily what I create >for in-house users, this would allow me to update/maintain to a single >code-source, but without having my hands tied capability-wise by the >browser. >~Roger From palcibiades-first at yahoo.co.uk Fri Nov 25 02:49:06 2016 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Thu, 24 Nov 2016 23:49:06 -0800 (PST) Subject: [ANN] Order Programming LiveCode for the Real Beginner now! In-Reply-To: References: Message-ID: <1480060146013-4710592.post@n4.nabble.com> I bought the first edition and thought it absolutely excellent. The only section that could have been made more accessible was on arrays. People have a real conceptual difficulty with them, or some do, and its very hard to explain. There comes a moment when you realise that there is nothing really to be puzzled about, but before that they just stare at you and from time to time ask, but what is it, exactly? You soon find that explaining it in terms of three D spreadsheets does not help, because in short order you are asking them to visualize four and five and more dimensions, which leads to more agonised stares. But with this small reservation, that this section could benefit from some expansion, I thought it was excellent, well recommended. It might be better to refer to them as 'editions' rather than 'printings', when the text is revised. Just a suggestion. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-Order-Programming-LiveCode-for-the-Real-Beginner-now-tp4710558p4710592.html Sent from the Revolution - User mailing list archive at Nabble.com. From bernd.niggemann at uni-wh.de Fri Nov 25 02:50:44 2016 From: bernd.niggemann at uni-wh.de (BNig) Date: Thu, 24 Nov 2016 23:50:44 -0800 (PST) Subject: Draw an adjustable Trapezoid in Livecode - How to change x, y of the 4 corner points of a rect In-Reply-To: References: Message-ID: <1480060244456-4710593.post@n4.nabble.com> Hi, a "regular polygon" is not a "polygon" which is confusing. a "polygon" is the type of graphic made of points whereas a "regular polygon" has no points and are IIRC drawn by the operating system, that is why they are smooth. Mark Wieder introduced the "effective points" of any of "rectangle, oval, roundRect, regular" graphics. set the points of grc "myRegularPolygon" to the effective points of grc "myRegularPolygon" now you have to change the style of the graphic to "polygon" and it uses the points. If the graphic is not "closed", i.e. the last point is missing then toggle "opaque" (if on unselect it and reselect it, if off select opaque) this will close the polygon i.e. it is a full rectangle consisting of 5 points. The opaque on/off trick also works for polygon graphics you draw in the ide. If set to opaque it will supply the last point to close the polygon, that point sticks even if turn opaque off again. The artifacts regarding "Reshape Graphic" seem to be a regression of the 8.1.2 and up series. In 8.1.1 Stable no artifacts. http://quality.livecode.com/show_bug.cgi?id=18911 In the 8.1.2 series if you want to get rid of the artifacts choose "Reshape Graphic" and unselect the graphic. You can now reshape the graphic without artifacts. It seems that the selection handles are causing the artifacts. a script to turn rectangle, oval, roundRect and regular graphics into polygons is here ------------------------------------- on mouseUp put the id of grc 1 into tID -- put the id of grc "nameOfGraphic" into tID -- if you use name if the style of grc id tID is among the items of "rectangle,oval,roundRect,regular" then put the effective points of grc id tID into tEP set the points of grc id tID to tEP set the style of grc id tID to "polygon" -- close the polygon put the opaque of grc id tID into tOpaque set the opaque of grc id tID to not the opaque of grc id tID set the opaque of grc id tID to not the opaque of grc id tID set the opaque of grc id tID to tOpaque end if end mouseUp -------------------------------- Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Draw-an-adjustable-Trapezoid-in-Livecode-How-to-change-x-y-of-the-4-corner-points-of-a-rect-tp4710565p4710593.html Sent from the Revolution - User mailing list archive at Nabble.com. From richmondmathewson at gmail.com Fri Nov 25 04:52:19 2016 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 25 Nov 2016 11:52:19 +0200 Subject: Is there a mapping table for all rawKeyUp Codes? In-Reply-To: <8D6F207F-FE38-4BBA-BB9C-5227C2477729@livecode.com> References: <00c301d24670$2ac523d0$804f6b70$@kestner.de> <8D6F207F-FE38-4BBA-BB9C-5227C2477729@livecode.com> Message-ID: <5fed599f-d337-3395-bdad-ebd87e8f60da@gmail.com> That's a nifty resource. I don't know what Tiemo means by "the real chars" as they are dependent on either one's keyboard driver or the language of one's operating system. I think what Tiemo needs (?) is something that when he enters a rawKey number it will tell him the key char . . . Something like this (pseudo code): on rawKeyDown RD get the keyDown of RD put it end rawKeyDown um? Richmond. On 24.11.2016 20:31, Mark Waddingham wrote: > Hi Tiemo, > > If you search for 'PlatformKeyCode' in this file: > > https://github.com/livecode/livecode/blob/develop/engine/src/platform.h > > It should give you what you need. > > Warmest Regards, > > Mark. > > Sent from my iPhone > >> On 24 Nov 2016, at 16:31, Tiemo Hollmann TB wrote: >> >> Hello, >> >> since keyUp doesn't works anymore as it should on windows in LC 7/8 (see my >> previous post) I have to workaround with rawKeyUp. >> >> Does anybody has a togo mapping table of the rawkeyup codes to the real >> chars? If not I have to build it myself by testing each char. >> >> 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 peter.brett at livecode.com Fri Nov 25 09:42:45 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Fri, 25 Nov 2016 14:42:45 +0000 Subject: JavaScript + LC HTML5 = LiveCode.js In-Reply-To: References: Message-ID: <47018eca-77ac-68bb-08ff-9561d23d5ed5@livecode.com> On 25/11/2016 04:38, Todd Fabacher wrote: > Mark, One question I had that was NOT answered is..Can a JavaScript > function call a LiveCode function? I know this was added in the LC8 browser. Hi Todd, Mark and Kevin are on holiday today, but I'll try and address this for you. At the moment, JavaScript functions cannot call LiveCode functions. Our current plan is to make this work in December or January. It will be more difficult to implement than the new "do script as JavaScript" feature, but much easier than making the "url" chunk work the same way as on other platforms. The latest idea we've had to make this happen is to let you set the "javaScriptHandlers" property on a stack. This will be a list of message names that the web page is allowed to send to the stack. We'll then add a JavaScript function to the standalone, that lets you send a message to the current "defaultStack". For example: Module.LiveCodeSendMessage("", ["", ""]) If is not among the lines of the "javaScriptHandlers" of the defaultStack, then it'll be ignored. Otherwise, it'll be sent to the current card of the defaultStack, just like "backKey" message on mobile platforms, for example. That's the current plan, anyway. No doubt it will change a bit once we start working on it. Does that broadly answer your question? Best regards, Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From ambassador at fourthworld.com Fri Nov 25 11:02:39 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 25 Nov 2016 08:02:39 -0800 Subject: JavaScript + LC HTML5 = LiveCode.js In-Reply-To: References: Message-ID: Roger Eller wrote: > I disagree that you might as well be running a desktop app. The > download of the helper would only be necessary once (like the old > RevWeb plugin). Back when we had the RevWeb plugin, my browser based > apps just worked. > Being in a position where localized automation is primarily what I > create for in-house users, this would allow me to update/maintain to > a single code-source, but without having my hands tied > capability-wise by the browser. That's exactly where a standalone is every bit as valuable as Mark was suggesting. We need not make every stack file into a standalone for our users to run it. All they need is one copy of the LiveCode engine, with just enough code so it knows where to download more stack files. Just as a version of the LC engine as a browser plugin can download and run stack files, any standalone already installed on the user's machine can do the same. But like you say, a standalone engine isn't limited to the confines of the browser, and devs deploying with a standalone never need to think about how to handle UI elements never intended for their app, like how to handle the browser's Back button. In addition to providing a better user experience through a UI dedicated to the tasks your app supports, "streaming stacks" can be safer too: with the relatively recent addition of the securityPermissions global property, it's possible to deliver standalones that download and run stacks that are safer than nearly any browser. Most of my work these days is with "streaming apps" - here's my setup: Client ------ - Standalone Contains only enough code to download one stack file from our server. This is only a little more than: go stack "https://somedomain.com/path/to/mainstackfile.livecode" ...with some error-checking and one dialog to report errors if encountered. This standalone is downloaded and installed this only once. We may update it once every year or two when we truly need to update the LC engine version we're using, but those times are rare. Server - Downloads ------------------ - Main Library This is the stack file that gets downloaded first. It contains all other code and URLs the app will need to download and run other stack files. We can completely change all aspects of the app by changing this one stack file on our server at any time. - Other stack files, downloaded as needed: - login.livecode -- provides a UI for tasks requiring authentication - admin.livecode -- UI for admin tasks for those users who've authenticated with admin privileges. - logs.livecode -- Viewer for server logs to monitor usage and provide diagnostics for errors (see below), - other stacks -- We can create and upload any task-specific UI and/or code as needed, and download-n-run it from any other. Server - Processing ------------------- - LC standalone or LC Server running as CGI under Apache, providing: - data store access through REST API with CRUD operations - authentication and other user services - logging - anything else we need on the server to support user-specific data management and sharing of data for collaborative workflows. Development ----------- - Upload Tool - automatically saves stack files I'm working on, compresses them, and uploads them to their respective locations on the server where the client standalone will find them. Many stack files are so small that the compression isn't really necessary, but I'm picky about performance and it never hurts to reduce transfer times where that can be done as easily as using LC's built-in compress and decompress functions. This setup lets us enhance and refine all aspects of the system at any time, and the user never needs to update the standalone they've installed. They just launch the app and since everything we write comes from the server they always have the latest build. I've had more than a few times when I've been in teleconferences with clients where we're discussing new features, and before the meeting is over I've already written the code and posted it to the server, and let them know that all they have to do to get the new feature is restart the app - as close to real-time updates as one could hope for. Getting started doesn't require all these parts; I started out with just one standalone downloading one stack file, and added other capabilities as I went along. In fact, as things progress I'm making more use of substacks within the main downloaded stack file. This makes things easier for me to build and keep track of, and since we don't use a lot of heavy media files like full-screeen raster images, the most complex UI I manage (which has dozens of substacks) compresses down to only 648k and flies over even a modest DSL connection in just a couple seconds. Many of use use "go stack..." commands in our posts to this list because it really is that easy to use HTTP to deliver stack files. Another simple example included with every LC install is LiveNet (formerly RevNet), accessible in the IDE from Development -> Plugins -> GoLiveNet. That plugin downloads a small stack file which then obtains data and other resources from more than a dozen sources around the world, but the user never needs to think about any of that because LC makes it so easy for our apps to do the downloading for them. I can't say enough good things about LC's ability to run downloaded stacks. It's one of the most powerful features in the engine, and perhaps the most under-appreciated. It's nearly everything you want with browser-based delivery, but able to handle app designs that go far beyond the browser, with richer features and optionally greater security as well. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From blueback09 at gmail.com Fri Nov 25 12:19:21 2016 From: blueback09 at gmail.com (Matt Maier) Date: Fri, 25 Nov 2016 09:19:21 -0800 Subject: JavaScript + LC HTML5 = LiveCode.js In-Reply-To: References: Message-ID: Richard, Thanks for that explanation. I've heard you mention this setup several times before but this is the most detail I've seen you put in one place. Clarification question: do you cache the last stacks downloaded in case the user isn't connected to a network? On Fri, Nov 25, 2016 at 8:02 AM, Richard Gaskin wrote: > Roger Eller wrote: > > > I disagree that you might as well be running a desktop app. The > > download of the helper would only be necessary once (like the old > > RevWeb plugin). Back when we had the RevWeb plugin, my browser based > > apps just worked. > > Being in a position where localized automation is primarily what I > > create for in-house users, this would allow me to update/maintain to > > a single code-source, but without having my hands tied > > capability-wise by the browser. > > That's exactly where a standalone is every bit as valuable as Mark was > suggesting. > > We need not make every stack file into a standalone for our users to run > it. > > All they need is one copy of the LiveCode engine, with just enough code so > it knows where to download more stack files. > > Just as a version of the LC engine as a browser plugin can download and > run stack files, any standalone already installed on the user's machine can > do the same. > > But like you say, a standalone engine isn't limited to the confines of the > browser, and devs deploying with a standalone never need to think about how > to handle UI elements never intended for their app, like how to handle the > browser's Back button. > > In addition to providing a better user experience through a UI dedicated > to the tasks your app supports, "streaming stacks" can be safer too: with > the relatively recent addition of the securityPermissions global property, > it's possible to deliver standalones that download and run stacks that are > safer than nearly any browser. > > Most of my work these days is with "streaming apps" - here's my setup: > > > Client > ------ > - Standalone > Contains only enough code to download one stack file from > our server. > > This is only a little more than: > > go stack "https://somedomain.com/path/to/mainstackfile.livecode" > > ...with some error-checking and one dialog to report errors if > encountered. > > This standalone is downloaded and installed this only once. We may > update it once every year or two when we truly need to update the > LC engine version we're using, but those times are rare. > > > Server - Downloads > ------------------ > - Main Library > This is the stack file that gets downloaded first. It contains all > other code and URLs the app will need to download and run other stack > files. > > We can completely change all aspects of the app by changing this one > stack file on our server at any time. > > - Other stack files, downloaded as needed: > > - login.livecode -- provides a UI for tasks requiring authentication > > - admin.livecode -- UI for admin tasks for those users who've > authenticated with admin privileges. > > - logs.livecode -- Viewer for server logs to monitor usage and > provide diagnostics for errors (see below), > > - other stacks -- We can create and upload any task-specific UI > and/or code as needed, and download-n-run it > from any other. > > Server - Processing > ------------------- > - LC standalone or LC Server running as CGI under Apache, providing: > > - data store access through REST API with CRUD operations > > - authentication and other user services > > - logging > > - anything else we need on the server to support user-specific data > management and sharing of data for collaborative workflows. > > > > Development > ----------- > - Upload Tool - automatically saves stack files I'm working on, > compresses them, and uploads them to their respective > locations on the server where the client standalone > will find them. > > Many stack files are so small that the compression > isn't really necessary, but I'm picky about performance > and it never hurts to reduce transfer times where that > can be done as easily as using LC's built-in compress > and decompress functions. > > > > This setup lets us enhance and refine all aspects of the system at any > time, and the user never needs to update the standalone they've installed. > They just launch the app and since everything we write comes from the > server they always have the latest build. > > I've had more than a few times when I've been in teleconferences with > clients where we're discussing new features, and before the meeting is over > I've already written the code and posted it to the server, and let them > know that all they have to do to get the new feature is restart the app - > as close to real-time updates as one could hope for. > > Getting started doesn't require all these parts; I started out with just > one standalone downloading one stack file, and added other capabilities as > I went along. > > In fact, as things progress I'm making more use of substacks within the > main downloaded stack file. This makes things easier for me to build and > keep track of, and since we don't use a lot of heavy media files like > full-screeen raster images, the most complex UI I manage (which has dozens > of substacks) compresses down to only 648k and flies over even a modest DSL > connection in just a couple seconds. > > Many of use use "go stack..." commands in our posts to this list because > it really is that easy to use HTTP to deliver stack files. > > Another simple example included with every LC install is LiveNet (formerly > RevNet), accessible in the IDE from Development -> Plugins -> GoLiveNet. > That plugin downloads a small stack file which then obtains data and other > resources from more than a dozen sources around the world, but the user > never needs to think about any of that because LC makes it so easy for our > apps to do the downloading for them. > > I can't say enough good things about LC's ability to run downloaded > stacks. It's one of the most powerful features in the engine, and perhaps > the most under-appreciated. > > It's nearly everything you want with browser-based delivery, but able to > handle app designs that go far beyond the browser, with richer features and > optionally greater security as well. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From brahma at hindu.org Fri Nov 25 12:48:05 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 25 Nov 2016 17:48:05 +0000 Subject: JavaScript + LC HTML5 = LiveCode.js In-Reply-To: References: Message-ID: <63B20CF7-CD58-4EFF-9775-F5A06CEE1B12@hindu.org> Actually I have two long running apps (15 years) working exactly has Richard describes. Indeed is has so many advantages. I love being on SKYPE with one of our volunteers who may have a small complaint about the UX or wants to added something to the back end database? I quicklyl fix it and just tell them "OK, close that window and click the button again" It fetches a fresh stack/data from dbase on the server, and what they wanted is suddenly there without any upgrade process. Initially I always get this "wow, that is so cool!" response from them? It would be awesome if we could do this on mobile. We talked about the before.. I think you can do this on Android. BR On 11/25/16, 6:02 AM, "use-livecode on behalf of Richard Gaskin" wrote: I can't say enough good things about LC's ability to run downloaded stacks. It's one of the most powerful features in the engine, and perhaps the most under-appreciated. It's nearly everything you want with browser-based delivery, but able to handle app designs that go far beyond the browser, with richer features and optionally greater security as well. From brahma at hindu.org Fri Nov 25 12:48:24 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 25 Nov 2016 17:48:24 +0000 Subject: Draw an adjustable Trapezoid in Livecode - How to change x, y of the 4 corner points of a rect In-Reply-To: <1480060244456-4710593.post@n4.nabble.com> References: <1480060244456-4710593.post@n4.nabble.com> Message-ID: <24489DC4-C29C-4C52-904A-D06A191F4439@hindu.org> Bernd Thanks for the patience in clarifying all this. I think the dictionary could really use some kind of commenting system. What you are saying here is really important both for future docs as well as possible changes in the terms used in the IDE. But.. here it is buried deep in the lists. Opaque on/off trick? wow? very helpful.. typically I will be following a path in an image. Kind of like the magnetic lasso operation in photoshop, the use case is to use the graphic as a mask, set blending, gradient over an area of the image? So once we get to the last point before closing? instead of going on that mini-frustrating fishing expedition to try to make the last point on top of the first one? we can just stop .. toggle opacity and let LC do it for us? very useful hint! BR On 11/24/16, 9:50 PM, "use-livecode on behalf of BNig" wrote: now you have to change the style of the graphic to "polygon" and it uses the points. If the graphic is not "closed", i.e. the last point is missing then toggle "opaque" (if on unselect it and reselect it, if off select opaque) this will close the polygon i.e. it is a full rectangle consisting of 5 points. The opaque on/off trick also works for polygon graphics you draw in the ide. If set to opaque it will supply the last point to close the polygon, that point sticks even if turn opaque off again. From ambassador at fourthworld.com Fri Nov 25 13:32:06 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 25 Nov 2016 10:32:06 -0800 Subject: JavaScript + LC HTML5 = LiveCode.js In-Reply-To: References: Message-ID: Matt Maier wrote: > On Fri, Nov 25, 2016 at 8:02 AM, Richard Gaskin wrote: [a bunch of stuff too long to quote but available at: ] > Richard, > Thanks for that explanation. I've heard you mention this setup several > times before but this is the most detail I've seen you put in one > place. Thanks for the feedback. Glad it was helpful. > Clarification question: do you cache the last stacks downloaded in > case the user isn't connected to a network? Not currently, at least not for stacks. Where I use "streaming apps" the requirements are often very similar to what we need from web apps, involving lots of data communication with the server. If we don't have a connection there's little meaningful work that these apps can do, so I haven't bothered with an offline mode for them. I do, however, have a data cache for one of these apps. That one's a CMS for specialized medical content, and the time our editors can spend on a document can be long, often spanning many days. To ensure the content isn't lost between sessions we use a check-out/check-in system in which the checked-out document is stored in a local cache until it's checked back in and safely confirmed on the server. I could extend the cache subsystem to handle stacks as well, but thus far I haven't needed it. Tip: if you need to cache stacks you can make that super-easy by accompanying each stack file on the server with a small manifest-like text file that contains the build number of the most recently-posted stack. So on the server you might have something like: somestack.livecode somestack.info ...where the *.info file contains essential metadata. With that you can quickly compare the version/build number of a local stack file (stored in a custom property; I tend to use "ufwVersion" but the key could be any memorable string) with what's on the server with a super-fast download of that small text file. I use a simple metadata file for the auto-update feature in my devolution plugin and some of my apps: While most of my stuff includes a human-optimmized version number for the About box, I generally maintain an integer build numbers so version comparisons are dirt simple. Even simpler: you can have your uploading or standalone manager auto-increment your build number whenever you post, so you set it up once and never need to think about it again. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dochawk at gmail.com Fri Nov 25 16:31:46 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 25 Nov 2016 13:31:46 -0800 Subject: molassus IDE and revInternal_savePrefs Message-ID: I'm not sure that I got the name right, but I'm frequently seeing the IDE go to molasses while debugging, and delays of the better part of a minute from apparently stopping and actually settling on the breakpoint. It knows that the script is running. On a while, I clicked the mail logo in the message box, and it appears that a message to the effect of revInternal_savePrefs or some such is there about 90% of the time when this happens. Is this another hawking-only thing, or are others seeing it? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From monte at appisle.net Fri Nov 25 17:25:01 2016 From: monte at appisle.net (Monte Goulding) Date: Sat, 26 Nov 2016 09:25:01 +1100 Subject: molassus IDE and revInternal_savePrefs In-Reply-To: References: Message-ID: <862AC168-C403-4500-AEF4-2338FC0DE995@appisle.net> It is unlikely that this message is actually bogging down the system. Indeed this message is a performance optimisation to avoid saving the preferences file multiple times in quick succession. Cheers Monte Sent from my iPhone > On 26 Nov. 2016, at 8:31 am, Dr. Hawkins wrote: > > I'm not sure that I got the name right, but I'm frequently seeing the IDE > go to molasses while debugging, and delays of the better part of a minute > from apparently stopping and actually settling on the breakpoint. It knows > that the script is running. > > On a while, I clicked the mail logo in the message box, and it appears that > a message to the effect of revInternal_savePrefs or some such is there > about 90% of the time when this happens. > > Is this another hawking-only thing, or are others seeing it? > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Fri Nov 25 17:50:31 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 25 Nov 2016 16:50:31 -0600 Subject: molassus IDE and revInternal_savePrefs In-Reply-To: References: Message-ID: I'm not seeing it. How long is the script? Does it happen on scripts with fewer lines? On 11/25/16 3:31 PM, Dr. Hawkins wrote: > I'm not sure that I got the name right, but I'm frequently seeing the IDE > go to molasses while debugging, and delays of the better part of a minute > from apparently stopping and actually settling on the breakpoint. It knows > that the script is running. > > On a while, I clicked the mail logo in the message box, and it appears that > a message to the effect of revInternal_savePrefs or some such is there > about 90% of the time when this happens. > > Is this another hawking-only thing, or are others seeing it? > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From brahma at hindu.org Fri Nov 25 17:57:28 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 25 Nov 2016 22:57:28 +0000 Subject: Icon does not appear in iOS on iPhone 6 + Message-ID: <569EE3C7-30C7-47D6-90A2-65B5BAC69C05@hindu.org> We have an app in development, Yesterday I prepared all the icons and splash screens. The standalone builder was happy with the size of everyone of them. I run a build and 1) the logo does not appear on my iPhone 6 Plus: even though we have a good png at 180 X 180 it is somehow not being applied. 2) splash screen does show Any clues? on the logo? is this a standalone builder failure or a file naming convention I am missing? What is the "Prerendered Icon" check box used for? BR From colinholgate at gmail.com Fri Nov 25 18:09:29 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Fri, 25 Nov 2016 16:09:29 -0700 Subject: Icon does not appear in iOS on iPhone 6 + In-Reply-To: <569EE3C7-30C7-47D6-90A2-65B5BAC69C05@hindu.org> References: <569EE3C7-30C7-47D6-90A2-65B5BAC69C05@hindu.org> Message-ID: I should know the answer to this, does LiveCode require the official Apple names? I thought it created all of the icons from one file. In any case, the icon for 6 plus should be Icon-60 at 3x.png > On Nov 25, 2016, at 3:57 PM, Sannyasin Brahmanathaswami wrote: > > We have an app in development, Yesterday I prepared all the icons and splash screens. The standalone builder was happy with the size of everyone of them. I run a build and > > 1) the logo does not appear on my iPhone 6 Plus: even though we have a good png at 180 X 180 > > it is somehow not being applied. > > 2) splash screen does show > > Any clues? on the logo? is this a standalone builder failure or a file naming convention I am missing? > > What is the "Prerendered Icon" check box used for? > > 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 iowahengst at mac.com Fri Nov 25 18:36:40 2016 From: iowahengst at mac.com (Randy Hengst) Date: Fri, 25 Nov 2016 17:36:40 -0600 Subject: Icon does not appear in iOS on iPhone 6 + In-Reply-To: References: <569EE3C7-30C7-47D6-90A2-65B5BAC69C05@hindu.org> Message-ID: <071D4A72-49E9-4AF0-88C3-56C3D9D46809@mac.com> I?m using LC 8.1 and Mac OS 10.11.6. I name my iPhone 6 plus icon: 4 iPhone 180x180 I do that because it is the 4th one down the list when linking in the Standalone Settings pane. I?ve not had trouble with the icon showing on a device or in the simulator. be well, randy Randy Hengst www.classroomFocusedSoftware.com > On Nov 25, 2016, at 5:09 PM, Colin Holgate wrote: > > I should know the answer to this, does LiveCode require the official Apple names? I thought it created all of the icons from one file. In any case, the icon for 6 plus should be Icon-60 at 3x.png > > >> On Nov 25, 2016, at 3:57 PM, Sannyasin Brahmanathaswami wrote: >> >> We have an app in development, Yesterday I prepared all the icons and splash screens. The standalone builder was happy with the size of everyone of them. I run a build and >> >> 1) the logo does not appear on my iPhone 6 Plus: even though we have a good png at 180 X 180 >> >> it is somehow not being applied. >> >> 2) splash screen does show >> >> Any clues? on the logo? is this a standalone builder failure or a file naming convention I am missing? >> >> What is the "Prerendered Icon" check box used for? >> >> BR >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Fri Nov 25 19:11:23 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 25 Nov 2016 16:11:23 -0800 Subject: molassus IDE and revInternal_savePrefs In-Reply-To: References: Message-ID: On Fri, Nov 25, 2016 at 2:25 PM, Monte Goulding wrote: > It is unlikely that this message is actually bogging down the system. > Indeed this message is a performance optimisation to avoid saving the > preferences file multiple times in quick succession. > I'm not thinking cause, but there is a correlation :) (I've taught far to many statistics classes to make the implication :) In fact, the lack of implication was one of the "Big 3" I wanted them to leave the class with . . .) On Fri, Nov 25, 2016 at 2:50 PM, J. Landman Gay wrote: > I'm not seeing it. How long is the script? Does it happen on scripts with > fewer lines? Not even 6k lines . . . :) [now that's odd; I had thought that this one was over 10k . . . but I cleaned commented out cruft that had accumulated a few weeks ago] -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From roger.e.eller at sealedair.com Fri Nov 25 21:16:23 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 25 Nov 2016 21:16:23 -0500 Subject: JavaScript + LC HTML5 = LiveCode.js In-Reply-To: References: Message-ID: On Nov 25, 2016 11:03 AM, "Richard Gaskin" wrote: > > Roger Eller wrote: > > > Back when we had the RevWeb plugin, my browser based apps just worked. > > That's exactly where a standalone is every bit as valuable as Mark was suggesting........... > > I can't say enough good things about LC's ability to run downloaded stacks. It's one of the most powerful features in the engine, and perhaps the most under-appreciated. > > It's nearly everything you want with browser-based delivery, but able to handle app designs that go far beyond the browser, with richer features and optionally greater security as well. > > -- > Richard Gaskin So, since the days shortly following the death of our dear plugin, I have re-factored all of my stacks to be delivered to a custom client exe. I even utilize LiveCode server. It's a little symphony of code and communication between standalone, stacks, and server scripts. ~Roger From jacque at hyperactivesw.com Fri Nov 25 22:17:44 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 25 Nov 2016 21:17:44 -0600 Subject: molassus IDE and revInternal_savePrefs In-Reply-To: References: Message-ID: On 11/25/16 6:11 PM, Dr. Hawkins wrote: > On Fri, Nov 25, 2016 at 2:50 PM, J. Landman Gay > wrote: > >> I'm not seeing it. How long is the script? Does it happen on scripts with >> fewer lines? > > Not even 6k lines . . . :) I think that's long. See if it happens with a script only a couple/few hundred lines. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bogdanoff at me.com Sat Nov 26 03:23:33 2016 From: bogdanoff at me.com (Peter Bogdanoff) Date: Sat, 26 Nov 2016 00:23:33 -0800 Subject: Lock Screen command not locking the screen Message-ID: I?m going to another card and I want the screen to lock while controls on the this second card are being worked on: old controls deleted, new fields and graphics created, an image loaded from a remote server and the like. I set the lockScreen to true and then issue the commands to go to the other card and do the work. However, I?m seeing the bits and pieces happening in real time, not a clean show as I would like. Am I missing something? Should I expect otherwise? Peter Bogdanoff From MikeKerner at roadrunner.com Sat Nov 26 08:55:10 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 26 Nov 2016 08:55:10 -0500 Subject: Lock Screen command not locking the screen In-Reply-To: References: Message-ID: We'll probably need more of a look at your code and stack. On Sat, Nov 26, 2016 at 3:23 AM, Peter Bogdanoff wrote: > I?m going to another card and I want the screen to lock while controls on > the this second card are being worked on: old controls deleted, new fields > and graphics created, an image loaded from a remote server and the like. > > I set the lockScreen to true and then issue the commands to go to the > other card and do the work. However, I?m seeing the bits and pieces > happening in real time, not a clean show as I would like. > > Am I missing something? Should I expect otherwise? > > Peter Bogdanoff > _______________________________________________ > use-livecode mailing list > use-livecode 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 Sat Nov 26 10:17:23 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 26 Nov 2016 17:17:23 +0200 Subject: Is there a mapping table for all rawKeyUp Codes? In-Reply-To: <8D6F207F-FE38-4BBA-BB9C-5227C2477729@livecode.com> References: <00c301d24670$2ac523d0$804f6b70$@kestner.de> <8D6F207F-FE38-4BBA-BB9C-5227C2477729@livecode.com> Message-ID: <32445699-d64b-b42d-440c-b88eb3b1a31e@gmail.com> http://forums.livecode.com/viewtopic.php?f=7&t=28395 Better than nothing . . . but a long, long way from ideal. Richmond. On 24.11.2016 20:31, Mark Waddingham wrote: > Hi Tiemo, > > If you search for 'PlatformKeyCode' in this file: > > https://github.com/livecode/livecode/blob/develop/engine/src/platform.h > > It should give you what you need. > > Warmest Regards, > > Mark. > > Sent from my iPhone > >> On 24 Nov 2016, at 16:31, Tiemo Hollmann TB wrote: >> >> Hello, >> >> since keyUp doesn't works anymore as it should on windows in LC 7/8 (see my >> previous post) I have to workaround with rawKeyUp. >> >> Does anybody has a togo mapping table of the rawkeyup codes to the real >> chars? If not I have to build it myself by testing each char. >> >> 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 jacque at hyperactivesw.com Sat Nov 26 11:01:36 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 26 Nov 2016 10:01:36 -0600 Subject: Lock Screen command not locking the screen In-Reply-To: References: Message-ID: <158a15ed300.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> If you are looking the screen and issuing a "go" command, LC is behaving as expected. The screen is always unlocked on a card change. To do things before the card is displayed, use a preopencard handler to set things up. Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 26, 2016 2:25:45 AM Peter Bogdanoff wrote: > I?m going to another card and I want the screen to lock while controls on > the this second card are being worked on: old controls deleted, new fields > and graphics created, an image loaded from a remote server and the like. > > I set the lockScreen to true and then issue the commands to go to the other > card and do the work. However, I?m seeing the bits and pieces happening in > real time, not a clean show as I would like. > > Am I missing something? Should I expect otherwise? > > Peter Bogdanoff > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Sat Nov 26 12:14:26 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 26 Nov 2016 09:14:26 -0800 Subject: molassus IDE and revInternal_savePrefs In-Reply-To: References: Message-ID: On Fri, Nov 25, 2016 at 7:17 PM, J. Landman Gay wrote: > I think that's long. See if it happens with a script only a couple/few > hundred lines. I can't actually test for this; it comes and goes. When it happens, though, I seem to be waiting on a breakpoint in one of the 6k line main scripts. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dunbarx at aol.com Sat Nov 26 14:03:06 2016 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sat, 26 Nov 2016 14:03:06 -0500 Subject: Lock Screen command not locking the screen In-Reply-To: Message-ID: <158a204fdf1-3fff-8e9b@webprd-a78.mail.aol.com> Hi. I make a new stack with two cards. I make a field on cd 2. I put this in a button script on cd 1: on mouseUp -- lock screen go cd 2 wait 20 put random(999) into fld 1 wait 20 put random(999) into fld 1 end mouseUp You see the new numbers appear. But if you lock the screen, you do not. What is the difference between this stack and yours? Craig Newman -----Original Message----- From: Mike Kerner To: How to use LiveCode Sent: Sat, Nov 26, 2016 8:57 am Subject: Re: Lock Screen command not locking the screen We'll probably need more of a look at your code and stack.On Sat, Nov 26, 2016 at 3:23 AM, Peter Bogdanoff wrote:> I?m going to another card and I want the screen to lock while controls on> the this second card are being worked on: old controls deleted, new fields> and graphics created, an image loaded from a remote server and the like.>> I set the lockScreen to true and then issue the commands to go to the> other card and do the work. However, I?m seeing the bits and pieces> happening in real time, not a clean show as I would like.>> Am I missing something? Should I expect otherwise?>> Peter Bogdanoff> _______________________________________________> use-livecode mailing list> use-livecode 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 EarthOn 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 listuse-livecode at lists.runrev.comPlease visit this url to subscribe, unsubscribe and manage your subscription preferences:http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sat Nov 26 16:26:44 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 26 Nov 2016 15:26:44 -0600 Subject: Lock Screen command not locking the screen In-Reply-To: <158a204fdf1-3fff-8e9b@webprd-a78.mail.aol.com> References: <158a204fdf1-3fff-8e9b@webprd-a78.mail.aol.com> Message-ID: <175b7b5b-1347-823d-0412-4f986e67f392@hyperactivesw.com> On 11/26/16 1:03 PM, dunbarx at aol.com wrote: > on mouseUp > -- lock screen > go cd 2 > wait 20 > put random(999) into fld 1 > wait 20 > put random(999) into fld 1 > end mouseUp > > > > You see the new numbers appear. But if you lock the screen, you do not. You're right, and I misinformed the list. I was thinking of how visual effects work with "go". I hate when that happens. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From harrison at all-auctions.com Sat Nov 26 19:48:55 2016 From: harrison at all-auctions.com (Rick Harrison) Date: Sat, 26 Nov 2016 19:48:55 -0500 Subject: Serving Videos with LC/iRev In-Reply-To: <32445699-d64b-b42d-440c-b88eb3b1a31e@gmail.com> References: <00c301d24670$2ac523d0$804f6b70$@kestner.de> <8D6F207F-FE38-4BBA-BB9C-5227C2477729@livecode.com> <32445699-d64b-b42d-440c-b88eb3b1a31e@gmail.com> Message-ID: Hi there, I have a video I want to serve from an LC/iRev Server. I want to do it from within an iRev script on the LC Server so that the URL of the video is hidden in the code from the user if possible. Basically I want people who pay me to see my video to be able to view my video, but I don?t want them to be able to easily find the URL, by looking at the source code, and start giving it out to their friends for free. Suggestions? Thanks in advance! Rick From m.schonewille at economy-x-talk.com Sat Nov 26 21:09:03 2016 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 27 Nov 2016 03:09:03 +0100 Subject: Serving Videos with LC/iRev In-Reply-To: References: <00c301d24670$2ac523d0$804f6b70$@kestner.de> <8D6F207F-FE38-4BBA-BB9C-5227C2477729@livecode.com> <32445699-d64b-b42d-440c-b88eb3b1a31e@gmail.com> Message-ID: <8d8d47c5-5e1c-888e-c9c1-31d26ad75bb7@economy-x-talk.com> Instead of hiding the URL, you could write a script that creates a key depending on user credentials and a unique number, say the time, and add it to the URL. The code should follow some some rules, e.g. the last part of the code could be a hash. Encrypt the information in your app and decrypt it on the server. If the user credentials are correct and the unique code is correct and hasn't been used yet, send the video, and reject the request otherwise. 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 Op 27-Nov-16 om 01:48 schreef Rick Harrison: > Hi there, > > I have a video I want to serve from > an LC/iRev Server. I want to do it > from within an iRev script on the > LC Server so that the URL of the > video is hidden in the code from the > user if possible. > > Basically I want people who pay me to > see my video to be able to view my > video, but I don?t want them to be > able to easily find the URL, by looking > at the source code, and start giving it > out to their friends for free. > > Suggestions? > > Thanks in advance! > > Rick > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From harrison at all-auctions.com Sat Nov 26 21:44:18 2016 From: harrison at all-auctions.com (Rick Harrison) Date: Sat, 26 Nov 2016 21:44:18 -0500 Subject: Serving Videos with LC/iRev In-Reply-To: <8d8d47c5-5e1c-888e-c9c1-31d26ad75bb7@economy-x-talk.com> References: <00c301d24670$2ac523d0$804f6b70$@kestner.de> <8D6F207F-FE38-4BBA-BB9C-5227C2477729@livecode.com> <32445699-d64b-b42d-440c-b88eb3b1a31e@gmail.com> <8d8d47c5-5e1c-888e-c9c1-31d26ad75bb7@economy-x-talk.com> Message-ID: <91685067-037F-407C-A878-B1B7D88F7114@all-auctions.com> Hi Mark, That sounds good except that the user is purchasing from me through a third party and I have no good way of validating. I can attach a number to the URL but that same number will be on every unit purchased and visible to the user. I can?t make it unique for every unit purchased. That?s why I?d rather jump a couple of URL?s and have the last one hidden or unknown to the user. Other ideas? Thanks, Rick > On Nov 26, 2016, at 9:09 PM, Mark Schonewille wrote: > > Instead of hiding the URL, you could write a script that creates a key depending on user credentials and a unique number, say the time, and add it to the URL. The code should follow some some rules, e.g. the last part of the code could be a hash. Encrypt the information in your app and decrypt it on the server. If the user credentials are correct and the unique code is correct and hasn't been used yet, send the video, and reject the request otherwise. > > Kind regards, > > Mark Schonewille > http://economy-x-talk.com > https://www.facebook.com/marksch From revdev at pdslabs.net Sat Nov 26 22:29:19 2016 From: revdev at pdslabs.net (Phil Davis) Date: Sat, 26 Nov 2016 19:29:19 -0800 Subject: Serving Videos with LC/iRev In-Reply-To: <91685067-037F-407C-A878-B1B7D88F7114@all-auctions.com> References: <00c301d24670$2ac523d0$804f6b70$@kestner.de> <8D6F207F-FE38-4BBA-BB9C-5227C2477729@livecode.com> <32445699-d64b-b42d-440c-b88eb3b1a31e@gmail.com> <8d8d47c5-5e1c-888e-c9c1-31d26ad75bb7@economy-x-talk.com> <91685067-037F-407C-A878-B1B7D88F7114@all-auctions.com> Message-ID: <57ba3105-8766-43d9-776e-d24fd75b8d33@pdslabs.net> Hi Rick, You can alter URLs using a .htaccess file on the server. e.g. When a person goes to "http://my.site.com/1234/video.html" they see "http://my.site.com/show" in the browser URL box. I've never done it but I'm sure someone here could comment on this approach. I'm thinking there's probably some kind of dance the server code can do where if a person tries to access the video using that final URL directly, it would refuse. Or maybe the server would simply return a 404. Not sure. Do you receive the emails of purchasers? Could you ask them to enter it before watching? That wouldn't prevent abuse but at least you could track likely suspects. Phil Davis On 11/26/16 6:44 PM, Rick Harrison wrote: > Hi Mark, > > That sounds good except that the user is purchasing from me through a third party > and I have no good way of validating. I can attach a number to the URL but that > same number will be on every unit purchased and visible to the user. I can?t make > it unique for every unit purchased. That?s why I?d rather jump a couple of URL?s and > have the last one hidden or unknown to the user. > > Other ideas? > > Thanks, > > Rick > >> On Nov 26, 2016, at 9:09 PM, Mark Schonewille wrote: >> >> Instead of hiding the URL, you could write a script that creates a key depending on user credentials and a unique number, say the time, and add it to the URL. The code should follow some some rules, e.g. the last part of the code could be a hash. Encrypt the information in your app and decrypt it on the server. If the user credentials are correct and the unique code is correct and hasn't been used yet, send the video, and reject the request otherwise. >> >> Kind regards, >> >> Mark Schonewille >> http://economy-x-talk.com >> https://www.facebook.com/marksch > _______________________________________________ > use-livecode mailing list > use-livecode 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 stephenREVOLUTION2 at barncard.com Sat Nov 26 22:57:26 2016 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sat, 26 Nov 2016 19:57:26 -0800 Subject: Serving Videos with LC/iRev In-Reply-To: References: <00c301d24670$2ac523d0$804f6b70$@kestner.de> <8D6F207F-FE38-4BBA-BB9C-5227C2477729@livecode.com> <32445699-d64b-b42d-440c-b88eb3b1a31e@gmail.com> Message-ID: On Sat, Nov 26, 2016 at 4:48 PM, Rick Harrison wrote: > > I have a video I want to serve from > an LC/iRev Server. I want to do it > from within an iRev script on the > LC Server so that the URL of the > video is hidden in the code from the > user if possible. Look into the JW player ... it calls javascript but you can imbed it into a LC server page. I've made an online player that looks at the contents of a folder, gets the file-list, and creates the display page. I eventually want to integrate it into a RevBurner system so right now it's for personal stuff and proof of performance. But it also can be made to work with a fixed playlist: *file: "joni_on_first_album_Croz.m4v",image: "joni-cbc.png",* *title: "01  joni on first album Croz.m4v"* The JW player can be branded if you pay a little. Here's my player in situ, business code in Livecode inserting javascript into the presentation layer: http://media.barncard.com/video/joni_on_first_album/audio.irev Stephen Barncard - Sebastopol Ca. USA - mixstream.org From stephenREVOLUTION2 at barncard.com Sat Nov 26 23:02:28 2016 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sat, 26 Nov 2016 20:02:28 -0800 Subject: Serving Videos with LC/iRev In-Reply-To: References: <00c301d24670$2ac523d0$804f6b70$@kestner.de> <8D6F207F-FE38-4BBA-BB9C-5227C2477729@livecode.com> <32445699-d64b-b42d-440c-b88eb3b1a31e@gmail.com> Message-ID: On Sat, Nov 26, 2016 at 7:57 PM, stephen barncard < stephenREVOLUTION2 at barncard.com> wrote: > Here's my player in situ, business code in Livecode inserting javascript > into the presentation layer: > > http://media.barncard.com/video/joni_on_first_album/audio.irev > this particular player makes no attempt to obfuscate the location of the files in source but you could put the files in a protected folder, they don't have to be in the same directory as the 'player'. Stephen Barncard - Sebastopol Ca. USA - mixstream.org From lfredricks at proactive-intl.com Sun Nov 27 02:56:52 2016 From: lfredricks at proactive-intl.com (Lynn Fredricks) Date: Sat, 26 Nov 2016 23:56:52 -0800 Subject: Valentina Reports for LiveCode, Server & VDN 50% off Black Friday - Cyber Monday Message-ID: <090E63BD4A554B3281C5D089532DEBB3@GATEWAY> Hello all, I guess since so many of the existing third party tools are in the LiveCode store you don't hear much about those that aren't. Valentina Reports for LiveCode, Valentina Server (with native interface with LiveCode, and incorporating Reports, Valentina DB Server and Valentina SQLite Server) and Valentina Developer Network (deploy Valentina Server to your customers) areall 50% off for Black Friday through Cyber Monday. If you need reporting that works with many database sources and can scale up from local app use to client-server or server-only, you'll find our solution very cost effective and well supported. All products come with 12 months of updates and for the most part, get updated at least monthly. Valentina Server also runs on Raspbian (for ARM7 Raspberry PI), so we have some users who are deploying little low powered boxes to their customers with our powerful server. Best regards, Lynn Fredricks Paradigma Software http://www.paradigmasoft.com Valentina SQL Server: The Ultra-fast, Royalty Free Database Server From richmondmathewson at gmail.com Sun Nov 27 06:43:59 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 27 Nov 2016 13:43:59 +0200 Subject: [OT] Hosed Xubuntu system In-Reply-To: <1479676814188-4710465.post@n4.nabble.com> References: <0EFB2559-A5B4-4F0B-B770-E6F9D98D3407@hindu.org> <1479639132133-4710448.post@n4.nabble.com> <1479676814188-4710465.post@n4.nabble.com> Message-ID: I turned on my Xubuntu system this morning and found *nothing*, so I started the machine up from a GParted boot disk and found that not only had my boot disk been deleted, all the files on my other 2 hard drives had vanished and were not recoverable by GParted. I would be most grateful for any advice in this respect. Richmond. From MikeKerner at roadrunner.com Sun Nov 27 07:32:08 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 27 Nov 2016 07:32:08 -0500 Subject: Valentina Reports for LiveCode, Server & VDN 50% off Black Friday - Cyber Monday In-Reply-To: <090E63BD4A554B3281C5D089532DEBB3@GATEWAY> References: <090E63BD4A554B3281C5D089532DEBB3@GATEWAY> Message-ID: I'm so glad I discovered Valentina :-) On Sun, Nov 27, 2016 at 2:56 AM, Lynn Fredricks < lfredricks at proactive-intl.com> wrote: > Hello all, > > I guess since so many of the existing third party tools are in the LiveCode > store you don't hear much about those that aren't. > > Valentina Reports for LiveCode, Valentina Server (with native interface > with > LiveCode, and incorporating Reports, Valentina DB Server and Valentina > SQLite Server) and Valentina Developer Network (deploy Valentina Server to > your customers) areall 50% off for Black Friday through Cyber Monday. > > If you need reporting that works with many database sources and can scale > up > from local app use to client-server or server-only, you'll find our > solution > very cost effective and well supported. All products come with 12 months of > updates and for the most part, get updated at least monthly. Valentina > Server also runs on Raspbian (for ARM7 Raspberry PI), so we have some users > who are deploying little low powered boxes to their customers with our > powerful server. > > Best regards, > > Lynn Fredricks > Paradigma Software > http://www.paradigmasoft.com > > Valentina SQL Server: The Ultra-fast, Royalty Free Database Server > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Sun Nov 27 07:32:33 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 27 Nov 2016 07:32:33 -0500 Subject: Valentina Reports for LiveCode, Server & VDN 50% off Black Friday - Cyber Monday In-Reply-To: References: <090E63BD4A554B3281C5D089532DEBB3@GATEWAY> Message-ID: ok, maybe I didn't discover it, but I found out about it On Sun, Nov 27, 2016 at 7:32 AM, Mike Kerner wrote: > I'm so glad I discovered Valentina :-) > > On Sun, Nov 27, 2016 at 2:56 AM, Lynn Fredricks < > lfredricks at proactive-intl.com> wrote: > >> Hello all, >> >> I guess since so many of the existing third party tools are in the >> LiveCode >> store you don't hear much about those that aren't. >> >> Valentina Reports for LiveCode, Valentina Server (with native interface >> with >> LiveCode, and incorporating Reports, Valentina DB Server and Valentina >> SQLite Server) and Valentina Developer Network (deploy Valentina Server to >> your customers) areall 50% off for Black Friday through Cyber Monday. >> >> If you need reporting that works with many database sources and can scale >> up >> from local app use to client-server or server-only, you'll find our >> solution >> very cost effective and well supported. All products come with 12 months >> of >> updates and for the most part, get updated at least monthly. Valentina >> Server also runs on Raspbian (for ARM7 Raspberry PI), so we have some >> users >> who are deploying little low powered boxes to their customers with our >> powerful server. >> >> Best regards, >> >> Lynn Fredricks >> Paradigma Software >> http://www.paradigmasoft.com >> >> Valentina SQL Server: The Ultra-fast, Royalty Free Database Server >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 ilola.antti at gmail.com Sun Nov 27 07:54:36 2016 From: ilola.antti at gmail.com (Antti Ilola) Date: Sun, 27 Nov 2016 14:54:36 +0200 Subject: Is there a mapping table for all rawKeyUp Codes? Message-ID: I found this program, maybe useful. https://manytricks.com/keycodes/ Antti ---------- Edelleenl?hetetty viesti ---------- > From: Richmond > To: How to use LiveCode > Cc: > Date: Sat, 26 Nov 2016 17:17:23 +0200 > Subject: Re: Is there a mapping table for all rawKeyUp Codes? > http://forums.livecode.com/viewtopic.php?f=7&t=28395 > > Better than nothing . . . but a long, long way from ideal. > > Richmond. > > On 24.11.2016 20:31, Mark Waddingham wrote: > >> Hi Tiemo, >> >> If you search for 'PlatformKeyCode' in this file: >> >> https://github.com/livecode/livecode/blob/develop/engine/src/platform.h >> >> It should give you what you need. >> >> Warmest Regards, >> >> Mark. >> >> Sent from my iPhone >> >> On 24 Nov 2016, at 16:31, Tiemo Hollmann TB wrote: >>> >>> Hello, >>> >>> since keyUp doesn't works anymore as it should on windows in LC 7/8 >>> (see my >>> previous post) I have to workaround with rawKeyUp. >>> >>> Does anybody has a togo mapping table of the rawkeyup codes to the real >>> chars? If not I have to build it myself by testing each char. >>> >>> 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 >> > > Am I missing something? Should I expect otherwise? >> >> Peter Bogdanoff >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From markclark at mac.com Sun Nov 27 08:18:48 2016 From: markclark at mac.com (Mark Clark) Date: Sun, 27 Nov 2016 07:18:48 -0600 Subject: use-livecode Digest, Vol 158, Issue 48 In-Reply-To: References: Message-ID: <67707E6E-0D84-41F6-8B3F-B596F6343FAF@mac.com> You might consider serving your video files from an S3 compatible object server in order to generate pre-signed URLs. I use minio, it?s free open source and very simple to configure. The micro service version is a small binary that works on a standard host using a file system backend. Pre-signed URL generation is trivial using shell and minio client (free cli client distributed with Minio). Minio client can work against any S3 compatible object server as well as the FOSS Minio server. If your user has a persistent account of some sort you might generate a new pre-signed URL at any time. You can also encrypt the link using a token that you send to your user via sms, etc if you require 2 part auth. Below is from an applescript, but it?s easy to use the shell command with LiveCode--For desktop drag and drop sharing of files I use an applescript droplet that uploads a file to the server,generates a pre-signed URL, and pastes it into a new mail message. Part of the meat of it here is the line below. I can change that expire to anything up to 7 days (S3 standard) or lower using minutes, etc. If your videos are 30 minutes the expire might be set to --expire=45m The ?play/mark? is an alias of my dev object host that I keep in my client config files set minioReturn to (do shell script "/usr/local/bin/mc share download --quiet --expire=120h play/mark" & theFileNametoUpLoad & "|tail -n +2") Minio can be found here: https://minio.io mark > On Nov 27, 2016, at 5:00 AM, use-livecode-request at lists.runrev.com wrote: > > Basically I want people who pay me to > see my video to be able to view my > video, but I don?t want them to be > able to easily find the URL, by looking > at the source code, and start giving it > out to their friends for free. > > Suggestions? From m.schonewille at economy-x-talk.com Sun Nov 27 08:44:38 2016 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 27 Nov 2016 14:44:38 +0100 Subject: [ANN] Last chance to purchase before the holidays - Programming LiveCode for the Real Beginner Message-ID: Hi, If you want to be sure that the book Programming LiveCode for the Real Beginner arrives at your home before the start of the holidays, you'll need to order it now. Books that are purchased today or tomorrow will be shipped on Wednesday. That should give the postal services sufficient time to deliver the book before the holidays. You can still purchase the book after tomorrow, but we won't guarantee delivery before the end of the year. You can order the book at http://tinyurl.com/livecodebook and more info is available at http://tinyurl.com/livecodeblog -- 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 MikeKerner at roadrunner.com Sun Nov 27 09:08:57 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 27 Nov 2016 09:08:57 -0500 Subject: Determine if script is running Message-ID: If a beginner was asking this question, I would skip the thread and move on because...come on. LC is single-threaded. HOWEVER, wait with messages brings up an interesting problem - how to tell if a script that was waiting...with messages is waiting, or is dead, perhaps exited. I don't really want to do the compile/launch workaround, because I want to be able to have Bad Things trip the debugger, which is hard to do with standalones. I suppose I could have the script update a global each time it begins a wait, and then have the cron script look for that, and if we're past a certain time, assume that the wait is over, but that assumes I don't introduce some error, later and forget to update the variable. -- 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 mark at livecode.com Sun Nov 27 09:46:57 2016 From: mark at livecode.com (Mark Waddingham) Date: Sun, 27 Nov 2016 14:46:57 +0000 Subject: Determine if script is running In-Reply-To: References: Message-ID: The waitDepth tells you how many nested wait calls are (recursively) in progress - that might be useful for what you need. Warmest regards, Mark. Sent from my iPhone > On 27 Nov 2016, at 14:08, Mike Kerner wrote: > > If a beginner was asking this question, I would skip the thread and move on > because...come on. LC is single-threaded. > > HOWEVER, wait with messages brings up an interesting problem - how to tell > if a script that was waiting...with messages is waiting, or is dead, > perhaps exited. I don't really want to do the compile/launch workaround, > because I want to be able to have Bad Things trip the debugger, which is > hard to do with standalones. > > I suppose I could have the script update a global each time it begins a > wait, and then have the cron script look for that, and if we're past a > certain time, assume that the wait is over, but that assumes I don't > introduce some error, later and forget to update the variable. > > -- > 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 harrison at all-auctions.com Sun Nov 27 10:03:16 2016 From: harrison at all-auctions.com (Rick Harrison) Date: Sun, 27 Nov 2016 10:03:16 -0500 Subject: Serving Videos with LC/iRev In-Reply-To: <57ba3105-8766-43d9-776e-d24fd75b8d33@pdslabs.net> References: <00c301d24670$2ac523d0$804f6b70$@kestner.de> <8D6F207F-FE38-4BBA-BB9C-5227C2477729@livecode.com> <32445699-d64b-b42d-440c-b88eb3b1a31e@gmail.com> <8d8d47c5-5e1c-888e-c9c1-31d26ad75bb7@economy-x-talk.com> <91685067-037F-407C-A878-B1B7D88F7114@all-auctions.com> <57ba3105-8766-43d9-776e-d24fd75b8d33@pdslabs.net> Message-ID: <194925FF-0916-459D-B2C3-ADE63B253BB2@all-auctions.com> Hi Phil, One can hide real URLs in the browser URL box, and I?ve done that before. The problem is that if someone looks at the page source code that?s in the browser, then the real URL is revealed. I need a language that doesn?t reveal it?s source code in the browser. I thought that iRev/LC tags might be able to do that for me. Unfortunately, I do not get any email from the purchasers so there isn?t a good way to track/tag real customers. What I need is for real users to be able to get their content and to not be able to share that information with others. The others who haven?t paid shouldn?t be able to know the correct URL to use. Thank you for your efforts! Rick > On Nov 26, 2016, at 10:29 PM, Phil Davis wrote: > > Hi Rick, > > You can alter URLs using a .htaccess file on the server. e.g. When a person goes to "http://my.site.com/1234/video.html " they see "http://my.site.com/show " in the browser URL box. I've never done it but I'm sure someone here could comment on this approach. > > I'm thinking there's probably some kind of dance the server code can do where if a person tries to access the video using that final URL directly, it would refuse. Or maybe the server would simply return a 404. Not sure. > > Do you receive the emails of purchasers? Could you ask them to enter it before watching? That wouldn't prevent abuse but at least you could track likely suspects. > > Phil Davis From m.schonewille at economy-x-talk.com Sun Nov 27 10:06:20 2016 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 27 Nov 2016 16:06:20 +0100 Subject: Serving Videos with LC/iRev In-Reply-To: <91685067-037F-407C-A878-B1B7D88F7114@all-auctions.com> References: <00c301d24670$2ac523d0$804f6b70$@kestner.de> <8D6F207F-FE38-4BBA-BB9C-5227C2477729@livecode.com> <32445699-d64b-b42d-440c-b88eb3b1a31e@gmail.com> <8d8d47c5-5e1c-888e-c9c1-31d26ad75bb7@economy-x-talk.com> <91685067-037F-407C-A878-B1B7D88F7114@all-auctions.com> Message-ID: <21b467da-48d6-364c-9cb4-1e04d2dd8404@economy-x-talk.com> Hi Rick, That third party must have an API for it. If not, you need to change the vendor. I can't be that e.g. Apple sells music, while everybody is able to download the content once it has been bought by one person. Can you tell the name of that third party? 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 Op 27-Nov-16 om 03:44 schreef Rick Harrison: > Hi Mark, > > That sounds good except that the user is purchasing from me through a third party > and I have no good way of validating. I can attach a number to the URL but that > same number will be on every unit purchased and visible to the user. I can?t make > it unique for every unit purchased. That?s why I?d rather jump a couple of URL?s and > have the last one hidden or unknown to the user. > > Other ideas? > > Thanks, > > Rick > >> On Nov 26, 2016, at 9:09 PM, Mark Schonewille wrote: >> >> Instead of hiding the URL, you could write a script that creates a key depending on user credentials and a unique number, say the time, and add it to the URL. The code should follow some some rules, e.g. the last part of the code could be a hash. Encrypt the information in your app and decrypt it on the server. If the user credentials are correct and the unique code is correct and hasn't been used yet, send the video, and reject the request otherwise. >> >> Kind regards, >> >> Mark Schonewille >> http://economy-x-talk.com >> https://www.facebook.com/marksch > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From harrison at all-auctions.com Sun Nov 27 10:17:41 2016 From: harrison at all-auctions.com (Rick Harrison) Date: Sun, 27 Nov 2016 10:17:41 -0500 Subject: Serving Videos with LC/iRev In-Reply-To: References: <00c301d24670$2ac523d0$804f6b70$@kestner.de> <8D6F207F-FE38-4BBA-BB9C-5227C2477729@livecode.com> <32445699-d64b-b42d-440c-b88eb3b1a31e@gmail.com> Message-ID: <2D4DC872-0657-4D79-A8BD-62F0392FAF74@all-auctions.com> Hi Stephen, Thanks for the link to the video player. However when I look at the page source code I see: I altered the key here for security reasons before posting so it won?t work for anyone, just in case. Anyway I?m looking for a way to prevent non-paying user from seeing the correct URL to the video content. I?m not sure this will accomplish that as I was certainly able to view it here. Thank you for your time and suggestions! Rick > On Nov 26, 2016, at 10:57 PM, stephen barncard wrote: > > On Sat, Nov 26, 2016 at 4:48 PM, Rick Harrison > wrote: > >> >> I have a video I want to serve from >> an LC/iRev Server. I want to do it >> from within an iRev script on the >> LC Server so that the URL of the >> video is hidden in the code from the >> user if possible. > > > Look into the JW player ... it calls javascript > but you can imbed it into a LC server page. I've made an online player that > looks at the contents of a folder, gets the file-list, and creates the > display page. > > I eventually want to integrate it into a RevBurner system so right now > it's for personal stuff and proof of performance. But it also can be made > to work with a fixed playlist: > > > *file: "joni_on_first_album_Croz.m4v",image: "joni-cbc.png",* > *title: "01  joni on first album Croz.m4v"* > > > The JW player can be branded if you pay a little. > > Here's my player in situ, business code in Livecode inserting javascript > into the presentation layer: > > http://media.barncard.com/video/joni_on_first_album/audio.irev > > Stephen Barncard - Sebastopol Ca. USA - > mixstream.org > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From harrison at all-auctions.com Sun Nov 27 10:37:28 2016 From: harrison at all-auctions.com (Rick Harrison) Date: Sun, 27 Nov 2016 10:37:28 -0500 Subject: Serving Videos with LC/iRev In-Reply-To: <21b467da-48d6-364c-9cb4-1e04d2dd8404@economy-x-talk.com> References: <00c301d24670$2ac523d0$804f6b70$@kestner.de> <8D6F207F-FE38-4BBA-BB9C-5227C2477729@livecode.com> <32445699-d64b-b42d-440c-b88eb3b1a31e@gmail.com> <8d8d47c5-5e1c-888e-c9c1-31d26ad75bb7@economy-x-talk.com> <91685067-037F-407C-A878-B1B7D88F7114@all-auctions.com> <21b467da-48d6-364c-9cb4-1e04d2dd8404@economy-x-talk.com> Message-ID: <27792ED7-1020-488E-AC1D-E608B825850E@all-auctions.com> Hi Mark, Well I was trying to talk in black-box terms here, but I can see that isn?t sufficient information for you as inquiring minds always want to know. It really shouldn?t hurt if I reveal the third party anyway. I have an enhanced eBook with an embedded video in it. I was able to publish it to Apple?s iTunes store in the EPub 3 format just fine, without having to resort to using iBooks Author to create the book. The plus side of that is I don?t have an exclusive obligation to Apple if I do it that way, and I can publish the book elsewhere. So the next good place to publish the eBook would be to Amazon.com . Unfortunately, they want their books to use the .mobi format. That format does not allow embedded content such as videos etc. You have only one way to share enhanced content and that?s by giving out a URL link to one?s web content. That URL is a fixed link in the book once it?s published, and will always go to the same place. So yes, I could painfully decide not to publish to Amazon.com but I?d rather not have to not use them as they are pretty big. Now you can understand my problem and my attempted solution. Thank you for your input! Rick > On Nov 27, 2016, at 10:06 AM, Mark Schonewille wrote: > > Hi Rick, > > That third party must have an API for it. If not, you need to change the vendor. I can't be that e.g. Apple sells music, while everybody is able to download the content once it has been bought by one person. Can you tell the name of that third party? > > Kind regards, > > Mark Schonewille > http://economy-x-talk.com > https://www.facebook.com/marksch From stephen at barncard.com Sun Nov 27 12:00:03 2016 From: stephen at barncard.com (Stephen Barncard) Date: Sun, 27 Nov 2016 09:00:03 -0800 Subject: Serving Videos with LC/iRev In-Reply-To: <2D4DC872-0657-4D79-A8BD-62F0392FAF74@all-auctions.com> References: <00c301d24670$2ac523d0$804f6b70$@kestner.de> <8D6F207F-FE38-4BBA-BB9C-5227C2477729@livecode.com> <32445699-d64b-b42d-440c-b88eb3b1a31e@gmail.com> <2D4DC872-0657-4D79-A8BD-62F0392FAF74@all-auctions.com> Message-ID: Hi Rick, yes, yes, I know, I was plugging the player because it's so extensible and it uses a playlist, but there's ways to use Apache to allow local executables like livecode server (but not Joe Web User) to access directories ABOVE the website root from script..... and if any 'address' would be revealed, it would still be useless information as it would be inaccessible from the web. I remember one of the first 'web apps' did this, it was called 'Gallery'. All the photos were stored in a special directory above web root for a site. I think the answer might be in here. http://httpd.apache.org/docs/trunk/urlmapping.html a htaccess file can do a lot of things, including allowing livecode server to run in cgi-bin, another web-inaccessible place. just throwing some things out there. I think the answer will be pretty simple. On Sun, Nov 27, 2016 at 7:17 AM, Rick Harrison wrote: > Hi Stephen, > > Thanks for the link to the video player. > > However when I look at the page source code I see: > > > > > > I altered the key here for security reasons before posting so it won?t > work for anyone, just in case. > -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org From richmondmathewson at gmail.com Sun Nov 27 12:12:36 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 27 Nov 2016 19:12:36 +0200 Subject: Is there a mapping table for all rawKeyUp Codes? In-Reply-To: References: Message-ID: It is, indeed, useful . . . have just downloaded it and have it running. BUT: it is Macintosh only, AND, there is no way of telling from the app itself whether a particular code generated by a keyDown is Mac-specific or not. Richmond. On 11/27/16 2:54 PM, Antti Ilola wrote: > I found this program, maybe useful. > > https://manytricks.com/keycodes/ > > > Antti > > ---------- Edelleenl?hetetty viesti ---------- >> From: Richmond >> To: How to use LiveCode >> Cc: >> Date: Sat, 26 Nov 2016 17:17:23 +0200 >> Subject: Re: Is there a mapping table for all rawKeyUp Codes? >> http://forums.livecode.com/viewtopic.php?f=7&t=28395 >> >> Better than nothing . . . but a long, long way from ideal. >> >> Richmond. >> >> On 24.11.2016 20:31, Mark Waddingham wrote: >> >>> Hi Tiemo, >>> >>> If you search for 'PlatformKeyCode' in this file: >>> >>> https://github.com/livecode/livecode/blob/develop/engine/src/platform.h >>> >>> It should give you what you need. >>> >>> Warmest Regards, >>> >>> Mark. >>> >>> Sent from my iPhone >>> >>> On 24 Nov 2016, at 16:31, Tiemo Hollmann TB wrote: >>>> Hello, >>>> >>>> since keyUp doesn't works anymore as it should on windows in LC 7/8 >>>> (see my >>>> previous post) I have to workaround with rawKeyUp. >>>> >>>> Does anybody has a togo mapping table of the rawkeyup codes to the real >>>> chars? If not I have to build it myself by testing each char. >>>> >>>> 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 >>> >> Am I missing something? Should I expect otherwise? >>> Peter Bogdanoff >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bvlahos at mac.com Sun Nov 27 12:21:48 2016 From: bvlahos at mac.com (Bill Vlahos) Date: Sun, 27 Nov 2016 09:21:48 -0800 Subject: Mac Pro Touch Bar Message-ID: <7312CC21-72F6-49FB-AA80-7B8943C42D7F@mac.com> How can I program the new MacBook Pro Touch Bar? I?ll be getting my new MacBook Pro in a couple of days and I haven?t seen any discussion on the new touch bar. Does it show up as a display? Thanks, Bill Vlahos From lfredricks at proactive-intl.com Sun Nov 27 13:21:47 2016 From: lfredricks at proactive-intl.com (Lynn Fredricks) Date: Sun, 27 Nov 2016 10:21:47 -0800 Subject: Valentina Reports for LiveCode, Server & VDN 50% off Black Friday- Cyber Monday In-Reply-To: References: <090E63BD4A554B3281C5D089532DEBB3@GATEWAY> Message-ID: <40AEBB29FF774561886A662093B0543E@GATEWAY> > ok, maybe I didn't discover it, but I found out about it Thanks Mike! It is sometimes easy to overlook our products because we don't sell them through the LiveCode store. There are a number of third parties out there who should be trumpeting their solutions more. The more third party add-ons for LiveCode, the more attention it will receive as a platform. Third parties are like a secondary marketing force. Best regards, Lynn Fredricks Paradigma Software http://www.paradigmasoft.com Valentina SQL Server: The Ultra-fast, Royalty Free Database Server From brahma at hindu.org Sun Nov 27 15:02:17 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 27 Nov 2016 20:02:17 +0000 Subject: OT: Image Metadata Tagging Service Message-ID: <653625BD-1711-466F-84BF-920613A179B4@hindu.org> Way, way OT: Does anyone know of an image tagging service? Needs to be done by humans looking at images and entering IPTC data that is embedded into the image. use case: take 10,000(s) of images/art add tags, description, category. needs to be embedded in the image itself for full portability over the long term. Oddly I don't find anything available online. I have one in India, but I was thinking to look for others?If you know of anyone/company please reply off list. BR From jacque at hyperactivesw.com Sun Nov 27 15:39:59 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 27 Nov 2016 14:39:59 -0600 Subject: [OT] Hosed Xubuntu system In-Reply-To: References: <0EFB2559-A5B4-4F0B-B770-E6F9D98D3407@hindu.org> <1479639132133-4710448.post@n4.nabble.com> <1479676814188-4710465.post@n4.nabble.com> Message-ID: <2fffc1a6-3748-c96d-545f-a08af1520657@hyperactivesw.com> On 11/27/16 5:43 AM, Richmond Mathewson wrote: > I turned on my Xubuntu system this morning and found *nothing*, > > so I started the machine up from a GParted boot disk and found that not > only > > had my boot disk been deleted, all the files on my other 2 hard drives > had vanished > > and were not recoverable by GParted. > > I would be most grateful for any advice in this respect. Some malware does that. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From richmondmathewson at gmail.com Sun Nov 27 15:54:36 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 27 Nov 2016 22:54:36 +0200 Subject: [OT] Hosed Xubuntu system In-Reply-To: <2fffc1a6-3748-c96d-545f-a08af1520657@hyperactivesw.com> References: <0EFB2559-A5B4-4F0B-B770-E6F9D98D3407@hindu.org> <1479639132133-4710448.post@n4.nabble.com> <1479676814188-4710465.post@n4.nabble.com> <2fffc1a6-3748-c96d-545f-a08af1520657@hyperactivesw.com> Message-ID: <4c0fa0fd-db4a-b759-62a2-8d781bbe2c24@gmail.com> I am slowly recovering my stuff: estimated completion about 2 weeks . . . I was naive enough to think that backing up data onto other hard drives within the same computer was safe. I was unaware that there was malware for Linux :( Richmond. On 11/27/16 10:39 pm, J. Landman Gay wrote: > On 11/27/16 5:43 AM, Richmond Mathewson wrote: >> I turned on my Xubuntu system this morning and found *nothing*, >> >> so I started the machine up from a GParted boot disk and found that not >> only >> >> had my boot disk been deleted, all the files on my other 2 hard drives >> had vanished >> >> and were not recoverable by GParted. >> >> I would be most grateful for any advice in this respect. > > Some malware does that. > From roger.e.eller at sealedair.com Sun Nov 27 16:03:26 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Sun, 27 Nov 2016 16:03:26 -0500 Subject: [OT] Hosed Xubuntu system In-Reply-To: <4c0fa0fd-db4a-b759-62a2-8d781bbe2c24@gmail.com> References: <0EFB2559-A5B4-4F0B-B770-E6F9D98D3407@hindu.org> <1479639132133-4710448.post@n4.nabble.com> <1479676814188-4710465.post@n4.nabble.com> <2fffc1a6-3748-c96d-545f-a08af1520657@hyperactivesw.com> <4c0fa0fd-db4a-b759-62a2-8d781bbe2c24@gmail.com> Message-ID: Not as much as for Windows, but still some. https://en.wikipedia.org/wiki/Linux_malware On Sun, Nov 27, 2016 at 3:54 PM, Richmond Mathewson < richmondmathewson at gmail.com> wrote: > I am slowly recovering my stuff: estimated completion about 2 weeks . . . > > I was naive enough to think that backing up data onto other hard drives > within the same computer was safe. > > I was unaware that there was malware for Linux :( > > Richmond. > > On 11/27/16 10:39 pm, J. Landman Gay wrote: > >> On 11/27/16 5:43 AM, Richmond Mathewson wrote: >> >>> I turned on my Xubuntu system this morning and found *nothing*, >>> >>> so I started the machine up from a GParted boot disk and found that not >>> only >>> >>> had my boot disk been deleted, all the files on my other 2 hard drives >>> had vanished >>> >>> and were not recoverable by GParted. >>> >>> I would be most grateful for any advice in this respect. >>> >> >> Some malware does that. >> >> > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 27 20:08:36 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 28 Nov 2016 01:08:36 +0000 Subject: LC 8.1.2 Corrupts Color in JPEG? Message-ID: <9DA27B24-E058-4C6D-A43B-C9392ADB9546@hindu.org> I don't ever remembers seeing this before: 1) new stack in LC 8.1.2(RC2) 2) create image "imageToResize" 3) make button on mouseUp Answer file "choose an image" set the filename of img "imageToResize" to it end mouseUp Result: incoming green values in the JPEG are swapped out for red! what we would call in print "magenta pollution." see: http://wiki.hindu.org/screenshots/LC-corrupts_colors_in_JPEG.jpg FYI this is no subtle subjective change but a serious color values shift. color is the same immediately on import before and after any size changes by script. quality mode of the image object is set to "best" but has no effect. Color is corrupted Any clues? From lan.kc.macmail at gmail.com Sun Nov 27 23:28:01 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Mon, 28 Nov 2016 12:28:01 +0800 Subject: [OT] Hosed Xubuntu system In-Reply-To: <4c0fa0fd-db4a-b759-62a2-8d781bbe2c24@gmail.com> References: <0EFB2559-A5B4-4F0B-B770-E6F9D98D3407@hindu.org> <1479639132133-4710448.post@n4.nabble.com> <1479676814188-4710465.post@n4.nabble.com> <2fffc1a6-3748-c96d-545f-a08af1520657@hyperactivesw.com> <4c0fa0fd-db4a-b759-62a2-8d781bbe2c24@gmail.com> Message-ID: On Mon, Nov 28, 2016 at 4:54 AM, Richmond Mathewson wrote: > I am slowly recovering my stuff: estimated completion about 2 weeks . . . Ouch. But surely a better Disk Utility Tool would help reduce that. It's unlikely that the files are gone; especially if the computer was working last night. GParted seems to be a basic Disk Utility program, not a Disk Repair program. Here is a list of some that might help: http://www.techrepublic.com/blog/10-things/10-linux-rescue-tools-for-recovering-linux-windows-or-mac-machines/ > I was naive enough to think that backing up data onto other hard drives > within the same computer was safe. As above; it's more like that the catalog files and the 'structure' that points to all the 1 and 0's has been mangled but the actual files are still in their location and with a good Repair program can be retrieved - saving you well over a weeks worth of time. > I was unaware that there was malware for Linux :( > That has to be the quote of the Decade. From jacque at hyperactivesw.com Sun Nov 27 23:48:12 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 27 Nov 2016 22:48:12 -0600 Subject: LC 8.1.2 Corrupts Color in JPEG? In-Reply-To: <9DA27B24-E058-4C6D-A43B-C9392ADB9546@hindu.org> References: <9DA27B24-E058-4C6D-A43B-C9392ADB9546@hindu.org> Message-ID: On 11/27/16 7:08 PM, Sannyasin Brahmanathaswami wrote: > I don't ever remembers seeing this before: > > 1) new stack in LC 8.1.2(RC2) > > 2) create image "imageToResize" > > 3) make button > > on mouseUp > Answer file "choose an image" > set the filename of img "imageToResize" to it > end mouseUp > > Result: incoming green values in the JPEG are swapped out for red! Check the ink on the image. If it isn't srcCopy then the templateImage may have been changed. Do "reset the templateImage" from the message box. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From capellan2000 at gmail.com Mon Nov 28 06:13:52 2016 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 28 Nov 2016 07:13:52 -0400 Subject: Convert SVG to PNG using Browser Widget Message-ID: Hi All, Download the stack SVGToPNG_Draftv01.livecode (compressed in a small 6k download) attached to this message in the forum: http://forums.livecode.com/viewtopic.php?f=11&t=28384#p148944 It's just a first draft that must be improved in the javascript code and Livecode scripts. Ideally, the process of copying a svg as a png from the Browser Widget to a LiveCode stack should take a single click and offer more options, like resizing and cropping but these features will appear, eventually, if this stack is useful. Have a nice week! Al From peter.brett at livecode.com Mon Nov 28 06:39:08 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 28 Nov 2016 11:39:08 +0000 Subject: [ANN] This Week in LiveCode 61 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 #61 here: https://goo.gl/ryfZt1 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. Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From rjb at robelko.com Mon Nov 28 07:17:00 2016 From: rjb at robelko.com (Robert Brenstein) Date: Mon, 28 Nov 2016 13:17:00 +0100 Subject: Serving Videos with LC/iRev In-Reply-To: <27792ED7-1020-488E-AC1D-E608B825850E@all-auctions.com> References: <00c301d24670$2ac523d0$804f6b70$@kestner.de> <8D6F207F-FE38-4BBA-BB9C-5227C2477729@livecode.com> <32445699-d64b-b42d-440c-b88eb3b1a31e@gmail.com> <8d8d47c5-5e1c-888e-c9c1-31d26ad75bb7@economy-x-talk.com> <91685067-037F-407C-A878-B1B7D88F7114@all-auctions.com> <21b467da-48d6-364c-9cb4-1e04d2dd8404@economy-x-talk.com> <27792ED7-1020-488E-AC1D-E608B825850E@all-auctions.com> Message-ID: On 27.11.2016 at 10:37 Uhr -0500 Rick Harrison apparently wrote: >So the next good place to publish the eBook would be >to Amazon.com . Unfortunately, they want their books >to use the .mobi format. That format does not allow >embedded content such as videos etc. You have only >one way to share enhanced content and that's by >giving out a URL link to one's web content. That >URL is a fixed link in the book once it's published, >and will always go to the same place. Sounds like the LC/iRev script will not solve your problem either. Even if your server obfuscates the real URL, people can simply pass the link published in the ebook. It seems to me that the real issue for you is how to uniquely and reliably identify users who are authorized to see your video. I venture that you need to somehow tap into the unique identification attached to each online purchase. RObert From toolbook at kestner.de Mon Nov 28 08:42:02 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 28 Nov 2016 14:42:02 +0100 Subject: AW: Is there a mapping table for all rawKeyUp Codes? In-Reply-To: References: Message-ID: <00b101d2497d$3443e490$9ccbadb0$@kestner.de> Thanks for the hint, I've made myself a table and was surprised to see, that the keys of rawkeyup are no "fantasy" livecode keys, but the good old dec codes to be find in every old school ASCII table. Ok Windows and Mac specifics I have to find out and differentiate myself manually. Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Richmond Mathewson Gesendet: Sonntag, 27. November 2016 18:13 An: How to use LiveCode Betreff: Re: Is there a mapping table for all rawKeyUp Codes? It is, indeed, useful . . . have just downloaded it and have it running. BUT: it is Macintosh only, AND, there is no way of telling from the app itself whether a particular code generated by a keyDown is Mac-specific or not. Richmond. On 11/27/16 2:54 PM, Antti Ilola wrote: > I found this program, maybe useful. > > https://manytricks.com/keycodes/ > > > Antti > > ---------- Edelleenl?hetetty viesti ---------- >> From: Richmond >> To: How to use LiveCode >> Cc: >> Date: Sat, 26 Nov 2016 17:17:23 +0200 >> Subject: Re: Is there a mapping table for all rawKeyUp Codes? >> http://forums.livecode.com/viewtopic.php?f=7&t=28395 >> >> Better than nothing . . . but a long, long way from ideal. >> >> Richmond. >> >> On 24.11.2016 20:31, Mark Waddingham wrote: >> >>> Hi Tiemo, >>> >>> If you search for 'PlatformKeyCode' in this file: >>> >>> https://github.com/livecode/livecode/blob/develop/engine/src/platfor >>> m.h >>> >>> It should give you what you need. >>> >>> Warmest Regards, >>> >>> Mark. >>> >>> Sent from my iPhone >>> >>> On 24 Nov 2016, at 16:31, Tiemo Hollmann TB wrote: >>>> Hello, >>>> >>>> since keyUp doesn't works anymore as it should on windows in LC >>>> 7/8 (see my previous post) I have to workaround with rawKeyUp. >>>> >>>> Does anybody has a togo mapping table of the rawkeyup codes to the >>>> real chars? If not I have to build it myself by testing each char. >>>> >>>> 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 >>> >> Am I missing something? Should I expect otherwise? >>> Peter Bogdanoff >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Mon Nov 28 10:30:14 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 28 Nov 2016 07:30:14 -0800 Subject: [OT] Hosed Xubuntu system In-Reply-To: References: Message-ID: <34a1aae6-8120-681d-a38f-00eaa5eef558@fourthworld.com> Richmond Mathewson wrote: > I was unaware that there was malware for Linux :( Everything is hackable. > I turned on my Xubuntu system this morning and found *nothing*, > > so I started the machine up from a GParted boot disk and found that > not only had my boot disk been deleted, all the files on my other 2 > hard drives had vanished > > and were not recoverable by GParted. > > I would be most grateful for any advice in this respect. This may or may not be malware. A more common attack would encrypt your files and demand bitcoin ransom. Merely deleting the files means an attacker would be working with no benefit to themselves; not impossible, but with so many more lucrative opportunities it seems unlikely. It may just be some sort of glitch (though it does seem an odd one). To get some help diagnosing and possibly repairing the situation, I would recommend taking advantage of the Ubuntu forums, where they have a section for general help with derivative flavors like Xubuntu here: > I was naive enough to think that backing up data onto other hard > drives within the same computer was safe. Better than no backup at all, but not without risks. With HDDs currently available for about US$50/TB I've become a big fan of removable portable drives. I've collected quite a few, used in rotation with each containing the last set of files from the day before. I use my secondary internal drive for incremental backups made with the backup utility included with Ubuntu, so I can restore any given file to any version over the last several months. And then I further hedge my bets with both a NextCloud setup which backs up and versions my work files to my office server, and a second mirror repository on my Mac which is also backed up to an attached drive via Time Machine. Given that all software has bugs, and some will eventually make mash of a backup, and that all hard drives will eventually fail, this multiply-redundant setup helps mitigate those risks, using HDDs I'd acquired over the years for various purposes so the redundancy has grown over time. Of course manually managing these would be quite a time waster, so I wrote a pair of bash scripts, one for my Linux box and one for my Mac, which use rsync to automate the copying. So now at the end of the day I just run one script on my Linux box, then a second on my Mac, and when they're done I have four local copies of everything (five for work files thanks to the always-updating NextCloud) and one removable drive updated to take home with the others for offsite protection. Back in the '90s I lost a big chunk of critical data in a hard drive failure. For me, taking a few minutes at the end of the day to run an automated redundant backup helps me sleep better. -- 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 Mon Nov 28 10:38:01 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 28 Nov 2016 07:38:01 -0800 Subject: Mac Pro Touch Bar In-Reply-To: <7312CC21-72F6-49FB-AA80-7B8943C42D7F@mac.com> References: <7312CC21-72F6-49FB-AA80-7B8943C42D7F@mac.com> Message-ID: Bill Vlahos wrote: > How can I program the new MacBook Pro Touch Bar? > > I?ll be getting my new MacBook Pro in a couple of days and I haven?t > seen any discussion on the new touch bar. > > Does it show up as a display? While it is functionally both a display and an input device, it's unique role would seem to make it difficult to address directly using existing APIs for either. Apple provides new APIs for the Touch Bar, with HIGs and tech notes here: Perhaps an LCB wrapper for those would make a good community project? -- 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 Nov 28 10:54:16 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 28 Nov 2016 15:54:16 +0000 Subject: LibraryStack Message In-Reply-To: References: <61196C89-388F-4941-9139-B7B55191B192@hindu.org> Message-ID: No close quote Bob S On Nov 23, 2016, at 17:38 , Richard Gaskin > wrote: > start using stack "HelloWorld.livecodescript # From bobsneidar at iotecdigital.com Mon Nov 28 11:00:45 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 28 Nov 2016 16:00:45 +0000 Subject: JavaScript + LC HTML5 = LiveCode.js In-Reply-To: References: Message-ID: <5478F593-C40F-4226-B169-7B755C916306@iotecdigital.com> I personally have founf the current version of Licecode to be too buggy for my needs. You may have a different ticksperience. :-) Bob S On Nov 24, 2016, at 07:49 , Todd Fabacher > wrote: Our thinking is it would have 5+ core functionalities that woul dbe shared by most HTML5 apps. I think this would be a great community project and help people who may not be so familiar with Javascript and can stay focused on LiceCode. From bobsneidar at iotecdigital.com Mon Nov 28 11:07:25 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 28 Nov 2016 16:07:25 +0000 Subject: Lock Screen command not locking the screen In-Reply-To: <158a15ed300.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <158a15ed300.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <4C7368EB-6DB4-453B-8AAD-606F44F78A19@iotecdigital.com> So THAT is my problem!!! IS there any way to lock the screen to prevent card changes from displaying? I use a method of encapsulating certain functionality in the script of a particular card (my Database Setup card is a perfect example). By simply going to the card all the variables and connections are established, but I don't want the user to actually see me going to that card, or any other card I use in this way. Bob S > On Nov 26, 2016, at 08:01 , J. Landman Gay wrote: > > If you are looking the screen and issuing a "go" command, LC is behaving as expected. The screen is always unlocked on a card change. > > To do things before the card is displayed, use a preopencard handler to set things up. > > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > On November 26, 2016 2:25:45 AM Peter Bogdanoff wrote: > >> I?m going to another card and I want the screen to lock while controls on the this second card are being worked on: old controls deleted, new fields and graphics created, an image loaded from a remote server and the like. >> >> I set the lockScreen to true and then issue the commands to go to the other card and do the work. However, I?m seeing the bits and pieces happening in real time, not a clean show as I would like. >> >> Am I missing something? Should I expect otherwise? >> >> Peter Bogdanoff >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 28 11:12:05 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 28 Nov 2016 16:12:05 +0000 Subject: Lock Screen command not locking the screen In-Reply-To: <4C7368EB-6DB4-453B-8AAD-606F44F78A19@iotecdigital.com> References: <158a15ed300.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <4C7368EB-6DB4-453B-8AAD-606F44F78A19@iotecdigital.com> Message-ID: NVM Jacque recinded in what ammounts to a completely different thread in my email app becase of the way other people use the list. Bob S On Nov 28, 2016, at 08:07 , Bob Sneidar > wrote: So THAT is my problem!!! IS there any way to lock the screen to prevent card changes from displaying? I use a method of encapsulating certain functionality in the script of a particular card (my Database Setup card is a perfect example). By simply going to the card all the variables and connections are established, but I don't want the user to actually see me going to that card, or any other card I use in this way. Bob S From peter.brett at livecode.com Mon Nov 28 11:16:14 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 28 Nov 2016 16:16:14 +0000 Subject: JavaScript + LC HTML5 = LiveCode.js In-Reply-To: <5478F593-C40F-4226-B169-7B755C916306@iotecdigital.com> References: <5478F593-C40F-4226-B169-7B755C916306@iotecdigital.com> Message-ID: <4d6f8ac2-f50c-5d25-2661-8c6b8fefa0da@livecode.com> On 28/11/2016 16:00, Bob Sneidar wrote: > I personally have founf the current version of Licecode to be too > buggy for my needs. You may have a different ticksperience. :-) Hi Bob, Please can you let me know which bugs are causing you particular trouble? I could take a look and see whether they're something we can get fixed sooner rather than later. Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From bobsneidar at iotecdigital.com Mon Nov 28 11:19:09 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 28 Nov 2016 16:19:09 +0000 Subject: JavaScript + LC HTML5 = LiveCode.js In-Reply-To: <4d6f8ac2-f50c-5d25-2661-8c6b8fefa0da@livecode.com> References: <5478F593-C40F-4226-B169-7B755C916306@iotecdigital.com> <4d6f8ac2-f50c-5d25-2661-8c6b8fefa0da@livecode.com> Message-ID: <4EA307B2-C93F-4C13-9FC5-ED2C48597D7A@iotecdigital.com> It was a joke Peter. Buggy? Licecode? Ticksperience?? Bob S > On Nov 28, 2016, at 08:16 , Peter TB Brett wrote: > > > > On 28/11/2016 16:00, Bob Sneidar wrote: >> I personally have founf the current version of Licecode to be too >> buggy for my needs. You may have a different ticksperience. :-) > > Hi Bob, > > Please can you let me know which bugs are causing you particular > trouble? I could take a look and see whether they're something we can > get fixed sooner rather than later. > > Peter > > -- > Dr Peter Brett > LiveCode Technical Project Manager > > lcb-mode for Emacs: https://github.com/peter-b/lcb-mode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From peter.brett at livecode.com Mon Nov 28 11:31:09 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 28 Nov 2016 16:31:09 +0000 Subject: JavaScript + LC HTML5 = LiveCode.js In-Reply-To: <4EA307B2-C93F-4C13-9FC5-ED2C48597D7A@iotecdigital.com> References: <5478F593-C40F-4226-B169-7B755C916306@iotecdigital.com> <4d6f8ac2-f50c-5d25-2661-8c6b8fefa0da@livecode.com> <4EA307B2-C93F-4C13-9FC5-ED2C48597D7A@iotecdigital.com> Message-ID: On 28/11/2016 16:19, Bob Sneidar wrote: > It was a joke Peter. Buggy? Licecode? Ticksperience?? Apparently I missed it. Sorry! Peter :-) -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From panos.merakos at livecode.com Mon Nov 28 12:00:53 2016 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 28 Nov 2016 17:00:53 +0000 Subject: [ ANN ] Release 9.0.0 DP-3 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.0.0 DP-3. 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-3 contains a fix to ensure that the "do as JavaScript" feature for HTML5 works in LiveCode Indy and LiveCode Business. A total of 6 bugs have been fixed since the last development preview release (LiveCode 9.0.0 DP-2). Many thanks to the community members who made improvements to the documentation and the IDE since the previous developer preview release: Bernd Niggemann Bob Hall Devin Asay Sean Cole The full release notes are available from: http://downloads.livecode.com/livecode/9_0_0/LiveCodeNotes-9_0_0_dp_3.pdf 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 heather at livecode.com Mon Nov 28 12:22:44 2016 From: heather at livecode.com (Heather Laine) Date: Mon, 28 Nov 2016 17:22:44 +0000 Subject: [Blog] What You've Been Doing with HTML5 Message-ID: Dear list folks, It's great to see some of you getting stuck in with the latest iteration of LiveCode HTML5: http://livecode.com/some-exciting-html5-demos-for-livecode-9-dp-3/ Go take a look! Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From harrison at all-auctions.com Mon Nov 28 12:26:53 2016 From: harrison at all-auctions.com (Richard Harrison) Date: Mon, 28 Nov 2016 12:26:53 -0500 Subject: Serving Videos with LC/iRev In-Reply-To: <21b467da-48d6-364c-9cb4-1e04d2dd8404@economy-x-talk.com> References: <00c301d24670$2ac523d0$804f6b70$@kestner.de> <8D6F207F-FE38-4BBA-BB9C-5227C2477729@livecode.com> <32445699-d64b-b42d-440c-b88eb3b1a31e@gmail.com> <8d8d47c5-5e1c-888e-c9c1-31d26ad75bb7@economy-x-talk.com> <91685067-037F-407C-A878-B1B7D88F7114@all-auctions.com> <21b467da-48d6-364c-9cb4-1e04d2dd8404@economy-x-talk.com> Message-ID: Hi Mark, Well I was trying to talk in black-box terms here, but I can see that isn?t sufficient information for you as inquiring minds always want to know. It really shouldn?t hurt if I reveal the third party anyway. I have an enhanced eBook with an embedded video in it. I was able to publish it to Apple?s iTunes store in the EPub 3 format just fine, without having to resort to using iBooks Author to create the book. The plus side of that is I don?t have an exclusive obligation to Apple if I do it that way, and I can publish the book elsewhere. So the next good place to publish the eBook would be to Amazon.com . Unfortunately, they want their books to use the .mobi format. That format does not allow embedded content such as videos etc. You have only one way to share enhanced content and that?s by giving out a URL link to one?s web content. That URL is a fixed link in the book once it?s published, and will always go to the same place. So yes, I could painfully decide not to publish to Amazon.com but I?d rather not have to not use them as they are pretty big. Now you can understand my problem and my attempted solution. Thank you for your input! Rick On Nov 27, 2016, at 10:06 AM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: Hi Rick, That third party must have an API for it. If not, you need to change the vendor. I can't be that e.g. Apple sells music, while everybody is able to download the content once it has been bought by one person. Can you tell the name of that third party? Kind regards, Mark Schonewille http://economy-x-talk.com https://www.facebook.com/marksch From richmondmathewson at gmail.com Mon Nov 28 12:37:59 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 28 Nov 2016 19:37:59 +0200 Subject: [OT] Hosed Xubuntu system In-Reply-To: References: <0EFB2559-A5B4-4F0B-B770-E6F9D98D3407@hindu.org> <1479639132133-4710448.post@n4.nabble.com> <1479676814188-4710465.post@n4.nabble.com> <2fffc1a6-3748-c96d-545f-a08af1520657@hyperactivesw.com> <4c0fa0fd-db4a-b759-62a2-8d781bbe2c24@gmail.com> Message-ID: <7ff8f12d-000f-6935-0b19-e31551a8d0c8@gmail.com> Thanks for the advice and comfort. On 11/28/16 6:28 am, Kay C Lan wrote: > On Mon, Nov 28, 2016 at 4:54 AM, Richmond Mathewson > wrote: >> I am slowly recovering my stuff: estimated completion about 2 weeks . . . > Ouch. But surely a better Disk Utility Tool would help reduce that. > It's unlikely that the files are gone; especially if the computer was > working last night. GParted seems to be a basic Disk Utility program, > not a Disk Repair program. Here is a list of some that might help: > > http://www.techrepublic.com/blog/10-things/10-linux-rescue-tools-for-recovering-linux-windows-or-mac-machines/ Gparted says there is nothing wrong with the disks! I am wondering about demounting them and having the Macintosh check them, but not sure whether the mac will recognise them. >> I was naive enough to think that backing up data onto other hard drives >> within the same computer was safe. > As above; it's more like that the catalog files and the 'structure' > that points to all the 1 and 0's has been mangled but the actual files > are still in their location and with a good Repair program can be > retrieved - saving you well over a weeks worth of time. Um: testdisk brings back the file structure: the directories and a lot of "0 kb" files reflecting the files that have vanished. > >> I was unaware that there was malware for Linux :( >> > That has to be the quote of the Decade. > > Richmond. From andrew at midwestcoastmedia.com Mon Nov 28 13:18:22 2016 From: andrew at midwestcoastmedia.com (Andrew Bell) Date: Mon, 28 Nov 2016 13:18:22 -0500 Subject: iTunes Connect rejection In-Reply-To: References: Message-ID: I needed to get the update pushed through so I hadn't gone back to test until now. Same error message when compiling another build in 8.1.2rc2 as well as 9.0.0dp2 using Xcode 8.1. Building in 8.1.1 using Xcode 8 doesn't get auto-flagged by Apple (within minutes) like the 8.1 builds are. Here is a link to the compliled binary: https://www.dropbox.com/s/c1xiuet59jvwz8v/Indiana%20On%20Tap-LC8.1.2.2%20Xcode8.1.zip?dl=0 --Andrew Bell On 2016-11-21 12:26, use-livecode-request at lists.runrev.com wrote: Hi Andrew, Do you consistently get the same problem if you recompile with 8.1.2-rc-2? If so, could you compile your app and send the compiled binary to us so we can inspect it? The engine certainly doesn't use those calls (there is no reference to them in the engine source), so it might well be a false-positive on Apple's part (when statically checking the binary). It *could* be that a name of one of the (public) symbols in the engine is confusing their system. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From bogdanoff at me.com Mon Nov 28 13:22:58 2016 From: bogdanoff at me.com (Peter Bogdanoff) Date: Mon, 28 Nov 2016 10:22:58 -0800 Subject: Lock Screen command not locking the screen In-Reply-To: <4C7368EB-6DB4-453B-8AAD-606F44F78A19@iotecdigital.com> References: <158a15ed300.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <4C7368EB-6DB4-453B-8AAD-606F44F78A19@iotecdigital.com> Message-ID: <716A404B-3707-4B33-94FA-EDECDC9D68C3@me.com> Yes, this is also my (original) question. Is there any answer??? Peter Bogdanoff On Nov 28, 2016, at 8:07 AM, Bob Sneidar wrote: > So THAT is my problem!!! IS there any way to lock the screen to prevent card changes from displaying? I use a method of encapsulating certain functionality in the script of a particular card (my Database Setup card is a perfect example). By simply going to the card all the variables and connections are established, but I don't want the user to actually see me going to that card, or any other card I use in this way. > > Bob S > > >> On Nov 26, 2016, at 08:01 , J. Landman Gay wrote: >> >> If you are looking the screen and issuing a "go" command, LC is behaving as expected. The screen is always unlocked on a card change. >> >> To do things before the card is displayed, use a preopencard handler to set things up. >> >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> >> On November 26, 2016 2:25:45 AM Peter Bogdanoff wrote: >> >>> I?m going to another card and I want the screen to lock while controls on the this second card are being worked on: old controls deleted, new fields and graphics created, an image loaded from a remote server and the like. >>> >>> I set the lockScreen to true and then issue the commands to go to the other card and do the work. However, I?m seeing the bits and pieces happening in real time, not a clean show as I would like. >>> >>> Am I missing something? Should I expect otherwise? >>> >>> Peter Bogdanoff >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Mon Nov 28 13:56:27 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 28 Nov 2016 20:56:27 +0200 Subject: [OT] Hosed Xubuntu system In-Reply-To: <34a1aae6-8120-681d-a38f-00eaa5eef558@fourthworld.com> References: <34a1aae6-8120-681d-a38f-00eaa5eef558@fourthworld.com> Message-ID: Once *extundelete* told me "space has been reallocated" I knew everything was cooked. Richmond. On 11/28/16 5:30 pm, Richard Gaskin wrote: > Richmond Mathewson wrote: > > > I was unaware that there was malware for Linux :( > > Everything is hackable. > > > > I turned on my Xubuntu system this morning and found *nothing*, > > > > so I started the machine up from a GParted boot disk and found that > > not only had my boot disk been deleted, all the files on my other 2 > > hard drives had vanished > > > > and were not recoverable by GParted. > > > > I would be most grateful for any advice in this respect. > > This may or may not be malware. > > A more common attack would encrypt your files and demand bitcoin > ransom. Merely deleting the files means an attacker would be working > with no benefit to themselves; not impossible, but with so many more > lucrative opportunities it seems unlikely. > > It may just be some sort of glitch (though it does seem an odd one). > > To get some help diagnosing and possibly repairing the situation, I > would recommend taking advantage of the Ubuntu forums, where they have > a section for general help with derivative flavors like Xubuntu here: > > > > > > I was naive enough to think that backing up data onto other hard > > drives within the same computer was safe. > > Better than no backup at all, but not without risks. > > With HDDs currently available for about US$50/TB I've become a big fan > of removable portable drives. > > I've collected quite a few, used in rotation with each containing the > last set of files from the day before. > > I use my secondary internal drive for incremental backups made with > the backup utility included with Ubuntu, so I can restore any given > file to any version over the last several months. > > And then I further hedge my bets with both a NextCloud setup which > backs up and versions my work files to my office server, and a second > mirror repository on my Mac which is also backed up to an attached > drive via Time Machine. > > Given that all software has bugs, and some will eventually make mash > of a backup, and that all hard drives will eventually fail, this > multiply-redundant setup helps mitigate those risks, using HDDs I'd > acquired over the years for various purposes so the redundancy has > grown over time. > > Of course manually managing these would be quite a time waster, so I > wrote a pair of bash scripts, one for my Linux box and one for my Mac, > which use rsync to automate the copying. So now at the end of the day > I just run one script on my Linux box, then a second on my Mac, and > when they're done I have four local copies of everything (five for > work files thanks to the always-updating NextCloud) and one removable > drive updated to take home with the others for offsite protection. > > Back in the '90s I lost a big chunk of critical data in a hard drive > failure. For me, taking a few minutes at the end of the day to run an > automated redundant backup helps me sleep better. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Mon Nov 28 14:25:37 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 28 Nov 2016 11:25:37 -0800 Subject: [OT] Hosed Xubuntu system In-Reply-To: References: Message-ID: Richmond Mathewson wrote: > Once *extundelete* told me "space has been reallocated" I knew > everything was cooked. It may not be recoverable, but I'm curious as to how it happened in the first place. Anything noteworthy in ~/.bash_history, /var/log/auth.log, or /var/log/syslog? Are those files even remaining? -- 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 Nov 28 14:29:10 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 28 Nov 2016 19:29:10 +0000 Subject: [OT] Hosed Xubuntu system In-Reply-To: References: Message-ID: Can anything not running as root even do this?? And if not, is root account enabled? and if so, has the password been changed? Bob S On Nov 28, 2016, at 11:25 , Richard Gaskin > wrote: Richmond Mathewson wrote: > Once *extundelete* told me "space has been reallocated" I knew > everything was cooked. It may not be recoverable, but I'm curious as to how it happened in the first place. Anything noteworthy in ~/.bash_history, /var/log/auth.log, or /var/log/syslog? Are those files even remaining? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web From richmondmathewson at gmail.com Mon Nov 28 14:38:47 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 28 Nov 2016 21:38:47 +0200 Subject: [OT] Hosed Xubuntu system In-Reply-To: References: Message-ID: <8ceb4c7d-a63d-b75c-4f24-bb30f9b6491e@gmail.com> No: the root account was not enabled, and as the thing won't boot there is no way one can tell if a password has been changed. Running *extundelete* from a live disk keeps giving this sort of message on all the partitions of all the disks inside the machine: Failed to restore inode 11796494 to file RECOVERED_FILES/file.11796494:Unable to set proper file size (enormous numner in brackets) Prior to that extundelete shows that it *can* see files on the disk partitions. Richmond. On 11/28/16 9:29 pm, Bob Sneidar wrote: > Can anything not running as root even do this?? And if not, is root account enabled? and if so, has the password been changed? > > Bob S > > > On Nov 28, 2016, at 11:25 , Richard Gaskin > wrote: > > Richmond Mathewson wrote: >> Once *extundelete* told me "space has been reallocated" I knew >> everything was cooked. > It may not be recoverable, but I'm curious as to how it happened in the first place. > > Anything noteworthy in ~/.bash_history, /var/log/auth.log, or /var/log/syslog? > > Are those files even remaining? > > -- > 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 Mon Nov 28 14:39:26 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 28 Nov 2016 21:39:26 +0200 Subject: [OT] Hosed Xubuntu system In-Reply-To: References: Message-ID: <8772f1c2-3c7c-e1a7-983f-087fb1883fca@gmail.com> There seems to be no way to get at those files if they still remain on the partition. Richmond. On 11/28/16 9:25 pm, Richard Gaskin wrote: > Richmond Mathewson wrote: > > Once *extundelete* told me "space has been reallocated" I knew > > everything was cooked. > > It may not be recoverable, but I'm curious as to how it happened in > the first place. > > Anything noteworthy in ~/.bash_history, /var/log/auth.log, or > /var/log/syslog? > > Are those files even remaining? > From ambassador at fourthworld.com Mon Nov 28 14:45:17 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 28 Nov 2016 11:45:17 -0800 Subject: [OT] Hosed Xubuntu system In-Reply-To: <8772f1c2-3c7c-e1a7-983f-087fb1883fca@gmail.com> References: <8772f1c2-3c7c-e1a7-983f-087fb1883fca@gmail.com> Message-ID: <5658aab0-0fa0-626e-9128-de19ec214015@fourthworld.com> Richmond Mathewson wrote: > On 11/28/16 9:25 pm, Richard Gaskin wrote: >> Anything noteworthy in ~/.bash_history, /var/log/auth.log, or >> /var/log/syslog? >> >> Are those files even remaining? >> > There seems to be no way to get at those files if they still remain > on the partition. If it's a matter of permissions you can use: sudo su ...to become root (be careful while you're root, of course). -- 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 Mon Nov 28 15:06:20 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 28 Nov 2016 22:06:20 +0200 Subject: [OT] Hosed Xubuntu system In-Reply-To: <5658aab0-0fa0-626e-9128-de19ec214015@fourthworld.com> References: <8772f1c2-3c7c-e1a7-983f-087fb1883fca@gmail.com> <5658aab0-0fa0-626e-9128-de19ec214015@fourthworld.com> Message-ID: <114e4c59-8db8-dbb6-60e7-166b929d364f@gmail.com> Unfortunately it is not a matter of permissions: I have been reliably informed that my boot partition has been set to "unallocated space" and that my 'home' partition, while retaining the file structure (directories and so forth) conatins no actula files beyond a few GIF files. Richmond. On 11/28/16 9:45 pm, Richard Gaskin wrote: > Richmond Mathewson wrote: > > > On 11/28/16 9:25 pm, Richard Gaskin wrote: > >> Anything noteworthy in ~/.bash_history, /var/log/auth.log, or > >> /var/log/syslog? > >> > >> Are those files even remaining? > >> > > There seems to be no way to get at those files if they still remain > > on the partition. > > If it's a matter of permissions you can use: > > sudo su > > ...to become root (be careful while you're root, of course). > From stephen at barncard.com Mon Nov 28 16:44:58 2016 From: stephen at barncard.com (Stephen Barncard) Date: Mon, 28 Nov 2016 13:44:58 -0800 Subject: Serving Videos with LC/iRev In-Reply-To: References: <00c301d24670$2ac523d0$804f6b70$@kestner.de> <8D6F207F-FE38-4BBA-BB9C-5227C2477729@livecode.com> <32445699-d64b-b42d-440c-b88eb3b1a31e@gmail.com> <8d8d47c5-5e1c-888e-c9c1-31d26ad75bb7@economy-x-talk.com> <91685067-037F-407C-A878-B1B7D88F7114@all-auctions.com> <21b467da-48d6-364c-9cb4-1e04d2dd8404@economy-x-talk.com> Message-ID: On Mon, Nov 28, 2016 at 9:26 AM, Richard Harrison wrote: > Well I was trying to talk in black-box terms here, but I can > see that isn?t sufficient information for you as inquiring > minds always want to know. It really shouldn?t hurt if > I reveal the third party anyway. > FYI the PHP forums mentioned devious ways to get info from folders outside of web root using INCLUDE. In a test with LIVECODE SERVER I was able to get html data from a text file inside of a folder above a web root using INCLUDE but I didn't explore further. -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org From harrison at all-auctions.com Mon Nov 28 17:22:53 2016 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 28 Nov 2016 17:22:53 -0500 Subject: Serving Videos with LC/iRev In-Reply-To: References: <00c301d24670$2ac523d0$804f6b70$@kestner.de> <8D6F207F-FE38-4BBA-BB9C-5227C2477729@livecode.com> <32445699-d64b-b42d-440c-b88eb3b1a31e@gmail.com> <8d8d47c5-5e1c-888e-c9c1-31d26ad75bb7@economy-x-talk.com> <91685067-037F-407C-A878-B1B7D88F7114@all-auctions.com> <21b467da-48d6-364c-9cb4-1e04d2dd8404@economy-x-talk.com> Message-ID: <63100907-038A-42F7-93F1-8CD1554F8D8E@all-auctions.com> Hi Stephen, Hmm.. that?s rather disturbing for security isn?t it. So much for PHP. That?s why it?s best not to set up PHP to be able to be used on servers. Thanks for the information. Rick > On Nov 28, 2016, at 4:44 PM, Stephen Barncard wrote: > > FYI the PHP forums mentioned devious ways to get info from folders outside > of web root using INCLUDE. > > In a test with LIVECODE SERVER I was able to get html data from a text file > inside of a folder above a web root using INCLUDE but I didn't explore > further. From ambassador at fourthworld.com Mon Nov 28 17:45:19 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 28 Nov 2016 14:45:19 -0800 Subject: Serving Videos with LC/iRev In-Reply-To: <63100907-038A-42F7-93F1-8CD1554F8D8E@all-auctions.com> References: <63100907-038A-42F7-93F1-8CD1554F8D8E@all-auctions.com> Message-ID: <117f1d39-d408-44b3-0c81-54158ff6c285@fourthworld.com> Rick Harrison wrote: >> On Nov 28, 2016, at 4:44 PM, Stephen Barncard wrote: >> >> FYI the PHP forums mentioned devious ways to get info from folders >> outside of web root using INCLUDE. >> >> In a test with LIVECODE SERVER I was able to get html data from a >> text file inside of a folder above a web root using INCLUDE but I >> didn't explore further. > > Hmm.. that?s rather disturbing for security isn?t it. > So much for PHP. That?s why it?s best not to > set up PHP to be able to be used on servers. Just about any language that can support file I/O can read and write files from any location it has access to. Scripting engines don't generally care whether they're asked to read: /home/user/htdocs/something.lc ...or: /home/user/something.lc If you set your folder and file permissions correctly, and properly sanitize inputs, there's nothing inherently unsafe about it. On the contrary, sometimes it can be safer to be able to make use of data stored outside the web root, under the control of your script. For example, Wordpress, Drupal, and most other systems that need to connect to a database need to store the password to the DB somewhere. Keeping that in the web root would be unsafe, so those systems usually keep it outside of that. In most of my server systems I even keep stack files outside of the web root, served up with my CGI. This keeps them safely away from spiders, and allows me to ensure authentication before access. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bonnmike at gmail.com Mon Nov 28 17:59:08 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 28 Nov 2016 15:59:08 -0700 Subject: [OT] Hosed Xubuntu system In-Reply-To: <34a1aae6-8120-681d-a38f-00eaa5eef558@fourthworld.com> References: <34a1aae6-8120-681d-a38f-00eaa5eef558@fourthworld.com> Message-ID: If you have a spare machine and a large drive to store images, you might look at FOG. When I was working at the local computer lab it was very helpful since people can be..shall we say, destructive. We had a couple groups of machines, and would use one as master. Set it up clean and up to day, use fog to do an image backup, then multi cast (pxe boot) to all the matching machines. At the end of each day, do a multicast to imaging to each machine to prep for the next day. On maintenance day, load the master machine, do its updates, refresh the image to the fog server and then push the new image out to the rest of the machines. Even if you just use it to cache image backups for multiple individual machines, it works very well. And I think it has greatly improved since I last used it. Its a great way to manage things. In fact, if you are about to do a version upgrade to a machine, its pretty easy to back up the current, do the update and if things don't go as expected, roll back to a previous version. (in case you haven't noticed, I really like the way fog works) Too late to help now, but for future safety you can read up on it here: https://fogproject.org/ On Mon, Nov 28, 2016 at 8:30 AM, Richard Gaskin wrote: > Richmond Mathewson wrote: > > > I was unaware that there was malware for Linux :( > > Everything is hackable. > > > > I turned on my Xubuntu system this morning and found *nothing*, > > > > so I started the machine up from a GParted boot disk and found that > > not only had my boot disk been deleted, all the files on my other 2 > > hard drives had vanished > > > > and were not recoverable by GParted. > > > > I would be most grateful for any advice in this respect. > > This may or may not be malware. > > A more common attack would encrypt your files and demand bitcoin ransom. > Merely deleting the files means an attacker would be working with no > benefit to themselves; not impossible, but with so many more lucrative > opportunities it seems unlikely. > > It may just be some sort of glitch (though it does seem an odd one). > > To get some help diagnosing and possibly repairing the situation, I would > recommend taking advantage of the Ubuntu forums, where they have a section > for general help with derivative flavors like Xubuntu here: > > > > > > I was naive enough to think that backing up data onto other hard > > drives within the same computer was safe. > > Better than no backup at all, but not without risks. > > With HDDs currently available for about US$50/TB I've become a big fan of > removable portable drives. > > I've collected quite a few, used in rotation with each containing the last > set of files from the day before. > > I use my secondary internal drive for incremental backups made with the > backup utility included with Ubuntu, so I can restore any given file to any > version over the last several months. > > And then I further hedge my bets with both a NextCloud setup which backs > up and versions my work files to my office server, and a second mirror > repository on my Mac which is also backed up to an attached drive via Time > Machine. > > Given that all software has bugs, and some will eventually make mash of a > backup, and that all hard drives will eventually fail, this > multiply-redundant setup helps mitigate those risks, using HDDs I'd > acquired over the years for various purposes so the redundancy has grown > over time. > > Of course manually managing these would be quite a time waster, so I wrote > a pair of bash scripts, one for my Linux box and one for my Mac, which use > rsync to automate the copying. So now at the end of the day I just run one > script on my Linux box, then a second on my Mac, and when they're done I > have four local copies of everything (five for work files thanks to the > always-updating NextCloud) and one removable drive updated to take home > with the others for offsite protection. > > Back in the '90s I lost a big chunk of critical data in a hard drive > failure. For me, taking a few minutes at the end of the day to run an > automated redundant backup helps me sleep better. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Mon Nov 28 18:01:41 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 28 Nov 2016 16:01:41 -0700 Subject: [OT] Hosed Xubuntu system In-Reply-To: References: <34a1aae6-8120-681d-a38f-00eaa5eef558@fourthworld.com> Message-ID: My english skills are degrading at a high rate of speed apparently. Fixes: "set it up clean and up to date" and "at the end of each day, multicast the clean image to all computers to prep for the next day" On Mon, Nov 28, 2016 at 3:59 PM, Mike Bonner wrote: > If you have a spare machine and a large drive to store images, you might > look at FOG. When I was working at the local computer lab it was very > helpful since people can be..shall we say, destructive. We had a couple > groups of machines, and would use one as master. Set it up clean and up to > day, use fog to do an image backup, then multi cast (pxe boot) to all the > matching machines. At the end of each day, do a multicast to imaging to > each machine to prep for the next day. On maintenance day, load the master > machine, do its updates, refresh the image to the fog server and then push > the new image out to the rest of the machines. > > Even if you just use it to cache image backups for multiple individual > machines, it works very well. And I think it has greatly improved since I > last used it. Its a great way to manage things. In fact, if you are about > to do a version upgrade to a machine, its pretty easy to back up the > current, do the update and if things don't go as expected, roll back to a > previous version. (in case you haven't noticed, I really like the way fog > works) > Too late to help now, but for future safety you can read up on it here: > https://fogproject.org/ > > On Mon, Nov 28, 2016 at 8:30 AM, Richard Gaskin < > ambassador at fourthworld.com> wrote: > >> Richmond Mathewson wrote: >> >> > I was unaware that there was malware for Linux :( >> >> Everything is hackable. >> >> >> > I turned on my Xubuntu system this morning and found *nothing*, >> > >> > so I started the machine up from a GParted boot disk and found that >> > not only had my boot disk been deleted, all the files on my other 2 >> > hard drives had vanished >> > >> > and were not recoverable by GParted. >> > >> > I would be most grateful for any advice in this respect. >> >> This may or may not be malware. >> >> A more common attack would encrypt your files and demand bitcoin ransom. >> Merely deleting the files means an attacker would be working with no >> benefit to themselves; not impossible, but with so many more lucrative >> opportunities it seems unlikely. >> >> It may just be some sort of glitch (though it does seem an odd one). >> >> To get some help diagnosing and possibly repairing the situation, I would >> recommend taking advantage of the Ubuntu forums, where they have a section >> for general help with derivative flavors like Xubuntu here: >> >> >> >> >> > I was naive enough to think that backing up data onto other hard >> > drives within the same computer was safe. >> >> Better than no backup at all, but not without risks. >> >> With HDDs currently available for about US$50/TB I've become a big fan of >> removable portable drives. >> >> I've collected quite a few, used in rotation with each containing the >> last set of files from the day before. >> >> I use my secondary internal drive for incremental backups made with the >> backup utility included with Ubuntu, so I can restore any given file to any >> version over the last several months. >> >> And then I further hedge my bets with both a NextCloud setup which backs >> up and versions my work files to my office server, and a second mirror >> repository on my Mac which is also backed up to an attached drive via Time >> Machine. >> >> Given that all software has bugs, and some will eventually make mash of a >> backup, and that all hard drives will eventually fail, this >> multiply-redundant setup helps mitigate those risks, using HDDs I'd >> acquired over the years for various purposes so the redundancy has grown >> over time. >> >> Of course manually managing these would be quite a time waster, so I >> wrote a pair of bash scripts, one for my Linux box and one for my Mac, >> which use rsync to automate the copying. So now at the end of the day I >> just run one script on my Linux box, then a second on my Mac, and when >> they're done I have four local copies of everything (five for work files >> thanks to the always-updating NextCloud) and one removable drive updated to >> take home with the others for offsite protection. >> >> Back in the '90s I lost a big chunk of critical data in a hard drive >> failure. For me, taking a few minutes at the end of the day to run an >> automated redundant backup helps me sleep better. >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From bobsneidar at iotecdigital.com Mon Nov 28 21:39:45 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 29 Nov 2016 02:39:45 +0000 Subject: Save As Standalone Issues In-Reply-To: References: Message-ID: Sent link to attachment in the bug report. Only one day to DL. (Probably should have made that longer in retrospect.) 10 megs is not very large attachment limit for the stacks getting created these days. Bob S On Nov 22, 2016, at 15:52 , Bob Sneidar > wrote: http://quality.livecode.com/show_bug.cgi?id=18896 Hi all. Anyone having Save As Standalone isues in 8.1.1 and up should look at this bug report. Essentially, if I have a splash stack that references a Main Stack, which itself has library stacks in it's Stack Files settings, and I Save As Standalone for OS X and Windows, and I autodetect libraries, the "compiler" ADDS the libraries to the Splash Stack Stack Files list, but adds the WRONG COPIES. It adds the copy meant to go with the Windows standalone, so that when the app for OS X is run, it cannot find the libraries. Please take the time to one up this bug. As is I cannot test standalones beyond 8.0.1 as is. Bob S From stephen at barncard.com Mon Nov 28 22:17:19 2016 From: stephen at barncard.com (Stephen Barncard) Date: Mon, 28 Nov 2016 19:17:19 -0800 Subject: Serving Videos with LC/iRev In-Reply-To: <117f1d39-d408-44b3-0c81-54158ff6c285@fourthworld.com> References: <63100907-038A-42F7-93F1-8CD1554F8D8E@all-auctions.com> <117f1d39-d408-44b3-0c81-54158ff6c285@fourthworld.com> Message-ID: On Mon, Nov 28, 2016 at 2:45 PM, Richard Gaskin wrote: > In most of my server systems I even keep stack files outside of the web > root, served up with my CGI. This keeps them safely away from spiders, and > allows me to ensure authentication before access. thanks, Richard, to confirm this - the cgi thing of course appears to still be the best way. Do you have a lesson or page that describes this method? This topic comes up often. sqb -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org From tvogelaar at de-mare.nl Mon Nov 28 22:29:03 2016 From: tvogelaar at de-mare.nl (Terry Vogelaar) Date: Tue, 29 Nov 2016 04:29:03 +0100 Subject: My own productivity app Message-ID: I want to write my own productivity app in LiveCode. Aren?t there enough? Maybe, but I haven?t found what I?m looking for. Here?s what I have. I use MacBreakZ (http://www.publicspace.net/MacBreakZ/ ) to prevent RSI. It lets me take breaks when I?m using the Mac for too long. The great thing is that it detects whether I use my Mac or not. So when I?m interrupted, the timer delays the break and it will eventually notify it as an informal break. Then there is Focus (https://heyfocus.com ). I tend to waste my most productive hours on Facebook or e-mail. Focus is basically a timer to restrict the usage of distracting apps or sites to help me with my self-control during those hours. Then there is another app, also called Focus (https://masterbuilders.io ). I hoped it would have the restricting functionality of the other Focus, but no, this is just a simple Pomodoro timer with an integrated ToDo-list. It gives 4 blocks of productivity, 25 min each, with a 5 min break in between. Then there?s a longer break. All of them help users to have productive time and leisure time. But if I would run all three, there would be no agreement between them when I should have my break. The latter app made me realise I could create my own. Any programmer could make that. But ideally I would want to integrate what makes the other two apps great. I want the activity detection that MacBreakZ has and the distraction-restriction (hey)Focus offers. Would an app made in LiveCode be able to do that? If so, how? With kind regards, Terry Vogelaar From brahma at hindu.org Mon Nov 28 23:04:23 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 29 Nov 2016 04:04:23 +0000 Subject: HTML 5 Engine Download Again (and again and again?) Message-ID: I go the promo newsletter, when to HH's site with demos each on says "download only once" but every time I swtich to another one? the engine downloads again. 4 minutes in one case, here with pretty good band width. I don't think I could get anyone to sit/wait through that? Pretty much a non-starter? BR On 11/28/16, 7:00 AM, "use-livecode on behalf of panagiotis merakos" wrote: We are pleased to announce the release of LiveCode 9.0.0 DP-3. From hh at hyperhh.de Tue Nov 29 06:50:44 2016 From: hh at hyperhh.de (hh) Date: Tue, 29 Nov 2016 12:50:44 +0100 Subject: HTML 5 Engine Download Again (and again and again?) Message-ID: May be the on-rev-server was a bit stressed from all these links (incl. new LC-versions for download). Here on a Mac mini with Safari 10 and a 50 MBit connection I have at most 12 seconds for a first load from both servers ( hh.on-rev.com/html5/ OR hyperhh.org/html5/ ) and 3 seconds for a reload of the _same_ engine. Recall the engine is different with each LC version. Slow-down-factors for different browsers as given in the forum post (link below). I never wait more than 20 seconds for a standalone, except the content is announced as 'HUGE' (usually meaning that additional 20-50 MByte are to download for stack resources before the page is fully ready). There are several possible reasons for a 'not-working-as-expected' with download or performance. I wrote this down in some detail for 'newcomers' to HTML5-standalones in the forum http://forums.livecode.com/viewtopic.php?p=148982#p148982 Also, you have always the possibility to download the source and test it locally, without internet connection. Safari and Firefox can test from html-file, Chrome and Opera need a local fileserver running. With the new JS extension there may be JS modules that need to load a resource from elsewhere or from the webserver. So in the future all browsers may need a local webserver running. [ For downloading the sources (if no community link is already there), see http://forums.livecode.com/viewtopic.php?p=139080#p139080 ]. For testing the JS-demo one needs also the html-file and the js script resources called there. In case someone doesn't know how to get these I'll add them soon to the forum post about the JS-demo. *** This shows once more, how important Todd Fabacher's engagement for building soon a good LC-JS-library is. *** Although, these early experiments are far from being optimal for enclosure in such a library. But I'm already collecting snippets to be ready to support him and his team as soon as they start. From john.allijn.lc at gmail.com Tue Nov 29 07:22:24 2016 From: john.allijn.lc at gmail.com (John Allijn) Date: Tue, 29 Nov 2016 13:22:24 +0100 Subject: Widget request (native text scroller for iOS) Message-ID: <64893A3E-BD2F-4ED9-9815-E71429F9A531@gmail.com> Hello, Most of the time when I work on an iOS app, I run into problems with scrollers, fields that scroll their contents over the screen. Usually I have just one scrollable field on a card with variable text in it. Most often this text is downloaded from a database and I just put the plain text into this field. Most often, the field does not scroll, does not show up, won?t display all the content, runs over the boundaries that I?ve set or is just badly positioned. The last few apps I made, I worked around this problem by designing my app around it. (splitting the text in chunks that are big enough to display and using swipes to go to the next card with more content) but this has been annoying me ever since. I was wondering if someone had, or was willing to make, a livecode widget for a scrolling field. That way we can all just drag it in the project, fill it with text and get some sleep again :) Any help would be greatly appreciated! best regards, John. From james at thehales.id.au Tue Nov 29 08:09:51 2016 From: james at thehales.id.au (James Hale) Date: Wed, 30 Nov 2016 00:09:51 +1100 Subject: LC 9 has all the improvements of the LC 8.1 series, yes? Message-ID: <354D6DEA-70AF-47EE-AA21-CEAA2BC852FF@thehales.id.au> Just want to confirm that all the LC 9 releases contain the bug fixes and improvements that are in the current LC 8.x rc series. Peter or Ali or anyone? James From panos.merakos at livecode.com Tue Nov 29 08:14:12 2016 From: panos.merakos at livecode.com (panagiotis merakos) Date: Tue, 29 Nov 2016 13:14:12 +0000 Subject: LC 9 has all the improvements of the LC 8.1 series, yes? In-Reply-To: <354D6DEA-70AF-47EE-AA21-CEAA2BC852FF@thehales.id.au> References: <354D6DEA-70AF-47EE-AA21-CEAA2BC852FF@thehales.id.au> Message-ID: Hi James, Yes, this is true. If you do not see a particular fix in LC 9 but you do see it in 8.1.x, this means that something went wrong when we merged LC 8.1.x branch into LC 9 branch. So if this is the case, please file a bug report so as we fix it asap. Best regards, Panos -- On Tue, Nov 29, 2016 at 1:09 PM, James Hale wrote: > Just want to confirm that all the LC 9 releases contain the bug fixes and > improvements that are in the current LC 8.x rc series. > > Peter or Ali or 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 > -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From toolbook at kestner.de Tue Nov 29 08:15:44 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 29 Nov 2016 14:15:44 +0100 Subject: AW: LC 9 has all the improvements of the LC 8.1 series, yes? In-Reply-To: <354D6DEA-70AF-47EE-AA21-CEAA2BC852FF@thehales.id.au> References: <354D6DEA-70AF-47EE-AA21-CEAA2BC852FF@thehales.id.au> Message-ID: <002501d24a42$b17fb7c0$147f2740$@kestner.de> And additionally I would like to know, what caused a new first number? Why not 8.2? What is the relevant change to make a new major version? Concerning compatibility? Thanks Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von James Hale Gesendet: Dienstag, 29. November 2016 14:10 An: use-livecode at lists.runrev.com Betreff: LC 9 has all the improvements of the LC 8.1 series, yes? Just want to confirm that all the LC 9 releases contain the bug fixes and improvements that are in the current LC 8.x rc series. Peter or Ali or 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 panos.merakos at livecode.com Tue Nov 29 08:19:28 2016 From: panos.merakos at livecode.com (panagiotis merakos) Date: Tue, 29 Nov 2016 13:19:28 +0000 Subject: LC 9 has all the improvements of the LC 8.1 series, yes? In-Reply-To: <002501d24a42$b17fb7c0$147f2740$@kestner.de> References: <354D6DEA-70AF-47EE-AA21-CEAA2BC852FF@thehales.id.au> <002501d24a42$b17fb7c0$147f2740$@kestner.de> Message-ID: Hi Tiemo, Please see this blogpost that explains the change in the version numbering: https://livecode.com/whats-new-in-livecode-9-dp-1/ Best regards, Panos -- On Tue, Nov 29, 2016 at 1:15 PM, Tiemo Hollmann TB wrote: > And additionally I would like to know, what caused a new first number? Why > not 8.2? What is the relevant change to make a new major version? > Concerning > compatibility? > Thanks > Tiemo > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im > Auftrag > von James Hale > Gesendet: Dienstag, 29. November 2016 14:10 > An: use-livecode at lists.runrev.com > Betreff: LC 9 has all the improvements of the LC 8.1 series, yes? > > Just want to confirm that all the LC 9 releases contain the bug fixes and > improvements that are in the current LC 8.x rc series. > > Peter or Ali or 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 peter.brett at livecode.com Tue Nov 29 08:20:32 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Tue, 29 Nov 2016 13:20:32 +0000 Subject: LC 9 has all the improvements of the LC 8.1 series, yes? In-Reply-To: <002501d24a42$b17fb7c0$147f2740$@kestner.de> References: <354D6DEA-70AF-47EE-AA21-CEAA2BC852FF@thehales.id.au> <002501d24a42$b17fb7c0$147f2740$@kestner.de> Message-ID: <409a5b09-52de-00e6-a733-0a16c36be36a@livecode.com> On 29/11/2016 13:15, Tiemo Hollmann TB wrote: > And additionally I would like to know, what caused a new first number? Why > not 8.2? What is the relevant change to make a new major version? Concerning > compatibility? Hi Tiemo, From LiveCode 9 onwards, we will use a simplified numbering scheme: - If we add anything new or make any backward-incompatible change: increment first number, reset second number to 0 - If we fix bugs in a backwards-compatible way: keep first number, increment second number I explained this in the blog post that I wrote about the LiveCode 9 DP 1 release: https://livecode.com/whats-new-in-livecode-9-dp-1/ The new features in LiveCode 9 will include Infinite LiveCode capability, with _at least_ the ability to integrate LCB code directly with Java libraries (such as Android APIs). Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From toolbook at kestner.de Tue Nov 29 08:25:01 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 29 Nov 2016 14:25:01 +0100 Subject: AW: LC 9 has all the improvements of the LC 8.1 series, yes? In-Reply-To: <409a5b09-52de-00e6-a733-0a16c36be36a@livecode.com> References: <354D6DEA-70AF-47EE-AA21-CEAA2BC852FF@thehales.id.au> <002501d24a42$b17fb7c0$147f2740$@kestner.de> <409a5b09-52de-00e6-a733-0a16c36be36a@livecode.com> Message-ID: <002601d24a43$fd502d00$f7f08700$@kestner.de> Thanks Peter & Panos -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Peter TB Brett Gesendet: Dienstag, 29. November 2016 14:21 An: How to use LiveCode Betreff: Re: LC 9 has all the improvements of the LC 8.1 series, yes? On 29/11/2016 13:15, Tiemo Hollmann TB wrote: > And additionally I would like to know, what caused a new first number? > Why not 8.2? What is the relevant change to make a new major version? > Concerning compatibility? Hi Tiemo, From LiveCode 9 onwards, we will use a simplified numbering scheme: - If we add anything new or make any backward-incompatible change: increment first number, reset second number to 0 - If we fix bugs in a backwards-compatible way: keep first number, increment second number I explained this in the blog post that I wrote about the LiveCode 9 DP 1 release: https://livecode.com/whats-new-in-livecode-9-dp-1/ The new features in LiveCode 9 will include Infinite LiveCode capability, with _at least_ the ability to integrate LCB code directly with Java libraries (such as Android APIs). Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode _______________________________________________ use-livecode mailing list use-livecode at 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 Nov 29 08:34:55 2016 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 29 Nov 2016 09:34:55 -0400 Subject: Retrieving Browser Widget DOM Message-ID: Hi All, Does exists some command or function to retrieve the Browser Widget DOM? I could see the webpage source with this code: put the htmltext of widget "Browser" but How could I see the rendered DOM? Thanks in advance! Al From toolbook at kestner.de Tue Nov 29 08:52:50 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 29 Nov 2016 14:52:50 +0100 Subject: AW: LC 9 has all the improvements of the LC 8.1 series, yes? In-Reply-To: <002601d24a43$fd502d00$f7f08700$@kestner.de> References: <354D6DEA-70AF-47EE-AA21-CEAA2BC852FF@thehales.id.au> <002501d24a42$b17fb7c0$147f2740$@kestner.de> <409a5b09-52de-00e6-a733-0a16c36be36a@livecode.com> <002601d24a43$fd502d00$f7f08700$@kestner.de> Message-ID: <002f01d24a47$e0108c40$a031a4c0$@kestner.de> Reading the release notes of LC 9 there is a major difference between 8 and 9. That is the platform backward compatibility. I know, that Windows XP is out of date and not any more patched by MS, but I still have quite a number of customers, running offline computers with XP. Good to read the release notes carefully. Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Tiemo Hollmann TB Gesendet: Dienstag, 29. November 2016 14:25 An: 'How to use LiveCode' Betreff: AW: LC 9 has all the improvements of the LC 8.1 series, yes? Thanks Peter & Panos -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Peter TB Brett Gesendet: Dienstag, 29. November 2016 14:21 An: How to use LiveCode Betreff: Re: LC 9 has all the improvements of the LC 8.1 series, yes? On 29/11/2016 13:15, Tiemo Hollmann TB wrote: > And additionally I would like to know, what caused a new first number? > Why not 8.2? What is the relevant change to make a new major version? > Concerning compatibility? Hi Tiemo, From LiveCode 9 onwards, we will use a simplified numbering scheme: - If we add anything new or make any backward-incompatible change: increment first number, reset second number to 0 - If we fix bugs in a backwards-compatible way: keep first number, increment second number I explained this in the blog post that I wrote about the LiveCode 9 DP 1 release: https://livecode.com/whats-new-in-livecode-9-dp-1/ The new features in LiveCode 9 will include Infinite LiveCode capability, with _at least_ the ability to integrate LCB code directly with Java libraries (such as Android APIs). Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at 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 Tue Nov 29 09:58:52 2016 From: tore.nilsen at me.com (Tore Nilsen) Date: Tue, 29 Nov 2016 14:58:52 -0000 Subject: Retrieve the date from an external source. Message-ID: I need to retrieve the date from an external source, in order to bypass any changes to the date settings on the users computer. This is to ensure that a user cannot start an event until the proper date. (A digital advent calendar) I was foolishly thinking that the internet date was what I was looking for, but it is just another way to format the internal date as set by the user. Therefore, getting the internet date does not bypass any changes to the machines local settings. Information about the proper date for each event is stored as a custom property of different images in the application. This property is in the form of localized date, and is converted to seconds for comparison with the actually date, which of course is also converted to seconds. Everything here works as expected, but changing the computers date settings will allow the user to override the restraints in the script. I therefore need to get the date from a source outside the control of the user. (The application is a desktop standalone.) I am in a bit of a hurry (deadline on Thursday this week) and I can not seem to find any solutions searching for it in the usual places. I am unfamiliar with retrieving data from servers and services, so I am unfortunately stuck at the moment. Any help will much appreciated. Regards Tore Nilsen From matthias_livecode_150811 at m-r-d.de Tue Nov 29 10:04:31 2016 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Tue, 29 Nov 2016 16:04:31 +0100 Subject: Retrieve the date from an external source. In-Reply-To: References: Message-ID: <54B16106-94B8-49FA-B898-7BB29E17BCD4@m-r-d.de> Hi tore, i am using Livecode Server for such tasks. To get the correct date in an LC app i use put URL ?http://yourserver.com/whatsthetime.lc? into tCurrentDate where yourserver.com is of course my server and whatsthetime.lc contains the following put the short system time or put the system date Before LC server i used a php script to get the current date in my Flash Advent calendar. Regards, Matthias Matthias Rebbe Bramkampsieke 13 32312 L?bbecke Tel +49 5741 310000 +49 160 5504462 Fax: +49 5741 310002 eMail: matthias at m-r-d.de BR5 Konverter - BR5 -> MP3 > Am 12.01.2017 um 15:58 schrieb Tore Nilsen : > > I need to retrieve the date from an external source, in order to bypass any changes to the date settings on the users computer. This is to ensure that a user cannot start an event until the proper date. (A digital advent calendar) I was foolishly thinking that the internet date was what I was looking for, but it is just another way to format the internal date as set by the user. Therefore, getting the internet date does not bypass any changes to the machines local settings. > > Information about the proper date for each event is stored as a custom property of different images in the application. This property is in the form of localized date, and is converted to seconds for comparison with the actually date, which of course is also converted to seconds. Everything here works as expected, but changing the computers date settings will allow the user to override the restraints in the script. I therefore need to get the date from a source outside the control of the user. (The application is a desktop standalone.) > > I am in a bit of a hurry (deadline on Thursday this week) and I can not seem to find any solutions searching for it in the usual places. I am unfamiliar with retrieving data from servers and services, so I am unfortunately stuck at the moment. Any help will much appreciated. > > 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 tore.nilsen at me.com Tue Nov 29 10:26:10 2016 From: tore.nilsen at me.com (Tore Nilsen) Date: Tue, 29 Nov 2016 15:26:10 -0000 Subject: Retrieve the date from an external source. In-Reply-To: <54B16106-94B8-49FA-B898-7BB29E17BCD4@m-r-d.de> References: <54B16106-94B8-49FA-B898-7BB29E17BCD4@m-r-d.de> Message-ID: <637A2CA1-82F7-470E-9302-EDB12883C037@me.com> Thank you for your quick response. And this is where my lack of experience with working with lc-scripts and servers shines through. Although I have an account with LiveCode, I do not know how to access lc-server via this account. When I try this I only get the command in return, not the date. Regards Tore > 29. nov. 2016 kl. 16.04 skrev Matthias Rebbe : > > Hi tore, > > i am using Livecode Server for such tasks. > > To get the correct date in an LC app i use > > put URL ?http://yourserver.com/whatsthetime.lc? into tCurrentDate > > where yourserver.com is of course my server and whatsthetime.lc contains the following > > put the short system time > or > put the system date > > Before LC server i used a php script to get the current date in my Flash Advent calendar. > > Regards, > > Matthias > > > > Matthias Rebbe > Bramkampsieke 13 > 32312 L?bbecke > Tel +49 5741 310000 > +49 160 5504462 > Fax: +49 5741 310002 > eMail: matthias at m-r-d.de > > BR5 Konverter - BR5 -> MP3 >> Am 12.01.2017 um 15:58 schrieb Tore Nilsen : >> >> I need to retrieve the date from an external source, in order to bypass any changes to the date settings on the users computer. This is to ensure that a user cannot start an event until the proper date. (A digital advent calendar) I was foolishly thinking that the internet date was what I was looking for, but it is just another way to format the internal date as set by the user. Therefore, getting the internet date does not bypass any changes to the machines local settings. >> >> Information about the proper date for each event is stored as a custom property of different images in the application. This property is in the form of localized date, and is converted to seconds for comparison with the actually date, which of course is also converted to seconds. Everything here works as expected, but changing the computers date settings will allow the user to override the restraints in the script. I therefore need to get the date from a source outside the control of the user. (The application is a desktop standalone.) >> >> I am in a bit of a hurry (deadline on Thursday this week) and I can not seem to find any solutions searching for it in the usual places. I am unfamiliar with retrieving data from servers and services, so I am unfortunately stuck at the moment. Any help will much appreciated. >> >> 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 ambassador at fourthworld.com Tue Nov 29 10:29:50 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 29 Nov 2016 07:29:50 -0800 Subject: Serving Videos with LC/iRev In-Reply-To: References: Message-ID: Stephen Barncard wrote: > On Mon, Nov 28, 2016 at 2:45 PM, Richard Gaskin wrote: > >> In most of my server systems I even keep stack files outside of >> the web root, served up with my CGI. This keeps them safely away >> from spiders, and allows me to ensure authentication before access. > > thanks, Richard, to confirm this - the cgi thing of course appears > to still be the best way. I don't understand: AFAIK with LiveCode Server, CGI is the only way it can interface with web servers like Apache. Is there another way? > Do you have a lesson or page that describes this method? > This topic comes up often. Somehow I've missed that. I just read the file and hand the file's data back to Apache. What problems have people had with reading and returning binary data with LiveCode Server? -- 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 matthiasrebbe at me.com Tue Nov 29 10:50:57 2016 From: matthiasrebbe at me.com (Matthias Rebbe) Date: Tue, 29 Nov 2016 16:50:57 +0100 Subject: Retrieve the date from an external source. In-Reply-To: <637A2CA1-82F7-470E-9302-EDB12883C037@me.com> References: <54B16106-94B8-49FA-B898-7BB29E17BCD4@m-r-d.de> <637A2CA1-82F7-470E-9302-EDB12883C037@me.com> Message-ID: <93DA1C11-B371-4B10-AD7A-9CEABD73D8B9@me.com> The script should be as follows You need to declare the beginning of the script with > Am 12.01.2017 um 16:26 schrieb Tore Nilsen : > > Thank you for your quick response. And this is where my lack of experience with working with lc-scripts and servers shines through. Although I have an account with LiveCode, I do not know how to access lc-server via this account. When I try this I only get the command in return, not the date. > > Regards > Tore > > >> 29. nov. 2016 kl. 16.04 skrev Matthias Rebbe >: >> >> Hi tore, >> >> i am using Livecode Server for such tasks. >> >> To get the correct date in an LC app i use >> >> put URL ?http://yourserver.com/whatsthetime.lc? into tCurrentDate >> >> where yourserver.com is of course my server and whatsthetime.lc contains the following >> >> put the short system time >> or >> put the system date >> >> Before LC server i used a php script to get the current date in my Flash Advent calendar. >> >> Regards, >> >> Matthias >> >> >> >> Matthias Rebbe >> Bramkampsieke 13 >> 32312 L?bbecke >> Tel +49 5741 310000 >> +49 160 5504462 >> Fax: +49 5741 310002 >> eMail: matthias at m-r-d.de > >> >> BR5 Konverter - BR5 -> MP3 > >>> Am 12.01.2017 um 15:58 schrieb Tore Nilsen : >>> >>> I need to retrieve the date from an external source, in order to bypass any changes to the date settings on the users computer. This is to ensure that a user cannot start an event until the proper date. (A digital advent calendar) I was foolishly thinking that the internet date was what I was looking for, but it is just another way to format the internal date as set by the user. Therefore, getting the internet date does not bypass any changes to the machines local settings. >>> >>> Information about the proper date for each event is stored as a custom property of different images in the application. This property is in the form of localized date, and is converted to seconds for comparison with the actually date, which of course is also converted to seconds. Everything here works as expected, but changing the computers date settings will allow the user to override the restraints in the script. I therefore need to get the date from a source outside the control of the user. (The application is a desktop standalone.) >>> >>> I am in a bit of a hurry (deadline on Thursday this week) and I can not seem to find any solutions searching for it in the usual places. I am unfamiliar with retrieving data from servers and services, so I am unfortunately stuck at the moment. Any help will much appreciated. >>> >>> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Nov 29 11:06:30 2016 From: tore.nilsen at me.com (Tore Nilsen) Date: Tue, 29 Nov 2016 17:06:30 +0100 Subject: Retrieve the date from an external source. In-Reply-To: <93DA1C11-B371-4B10-AD7A-9CEABD73D8B9@me.com> References: <54B16106-94B8-49FA-B898-7BB29E17BCD4@m-r-d.de> <637A2CA1-82F7-470E-9302-EDB12883C037@me.com> <93DA1C11-B371-4B10-AD7A-9CEABD73D8B9@me.com> Message-ID: <187707E9-E4CB-421A-BACD-8E157C5F28DE@me.com> Brilliant! Now I have what I need to push on! Thank you. Tore > 29. nov. 2016 kl. 16.50 skrev Matthias Rebbe : > > The script should be as follows > > put the system date > ?> > > You need to declare the beginning of the script with > and the end of the script with ?> > > >> Am 12.01.2017 um 16:26 schrieb Tore Nilsen >: >> >> Thank you for your quick response. And this is where my lack of experience with working with lc-scripts and servers shines through. Although I have an account with LiveCode, I do not know how to access lc-server via this account. When I try this I only get the command in return, not the date. >> >> Regards >> Tore >> >> >>> 29. nov. 2016 kl. 16.04 skrev Matthias Rebbe >>: >>> >>> Hi tore, >>> >>> i am using Livecode Server for such tasks. >>> >>> To get the correct date in an LC app i use >>> >>> put URL ?http://yourserver.com/whatsthetime.lc ? into tCurrentDate >>> >>> where yourserver.com is of course my server and whatsthetime.lc contains the following >>> >>> put the short system time >>> or >>> put the system date >>> >>> Before LC server i used a php script to get the current date in my Flash Advent calendar. >>> >>> Regards, >>> >>> Matthias >>> >>> >>> >>> Matthias Rebbe >>> Bramkampsieke 13 >>> 32312 L?bbecke >>> Tel +49 5741 310000 >>> +49 160 5504462 >>> Fax: +49 5741 310002 >>> eMail: matthias at m-r-d.de > >> >>> >>> BR5 Konverter - BR5 -> MP3 >> >>>> Am 12.01.2017 um 15:58 schrieb Tore Nilsen : >>>> >>>> I need to retrieve the date from an external source, in order to bypass any changes to the date settings on the users computer. This is to ensure that a user cannot start an event until the proper date. (A digital advent calendar) I was foolishly thinking that the internet date was what I was looking for, but it is just another way to format the internal date as set by the user. Therefore, getting the internet date does not bypass any changes to the machines local settings. >>>> >>>> Information about the proper date for each event is stored as a custom property of different images in the application. This property is in the form of localized date, and is converted to seconds for comparison with the actually date, which of course is also converted to seconds. Everything here works as expected, but changing the computers date settings will allow the user to override the restraints in the script. I therefore need to get the date from a source outside the control of the user. (The application is a desktop standalone.) >>>> >>>> I am in a bit of a hurry (deadline on Thursday this week) and I can not seem to find any solutions searching for it in the usual places. I am unfamiliar with retrieving data from servers and services, so I am unfortunately stuck at the moment. Any help will much appreciated. >>>> >>>> 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 > >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 29 11:15:25 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 29 Nov 2016 08:15:25 -0800 Subject: Widget request (native text scroller for iOS) In-Reply-To: <64893A3E-BD2F-4ED9-9815-E71429F9A531@gmail.com> References: <64893A3E-BD2F-4ED9-9815-E71429F9A531@gmail.com> Message-ID: John Allijn wrote: > Most of the time when I work on an iOS app, I run into problems with > scrollers, fields that scroll their contents over the screen. > > Usually I have just one scrollable field on a card with variable text > in it. Most often this text is downloaded from a database and I just > put the plain text into this field. > > Most often, the field does not scroll, does not show up, won?t > display all the content, runs over the boundaries that I?ve set or > is just badly positioned. > > The last few apps I made, I worked around this problem by designing > my app around it. (splitting the text in chunks that are big enough > to display and using swipes to go to the next card with more content) > but this has been annoying me ever since. > > I was wondering if someone had, or was willing to make, a livecode > widget for a scrolling field. That way we can all just drag it in the > project, fill it with text and get some sleep again :) Widgets are great for making new kinds of objects, but if all that's needed here is to fix a bug with scrolling on the existing field object IMO that's just a bug. Has it been reported? -- 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 Tue Nov 29 12:48:31 2016 From: hh at hyperhh.de (hh) Date: Tue, 29 Nov 2016 18:48:31 +0100 Subject: Retrieving Browser Widget DOM Message-ID: Hi Al, AFAIK there is no built-in DOM Inspector. In case you write one, in livecodeshare (Sample Stacks) I found once several XML-stacks containing very useful handlers. H. From iowahengst at mac.com Tue Nov 29 12:52:32 2016 From: iowahengst at mac.com (Randy Hengst) Date: Tue, 29 Nov 2016 11:52:32 -0600 Subject: Points of Regular Polygon Message-ID: Hi All, As I?ve looked through the list archives, I know the answer to my quetion was ?no' back in 2013? just checking to see if I?ve missed something. Is there a way to get the points (vertices) of a a regular polygon? I want to set the the number of sides of the regular polygon (which is easily scripted), and then I?d like to find the loc of each of the vertices? Is the answer to finding the points of the vertices still no? be well, randy www.classroomFocusedSoftware.com From devin_asay at byu.edu Tue Nov 29 12:57:03 2016 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 29 Nov 2016 17:57:03 +0000 Subject: Points of Regular Polygon In-Reply-To: References: Message-ID: <832046E9-2B7E-444E-BA0A-5E08EC6C66B4@byu.edu> > On Nov 29, 2016, at 10:52 AM, Randy Hengst wrote: > > Hi All, > > As I?ve looked through the list archives, I know the answer to my quetion was ?no' back in 2013? just checking to see if I?ve missed something. > > Is there a way to get the points (vertices) of a a regular polygon? > > I want to set the the number of sides of the regular polygon (which is easily scripted), and then I?d like to find the loc of each of the vertices? > > Is the answer to finding the points of the vertices still no? It?s yes! put the effective points of graphic ?foo? Devin Devin Asay Director Office of Digital Humanities Brigham Young University From scott at tactilemedia.com Tue Nov 29 12:59:21 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 29 Nov 2016 09:59:21 -0800 Subject: Points of Regular Polygon In-Reply-To: References: Message-ID: <8A71892B-D1E7-43E9-8C97-46A77B5E2A6D@tactilemedia.com> Sounds like you want the effective points property (of grc ?abc?)? Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design > On Nov 29, 2016, at 9:52 AM, Randy Hengst wrote: > > Hi All, > > As I?ve looked through the list archives, I know the answer to my quetion was ?no' back in 2013? just checking to see if I?ve missed something. > > Is there a way to get the points (vertices) of a a regular polygon? > > I want to set the the number of sides of the regular polygon (which is easily scripted), and then I?d like to find the loc of each of the vertices? > > Is the answer to finding the points of the vertices still no? > > be well, > randy > www.classroomFocusedSoftware.com > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Tue Nov 29 13:11:54 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 29 Nov 2016 20:11:54 +0200 Subject: AW: LC 9 has all the improvements of the LC 8.1 series, yes? In-Reply-To: <002601d24a43$fd502d00$f7f08700$@kestner.de> References: <354D6DEA-70AF-47EE-AA21-CEAA2BC852FF@thehales.id.au> <002501d24a42$b17fb7c0$147f2740$@kestner.de> <409a5b09-52de-00e6-a733-0a16c36be36a@livecode.com> <002601d24a43$fd502d00$f7f08700$@kestner.de> Message-ID: <78b4dd22-941f-5aab-bdef-a15b76385a62@gmail.com> At the risk of sounding mind-blowingly stupid (hey, recently I've done that several times, so one more time shouldn't hurt that much) I would be really very grateful indeed if someone could exlplain in very simple terms what including Infinite LiveCode capability actually means. Come to think of things, there may be other people "out there" who don't really understand that either. Richmond. On 11/29/16 3:25 pm, Tiemo Hollmann TB wrote: > Thanks Peter & Panos > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag > von Peter TB Brett > Gesendet: Dienstag, 29. November 2016 14:21 > An: How to use LiveCode > Betreff: Re: LC 9 has all the improvements of the LC 8.1 series, yes? > > > > On 29/11/2016 13:15, Tiemo Hollmann TB wrote: >> And additionally I would like to know, what caused a new first number? >> Why not 8.2? What is the relevant change to make a new major version? >> Concerning compatibility? > Hi Tiemo, > > From LiveCode 9 onwards, we will use a simplified numbering scheme: > > - If we add anything new or make any backward-incompatible change: > increment first number, reset second number to 0 > > - If we fix bugs in a backwards-compatible way: keep first number, increment > second number > > I explained this in the blog post that I wrote about the LiveCode 9 DP 1 > release: https://livecode.com/whats-new-in-livecode-9-dp-1/ > > The new features in LiveCode 9 will include Infinite LiveCode capability, > with _at least_ the ability to integrate LCB code directly with Java > libraries (such as Android APIs). > > Peter > > -- > Dr Peter Brett LiveCode Technical Project Manager > > lcb-mode for Emacs: https://github.com/peter-b/lcb-mode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Tue Nov 29 13:19:50 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 29 Nov 2016 20:19:50 +0200 Subject: Points of Regular Polygon In-Reply-To: <832046E9-2B7E-444E-BA0A-5E08EC6C66B4@byu.edu> References: <832046E9-2B7E-444E-BA0A-5E08EC6C66B4@byu.edu> Message-ID: <9cb1ec4c-fe87-aaaa-2a83-1ad77b7ea9f4@gmail.com> That's true; BUT one cannot deform a regular polygon by doing a set the points of grc "XYZ" to fld "ABC" . . . 'Tis regular, don't cha know? Richmond. On 11/29/16 7:57 pm, Devin Asay wrote: >> On Nov 29, 2016, at 10:52 AM, Randy Hengst wrote: >> >> Hi All, >> >> As I?ve looked through the list archives, I know the answer to my quetion was ?no' back in 2013? just checking to see if I?ve missed something. >> >> Is there a way to get the points (vertices) of a a regular polygon? >> >> I want to set the the number of sides of the regular polygon (which is easily scripted), and then I?d like to find the loc of each of the vertices? >> >> Is the answer to finding the points of the vertices still no? > It?s yes! > > put the effective points of graphic ?foo? > > Devin > > > Devin Asay > Director > Office of Digital Humanities > Brigham Young University > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From john.allijn.lc at gmail.com Tue Nov 29 13:24:08 2016 From: john.allijn.lc at gmail.com (John Allijn) Date: Tue, 29 Nov 2016 19:24:08 +0100 Subject: Widget request (native text scroller for iOS) In-Reply-To: References: <64893A3E-BD2F-4ED9-9815-E71429F9A531@gmail.com> Message-ID: Hi Richard, I don't think it's a bug. It's just me not being a very skilled programmer :) Thats why I choose livecode. The thing is that native mobile objects are almost completely implemented by code. Where as desktop objects can be dragged into a stack and than be accessed and updated by code. It is my personal opinion that a text field that I drag into a stack should behave as a native mac field on the mac and a native 'scroller' on iOS. And as a programmer in livecode I should benefit from the code-once-deploy-everywhere features of livecode. I understand that the implementation of fields in livecode is not yet at this point. And to be fair: it has come a long way in very short time. The fact that I can build an app for iOS with livecode is amazing. However I use text fields a lot and I find the process of creating, scrolling and updating them for iOS way to complex. So I was hoping that someone else things so to and had a widget built for it :) Best regards John. > Op 29 nov. 2016 om 17:15 heeft Richard Gaskin het volgende geschreven: > > John Allijn wrote: > > > Most of the time when I work on an iOS app, I run into problems with > > scrollers, fields that scroll their contents over the screen. > > > > Usually I have just one scrollable field on a card with variable text > > in it. Most often this text is downloaded from a database and I just > > put the plain text into this field. > > > > Most often, the field does not scroll, does not show up, won?t > > display all the content, runs over the boundaries that I?ve set or > > is just badly positioned. > > > > The last few apps I made, I worked around this problem by designing > > my app around it. (splitting the text in chunks that are big enough > > to display and using swipes to go to the next card with more content) > > but this has been annoying me ever since. > > > > I was wondering if someone had, or was willing to make, a livecode > > widget for a scrolling field. That way we can all just drag it in the > > project, fill it with text and get some sleep again :) > > Widgets are great for making new kinds of objects, but if all that's needed here is to fix a bug with scrolling on the existing field object IMO that's just a bug. > > Has it been reported? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Tue Nov 29 13:24:37 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 29 Nov 2016 20:24:37 +0200 Subject: [OT] Hosed Xubuntu system In-Reply-To: References: <34a1aae6-8120-681d-a38f-00eaa5eef558@fourthworld.com> Message-ID: <01556299-8975-0eb0-b26d-624bb7204f50@gmail.com> Frankly, as long as your backups are not degraded the odd spot of degradation in your English is probably less worrying. I am planning . . . to remove the hard drives from my Linux box and stick them in external boxes and have Disk Drill look at thenm from my Mac OS 10.7.5 machine: I would be grateful if anyone has any experience with this if they could give me some feedback. I intend to examine the disks with the Free version, and if it finds something pay for the forensic version. http://www.cleverfiles.com/ Richmond. On 11/29/16 1:01 am, Mike Bonner wrote: > My english skills are degrading at a high rate of speed apparently. Fixes: > "set it up clean and up to date" and "at the end of each day, multicast > the clean image to all computers to prep for the next day" > > On Mon, Nov 28, 2016 at 3:59 PM, Mike Bonner wrote: > > From ambassador at fourthworld.com Tue Nov 29 13:30:03 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 29 Nov 2016 10:30:03 -0800 Subject: AW: LC 9 has all the improvements of the LC 8.1 series, yes? In-Reply-To: <78b4dd22-941f-5aab-bdef-a15b76385a62@gmail.com> References: <78b4dd22-941f-5aab-bdef-a15b76385a62@gmail.com> Message-ID: <2baea15a-8c72-58a2-37ca-c77997730907@fourthworld.com> Richmond Mathewson wrote: > At the risk of sounding mind-blowingly stupid (hey, recently I've > done that several times, so one more time shouldn't hurt that much) > I would be really very grateful indeed if someone could exlplain in > very simple terms what including Infinite LiveCode capability > actually means. I did a quick Google search for "infinite livecode" and the first result was this page, which offers both a high-level summary and some technical details: Included in those search results were these blog posts which offer more info: ...along with this link I provided for you in a recent forum thread: -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From richmondmathewson at gmail.com Tue Nov 29 13:30:30 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 29 Nov 2016 20:30:30 +0200 Subject: SVG import Message-ID: <3d9574e7-038b-6491-41d4-e5f211892a1b@gmail.com> The way one has to open an SVG file in a vector editor (Inkscape, Illustrator, etc.) to extract the points to paste intil the SVG widget: 1. means that faut de meux one is dependent on an external application. 2. I would jalouse that SVG import could be "folded" intil Livecode without to much "fuss". Richmond. From richmondmathewson at gmail.com Tue Nov 29 13:31:21 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 29 Nov 2016 20:31:21 +0200 Subject: AW: LC 9 has all the improvements of the LC 8.1 series, yes? In-Reply-To: <2baea15a-8c72-58a2-37ca-c77997730907@fourthworld.com> References: <78b4dd22-941f-5aab-bdef-a15b76385a62@gmail.com> <2baea15a-8c72-58a2-37ca-c77997730907@fourthworld.com> Message-ID: <1eefc387-3c93-4899-15d4-5de8fd95ee34@gmail.com> Thank you very much: I'll setle down and do some serious reading. Richmond. On 11/29/16 8:30 pm, Richard Gaskin wrote: > Richmond Mathewson wrote: > > > At the risk of sounding mind-blowingly stupid (hey, recently I've > > done that several times, so one more time shouldn't hurt that much) > > I would be really very grateful indeed if someone could exlplain in > > very simple terms what including Infinite LiveCode capability > > actually means. > > I did a quick Google search for "infinite livecode" and the first > result was this page, which offers both a high-level summary and some > technical details: > > > Included in those search results were these blog posts which offer > more info: > > > > > ...along with this link I provided for you in a recent forum thread: > > > From hh at hyperhh.de Tue Nov 29 13:32:19 2016 From: hh at hyperhh.de (hh) Date: Tue, 29 Nov 2016 19:32:19 +0100 Subject: Retrieve the date from an external source. Message-ID: Just to round up this fine solution, could also be used for LC server: I searched for ntp handlers and found this nifty stack http://lists.runrev.com/pipermail/use-livecode/2011-August/160813.html From ambassador at fourthworld.com Tue Nov 29 13:35:33 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 29 Nov 2016 10:35:33 -0800 Subject: Points of Regular Polygon In-Reply-To: <9cb1ec4c-fe87-aaaa-2a83-1ad77b7ea9f4@gmail.com> References: <9cb1ec4c-fe87-aaaa-2a83-1ad77b7ea9f4@gmail.com> Message-ID: Richmond Mathewson wrote: > ...BUT one cannot deform a regular polygon... ...because it would then no longer be a regular polygon. To make an irregular polygon use the polygon style. If you need it to have regular points you can first create a regular polygon, get its effective points, change its style to "polygon", then set the points and adjust them however you like: put the effective points of grc 1 into tPts set the style of grc 1 to "polygon" set the points of grc 1 to tPts -- 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 Tue Nov 29 13:40:04 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 29 Nov 2016 10:40:04 -0800 Subject: Widget request (native text scroller for iOS) In-Reply-To: References: Message-ID: John Allijn wrote: >> Op 29 nov. 2016 om 17:15 heeft Richard Gaskin het volgende geschreven: >> Widgets are great for making new kinds of objects, but if all that's >> needed here is to fix a bug with scrolling on the existing field >> object IMO that's just a bug. > > Hi Richard, > I don't think it's a bug. It's just me not being a very skilled > programmer :) > Thats why I choose livecode. > The thing is that native mobile objects are almost completely > implemented by code. Where as desktop objects can be dragged into > a stack and than be accessed and updated by code. It is my personal > opinion that a text field that I drag into a stack should behave as > a native mac field on the mac and a native 'scroller' on iOS. And as > a programmer in livecode I should benefit from the code-once-deploy- > everywhere features of livecode. > I understand that the implementation of fields in livecode is not yet > at this point. But it should be. Simplicity of multi-platform deployment is why we choose LiveCode. And that's why I consider this a bug. And thankfully this (along with a few other refinements) is among the funded goals the team is working on: -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From richmondmathewson at gmail.com Tue Nov 29 13:40:24 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 29 Nov 2016 20:40:24 +0200 Subject: Points of Regular Polygon In-Reply-To: References: <9cb1ec4c-fe87-aaaa-2a83-1ad77b7ea9f4@gmail.com> Message-ID: Indeed. Richmond. On 11/29/16 8:35 pm, Richard Gaskin wrote: > Richmond Mathewson wrote: > > > ...BUT one cannot deform a regular polygon... > > ...because it would then no longer be a regular polygon. > > To make an irregular polygon use the polygon style. If you need it to > have regular points you can first create a regular polygon, get its > effective points, change its style to "polygon", then set the points > and adjust them however you like: > > put the effective points of grc 1 into tPts > set the style of grc 1 to "polygon" > set the points of grc 1 to tPts > From hh at hyperhh.de Tue Nov 29 13:46:39 2016 From: hh at hyperhh.de (hh) Date: Tue, 29 Nov 2016 19:46:39 +0100 Subject: Points of Regular Polygon Message-ID: <6933EBDE-7729-4EAF-A441-850F2E0A2A0A@hyperhh.de> Why not simply computing the points by yourself? Excerpt from the the main script of Raspi stack #2: RegularPolygons3 (http://forums.livecode.com/viewtopic.php?p=98716#p98716) -- N is the number of vertices -- x0,y0 is the center of the polygon -- r is the radius of the polygon -- b is the angle of rotation in degrees -- (positive b turns clockwise, negative b turns ccw) function regularPoints n,r,x0,y0,b put 2*pi/n into cn -- n vertices --> n+1 points if 'closed' polygon -- usually done by setting last=first -- This is here true as sin(0)=sin(2*pi) and cos(0)=cos(2*pi) put empty into pts if b=0 or b is empty then ## compute unrotated n+1 vertices of the n-sided regular polygon repeat with j=0 to n put CR & (round(r*sin(j*cn)+x0),round(-r*cos(j*cn)+y0)) after pts end repeat else ## compute *rotated* n+1 vertices of the n-sided regular polygon put sin(pi*b/180) into s; put cos(pi*b/180) into c repeat with j=0 to n put round( r*sin(j*cn)) into sx; put round(-r*cos(j*cn)) into sy put CR & ( (round(x0+c*sx-s*sy),round(y0+c*sy+s*sx)) ) after pts end repeat end if return char 2 to -1 of pts end regularPoints From john.allijn.lc at gmail.com Tue Nov 29 13:46:52 2016 From: john.allijn.lc at gmail.com (John Allijn) Date: Tue, 29 Nov 2016 19:46:52 +0100 Subject: Widget request (native text scroller for iOS) In-Reply-To: References: Message-ID: <7C70542E-3A81-491F-ACE1-AF9C6E37A6DE@gmail.com> Good to know. Thanks! > On 29 Nov 2016, at 19:40, Richard Gaskin wrote: > > John Allijn wrote: > > >> Op 29 nov. 2016 om 17:15 heeft Richard Gaskin het volgende geschreven: > >> Widgets are great for making new kinds of objects, but if all that's > >> needed here is to fix a bug with scrolling on the existing field > >> object IMO that's just a bug. > > > > Hi Richard, > > I don't think it's a bug. It's just me not being a very skilled > > programmer :) > > Thats why I choose livecode. > > The thing is that native mobile objects are almost completely > > implemented by code. Where as desktop objects can be dragged into > > a stack and than be accessed and updated by code. It is my personal > > opinion that a text field that I drag into a stack should behave as > > a native mac field on the mac and a native 'scroller' on iOS. And as > > a programmer in livecode I should benefit from the code-once-deploy- > > everywhere features of livecode. > > I understand that the implementation of fields in livecode is not yet > > at this point. > > But it should be. Simplicity of multi-platform deployment is why we choose LiveCode. > > And that's why I consider this a bug. > > And thankfully this (along with a few other refinements) is among the funded goals the team is working on: > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Tue Nov 29 13:46:55 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 29 Nov 2016 20:46:55 +0200 Subject: Points of Regular Polygon In-Reply-To: References: <9cb1ec4c-fe87-aaaa-2a83-1ad77b7ea9f4@gmail.com> Message-ID: <14d377c5-d913-ce10-6a7d-91f52f4e815c@gmail.com> Oddly enough, that may have uncovered a bug in LC 9 dp3 . . . I thought I would set the points of a polygon graphic to the points of the regular polygon graphic that I had exported into a scrolling list field. But when I selected 'Polygon Graphic' from the Menu/Object/New Control/Polygon Graphic (Mac OS 10.7.5: yeah, yeah, I know, 'tisn't supported for LC 9: go and try it on a newer Mac running Mac OS Rocky Mountain) and no polygon graphic appeared on my stack. To contextualise this: there is no problem if I select 'regualr polygon graphic'. Richmond. On 11/29/16 8:35 pm, Richard Gaskin wrote: > Richmond Mathewson wrote: > > > ...BUT one cannot deform a regular polygon... > > ...because it would then no longer be a regular polygon. > > To make an irregular polygon use the polygon style. If you need it to > have regular points you can first create a regular polygon, get its > effective points, change its style to "polygon", then set the points > and adjust them however you like: > > put the effective points of grc 1 into tPts > set the style of grc 1 to "polygon" > set the points of grc 1 to tPts > From richmondmathewson at gmail.com Tue Nov 29 13:50:09 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 29 Nov 2016 20:50:09 +0200 Subject: Points of Regular Polygon In-Reply-To: References: <9cb1ec4c-fe87-aaaa-2a83-1ad77b7ea9f4@gmail.com> Message-ID: <58e38833-3a5d-1b52-b45f-1dc535ce2414@gmail.com> Aha: the IDE just plonks a pointless polygon graphic in your card, so it is invisible. Setting points does no good at all. Richmond. On 11/29/16 8:35 pm, Richard Gaskin wrote: > Richmond Mathewson wrote: > > > ...BUT one cannot deform a regular polygon... > > ...because it would then no longer be a regular polygon. > > To make an irregular polygon use the polygon style. If you need it to > have regular points you can first create a regular polygon, get its > effective points, change its style to "polygon", then set the points > and adjust them however you like: > > put the effective points of grc 1 into tPts > set the style of grc 1 to "polygon" > set the points of grc 1 to tPts > From hh at hyperhh.de Tue Nov 29 14:06:26 2016 From: hh at hyperhh.de (hh) Date: Tue, 29 Nov 2016 20:06:26 +0100 Subject: Points of Regular Polygon Message-ID: <9C0A344A-07D9-4CDF-A2E3-7B12BE498012@hyperhh.de> Richmond M. > Setting points does no good at all. That's not true if graphics are involved. Just follow the rules. You cannot _set_ the points of a graphic of type "regular". You can _get_ the points since LC 7 (thanks to Mark Wieder). Just the same with a graphic of type "Oval" or "Rectangle" or "Line". (A grc "Line" is handled as "Polygon" if you set more points than 2). But you can set the points of a graphic of type "Polygon". This is the only type of graphic that has settable points (or relativePoints). From ambassador at fourthworld.com Tue Nov 29 14:09:14 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 29 Nov 2016 11:09:14 -0800 Subject: Points of Regular Polygon In-Reply-To: <14d377c5-d913-ce10-6a7d-91f52f4e815c@gmail.com> References: <14d377c5-d913-ce10-6a7d-91f52f4e815c@gmail.com> Message-ID: <575e6983-9c52-6028-d122-beff7a8c1a1b@fourthworld.com> Richmond Mathewson wrote: > Oddly enough, that may have uncovered a bug in LC 9 dp3 . . . > > I thought I would set the points of a polygon graphic to the points > of the regular polygon graphic that I had exported into a scrolling > list field. > > But when I selected 'Polygon Graphic' from the Menu/Object/New > Control/Polygon Graphic > (Mac OS 10.7.5: yeah, yeah, I know, 'tisn't supported for LC 9: go > and try it on a newer Mac running Mac OS Rocky Mountain) and no > polygon graphic appeared on my stack. > > To contextualise this: there is no problem if I select 'regualr > polygon graphic'. An irregular polygon has no inherent shape; its points must be drawn by the user. When I choose that menu item (in v9.0 dp3 on Ubuntu) the tool changes to graphic polygon, and allows me to draw it out as expected. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From richmondmathewson at gmail.com Tue Nov 29 14:10:28 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 29 Nov 2016 21:10:28 +0200 Subject: Points of Regular Polygon In-Reply-To: <575e6983-9c52-6028-d122-beff7a8c1a1b@fourthworld.com> References: <14d377c5-d913-ce10-6a7d-91f52f4e815c@gmail.com> <575e6983-9c52-6028-d122-beff7a8c1a1b@fourthworld.com> Message-ID: On 11/29/16 9:09 pm, Richard Gaskin wrote: > Richmond Mathewson wrote: > > > Oddly enough, that may have uncovered a bug in LC 9 dp3 . . . > > > > I thought I would set the points of a polygon graphic to the points > > of the regular polygon graphic that I had exported into a scrolling > > list field. > > > > But when I selected 'Polygon Graphic' from the Menu/Object/New > > Control/Polygon Graphic > > (Mac OS 10.7.5: yeah, yeah, I know, 'tisn't supported for LC 9: go > > and try it on a newer Mac running Mac OS Rocky Mountain) and no > > polygon graphic appeared on my stack. > > > > To contextualise this: there is no problem if I select 'regualr > > polygon graphic'. > > An irregular polygon has no inherent shape; its points must be drawn > by the user. > > When I choose that menu item (in v9.0 dp3 on Ubuntu) the tool changes > to graphic polygon, and allows me to draw it out as expected. > Not over "here" I'm afraid. Richmond. From hh at hyperhh.de Tue Nov 29 14:24:31 2016 From: hh at hyperhh.de (hh) Date: Tue, 29 Nov 2016 20:24:31 +0100 Subject: Points of Regular Polygon Message-ID: I should have better used the wording "graphic of type" than "graphic of style" because we can set the style of grc 1 to "polygon" for example (the function again, just for the completeness here): on mouseUp if there is no grc "poly" then create grc "poly" set style of grc "poly" to "polygon" -- 7 vertices, 1 vertix at 12 o'clock, radius 42, loc (100,100) set points of grc "poly" to regularPoints(7,42,100,100) set foreColor of grc "poly" to "0,128,128" -- teal set lineSize of grc "poly" to 2 end mouseUp -- N is the number of vertices -- x0,y0 is the center of the polygon -- r is the radius of the polygon -- b is the angle of rotation in degrees -- (positive b turns clockwise, negative b turns ccw) function regularPoints n,r,x0,y0,b put 2*pi/n into cn -- n vertices --> n+1 points if 'closed' polygon -- usually done by setting last=first -- This is here true as sin(0)=sin(2*pi) and cos(0)=cos(2*pi) put empty into pts if b=0 or b is empty then ## compute unrotated n+1 vertices of the n-sided regular polygon repeat with j=0 to n put CR & (round(r*sin(j*cn)+x0),round(-r*cos(j*cn)+y0)) after pts end repeat else ## compute *rotated* n+1 vertices of the n-sided regular polygon put sin(pi*b/180) into s; put cos(pi*b/180) into c repeat with j=0 to n put round( r*sin(j*cn)) into sx; put round(-r*cos(j*cn)) into sy put CR & ( (round(x0+c*sx-s*sy),round(y0+c*sy+s*sx)) ) after pts end repeat end if return char 2 to -1 of pts end regularPoints From capellan2000 at gmail.com Tue Nov 29 15:05:29 2016 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 29 Nov 2016 16:05:29 -0400 Subject: SVG import Message-ID: Hi Richmond, I believe that the best way to use SVG ilustrations within LiveCode is converting them to PNG images. Take a look at these stacks (download draft v02) http://forums.livecode.com/viewtopic.php?f=11&t=28384 I hope that developers more experienced take notice and fix these early drafts... About SVGL plus Gradients, I found the main issue to complete this stack: Flattening (or applying) all transforms in the SVG before drawing the vectors inside LiveCode If you look in the web for a tool or script that could do these simple math operations, there is none... This Javascript tool do not seems to work with Matrix Transforms (precisely the most common transformations): https://gist.github.com/timo22345/9413158 Richmond, Do you want to help to create (and test) code to flattening (or applying) all transforms in a SVG using LiveCode? Al From jacque at hyperactivesw.com Tue Nov 29 15:14:41 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 29 Nov 2016 14:14:41 -0600 Subject: My own productivity app In-Reply-To: References: Message-ID: On 11/28/16 9:29 PM, Terry Vogelaar wrote: > All of them help users to have productive time and leisure time. But > if I would run all three, there would be no agreement between them > when I should have my break. > > The latter app made me realise I could create my own. Any programmer > could make that. But ideally I would want to integrate what makes the > other two apps great. I want the activity detection that MacBreakZ > has and the distraction-restriction (hey)Focus offers. Would an app > made in LiveCode be able to do that? If so, how? The problem I see here is that LC has no knowledge of what other apps are in use, and provides no feedback when it isn't the frontmost app. There may be shell calls you could use to get some of the information, but I kind of doubt there's a way to monitor keystrokes and that sort of thing. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bonnmike at gmail.com Tue Nov 29 15:35:52 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 29 Nov 2016 13:35:52 -0700 Subject: My own productivity app In-Reply-To: References: Message-ID: The only way I know of to monitor keystrokes/mouse events is with a loop. Check to see if keysdown() is empty, and "if the mouse is down." Certain things won't trigger the mouse is down such as grabbing a title bar and dragging it around (on windows) but most other clicks will work fine. For a simple test, I made a stack with a field and a button. the following code is in the button. local sRunning on mouseUp if sRunning is empty then put false into sRunning put not sRunning into sRunning loopit end mouseUp command loopit if sRunning then if the keysdown is not empty then put keysdown() into field 1 else put empty into field 1 end if if the mouse is down then set the backgroundcolor of field 1 to red else set the backgroundcolor of field 1 to empty end if send loopit to me in 100 millisec end if end loopit Placing the window where its visible but not focused and work with another program. Every click the field turns red, every keypress and the keys that are down show up in the field. With a delay of 100 seconds its possible to miss an event, but if a person were actually working actively most keypresses and clicks will be caught. It should be possible to use either applescript or vbscript to note what window is focused, though im not sure how to tell if one is working in a facebook tab or not. On Tue, Nov 29, 2016 at 1:14 PM, J. Landman Gay wrote: > On 11/28/16 9:29 PM, Terry Vogelaar wrote: > > >> All of them help users to have productive time and leisure time. But >> if I would run all three, there would be no agreement between them >> when I should have my break. >> >> The latter app made me realise I could create my own. Any programmer >> could make that. But ideally I would want to integrate what makes the >> other two apps great. I want the activity detection that MacBreakZ >> has and the distraction-restriction (hey)Focus offers. Would an app >> made in LiveCode be able to do that? If so, how? >> > > The problem I see here is that LC has no knowledge of what other apps are > in use, and provides no feedback when it isn't the frontmost app. There may > be shell calls you could use to get some of the information, but I kind of > doubt there's a way to monitor keystrokes and that sort of thing. > > -- > 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 dochawk at gmail.com Tue Nov 29 16:38:36 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 29 Nov 2016 13:38:36 -0800 Subject: LC suddenly sending using library stack for script editor field calls Message-ID: It took a couple of wasted hours to find this . . . LC has, all of a sudden, started using my library stack when opening the script editor. So my openField handler, for example, gets called. I'm guessing that it briefly did this a long time ago, because I have commented out routines to catch and pass if the stack name begins with rev . . . Did a setting flip somewhere? (I've noticed preferences, particularly strict compilation, changing on their own occasionally). This is 8.1.2 RC2 -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From iowahengst at mac.com Tue Nov 29 16:43:45 2016 From: iowahengst at mac.com (Randy Hengst) Date: Tue, 29 Nov 2016 15:43:45 -0600 Subject: Points of Regular Polygon In-Reply-To: References: Message-ID: Well, this was fun. I write a question, go teach class, and come back to a very interesting conversation. Thanks all. be well, randy www.classroomFocusedSoftware.com > On Nov 29, 2016, at 1:24 PM, hh wrote: > > I should have better used the wording > "graphic of type" than "graphic of style" > because we can > set the style of grc 1 to "polygon" > for example (the function again, just for the completeness here): > > on mouseUp > if there is no grc "poly" then create grc "poly" > set style of grc "poly" to "polygon" > -- 7 vertices, 1 vertix at 12 o'clock, radius 42, loc (100,100) > set points of grc "poly" to regularPoints(7,42,100,100) > set foreColor of grc "poly" to "0,128,128" -- teal > set lineSize of grc "poly" to 2 > end mouseUp > > -- N is the number of vertices > -- x0,y0 is the center of the polygon > -- r is the radius of the polygon > -- b is the angle of rotation in degrees > -- (positive b turns clockwise, negative b turns ccw) > function regularPoints n,r,x0,y0,b > put 2*pi/n into cn > -- n vertices --> n+1 points if 'closed' polygon > -- usually done by setting last=first > -- This is here true as sin(0)=sin(2*pi) and cos(0)=cos(2*pi) > put empty into pts > if b=0 or b is empty then > ## compute unrotated n+1 vertices of the n-sided regular polygon > repeat with j=0 to n > put CR & (round(r*sin(j*cn)+x0),round(-r*cos(j*cn)+y0)) after pts > end repeat > else > ## compute *rotated* n+1 vertices of the n-sided regular polygon > put sin(pi*b/180) into s; put cos(pi*b/180) into c > repeat with j=0 to n > put round( r*sin(j*cn)) into sx; put round(-r*cos(j*cn)) into sy > put CR & ( (round(x0+c*sx-s*sy),round(y0+c*sy+s*sx)) ) after pts > end repeat > end if > return char 2 to -1 of pts > end regularPoints > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 29 17:25:55 2016 From: monte at appisle.net (Monte Goulding) Date: Wed, 30 Nov 2016 09:25:55 +1100 Subject: LC suddenly sending using library stack for script editor field calls In-Reply-To: References: Message-ID: > On 30 Nov. 2016, at 8:38 am, Dr. Hawkins wrote: > > It took a couple of wasted hours to find this . . . > > LC has, all of a sudden, started using my library stack when opening the > script editor. > > So my openField handler, for example, gets called. The IDE and your stack are running in the same engine so if you add a handler for a message sent to an IDE stack but unhandled or passed to a library or backScript then it will get it. Having said that I think the IDE should probably have an event trapper backScript we apply to all the stacks so that they don?t pass through to user stacks lower in the message path so please open a report about this. Cheers Monte From ahsoftware at sonic.net Tue Nov 29 18:22:16 2016 From: ahsoftware at sonic.net (mwieder) Date: Tue, 29 Nov 2016 15:22:16 -0800 (PST) Subject: Retrieving Browser Widget DOM In-Reply-To: References: Message-ID: <1480461736395-4710728.post@n4.nabble.com> Warning, though... it's madness trying to treat html as valid xml. ----- -- Mark Wieder ahsoftware at gmail.com -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Retrieving-Browser-Widget-DOM-tp4710690p4710728.html Sent from the Revolution - User mailing list archive at Nabble.com. From capellan2000 at gmail.com Tue Nov 29 18:53:47 2016 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 29 Nov 2016 19:53:47 -0400 Subject: Retrieving Browser Widget DOM Message-ID: Hi Mark, Mark Wieder wrote: > Warning, though... it's madness trying > to treat html as valid xml. Actually, I am thinking to use this new proposed property: htmlDOM as a simpler method to retrieve data from a webpage opened in browser widget. Vote for this Enhancement Request: http://quality.livecode.com/show_bug.cgi?id=18934 Al From bogdanoff at me.com Tue Nov 29 19:12:32 2016 From: bogdanoff at me.com (Peter Bogdanoff) Date: Tue, 29 Nov 2016 16:12:32 -0800 Subject: Read from file Message-ID: When I use: read from file tURL until eof to read from a file on disk, should I expect the to always contain ?eof?? I?m suspecting there could be a a file read error while reading thousands of files and I want to catch that.What should I expect to see in the result when that happens? Peter Bogdanoff From m.schonewille at economy-x-talk.com Tue Nov 29 19:26:55 2016 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 30 Nov 2016 01:26:55 +0100 Subject: Read from file In-Reply-To: References: Message-ID: This could be a number of strings, such as "file not open for read" or "file does not exist". There is no special string that indicates a particular error, e.g. the errors don't all start with "error". You have to check that the error is unexpected and doesn't contains "eof". 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 Op 30-Nov-16 om 01:12 schreef Peter Bogdanoff: > When I use: > > read from file tURL until eof > > to read from a file on disk, should I expect the to always contain ?eof?? > > I?m suspecting there could be a a file read error while reading thousands of files and I want to catch that.What should I expect to see in the result when that happens? > > Peter Bogdanoff > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bogdanoff at me.com Tue Nov 29 19:45:56 2016 From: bogdanoff at me.com (Peter Bogdanoff) Date: Tue, 29 Nov 2016 16:45:56 -0800 Subject: Read from file In-Reply-To: References: Message-ID: Thanks, Mark. So I SHOULD see ?eof? and NOT any other message if the file read is successful. Peter On Nov 29, 2016, at 4:26 PM, Mark Schonewille wrote: > This could be a number of strings, such as "file not open for read" or "file does not exist". There is no special string that indicates a particular error, e.g. the errors don't all start with "error". You have to check that the error is unexpected and doesn't contains "eof". > > 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 > > Op 30-Nov-16 om 01:12 schreef Peter Bogdanoff: >> When I use: >> >> read from file tURL until eof >> >> to read from a file on disk, should I expect the to always contain ?eof?? >> >> I?m suspecting there could be a a file read error while reading thousands of files and I want to catch that.What should I expect to see in the result when that happens? >> >> Peter Bogdanoff >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 29 20:05:05 2016 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 29 Nov 2016 21:05:05 -0400 Subject: Retrieving Browser Widget DOM Message-ID: This new proposed property: htmlDOM is like storing in a widget property the result of running one of these scripts on the Console: Choose one: copy(document.body.innerHTML); or copy(document.body.outerHTML); After running one of these scripts on the browser Console, the clipboard now contains the webpage DOM. How could we run one of these scripts in the LiveCode Browser Widget? Al From lists at mangomultimedia.com Tue Nov 29 23:08:00 2016 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 29 Nov 2016 22:08:00 -0600 Subject: IDE Script Editor question... In-Reply-To: <8c949a98-5372-9a7c-e58c-2aa379d41877@fourthworld.com> References: <180B9398-6FAF-4D77-A12E-15BB2B724954@appisle.net> <8c949a98-5372-9a7c-e58c-2aa379d41877@fourthworld.com> Message-ID: On Fri, Sep 23, 2016 at 7:13 PM, Richard Gaskin wrote: > Poking around in the SE I found an even simpler solution - replace line > 3108 of "revSEEditorBehavior" > > scriptFormat "handler" > > ...with: > > if the shiftKey is "down" then > scriptFormat "script" > else > scriptFormat "handler" > end if > Monte pointed me to this thread as I was looking for a way to format the entire script. I submitted a PR for this: https://github.com/livecode/livecode-ide/pull/1494 Thanks Richard. -- Trevor DeVore ScreenSteps www.screensteps.com - www.clarify-it.com From james at thehales.id.au Wed Nov 30 00:46:39 2016 From: james at thehales.id.au (James Hale) Date: Wed, 30 Nov 2016 16:46:39 +1100 Subject: LC 9 has all the improvements of the LC 8.1 series, yes? Message-ID: <5C110B49-B236-4BFC-AE15-05653B5751C6@thehales.id.au> Thanks Panos. I thought that the case but just wanted to be sure. James From dvglasgow at gmail.com Wed Nov 30 02:50:09 2016 From: dvglasgow at gmail.com (David V Glasgow) Date: Wed, 30 Nov 2016 07:50:09 +0000 Subject: SVG import In-Reply-To: <3d9574e7-038b-6491-41d4-e5f211892a1b@gmail.com> References: <3d9574e7-038b-6491-41d4-e5f211892a1b@gmail.com> Message-ID: <48BBD17D-8FE1-442C-A26F-E2DBD72089AC@gmail.com> ?jalouse" sounds Scots-French, and I can?t be bothered to Google it. I jalouse I agree with Richmond though. I am just looking at a workflow for designing a number of graphics and trying to decide between SVG and oversized bitmaps. The latter would be simpler to create - in fact I haven?t actually attempted to create SVG, and the first attempt I made to open one in text editor revealed a huge file in which I couldn?t find the numbers. I also haven?t got any software for creating SVG. So. 1/ Would I just be better sticking with bitmaps? 2/ If not, what vector graphics program is good for (very simple) objects. Mac preferred, but hey ho. and 3/ Is there a work flow for idiots somewhere? Best wishes, David Glasgow > On 29 Nov 2016, at 6:30 pm, Richmond Mathewson wrote: > > The way one has to open an SVG file in a vector editor (Inkscape, Illustrator, etc.) to extract the > points to paste intil the SVG widget: > > 1. means that faut de meux one is dependent on an external application. > > 2. I would jalouse that SVG import could be "folded" intil Livecode without to much "fuss". > > 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 peter.brett at livecode.com Wed Nov 30 02:59:21 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Wed, 30 Nov 2016 07:59:21 +0000 Subject: SVG import In-Reply-To: <48BBD17D-8FE1-442C-A26F-E2DBD72089AC@gmail.com> References: <3d9574e7-038b-6491-41d4-e5f211892a1b@gmail.com> <48BBD17D-8FE1-442C-A26F-E2DBD72089AC@gmail.com> Message-ID: <60b7fba7-166a-2bd9-6b26-b4aaa5b29d2f@livecode.com> On 30/11/2016 07:50, David V Glasgow wrote: > 2/ If not, what vector graphics program is good for (very simple) objects. Mac preferred, but hey ho. > Inkscape is excellent: https://inkscape.org/ Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From richmondmathewson at gmail.com Wed Nov 30 03:12:19 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 30 Nov 2016 10:12:19 +0200 Subject: SVG import In-Reply-To: <48BBD17D-8FE1-442C-A26F-E2DBD72089AC@gmail.com> References: <3d9574e7-038b-6491-41d4-e5f211892a1b@gmail.com> <48BBD17D-8FE1-442C-A26F-E2DBD72089AC@gmail.com> Message-ID: <57612aea-8c9c-0b6d-3e70-83d55eb787e6@gmail.com> I use Inkscape on both Mac and Linux, there is also Drawberry for Mac: https://inkscape.org/en/ http://raphaelbost.free.fr/DrawBerry.html personally I prefer the first one because it is available for Mac, Win and Lin, and is a full-blown rival to Illustrator that is free. Richmond. On 11/30/16 9:50 am, David V Glasgow wrote: > ?jalouse" sounds Scots-French, and I can?t be bothered to Google it. I jalouse I agree with Richmond though. > > I am just looking at a workflow for designing a number of graphics and trying to decide between SVG and oversized bitmaps. The latter would be simpler to create - in fact I haven?t actually attempted to create SVG, and the first attempt I made to open one in text editor revealed a huge file in which I couldn?t find the numbers. > > I also haven?t got any software for creating SVG. > > So. > > 1/ Would I just be better sticking with bitmaps? > > 2/ If not, what vector graphics program is good for (very simple) objects. Mac preferred, but hey ho. > > and > > 3/ Is there a work flow for idiots somewhere? > > > Best wishes, > > David Glasgow > > > > >> On 29 Nov 2016, at 6:30 pm, Richmond Mathewson wrote: >> >> The way one has to open an SVG file in a vector editor (Inkscape, Illustrator, etc.) to extract the >> points to paste intil the SVG widget: >> >> 1. means that faut de meux one is dependent on an external application. >> >> 2. I would jalouse that SVG import could be "folded" intil Livecode without to much "fuss". >> >> 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 tvogelaar at de-mare.nl Wed Nov 30 03:17:50 2016 From: tvogelaar at de-mare.nl (Terry Vogelaar) Date: Wed, 30 Nov 2016 09:17:50 +0100 Subject: My own productivity app In-Reply-To: References: Message-ID: <77A19065-18E8-4396-A7A4-3FD2A030984F@de-mare.nl> Thank you, Jacqueline and Mike, for your responses. Jacqueline wrote that LC provides no feedback when it isn't the frontmost app. But is there a way to use MacOS's Notification Center from within LiveCode to tell me things like that? Mike's solution using a timed loop seems to do the trick to add the MacBreakZ functionality. So the app and site blocking functionality is the only thing that is hard to implement. But for that, I could use (hey)Focus; this app is the least intrusive of the three I mentioned. So I could make my own Pomodoro-timer with a ToDo-list and the MacBreakZ-functionality, and let (hey)Focus do the site/app blocking. Heck, key logging, site blocking, disabling of other apps? It sounds like I'm brewing up something evil. (But I'm not.) Thanks for the help. With kind regards, Terry Vogelaar > The only way I know of to monitor keystrokes/mouse events is with a loop. Check to see if keysdown() is empty, and "if the mouse is down.? Certain things won't trigger the mouse is down such as grabbing a title bar and dragging it around (on windows) but most other clicks will work fine. > > For a simple test, I made a stack with a field and a button. the following code is in the button. > local sRunning > > on mouseUp > if sRunning is empty then put false into sRunning > put not sRunning into sRunning > loopit > end mouseUp > > command loopit > if sRunning then > if the keysdown is not empty then > put keysdown() into field 1 > else > put empty into field 1 > end if > if the mouse is down then > set the backgroundcolor of field 1 to red > else > set the backgroundcolor of field 1 to empty > end if > send loopit to me in 100 millisec > end if > end loopit > > Placing the window where its visible but not focused and work with another program. Every click the field turns red, every keypress and the keys that are down show up in the field. With a delay of 100 seconds its possible to miss an event, but if a person were actually working actively most keypresses and clicks will be caught. It should be possible to use either applescript or vbscript to note what window is focused, though im not sure how to tell if one is working in a facebook tab or not. > >> The problem I see here is that LC has no knowledge of what other apps are in use, and provides no feedback when it isn't the frontmost app. There may be shell calls you could use to get some of the information, but I kind of doubt there's a way to monitor keystrokes and that sort of thing. From m.schonewille at economy-x-talk.com Wed Nov 30 04:11:17 2016 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 30 Nov 2016 10:11:17 +0100 Subject: My own productivity app In-Reply-To: <77A19065-18E8-4396-A7A4-3FD2A030984F@de-mare.nl> References: <77A19065-18E8-4396-A7A4-3FD2A030984F@de-mare.nl> Message-ID: <4642a808-4ce7-41de-fa42-ea8aaba0833a@economy-x-talk.com> Hi Terry, It used to be possible to get the front-most app with AppleScript. Due to sandboxing, this may no longer apply, but perhaps signing the app (or turning off Gate Keeper) will allow this again? 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 Op 30-Nov-16 om 09:17 schreef Terry Vogelaar: > Thank you, Jacqueline and Mike, for your responses. > > Jacqueline wrote that LC provides no feedback when it isn't the frontmost app. But is there a way to use MacOS's Notification Center from within LiveCode to tell me things like that? > > Mike's solution using a timed loop seems to do the trick to add the MacBreakZ functionality. So the app and site blocking functionality is the only thing that is hard to implement. But for that, I could use (hey)Focus; this app is the least intrusive of the three I mentioned. So I could make my own Pomodoro-timer with a ToDo-list and the MacBreakZ-functionality, and let (hey)Focus do the site/app blocking. > > Heck, key logging, site blocking, disabling of other apps? It sounds like I'm brewing up something evil. (But I'm not.) > > Thanks for the help. > > > With kind regards, > Terry Vogelaar > > >> The only way I know of to monitor keystrokes/mouse events is with a loop. Check to see if keysdown() is empty, and "if the mouse is down.? Certain things won't trigger the mouse is down such as grabbing a title bar and dragging it around (on windows) but most other clicks will work fine. >> >> For a simple test, I made a stack with a field and a button. the following code is in the button. >> local sRunning >> >> on mouseUp >> if sRunning is empty then put false into sRunning >> put not sRunning into sRunning >> loopit >> end mouseUp >> >> command loopit >> if sRunning then >> if the keysdown is not empty then >> put keysdown() into field 1 >> else >> put empty into field 1 >> end if >> if the mouse is down then >> set the backgroundcolor of field 1 to red >> else >> set the backgroundcolor of field 1 to empty >> end if >> send loopit to me in 100 millisec >> end if >> end loopit >> >> Placing the window where its visible but not focused and work with another program. Every click the field turns red, every keypress and the keys that are down show up in the field. With a delay of 100 seconds its possible to miss an event, but if a person were actually working actively most keypresses and clicks will be caught. It should be possible to use either applescript or vbscript to note what window is focused, though im not sure how to tell if one is working in a facebook tab or not. >> >>> The problem I see here is that LC has no knowledge of what other apps are in use, and provides no feedback when it isn't the frontmost app. There may be shell calls you could use to get some of the information, but I kind of doubt there's a way to monitor keystrokes and that sort of thing. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 30 08:16:19 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 30 Nov 2016 13:16:19 +0000 Subject: Modern email library Message-ID: I've one app that's been in existence for over a decade, which uses Shao Sean's libSmtp. It works fine. Now I find myself wanting to send email from a new stack I'm working on. I could just drag that library out again, but I suspect that a more modern way is to use tsNet. AFAICT tsNet handles the protocol of communicating with the server to transmit a message (i.e. the SMTP part), but doesn't offer any assistance with putting the message together (formatting with attachments etc). What do modern people use for this? Obviously I could rip the relevant parts out of libSMTP; or I recall that Sarah Reichelt had a library; is there a default answer among those who've sent email in the last ten years? TIA, Ben From john.allijn.lc at gmail.com Wed Nov 30 08:35:29 2016 From: john.allijn.lc at gmail.com (John Allijn) Date: Wed, 30 Nov 2016 14:35:29 +0100 Subject: Widget request (native text scroller for iOS) In-Reply-To: <7C70542E-3A81-491F-ACE1-AF9C6E37A6DE@gmail.com> References: <7C70542E-3A81-491F-ACE1-AF9C6E37A6DE@gmail.com> Message-ID: <4ED0D621-03DA-40F9-BACC-CACB965B1967@gmail.com> I can?t get the scroller working but have a workaround for anyone else who may have this problem. Not so fancy, but it works? use a normal text field and lock the text then set the script of the field to this: local sStartV local tDistance local tStartScroll on mouseDown put the mouseV into sStartV put the scroll of me into tStartScroll end mouseDown on mouseStillDown put the mouseV - sStartV into tDistance set the scroll of me to tStartScroll - tDistance end mouseStillDown Best regards, John. > On 29 Nov 2016, at 19:46, John Allijn wrote: > > Good to know. > Thanks! > > >> On 29 Nov 2016, at 19:40, Richard Gaskin wrote: >> >> John Allijn wrote: >> >>>> Op 29 nov. 2016 om 17:15 heeft Richard Gaskin het volgende geschreven: >>>> Widgets are great for making new kinds of objects, but if all that's >>>> needed here is to fix a bug with scrolling on the existing field >>>> object IMO that's just a bug. >>> >>> Hi Richard, >>> I don't think it's a bug. It's just me not being a very skilled >>> programmer :) >>> Thats why I choose livecode. >>> The thing is that native mobile objects are almost completely >>> implemented by code. Where as desktop objects can be dragged into >>> a stack and than be accessed and updated by code. It is my personal >>> opinion that a text field that I drag into a stack should behave as >>> a native mac field on the mac and a native 'scroller' on iOS. And as >>> a programmer in livecode I should benefit from the code-once-deploy- >>> everywhere features of livecode. >>> I understand that the implementation of fields in livecode is not yet >>> at this point. >> >> But it should be. Simplicity of multi-platform deployment is why we choose LiveCode. >> >> And that's why I consider this a bug. >> >> And thankfully this (along with a few other refinements) is among the funded goals the team is working on: >> >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From peter.brett at livecode.com Wed Nov 30 08:44:01 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Wed, 30 Nov 2016 13:44:01 +0000 Subject: Modern email library In-Reply-To: References: Message-ID: On 30/11/2016 13:16, Ben Rubinstein wrote: > I've one app that's been in existence for over a decade, which uses Shao > Sean's libSmtp. It works fine. > > Now I find myself wanting to send email from a new stack I'm working on. > I could just drag that library out again, but I suspect that a more > modern way is to use tsNet. > > AFAICT tsNet handles the protocol of communicating with the server to > transmit a message (i.e. the SMTP part), but doesn't offer any > assistance with putting the message together (formatting with > attachments etc). > > What do modern people use for this? Obviously I could rip the relevant > parts out of libSMTP; or I recall that Sarah Reichelt had a library; is > there a default answer among those who've sent email in the last ten years? As part of the LiveCode for FM project, Monte has been developing a MIME library for constructing e-mail bodies. We plan to include it in LiveCode 9. But you can grab it ahead of time here: https://github.com/livecode/livecode/pull/4840 Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From lists at mangomultimedia.com Wed Nov 30 09:18:58 2016 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed, 30 Nov 2016 08:18:58 -0600 Subject: Retrieving Browser Widget DOM In-Reply-To: <1480461736395-4710728.post@n4.nabble.com> References: <1480461736395-4710728.post@n4.nabble.com> Message-ID: On Tue, Nov 29, 2016 at 5:22 PM, mwieder wrote: > Warning, though... it's madness trying to treat html as valid xml. > Amen! It would be nice to have something like this wrapped up for use in LiveCode: http://xmlsoft.org/html/libxml-HTMLparser.html -- Trevor DeVore ScreenSteps www.screensteps.com - www.clarify-it.com From ambassador at fourthworld.com Wed Nov 30 09:25:50 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 30 Nov 2016 06:25:50 -0800 Subject: IDE Script Editor question... In-Reply-To: References: Message-ID: <265802af-a8f2-455b-eac0-5d26d627d835@fourthworld.com> Trevor DeVore wrote: > On Fri, Sep 23, 2016 at 7:13 PM, Richard Gaskin wrote: > >> Poking around in the SE I found an even simpler solution - replace line >> 3108 of "revSEEditorBehavior" >> >> scriptFormat "handler" >> >> ...with: >> >> if the shiftKey is "down" then >> scriptFormat "script" >> else >> scriptFormat "handler" >> end if > > Monte pointed me to this thread as I was looking for a way to format the > entire script. I submitted a PR for this: > > https://github.com/livecode/livecode-ide/pull/1494 > > Thanks Richard. No, thank you. Posting to the list was merely informative, but you took the more meaningful step with that pull request. Well done. Thanks. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Wed Nov 30 09:24:02 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 30 Nov 2016 06:24:02 -0800 Subject: Widget request (native text scroller for iOS) In-Reply-To: <4ED0D621-03DA-40F9-BACC-CACB965B1967@gmail.com> References: <4ED0D621-03DA-40F9-BACC-CACB965B1967@gmail.com> Message-ID: John Allijn wrote: > I can?t get the scroller working but have a workaround for anyone > else who may have this problem. > Not so fancy, but it works? > > use a normal text field and lock the text > then set the script of the field to this: > > local sStartV > local tDistance > local tStartScroll > > on mouseDown > put the mouseV into sStartV > put the scroll of me into tStartScroll > end mouseDown > > on mouseStillDown > put the mouseV - sStartV into tDistance > set the scroll of me to tStartScroll - tDistance > end mouseStillDown I know you've mentioned before that the native scroller isn't working, but can you tell us a bit more about how it's not working? We have so many people deploying to iOS that if it's broken it needs to be fixed, and if it's not broken we should be able to come up with a way for you to deliver a smooth, native-scrolling behavior for your users, with bounce-back and all the other nuances iOS users expect. On Android the native scroller works very well, giving us the standard behavior users expect. Let's see if we can ensure that LC apps for iOS work as well. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From scott at tactilemedia.com Wed Nov 30 10:22:03 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 30 Nov 2016 07:22:03 -0800 Subject: SVG import In-Reply-To: <48BBD17D-8FE1-442C-A26F-E2DBD72089AC@gmail.com> References: <3d9574e7-038b-6491-41d4-e5f211892a1b@gmail.com> <48BBD17D-8FE1-442C-A26F-E2DBD72089AC@gmail.com> Message-ID: Vectr. https://vectr.com/ Runs both locally (desktop) and in the cloud (browser). Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 11/29/16, 11:50 PM, "use-livecode on behalf of David V Glasgow" wrote: >what vector graphics program is good for (very simple) objects. Mac >preferred, but hey ho. From devin_asay at byu.edu Wed Nov 30 10:31:06 2016 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 30 Nov 2016 15:31:06 +0000 Subject: IDE Script Editor question... In-Reply-To: References: <180B9398-6FAF-4D77-A12E-15BB2B724954@appisle.net> <8c949a98-5372-9a7c-e58c-2aa379d41877@fourthworld.com> Message-ID: > On Nov 29, 2016, at 9:08 PM, Trevor DeVore wrote: > > On Fri, Sep 23, 2016 at 7:13 PM, Richard Gaskin > wrote: > >> Poking around in the SE I found an even simpler solution - replace line >> 3108 of "revSEEditorBehavior" >> >> scriptFormat "handler" >> >> ...with: >> >> if the shiftKey is "down" then >> scriptFormat "script" >> else >> scriptFormat "handler" >> end if >> > > Monte pointed me to this thread as I was looking for a way to format the > entire script. I submitted a PR for this: > > https://github.com/livecode/livecode-ide/pull/1494 > > Thanks Richard. Good one, Trevor and Richard. Looking forward to having this in the next DP. I?ve been pleasantly surprised that once you learn your way around the Git repository for LiveCode, simple IDE fixes and tweaks like this are pretty simple to implement. Devin Devin Asay Director Office of Digital Humanities Brigham Young University From ambassador at fourthworld.com Wed Nov 30 11:42:13 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 30 Nov 2016 08:42:13 -0800 Subject: Modern email library In-Reply-To: References: Message-ID: Ben Rubinstein wrote: > I've one app that's been in existence for over a decade, which uses > Shao Sean's libSmtp. It works fine. > > Now I find myself wanting to send email from a new stack I'm working > on. I could just drag that library out again, but I suspect that a > more modern way is to use tsNet. > > AFAICT tsNet handles the protocol of communicating with the server to > transmit a message (i.e. the SMTP part), but doesn't offer any > assistance with putting the message together (formatting with > attachments etc). > > What do modern people use for this? Obviously I could rip the > relevant parts out of libSMTP; or I recall that Sarah Reichelt had > a library; is there a default answer among those who've sent email > in the last ten years? Personally, I've never been comfortable relying on client-side SMTP. I figure that any device configured to allow any app to send arbitrary emails without explicit user intervention will eventually become a spambot, so my hope is that it's only a matter of time before the OS provider puts an end to that. For most systems I prefer to use the "mailto:" protocol to open a message in the user's own email client, so they can review it and decide whether they actually want to send it. I do have some monitoring systems that provide notification, but I don't usually install email on a server designed for any other purpose. So instead I maintain one server on one of my shared hosting accounts as a notification center (it's not used often enough to warrant a VPS, but if you expect heavy load VPSes are cheap these days). It runs an LC CGI that accepts a compressed encoded array containing the email elements (to, from, subject, body, etc.), and it formats it for use by sendmail, which it then calls from the command line. The advantages with using an external server to do the actual sending are: - I'm not dependent on a local SMTP client implementation, which I hope for security's sake won't always be available. - It uses a simple one-line call to a server, so it's easy to add email support in any client app wherever I need it. - The CGI is relatively simple to set up (Lesson examples available for using sendmail with LC CGI). - The server is reasonably protected (nothing is *absolutely* protectable) by virtue of only accepting the LC-specific LSON (encoded array) format, which is also encrypted before sending, and transmitted over HTTPS. By no means perfect (nothing is a magic pony), but easy to set up, convenient to use, and at least as secure as most alternatives. I don't currently send attachments, but the MIME format is well documented and LC provides the raw materials needed (good text handling and base64 encoding), so even if a current library isn't readily available it shouldn't take long to package up an attachment with the body. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bobsneidar at iotecdigital.com Wed Nov 30 11:45:34 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 30 Nov 2016 16:45:34 +0000 Subject: Modern email library In-Reply-To: References: Message-ID: Hmmm... I am logged in but I cannot seem to find any files to DL here. I may misunderstand. Bob S On Nov 30, 2016, at 05:44 , Peter TB Brett > wrote: As part of the LiveCode for FM project, Monte has been developing a MIME library for constructing e-mail bodies. We plan to include it in LiveCode 9. But you can grab it ahead of time here: https://github.com/livecode/livecode/pull/4840 Peter -- Dr Peter Brett > LiveCode Technical Project Manager From bobsneidar at iotecdigital.com Wed Nov 30 11:53:59 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 30 Nov 2016 16:53:59 +0000 Subject: Modern email library In-Reply-To: References: Message-ID: <9FDE1D7E-ED5C-45D5-808D-150D5143D5A9@iotecdigital.com> I can provide you with scenarios where client side SMTP is a must. Embedded systems which send alerts, such as managed switches, routers, UPS systems, etc. REQUIRE client side SMTP to work. Further, software systems like a managed AV system or a centralized backup system which sends reports to the IT manager cannot wait to have someone come and "approve" each email it wants to send. Even further, busimess management systems like the one we use can often use a client side SMTP or a Mailto: method, but we use the workstations mail client and when working with Outlook, it becomes a bit cumbersome. SMTP Clients are not the issue, unauthenticated/unencrypted SMTP SERVERS are. Bob S On Nov 30, 2016, at 08:42 , Richard Gaskin > wrote: Personally, I've never been comfortable relying on client-side SMTP. I figure that any device configured to allow any app to send arbitrary emails without explicit user intervention will eventually become a spambot, so my hope is that it's only a matter of time before the OS provider puts an end to that. From bobsneidar at iotecdigital.com Wed Nov 30 12:01:02 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 30 Nov 2016 17:01:02 +0000 Subject: Read from file In-Reply-To: References: Message-ID: <9C2BED25-E484-476B-B000-EF12312DB6A5@iotecdigital.com> Only if you read the whole file. The result should be empty if you only read part of the file (I may be mistaken). If you expect the entire file is not too big to load completely into memory, it's probably better to read the whole thing (read from tFile until EOF) then parse it. Otherwise it may be better to read in chunks. Bob S > On Nov 29, 2016, at 16:45 , Peter Bogdanoff wrote: > > Thanks, Mark. > > So I SHOULD see ?eof? and NOT any other message if the file read is successful. > > Peter > > On Nov 29, 2016, at 4:26 PM, Mark Schonewille wrote: > >> This could be a number of strings, such as "file not open for read" or "file does not exist". There is no special string that indicates a particular error, e.g. the errors don't all start with "error". You have to check that the error is unexpected and doesn't contains "eof". >> >> 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 >> >> Op 30-Nov-16 om 01:12 schreef Peter Bogdanoff: >>> When I use: >>> >>> read from file tURL until eof >>> >>> to read from a file on disk, should I expect the to always contain ?eof?? >>> >>> I?m suspecting there could be a a file read error while reading thousands of files and I want to catch that.What should I expect to see in the result when that happens? >>> >>> Peter Bogdanoff >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Wed Nov 30 12:07:17 2016 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 30 Nov 2016 18:07:17 +0100 Subject: Modern email library In-Reply-To: References: Message-ID: <3782AA07-3194-4CB8-8A7D-E8C9B43ECCA6@m-r-d.de> Ben, have a look at the sample stack Charles Warwick provided https://downloads.techstrategies.com.au/tsnet/LCMail.livecode It contains functions to create smtp header and body (including attachments). Matthias > Am 30.11.2016 um 14:16 schrieb Ben Rubinstein : > > I've one app that's been in existence for over a decade, which uses Shao Sean's libSmtp. It works fine. > > Now I find myself wanting to send email from a new stack I'm working on. I could just drag that library out again, but I suspect that a more modern way is to use tsNet. > > AFAICT tsNet handles the protocol of communicating with the server to transmit a message (i.e. the SMTP part), but doesn't offer any assistance with putting the message together (formatting with attachments etc). > > What do modern people use for this? Obviously I could rip the relevant parts out of libSMTP; or I recall that Sarah Reichelt had a library; is there a default answer among those who've sent email in the last ten years? > > 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 matthias_livecode_150811 at m-r-d.de Wed Nov 30 12:29:35 2016 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 30 Nov 2016 18:29:35 +0100 Subject: Modern email library In-Reply-To: References: Message-ID: <9B053AAC-FEEA-4169-85FD-E7C78398A5D3@m-r-d.de> It always depends on how you use such libraries or externals. The new tsNET external allows us for example to send notification emails from our scheduled unattended maintenance tools using our own in-house mailserver. Our mailserver requests authentication from our apps before sending out to external addresses. This works really smooth. What other possibilities would we have? We could create a web service to which we would post the notifications and then let the web service send out the emails for us using the web servers smtp. We did so in the past. But tsNet is much better. Matthias > Am 30.11.2016 um 17:42 schrieb Richard Gaskin :d > > Personally, I've never been comfortable relying on client-side SMTP. I figure that any device configured to allow any app to send arbitrary emails without explicit user intervention will eventually become a spambot, so my hope is that it's only a matter of time before the OS provider puts an end to that. > > For most systems I prefer to use the "mailto:" protocol to open a message in the user's own email client, so they can review it and decide whether they actually want to send it. > > I do have some monitoring systems that provide notification, but I don't usually install email on a server designed for any other purpose. > > So instead I maintain one server on one of my shared hosting accounts as a notification center (it's not used often enough to warrant a VPS, but if you expect heavy load VPSes are cheap these days). It runs an LC CGI that accepts a compressed encoded array containing the email elements (to, from, subject, body, etc.), and it formats it for use by sendmail, which it then calls from the command line. > > The advantages with using an external server to do the actual sending are: > > - I'm not dependent on a local SMTP client implementation, which I > hope for security's sake won't always be available. > > - It uses a simple one-line call to a server, so it's easy to > add email support in any client app wherever I need it. > > - The CGI is relatively simple to set up (Lesson examples available > for using sendmail with LC CGI). > > - The server is reasonably protected (nothing is *absolutely* > protectable) by virtue of only accepting the LC-specific LSON > (encoded array) format, which is also encrypted before sending, > and transmitted over HTTPS. > > By no means perfect (nothing is a magic pony), but easy to set up, convenient to use, and at least as secure as most alternatives. > > I don't currently send attachments, but the MIME format is well documented and LC provides the raw materials needed (good text handling and base64 encoding), so even if a current library isn't readily available it shouldn't take long to package up an attachment with the body. From ambassador at fourthworld.com Wed Nov 30 12:49:31 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 30 Nov 2016 09:49:31 -0800 Subject: Modern email library In-Reply-To: <9FDE1D7E-ED5C-45D5-808D-150D5143D5A9@iotecdigital.com> References: <9FDE1D7E-ED5C-45D5-808D-150D5143D5A9@iotecdigital.com> Message-ID: <0e701676-bfac-bd8f-2b00-9b91197cf349@fourthworld.com> Bob Sneidar wrote: > I can provide you with scenarios where client side SMTP is a must. There are many. But hopefully they're an explicit decision by the user, and require the user to supply their own SMTP credentials. -- 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 zryip.theslug at gmail.com Wed Nov 30 13:22:20 2016 From: zryip.theslug at gmail.com (zryip theSlug) Date: Wed, 30 Nov 2016 19:22:20 +0100 Subject: revXMLEvaluateXPath performances Message-ID: Hi All, I was in the process to optimize my revXML code trying to figure out why for simple operations, it took so much time. In this task I have replaced 2 successives calls to the revXMLMatchingNode function for locating an attribute inside a subnode, by a revXMLEvaluateXPath query. The time for creating my XML tree was 26 seconds prior the modification of the code. And after have used revXMLEvaluateXPath, creating exactly the same tree is taking more than 2 minutes. Is it just me or Others have experienced the same feeling XPath commands are very handy but have bad performances? Will now try to replace all the calls to revXMLEvaluateXPath and revXMLDataFromXPathQuery I have, but in some case this will be epic... Best Regards, -- Zryip TheSlug http://www.aslugontheroad.com From benr_mc at cogapp.com Wed Nov 30 14:00:00 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 30 Nov 2016 19:00:00 +0000 Subject: Evils of client-side SMTP (Re: Modern email library) In-Reply-To: <0e701676-bfac-bd8f-2b00-9b91197cf349@fourthworld.com> References: <9FDE1D7E-ED5C-45D5-808D-150D5143D5A9@iotecdigital.com> <0e701676-bfac-bd8f-2b00-9b91197cf349@fourthworld.com> Message-ID: <0e153185-a322-432b-bca3-e2bb148d8107@cogapp.com> I'm a bit confused, Richard. FWIW, my long-time use-case is an app that runs unattended on a regular schedule on a faceless VM, doing a whole bunch of data processing and updating databases, and sends alerts by email if something goes wrong. When the app is installed, it has to be set up with server, account, credentials etc in order to be able to send those emails; the details of the emails are configured by scripts (not LiveCode scripts, XML configs) which are checksummed and won't be run if modified. The tool I'm working on now will also be running unattended on a schedule, but in this case the emails, rather than being confirmation that it has done its work are the point of the work; it's going to generate reports and distribute them to colleagues. You seem to be making two points: that an app which can send emails without human intervention will inevitably given enough time become a spambot; and that users should be able to review an email in their mail client before it is sent. Obviously in the cases mentioned above the latter isn't an option. In relation to the spambot concern, I don't understand how having a sendmail script on a server adds security (it certainly adds another point of failure, which is one reason I'd rather not do it). But as far as I can see it also adds another vector for hijacking. I would think it's a great deal easier to hack a script on a server on the internet, than it is an app running on a local network. But if the app uses an external script, then the attacker can get the same effect by hacking either, so they have the choice! In relation to an email being sent without being reviewed by the user, is your concern that the email will contain the user's private data? or that it will be used to impersonate the user? To be honest I don't get it in either case. An app exfiltrating data from the user's machine has many options, and can do so at least as easily by posting to... err... a script on a server. As for impersonating the user (of course setting the envelope sender can be done anyhow anyway, so I assume this would be about more convincingly impersonating the user by sending through their regular server): since sending an email requires the cooperation of an SMTP server, of which I don't imagine there are any open ones remaining, any such app will either require the developer to bake in the details of an account they control, or to ask the user to enter those details. Exactly the same applies to using a sendmail script on a server. So either it's nothing to do with the user's email; or the app has had to ask the user to enter their email account details, and they presumably understand at that time why their doing it. I can see why, as a user, you might be uncomfortable about giving your email account details to an app so that it can send emails in your name, invisibly and unreviewed by you. Quite right too! And if you're developing software for consumers, you need to take that into account. But I don't understand why as a developer who knows why you want the feature you'd be uncomfortable (except from a marketing perspective, as per the start of this para). Can you explain your concern further? Ben On 30/11/2016 17:49, Richard Gaskin wrote: > There are many. But hopefully they're an explicit decision by the user, and > require the user to supply their own SMTP credentials. > > Bob Sneidar wrote: >> I can provide you with scenarios where client side SMTP is a must. >> >> On 30/11/2016 16:42, Richard Gaskin wrote: >>> >>> Personally, I've never been comfortable relying on client-side SMTP. I figure >>> that any device configured to allow any app to send arbitrary emails without >>> explicit user intervention will eventually become a spambot, so my hope is >>> that it's only a matter of time before the OS provider puts an end to that. >>> >>> For most systems I prefer to use the "mailto:" protocol to open a message in >>> the user's own email client, so they can review it and decide whether they >>> actually want to send it. From richmondmathewson at gmail.com Wed Nov 30 15:21:47 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 30 Nov 2016 22:21:47 +0200 Subject: Unrecognisable stacks? In-Reply-To: References: Message-ID: Having hosed my Linux system, paid $400 for Disk Drill (which is bringing back a lot more than I had hoped for), paid $500 for 8 Terabytes of backup systems and so forth, I am currently: 1. Extremely grateful that my friend who runs a second-hand computer operation over here pursuaded me to pay 160 Euros for a 10 year old Intel Mac (as it is doing all the heavy-lifting) just last week. 2. Doing all my current work/stuff on this machine. 3. Wondering why, every time I download a Livecode stack, Livecode tells me it is not a stack. Is this because the stacks are. somehow, becoming corrupted as they are downloaded? I always up load LC stacks as Zip files . . . Richmond. From ambassador at fourthworld.com Wed Nov 30 15:19:21 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 30 Nov 2016 12:19:21 -0800 Subject: Evils of client-side SMTP (Re: Modern email library) In-Reply-To: <0e153185-a322-432b-bca3-e2bb148d8107@cogapp.com> References: <0e153185-a322-432b-bca3-e2bb148d8107@cogapp.com> Message-ID: Ben Rubinstein wrote: > I can see why, as a user, you might be uncomfortable about giving > your email account details to an app so that it can send emails > in your name, invisibly and unreviewed by you. Quite right too! > And if you're developing software for consumers, you need to take > that into account. Sounds like we're on the same page. > But I don't understand why as a developer who knows why you want > the feature you'd be uncomfortable (except from a marketing > perspective, as per the start of this para). > > Can you explain your concern further? I think you covered it well above. Many of these sorts of discussion in our community relate to use in consumer apps, often on the desktop and sometimes even on a phone. And for the reasons you outlined so well above, such use cases are highly undesirable. Beyond that, what an experienced developer wants to do on the machines they admin is of course entirely up to them. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From jacque at hyperactivesw.com Wed Nov 30 15:34:32 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 30 Nov 2016 14:34:32 -0600 Subject: Widget request (native text scroller for iOS) In-Reply-To: <4ED0D621-03DA-40F9-BACC-CACB965B1967@gmail.com> References: <7C70542E-3A81-491F-ACE1-AF9C6E37A6DE@gmail.com> <4ED0D621-03DA-40F9-BACC-CACB965B1967@gmail.com> Message-ID: <841c9bcd-30c8-3af1-c365-972913e21b5b@hyperactivesw.com> On 11/30/16 7:35 AM, John Allijn wrote: > I can?t get the scroller working I haven't had any problem with scrollers on either iOS or Android, barring a specific vScroll bug that's been reported. (http://quality.livecode.com/show_bug.cgi?id=18924) Aside from that they work very well as long as you follow the instructions here: Scrollers are picky, you have to make sure that: 1. The full length of the field is displayed. It can't be a scrolling field, it has to be a very tall field at its full height so all content is visible. It's okay if it runs off the window. 2. The field must have lockloc set to true. 3. The field must be in a group, and generally it's the only thing in the group. The group should be sized to the rectangle you want the user to see. It's lockloc must be set to true. 4. For now (until the bug is fixed) the vScroll of the group should be set to 0 when the mobile scroller is created, and the mobile vScroll should also be 0. (A workaround is in the bug report if you want to set the vScroll to something else.) I have a simplified handler that creates a mobile scroller which has been working for a long time. The only parameter it needs is the short name of the group that contains the field. (The content of the group doesn't have to be a field, it can be an image or anything else.) I find that using names instead of IDs is much easier because you don't have to bother with "the result" or track the reference in a script local. It just works, provided each scrolling group has a unique name. When you want to delete the scroller you can also just use the name. This handler automatically creates a scroller with the same name as the group it is scrolling. command createScroller pName if the environment is not "mobile" then exit createScroller deleteMobileControl pName -- custom handler, in case one already exists set the vScroll of control pName to 0 -- init for alignment set the hScroll of control pName to 0 mobileControlCreate "scroller", pName mobileControlSet pName, "rect", the rect of control pName put (0,0,the formattedwidth of control pName,the formattedheight of control pName) into tRect mobileControlSet pName, "contentRect",tRect mobileControlSet pName, "hScroll",0 mobileControlSet pName, "vScroll",0 mobileControlSet pName, "hIndicator",false mobileControlSet pName, "vIndicator",true mobileControlSet pName, "visible", true end createScroller This is enough to create a basic scroller. There are other settings you might want to add for iOS, such as the canBounce, etc., and you may want to change the v and h indicator settings. Adding more settings is easy, but the above does the basic work. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From john.allijn.lc at gmail.com Wed Nov 30 15:45:50 2016 From: john.allijn.lc at gmail.com (John Allijn) Date: Wed, 30 Nov 2016 21:45:50 +0100 Subject: Widget request (native text scroller for iOS) In-Reply-To: <841c9bcd-30c8-3af1-c365-972913e21b5b@hyperactivesw.com> References: <7C70542E-3A81-491F-ACE1-AF9C6E37A6DE@gmail.com> <4ED0D621-03DA-40F9-BACC-CACB965B1967@gmail.com> <841c9bcd-30c8-3af1-c365-972913e21b5b@hyperactivesw.com> Message-ID: <343F8731-D39A-4F73-86D2-097D75AE96D1@gmail.com> Hi Jacqueline, Thanks for the long answer and for sharing the code. I?ll try it out tomorrow! best regards, John. > On 30 Nov 2016, at 21:34, J. Landman Gay wrote: > > On 11/30/16 7:35 AM, John Allijn wrote: >> I can?t get the scroller working > > I haven't had any problem with scrollers on either iOS or Android, barring a specific vScroll bug that's been reported. (http://quality.livecode.com/show_bug.cgi?id=18924) Aside from that they work very well as long as you follow the instructions here: > > > > Scrollers are picky, you have to make sure that: > > 1. The full length of the field is displayed. It can't be a scrolling field, it has to be a very tall field at its full height so all content is visible. It's okay if it runs off the window. > 2. The field must have lockloc set to true. > 3. The field must be in a group, and generally it's the only thing in the group. The group should be sized to the rectangle you want the user to see. It's lockloc must be set to true. > 4. For now (until the bug is fixed) the vScroll of the group should be set to 0 when the mobile scroller is created, and the mobile vScroll should also be 0. (A workaround is in the bug report if you want to set the vScroll to something else.) > > I have a simplified handler that creates a mobile scroller which has been working for a long time. The only parameter it needs is the short name of the group that contains the field. (The content of the group doesn't have to be a field, it can be an image or anything else.) > > I find that using names instead of IDs is much easier because you don't have to bother with "the result" or track the reference in a script local. It just works, provided each scrolling group has a unique name. When you want to delete the scroller you can also just use the name. This handler automatically creates a scroller with the same name as the group it is scrolling. > > command createScroller pName > if the environment is not "mobile" then exit createScroller > deleteMobileControl pName -- custom handler, in case one already exists > set the vScroll of control pName to 0 -- init for alignment > set the hScroll of control pName to 0 > mobileControlCreate "scroller", pName > mobileControlSet pName, "rect", the rect of control pName > put (0,0,the formattedwidth of control pName,the formattedheight of control pName) into tRect > mobileControlSet pName, "contentRect",tRect > mobileControlSet pName, "hScroll",0 > mobileControlSet pName, "vScroll",0 > mobileControlSet pName, "hIndicator",false > mobileControlSet pName, "vIndicator",true > mobileControlSet pName, "visible", true > end createScroller > > This is enough to create a basic scroller. There are other settings you might want to add for iOS, such as the canBounce, etc., and you may want to change the v and h indicator settings. Adding more settings is easy, but the above does the basic work. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Wed Nov 30 16:00:15 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 30 Nov 2016 13:00:15 -0800 Subject: Widget request (native text scroller for iOS) In-Reply-To: <841c9bcd-30c8-3af1-c365-972913e21b5b@hyperactivesw.com> References: <841c9bcd-30c8-3af1-c365-972913e21b5b@hyperactivesw.com> Message-ID: <85ccd4bb-696e-811e-df85-d46d19996d71@fourthworld.com> J. Landman Gay wrote: > Scrollers are picky, you have to make sure that: > > 1. The full length of the field is displayed. It can't be a scrolling > field, it has to be a very tall field at its full height so all > content is visible. It's okay if it runs off the window. > 2. The field must have lockloc set to true. > 3. The field must be in a group, and generally it's the only thing in > the group. The group should be sized to the rectangle you want the > user to see. It's lockloc must be set to true. >... On Android, fields work great. Which makes sense, given that the scroller is just an overlay to handle the interaction, so anything that can be scrolled via script should work in response to the scroller messages. I haven't tested field scrolling on iOS, but the whole business about needing to make a field as tall as the textual content and then wrapping that in a group is, to be candid, insane, so I'm hoping iOS scrolling can be made as graceful as Android scrolling is now. It's more than a little un-xTalk like to need to hand-script the instantiation of mobile scrollers for scrolling objects at all. But as long as it works for scrolling groups, it should also work for fields. Anything that can be scrolled via script should be scrollable via script. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bobsneidar at iotecdigital.com Wed Nov 30 16:06:06 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 30 Nov 2016 21:06:06 +0000 Subject: Screen not updating Message-ID: Hi all. Not sure if this is expected behavior. While running a script, my monitor is not updating with anything that is happening. I am running a script that incrementally selects a record in a data grid, which will then update the form, then I run some other things that get data from the form and update a database. Nothing fancy here. I do not lock the screen. I have even issued a wait 0 milliseconds with messages command, and yet I cannot see the datagrid selection changing. Can't find anything in the dictionary about this. Bob S From dunbarx at aol.com Wed Nov 30 16:13:35 2016 From: dunbarx at aol.com (dunbarx) Date: Wed, 30 Nov 2016 13:13:35 -0800 (PST) Subject: Screen not updating In-Reply-To: References: Message-ID: <1480540415546-4710764.post@n4.nabble.com> Hi. If you really have never locked the screen, (did you search for "lock" in all scripts?) can you place a few bogus lines, like: answer random(999) here and there in key places and see if and where they pop up? I do this sort of thing all the time to flag important changes or unwanted behaviors. If you really use "answer", which is louder, instead of just "put", which makes you keep and eye on the message box, watch out not to screw up the local variable "it". Or place breakpoint in sort of the same places, and see what does not happen when it should. Craig Newman -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Screen-not-updating-tp4710763p4710764.html Sent from the Revolution - User mailing list archive at Nabble.com. From stephen at barncard.com Wed Nov 30 16:27:52 2016 From: stephen at barncard.com (Stephen Barncard) Date: Wed, 30 Nov 2016 13:27:52 -0800 Subject: Screen not updating In-Reply-To: References: Message-ID: I am pretty sure when one makes a change to a datagrid from 'outside', it may need to be refreshed. There's a command. On Wed, Nov 30, 2016 at 1:06 PM, Bob Sneidar wrote: > Hi all. Not sure if this is expected behavior. While running a script, my > monitor is not updating with anything that is happening. I am running a > script that incrementally selects a record in a data grid, which will then > update the form, then I -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org From dunbarx at aol.com Wed Nov 30 16:41:05 2016 From: dunbarx at aol.com (dunbarx) Date: Wed, 30 Nov 2016 13:41:05 -0800 (PST) Subject: Screen not updating In-Reply-To: References: Message-ID: <1480542065861-4710766.post@n4.nabble.com> Stephen makes a point. dispatch "ResetList" to group "yourDataGrid" Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Screen-not-updating-tp4710763p4710766.html Sent from the Revolution - User mailing list archive at Nabble.com. From benr_mc at cogapp.com Wed Nov 30 15:24:28 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 30 Nov 2016 20:24:28 +0000 Subject: Modern email library In-Reply-To: <3782AA07-3194-4CB8-8A7D-E8C9B43ECCA6@m-r-d.de> References: <3782AA07-3194-4CB8-8A7D-E8C9B43ECCA6@m-r-d.de> Message-ID: On 30/11/2016 17:07, Matthias Rebbe wrote: > have a look at the sample stack Charles Warwick provided > https://downloads.techstrategies.com.au/tsnet/LCMail.livecode > > It contains functions to create smtp header and body (including attachments). Thanks Matthias, I've grabbed that and will take a look. Is there some more documentation somewhere about tsNet (beyond the dictionary entries), or pointers to sample stacks (I can't list the directory this sample comes from) - did I miss an posting about this during the great use-list bounce wars? thank you, Ben From bobsneidar at iotecdigital.com Wed Nov 30 17:22:11 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 30 Nov 2016 22:22:11 +0000 Subject: Screen not updating In-Reply-To: References: Message-ID: Perhaps, but that is not the issue. If you set the dgHilitedLine or dghilitedIndex, the datagrid will scroll if necessary to make the line visible. The form updates because I have a selectionChanged handler in the data grid which does everything necessary, and I dispatch that to the data grid when I changed the selected line. Further nothing is clickable in the UI when a script is running. Even issueing unlock screen for each repeat iteration did not refresh the screen. Bob S > On Nov 30, 2016, at 13:27 , Stephen Barncard wrote: > > I am pretty sure when one makes a change to a datagrid from 'outside', it > may need to be refreshed. There's a command. > > On Wed, Nov 30, 2016 at 1:06 PM, Bob Sneidar > wrote: > >> Hi all. Not sure if this is expected behavior. While running a script, my >> monitor is not updating with anything that is happening. I am running a >> script that incrementally selects a record in a data grid, which will then >> update the form, then I > > > > > -- > Stephen Barncard - Sebastopol Ca. USA - > mixstream.org > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Wed Nov 30 17:29:40 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 30 Nov 2016 17:29:40 -0500 Subject: Screen not updating In-Reply-To: References: Message-ID: <007a01d24b59$3e433490$bac99db0$@net> If this is in the IDE then it goes back to 6.6.2 rc4. http://quality.livecode.com/show_bug.cgi?id=12508 Drives me crazy. 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 Sent: Wednesday, November 30, 2016 4:06 PM To: How to use LiveCode Subject: Screen not updating Hi all. Not sure if this is expected behavior. While running a script, my monitor is not updating with anything that is happening. I am running a script that incrementally selects a record in a data grid, which will then update the form, then I run some other things that get data from the form and update a database. Nothing fancy here. I do not lock the screen. I have even issued a wait 0 milliseconds with messages command, and yet I cannot see the datagrid selection changing. Can't find anything in the dictionary about this. 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 Nov 30 17:38:17 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 30 Nov 2016 22:38:17 +0000 Subject: Screen not updating In-Reply-To: <007a01d24b59$3e433490$bac99db0$@net> References: <007a01d24b59$3e433490$bac99db0$@net> Message-ID: <8647E06E-8321-47C4-83EF-A96C0AA31259@iotecdigital.com> I have commented on the bug for all it's worth. Bob S On Nov 30, 2016, at 14:29 , Ralph DiMola > wrote: If this is in the IDE then it goes back to 6.6.2 rc4. http://quality.livecode.com/show_bug.cgi?id=12508 Drives me crazy. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From ambassador at fourthworld.com Wed Nov 30 17:41:12 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 30 Nov 2016 14:41:12 -0800 Subject: Turn off tsNet? Message-ID: <37caa094-0851-8a68-1a84-44839da8742c@fourthworld.com> Is there a way to temporarily turn off tsNet, or at least disable it for the duration of a given LiveCode session? I do a lot of work supporting the community, and since tsNet isn't available in the Community Edition it would be nice to be able to turn that off when I need to get the same behavior. It would also help me diagnose some occasional issues I've found with my LiveNet plugin (no recipe yet), which worked great with libURL in earlier versions but now show intermittent issues in v.9 Indy. I see there's a tsnetClose command which says it "disables the tsNet external", but it's not clear if that will also prevent it from re-loading next time I use any URL-related calls. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From merakosp at gmail.com Wed Nov 30 18:07:39 2016 From: merakosp at gmail.com (panagiotis merakos) Date: Wed, 30 Nov 2016 23:07:39 +0000 Subject: Turn off tsNet? In-Reply-To: <37caa094-0851-8a68-1a84-44839da8742c@fourthworld.com> References: <37caa094-0851-8a68-1a84-44839da8742c@fourthworld.com> Message-ID: I think you can do that by typing in the message box: dispatch "revUnloadLibrary" to stack "tsNetLibURL" On Wed, Nov 30, 2016 at 10:41 PM, Richard Gaskin wrote: > Is there a way to temporarily turn off tsNet, or at least disable it for > the duration of a given LiveCode session? > > I do a lot of work supporting the community, and since tsNet isn't > available in the Community Edition it would be nice to be able to turn that > off when I need to get the same behavior. > > It would also help me diagnose some occasional issues I've found with my > LiveNet plugin (no recipe yet), which worked great with libURL in earlier > versions but now show intermittent issues in v.9 Indy. > > I see there's a tsnetClose command which says it "disables the tsNet > external", but it's not clear if that will also prevent it from re-loading > next time I use any URL-related calls. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From iowahengst at mac.com Wed Nov 30 18:28:30 2016 From: iowahengst at mac.com (Randy Hengst) Date: Wed, 30 Nov 2016 17:28:30 -0600 Subject: Crash in LC related to regular polygon Message-ID: Hi All, I?ve been able to reproduce a hard crash on two different Macs? one running 10.10.5 and the other running 10.11.6. I?ve seen the crash in LC 8.1 on the 10.10.5 Mac and in LC 8.1 and LC 7.1.4 on the other Mac. In short, I was playing with the ?effective points? I asked about earlier so I could set the sides of a regular polygon and then assign a marker to each of the vertices via script. I ran into a problem when I scripted a handler to iterate through all sizes of polygons from 3-sided to 32-sided. Is anyone willing to take a look at the stack before I submit a bug report? I?d appreciate even thoughts on what to call the problem. Happy to send the demo stack I create to anyone off list. be well, randy www.classroomFocusedSoftware.com From zryip.theslug at gmail.com Wed Nov 30 18:36:10 2016 From: zryip.theslug at gmail.com (zryip theSlug) Date: Thu, 1 Dec 2016 00:36:10 +0100 Subject: [ANN] XLSX Library ready for a test - Looking for testers Message-ID: Dear LiveCode Users, We are working on a new Library capable to read / write / update xlsx files without the help of MS Excel. The Library is dealing natively with LiveCode (and the help of revXML and revZip) with the Office Open XML format. We are actually in alpha version and we have prepared a small application for validating our capability to generate xlsx files readable by every solution capable of opening an xlsx file: MS Excel standalone or online, OpenOffice, LibreOffice, Google Sheets, etc For extending our tests to different environments and applications we are looking for some testers ready to help: - by playing with our "Salestore report generator" application. Few clicks are required for preparing the report + 30 secs to 1 minute, the time for the Lib to create a report of about 700 lines * 8 columns with styles and formulae. - opening the generated xlsx file with the solution they have. - reporting the result of their tests by dropping me a small note. We have prepared different versions of our test application: linux, mac and windows. All the versions are available by following this link: http://www.aslugontheroad.com/download/category/9-salestore-report-generator-xlsx-lib-test Thanks in advance for any help. Best Regards, -- Zryip TheSlug http://www.aslugontheroad.com From dochawk at gmail.com Wed Nov 30 19:19:05 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 30 Nov 2016 16:19:05 -0800 Subject: molassus IDE and revInternal_savePrefs In-Reply-To: References: Message-ID: It is *much* worse today. I have no idea where the cycles are going; I don't have anything in the message queue, although that preferences bit keeps showing up. I am seeing delays of about 5-30 seconds when clicking in a field before it responds (focuses), and so forth. The script editor has acted like this when changing tabs for years, but not this bad. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From michaell at unimelb.edu.au Wed Nov 30 19:48:40 2016 From: michaell at unimelb.edu.au (Michael Julian Lew) Date: Thu, 1 Dec 2016 00:48:40 +0000 Subject: Clone graphic does not respect dimensions Message-ID: <5E4806B4-322D-42C0-9CCD-D1CB1D7F201B@unimelb.edu.au> When I clone a graphic (an 8 by 8 pixel oval) in LiveCode 8.1.1 the copy comes out at the default size for a new oval, 120 by 120. That would not be a clone, in my opinion. Is it correct behaviour? Michael From waprothero at gmail.com Wed Nov 30 22:02:07 2016 From: waprothero at gmail.com (William Prothero) Date: Wed, 30 Nov 2016 19:02:07 -0800 Subject: Modern email library In-Reply-To: References: <3782AA07-3194-4CB8-8A7D-E8C9B43ECCA6@m-r-d.de> Message-ID: <6596B746-5D5E-45BD-BF3C-463B98C98390@gmail.com> Folks, In case anybody wants to look at my version of email with attachments, sent using a remote email server, you can download a sample stack at: http://es.earthlearningsolutions.org/SoftwareForEducation It uses php on the server side. Bill > On Nov 30, 2016, at 12:24 PM, Ben Rubinstein wrote: > > On 30/11/2016 17:07, Matthias Rebbe wrote: >> have a look at the sample stack Charles Warwick provided >> https://downloads.techstrategies.com.au/tsnet/LCMail.livecode >> >> It contains functions to create smtp header and body (including attachments). > > Thanks Matthias, I've grabbed that and will take a look. > > Is there some more documentation somewhere about tsNet (beyond the dictionary entries), or pointers to sample stacks (I can't list the directory this sample comes from) - did I miss an posting about this during the great use-list bounce wars? > > thank you, > > 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 Nov 30 22:23:31 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 30 Nov 2016 21:23:31 -0600 Subject: molassus IDE and revInternal_savePrefs In-Reply-To: References: Message-ID: <158b8689338.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I suppose it wouldn't hurt to delete your preferences file. Who knows, it might perform some magic. Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 30, 2016 6:21:02 PM "Dr. Hawkins" wrote: > It is *much* worse today. I have no idea where the cycles are going; I > don't have anything in the message queue, although that preferences bit > keeps showing up. > > I am seeing delays of about 5-30 seconds when clicking in a field before it > responds (focuses), and so forth. > > The script editor has acted like this when changing tabs for years, but not > this bad. > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Wed Nov 30 23:21:37 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 30 Nov 2016 20:21:37 -0800 Subject: molassus IDE and revInternal_savePrefs In-Reply-To: <158b8689338.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <158b8689338.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: On Wed, Nov 30, 2016 at 7:23 PM, J. Landman Gay wrote: > I suppose it wouldn't hurt to delete your preferences file. Who knows, it > might perform some magic. > I tried going back to 8.1, which was noticeably better, and 7.1.4, which was *much* better. Deleting the red dots didn't do it in 8.1.2. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From scott at tactilemedia.com Wed Nov 30 23:52:02 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 30 Nov 2016 20:52:02 -0800 Subject: Clone graphic does not respect dimensions In-Reply-To: <5E4806B4-322D-42C0-9CCD-D1CB1D7F201B@unimelb.edu.au> References: <5E4806B4-322D-42C0-9CCD-D1CB1D7F201B@unimelb.edu.au> Message-ID: <4EEEAE41-94DC-486D-AD30-440341EDF507@tactilemedia.com> It's wrong but it's always been like this. LC doesn't like graphics smaller than 9 pixels. Regards, Scott Rossi Creative Director Tactile Media UX/UI Design > On Nov 30, 2016, at 4:48 PM, Michael Julian Lew wrote: > > When I clone a graphic (an 8 by 8 pixel oval) in LiveCode 8.1.1 the copy comes out at the default size for a new oval, 120 by 120. That would not be a clone, in my opinion. Is it correct behaviour? > > Michael > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode