From dave at applicationinsight.com Wed Jun 1 09:07:20 2016 From: dave at applicationinsight.com (Dave Kilroy) Date: Wed, 1 Jun 2016 06:07:20 -0700 (PDT) Subject: RevErrorDisplay Window 1 pixel wide In-Reply-To: References: Message-ID: <1464786440987-4705347.post@n4.nabble.com> Sannyasin Brahmanathaswami it may well be that this is happening on lots of our machines - but only someone as perceptive as yourself could see something 1 pixel wide! :) Sannyasin Brahmanathaswami wrote > I get this quite regularly in 8 or 8.1 dp 1 > > there may be an error in my script.. and the revErrorDisplay script opens, > but it is 1 px wide and perhaps only 100 x tall? If I'm not careful I > don't see it as it may blend in with my desktop background (stars) > > Anyone else seeing this? > > I have no recipe > > BR > _______________________________________________ > use-livecode mailing list > use-livecode at .runrev > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ----- "The first 90% of the task takes 90% of the time, and the last 10% takes the other 90% of the time." Peter M. Brigham -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/RevErrorDisplay-Window-1-pixel-wide-tp4705346p4705347.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Wed Jun 1 11:03:16 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 1 Jun 2016 08:03:16 -0700 Subject: Intego AV and Bloom filters Message-ID: <574EF934.8020203@fourthworld.com> Matthias' post last week about Intego AV turned out to have uncanny timing: yesterday one of my customers wrote me concerned that Intego AV had flagged one of my products as possibly infected. I wrote Intego's support yesterday, and in under 24 hours they took the time to check my app and confirm that it isn't infected, and have updated their filters so that they'll no longer flag my product. I'm impressed. If you're looking for an AV solution for Mac, Intego seems a good bet based on my experience dealing with their Support staff. If every other vendor I work with was half as responsive as Intego I'd be a happy man. :) I've also asked them to check LiveCode itself, since it's likely the pattern that produced the false positive is in the engine. I'm sure they'll do the same for LC as they did for my app, so going forward all of us LiveCoders should have one less support concern to think about. All of this reminded me of how interesting Bloom filters are: I can imagine ways they may be useful for some projects on the horizon, even being prone to false-positives as they are. But I'm completely in the dark about how I might implement them in LiveCode. Anyone here have routines to add and check items in a Bloom filter? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From benr_mc at cogapp.com Wed Jun 1 11:07:50 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 1 Jun 2016 16:07:50 +0100 Subject: Artnet Message-ID: <0e0dbf14-4aae-211a-ca87-28a5ae24686f@cogapp.com> Has anyone worked with Artnet on LiveCode? TIA, Ben From paul at researchware.com Wed Jun 1 11:58:03 2016 From: paul at researchware.com (Paul Dupuis) Date: Wed, 01 Jun 2016 11:58:03 -0400 Subject: RevErrorDisplay Window 1 pixel wide In-Reply-To: References: Message-ID: <574F060B.8050105@researchware.com> On 5/31/2016 8:57 PM, Sannyasin Brahmanathaswami wrote: > I get this quite regularly in 8 or 8.1 dp 1 > > there may be an error in my script.. and the revErrorDisplay script opens, but it is 1 px wide and perhaps only 100 x tall? If I'm not careful I don't see it as it may blend in with my desktop background (stars) > > Anyone else seeing this? I am not seeing it in 8.0.1 under Windows 8.1. The error window display normally when a script execution error occurs. From jacque at hyperactivesw.com Wed Jun 1 12:12:19 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 01 Jun 2016 11:12:19 -0500 Subject: RevErrorDisplay Window 1 pixel wide In-Reply-To: <574F060B.8050105@researchware.com> References: <574F060B.8050105@researchware.com> Message-ID: <1550cbcaab8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Maybe related, I was screen sharing with my client when a script error dialog appeared full screen on her monitor. This was in LC 7.1.4 though, which she'd just installed moments before. Maybe a new installation causes a sizing problem? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On June 1, 2016 11:00:02 AM Paul Dupuis wrote: > On 5/31/2016 8:57 PM, Sannyasin Brahmanathaswami wrote: >> I get this quite regularly in 8 or 8.1 dp 1 >> >> there may be an error in my script.. and the revErrorDisplay script opens, >> but it is 1 px wide and perhaps only 100 x tall? If I'm not careful I don't >> see it as it may blend in with my desktop background (stars) >> >> Anyone else seeing this? > > I am not seeing it in 8.0.1 under Windows 8.1. The error window display > normally when a script execution error occurs. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 1 14:08:26 2016 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 1 Jun 2016 20:08:26 +0200 Subject: Intego AV and Bloom filters In-Reply-To: <574EF934.8020203@fourthworld.com> References: <574EF934.8020203@fourthworld.com> Message-ID: > Am 01.06.2016 um 17:03 schrieb Richard Gaskin : > > I've also asked them to check LiveCode itself, since it's likely the pattern that produced the false positive is in the engine. I'm sure they'll do the same for LC as they did for my app, so going forward all of us LiveCoders should have one less support concern to think about. I am really confused. I?ve n e v e r wrote that Intego Antivirus reported a false positive. First of all, Intego?s realtime scanner scans a file once the system, an application or the user (thru the Finder) opens, modifies or saves that file. Here it seems LiveCode application is constantly accessing the file " ~/Library/Logs/RunRev/LiveCodeToolsLog.txt. That's why the Real-Time Scanner is constantly checking it too. Every second at least. In my case it helped moving that file to the trusted items, so Intego Antivirus will ignore that file completely. Even deleting the file would help. LC is then creating a new file, but the file grows continuously with every start of every LC version (6,7 and 8). Matthias From paul at researchware.com Wed Jun 1 15:00:11 2016 From: paul at researchware.com (Paul Dupuis) Date: Wed, 01 Jun 2016 15:00:11 -0400 Subject: Use of the "Send" command Message-ID: <574F30BB.5080301@researchware.com> I want to send a message with parameters after a interval to an object. The is just 'send "myMessage" to tObject in 200 milliseconds' - works fine. When I want to invoke a message with multiple parameter, I generally use "dispatch" so I can so something like 'dispatch "myMessage" to tObject with tParam1,tParam2,tParam3' where the variable tParam1,2,3 can contain pretty much whatever I want However, if I have variable tParam1 say with 'C:\somefolder\someotherfolder\somefile.txt' and tParam2 with 'some text with "quotes" in it" to write' and tParam3 with a boolean true|false, I am having problems constructing a send in time that works. I have a handler for myMessage in tObject that is on myMessage pParam1, pParam2, pParam3 -- do stuff end myMessage but constructs like send "myMessage"&&tParam1&comma&tParam1&comma&tParam3 to tObject in 100 milliseconds or send ("myMessage"&&tParam1&comma&tParam1&comma&tParam3) to tObject in 100 milliseconds does not map the parameters correctly. i.e. if I look at the values of pParam1,2,3 in the myMessage handler I get parts of the values passed or none at all. Most often I just get up to the first \ in pParam1 and 2 and 3 are empty. I have tried other variants and still not passing parameters correctly. I think my brain is just not in gear from lack of sleep and I am missing something very obvious, but rather that beating my head against a wall, I though I would ask and see if someone can give me the correct syntax From revdev at pdslabs.net Wed Jun 1 15:06:17 2016 From: revdev at pdslabs.net (Phil Davis) Date: Wed, 1 Jun 2016 12:06:17 -0700 Subject: Use of the "Send" command In-Reply-To: <574F30BB.5080301@researchware.com> References: <574F30BB.5080301@researchware.com> Message-ID: <98f548aa-13d2-85ea-71a6-9ccc68897cc6@pdslabs.net> Hi Paul, Try this: send "myMessage tParam1,tParam2,tParam3" to tObject in 100 milliseconds Should work - Phil Davis On 6/1/16 12:00 PM, Paul Dupuis wrote: > I want to send a message with parameters after a interval to an object. > > The is just 'send "myMessage" to tObject in 200 milliseconds' - works fine. > > When I want to invoke a message with multiple parameter, I generally use > "dispatch" so I can so something like 'dispatch "myMessage" to tObject > with tParam1,tParam2,tParam3' where the variable tParam1,2,3 can contain > pretty much whatever I want > > However, if I have variable tParam1 say with > 'C:\somefolder\someotherfolder\somefile.txt' and tParam2 with 'some text > with "quotes" in it" to write' and tParam3 with a boolean true|false, I > am having problems constructing a send in time that works. > > I have a handler for myMessage in tObject that is > > on myMessage pParam1, pParam2, pParam3 > -- do stuff > end myMessage > > but constructs like > > send "myMessage"&&tParam1&comma&tParam1&comma&tParam3 to tObject in 100 > milliseconds > or > send ("myMessage"&&tParam1&comma&tParam1&comma&tParam3) to tObject in > 100 milliseconds > > > does not map the parameters correctly. i.e. if I look at the values of > pParam1,2,3 in the myMessage handler I get parts of the values passed or > none at all. Most often I just get up to the first \ in pParam1 and 2 > and 3 are empty. I have tried other variants and still not passing > parameters correctly. I think my brain is just not in gear from lack of > sleep and I am missing something very obvious, but rather that beating > my head against a wall, I though I would ask and see if someone can give > me the correct syntax > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Phil Davis From klaus at major-k.de Wed Jun 1 15:07:14 2016 From: klaus at major-k.de (Klaus major-k) Date: Wed, 1 Jun 2016 21:07:14 +0200 Subject: Use of the "Send" command In-Reply-To: <574F30BB.5080301@researchware.com> References: <574F30BB.5080301@researchware.com> Message-ID: <735A9BD6-1C7C-4998-8C28-874ECAEAD8EA@major-k.de> Hi Paul, > Am 01.06.2016 um 21:00 schrieb Paul Dupuis : > > I want to send a message with parameters after a interval to an object. > > The is just 'send "myMessage" to tObject in 200 milliseconds' - works fine. > > When I want to invoke a message with multiple parameter, I generally use > "dispatch" so I can so something like 'dispatch "myMessage" to tObject > with tParam1,tParam2,tParam3' where the variable tParam1,2,3 can contain > pretty much whatever I want > > However, if I have variable tParam1 say with > 'C:\somefolder\someotherfolder\somefile.txt' and tParam2 with 'some text > with "quotes" in it" to write' and tParam3 with a boolean true|false, I > am having problems constructing a send in time that works. > > I have a handler for myMessage in tObject that is > > on myMessage pParam1, pParam2, pParam3 > -- do stuff > end myMessage > > but constructs like > > send "myMessage"&&tParam1&comma&tParam1&comma&tParam3 to tObject in 100 > milliseconds > or > send ("myMessage"&&tParam1&comma&tParam1&comma&tParam3) to tObject in > 100 milliseconds > > > does not map the parameters correctly. i.e. if I look at the values of > pParam1,2,3 in the myMessage handler I get parts of the values passed or > none at all. Most often I just get up to the first \ in pParam1 and 2 > and 3 are empty. I have tried other variants and still not passing > parameters correctly. I think my brain is just not in gear from lack of > sleep and I am missing something very obvious, but rather that beating > my head against a wall, I though I would ask and see if someone can give > me the correct syntax do this: ... send "myMessage tParam1,tParam2,tParam3" to tObject in 100 milliseconds ? :-) Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From revdev at pdslabs.net Wed Jun 1 15:28:54 2016 From: revdev at pdslabs.net (Phil Davis) Date: Wed, 1 Jun 2016 12:28:54 -0700 Subject: Use of the "Send" command In-Reply-To: <735A9BD6-1C7C-4998-8C28-874ECAEAD8EA@major-k.de> References: <574F30BB.5080301@researchware.com> <735A9BD6-1C7C-4998-8C28-874ECAEAD8EA@major-k.de> Message-ID: <26bd1b4d-706a-425c-fbe5-11840d7e481c@pdslabs.net> GMTA :-) On 6/1/16 12:07 PM, Klaus major-k wrote: > Hi Paul, > >> Am 01.06.2016 um 21:00 schrieb Paul Dupuis : >> >> I want to send a message with parameters after a interval to an object. >> >> The is just 'send "myMessage" to tObject in 200 milliseconds' - works fine. >> >> When I want to invoke a message with multiple parameter, I generally use >> "dispatch" so I can so something like 'dispatch "myMessage" to tObject >> with tParam1,tParam2,tParam3' where the variable tParam1,2,3 can contain >> pretty much whatever I want >> >> However, if I have variable tParam1 say with >> 'C:\somefolder\someotherfolder\somefile.txt' and tParam2 with 'some text >> with "quotes" in it" to write' and tParam3 with a boolean true|false, I >> am having problems constructing a send in time that works. >> >> I have a handler for myMessage in tObject that is >> >> on myMessage pParam1, pParam2, pParam3 >> -- do stuff >> end myMessage >> >> but constructs like >> >> send "myMessage"&&tParam1&comma&tParam1&comma&tParam3 to tObject in 100 >> milliseconds >> or >> send ("myMessage"&&tParam1&comma&tParam1&comma&tParam3) to tObject in >> 100 milliseconds >> >> >> does not map the parameters correctly. i.e. if I look at the values of >> pParam1,2,3 in the myMessage handler I get parts of the values passed or >> none at all. Most often I just get up to the first \ in pParam1 and 2 >> and 3 are empty. I have tried other variants and still not passing >> parameters correctly. I think my brain is just not in gear from lack of >> sleep and I am missing something very obvious, but rather that beating >> my head against a wall, I though I would ask and see if someone can give >> me the correct syntax > do this: > ... > send "myMessage tParam1,tParam2,tParam3" to tObject in 100 milliseconds > ? > :-) > > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis From sims at ezpzapps.com Wed Jun 1 15:59:02 2016 From: sims at ezpzapps.com (sims at ezpzapps.com) Date: Wed, 1 Jun 2016 22:59:02 +0300 Subject: =?utf-8?B?4piBIHRoaXMgaXMgYW1hemluZw==?= Message-ID: <00007faecccd$191c06a9$be5780a1$@ezpzapps.com> Hi, It's just amazing what some people can create, I love it, look at that See you around, sims at ezpzapps.com From sims at ezpzapps.com Wed Jun 1 16:02:32 2016 From: sims at ezpzapps.com (sims at ezpzapps.com) Date: Wed, 1 Jun 2016 23:02:32 +0300 Subject: =?utf-8?B?4pyJIGxhdGVzdCBuZXdz?= Message-ID: <0000e70fe173$eb522c0c$feccae10$@ezpzapps.com> Hey, Did you hear the latest news? You should definetely read more info here Typos courtesy of my iPhone, sims at ezpzapps.com From MikeKerner at roadrunner.com Wed Jun 1 16:10:58 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 1 Jun 2016 16:10:58 -0400 Subject: =?UTF-8?Q?Re=3A_=E2=98=81_this_is_amazing?= In-Reply-To: <00007faecccd$191c06a9$be5780a1$@ezpzapps.com> References: <00007faecccd$191c06a9$be5780a1$@ezpzapps.com> Message-ID: uhhhhhh, jim, u bin pwn3d. On Wed, Jun 1, 2016 at 3:59 PM, wrote: > Hi, > > It's just amazing what some people can create, I love it, look at that < > http://gustustuny.digilux.info/aewylpm> > > See you around, sims at ezpzapps.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Wed Jun 1 16:11:16 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 1 Jun 2016 16:11:16 -0400 Subject: =?UTF-8?Q?Re=3A_=E2=9C=89_latest_news?= In-Reply-To: <0000e70fe173$eb522c0c$feccae10$@ezpzapps.com> References: <0000e70fe173$eb522c0c$feccae10$@ezpzapps.com> Message-ID: still pwn3d On Wed, Jun 1, 2016 at 4:02 PM, wrote: > Hey, > Did you hear the latest news? You should definetely read more info here < > http://gepovywi.howtoinstalla.com/aetkptj> > > Typos courtesy of my iPhone, sims at ezpzapps.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 klaus at major-k.de Wed Jun 1 16:20:07 2016 From: klaus at major-k.de (Klaus major-k) Date: Wed, 1 Jun 2016 22:20:07 +0200 Subject: Use of the "Send" command In-Reply-To: <26bd1b4d-706a-425c-fbe5-11840d7e481c@pdslabs.net> References: <574F30BB.5080301@researchware.com> <735A9BD6-1C7C-4998-8C28-874ECAEAD8EA@major-k.de> <26bd1b4d-706a-425c-fbe5-11840d7e481c@pdslabs.net> Message-ID: <7E125F65-BB34-4C20-A3F1-E9B48D24D566@major-k.de> Hi Phil, > Am 01.06.2016 um 21:28 schrieb Phil Davis : > > GMTA > :-) as a non native englsih speaker, this took me a while? Thank you, Phil! :-) Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From revdev at pdslabs.net Wed Jun 1 16:33:25 2016 From: revdev at pdslabs.net (Phil Davis) Date: Wed, 1 Jun 2016 13:33:25 -0700 Subject: Use of the "Send" command In-Reply-To: <7E125F65-BB34-4C20-A3F1-E9B48D24D566@major-k.de> References: <574F30BB.5080301@researchware.com> <735A9BD6-1C7C-4998-8C28-874ECAEAD8EA@major-k.de> <26bd1b4d-706a-425c-fbe5-11840d7e481c@pdslabs.net> <7E125F65-BB34-4C20-A3F1-E9B48D24D566@major-k.de> Message-ID: <4ab9a907-419b-f3e1-f6c3-a0e7af3ecaf9@pdslabs.net> I almost included a link to a definition. Next time I'll follow my instincts. The link: https://www.google.com/#q=GMTA FWIW - Phil On 6/1/16 1:20 PM, Klaus major-k wrote: > Hi Phil, > >> Am 01.06.2016 um 21:28 schrieb Phil Davis : >> >> GMTA >> :-) > as a non native englsih speaker, this took me a while? > Thank you, Phil! :-) > > > Best > > Klaus > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis From paul at researchware.com Wed Jun 1 16:49:30 2016 From: paul at researchware.com (Paul Dupuis) Date: Wed, 01 Jun 2016 16:49:30 -0400 Subject: AW: Use of the "Send" command In-Reply-To: <574F30BB.5080301@researchware.com> References: <574F30BB.5080301@researchware.com> Message-ID: <574F4A5A.8000707@researchware.com> Phil and Klaus, Thank you both. From klaus at major-k.de Wed Jun 1 17:38:33 2016 From: klaus at major-k.de (Klaus major-k) Date: Wed, 1 Jun 2016 23:38:33 +0200 Subject: Use of the "Send" command In-Reply-To: <4ab9a907-419b-f3e1-f6c3-a0e7af3ecaf9@pdslabs.net> References: <574F30BB.5080301@researchware.com> <735A9BD6-1C7C-4998-8C28-874ECAEAD8EA@major-k.de> <26bd1b4d-706a-425c-fbe5-11840d7e481c@pdslabs.net> <7E125F65-BB34-4C20-A3F1-E9B48D24D566@major-k.de> <4ab9a907-419b-f3e1-f6c3-a0e7af3ecaf9@pdslabs.net> Message-ID: <7F29A675-BC2F-4189-AFB8-94C78C04EF9F@major-k.de> Hi Phil, > Am 01.06.2016 um 22:33 schrieb Phil Davis : > I almost included a link to a definition. Next time I'll follow my instincts. > The link: https://www.google.com/#q=GMTA "Green Mountain Transit Agency", exactly my thoughts! :-D > FWIW - > Phil > > On 6/1/16 1:20 PM, Klaus major-k wrote: >> Hi Phil, >>> Am 01.06.2016 um 21:28 schrieb Phil Davis : >>> GMTA >>> :-) >> as a non native englsih speaker, this took me a while? >> Thank you, Phil! :-) Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From bobsneidar at iotecdigital.com Wed Jun 1 18:51:53 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 1 Jun 2016 22:51:53 +0000 Subject: =?utf-8?B?UmU6IOKciSBsYXRlc3QgbmV3cw==?= In-Reply-To: References: <0000e70fe173$eb522c0c$feccae10$@ezpzapps.com> Message-ID: If that was a link to malware, it should probably not be posted/reposted here. Bob S On Jun 1, 2016, at 13:11 , Mike Kerner > wrote: still pwn3d From brahma at hindu.org Thu Jun 2 02:25:07 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 2 Jun 2016 06:25:07 +0000 Subject: Exiting Browser Widget In-Reply-To: References: Message-ID: <6263347A-4353-4C66-B865-7856C8AD5C3B@hindu.org> When we are in Safari or Firefox on an iPHone, if you play a YouTube video, the phone switches to full screen video player and has a "Done" link at the top with the controller. I'm not sure exactly what is happening there, but this appears to be the way users expect to be able to exit a video. Is there a way to get this behavior in the browser widget when it is assigned a YouTube URL? On 5/26/16, 5:26 PM, "use-livecode on behalf of Sannyasin Brahmanathaswami" wrote: >Use Case: Video Viewer (YouTube) "full screen" on mobile devices > >1) set up a landscape card 736w X 414h (16X9) >2) place a browser widget there that takes the entire screen >3) when navigating to this card, we dynamically set a YouTube URL to fill the widget/card > >So far, so good, tested and it works > >BUT > >Is there a way to trigger an option to exit and return to previous card or to a menu etc. >without shrinking the video -- so as to give us some toolbar space at the top or bottom? > >I guess the question becomes simply: > >how does one trap and pass the mouse down on the browser widget back the LC msg hierarchy? > >ideally this behavior could be trigger when the user clicks the play or pause control inside the YouTubeVideo itself. > >Possible? > >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 prothero at earthednet.org Thu Jun 2 09:48:56 2016 From: prothero at earthednet.org (William Prothero) Date: Thu, 2 Jun 2016 06:48:56 -0700 Subject: Exiting Browser Widget In-Reply-To: <6263347A-4353-4C66-B865-7856C8AD5C3B@hindu.org> References: <6263347A-4353-4C66-B865-7856C8AD5C3B@hindu.org> Message-ID: <11B0DA6E-54CF-4910-B1A0-A816A044248E@earthednet.org> Bramanathaswami : It would be great if there was an example stack for this. I don?t use javascript, so throwing together a javascript to do this would be hard. In case this is what you are wanting, you can load a youTube video by using the embed code provided by youTube. For example, if you click ?share? beneath the youTube video, as displayed on youTube.com, you will see a button you can click on named ?Embed?. This is the code you put into a web page to display the video. For one video, I get: If I create a web page with this code in it, the youTube video will be displayed. You can put other html or javascript into that web page text, so you can get whatever elements you want to show up and/or execute. I assume I can load the web page code from a file in my local app or create it on the fly in livecode. Hope this is useful. Best, Bill > On Jun 1, 2016, at 11:25 PM, Sannyasin Brahmanathaswami wrote: > > When we are in Safari or Firefox on an iPHone, if you play a YouTube video, the phone switches to full screen video player and has a "Done" link at the top with the controller. > > I'm not sure exactly what is happening there, but this appears to be the way users expect to be able to exit a video. > > Is there a way to get this behavior in the browser widget when it is assigned a YouTube URL? > > > On 5/26/16, 5:26 PM, "use-livecode on behalf of Sannyasin Brahmanathaswami" wrote: > >> Use Case: Video Viewer (YouTube) "full screen" on mobile devices >> >> 1) set up a landscape card 736w X 414h (16X9) >> 2) place a browser widget there that takes the entire screen >> 3) when navigating to this card, we dynamically set a YouTube URL to fill the widget/card >> >> So far, so good, tested and it works >> >> BUT >> >> Is there a way to trigger an option to exit and return to previous card or to a menu etc. >> without shrinking the video -- so as to give us some toolbar space at the top or bottom? >> >> I guess the question becomes simply: >> >> how does one trap and pass the mouse down on the browser widget back the LC msg hierarchy? >> >> ideally this behavior could be trigger when the user clicks the play or pause control inside the YouTubeVideo itself. >> >> Possible? >> >> 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 klaus at major-k.de Thu Jun 2 10:18:44 2016 From: klaus at major-k.de (Klaus major-k) Date: Thu, 2 Jun 2016 16:18:44 +0200 Subject: image about 5% of original size in printout on Windows Message-ID: <65675240-B960-4242-A5C4-F03B5B70F88B@major-k.de> Hi friends, strange experience on Windows! when printing out a card with an image on it (company logo in PNG format) the image on the printout is only ca. 5% of the original size of the image on the card!? Also tried to use a button with that image as icon, same tiny result!? :-/ Rest of card looks fine in printout! And the same script works/prints of course fine on the Mac. Any hints heavily appreciated, thanks! LC 8.01 Win 7. Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From toolbook at kestner.de Thu Jun 2 10:38:22 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 2 Jun 2016 16:38:22 +0200 Subject: LC 8 Random crash with QT set the filename of player on OS X Message-ID: <003f01d1bcdc$6b2c7e00$41857a00$@kestner.de> Hello, OS X 10.11.5, LC 8.0, IDE. Same program runs fine on Windows 10 I have a pretty nasty issue, where I am right now a bit clueless, in which direction I have to search. I have set the dontuseQT of player "myPlayer" to false because I am using old QT videos, which can't be played with AVF. In a *videoPlay* handler I *set* the filename of player "myPlayer" to tVideoFile, which works fine in all situations and the video is played afterwords fine. Now I have a pretty deep structure of handlers, as a kind of a loop with the modal userdialog and playing a video. The handler with the sheet/modal stack waits for some user interactions, calls the *videoPlay* handler and calls again the first handler, so that it starts from beginning. In the *videoPlay* handler randomly this error occurs, when setting the filename of the player object. A simplified structure looks like this: command1: *modal* stack myDialog command2 command 2: *set* the filename of player -> error command1 *modal*stack myDialog I have already tried to set a *wait" with messages before the *set* the filename, but it still crashes randomly. As far as I can see, there are two main differences between the handler, where the issue occurs and where not. 1. The deeper structure of handlers and 2. The modal stack in between this handler "loop". My feeling is that the engine choks somewhere in the "loop", but with different handler calls with/without *send* / *dispatch* I would probably mess up the "loop" structure. Any idea, where to start? Thanks Tiemo From dsc at swcp.com Thu Jun 2 11:17:32 2016 From: dsc at swcp.com (Dar Scott) Date: Thu, 2 Jun 2016 09:17:32 -0600 Subject: LC 8 Random crash with QT set the filename of player on OS X In-Reply-To: <003f01d1bcdc$6b2c7e00$41857a00$@kestner.de> References: <003f01d1bcdc$6b2c7e00$41857a00$@kestner.de> Message-ID: <5561693D-D783-497E-A270-229C8629C98D@swcp.com> I don't think I have a very good understanding of your "loop". You seem to have some sort of recursion that will cause your call stack to grow and grow. it looks as though 1 calls 2 which calls 1 which calls 2 which calls 1 which calls 2 which calls.... At some point anything you do should cause a stack overflow. This normally would create an error without a crash, but it might be that some operations assume space and will crash. If you don't intend the recursion, you might be able to break out the start-from-begining essentials of one command to be called by both commands. I'm just guessing here; I don't have a good understanding of what you are doing. Since this runs fine on W10, I have a feeling that my guess is goofy. Dar > On Jun 2, 2016, at 8:38 AM, Tiemo Hollmann TB wrote: > > Hello, > > OS X 10.11.5, LC 8.0, IDE. Same program runs fine on Windows 10 > > I have a pretty nasty issue, where I am right now a bit clueless, in which > direction I have to search. I have set the dontuseQT of player "myPlayer" > to false because I am using old QT videos, which can't be played with AVF. > > In a *videoPlay* handler I *set* the filename of player "myPlayer" to > tVideoFile, which works fine in all situations and the video is played > afterwords fine. > > Now I have a pretty deep structure of handlers, as a kind of a loop with the > modal userdialog and playing a video. The handler with the sheet/modal stack > waits for some user interactions, calls the *videoPlay* handler and calls > again the first handler, so that it starts from beginning. In the > *videoPlay* handler randomly this error occurs, when setting the filename of > the player object. > > > > A simplified structure looks like this: > > command1: > > *modal* stack myDialog > > command2 > > > > command 2: > > *set* the filename of player -> error > > command1 > > *modal*stack myDialog > > > > > > I have already tried to set a *wait" with messages before the *set* the > filename, but it still crashes randomly. > > As far as I can see, there are two main differences between the handler, > where the issue occurs and where not. 1. The deeper structure of handlers > and 2. The modal stack in between this handler "loop". > > > > My feeling is that the engine choks somewhere in the "loop", but with > different handler calls with/without *send* / *dispatch* I would probably > mess up the "loop" structure. > > > > Any idea, where to start? > > 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 klaus at major-k.de Thu Jun 2 11:20:34 2016 From: klaus at major-k.de (Klaus major-k) Date: Thu, 2 Jun 2016 17:20:34 +0200 Subject: image about 5% of original size in printout on Windows In-Reply-To: <65675240-B960-4242-A5C4-F03B5B70F88B@major-k.de> References: <65675240-B960-4242-A5C4-F03B5B70F88B@major-k.de> Message-ID: <4174A5BF-31C0-42A4-B2A6-DA76F1DD1E2A@major-k.de> Hi all, found the answer, see below! > Am 02.06.2016 um 16:18 schrieb Klaus major-k : > > Hi friends, > > strange experience on Windows! > > when printing out a card with an image on it (company logo in PNG format) > the image on the printout is only ca. 5% of the original size of the image on the card!? > Also tried to use a button with that image as icon, same tiny result!? :-/ > > Rest of card looks fine in printout! > > And the same script works/prints of course fine on the Mac. > > Any hints heavily appreciated, thanks! > > LC 8.01 Win 7. I used the Foxit PDF printer driver to ?Print to PDF? and it appears that the ?tiny-ness? only appears in the PDF, when printing out to paper everything is fine!? Bug or not? Or bug in Foxit printer driver? Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From brahma at hindu.org Thu Jun 2 11:26:45 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 2 Jun 2016 15:26:45 +0000 Subject: Exiting Browser Widget In-Reply-To: <11B0DA6E-54CF-4910-B1A0-A816A044248E@earthednet.org> References: <6263347A-4353-4C66-B865-7856C8AD5C3B@hindu.org> <11B0DA6E-54CF-4910-B1A0-A816A044248E@earthednet.org> Message-ID: @ Bill (Prothero): Yes, that was my next approach, (embed iFrame) but I was interested in the tech behind the current behavior in web browsers on mobile? somehow they throw control of the video player to some other framework? where the "Done" and controller appears at the top momentarily.. then it disappears until the user taps anywhere on the video, then you drop back to the browser? kind of like a "go recent" behavior Assuming that's not an option in LC/Browser widget. (why would it not be?) Then, yes if we want control we could do the embed iFrame thing? (we are already using this on our web site inside revIgniter views) e.g. http://www.himalayanacademy.com/view/history-of-hindu-india_part-3 but if we don't want the entire wrapper I'll have to start wrapping my head around displaying html(5) locally (html stored on the mobile device itself) OR create a simple API on the server and ping that with the youTube ID from the app and *then* have the server return the page with the embed + our "proprietary" JS to send a "go recent card" to LC. Just seems like a big hack to me?to accomplish a simple "get me out of here" UX requirement in LC. BR On 6/2/16, 3:48 AM, "use-livecode on behalf of William Prothero" wrote: >Bramanathaswami : > >It would be great if there was an example stack for this. I don?t use javascript, so throwing together a javascript to do this would be hard. > >In case this is what you are wanting, you can load a youTube video by using the embed code provided by youTube. For example, if you click ?share? beneath the youTube video, as displayed on youTube.com, you will see a button you can click on named ?Embed?. This is the code you put into a web page to display the video. > >For one video, I get: > > >If I create a web page with this code in it, the youTube video will be displayed. You can put other html or javascript into that web page text, so you can get whatever elements you want to show up and/or execute. I assume I can load the web page code from a file in my local app or create it on the fly in livecode. > >Hope this is useful. > >Best, >Bill > > >> On Jun 1, 2016, at 11:25 PM, Sannyasin Brahmanathaswami wrote: >> >> When we are in Safari or Firefox on an iPHone, if you play a YouTube video, the phone switches to full screen video player and has a "Done" link at the top with the controller. >> >> I'm not sure exactly what is happening there, but this appears to be the way users expect to be able to exit a video. >> >> Is there a way to get this behavior in the browser widget when it is assigned a YouTube URL? >> >> >> On 5/26/16, 5:26 PM, "use-livecode on behalf of Sannyasin Brahmanathaswami" wrote: >> >>> Use Case: Video Viewer (YouTube) "full screen" on mobile devices >>> >>> 1) set up a landscape card 736w X 414h (16X9) >>> 2) place a browser widget there that takes the entire screen >>> 3) when navigating to this card, we dynamically set a YouTube URL to fill the widget/card >>> >>> So far, so good, tested and it works >>> >>> BUT >>> >>> Is there a way to trigger an option to exit and return to previous card or to a menu etc. >>> without shrinking the video -- so as to give us some toolbar space at the top or bottom? >>> >>> I guess the question becomes simply: >>> >>> how does one trap and pass the mouse down on the browser widget back the LC msg hierarchy? >>> >>> ideally this behavior could be trigger when the user clicks the play or pause control inside the YouTubeVideo itself. >>> >>> Possible? >>> >>> 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 > > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Thu Jun 2 12:03:00 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 2 Jun 2016 10:03:00 -0600 Subject: Exiting Browser Widget In-Reply-To: References: <6263347A-4353-4C66-B865-7856C8AD5C3B@hindu.org> <11B0DA6E-54CF-4910-B1A0-A816A044248E@earthednet.org> Message-ID: I can't test this on mobile right now, but I _think_ you can set up a send loop in the background checking every 40 millisec or so and to check if there is a touch. If there is, adjust the rect of the browser widget to allow a header bar to show with your control. As a widget on mobile, the rect is whatever you set it to right? A feature request might be to implement browserclick so that it works with the widget. If you want to go the iframe way you might also look here: https://developers.google.com/youtube/iframe_api_reference#Getting_Started and adjust things so that you can register javascript handlers with lc. In this way, you should be able to have lc know what is going on in the widget (player stop, etc. ) On Thu, Jun 2, 2016 at 9:26 AM, Sannyasin Brahmanathaswami wrote: > @ Bill (Prothero): Yes, that was my next approach, (embed iFrame) but I > was interested in the tech behind the current behavior in web browsers on > mobile? somehow they throw control of the video player to some other > framework? where the "Done" and controller appears at the top momentarily.. > then it disappears until the user taps anywhere on the video, then you drop > back to the browser? kind of like a "go recent" behavior > > > > Assuming that's not an option in LC/Browser widget. (why would it not be?) > > > > Then, yes if we want control we could do the embed iFrame thing? (we are > already using this on our web site inside revIgniter views) e.g. > > > > http://www.himalayanacademy.com/view/history-of-hindu-india_part-3 > > > > but if we don't want the entire wrapper I'll have to start wrapping my > head around displaying html(5) locally (html stored on the mobile device > itself) OR create a simple API on the server and ping that with the > youTube ID from the app and *then* have the server return the page with the > embed + our "proprietary" JS to send a "go recent card" to LC. Just seems > like a big hack to me?to accomplish a simple "get me out of here" UX > requirement in LC. > > > > BR > > > > On 6/2/16, 3:48 AM, "use-livecode on behalf of William Prothero" < > use-livecode-bounces at lists.runrev.com on behalf of prothero at earthednet.org> > wrote: > > > > >Bramanathaswami : > > > > > >It would be great if there was an example stack for this. I don?t use > javascript, so throwing together a javascript to do this would be hard. > > > > > >In case this is what you are wanting, you can load a youTube video by > using the embed code provided by youTube. For example, if you click ?share? > beneath the youTube video, as displayed on youTube.com, you will see a > button you can click on named ?Embed?. This is the code you put into a web > page to display the video. > > > > > >For one video, I get: > > > > > > > > >If I create a web page with this code in it, the youTube video will be > displayed. You can put other html or javascript into that web page text, so > you can get whatever elements you want to show up and/or execute. I assume > I can load the web page code from a file in my local app or create it on > the fly in livecode. > > > > > >Hope this is useful. > > > > > >Best, > > >Bill > > > > > > > > >> On Jun 1, 2016, at 11:25 PM, Sannyasin Brahmanathaswami < > brahma at hindu.org> wrote: > > >> > > >> When we are in Safari or Firefox on an iPHone, if you play a YouTube > video, the phone switches to full screen video player and has a "Done" > link at the top with the controller. > > >> > > >> I'm not sure exactly what is happening there, but this appears to be > the way users expect to be able to exit a video. > > >> > > >> Is there a way to get this behavior in the browser widget when it is > assigned a YouTube URL? > > >> > > >> > > >> On 5/26/16, 5:26 PM, "use-livecode on behalf of Sannyasin > Brahmanathaswami" brahma at hindu.org> wrote: > > >> > > >>> Use Case: Video Viewer (YouTube) "full screen" on mobile devices > > >>> > > >>> 1) set up a landscape card 736w X 414h (16X9) > > >>> 2) place a browser widget there that takes the entire screen > > >>> 3) when navigating to this card, we dynamically set a YouTube URL to > fill the widget/card > > >>> > > >>> So far, so good, tested and it works > > >>> > > >>> BUT > > >>> > > >>> Is there a way to trigger an option to exit and return to previous > card or to a menu etc. > > >>> without shrinking the video -- so as to give us some toolbar space at > the top or bottom? > > >>> > > >>> I guess the question becomes simply: > > >>> > > >>> how does one trap and pass the mouse down on the browser widget back > the LC msg hierarchy? > > >>> > > >>> ideally this behavior could be trigger when the user clicks the play > or pause control inside the YouTubeVideo itself. > > >>> > > >>> Possible? > > >>> > > >>> 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 > > > > > > > > >_______________________________________________ > > >use-livecode mailing list > > >use-livecode at lists.runrev.com > > >Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > >http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul at researchware.com Thu Jun 2 12:24:29 2016 From: paul at researchware.com (Paul Dupuis) Date: Thu, 02 Jun 2016 12:24:29 -0400 Subject: image about 5% of original size in printout on Windows In-Reply-To: <4174A5BF-31C0-42A4-B2A6-DA76F1DD1E2A@major-k.de> References: <65675240-B960-4242-A5C4-F03B5B70F88B@major-k.de> <4174A5BF-31C0-42A4-B2A6-DA76F1DD1E2A@major-k.de> Message-ID: <57505DBD.70303@researchware.com> On 6/2/2016 11:20 AM, Klaus major-k wrote: > Bug or not? Or bug in Foxit printer driver? Known bug. I reported it to Foxit Software some time ago. It has not been fixed in recent updates. From klaus at major-k.de Thu Jun 2 12:26:12 2016 From: klaus at major-k.de (Klaus major-k) Date: Thu, 2 Jun 2016 18:26:12 +0200 Subject: image about 5% of original size in printout on Windows In-Reply-To: <57505DBD.70303@researchware.com> References: <65675240-B960-4242-A5C4-F03B5B70F88B@major-k.de> <4174A5BF-31C0-42A4-B2A6-DA76F1DD1E2A@major-k.de> <57505DBD.70303@researchware.com> Message-ID: <97A6A954-575C-4266-8050-8707FBE0D979@major-k.de> Hi Paul, > Am 02.06.2016 um 18:24 schrieb Paul Dupuis : > > On 6/2/2016 11:20 AM, Klaus major-k wrote: >> Bug or not? Or bug in Foxit printer driver? > > Known bug. I reported it to Foxit Software some time ago. It has not > been fixed in recent updates. aha, thanks for the info! Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From heather at livecode.com Thu Jun 2 12:27:21 2016 From: heather at livecode.com (Heather Laine) Date: Thu, 2 Jun 2016 17:27:21 +0100 Subject: New Extension Available Message-ID: <2B2E4987-CD5A-43FC-A077-3FAF7537B3CF@livecode.com> Dear List Folks, We've not been letting the grass grow under Monte's feet. He has already produced a new extension for your pleasure, plus this fine tutorial on how to use it: https://livecode.com/extending-the-interactive-welcome-bmi-app-with-healthkit/ Warm Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From roger.e.eller at sealedair.com Thu Jun 2 12:31:24 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 2 Jun 2016 12:31:24 -0400 Subject: New Extension Available In-Reply-To: <2B2E4987-CD5A-43FC-A077-3FAF7537B3CF@livecode.com> References: <2B2E4987-CD5A-43FC-A077-3FAF7537B3CF@livecode.com> Message-ID: This would be great if we could read the heart rate sensors on AndroidWear watches. AW 2.0 even allows installing standalone apps directly on the watches. Will this become cross-platform? On Thu, Jun 2, 2016 at 12:27 PM, Heather Laine wrote: > Dear List Folks, > > We've not been letting the grass grow under Monte's feet. He has already > produced a new extension for your pleasure, plus this fine tutorial on how > to use it: > > > https://livecode.com/extending-the-interactive-welcome-bmi-app-with-healthkit/ > < > https://livecode.com/extending-the-interactive-welcome-bmi-app-with-healthkit/ > > > > Warm Regards, > > Heather > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.com > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mcgrath3 at mac.com Thu Jun 2 12:47:57 2016 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Thu, 02 Jun 2016 12:47:57 -0400 Subject: Price Rising and a hard decision Message-ID: <2E2CB85E-912E-4AC8-98B4-AF3CACBA10DF@mac.com> Well, I?ve thought long and hard about this decision and have put it off time and again struggling to hang on for the last few years while watching my commercial licenses run out. With the push towards doubling the price of LiveCode by the end of the year I can no longer afford to keep up with these ?improvements' that I thought would be so awesome way back before the start of the original Kickstart campaign. I?m done. I?ve got no more to give. It?s been a great fun ride this past decade or so and the people! WOW the people I?ve met along the way are just awesome and have been the heart and soul of this experience for me. I wish I could hang on and see the promise of a truly great product come true but it?s just too expensive for me. Time to rethink what role the Community version can play, if any, in my plans. Thank you everyone for everything, Tom McGrath From MikeKerner at roadrunner.com Thu Jun 2 13:52:09 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 2 Jun 2016 13:52:09 -0400 Subject: New Extension Available In-Reply-To: References: <2B2E4987-CD5A-43FC-A077-3FAF7537B3CF@livecode.com> Message-ID: ooooooooh I like the idea of pulling the sensors... On Thu, Jun 2, 2016 at 12:31 PM, Roger Eller wrote: > This would be great if we could read the heart rate sensors on AndroidWear > watches. AW 2.0 even allows installing standalone apps directly on the > watches. Will this become cross-platform? > > > On Thu, Jun 2, 2016 at 12:27 PM, Heather Laine > wrote: > > > Dear List Folks, > > > > We've not been letting the grass grow under Monte's feet. He has already > > produced a new extension for your pleasure, plus this fine tutorial on > how > > to use it: > > > > > > > https://livecode.com/extending-the-interactive-welcome-bmi-app-with-healthkit/ > > < > > > https://livecode.com/extending-the-interactive-welcome-bmi-app-with-healthkit/ > > > > > > > Warm Regards, > > > > Heather > > > > Heather Laine > > Customer Services Manager > > LiveCode Ltd > > www.livecode.com > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- 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 bmmeili at swissonline.ch Thu Jun 2 13:55:24 2016 From: bmmeili at swissonline.ch (martin meili) Date: Thu, 2 Jun 2016 19:55:24 +0200 Subject: Problems with Xcode Message-ID: <374AA931-952A-4228-B6A7-0D020FCB1DEC@swissonline.ch> Hi Some days ago I posted a message that LiveCode had problems finding the correct Xcode-version on my iMac. Some people from the list told me, the problem could be fixed with Terminal. Now, I?ve got the answer from Apple support, as follows: "There is actually UI in Xcode that can help you achieve the same goal. Choose Xcode > Preferences, and click Locations. Select a version from the Command Line Tools pop-up menu. When you get to step 2, and select the Command Line Tools drop down menu, you should see a list of the different versions of Xcode installed on your machine. Make the appropriate selection from the drop down. FYI, if you don?t need to maintain separate versions of Xcode it may be easier for you if you remove the old versions of Xcode.? This piece of advice from Apple helped me to fix my problem. Cheers Martin From brahma at hindu.org Thu Jun 2 15:06:01 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 2 Jun 2016 19:06:01 +0000 Subject: Exiting Browser Widget In-Reply-To: References: <6263347A-4353-4C66-B865-7856C8AD5C3B@hindu.org> <11B0DA6E-54CF-4910-B1A0-A816A044248E@earthednet.org> Message-ID: <0801C4BD-30BA-4D95-9DD7-464393B116AE@hindu.org> @ mike: great ideas: Testing for what messages get thru: this doesn't work Card script # widget is on this card with YouTube URL global fBrowserClicked on opencard put 0 into fBrowserClicked checkBrowserState end opencard on mouseup put 1 into fBrowserClicked end mouseup Stack script: global fBrowserClicked command checkBrowserState put fBrowserClicked send checkBrowserState to me in 10 milliseconds end checkBrowserState clicking on the browser widget? no mouseup msg is passed fBrowserClicked? never changes On 6/2/16, 6:03 AM, "use-livecode on behalf of Mike Bonner" wrote: >I can't test this on mobile right now, but I _think_ you can set up a send >loop in the background checking every 40 millisec or so and to check if >there is a touch. If there is, adjust the rect of the browser widget to >allow a header bar to show with your control. As a widget on mobile, the >rect is whatever you set it to right? > >A feature request might be to implement browserclick so that it works with >the widget. > >If you want to go the iframe way you might also look here: >https://developers.google.com/youtube/iframe_api_reference#Getting_Started >and adjust things so that you can register javascript handlers with lc. In >this way, you should be able to have lc know what is going on in the widget >(player stop, etc. ) From sundown at pacifier.com Thu Jun 2 15:23:42 2016 From: sundown at pacifier.com (JB) Date: Thu, 2 Jun 2016 12:23:42 -0700 Subject: Problems with Xcode In-Reply-To: <374AA931-952A-4228-B6A7-0D020FCB1DEC@swissonline.ch> References: <374AA931-952A-4228-B6A7-0D020FCB1DEC@swissonline.ch> Message-ID: <495F8188-1128-433F-9B14-1611EF479A78@pacifier.com> Thank you very much for the info! JB > On Jun 2, 2016, at 10:55 AM, martin meili wrote: > > Hi > Some days ago I posted a message that LiveCode had problems finding the correct Xcode-version on my iMac. Some people from the list told me, the problem could be fixed with Terminal. Now, I?ve got the answer from Apple support, as follows: > > "There is actually UI in Xcode that can help you achieve the same goal. > Choose Xcode > Preferences, and click Locations. > Select a version from the Command Line Tools pop-up menu. > When you get to step 2, and select the Command Line Tools drop down menu, you should see a list of the different versions of Xcode installed on your machine. Make the appropriate selection from the drop down. > > FYI, if you don?t need to maintain separate versions of Xcode it may be easier for you if you remove the old versions of Xcode.? > > This piece of advice from Apple helped me to fix my problem. > > Cheers > Martin > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From david at viral.academy Thu Jun 2 15:53:24 2016 From: david at viral.academy (David Bovill) Date: Thu, 2 Jun 2016 20:53:24 +0100 Subject: Exiting Browser Widget In-Reply-To: <0801C4BD-30BA-4D95-9DD7-464393B116AE@hindu.org> References: <6263347A-4353-4C66-B865-7856C8AD5C3B@hindu.org> <11B0DA6E-54CF-4910-B1A0-A816A044248E@earthednet.org> <0801C4BD-30BA-4D95-9DD7-464393B116AE@hindu.org> Message-ID: Try the custom url scheme. It seems to have changed: - launch url "http://www.youtube.com/watch?v=VIDEO_IDENTIFIER" >From here - https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/YouTubeLinks/YouTubeLinks.html http://www.youtube.com/watch?v=VIDEO_IDENTIFIER http://www.youtube.com/v/VIDEO_IDENTIFIER On 2 June 2016 at 20:06, Sannyasin Brahmanathaswami wrote: > @ mike: great ideas: > > Testing for what messages get thru: this doesn't work > > Card script # widget is on this card with YouTube URL > > global fBrowserClicked > > on opencard > put 0 into fBrowserClicked > checkBrowserState > end opencard > > on mouseup > put 1 into fBrowserClicked > end mouseup > > Stack script: > > global fBrowserClicked > > command checkBrowserState > put fBrowserClicked > send checkBrowserState to me in 10 milliseconds > end checkBrowserState > > > clicking on the browser widget? no mouseup msg is passed fBrowserClicked? > never changes > > > On 6/2/16, 6:03 AM, "use-livecode on behalf of Mike Bonner" < > use-livecode-bounces at lists.runrev.com on behalf of bonnmike at gmail.com> > wrote: > > >I can't test this on mobile right now, but I _think_ you can set up a send > >loop in the background checking every 40 millisec or so and to check if > >there is a touch. If there is, adjust the rect of the browser widget to > >allow a header bar to show with your control. As a widget on mobile, the > >rect is whatever you set it to right? > > > >A feature request might be to implement browserclick so that it works with > >the widget. > > > >If you want to go the iframe way you might also look here: > > > https://developers.google.com/youtube/iframe_api_reference#Getting_Started > >and adjust things so that you can register javascript handlers with lc. In > >this way, you should be able to have lc know what is going on in the > widget > >(player stop, etc. ) > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Thu Jun 2 16:00:50 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 2 Jun 2016 14:00:50 -0600 Subject: Exiting Browser Widget In-Reply-To: References: <6263347A-4353-4C66-B865-7856C8AD5C3B@hindu.org> <11B0DA6E-54CF-4910-B1A0-A816A044248E@earthednet.org> <0801C4BD-30BA-4D95-9DD7-464393B116AE@hindu.org> Message-ID: I think there is overlap between touch and mouse events.. In your loop if you check to see.. if the mouse is down then do something in your loop, rather than looking for a browserclick (which appears to only work with the old style browswer) can you detect a touch? On Thu, Jun 2, 2016 at 1:53 PM, David Bovill wrote: > Try the custom url scheme. It seems to have changed: > > > - launch url "http://www.youtube.com/watch?v=VIDEO_IDENTIFIER" > > From here - > > https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/YouTubeLinks/YouTubeLinks.html > > http://www.youtube.com/watch?v=VIDEO_IDENTIFIER > > http://www.youtube.com/v/VIDEO_IDENTIFIER > > > On 2 June 2016 at 20:06, Sannyasin Brahmanathaswami > wrote: > > > @ mike: great ideas: > > > > Testing for what messages get thru: this doesn't work > > > > Card script # widget is on this card with YouTube URL > > > > global fBrowserClicked > > > > on opencard > > put 0 into fBrowserClicked > > checkBrowserState > > end opencard > > > > on mouseup > > put 1 into fBrowserClicked > > end mouseup > > > > Stack script: > > > > global fBrowserClicked > > > > command checkBrowserState > > put fBrowserClicked > > send checkBrowserState to me in 10 milliseconds > > end checkBrowserState > > > > > > clicking on the browser widget? no mouseup msg is passed > fBrowserClicked? > > never changes > > > > > > On 6/2/16, 6:03 AM, "use-livecode on behalf of Mike Bonner" < > > use-livecode-bounces at lists.runrev.com on behalf of bonnmike at gmail.com> > > wrote: > > > > >I can't test this on mobile right now, but I _think_ you can set up a > send > > >loop in the background checking every 40 millisec or so and to check if > > >there is a touch. If there is, adjust the rect of the browser widget to > > >allow a header bar to show with your control. As a widget on mobile, > the > > >rect is whatever you set it to right? > > > > > >A feature request might be to implement browserclick so that it works > with > > >the widget. > > > > > >If you want to go the iframe way you might also look here: > > > > > > https://developers.google.com/youtube/iframe_api_reference#Getting_Started > > >and adjust things so that you can register javascript handlers with lc. > In > > >this way, you should be able to have lc know what is going on in the > > widget > > >(player stop, etc. ) > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alain.vezina at logilangue.com Thu Jun 2 16:13:19 2016 From: alain.vezina at logilangue.com (Alain Vezina) Date: Thu, 2 Jun 2016 16:13:19 -0400 Subject: files and data base on Android Message-ID: Hi all, Is there anybody who knows where Live Code 7.x or 8 puts files and data base, in Android devices, I add in my app with the Copy Files pane of the Standalone App Settings. I also don?t know what is the path I have to use to make a read from these files or to search in the data base. Sometime I think that Live Code doesn?t copy the files or the data base I put in the Copy Files pane of the Standalone App Settings. I never had any problem with iOS, but with Android, I am lost. The documentation is not so clear. Regards, Alain Vezina Logilangue From rdimola at evergreeninfo.net Thu Jun 2 16:34:28 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 2 Jun 2016 16:34:28 -0400 Subject: files and data base on Android In-Reply-To: References: Message-ID: <003301d1bd0e$29493370$7bdb9a50$@net> Alain, The files are in "the engine folder". "the engine folder" is read-only. The database must be copied to "the documents folder" and then opened. Change the extension of the .apk to .zip and open the zip file to examine the apk files The "copy files" will be in the "assets" folder. 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 Alain Vezina Sent: Thursday, June 02, 2016 4:13 PM To: LiveCode How to Subject: files and data base on Android Hi all, Is there anybody who knows where Live Code 7.x or 8 puts files and data base, in Android devices, I add in my app with the Copy Files pane of the Standalone App Settings. I also don't know what is the path I have to use to make a read from these files or to search in the data base. Sometime I think that Live Code doesn't copy the files or the data base I put in the Copy Files pane of the Standalone App Settings. I never had any problem with iOS, but with Android, I am lost. The documentation is not so clear. Regards, Alain Vezina Logilangue _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From alain.vezina at logilangue.com Thu Jun 2 17:39:24 2016 From: alain.vezina at logilangue.com (Alain Vezina) Date: Thu, 2 Jun 2016 17:39:24 -0400 Subject: files and data base on Android In-Reply-To: <003301d1bd0e$29493370$7bdb9a50$@net> References: <003301d1bd0e$29493370$7bdb9a50$@net> Message-ID: <07CD2A8E-F7EF-4F55-869A-6416034BAE8B@logilangue.com> Thanks Ralph, but I don?t know how I can copy a database from engine to documents : revCopyFile is not available for Android. Any suggestion? Regards Alain Vezina Le 2016-06-02 ? 16:34, Ralph DiMola a ?crit : > Alain, > > The files are in "the engine folder". "the engine folder" is read-only. The > database must be copied to "the documents folder" and then opened. Change > the extension of the .apk to .zip and open the zip file to examine the apk > files The "copy files" will be in the "assets" folder. > > 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 Alain Vezina > Sent: Thursday, June 02, 2016 4:13 PM > To: LiveCode How to > Subject: files and data base on Android > > Hi all, > > Is there anybody who knows where Live Code 7.x or 8 puts files and data > base, in Android devices, I add in my app with the Copy Files pane of the > Standalone App Settings. > > I also don't know what is the path I have to use to make a read from these > files or to search in the data base. > > Sometime I think that Live Code doesn't copy the files or the data base I > put in the Copy Files pane of the Standalone App Settings. > > I never had any problem with iOS, but with Android, I am lost. The > documentation is not so clear. > > Regards, > > Alain Vezina > Logilangue > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Thu Jun 2 18:06:20 2016 From: klaus at major-k.de (Klaus major-k) Date: Fri, 3 Jun 2016 00:06:20 +0200 Subject: files and data base on Android In-Reply-To: <07CD2A8E-F7EF-4F55-869A-6416034BAE8B@logilangue.com> References: <003301d1bd0e$29493370$7bdb9a50$@net> <07CD2A8E-F7EF-4F55-869A-6416034BAE8B@logilangue.com> Message-ID: <1DD1AD10-BB96-41AF-B02A-7592D5CA469D@major-k.de> Hi Alain, > Am 02.06.2016 um 23:39 schrieb Alain Vezina : > > Thanks Ralph, > > but I don?t know how I can copy a database from engine to documents : revCopyFile is not available for Android. > Any suggestion? ? ## Create pathnames: put specialfolderpath("resources?) & "/your_db_file.db" into tSource put specialfolderpath("documents?) & "/your_db_file.db" into tTarget ## Now copy that file, but only if not yet present! if there is not a file tTarget then put url("binfile:" & tSource) into url("binfile:2 & tTarget) end if ... Now access your database via: -> specialfolderpath("documents?) & "/your_db_file.db" On mobile specialfolderpath("engine") is the same as specialfolderpath("resources?) but get used to specialfolderpath("resources?), since this is crossplatform! :-) > Regards > > Alain Vezina > Le 2016-06-02 ? 16:34, Ralph DiMola a ?crit : > >> Alain, >> >> The files are in "the engine folder". "the engine folder" is read-only. The >> database must be copied to "the documents folder" and then opened. Change >> the extension of the .apk to .zip and open the zip file to examine the apk >> files The "copy files" will be in the "assets" folder. >> >> Ralph DiMola >> IT Director >> Evergreen Information Services >> rdimola at evergreeninfo.net Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From paul at researchware.com Thu Jun 2 20:32:05 2016 From: paul at researchware.com (Paul Dupuis) Date: Thu, 02 Jun 2016 20:32:05 -0400 Subject: Feature Exchange any one? Message-ID: <5750D005.8020902@researchware.com> Okay, I honestly am not sure whether I am serious about this or not, but here goes: I was working in LC8.0.1 this evening with a Datagrid and realize that still, for a component that has been on the LiveCode tool palette for a LONG TIME now and for MULTIPLE LiveCode versions, there is still not a single bit of documentation on the Datagrid that comes with LiveCode! All I wanted to do was look up the specific syntax for hiding a column via script. Arrgh! Yes, I have the PDF documentation and I know I can download it from the LiveCode web site, but that is not the point. The Datagrid has been a built in LiveCode tools since 4.something or earlier, so that's 4.6.x, 5.0.x, 5.5.x, 6.0.x, 6.1.x, 6.5.x, 6.6.x, 6.7.x (11 of those!), 7.0.x, 7.1.x, 8.0.x, and now 8.1.x! What other software tool has had a major component for so long with ZERO built in documentation? What would it take in dollars for a Feature Exchange to have LiveCode finally add the Datagrid API reference entries from the PDF to the Dictionary? It is essentially an editing effort to copy the text of the API reference chapter of the Datagrid PDF and editing into the format for the dictionary and check that into GitHub (or however stuff gets in the dictionary). Can that really cost that much? And, no, I do not want to do it myself, since I would need to learn GitHub, checking stuff in and out, the mark up format for the dictionary, where everything goes, and so on. The reason I want the Datagrid APIs in the Dictionary is to SAVE me time, not cost me more time getting them in! I love LiveCode, but somethings, like this, really irk me :-( From monte at appisle.net Thu Jun 2 21:02:44 2016 From: monte at appisle.net (Monte Goulding) Date: Fri, 3 Jun 2016 11:02:44 +1000 Subject: Feature Exchange any one? In-Reply-To: <5750D005.8020902@researchware.com> References: <5750D005.8020902@researchware.com> Message-ID: <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> Paul as this would not be editing existing documents but adding a new one for the DataGrid (probably as a single file library with multiple commands etc in it) you really wouldn?t need to learn git or use GitHub if you don?t want to. Just create the document according to the docs format reference on the guide tab of the docs stack and you can pass it around the community for further editing if you like then email it to me or (probably better) add it to a bug report. I definitely agree it would be great to have the DataGrid documented in the IDE! One of the things I?ve done as a side project since starting is start writing tests for the documentation. It started with the idea that all examples should be tested to see if they compile (there were some great examples of copy paste errors in there!) but has been extended to try and validate as much of the document as possible against the format specification. It?s looking for things like undocumented parameters or extra parameters that aren?t in the syntax statements, broken syntax statements and whether API docs have summaries. Needless to say there?s a big long list of things to fix (493 to be exact!) and the tests don?t cover everything yet! I may need to call on the community to give me a hand so we can get these things fixed, get the test into the the repo and have them run for every change to the docs. Cheers Monte From paul at researchware.com Thu Jun 2 21:09:37 2016 From: paul at researchware.com (Paul Dupuis) Date: Thu, 02 Jun 2016 21:09:37 -0400 Subject: Feature Exchange any one? In-Reply-To: <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> References: <5750D005.8020902@researchware.com> <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> Message-ID: <5750D8D1.8040909@researchware.com> On 6/2/2016 9:02 PM, Monte Goulding wrote: > Paul as this would not be editing existing documents but adding a new one for the DataGrid (probably as a single file library with multiple commands etc in it) you really wouldn?t need to learn git or use GitHub if you don?t want to. Just create the document according to the docs format reference on the guide tab of the docs stack and you can pass it around the community for further editing if you like then email it to me or (probably better) add it to a bug report. > > I definitely agree it would be great to have the DataGrid documented in the IDE! > > One of the things I?ve done as a side project since starting is start writing tests for the documentation. It started with the idea that all examples should be tested to see if they compile (there were some great examples of copy paste errors in there!) but has been extended to try and validate as much of the document as possible against the format specification. It?s looking for things like undocumented parameters or extra parameters that aren?t in the syntax statements, broken syntax statements and whether API docs have summaries. Needless to say there?s a big long list of things to fix (493 to be exact!) and the tests don?t cover everything yet! I may need to call on the community to give me a hand so we can get these things fixed, get the test into the the repo and have them run for every change to the docs. > Okay, I may see if I can carve out the time to pull the API section from the PDF and edit it to the doc format. At least the doc on the doc format is now a guide accessible from within LiveCode! ;-) From monte at appisle.net Thu Jun 2 21:24:03 2016 From: monte at appisle.net (Monte Goulding) Date: Fri, 3 Jun 2016 11:24:03 +1000 Subject: Feature Exchange any one? In-Reply-To: <5750D8D1.8040909@researchware.com> References: <5750D005.8020902@researchware.com> <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> <5750D8D1.8040909@researchware.com> Message-ID: <58511DFA-2601-4DD6-AF79-4DF97208EE68@appisle.net> > On 3 Jun 2016, at 11:09 AM, Paul Dupuis wrote: > > Okay, I may see if I can carve out the time to pull the API section from > the PDF and edit it to the doc format. At least the doc on the doc > format is now a guide accessible from within LiveCode! ;-) You may want to consider splitting the DataGrid docs into a library API doc and a guide for explaining how to do things that wouldn?t be that easy to explain in an API doc like setup row templates etc. Also guides can include images which will help there. API descriptions can probably include? From devin_asay at byu.edu Thu Jun 2 21:58:54 2016 From: devin_asay at byu.edu (Devin Asay) Date: Fri, 3 Jun 2016 01:58:54 +0000 Subject: Feature Exchange any one? In-Reply-To: <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> References: <5750D005.8020902@researchware.com>, <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> Message-ID: Hey Monte, I've been thinking about trying to write a validator stack for the API document format. Rather than reinvent the wheel I would love to have a look at yours and maybe help contribute to that effort. Devin Sent from my iPhone > On Jun 2, 2016, at 6:03 PM, Monte Goulding wrote: > > Paul as this would not be editing existing documents but adding a new one for the DataGrid (probably as a single file library with multiple commands etc in it) you really wouldn?t need to learn git or use GitHub if you don?t want to. Just create the document according to the docs format reference on the guide tab of the docs stack and you can pass it around the community for further editing if you like then email it to me or (probably better) add it to a bug report. > > I definitely agree it would be great to have the DataGrid documented in the IDE! > > One of the things I?ve done as a side project since starting is start writing tests for the documentation. It started with the idea that all examples should be tested to see if they compile (there were some great examples of copy paste errors in there!) but has been extended to try and validate as much of the document as possible against the format specification. It?s looking for things like undocumented parameters or extra parameters that aren?t in the syntax statements, broken syntax statements and whether API docs have summaries. Needless to say there?s a big long list of things to fix (493 to be exact!) and the tests don?t cover everything yet! I may need to call on the community to give me a hand so we can get these things fixed, get the test into the the repo and have them run for every change to the docs. > > 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 paul at researchware.com Thu Jun 2 22:01:03 2016 From: paul at researchware.com (Paul Dupuis) Date: Thu, 02 Jun 2016 22:01:03 -0400 Subject: Feature Exchange any one? In-Reply-To: <58511DFA-2601-4DD6-AF79-4DF97208EE68@appisle.net> References: <5750D005.8020902@researchware.com> <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> <5750D8D1.8040909@researchware.com> <58511DFA-2601-4DD6-AF79-4DF97208EE68@appisle.net> Message-ID: <5750E4DF.9000604@researchware.com> On 6/2/2016 9:24 PM, Monte Goulding wrote: > You may want to consider splitting the DataGrid docs into a library API doc and a guide for explaining how to do things that wouldn?t be that easy to explain in an API doc like setup row templates etc. Also guides can include images which will help there. API descriptions can probably include? No. While that all would be nice, my original point was the time to get the whole thing in was prohibitive for me. I just grabbed the API section and using the minimum required doc properties of name,type,syntax,summary, and description, along with the 'associated' property (with the value 'datagrid') I was able to convert about 20% of the API appendix to the doc format in time since my last post. My object is to convert the API appendix (20 pages), not the other 210 pages of the Datagrid PDF. If LiveCode would then add it to the Dictionary, at least all the API syntax would then be there. A person unfamiliar with the datagrid object most definitely would still need to find and download the datagrid PDF to understand stuff, but if you are familiar and just need the specific name or default value reminder of a property, it would then be available. Done for tonight - its about 10PM here - but I will try to finish up the rest of the conversion of the API appendix to the doc format by Monday. Once I am done the basic conversion of teh API appendix to the dictionary documentation format, if there are any other contributors who would like to edit or expand any of the entries to make them more than my minimal conversion, I'll happily pass the text file around. From monte at appisle.net Thu Jun 2 22:31:57 2016 From: monte at appisle.net (Monte Goulding) Date: Fri, 3 Jun 2016 12:31:57 +1000 Subject: Feature Exchange any one? In-Reply-To: References: <5750D005.8020902@researchware.com> <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> Message-ID: <76950F61-AD12-41DB-9701-88F10FFDA01E@appisle.net> Hi Devin The start of what I?m doing is here: https://github.com/livecode/livecode/pull/4092 That only includes the example compile check but I have some more format tests to commit and push today. Anyone is welcome to give me a hand getting the tests right and fixing the things they find. The next tests I need to look at implementing is whether all the associations and references are documented and any links in the syntax, summary, description or parameter/return values descriptions are listed in references. I suspect this will be a longish term side project where we gradually merge in tests for things as we have the time to get all the docs to pass that test. I also have a side project writing a script to hard wrap all the docs at 72 chars on the parts of the doc that can handle hard wrapping. Cheers Monte > I've been thinking about trying to write a validator stack for the API document format. Rather than reinvent the wheel I would love to have a look at yours and maybe help contribute to that effort. From jacque at hyperactivesw.com Fri Jun 3 00:29:45 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 02 Jun 2016 23:29:45 -0500 Subject: Feature Exchange any one? In-Reply-To: <76950F61-AD12-41DB-9701-88F10FFDA01E@appisle.net> References: <5750D005.8020902@researchware.com> <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> <76950F61-AD12-41DB-9701-88F10FFDA01E@appisle.net> Message-ID: <15514862aa8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> On June 2, 2016 9:33:30 PM Monte Goulding wrote: > I also have a side project writing a script to hard wrap all the docs at 72 > chars on > the parts of the doc that can handle hard wrapping. I have a handler somewhere for that, written as an example for the early LC 2.x documentation. I may be able to dig it up if you think it would be useful. I'm not in a position to contribute much else right now but I can at least do that. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From monte at appisle.net Fri Jun 3 00:33:28 2016 From: monte at appisle.net (Monte Goulding) Date: Fri, 3 Jun 2016 14:33:28 +1000 Subject: Feature Exchange any one? In-Reply-To: <15514862aa8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <5750D005.8020902@researchware.com> <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> <76950F61-AD12-41DB-9701-88F10FFDA01E@appisle.net> <15514862aa8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <1D56D720-4710-446D-BE3E-B593FF161A06@appisle.net> > On 3 Jun 2016, at 2:29 PM, J. Landman Gay wrote: > > I have a handler somewhere for that, written as an example for the early LC 2.x documentation. I may be able to dig it up if you think it would be useful. I'm not in a position to contribute much else right now but I can at least do that. The script is basically done it?s now more about timing when would be a good time to commit a huge diff on just about every doc. Thanks anyway! Cheers Monte From richmondmathewson at gmail.com Fri Jun 3 05:20:10 2016 From: richmondmathewson at gmail.com (RM) Date: Fri, 3 Jun 2016 12:20:10 +0300 Subject: Feature Exchange any one? In-Reply-To: <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> References: <5750D005.8020902@researchware.com> <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> Message-ID: <57514BCA.4060800@gmail.com> To be honest this is why I have only tried once to do anything with the Datagrid, and go so badly bogged-down due to the lack of documentation I abandoned it and have never looked back. Richmond. From paul at researchware.com Fri Jun 3 07:47:35 2016 From: paul at researchware.com (Paul Dupuis) Date: Fri, 03 Jun 2016 07:47:35 -0400 Subject: Feature Exchange any one? In-Reply-To: <57514BCA.4060800@gmail.com> References: <5750D005.8020902@researchware.com> <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> <57514BCA.4060800@gmail.com> Message-ID: <57516E57.6060303@researchware.com> On 6/3/2016 5:20 AM, RM wrote: > To be honest this is why I have only tried once to do anything > with the Datagrid, and go so badly bogged-down due to > the lack of documentation I abandoned it and have never looked > back. Unfortunately, that is probably why a lot of people don't bother with the Datagrid. Once you are over the basic learning curve - done by going through Trevor excellent PDF guide - it really is a very powerful component. However, my memory is not what it used to be. These days, I find I have to look up the syntax of a repeat loop form if it is a form I haven't used recently! This makes not having the datagrid APIs in the dictionary all the more annoying for me. From toolbook at kestner.de Fri Jun 3 08:57:15 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Fri, 3 Jun 2016 14:57:15 +0200 Subject: AW: LC 8 Random crash with QT set the filename of player on OS X In-Reply-To: <5561693D-D783-497E-A270-229C8629C98D@swcp.com> References: <003f01d1bcdc$6b2c7e00$41857a00$@kestner.de> <5561693D-D783-497E-A270-229C8629C98D@swcp.com> Message-ID: <009c01d1bd97$749ccec0$5dd66c40$@kestner.de> Hi Dar, thank you for your notions. I think it wasn't a real recursion, because of the user interaction in between, but you pointed me into the right direction. I now have changed one call of a command with a *send* in 1 milliseconds instead of a direct call and now the error is gone. Though I don't understand it totally what was going on, it seems to me that this "handler loop" chocked itself somehow and got problems with the memory, like you pointed out. You saved my weekend :) Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Dar Scott Gesendet: Donnerstag, 2. Juni 2016 17:18 An: How to use LiveCode Betreff: Re: LC 8 Random crash with QT set the filename of player on OS X I don't think I have a very good understanding of your "loop". You seem to have some sort of recursion that will cause your call stack to grow and grow. it looks as though 1 calls 2 which calls 1 which calls 2 which calls 1 which calls 2 which calls.... At some point anything you do should cause a stack overflow. This normally would create an error without a crash, but it might be that some operations assume space and will crash. If you don't intend the recursion, you might be able to break out the start-from-begining essentials of one command to be called by both commands. I'm just guessing here; I don't have a good understanding of what you are doing. Since this runs fine on W10, I have a feeling that my guess is goofy. Dar > On Jun 2, 2016, at 8:38 AM, Tiemo Hollmann TB wrote: > > Hello, > > OS X 10.11.5, LC 8.0, IDE. Same program runs fine on Windows 10 > > I have a pretty nasty issue, where I am right now a bit clueless, in > which direction I have to search. I have set the dontuseQT of player "myPlayer" > to false because I am using old QT videos, which can't be played with AVF. > > In a *videoPlay* handler I *set* the filename of player "myPlayer" to > tVideoFile, which works fine in all situations and the video is played > afterwords fine. > > Now I have a pretty deep structure of handlers, as a kind of a loop > with the modal userdialog and playing a video. The handler with the > sheet/modal stack waits for some user interactions, calls the > *videoPlay* handler and calls again the first handler, so that it > starts from beginning. In the > *videoPlay* handler randomly this error occurs, when setting the > filename of the player object. > > > > A simplified structure looks like this: > > command1: > > *modal* stack myDialog > > command2 > > > > command 2: > > *set* the filename of player -> error > > command1 > > *modal*stack myDialog > > > > > > I have already tried to set a *wait" with messages before the *set* > the filename, but it still crashes randomly. > > As far as I can see, there are two main differences between the > handler, where the issue occurs and where not. 1. The deeper structure > of handlers and 2. The modal stack in between this handler "loop". > > > > My feeling is that the engine choks somewhere in the "loop", but with > different handler calls with/without *send* / *dispatch* I would > probably mess up the "loop" structure. > > > > Any idea, where to start? > > 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 dsc at swcp.com Fri Jun 3 11:46:09 2016 From: dsc at swcp.com (Dar Scott) Date: Fri, 3 Jun 2016 09:46:09 -0600 Subject: LC 8 Random crash with QT set the filename of player on OS X In-Reply-To: <009c01d1bd97$749ccec0$5dd66c40$@kestner.de> References: <003f01d1bcdc$6b2c7e00$41857a00$@kestner.de> <5561693D-D783-497E-A270-229C8629C98D@swcp.com> <009c01d1bd97$749ccec0$5dd66c40$@kestner.de> Message-ID: <89D35AAA-3E41-4B87-A14A-7F0232CBBD97@swcp.com> I'm glad I was able to (somehow) help you tinker with this. My style is to use send in many situations and I often create send loops or I build services with callbacks. To my brain this keeps things simple. And it is consistent with the event model that LiveCode uses. Dar > On Jun 3, 2016, at 6:57 AM, Tiemo Hollmann TB wrote: > > Hi Dar, > > thank you for your notions. > I think it wasn't a real recursion, because of the user interaction in > between, but you pointed me into the right direction. > I now have changed one call of a command with a *send* in 1 milliseconds > instead of a direct call and now the error is gone. Though I don't > understand it totally what was going on, it seems to me that this "handler > loop" chocked itself somehow and got problems with the memory, like you > pointed out. > You saved my weekend :) > Tiemo > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag > von Dar Scott > Gesendet: Donnerstag, 2. Juni 2016 17:18 > An: How to use LiveCode > Betreff: Re: LC 8 Random crash with QT set the filename of player on OS X > > I don't think I have a very good understanding of your "loop". > > You seem to have some sort of recursion that will cause your call stack to > grow and grow. it looks as though 1 calls 2 which calls 1 which calls 2 > which calls 1 which calls 2 which calls.... > > At some point anything you do should cause a stack overflow. This normally > would create an error without a crash, but it might be that some operations > assume space and will crash. > > If you don't intend the recursion, you might be able to break out the > start-from-begining essentials of one command to be called by both commands. > > > I'm just guessing here; I don't have a good understanding of what you are > doing. Since this runs fine on W10, I have a feeling that my guess is > goofy. > > Dar > > >> On Jun 2, 2016, at 8:38 AM, Tiemo Hollmann TB wrote: >> >> Hello, >> >> OS X 10.11.5, LC 8.0, IDE. Same program runs fine on Windows 10 >> >> I have a pretty nasty issue, where I am right now a bit clueless, in >> which direction I have to search. I have set the dontuseQT of player > "myPlayer" >> to false because I am using old QT videos, which can't be played with AVF. >> >> In a *videoPlay* handler I *set* the filename of player "myPlayer" to >> tVideoFile, which works fine in all situations and the video is played >> afterwords fine. >> >> Now I have a pretty deep structure of handlers, as a kind of a loop >> with the modal userdialog and playing a video. The handler with the >> sheet/modal stack waits for some user interactions, calls the >> *videoPlay* handler and calls again the first handler, so that it >> starts from beginning. In the >> *videoPlay* handler randomly this error occurs, when setting the >> filename of the player object. >> >> >> >> A simplified structure looks like this: >> >> command1: >> >> *modal* stack myDialog >> >> command2 >> >> >> >> command 2: >> >> *set* the filename of player -> error >> >> command1 >> >> *modal*stack myDialog >> >> >> >> >> >> I have already tried to set a *wait" with messages before the *set* >> the filename, but it still crashes randomly. >> >> As far as I can see, there are two main differences between the >> handler, where the issue occurs and where not. 1. The deeper structure >> of handlers and 2. The modal stack in between this handler "loop". >> >> >> >> My feeling is that the engine choks somewhere in the "loop", but with >> different handler calls with/without *send* / *dispatch* I would >> probably mess up the "loop" structure. >> >> >> >> Any idea, where to start? >> >> 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 jiml at netrin.com Fri Jun 3 19:48:48 2016 From: jiml at netrin.com (Jim Lambert) Date: Fri, 3 Jun 2016 16:48:48 -0700 Subject: LC 8 Random crash with QT set the filename of player on OS X In-Reply-To: References: Message-ID: Just a thought. Before setting the filename of the player to a movie file, first set its filename to empty. Wait 0 ticks. Then set its filename to the movie path. Jim Lambert From monte at appisle.net Fri Jun 3 20:37:00 2016 From: monte at appisle.net (Monte Goulding) Date: Sat, 4 Jun 2016 10:37:00 +1000 Subject: LC 8 Random crash with QT set the filename of player on OS X In-Reply-To: References: Message-ID: <3B5923CD-B86D-4591-AC24-7CF843EFF5CC@appisle.net> If there?s a reliable crash please post a bug report with the crash log and we can symbolicate it and try and resolve it. It would also be interesting to know which version of LC you are using and whether the crash happens with an AVFoundation player (using a different movie of course). Having said that what worries me the most about this conversation is the use of QuickTime. One of my tasks this sprint is to document and clarify the use of dontUseQT and also remove the IDE preference to load QT automatically as it is too dangerous to leave that preference from old versions of LiveCode active. Here?s the current status: - QT hasn?t been supported by Apple for years - QT has security warnings to uninstall from Windows - QT can not be supported on Mac 64 bit It is basically a bomb in your app waiting to go off so we should be encouraging everyone mentioning the use of QuickTime to re-encode unsupported videos as a high priority. Cheers Monte From jf_byrnes at comcast.net Sat Jun 4 13:09:07 2016 From: jf_byrnes at comcast.net (Jim Byrnes) Date: Sat, 4 Jun 2016 12:09:07 -0500 Subject: Regarding the interactive tutorial Message-ID: Is there a way to "rewind" it. That is back up a step or two. I managed to mess it up a couple of times and it would have been nice to redo a previous step instead of having to start over. I'm curious if anyone else using Linux (Ubuntu in my case) had trouble figuring out how to scroll the icon picker. It wasn't until I googled and saw a screen shot that I noticed the little handle you use. Even after I knew what to look for I trouble seeing it. Regards, Jim From paul at researchware.com Sat Jun 4 15:26:42 2016 From: paul at researchware.com (Paul Dupuis) Date: Sat, 04 Jun 2016 15:26:42 -0400 Subject: Feature Exchange any one? In-Reply-To: <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> References: <5750D005.8020902@researchware.com> <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> Message-ID: <57532B72.5050703@researchware.com> On 6/2/2016 9:02 PM, Monte Goulding wrote: > Paul as this would not be editing existing documents but adding a new one for the DataGrid (probably as a single file library with multiple commands etc in it) you really wouldn?t need to learn git or use GitHub if you don?t want to. Just create the document according to the docs format reference on the guide tab of the docs stack and you can pass it around the community for further editing if you like then email it to me or (probably better) add it to a bug report. Submitted as http://quality.livecode.com/show_bug.cgi?id=17792 The attached text file has all 20 pages of the Datagrid PDF API appendix in LC7 documentation format using name, type, syntax, summary, and description as the minimum tags. Some entries have additional tags as appropriate. It isn't perfect. It is pretty much exactly what is in the API appendix of the PDF just chopped into LC8 doc format. If anyone would like to download the text file and make further edits or improvements, they are welcome to. Hopefully, this can be manipulated/edited into something that can make it into the LC dictionary finally. -- Paul From cubist at aol.com Sun Jun 5 10:12:01 2016 From: cubist at aol.com (Quentin Long) Date: Sun, 5 Jun 2016 10:12:01 -0400 Subject: Cubist's first bug report In-Reply-To: References: Message-ID: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> Code which exhibits the bug: on mouseUp put "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" into Fred repeat 100 times add 1 to any item of Fred put Fred into line (1 + the number of lines in fld "testbed") of fld "testbed" end repeat put sum (Fred) into line (1 + the number of lines in fld "testbed") of fld "testbed" end mouseUp This handler *should* end up generating a 16-item string of integers which sum to exactly 100. What it *actually does* end up generating, is a 16-item string of integers whose sum may or may not fall somewhere within the range 80-120. Not sure what the hell is going on here, but I am not at all happy about it. Perhaps other people might like to try this code on their systems, and see if it works as intended for them? http://quality.livecode.com/show_bug.cgi?id=17795 "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 mwieder at ahsoftware.net Sun Jun 5 10:47:51 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 5 Jun 2016 07:47:51 -0700 Subject: Cubist's first bug report In-Reply-To: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> Message-ID: <57543B97.2040406@ahsoftware.net> On 06/05/2016 07:12 AM, Quentin Long wrote: > This handler *should* end up generating a 16-item string of integers which sum to exactly 100. What it *actually does* end up generating, is a 16-item string of integers whose sum may or may not fall somewhere within the range 80-120. Not sure what the hell is going on here, but I am not at all happy about it. Perhaps other people might like to try this code on their systems, and see if it works as intended for them? > > http://quality.livecode.com/show_bug.cgi?id=17795 See more gory details at http://forums.livecode.com/viewtopic.php?f=7&t=27430 It looks like a regression of bug #7919. -- Mark Wieder ahsoftware at gmail.com From m.schonewille at economy-x-talk.com Sun Jun 5 10:48:31 2016 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 5 Jun 2016 16:48:31 +0200 Subject: Cubist's first bug report In-Reply-To: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> Message-ID: <137449e2-2fd9-4b62-297a-d9a524bf318e@economy-x-talk.com> Hi Quentin, I see the same results, when I try your code. However, if I first store the random value and add 1 to an item in the string in the next line in the script, it works correctly. Apparently, the random function and the add command are incompatible. on mouseUp put "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" into myVar repeat 100 put random(16) into myRandom add 1 to item myRandom of myVar put myVar & cr after myTempList end repeat put sum(myVar) & cr & myTempList end mouseUp 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 05-Jun-16 om 16:12 schreef Quentin Long: > Code which exhibits the bug: > > on mouseUp > put "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" into Fred > repeat 100 times > add 1 to any item of Fred > put Fred into line (1 + the number of lines in fld "testbed") of fld "testbed" > end repeat > put sum (Fred) into line (1 + the number of lines in fld "testbed") of fld "testbed" > end mouseUp > > This handler *should* end up generating a 16-item string of integers which sum to exactly 100. What it *actually does* end up generating, is a 16-item string of integers whose sum may or may not fall somewhere within the range 80-120. Not sure what the hell is going on here, but I am not at all happy about it. Perhaps other people might like to try this code on their systems, and see if it works as intended for them? > > http://quality.livecode.com/show_bug.cgi?id=17795 > From hh at hh.on-rev.com Sun Jun 5 13:47:58 2016 From: hh at hh.on-rev.com (-hh) Date: Sun, 5 Jun 2016 10:47:58 -0700 (PDT) Subject: Cubist's first bug report In-Reply-To: <137449e2-2fd9-4b62-297a-d9a524bf318e@economy-x-talk.com> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <137449e2-2fd9-4b62-297a-d9a524bf318e@economy-x-talk.com> Message-ID: <1465148878312-4705410.post@n4.nabble.com> What's the culprit for that? I dare say: = It's not the random (as Mark S. proved with his example) = It's not a random-incompatible "add" (see example below) It is the basic problem that LC has with counting items, lines, words or other chunks. The number of is defined in a logically inconsistent way. Example that works correctly: local f="OUT", c="," on mouseUp lock screen; lock messages put the millisecs into m1 put empty into fld f put 0 into s[1]; put 0 into s[2]; put 0 into s[3] repeat 10000 add 1 to s[random(3)] put cr & s[1] &c& s[2] &c& s[3] after s0 end repeat put the millisecs - m1 &cr& \ s[1]+s[2]+s[3] &cr& s0 into fld f unlock screen; unlock messages end mouseUp -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Cubist-s-first-bug-report-tp4705407p4705410.html Sent from the Revolution - User mailing list archive at Nabble.com. From dsc at swcp.com Sun Jun 5 14:42:01 2016 From: dsc at swcp.com (Dar Scott) Date: Sun, 5 Jun 2016 12:42:01 -0600 Subject: Cubist's first bug report In-Reply-To: <137449e2-2fd9-4b62-297a-d9a524bf318e@economy-x-talk.com> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <137449e2-2fd9-4b62-297a-d9a524bf318e@economy-x-talk.com> Message-ID: Very nice and clean example code. Also, as you hinted, this does have the problem: add 1 to item random(16) of myVar I infer from this that the problem is very likely not in how 'any' counts items. This also applies to subtract and multiply. I suspect that random(16) is being evaluated twice based on a first glance at the pattern. Because of that, my guess is that this bug will not cause a crash. The problem also occurs when I use my own random function. it looks as though this... add 1 to any item of x ... is being evaluated as... put 1 + any item of x into any item of x ... which is incorrect. Perhaps that is just the info needed for a quick fix. This also will show up for any function with side effects built-in or not, so this is a far ranging bug and it should be pushed up in priority. Dar > On Jun 5, 2016, at 8:48 AM, Mark Schonewille wrote: > > Hi Quentin, > > I see the same results, when I try your code. However, if I first store the random value and add 1 to an item in the string in the next line in the script, it works correctly. Apparently, the random function and the add command are incompatible. > > on mouseUp > put "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" into myVar > repeat 100 > put random(16) into myRandom > add 1 to item myRandom of myVar > put myVar & cr after myTempList > end repeat > put sum(myVar) & cr & myTempList > end mouseUp > > 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 05-Jun-16 om 16:12 schreef Quentin Long: >> Code which exhibits the bug: >> >> on mouseUp >> put "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" into Fred >> repeat 100 times >> add 1 to any item of Fred >> put Fred into line (1 + the number of lines in fld "testbed") of fld "testbed" >> end repeat >> put sum (Fred) into line (1 + the number of lines in fld "testbed") of fld "testbed" >> end mouseUp >> >> This handler *should* end up generating a 16-item string of integers which sum to exactly 100. What it *actually does* end up generating, is a 16-item string of integers whose sum may or may not fall somewhere within the range 80-120. Not sure what the hell is going on here, but I am not at all happy about it. Perhaps other people might like to try this code on their systems, and see if it works as intended for them? >> >> http://quality.livecode.com/show_bug.cgi?id=17795 >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Sun Jun 5 14:55:19 2016 From: dsc at swcp.com (Dar Scott) Date: Sun, 5 Jun 2016 12:55:19 -0600 Subject: Cubist's first bug report In-Reply-To: <1465148878312-4705410.post@n4.nabble.com> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <137449e2-2fd9-4b62-297a-d9a524bf318e@economy-x-talk.com> <1465148878312-4705410.post@n4.nabble.com> Message-ID: Very good test! I mentioned in crossed email that I suspect reevaluation. Since the problem shows up with item and not array subscripts, I would suspect the reevaluation is done to avoid some problem. Even so, the item number should be computed once and saved even if the character location in the string is recomputed. Dar > On Jun 5, 2016, at 11:47 AM, [-hh] wrote: > > What's the culprit for that? I dare say: > > = It's not the random (as Mark S. proved with his example) > = It's not a random-incompatible "add" (see example below) > > It is the basic problem that LC has with counting items, > lines, words or other chunks. The number of is > defined in a logically inconsistent way. > > Example that works correctly: > > local f="OUT", c="," > on mouseUp > lock screen; lock messages > put the millisecs into m1 > put empty into fld f > put 0 into s[1]; put 0 into s[2]; put 0 into s[3] > repeat 10000 > add 1 to s[random(3)] > put cr & s[1] &c& s[2] &c& s[3] after s0 > end repeat > put the millisecs - m1 &cr& \ > s[1]+s[2]+s[3] &cr& s0 into fld f > unlock screen; unlock messages > end mouseUp > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Cubist-s-first-bug-report-tp4705407p4705410.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 dsc at swcp.com Sun Jun 5 15:15:11 2016 From: dsc at swcp.com (dsc at swcp.com) Date: Sun, 5 Jun 2016 13:15:11 -0600 Subject: Cubist's first bug report In-Reply-To: References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <137449e2-2fd9-4b62-297a-d9a524bf318e@economy-x-talk.com> Message-ID: <5085C3F1-8937-4D1E-8F49-974B38EDA2F7@swcp.com> Here's a script (derived from Mark's) that illustrates the double call: local sRandomCount on mouseUp put LF into newLine put 0 into sRandomCount put "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" into myVar repeat 100 add 1 to item myrandom(16) of myVar put myVar & newLine after myTempList end repeat put sRandomCount & tab & sum(myVar) & newLine & myTempList end mouseUp function myRandom n add 1 to sRandomCount return random(n) end myRandom > On Jun 5, 2016, at 12:42 PM, Dar Scott wrote: > > Very nice and clean example code. > > Also, as you hinted, this does have the problem: > add 1 to item random(16) of myVar > > I infer from this that the problem is very likely not in how 'any' counts items. > > This also applies to subtract and multiply. I suspect that random(16) is being evaluated twice based on a first glance at the pattern. Because of that, my guess is that this bug will not cause a crash. > > The problem also occurs when I use my own random function. > > it looks as though this... > add 1 to any item of x > ... is being evaluated as... > put 1 + any item of x into any item of x > ... which is incorrect. > > Perhaps that is just the info needed for a quick fix. > > This also will show up for any function with side effects built-in or not, so this is a far ranging bug and it should be pushed up in priority. > > Dar > > >> On Jun 5, 2016, at 8:48 AM, Mark Schonewille wrote: >> >> Hi Quentin, >> >> I see the same results, when I try your code. However, if I first store the random value and add 1 to an item in the string in the next line in the script, it works correctly. Apparently, the random function and the add command are incompatible. >> >> on mouseUp >> put "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" into myVar >> repeat 100 >> put random(16) into myRandom >> add 1 to item myRandom of myVar >> put myVar & cr after myTempList >> end repeat >> put sum(myVar) & cr & myTempList >> end mouseUp >> >> 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 05-Jun-16 om 16:12 schreef Quentin Long: >>> Code which exhibits the bug: >>> >>> on mouseUp >>> put "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" into Fred >>> repeat 100 times >>> add 1 to any item of Fred >>> put Fred into line (1 + the number of lines in fld "testbed") of fld "testbed" >>> end repeat >>> put sum (Fred) into line (1 + the number of lines in fld "testbed") of fld "testbed" >>> end mouseUp >>> >>> This handler *should* end up generating a 16-item string of integers which sum to exactly 100. What it *actually does* end up generating, is a 16-item string of integers whose sum may or may not fall somewhere within the range 80-120. Not sure what the hell is going on here, but I am not at all happy about it. Perhaps other people might like to try this code on their systems, and see if it works as intended for them? >>> >>> http://quality.livecode.com/show_bug.cgi?id=17795 >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Sun Jun 5 16:06:42 2016 From: dsc at swcp.com (dsc at swcp.com) Date: Sun, 5 Jun 2016 14:06:42 -0600 Subject: Fun (was Re: Cubist's first bug report) In-Reply-To: <5085C3F1-8937-4D1E-8F49-974B38EDA2F7@swcp.com> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <137449e2-2fd9-4b62-297a-d9a524bf318e@economy-x-talk.com> <5085C3F1-8937-4D1E-8F49-974B38EDA2F7@swcp.com> Message-ID: <84CE3B46-3B65-4A41-BAEC-E2302F90FF99@swcp.com> Just for fun: on mouseUp put LF into newLine put 0 into sRandomCount put "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16" into myVar repeat 100 add zero to any item of myVar put myVar & newLine after myTempList end repeat put sum(myVar) & newLine & myTempList end mouseUp > On Jun 5, 2016, at 1:15 PM, dsc at swcp.com wrote: > > Here's a script (derived from Mark's) that illustrates the double call: > > local sRandomCount > > on mouseUp > put LF into newLine > put 0 into sRandomCount > put "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" into myVar > repeat 100 > add 1 to item myrandom(16) of myVar > put myVar & newLine after myTempList > end repeat > put sRandomCount & tab & sum(myVar) & newLine & myTempList > end mouseUp > > function myRandom n > add 1 to sRandomCount > return random(n) > end myRandom > > > > >> On Jun 5, 2016, at 12:42 PM, Dar Scott wrote: >> >> Very nice and clean example code. >> >> Also, as you hinted, this does have the problem: >> add 1 to item random(16) of myVar >> >> I infer from this that the problem is very likely not in how 'any' counts items. >> >> This also applies to subtract and multiply. I suspect that random(16) is being evaluated twice based on a first glance at the pattern. Because of that, my guess is that this bug will not cause a crash. >> >> The problem also occurs when I use my own random function. >> >> it looks as though this... >> add 1 to any item of x >> ... is being evaluated as... >> put 1 + any item of x into any item of x >> ... which is incorrect. >> >> Perhaps that is just the info needed for a quick fix. >> >> This also will show up for any function with side effects built-in or not, so this is a far ranging bug and it should be pushed up in priority. >> >> Dar >> >> >>> On Jun 5, 2016, at 8:48 AM, Mark Schonewille wrote: >>> >>> Hi Quentin, >>> >>> I see the same results, when I try your code. However, if I first store the random value and add 1 to an item in the string in the next line in the script, it works correctly. Apparently, the random function and the add command are incompatible. >>> >>> on mouseUp >>> put "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" into myVar >>> repeat 100 >>> put random(16) into myRandom >>> add 1 to item myRandom of myVar >>> put myVar & cr after myTempList >>> end repeat >>> put sum(myVar) & cr & myTempList >>> end mouseUp >>> >>> 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 05-Jun-16 om 16:12 schreef Quentin Long: >>>> Code which exhibits the bug: >>>> >>>> on mouseUp >>>> put "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" into Fred >>>> repeat 100 times >>>> add 1 to any item of Fred >>>> put Fred into line (1 + the number of lines in fld "testbed") of fld "testbed" >>>> end repeat >>>> put sum (Fred) into line (1 + the number of lines in fld "testbed") of fld "testbed" >>>> end mouseUp >>>> >>>> This handler *should* end up generating a 16-item string of integers which sum to exactly 100. What it *actually does* end up generating, is a 16-item string of integers whose sum may or may not fall somewhere within the range 80-120. Not sure what the hell is going on here, but I am not at all happy about it. Perhaps other people might like to try this code on their systems, and see if it works as intended for them? >>>> >>>> http://quality.livecode.com/show_bug.cgi?id=17795 >>>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Sun Jun 5 16:14:54 2016 From: dsc at swcp.com (dsc at swcp.com) Date: Sun, 5 Jun 2016 14:14:54 -0600 Subject: Fun (was Re: Cubist's first bug report) In-Reply-To: <84CE3B46-3B65-4A41-BAEC-E2302F90FF99@swcp.com> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <137449e2-2fd9-4b62-297a-d9a524bf318e@economy-x-talk.com> <5085C3F1-8937-4D1E-8F49-974B38EDA2F7@swcp.com> <84CE3B46-3B65-4A41-BAEC-E2302F90FF99@swcp.com> Message-ID: <1A2E22F7-5E82-4262-83AA-5067C8A7A16D@swcp.com> on mouseUp put "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16" into myVar repeat 1000 add zero to any item of myVar end repeat put myVar end mouseUp > On Jun 5, 2016, at 2:06 PM, dsc at swcp.com wrote: > > Just for fun: > > on mouseUp > put LF into newLine > put 0 into sRandomCount > put "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16" into myVar > repeat 100 > add zero to any item of myVar > put myVar & newLine after myTempList > end repeat > put sum(myVar) & newLine & myTempList > end mouseUp > > > >> On Jun 5, 2016, at 1:15 PM, dsc at swcp.com wrote: >> >> Here's a script (derived from Mark's) that illustrates the double call: >> >> local sRandomCount >> >> on mouseUp >> put LF into newLine >> put 0 into sRandomCount >> put "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" into myVar >> repeat 100 >> add 1 to item myrandom(16) of myVar >> put myVar & newLine after myTempList >> end repeat >> put sRandomCount & tab & sum(myVar) & newLine & myTempList >> end mouseUp >> >> function myRandom n >> add 1 to sRandomCount >> return random(n) >> end myRandom >> >> >> >> >>> On Jun 5, 2016, at 12:42 PM, Dar Scott wrote: >>> >>> Very nice and clean example code. >>> >>> Also, as you hinted, this does have the problem: >>> add 1 to item random(16) of myVar >>> >>> I infer from this that the problem is very likely not in how 'any' counts items. >>> >>> This also applies to subtract and multiply. I suspect that random(16) is being evaluated twice based on a first glance at the pattern. Because of that, my guess is that this bug will not cause a crash. >>> >>> The problem also occurs when I use my own random function. >>> >>> it looks as though this... >>> add 1 to any item of x >>> ... is being evaluated as... >>> put 1 + any item of x into any item of x >>> ... which is incorrect. >>> >>> Perhaps that is just the info needed for a quick fix. >>> >>> This also will show up for any function with side effects built-in or not, so this is a far ranging bug and it should be pushed up in priority. >>> >>> Dar >>> >>> >>>> On Jun 5, 2016, at 8:48 AM, Mark Schonewille wrote: >>>> >>>> Hi Quentin, >>>> >>>> I see the same results, when I try your code. However, if I first store the random value and add 1 to an item in the string in the next line in the script, it works correctly. Apparently, the random function and the add command are incompatible. >>>> >>>> on mouseUp >>>> put "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" into myVar >>>> repeat 100 >>>> put random(16) into myRandom >>>> add 1 to item myRandom of myVar >>>> put myVar & cr after myTempList >>>> end repeat >>>> put sum(myVar) & cr & myTempList >>>> end mouseUp >>>> >>>> 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 05-Jun-16 om 16:12 schreef Quentin Long: >>>>> Code which exhibits the bug: >>>>> >>>>> on mouseUp >>>>> put "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" into Fred >>>>> repeat 100 times >>>>> add 1 to any item of Fred >>>>> put Fred into line (1 + the number of lines in fld "testbed") of fld "testbed" >>>>> end repeat >>>>> put sum (Fred) into line (1 + the number of lines in fld "testbed") of fld "testbed" >>>>> end mouseUp >>>>> >>>>> This handler *should* end up generating a 16-item string of integers which sum to exactly 100. What it *actually does* end up generating, is a 16-item string of integers whose sum may or may not fall somewhere within the range 80-120. Not sure what the hell is going on here, but I am not at all happy about it. Perhaps other people might like to try this code on their systems, and see if it works as intended for them? >>>>> >>>>> http://quality.livecode.com/show_bug.cgi?id=17795 >>>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 hh.on-rev.com Sun Jun 5 16:26:33 2016 From: hh at hh.on-rev.com (-hh) Date: Sun, 5 Jun 2016 13:26:33 -0700 (PDT) Subject: Fun (was Re: Cubist's first bug report) In-Reply-To: <1A2E22F7-5E82-4262-83AA-5067C8A7A16D@swcp.com> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <137449e2-2fd9-4b62-297a-d9a524bf318e@economy-x-talk.com> <5085C3F1-8937-4D1E-8F49-974B38EDA2F7@swcp.com> <84CE3B46-3B65-4A41-BAEC-E2302F90FF99@swcp.com> <1A2E22F7-5E82-4262-83AA-5067C8A7A16D@swcp.com> Message-ID: <1465158393986-4705416.post@n4.nabble.com> Dar Scott wrote > on mouseUp > put "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16" into myVar > repeat 1000 > add zero to any item of myVar > end repeat > put myVar > end mouseUp Your example is really convincing, nothing to say more. This introduces, still funny, some variation: on mouseUp put "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16" into myVar repeat 1000 add 0 to item (any item of myVar) of myVar end repeat put myVar into fld 1 end mouseUp And this, not this much funny, creates a CRASH (showing "inf"): on mouseUp put "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16" into myVar repeat 1000 add 1 to item (any item of myVar) of myVar end repeat put myVar into fld 1 end mouseUp -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Cubist-s-first-bug-report-tp4705407p4705416.html Sent from the Revolution - User mailing list archive at Nabble.com. From chipsm at themartinz.com Sun Jun 5 17:50:24 2016 From: chipsm at themartinz.com (** Clarence P Martin **) Date: Sun, 5 Jun 2016 14:50:24 -0700 Subject: Cubist's first bug report In-Reply-To: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> Message-ID: <086901d1bf74$43b211b0$cb163510$@themartinz.com> I feel that I am somewhere in another world. Can someone please explain to me where the "Any Item" or even Just the command "Any" is documented? I can't seem to find this. Sorry if this sounds like a stupid question, but when I see something that is new to me, I have to explore it and its uses. Sincerely, Clarence Martin Email: chipsm at themartinz.com Cell: 626 6965561 -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Quentin Long Sent: Sunday, June 05, 2016 7:12 AM To: use-livecode at lists.runrev.com Subject: Cubist's first bug report Code which exhibits the bug: on mouseUp put "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" into Fred repeat 100 times add 1 to any item of Fred put Fred into line (1 + the number of lines in fld "testbed") of fld "testbed" end repeat put sum (Fred) into line (1 + the number of lines in fld "testbed") of fld "testbed" end mouseUp This handler *should* end up generating a 16-item string of integers which sum to exactly 100. What it *actually does* end up generating, is a 16-item string of integers whose sum may or may not fall somewhere within the range 80-120. Not sure what the hell is going on here, but I am not at all happy about it. Perhaps other people might like to try this code on their systems, and see if it works as intended for them? http://quality.livecode.com/show_bug.cgi?id=17795 "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 ]. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Sun Jun 5 18:00:14 2016 From: dsc at swcp.com (Dar Scott) Date: Sun, 5 Jun 2016 16:00:14 -0600 Subject: Cubist's first bug report In-Reply-To: <086901d1bf74$43b211b0$cb163510$@themartinz.com> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <086901d1bf74$43b211b0$cb163510$@themartinz.com> Message-ID: <6FE64B0E-47EA-4A81-9DE1-800BD6A779F9@swcp.com> The word 'any' is in the dictionary. Well, it is in mine. It can apply to a chunk, a control or a card. A randomly selected thing is used. You can also use the function random() and 'the number of' to do the same thing. Also available are 'first' and 'last'. > On Jun 5, 2016, at 3:50 PM, ** Clarence P Martin ** wrote: > > I feel that I am somewhere in another world. > Can someone please explain to me where the "Any Item" or even Just the command "Any" is documented? I can't seem to find this. > Sorry if this sounds like a stupid question, but when I see something that is new to me, I have to explore it and its uses. > > Sincerely, > > Clarence Martin > Email: chipsm at themartinz.com > Cell: 626 6965561 > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Quentin Long > Sent: Sunday, June 05, 2016 7:12 AM > To: use-livecode at lists.runrev.com > Subject: Cubist's first bug report > > Code which exhibits the bug: > > on mouseUp > put "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" into Fred > repeat 100 times > add 1 to any item of Fred > put Fred into line (1 + the number of lines in fld "testbed") of fld "testbed" > end repeat > put sum (Fred) into line (1 + the number of lines in fld "testbed") of fld "testbed" > end mouseUp > > This handler *should* end up generating a 16-item string of integers which sum to exactly 100. What it *actually does* end up generating, is a 16-item string of integers whose sum may or may not fall somewhere within the range 80-120. Not sure what the hell is going on here, but I am not at all happy about it. Perhaps other people might like to try this code on their systems, and see if it works as intended for them? > > http://quality.livecode.com/show_bug.cgi?id=17795 > > > "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 ]. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Jun 5 18:06:30 2016 From: jerry at jhjensen.com (Jerry Jensen) Date: Sun, 5 Jun 2016 15:06:30 -0700 Subject: Cubist's first bug report In-Reply-To: <086901d1bf74$43b211b0$cb163510$@themartinz.com> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <086901d1bf74$43b211b0$cb163510$@themartinz.com> Message-ID: <1DA1BD22-413D-4BD8-8251-06112D80F1BF@jhjensen.com> I just spent a few minutes in the 8.0.1 dictionary and did not find it. That thing is useless! Maybe its because I?m new to 8, but where is ?any" documented? How in the world does one find it? .Jerry > On Jun 5, 2016, at 2:50 PM, ** Clarence P Martin ** wrote: > > I feel that I am somewhere in another world. > Can someone please explain to me where the "Any Item" or even Just the command "Any" is documented? I can't seem to find this. > Sorry if this sounds like a stupid question, but when I see something that is new to me, I have to explore it and its uses. > > Sincerely, > > Clarence Martin > Email: chipsm at themartinz.com > Cell: 626 6965561 > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Quentin Long > Sent: Sunday, June 05, 2016 7:12 AM > To: use-livecode at lists.runrev.com > Subject: Cubist's first bug report > > Code which exhibits the bug: > > on mouseUp > put "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" into Fred > repeat 100 times > add 1 to any item of Fred > put Fred into line (1 + the number of lines in fld "testbed") of fld "testbed" > end repeat > put sum (Fred) into line (1 + the number of lines in fld "testbed") of fld "testbed" > end mouseUp > > This handler *should* end up generating a 16-item string of integers which sum to exactly 100. What it *actually does* end up generating, is a 16-item string of integers whose sum may or may not fall somewhere within the range 80-120. Not sure what the hell is going on here, but I am not at all happy about it. Perhaps other people might like to try this code on their systems, and see if it works as intended for them? > > http://quality.livecode.com/show_bug.cgi?id=17795 > > > "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 ]. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From fraser.gordon at livecode.com Sun Jun 5 18:09:57 2016 From: fraser.gordon at livecode.com (Fraser Gordon) Date: Sun, 5 Jun 2016 23:09:57 +0100 Subject: Cubist's first bug report In-Reply-To: <1DA1BD22-413D-4BD8-8251-06112D80F1BF@jhjensen.com> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <086901d1bf74$43b211b0$cb163510$@themartinz.com> <1DA1BD22-413D-4BD8-8251-06112D80F1BF@jhjensen.com> Message-ID: <5754A335.3030304@livecode.com> On 05/06/16 23:06, Jerry Jensen wrote: > I just spent a few minutes in the 8.0.1 dictionary and did not find it. That thing is useless! Maybe its because I?m new to 8, but where is ?any" documented? How in the world does one find it? > .Jerry https://livecode.com/resources/api/#livecode_script/any I just entered "any" into the search field and there it was ;) Fraser From dsc at swcp.com Sun Jun 5 18:14:08 2016 From: dsc at swcp.com (Dar Scott) Date: Sun, 5 Jun 2016 16:14:08 -0600 Subject: Cubist's first bug report In-Reply-To: <1DA1BD22-413D-4BD8-8251-06112D80F1BF@jhjensen.com> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <086901d1bf74$43b211b0$cb163510$@themartinz.com> <1DA1BD22-413D-4BD8-8251-06112D80F1BF@jhjensen.com> Message-ID: I opened the dictionary. I didn't need to select the API tab or the LiveCode Script API, those were selected. I typed "any" in the search box, but did not hit return or click the search button. A list containing "mobilPickMedia" showed up. Right above it, all by itself so it can be lost, is the word "any". I clicked on it and I got a description. Of course, if one is learning the language... Why would anybody think to look for "any"? > On Jun 5, 2016, at 4:06 PM, Jerry Jensen wrote: > > I just spent a few minutes in the 8.0.1 dictionary and did not find it. That thing is useless! Maybe its because I?m new to 8, but where is ?any" documented? How in the world does one find it? > .Jerry > >> On Jun 5, 2016, at 2:50 PM, ** Clarence P Martin ** wrote: >> >> I feel that I am somewhere in another world. >> Can someone please explain to me where the "Any Item" or even Just the command "Any" is documented? I can't seem to find this. >> Sorry if this sounds like a stupid question, but when I see something that is new to me, I have to explore it and its uses. >> >> Sincerely, >> >> Clarence Martin >> Email: chipsm at themartinz.com >> Cell: 626 6965561 >> >> -----Original Message----- >> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Quentin Long >> Sent: Sunday, June 05, 2016 7:12 AM >> To: use-livecode at lists.runrev.com >> Subject: Cubist's first bug report >> >> Code which exhibits the bug: >> >> on mouseUp >> put "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" into Fred >> repeat 100 times >> add 1 to any item of Fred >> put Fred into line (1 + the number of lines in fld "testbed") of fld "testbed" >> end repeat >> put sum (Fred) into line (1 + the number of lines in fld "testbed") of fld "testbed" >> end mouseUp >> >> This handler *should* end up generating a 16-item string of integers which sum to exactly 100. What it *actually does* end up generating, is a 16-item string of integers whose sum may or may not fall somewhere within the range 80-120. Not sure what the hell is going on here, but I am not at all happy about it. Perhaps other people might like to try this code on their systems, and see if it works as intended for them? >> >> http://quality.livecode.com/show_bug.cgi?id=17795 >> >> >> "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 ]. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dsc at swcp.com Sun Jun 5 18:22:26 2016 From: dsc at swcp.com (Dar Scott) Date: Sun, 5 Jun 2016 16:22:26 -0600 Subject: Fun (was Re: Cubist's first bug report) In-Reply-To: <1465158393986-4705416.post@n4.nabble.com> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <137449e2-2fd9-4b62-297a-d9a524bf318e@economy-x-talk.com> <5085C3F1-8937-4D1E-8F49-974B38EDA2F7@swcp.com> <84CE3B46-3B65-4A41-BAEC-E2302F90FF99@swcp.com> <1A2E22F7-5E82-4262-83AA-5067C8A7A16D@swcp.com> <1465158393986-4705416.post@n4.nabble.com> Message-ID: <18847F99-9DD5-45A0-9B44-2F9125813225@swcp.com> > On Jun 5, 2016, at 2:26 PM, [-hh] wrote: > > And this, not this much funny, creates a CRASH (showing "inf"): > on mouseUp > put "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16" into myVar > repeat 1000 > add 1 to item (any item of myVar) of myVar > end repeat > put myVar into fld 1 > end mouseUp I clicked on a button several times and didn't get a crash and didn't get an error, but eventually I did get a lockup that was impervious to command-period. Ah, it just finished. It must have been adding commas to make the zillionth item. From ali.lloyd at livecode.com Sun Jun 5 18:29:49 2016 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Sun, 05 Jun 2016 22:29:49 +0000 Subject: Feature Exchange any one? In-Reply-To: <57532B72.5050703@researchware.com> References: <5750D005.8020902@researchware.com> <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> <57532B72.5050703@researchware.com> Message-ID: Thanks for this Paul, I have taken the liberty of tweaking it slightly more and submitted a pull request: https://github.com/livecode/livecode-ide/pull/1218/files Now all we need to do is convert the guide to markdown ;-) On Sat, Jun 4, 2016 at 8:26 PM Paul Dupuis wrote: > On 6/2/2016 9:02 PM, Monte Goulding wrote: > > Paul as this would not be editing existing documents but adding a new > one for the DataGrid (probably as a single file library with multiple > commands etc in it) you really wouldn?t need to learn git or use GitHub if > you don?t want to. Just create the document according to the docs format > reference on the guide tab of the docs stack and you can pass it around the > community for further editing if you like then email it to me or (probably > better) add it to a bug report. > > Submitted as http://quality.livecode.com/show_bug.cgi?id=17792 > > The attached text file has all 20 pages of the Datagrid PDF API appendix > in LC7 documentation format using name, type, syntax, summary, and > description as the minimum tags. Some entries have additional tags as > appropriate. > > It isn't perfect. It is pretty much exactly what is in the API appendix > of the PDF just chopped into LC8 doc format. > > If anyone would like to download the text file and make further edits or > improvements, they are welcome to. > > Hopefully, this can be manipulated/edited into something that can make > it into the LC dictionary finally. > > -- Paul > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From chipsm at themartinz.com Sun Jun 5 18:45:53 2016 From: chipsm at themartinz.com (** Clarence P Martin **) Date: Sun, 5 Jun 2016 15:45:53 -0700 Subject: Cubist's first bug report In-Reply-To: References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <086901d1bf74$43b211b0$cb163510$@themartinz.com> <1DA1BD22-413D-4BD8-8251-06112D80F1BF@jhjensen.com> Message-ID: <086e01d1bf7c$047d5e70$0d781b50$@themartinz.com> Thanks Dar, I also just found it. I guess I didn't see it because it is the first entry, at the top of the list, just as you noted. The old saying "Can't see the forest from the trees" is at play here. Sincerely, Clarence Martin Email: chipsm at themartinz.com Cell: 626 6965561 -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Dar Scott Sent: Sunday, June 05, 2016 3:14 PM To: How to use LiveCode Subject: Re: Cubist's first bug report I opened the dictionary. I didn't need to select the API tab or the LiveCode Script API, those were selected. I typed "any" in the search box, but did not hit return or click the search button. A list containing "mobilPickMedia" showed up. Right above it, all by itself so it can be lost, is the word "any". I clicked on it and I got a description. Of course, if one is learning the language... Why would anybody think to look for "any"? > On Jun 5, 2016, at 4:06 PM, Jerry Jensen wrote: > > I just spent a few minutes in the 8.0.1 dictionary and did not find it. That thing is useless! Maybe its because I?m new to 8, but where is ?any" documented? How in the world does one find it? > .Jerry > >> On Jun 5, 2016, at 2:50 PM, ** Clarence P Martin ** wrote: >> >> I feel that I am somewhere in another world. >> Can someone please explain to me where the "Any Item" or even Just the command "Any" is documented? I can't seem to find this. >> Sorry if this sounds like a stupid question, but when I see something that is new to me, I have to explore it and its uses. >> >> Sincerely, >> >> Clarence Martin >> Email: chipsm at themartinz.com >> Cell: 626 6965561 >> >> -----Original Message----- >> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On >> Behalf Of Quentin Long >> Sent: Sunday, June 05, 2016 7:12 AM >> To: use-livecode at lists.runrev.com >> Subject: Cubist's first bug report >> >> Code which exhibits the bug: >> >> on mouseUp >> put "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" into Fred repeat 100 times >> add 1 to any item of Fred >> put Fred into line (1 + the number of lines in fld "testbed") of fld "testbed" >> end repeat >> put sum (Fred) into line (1 + the number of lines in fld "testbed") of fld "testbed" >> end mouseUp >> >> This handler *should* end up generating a 16-item string of integers which sum to exactly 100. What it *actually does* end up generating, is a 16-item string of integers whose sum may or may not fall somewhere within the range 80-120. Not sure what the hell is going on here, but I am not at all happy about it. Perhaps other people might like to try this code on their systems, and see if it works as intended for them? >> >> http://quality.livecode.com/show_bug.cgi?id=17795 >> >> >> "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 ]. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode at 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 Sun Jun 5 19:03:26 2016 From: monte at appisle.net (Monte Goulding) Date: Mon, 6 Jun 2016 09:03:26 +1000 Subject: Fun (was Re: Cubist's first bug report) In-Reply-To: <84CE3B46-3B65-4A41-BAEC-E2302F90FF99@swcp.com> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <137449e2-2fd9-4b62-297a-d9a524bf318e@economy-x-talk.com> <5085C3F1-8937-4D1E-8F49-974B38EDA2F7@swcp.com> <84CE3B46-3B65-4A41-BAEC-E2302F90FF99@swcp.com> Message-ID: <43EFC3BE-CFAA-46B8-8820-A9AE3DB56EEE@appisle.net> > On 6 Jun 2016, at 6:06 AM, dsc at swcp.com wrote: > > I suspect that random(16) is being evaluated twice based on a first glance at the pattern. I?ve taken a little look into it and yes it does appear the chunk is being evaluated twice: Add left to right - get value to add by and evaluate chunk if any - get destination value and evaluate chunk if any - add - set destination value and evaluate chunk if any So I think we can both fix this quirk and optimise things that mutate rather than replace the destination chunk (add, subtract, multiply, divide commands? are there others?) by setting the previously marked chunk rather than re-evaluating. Please submit a bug report so we can look into it further and work out whether I?m right or I just don?t know my way around the engine well enough yet ;-) Cheers Monte From jerry at jhjensen.com Sun Jun 5 19:10:47 2016 From: jerry at jhjensen.com (Jerry Jensen) Date: Sun, 5 Jun 2016 16:10:47 -0700 Subject: Cubist's first bug report In-Reply-To: <086e01d1bf7c$047d5e70$0d781b50$@themartinz.com> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <086901d1bf74$43b211b0$cb163510$@themartinz.com> <1DA1BD22-413D-4BD8-8251-06112D80F1BF@jhjensen.com> <086e01d1bf7c$047d5e70$0d781b50$@themartinz.com> Message-ID: <83509388-F6F0-4FEF-A1CD-C536E97EFA38@jhjensen.com> I suspect that is what happened to me too. Now I see it. Embarrasing, me calling it useless. Apologies. I then got trapped in the filters and couldn?t get out. .Jerry > On Jun 5, 2016, at 3:45 PM, ** Clarence P Martin ** wrote: > > Thanks Dar, > I also just found it. I guess I didn't see it because it is the first entry, at the top of the list, just as you noted. The old saying "Can't see the forest from the trees" is at play here. > > Sincerely, > > Clarence Martin > Email: chipsm at themartinz.com > Cell: 626 6965561 > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Dar Scott > Sent: Sunday, June 05, 2016 3:14 PM > To: How to use LiveCode > Subject: Re: Cubist's first bug report > > I opened the dictionary. I didn't need to select the API tab or the LiveCode Script API, those were selected. I typed "any" in the search box, but did not hit return or click the search button. A list containing "mobilPickMedia" showed up. Right above it, all by itself so it can be lost, is the word "any". I clicked on it and I got a description. > > Of course, if one is learning the language... Why would anybody think to look for "any"? > > > >> On Jun 5, 2016, at 4:06 PM, Jerry Jensen wrote: >> >> I just spent a few minutes in the 8.0.1 dictionary and did not find it. That thing is useless! Maybe its because I?m new to 8, but where is ?any" documented? How in the world does one find it? >> .Jerry >> >>> On Jun 5, 2016, at 2:50 PM, ** Clarence P Martin ** wrote: >>> >>> I feel that I am somewhere in another world. >>> Can someone please explain to me where the "Any Item" or even Just the command "Any" is documented? I can't seem to find this. >>> Sorry if this sounds like a stupid question, but when I see something that is new to me, I have to explore it and its uses. >>> >>> Sincerely, >>> >>> Clarence Martin >>> Email: chipsm at themartinz.com >>> Cell: 626 6965561 >>> >>> -----Original Message----- >>> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On >>> Behalf Of Quentin Long >>> Sent: Sunday, June 05, 2016 7:12 AM >>> To: use-livecode at lists.runrev.com >>> Subject: Cubist's first bug report >>> >>> Code which exhibits the bug: >>> >>> on mouseUp >>> put "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" into Fred repeat 100 times >>> add 1 to any item of Fred >>> put Fred into line (1 + the number of lines in fld "testbed") of fld "testbed" >>> end repeat >>> put sum (Fred) into line (1 + the number of lines in fld "testbed") of fld "testbed" >>> end mouseUp >>> >>> This handler *should* end up generating a 16-item string of integers which sum to exactly 100. What it *actually does* end up generating, is a 16-item string of integers whose sum may or may not fall somewhere within the range 80-120. Not sure what the hell is going on here, but I am not at all happy about it. Perhaps other people might like to try this code on their systems, and see if it works as intended for them? >>> >>> http://quality.livecode.com/show_bug.cgi?id=17795 >>> >>> >>> "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 ]. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Jun 5 19:17:02 2016 From: monte at appisle.net (Monte Goulding) Date: Mon, 6 Jun 2016 09:17:02 +1000 Subject: Feature Exchange any one? In-Reply-To: References: <5750D005.8020902@researchware.com> <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> <57532B72.5050703@researchware.com> Message-ID: <0D7977AD-BE6C-4D4A-8322-7D6586C06817@appisle.net> > On 6 Jun 2016, at 8:29 AM, Ali Lloyd wrote: > > Thanks for this Paul, I have taken the liberty of tweaking it slightly more > and submitted a pull request: > > https://github.com/livecode/livecode-ide/pull/1218/files > > Now all we need to do is convert the guide to markdown ;-) I?ve got to admit I?ve had some projects in the past that were heavy DG users and this was a major annoyance so thank you Paul! It just goes to show that if you are frustrated by something in LiveCode it is no longer a black box where you need to just post a bug report and wait for the team to find time to fix it and the team has your back (it?s very late on a Sunday night for Ali!). Cheers Monte From mwieder at ahsoftware.net Sun Jun 5 19:52:51 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 5 Jun 2016 16:52:51 -0700 Subject: Fun (was Re: Cubist's first bug report) In-Reply-To: <43EFC3BE-CFAA-46B8-8820-A9AE3DB56EEE@appisle.net> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <137449e2-2fd9-4b62-297a-d9a524bf318e@economy-x-talk.com> <5085C3F1-8937-4D1E-8F49-974B38EDA2F7@swcp.com> <84CE3B46-3B65-4A41-BAEC-E2302F90FF99@swcp.com> <43EFC3BE-CFAA-46B8-8820-A9AE3DB56EEE@appisle.net> Message-ID: <5754BB53.9090604@ahsoftware.net> On 06/05/2016 04:03 PM, Monte Goulding wrote: > I?ve taken a little look into it and yes it does appear the chunk is being evaluated twice: Yes, I believe that's the gist of LCMark's comment in the bug report. Please submit a bug report so we can look into it further... There are two bug reports on this already. Do you need a third? -- Mark Wieder ahsoftware at gmail.com From dsc at swcp.com Sun Jun 5 20:00:38 2016 From: dsc at swcp.com (Dar Scott) Date: Sun, 5 Jun 2016 18:00:38 -0600 Subject: Fun (was Re: Cubist's first bug report) In-Reply-To: <5754BB53.9090604@ahsoftware.net> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <137449e2-2fd9-4b62-297a-d9a524bf318e@economy-x-talk.com> <5085C3F1-8937-4D1E-8F49-974B38EDA2F7@swcp.com> <84CE3B46-3B65-4A41-BAEC-E2302F90FF99@swcp.com> <43EFC3BE-CFAA-46B8-8820-A9AE3DB56EEE@appisle.net> <5754BB53.9090604@ahsoftware.net> Message-ID: > On Jun 5, 2016, at 5:52 PM, Mark Wieder wrote: > > Yes, I believe that's the gist of LCMark's comment in the bug report. Ah, looks like they have it on the run. I missed Mark's comment. Sorry about poking at this while it was actually understood. Dar From monte at appisle.net Sun Jun 5 20:04:32 2016 From: monte at appisle.net (Monte Goulding) Date: Mon, 6 Jun 2016 10:04:32 +1000 Subject: Fun (was Re: Cubist's first bug report) In-Reply-To: <5754BB53.9090604@ahsoftware.net> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <137449e2-2fd9-4b62-297a-d9a524bf318e@economy-x-talk.com> <5085C3F1-8937-4D1E-8F49-974B38EDA2F7@swcp.com> <84CE3B46-3B65-4A41-BAEC-E2302F90FF99@swcp.com> <43EFC3BE-CFAA-46B8-8820-A9AE3DB56EEE@appisle.net> <5754BB53.9090604@ahsoftware.net> Message-ID: <6E45EF09-0356-4D67-85BC-C4B687C4233C@appisle.net> I suspect not. I didn't realise one was open ;-) Sent from my iPhone > On 6 Jun 2016, at 9:52 AM, Mark Wieder wrote: > > There are two bug reports on this already. Do you need a third? From jacque at hyperactivesw.com Sun Jun 5 21:07:13 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 05 Jun 2016 20:07:13 -0500 Subject: Cubist's first bug report In-Reply-To: <83509388-F6F0-4FEF-A1CD-C536E97EFA38@jhjensen.com> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <086901d1bf74$43b211b0$cb163510$@themartinz.com> <1DA1BD22-413D-4BD8-8251-06112D80F1BF@jhjensen.com> <086e01d1bf7c$047d5e70$0d781b50$@themartinz.com> <83509388-F6F0-4FEF-A1CD-C536E97EFA38@jhjensen.com> Message-ID: <155233fd1e8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> For me, the problem is that there isn't a separate keyword column so there isn't a list you can scan down. Keywords, glossary entries, and syntax examples are all treated equally in a single column so it's too easy to miss things. I think the separations in the old dictionary made it easier to locate or discover terms. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On June 5, 2016 6:12:44 PM Jerry Jensen wrote: > I suspect that is what happened to me too. Now I see it. Embarrasing, me > calling it useless. Apologies. I then got trapped in the filters and > couldn?t get out. > .Jerry > >> On Jun 5, 2016, at 3:45 PM, ** Clarence P Martin ** >> wrote: >> >> Thanks Dar, >> I also just found it. I guess I didn't see it because it is the first >> entry, at the top of the list, just as you noted. The old saying "Can't see >> the forest from the trees" is at play here. >> >> Sincerely, >> >> Clarence Martin >> Email: chipsm at themartinz.com >> Cell: 626 6965561 >> >> -----Original Message----- >> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf >> Of Dar Scott >> Sent: Sunday, June 05, 2016 3:14 PM >> To: How to use LiveCode >> Subject: Re: Cubist's first bug report >> >> I opened the dictionary. I didn't need to select the API tab or the >> LiveCode Script API, those were selected. I typed "any" in the search box, >> but did not hit return or click the search button. A list containing >> "mobilPickMedia" showed up. Right above it, all by itself so it can be >> lost, is the word "any". I clicked on it and I got a description. >> >> Of course, if one is learning the language... Why would anybody think to >> look for "any"? >> >> >> >>> On Jun 5, 2016, at 4:06 PM, Jerry Jensen wrote: >>> >>> I just spent a few minutes in the 8.0.1 dictionary and did not find it. >>> That thing is useless! Maybe its because I?m new to 8, but where is ?any" >>> documented? How in the world does one find it? >>> .Jerry >>> >>>> On Jun 5, 2016, at 2:50 PM, ** Clarence P Martin ** >>>> wrote: >>>> >>>> I feel that I am somewhere in another world. >>>> Can someone please explain to me where the "Any Item" or even Just the >>>> command "Any" is documented? I can't seem to find this. >>>> Sorry if this sounds like a stupid question, but when I see something that >>>> is new to me, I have to explore it and its uses. >>>> >>>> Sincerely, >>>> >>>> Clarence Martin >>>> Email: chipsm at themartinz.com >>>> Cell: 626 6965561 >>>> >>>> -----Original Message----- >>>> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On >>>> Behalf Of Quentin Long >>>> Sent: Sunday, June 05, 2016 7:12 AM >>>> To: use-livecode at lists.runrev.com >>>> Subject: Cubist's first bug report >>>> >>>> Code which exhibits the bug: >>>> >>>> on mouseUp >>>> put "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" into Fred repeat 100 times >>>> add 1 to any item of Fred >>>> put Fred into line (1 + the number of lines in fld "testbed") of fld "testbed" >>>> end repeat >>>> put sum (Fred) into line (1 + the number of lines in fld "testbed") of fld >>>> "testbed" >>>> end mouseUp >>>> >>>> This handler *should* end up generating a 16-item string of integers which >>>> sum to exactly 100. What it *actually does* end up generating, is a 16-item >>>> string of integers whose sum may or may not fall somewhere within the range >>>> 80-120. Not sure what the hell is going on here, but I am not at all happy >>>> about it. Perhaps other people might like to try this code on their >>>> systems, and see if it works as intended for them? >>>> >>>> http://quality.livecode.com/show_bug.cgi?id=17795 >>>> >>>> >>>> "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 ]. >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Sun Jun 5 21:57:29 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 5 Jun 2016 18:57:29 -0700 Subject: Fun (was Re: Cubist's first bug report) In-Reply-To: References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <137449e2-2fd9-4b62-297a-d9a524bf318e@economy-x-talk.com> <5085C3F1-8937-4D1E-8F49-974B38EDA2F7@swcp.com> <84CE3B46-3B65-4A41-BAEC-E2302F90FF99@swcp.com> <43EFC3BE-CFAA-46B8-8820-A9AE3DB56EEE@appisle.net> <5754BB53.9090604@ahsoftware.net> Message-ID: <5754D889.1020904@ahsoftware.net> On 06/05/2016 05:00 PM, Dar Scott wrote: > I missed Mark's comment. Sorry about poking at this while it was actually understood. Actually, I thought you came up with some very interesting nuances. These should make it into the test suite. -- Mark Wieder ahsoftware at gmail.com From mwieder at ahsoftware.net Sun Jun 5 22:47:52 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 5 Jun 2016 19:47:52 -0700 Subject: Fun (was Re: Cubist's first bug report) In-Reply-To: <6E45EF09-0356-4D67-85BC-C4B687C4233C@appisle.net> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <137449e2-2fd9-4b62-297a-d9a524bf318e@economy-x-talk.com> <5085C3F1-8937-4D1E-8F49-974B38EDA2F7@swcp.com> <84CE3B46-3B65-4A41-BAEC-E2302F90FF99@swcp.com> <43EFC3BE-CFAA-46B8-8820-A9AE3DB56EEE@appisle.net> <5754BB53.9090604@ahsoftware.net> <6E45EF09-0356-4D67-85BC-C4B687C4233C@appisle.net> Message-ID: <5754E458.8020908@ahsoftware.net> On 06/05/2016 05:04 PM, Monte Goulding wrote: > I suspect not. I didn't realise one was open ;-) Turns out an additional note was needed to cover "any". http://quality.livecode.com/show_bug.cgi?id=7919 http://quality.livecode.com/show_bug.cgi?id=17795 -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Sun Jun 5 23:40:05 2016 From: paul at researchware.com (Paul Dupuis) Date: Sun, 05 Jun 2016 23:40:05 -0400 Subject: Feature Exchange any one? In-Reply-To: <0D7977AD-BE6C-4D4A-8322-7D6586C06817@appisle.net> References: <5750D005.8020902@researchware.com> <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> <57532B72.5050703@researchware.com> <0D7977AD-BE6C-4D4A-8322-7D6586C06817@appisle.net> Message-ID: <5754F095.9080504@researchware.com> On 6/5/2016 7:17 PM, Monte Goulding wrote: >> On 6 Jun 2016, at 8:29 AM, Ali Lloyd wrote: >> >> Thanks for this Paul, I have taken the liberty of tweaking it slightly more >> and submitted a pull request: >> >> https://github.com/livecode/livecode-ide/pull/1218/files >> >> Now all we need to do is convert the guide to markdown ;-) > I?ve got to admit I?ve had some projects in the past that were heavy DG users and this was a major annoyance so thank you Paul! It just goes to show that if you are frustrated by something in LiveCode it is no longer a black box where you need to just post a bug report and wait for the team to find time to fix it and the team has your back (it?s very late on a Sunday night for Ali!). > Thank you Monte and Ali. Perhaps if I find some time later this summer, I'll take a stab at the Guide itself. From admin at FlexibleLearning.com Mon Jun 6 00:34:08 2016 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Mon, 6 Jun 2016 05:34:08 +0100 Subject: Cubist's first bug report Message-ID: <000001d1bfac$abb040b0$0310c210$@FlexibleLearning.com> This double-evaluation bug has existed since MC v4.2 (the earliest engine I have immediately to hand). [snip] on mouseUp put "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16" into myVar repeat 1000 add zero to any item of myVar end repeat put myVar end mouseUp [/snip] Hugh Senior FLCo From monte at appisle.net Mon Jun 6 00:35:42 2016 From: monte at appisle.net (Monte Goulding) Date: Mon, 6 Jun 2016 14:35:42 +1000 Subject: Fun (was Re: Cubist's first bug report) In-Reply-To: <5754E458.8020908@ahsoftware.net> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <137449e2-2fd9-4b62-297a-d9a524bf318e@economy-x-talk.com> <5085C3F1-8937-4D1E-8F49-974B38EDA2F7@swcp.com> <84CE3B46-3B65-4A41-BAEC-E2302F90FF99@swcp.com> <43EFC3BE-CFAA-46B8-8820-A9AE3DB56EEE@appisle.net> <5754BB53.9090604@ahsoftware.net> <6E45EF09-0356-4D67-85BC-C4B687C4233C@appisle.net> <5754E458.8020908@ahsoftware.net> Message-ID: <8CF0E0FB-FC4A-448A-B4AC-68149092643C@appisle.net> > On 6 Jun 2016, at 12:47 PM, Mark Wieder wrote: > > Turns out an additional note was needed to cover "any". I am less concerned about the quirky behavior of any and random chunks considering it is easy to work around it than I am about the re-evaluation of the chunk expression which could be quite costly on large variables. If we can avoid that we should but it would also be nice to avoid doing two evaluations on something like this: put myFunction(item 3 of myVar) into item 3 of myVar It would be more complicated though because you would need to compare the expressions in a statement and quite possibly slow down everything else in order to speed up the one use case. Cheers Monte From dsc at swcp.com Mon Jun 6 01:15:26 2016 From: dsc at swcp.com (Dar Scott) Date: Sun, 5 Jun 2016 23:15:26 -0600 Subject: Fun (was Re: Cubist's first bug report) In-Reply-To: <8CF0E0FB-FC4A-448A-B4AC-68149092643C@appisle.net> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <137449e2-2fd9-4b62-297a-d9a524bf318e@economy-x-talk.com> <5085C3F1-8937-4D1E-8F49-974B38EDA2F7@swcp.com> <84CE3B46-3B65-4A41-BAEC-E2302F90FF99@swcp.com> <43EFC3BE-CFAA-46B8-8820-A9AE3DB56EEE@appisle.net> <5754BB53.9090604@ahsoftware.net> <6E45EF09-0356-4D67-85BC-C4B687C4233C@appisle.net> <5754E458.8020908@ahsoftware.net> <8CF0E0FB-FC4A-448A-B4AC-68149092643C@appisle.net> Message-ID: <45917FBC-D4B6-486C-9694-2330EA918122@swcp.com> The problem is more general than the use of any and random(). It applies to functions with side effects. And if the compiler is allowed to combine like-looking expressions (as in your example), it should prove that there can be no side effects. One solution would be to allow the building of user commands that behave like 'add' and can work with chunks. I don't think this is an easy problem, but I do think it is doable. Again, the problems are with side effects. Dar > On Jun 5, 2016, at 10:35 PM, Monte Goulding wrote: > > >> On 6 Jun 2016, at 12:47 PM, Mark Wieder wrote: >> >> Turns out an additional note was needed to cover "any". > > I am less concerned about the quirky behavior of any and random chunks considering it is easy to work around it than I am about the re-evaluation of the chunk expression which could be quite costly on large variables. If we can avoid that we should but it would also be nice to avoid doing two evaluations on something like this: > > put myFunction(item 3 of myVar) into item 3 of myVar > > It would be more complicated though because you would need to compare the expressions in a statement and quite possibly slow down everything else in order to speed up the one use case. > > 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 Mon Jun 6 01:33:20 2016 From: monte at appisle.net (Monte Goulding) Date: Mon, 6 Jun 2016 15:33:20 +1000 Subject: Fun (was Re: Cubist's first bug report) In-Reply-To: <45917FBC-D4B6-486C-9694-2330EA918122@swcp.com> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <137449e2-2fd9-4b62-297a-d9a524bf318e@economy-x-talk.com> <5085C3F1-8937-4D1E-8F49-974B38EDA2F7@swcp.com> <84CE3B46-3B65-4A41-BAEC-E2302F90FF99@swcp.com> <43EFC3BE-CFAA-46B8-8820-A9AE3DB56EEE@appisle.net> <5754BB53.9090604@ahsoftware.net> <6E45EF09-0356-4D67-85BC-C4B687C4233C@appisle.net> <5754E458.8020908@ahsoftware.net> <8CF0E0FB-FC4A-448A-B4AC-68149092643C@appisle.net> <45917FBC-D4B6-486C-9694-2330EA918122@swcp.com> Message-ID: > On 6 Jun 2016, at 3:15 PM, Dar Scott wrote: > > The problem is more general than the use of any and random(). It applies to functions with side effects. > > And if the compiler is allowed to combine like-looking expressions (as in your example), it should prove that there can be no side effects. > > One solution would be to allow the building of user commands that behave like 'add' and can work with chunks. I don't think this is an easy problem, but I do think it is doable. Again, the problems are with side effects. Hmm? certainly an interesting idea: put 1,2,3 into tVar myAdd 5, item 3 of tVar command myAdd pToAdd, @xAddTo put pToAdd+xAddTo into xAddTo end myAdd tVar = 1,2,8 I doubt we should get our hopes up Dar ;-) Of course if we can do that it means ruling out what I was suggesting as the chunk could mutate from one reference to the next. The case of a command mutating a single chunk is much simpler as it?s just a case of retaining the evaluation. Cheers Monte From ali.lloyd at livecode.com Mon Jun 6 03:37:49 2016 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Mon, 06 Jun 2016 07:37:49 +0000 Subject: Feature Exchange any one? In-Reply-To: <5754F095.9080504@researchware.com> References: <5750D005.8020902@researchware.com> <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> <57532B72.5050703@researchware.com> <0D7977AD-BE6C-4D4A-8322-7D6586C06817@appisle.net> <5754F095.9080504@researchware.com> Message-ID: Paul, since I have committed the datagrid docs on your behalf, qould you mind signing the contributor licence agreement please? http://livecode.com/store/account/contributor-agreement-signup On Mon, Jun 6, 2016 at 4:40 AM Paul Dupuis wrote: > On 6/5/2016 7:17 PM, Monte Goulding wrote: > >> On 6 Jun 2016, at 8:29 AM, Ali Lloyd wrote: > >> > >> Thanks for this Paul, I have taken the liberty of tweaking it slightly > more > >> and submitted a pull request: > >> > >> https://github.com/livecode/livecode-ide/pull/1218/files > >> > >> Now all we need to do is convert the guide to markdown ;-) > > I?ve got to admit I?ve had some projects in the past that were heavy DG > users and this was a major annoyance so thank you Paul! It just goes to > show that if you are frustrated by something in LiveCode it is no longer a > black box where you need to just post a bug report and wait for the team to > find time to fix it and the team has your back (it?s very late on a Sunday > night for Ali!). > > > > Thank you Monte and Ali. > > Perhaps if I find some time later this summer, I'll take a stab at the > Guide itself. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 6 05:08:58 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 6 Jun 2016 11:08:58 +0200 Subject: AW: LC 8 Random crash with QT set the filename of player on OS X In-Reply-To: <3B5923CD-B86D-4591-AC24-7CF843EFF5CC@appisle.net> References: <3B5923CD-B86D-4591-AC24-7CF843EFF5CC@appisle.net> Message-ID: <002d01d1bfd3$10481860$30d84920$@kestner.de> Hi Monte, I filed a bug report, but I could reproduce it only in my complex live stack and not in a test stack with a handy recipe. It is LC 8.0 and yes it is QT. I know about all the QT hassles and have waited for years for a solution from Edinburgh. My main product includes about 20000 videos, which I have compressed 7 years ago with a Sorenson codec, which is not supported by AVFoundation and on Windows we don't have a LC productive release with the new player yet. Even if LC 8.1 is released, I can't create just a program update for my customers, because of the non supported codec, I have to supply complete new videos (about 8GB), so I can't make a only update for my product, actually It has to be a major version upgrade, shipping again on DVD. Even if I will have some day compressed all 20000 videos with a new codec (yes I have batch compressor from Sorenson) I have to develop an upgrade strategy for all my customers. All in all it will probably take me a year from now on, until I got rid of QT. It is especially annoying for me, that I have a new product, which is shortly before shipping, which I also only could develop depending on QT, because this product depends on the same 20000 videos being installed on the users machines and there was no alternative. "> - QT can not be supported on Mac 64 bit" What does this mean exactly? I have an iMac with a Intel Core i5 processor and I thought up to now, it would run as 64 bit. I don't find any system information about 32/64 bit. But QT is running fine on this machine and I haven't had any complains about Mac users up to now. What does this mean? Where can I check, if my system is running in 32 or 64 bit? Thanks Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Monte Goulding Gesendet: Samstag, 4. Juni 2016 02:37 An: How to use LiveCode Betreff: Re: LC 8 Random crash with QT set the filename of player on OS X If there?s a reliable crash please post a bug report with the crash log and we can symbolicate it and try and resolve it. It would also be interesting to know which version of LC you are using and whether the crash happens with an AVFoundation player (using a different movie of course). Having said that what worries me the most about this conversation is the use of QuickTime. One of my tasks this sprint is to document and clarify the use of dontUseQT and also remove the IDE preference to load QT automatically as it is too dangerous to leave that preference from old versions of LiveCode active. Here?s the current status: - QT hasn?t been supported by Apple for years - QT has security warnings to uninstall from Windows - QT can not be supported on Mac 64 bit It is basically a bomb in your app waiting to go off so we should be encouraging everyone mentioning the use of QuickTime to re-encode unsupported videos as a high priority. 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 th.douez at gmail.com Mon Jun 6 05:43:52 2016 From: th.douez at gmail.com (Thierry Douez) Date: Mon, 6 Jun 2016 11:43:52 +0200 Subject: LC 8 Random crash with QT set the filename of player on OS X In-Reply-To: <002d01d1bfd3$10481860$30d84920$@kestner.de> References: <3B5923CD-B86D-4591-AC24-7CF843EFF5CC@appisle.net> <002d01d1bfd3$10481860$30d84920$@kestner.de> Message-ID: Hi Tiemo, >From Apple docs: Intel Core Solo 32 bits Intel Core Duo 32 bits Intel Core 2 Duo 64 bits Intel Quad-Core Xeon 64 bits Dual-Core Intel Xeon 64 bits Quad-Core Intel Xeon 64 bits Core i3 64 bits Core i5 64 bits Core i7 64 bits ( Derni?re modification: 18 mars 2015) "> -Where can I check, if my system is running in 32 or 64 bit? ?HTH, Thierry? ------------------------------------------------ Thierry Douez - http://sunny-tdz.com From toolbook at kestner.de Mon Jun 6 05:52:00 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 6 Jun 2016 11:52:00 +0200 Subject: AW: LC 8 Random crash with QT set the filename of player on OS X In-Reply-To: References: <3B5923CD-B86D-4591-AC24-7CF843EFF5CC@appisle.net> <002d01d1bfd3$10481860$30d84920$@kestner.de> Message-ID: <003b01d1bfd9$123d7100$36b85300$@kestner.de> Hi Thierry, yes, according to that table I have a 64 bit machine with an intel i5. But Monte pointed out that QT is not supported by 64 bit machines. But it runs on my machine? Why? And I have not had any customer, whre my program with QT would not have run? Thanks Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Thierry Douez Gesendet: Montag, 6. Juni 2016 11:44 An: How to use LiveCode Betreff: Re: LC 8 Random crash with QT set the filename of player on OS X Hi Tiemo, >From Apple docs: Intel Core Solo 32 bits Intel Core Duo 32 bits Intel Core 2 Duo 64 bits Intel Quad-Core Xeon 64 bits Dual-Core Intel Xeon 64 bits Quad-Core Intel Xeon 64 bits Core i3 64 bits Core i5 64 bits Core i7 64 bits ( Derni?re modification: 18 mars 2015) "> -Where can I check, if my system is running in 32 or 64 bit? ?HTH, Thierry? ------------------------------------------------ Thierry Douez - http://sunny-tdz.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 Mon Jun 6 05:58:02 2016 From: phil at liverpool.ac.uk (Phil Jimmieson) Date: Mon, 6 Jun 2016 10:58:02 +0100 Subject: LC 8 Random crash with QT set the filename of player on OS X In-Reply-To: <003b01d1bfd9$123d7100$36b85300$@kestner.de> References: <3B5923CD-B86D-4591-AC24-7CF843EFF5CC@appisle.net> <002d01d1bfd3$10481860$30d84920$@kestner.de> <003b01d1bfd9$123d7100$36b85300$@kestner.de> Message-ID: <038A63DD-ED60-4C9D-8BC1-C4EF5E03D9CB@liverpool.ac.uk> Hi Tiemo, if you start Apple's Activity Monitor application (it's in the utilities folder) and choose "all processes" , the information displayed includes whether or not the process is 64 bit or 32 bit (it's the column labelled "kind" - If your rows don't include that column, then right click a column heading or a blank column heading and choose "kind" from the list). On 6 Jun 2016, at 10:52, Tiemo Hollmann TB wrote: > Hi Thierry, > yes, according to that table I have a 64 bit machine with an intel i5. But Monte pointed out that QT is not supported by 64 bit machines. But it runs on my machine? Why? And I have not had any customer, whre my program with QT would not have run? > Thanks > Tiemo > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Thierry Douez > Gesendet: Montag, 6. Juni 2016 11:44 > An: How to use LiveCode > Betreff: Re: LC 8 Random crash with QT set the filename of player on OS X > > Hi Tiemo, > > > From Apple docs: > > Intel Core Solo 32 bits > Intel Core Duo 32 bits > Intel Core 2 Duo 64 bits > Intel Quad-Core Xeon 64 bits > Dual-Core Intel Xeon 64 bits > Quad-Core Intel Xeon 64 bits > Core i3 64 bits Core i5 64 bits > Core i7 64 bits > > ( Derni?re modification: 18 mars 2015) > > > "> -Where can I check, if my system is running in 32 or 64 bit? > > > ?HTH, > > Thierry? > > > > ------------------------------------------------ > Thierry Douez - http://sunny-tdz.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 Jimmieson phil at liverpool.ac.uk (UK) 0151 795 4236 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 toolbook at kestner.de Mon Jun 6 06:00:28 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 6 Jun 2016 12:00:28 +0200 Subject: LC 8 window resize not possible on W7 Message-ID: <003c01d1bfda$418adb90$c4a092b0$@kestner.de> Hello, I have a new LC 8 program, launched by a splash stack, hiding the splash stack and going to the "main program". The mainstack of the "main program" has set "resizable" to true (with a min width and min height). Resizing works fine on my W10 and W8 and OS X machine. Now I found a W7 Sony Vaio notebook, where I can't resize the window with the mouse. The cursor even doesn't change to the "resize arrows", when hovering the edge of the window. I only can "maximize" via the button in the title bar. Other program windows on the same Sony machine are resizable as normal. Any idea what is happening on that machine? Is there any other setting, which could have an influence on the resiability of a LC window? Could that be an issue of the graphic adapter or a bug of LC? Any ideas appreciated Tiemo From toolbook at kestner.de Mon Jun 6 06:06:23 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 6 Jun 2016 12:06:23 +0200 Subject: AW: LC 8 Random crash with QT set the filename of player on OS X In-Reply-To: <038A63DD-ED60-4C9D-8BC1-C4EF5E03D9CB@liverpool.ac.uk> References: <3B5923CD-B86D-4591-AC24-7CF843EFF5CC@appisle.net> <002d01d1bfd3$10481860$30d84920$@kestner.de> <003b01d1bfd9$123d7100$36b85300$@kestner.de> <038A63DD-ED60-4C9D-8BC1-C4EF5E03D9CB@liverpool.ac.uk> Message-ID: <004101d1bfdb$1503f920$3f0beb60$@kestner.de> Hi Phil, AHHH! I have a 64 bit machine with OS X 10.11, but my LC program runs under 32 bit. Interesting to know. What does that QT note not now means? Has the user a choice or option, how his programs will be executed? Are there already machines or systems which don't support the 32 bit mode anymore? Or will they be released soon? Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Phil Jimmieson Gesendet: Montag, 6. Juni 2016 11:58 An: How to use LiveCode Betreff: Re: LC 8 Random crash with QT set the filename of player on OS X Hi Tiemo, if you start Apple's Activity Monitor application (it's in the utilities folder) and choose "all processes" , the information displayed includes whether or not the process is 64 bit or 32 bit (it's the column labelled "kind" - If your rows don't include that column, then right click a column heading or a blank column heading and choose "kind" from the list). On 6 Jun 2016, at 10:52, Tiemo Hollmann TB wrote: > Hi Thierry, > yes, according to that table I have a 64 bit machine with an intel i5. But Monte pointed out that QT is not supported by 64 bit machines. But it runs on my machine? Why? And I have not had any customer, whre my program with QT would not have run? > Thanks > Tiemo > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im > Auftrag von Thierry Douez > Gesendet: Montag, 6. Juni 2016 11:44 > An: How to use LiveCode > Betreff: Re: LC 8 Random crash with QT set the filename of player on > OS X > > Hi Tiemo, > > > From Apple docs: > > Intel Core Solo 32 bits > Intel Core Duo 32 bits > Intel Core 2 Duo 64 bits > Intel Quad-Core Xeon 64 bits > Dual-Core Intel Xeon 64 bits > Quad-Core Intel Xeon 64 bits > Core i3 64 bits Core i5 64 bits > Core i7 64 bits > > ( Derni?re modification: 18 mars 2015) > > > "> -Where can I check, if my system is running in 32 or 64 bit? > > > ?HTH, > > Thierry? > > > > ------------------------------------------------ > Thierry Douez - http://sunny-tdz.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 Jimmieson phil at liverpool.ac.uk (UK) 0151 795 4236 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 t.heaford at icloud.com Mon Jun 6 06:13:30 2016 From: t.heaford at icloud.com (Terence Heaford) Date: Mon, 06 Jun 2016 11:13:30 +0100 Subject: Fun (was Re: Cubist's first bug report) In-Reply-To: References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <137449e2-2fd9-4b62-297a-d9a524bf318e@economy-x-talk.com> <5085C3F1-8937-4D1E-8F49-974B38EDA2F7@swcp.com> <84CE3B46-3B65-4A41-BAEC-E2302F90FF99@swcp.com> <43EFC3BE-CFAA-46B8-8820-A9AE3DB56EEE@appisle.net> <5754BB53.9090604@ahsoftware.net> <6E45EF09-0356-4D67-85BC-C4B687C4233C@appisle.net> <5754E458.8020908@ahsoftware.net> <8CF0E0FB-FC4A-448A-B4AC-68149092643C@appisle.net> <45917FBC-D4B6-486C-9694-2330EA918122@swcp.com> Message-ID: > On 6 Jun 2016, at 06:33, Monte Goulding wrote: > > Hmm? certainly an interesting idea: > > put 1,2,3 into tVar > myAdd 5, item 3 of tVar > > command myAdd pToAdd, @xAddTo > put pToAdd+xAddTo into xAddTo > end myAdd > > tVar = 1,2,8 > > I doubt we should get our hopes up Dar ;-) > > Of course if we can do that it means ruling out what I was suggesting as the chunk could mutate from one reference to the next. The case of a command mutating a single chunk is much simpler as it?s just a case of retaining the evaluation. Not read the context of this thread but??. on mouseUp put 1,2,3 into tVar myAdd 5, 3, tVar put tVar end mouseUp command myAdd pToAdd, chunkNum, at xAddTo put pToAdd + item chunkNum of xAddTo into item chunkNum of xAddTo end myAdd Terry From paul at researchware.com Mon Jun 6 08:18:59 2016 From: paul at researchware.com (Paul Dupuis) Date: Mon, 06 Jun 2016 08:18:59 -0400 Subject: Feature Exchange any one? In-Reply-To: References: <5750D005.8020902@researchware.com> <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> <57532B72.5050703@researchware.com> <0D7977AD-BE6C-4D4A-8322-7D6586C06817@appisle.net> <5754F095.9080504@researchware.com> Message-ID: <57556A33.3050406@researchware.com> On 6/6/2016 3:37 AM, Ali Lloyd wrote: > Paul, since I have committed the datagrid docs on your behalf, qould you > mind signing the contributor licence agreement please? > > http://livecode.com/store/account/contributor-agreement-signup Done. From iphonelagi at gmail.com Mon Jun 6 08:21:15 2016 From: iphonelagi at gmail.com (Lagi Pittas) Date: Mon, 6 Jun 2016 13:21:15 +0100 Subject: Cubist's first bug report In-Reply-To: <000001d1bfac$abb040b0$0310c210$@FlexibleLearning.com> References: <000001d1bfac$abb040b0$0310c210$@FlexibleLearning.com> Message-ID: HI It looks to me that the ANY command/function is reusing a global variable of some type or if there is an optimizing stage it is reusing the "register" whether in the bytecode interpreter instructions or the bytecode interpreter per se. The larger the number the items reach a limit which I would suggest is a register overflowing. It's a best guess as this happened to me many moons ago where I found a bug in the Pcode interpreter of Apple ][ UCSD Pascal by disassembling the 6502 code.(when I had the time and inclination and wanted to know why my quicksort routine wasn't working) Wouldn't know where to start with livecode Then again I could be totally wrong , I cant see how a chunk expression can have a double evaluation effect - and if it was adding 0 to anything would still be zero, so that's why I suggest a register is being overwritten somehow, Lagi On 6 June 2016 at 05:34, FlexibleLearning.com wrote: > This double-evaluation bug has existed since MC v4.2 (the earliest engine I > have immediately to hand). > > [snip] > on mouseUp > put "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16" into myVar > repeat 1000 > add zero to any item of myVar > end repeat > put myVar > end mouseUp > [/snip] > > Hugh Senior > FLCo > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ali.lloyd at livecode.com Mon Jun 6 08:48:14 2016 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Mon, 06 Jun 2016 12:48:14 +0000 Subject: Feature Exchange any one? In-Reply-To: <57556A33.3050406@researchware.com> References: <5750D005.8020902@researchware.com> <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> <57532B72.5050703@researchware.com> <0D7977AD-BE6C-4D4A-8322-7D6586C06817@appisle.net> <5754F095.9080504@researchware.com> <57556A33.3050406@researchware.com> Message-ID: Thanks very much! On Mon, Jun 6, 2016 at 1:18 PM Paul Dupuis wrote: > On 6/6/2016 3:37 AM, Ali Lloyd wrote: > > Paul, since I have committed the datagrid docs on your behalf, qould you > > mind signing the contributor licence agreement please? > > > > http://livecode.com/store/account/contributor-agreement-signup > > Done. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 6 11:09:44 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 6 Jun 2016 16:09:44 +0100 Subject: [ANN] This Week in LiveCode 36 Message-ID: <03f08e71-49fc-0287-606d-35a19dfb6059@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 #36 here: https://goo.gl/q3p18P 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! Are you doing something interesting with LiveCode Community Edition? Please get in touch and get it featured in "This Week in LiveCode"! Peter -- Dr Peter Brett LiveCode Technical Project Manager LiveCode on reddit: https://reddit.com/r/livecode From fraser.gordon at livecode.com Mon Jun 6 11:44:30 2016 From: fraser.gordon at livecode.com (Fraser Gordon) Date: Mon, 6 Jun 2016 16:44:30 +0100 Subject: LC 8 Random crash with QT set the filename of player on OS X In-Reply-To: <002d01d1bfd3$10481860$30d84920$@kestner.de> References: <3B5923CD-B86D-4591-AC24-7CF843EFF5CC@appisle.net> <002d01d1bfd3$10481860$30d84920$@kestner.de> Message-ID: On 6 Jun 2016, at 10:08, Tiemo Hollmann TB wrote: > I filed a bug report, but I could reproduce it only in my complex live stack and not in a test stack with a handy recipe. > It is LC 8.0 and yes it is QT. I know about all the QT hassles and have waited for years for a solution from Edinburgh. > > My main product includes about 20000 videos, which I have compressed 7 years ago with a Sorenson codec, which is not supported by AVFoundation and on Windows we don't have a LC productive release with the new player yet. > > Even if LC 8.1 is released, I can't create just a program update for my customers, because of the non supported codec, I have to supply complete new videos (about 8GB), so I can't make a only update for my product, actually It has to be a major version upgrade, shipping again on DVD. Even if I will have some day compressed all 20000 videos with a new codec (yes I have batch compressor from Sorenson) I have to develop an upgrade strategy for all my customers. All in all it will probably take me a year from now on, until I got rid of QT. > > It is especially annoying for me, that I have a new product, which is shortly before shipping, which I also only could develop depending on QT, because this product depends on the same 20000 videos being installed on the users machines and there was no alternative. > > "> - QT can not be supported on Mac 64 bit" > What does this mean exactly? I have an iMac with a Intel Core i5 processor and I thought up to now, it would run as 64 bit. I don't find any system information about 32/64 bit. But QT is running fine on this machine and I haven't had any complains about Mac users up to now. What does this mean? Where can I check, if my system is running in 32 or 64 bit? Apple have no longer support QuickTime on Windows and it is deprecated on OSX; it has seen no substantial changes since the release of AVFoundation in OSX 10.7. Additionally, it has never been available to 64-bit applications on any platform. Apple strongly encourage all apps on OSX to use AVFoundation instead of QuickTime. LiveCode pre-8.0 was a 32-bit only app and wasn?t directly affected by the deprecation of QT. However, since 8.0, we have also offered a 64-bit version, which offers performance improvements and, in future, will allow increased functionality (many interesting frameworks on OSX, like MapKit, are 64-bit only). Basically, 64-bit is now the norm on OSX and 32-bit no longer sees any new features from Apple. By default, the IDE runs in 32-bit mode (it can be switched to 64-bit mode by changing the app?s properties in Finder). Standalones can be built to include 32-bit mode, 64-bit mode or both; if you select 64-bit mode, QuickTime will not be available. The DirectShow framework that the new player on Windows uses supports user-installed codecs; if your users were to install a Sorenson decoder, they would retain the ability to play your videos without you having to re-encode. As far as I can tell, the decoder is proprietary to Sorenson and is not something LiveCode can supply; you may have access to it as part of your Sorenson compressor, however. Unfortunately, AVFoundation does not support installing additional codecs and does not support the Sorenson codec. For this reason, we maintain the ability to use QuickTime in 32-bit mode on OSX (even in 8.1) but there is nothing we can do to make it work using AVFoundation or in 64-bit mode. Apple could remove QuickTime entirely in some future OSX. If re-encoding your videos is a major undertaking, it might be better to start now in readiness for when QT is no longer available. Fraser From iphonelagi at gmail.com Mon Jun 6 11:46:57 2016 From: iphonelagi at gmail.com (Lagi Pittas) Date: Mon, 6 Jun 2016 16:46:57 +0100 Subject: Cubist's first bug report In-Reply-To: <000001d1bfac$abb040b0$0310c210$@FlexibleLearning.com> References: <000001d1bfac$abb040b0$0310c210$@FlexibleLearning.com> Message-ID: Hi Just read further back through the thread and looks like Monte has a handle on it I?ve taken a little look into it and yes it does appear the chunk is being > evaluated twice: Add left to right > - get value to add by and evaluate chunk if any > - get destination value and evaluate chunk if any > - add > - set destination value and evaluate chunk if any So I think we can both > fix this quirk and optimise things that mutate rather than replace the > destination chunk (add, subtract, multiply, divide commands? are there > others?) by setting the previously marked chunk rather than re-evaluating. > Please submit a bug report so we can look into it further and work out > whether I?m right or I just don?t know my way around the engine well enough > yet ;-) Cheers Monte Lagi On 6 June 2016 at 05:34, FlexibleLearning.com wrote: > This double-evaluation bug has existed since MC v4.2 (the earliest engine I > have immediately to hand). > > [snip] > on mouseUp > put "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16" into myVar > repeat 1000 > add zero to any item of myVar > end repeat > put myVar > end mouseUp > [/snip] > > Hugh Senior > FLCo > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mark at livecode.com Mon Jun 6 13:06:19 2016 From: mark at livecode.com (Mark Waddingham) Date: Mon, 06 Jun 2016 19:06:19 +0200 Subject: Cubist's first bug report In-Reply-To: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> Message-ID: <549bddbb31cd0bc9eaeb98bbc8576958@livecode.com> Hi Quentin, I just thought I'd sum up the situation with this bug and provide a little more explanation. On 2016-06-05 16:12, Quentin Long wrote: > ... > This handler *should* end up generating a 16-item string of integers > which sum to exactly 100. What it *actually does* end up generating, > is a 16-item string of integers whose sum may or may not fall > somewhere within the range 80-120. Not sure what the hell is going on > here, but I am not at all happy about it. Perhaps other people might > like to try this code on their systems, and see if it works as > intended for them? > > http://quality.livecode.com/show_bug.cgi?id=17795 This bug has the same underlying cause as http://quality.livecode.com/show_bug.cgi?id=7919 - although that bug was originally just reported against array subscript chunks, rather than chunks in general. This particular issues has always been present and is a side-effect of how the engine currently handles chunk expressions. If you have a command such as: add 1 to item random() of tVar Then the engine will do the equivalent of the following: get item random() of tVar add 1 to it put it into item random() of tVar This means that a chunk expression which contains expressions which cause side-effects (or use functions which do not return the same result for identical inputs - such as 'random()' / 'any') will not necessarily work how you expect. This is because those side-effect causing expressions will get evaluated twice. From 7 onwards, the original bug report case was fixed. For commands such as: add 1 to tVar[random()] The engine does something more like: put random() into tIndex1 get tVar[tIndex1] add 1 to it put it into tVar[tIndex1] This is because we changed the way that array subscripting operations work then they are used as a container (i.e. read/write) so that the 'path' to the element is only evaluated once. A side-effect of this was that we were able to implement the ability for array elements to be able to passed by-ref (to @ parameters) which they previously could not. We still need to change the way more general chunk expressions work to do a similar thing. However, as it is quite a large piece of work to do (and the behavior has always been the current way) it hasn't yet floated to the top of the list. Once it is done though (as a bonus) it should be possible to make arbitrary chunk expressions be passed by-ref like array elements can now. Beyond using 'any' in a container chunk expression (which should work appropriately as it is part of the chunk expression itself), caution should always be taken when composing commands where the sub-expressions have overlapping side-effects: variable sIndex command whatShouldThisDo? sInput add char sIndex of line addOneToIndex() of sInput to tSum end command function addOneToIndex add 1 to sIndex return sIndex end function Here, what range is used to compute the substring depends *entirely* on order of evaluation which is not entirely obvious. One possible ordering is strict left to right: Eval(sIndex) Eval(addOneToIndex()) Eval(sInput) Eval(tSum) However, the more natural ordering from the point of view of the operations being performed is actually: Eval(sInput) Eval(addOneToIndex()) Eval(sIndex) Eval(tSum) This is because it follows the pattern of the underlying operations which are actually needed: 1. Evaluate source container 2. Evaluate line range 3. Evaluate char of line 4. Evaluate number to add to This ordering will actually end up with more 'generally' efficient code also - predominantly because it ensures that the values which have been evaluated only need to live for the minimum amount of time. (As a side note, the way to see why this is a more 'natural' ordering from the point of view of code execution is to rewrite the operation in question in procedural form: add(sInput.LineOf(addOneToIndex()).CharOf(sIndex), tSum -> tSum) Here you can see that the second ordering *is* left to right, but only after transforming from chunk syntax to function syntax.) In an environment where side-effects could be completely known then there wouldn't really be a problem here - you could choose any well-defined ordering and the compiler could rearrange evaluations in cases where there are no side-effect problems to ensure efficiency. (Also, where side-effects do make things less efficient, the compiler could warn you about this). Unfortunately for us though, the dynamicity of the message path means that it is impossible for the compiler to efficiently (thus making it worthwhile!) check side-effects for cases where you have any non-private handler call as a sub-expression - thus, the ordering of evaluation is probably best made the one which generally provides the best performance and to generally avoid sub-expressions with side-effects altogether (which you can always do by storing expressions with side-effects into temporary variables and *then* parsing them to a command). Warmest Regardsm Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From dsc at swcp.com Mon Jun 6 14:20:33 2016 From: dsc at swcp.com (Dar Scott) Date: Mon, 6 Jun 2016 12:20:33 -0600 Subject: Cubist's first bug report In-Reply-To: <549bddbb31cd0bc9eaeb98bbc8576958@livecode.com> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <549bddbb31cd0bc9eaeb98bbc8576958@livecode.com> Message-ID: <95E0E0FD-9BBF-440C-B945-6434B0B91168@swcp.com> > On Jun 6, 2016, at 11:06 AM, Mark Waddingham wrote: > > This is because we changed the way that array subscripting operations work then they are used as a container (i.e. read/write) so that the 'path' to the element is only evaluated once. A side-effect of this was that we were able to implement the ability for array elements to be able to passed by-ref (to @ parameters) which they previously could not. Yay! From dsc at swcp.com Mon Jun 6 14:28:57 2016 From: dsc at swcp.com (Dar Scott) Date: Mon, 6 Jun 2016 12:28:57 -0600 Subject: Cubist's first bug report In-Reply-To: <549bddbb31cd0bc9eaeb98bbc8576958@livecode.com> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <549bddbb31cd0bc9eaeb98bbc8576958@livecode.com> Message-ID: <9B277602-8F2F-4921-918D-590454F032C1@swcp.com> > On Jun 6, 2016, at 11:06 AM, Mark Waddingham wrote: > > variable sIndex > > command whatShouldThisDo? sInput > add char sIndex of line addOneToIndex() of sInput to tSum > end command > > function addOneToIndex > add 1 to sIndex > return sIndex > end function My eyes see sIndex and addOneToIndex() as two different expressions and thus see the potential for an order-of-evaluation problem. My eyes don't see that in using add on a chunk determined by a function. So, the latter is much more of a concern for me. From dsc at swcp.com Mon Jun 6 15:02:22 2016 From: dsc at swcp.com (dsc at swcp.com) Date: Mon, 6 Jun 2016 13:02:22 -0600 Subject: Element as @ parameter (was Re: Cubist's first bug report) In-Reply-To: <95E0E0FD-9BBF-440C-B945-6434B0B91168@swcp.com> References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <549bddbb31cd0bc9eaeb98bbc8576958@livecode.com> <95E0E0FD-9BBF-440C-B945-6434B0B91168@swcp.com> Message-ID: <35EE276B-F578-4F35-9844-418C3A70C23B@swcp.com> I tried to make LiveCode crash fiddling with side-effects using this. So far, I have not been able to. As most of us have come to realize; there are some very smart people in Scotland. This is a very handy feature. I usually use a functional style (using lots of simple, pure functions) but sometimes I want to maintain mutable data. This is very handy. I can have an array of queues! I am a little embarrassed that I didn't notice when this came out. Dar darzLab > On Jun 6, 2016, at 12:20 PM, Dar Scott wrote: > > >> On Jun 6, 2016, at 11:06 AM, Mark Waddingham wrote: >> >> This is because we changed the way that array subscripting operations work then they are used as a container (i.e. read/write) so that the 'path' to the element is only evaluated once. A side-effect of this was that we were able to implement the ability for array elements to be able to passed by-ref (to @ parameters) which they previously could not. > > Yay! > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jim at omnia.on-rev.com Mon Jun 6 15:09:34 2016 From: jim at omnia.on-rev.com (jim at omnia.on-rev.com) Date: Mon, 6 Jun 2016 16:09:34 -0300 Subject: Old RR user becoming new LC user... Message-ID: <0E3DE973-48D8-4E2D-A04F-5AB9B1765591@omnia.on-rev.com> Using the community build 8.1.0. Going through the initial video building a BMI calculator and the tutorial hung on "set the BG colour" of the round rect button and stopped... Can't get it to restart... All very interesting. Like retaking my diver certification... Think local. Act local. Honour water. Recycle waste. From scott at tactilemedia.com Mon Jun 6 15:40:55 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Mon, 06 Jun 2016 12:40:55 -0700 Subject: Card SnapShot from Negative Rect? Message-ID: Anyone know how to snapshot a rect location of a card that includes negative values? In LC 7.1.3, I have an object in a group that's scrolled out of view, resulting in the object's rect having negative values. I want to snapshot the object, but I'm unable to snapshot any part of the card outside the card's rect (where the rect contains values less than zero). I know it's possible to snapshot an offscreen stack, but can't seem to do this with an offscreen object on a card. Any option for this besides locking the screen and moving the object to a visible location? Thanks, Scott Rossi Creative Director Tactile Media, UX/UI Design From bernd.niggemann at uni-wh.de Mon Jun 6 15:42:29 2016 From: bernd.niggemann at uni-wh.de (BNig) Date: Mon, 6 Jun 2016 12:42:29 -0700 (PDT) Subject: Card SnapShot from Negative Rect? In-Reply-To: References: Message-ID: <1465242149820-4705459.post@n4.nabble.com> Hi Scott, what happens if you reference the object directly: on mouseUp export snapshot from field 1 of group 1 to tImg as png set the text of image 1 to tImg put the rect of field 1 of group 1 end mouseUp or on mouseUp import snapshot from field 1 of group 1 put the rect of field 1 of group 1 end mouseUp the rect of field 1 being 327,-125,577,-69 both work for me in LC 7.1.4. Both retain transparency. Kind regards Bernd Scott Rossi wrote > Anyone know how to snapshot a rect location of a card that includes > negative values? > > In LC 7.1.3, I have an object in a group that's scrolled out of view, > resulting in the object's rect having negative values. I want to snapshot > the object, but I'm unable to snapshot any part of the card outside the > card's rect (where the rect contains values less than zero). I know it's > possible to snapshot an offscreen stack, but can't seem to do this with an > offscreen object on a card. > > Any option for this besides locking the screen and moving the object to a > visible location? > > Thanks, > > Scott Rossi -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Card-SnapShot-from-Negative-Rect-tp4705458p4705459.html Sent from the Revolution - User mailing list archive at Nabble.com. From prothero at earthednet.org Mon Jun 6 16:35:25 2016 From: prothero at earthednet.org (Earthednet-wp) Date: Mon, 6 Jun 2016 13:35:25 -0700 Subject: Card SnapShot from Negative Rect? In-Reply-To: <1465242149820-4705459.post@n4.nabble.com> References: <1465242149820-4705459.post@n4.nabble.com> Message-ID: <391D2B1B-88C2-4892-B82E-CF0F8322CB99@earthednet.org> Scott, The important thing to recognize is that if you specify the rect in the snapshot command, you are essentially getting the data from the screenshot, but if you take a snapshot from a group, you get the data before it goes to the screen, where it exists in memory. I had a situation where a user was getting an extremely pixelated image from a screen snapshot. Putting the desired region on a group and using the syntax BNig suggests eliminates the possibility of this happening. Best, Bill William Prothero http://es.earthednet.org > On Jun 6, 2016, at 12:42 PM, BNig wrote: > > Hi Scott, > > what happens if you reference the object directly: > > on mouseUp > export snapshot from field 1 of group 1 to tImg as png > set the text of image 1 to tImg > put the rect of field 1 of group 1 > end mouseUp > > or > > on mouseUp > import snapshot from field 1 of group 1 > put the rect of field 1 of group 1 > end mouseUp > > the rect of field 1 being 327,-125,577,-69 > > both work for me in LC 7.1.4. Both retain transparency. > > Kind regards > Bernd > > > Scott Rossi wrote >> Anyone know how to snapshot a rect location of a card that includes >> negative values? >> >> In LC 7.1.3, I have an object in a group that's scrolled out of view, >> resulting in the object's rect having negative values. I want to snapshot >> the object, but I'm unable to snapshot any part of the card outside the >> card's rect (where the rect contains values less than zero). I know it's >> possible to snapshot an offscreen stack, but can't seem to do this with an >> offscreen object on a card. >> >> Any option for this besides locking the screen and moving the object to a >> visible location? >> >> Thanks, >> >> Scott Rossi > > > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Card-SnapShot-from-Negative-Rect-tp4705458p4705459.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 scott at tactilemedia.com Mon Jun 6 16:52:33 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Mon, 06 Jun 2016 13:52:33 -0700 Subject: Card SnapShot from Negative Rect? In-Reply-To: <1465242149820-4705459.post@n4.nabble.com> References: <1465242149820-4705459.post@n4.nabble.com> Message-ID: Thanks for the idea Bernd. I'm trying to snapshot the card because I want to capture multiple objects/groups that are present in a designated rect, along with the card background pattern (where theRect includes negative values). export snapshot from rect theRect of this cd at size 120,120 to img "map" I supposed I could ignore the card and temporarily group the controls to be able to snapshot from a single object, but then I have to relayer everything back to where it was originally. This is not ideal, but possible. AFAIK, it's not possible to designate multiple objects for a snapshot, is it? Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 6/6/16, 12:42 PM, "use-livecode on behalf of BNig" wrote: >Hi Scott, > >what happens if you reference the object directly: > >on mouseUp > export snapshot from field 1 of group 1 to tImg as png > set the text of image 1 to tImg > put the rect of field 1 of group 1 >end mouseUp > >or > >on mouseUp > import snapshot from field 1 of group 1 > put the rect of field 1 of group 1 >end mouseUp > >the rect of field 1 being 327,-125,577,-69 > >both work for me in LC 7.1.4. Both retain transparency. > >Kind regards >Bernd > > >Scott Rossi wrote >> Anyone know how to snapshot a rect location of a card that includes >> negative values? >> >> In LC 7.1.3, I have an object in a group that's scrolled out of view, >> resulting in the object's rect having negative values. I want to >>snapshot >> the object, but I'm unable to snapshot any part of the card outside the >> card's rect (where the rect contains values less than zero). I know >>it's >> possible to snapshot an offscreen stack, but can't seem to do this with >>an >> offscreen object on a card. >> >> Any option for this besides locking the screen and moving the object to >>a >> visible location? >> >> Thanks, >> >> Scott Rossi > > > > > >-- >View this message in context: >http://runtime-revolution.278305.n4.nabble.com/Card-SnapShot-from-Negative >-Rect-tp4705458p4705459.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 ambassador at fourthworld.com Mon Jun 6 17:02:53 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 6 Jun 2016 14:02:53 -0700 Subject: "Review: LiveCode 8 is freaking incredible" Message-ID: <5755E4FD.7090605@fourthworld.com> Bryan Lunduke is rather impressed with LiveCode 8.0: -- 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 bernd.niggemann at uni-wh.de Mon Jun 6 16:31:32 2016 From: bernd.niggemann at uni-wh.de (BNig) Date: Mon, 6 Jun 2016 13:31:32 -0700 (PDT) Subject: Card SnapShot from Negative Rect? In-Reply-To: References: <1465242149820-4705459.post@n4.nabble.com> Message-ID: <1465245092938-4705463.post@n4.nabble.com> Scott, I don't know of any way to designate multiple objects for one snapshot. Maybe instead of rearranging the objects then relayer etc. you could make multiple snapshots that you place relative to each other in a temporary (invisible) group and then snapshot the group? You could probably even use the rects of the objects for placing the images of the objects. Since for your final snapshot negative rects would not matter. Of course this is not as fast as one snapshot but saves you from rearranging. (not tested) Kind regards Bernd Scott Rossi wrote > I'm trying to snapshot the card because I want > to capture multiple objects/groups that are present in a designated rect, > along with the card background pattern (where theRect includes negative > values). > > export snapshot from rect theRect of this cd at size 120,120 to img "map" > > > I supposed I could ignore the card and temporarily group the controls to > be able to snapshot from a single object, but then I have to relayer > everything back to where it was originally. This is not ideal, but > possible. > > AFAIK, it's not possible to designate multiple objects for a snapshot, is > it? > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 6/6/16, 12:42 PM, "use-livecode on behalf of BNig" > < > use-livecode-bounces at .runrev > on behalf of > bernd.niggemann@ > > wrote: > >>Hi Scott, >> >>what happens if you reference the object directly: >> >>on mouseUp >> export snapshot from field 1 of group 1 to tImg as png >> set the text of image 1 to tImg >> put the rect of field 1 of group 1 >>end mouseUp >> >>or >> >>on mouseUp >> import snapshot from field 1 of group 1 >> put the rect of field 1 of group 1 >>end mouseUp >> >>the rect of field 1 being 327,-125,577,-69 >> >>both work for me in LC 7.1.4. Both retain transparency. >> >>Kind regards >>Bernd >> >> >>Scott Rossi wrote >>> Anyone know how to snapshot a rect location of a card that includes >>> negative values? >>> >>> In LC 7.1.3, I have an object in a group that's scrolled out of view, >>> resulting in the object's rect having negative values. I want to >>>snapshot >>> the object, but I'm unable to snapshot any part of the card outside the >>> card's rect (where the rect contains values less than zero). I know >>>it's >>> possible to snapshot an offscreen stack, but can't seem to do this with >>>an >>> offscreen object on a card. >>> >>> Any option for this besides locking the screen and moving the object to >>>a >>> visible location? >>> >>> Thanks, >>> >>> Scott Rossi >> >> >> >> >> >>-- >>View this message in context: >>http://runtime-revolution.278305.n4.nabble.com/Card-SnapShot-from-Negative >>-Rect-tp4705458p4705459.html >>Sent from the Revolution - User mailing list archive at Nabble.com. >> >>_______________________________________________ >>use-livecode mailing list >> > use-livecode at .runrev >>Please visit this url to subscribe, unsubscribe and manage your >>subscription preferences: >>http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at .runrev > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Card-SnapShot-from-Negative-Rect-tp4705458p4705463.html Sent from the Revolution - User mailing list archive at Nabble.com. From mwieder at ahsoftware.net Mon Jun 6 17:14:02 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 6 Jun 2016 21:14:02 +0000 (UTC) Subject: "Review: LiveCode 8 is freaking incredible" References: <5755E4FD.7090605@fourthworld.com> Message-ID: Richard Gaskin writes: > > Bryan Lunduke is rather impressed with LiveCode 8.0: > > > Uh-oh. Next we'll have a conference session titled "LC8 sucks" https://www.youtube.com/watch?v=WipM3SAYqK4 -- Mark Wieder ahsoftware at gmail.com From scott at tactilemedia.com Mon Jun 6 17:17:27 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Mon, 06 Jun 2016 14:17:27 -0700 Subject: Card SnapShot from Negative Rect? In-Reply-To: <1465245092938-4705463.post@n4.nabble.com> References: <1465242149820-4705459.post@n4.nabble.com> <1465245092938-4705463.post@n4.nabble.com> Message-ID: Another possible option -- thanks Bernd :-) Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 6/6/16, 1:31 PM, "use-livecode on behalf of BNig" wrote: >Scott, > >I don't know of any way to designate multiple objects for one snapshot. > >Maybe instead of rearranging the objects then relayer etc. you could make >multiple snapshots that you place relative to each other in a temporary >(invisible) group and then snapshot the group? You could probably even use >the rects of the objects for placing the images of the objects. Since for >your final snapshot negative rects would not matter. > >Of course this is not as fast as one snapshot but saves you from >rearranging. > >(not tested) > >Kind regards >Bernd > > >Scott Rossi wrote >> I'm trying to snapshot the card because I want >> to capture multiple objects/groups that are present in a designated >>rect, >> along with the card background pattern (where theRect includes negative >> values). >> >> export snapshot from rect theRect of this cd at size 120,120 to img >>"map" >> >> >> I supposed I could ignore the card and temporarily group the controls to >> be able to snapshot from a single object, but then I have to relayer >> everything back to where it was originally. This is not ideal, but >> possible. >> >> AFAIK, it's not possible to designate multiple objects for a snapshot, >>is >> it? >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> >> >> >> On 6/6/16, 12:42 PM, "use-livecode on behalf of BNig" >> < > >> use-livecode-bounces at .runrev > >> on behalf of > >> bernd.niggemann@ > >> > wrote: >> >>>Hi Scott, >>> >>>what happens if you reference the object directly: >>> >>>on mouseUp >>> export snapshot from field 1 of group 1 to tImg as png >>> set the text of image 1 to tImg >>> put the rect of field 1 of group 1 >>>end mouseUp >>> >>>or >>> >>>on mouseUp >>> import snapshot from field 1 of group 1 >>> put the rect of field 1 of group 1 >>>end mouseUp >>> >>>the rect of field 1 being 327,-125,577,-69 >>> >>>both work for me in LC 7.1.4. Both retain transparency. >>> >>>Kind regards >>>Bernd >>> >>> >>>Scott Rossi wrote >>>> Anyone know how to snapshot a rect location of a card that includes >>>> negative values? >>>> >>>> In LC 7.1.3, I have an object in a group that's scrolled out of view, >>>> resulting in the object's rect having negative values. I want to >>>>snapshot >>>> the object, but I'm unable to snapshot any part of the card outside >>>>the >>>> card's rect (where the rect contains values less than zero). I know >>>>it's >>>> possible to snapshot an offscreen stack, but can't seem to do this >>>>with >>>>an >>>> offscreen object on a card. >>>> >>>> Any option for this besides locking the screen and moving the object >>>>to >>>>a >>>> visible location? >>>> >>>> Thanks, >>>> >>>> Scott Rossi >>> >>> >>> >>> >>> >>>-- >>>View this message in context: >>>http://runtime-revolution.278305.n4.nabble.com/Card-SnapShot-from-Negati >>>ve >>>-Rect-tp4705458p4705459.html >>>Sent from the Revolution - User mailing list archive at Nabble.com. >>> >>>_______________________________________________ >>>use-livecode mailing list >>> > >> use-livecode at .runrev > >>>Please visit this url to subscribe, unsubscribe and manage your >>>subscription preferences: >>>http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> >> _______________________________________________ >> use-livecode mailing list > >> use-livecode at .runrev > >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > >-- >View this message in context: >http://runtime-revolution.278305.n4.nabble.com/Card-SnapShot-from-Negative >-Rect-tp4705458p4705463.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 mwieder at ahsoftware.net Mon Jun 6 17:32:34 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 6 Jun 2016 21:32:34 +0000 (UTC) Subject: Cubist's first bug report References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <549bddbb31cd0bc9eaeb98bbc8576958@livecode.com> Message-ID: Mark- Thanks so much for adding insight to this discussion. You raise some very interesting points here. And I realize the parser is the problem here, so I'd only add that function addOneToIndex add 1 to sIndex return sIndex end function would be an error in functional programming, since the whatShouldThisDo? and addOneToIndex functions have an unfortunate and easily-fixed side effect. variable sIndex -- no side effects here any more command setSIndexTo pNewIndex put pNewIndex into sIndex end setSIndexTo -- this is now no longer ambiguous command whatShouldThisDo? sInput -- this will work with line sIndex add char sIndex of line sIndex of sInput to tSum setSIndexTo sIndex+1 -- this will work with line sIndex + 1 setSIndexTo sIndex+1 add char sIndex of line sIndex of sInput to tSum end command From peter.brett at livecode.com Mon Jun 6 17:54:17 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 6 Jun 2016 22:54:17 +0100 Subject: Cubist's first bug report In-Reply-To: References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <549bddbb31cd0bc9eaeb98bbc8576958@livecode.com> Message-ID: On 06/06/2016 22:32, Mark Wieder wrote: > Mark- > > Thanks so much for adding insight to this discussion. You raise some > very interesting points here. > > And I realize the parser is the problem here, so I'd only add that Just to be entirely clear -- this is not a problem with the LiveCode script parser. It's working just fine. The problem lies in the way that chunk expressions are handled when the script is _running_, i.e. during execution. Peter -- Dr Peter Brett LiveCode Technical Project Manager LiveCode 2016 Conference https://livecode.com/edinburgh-2016/ From mwieder at ahsoftware.net Mon Jun 6 18:04:23 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 6 Jun 2016 22:04:23 +0000 (UTC) Subject: Cubist's first bug report References: <15520e7f973-1007-66b2@webstg-m03.mail.aol.com> <549bddbb31cd0bc9eaeb98bbc8576958@livecode.com> Message-ID: Peter TB Brett writes: > Just to be entirely clear -- this is not a problem with the LiveCode > script parser. It's working just fine. > > The problem lies in the way that chunk expressions are handled when the > script is _running_, i.e. during execution. Er... yes... sorry, that's what I really meant to say. Thanks for the correction. -- Mark Wieder ahsoftware at gmail.com From hh at hh.on-rev.com Mon Jun 6 18:11:08 2016 From: hh at hh.on-rev.com (-hh) Date: Mon, 6 Jun 2016 15:11:08 -0700 (PDT) Subject: Card SnapShot from Negative Rect? In-Reply-To: References: <1465242149820-4705459.post@n4.nabble.com> <1465245092938-4705463.post@n4.nabble.com> Message-ID: <1465251068420-4705469.post@n4.nabble.com> Yet another option could be: [1] Shift each control down and right, so that the negative coords become non-negative and enlarge also the stack size so that the rectangle fits into the stack window (and hide img X) [2] Take your snapshot from the 'shifted' rect to img X. I use 'export snapshot from rect of window windowID here and resize the image if necesary. [3] Invert the action from step 1 (and show img X) This works pretty fast. Sadly we cannot lock screen for that, so there is some 'flickering' and it is, contrary to export snapshot from a group, restricted to current screensize. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Card-SnapShot-from-Negative-Rect-tp4705458p4705469.html Sent from the Revolution - User mailing list archive at Nabble.com. From hh at hh.on-rev.com Mon Jun 6 18:50:53 2016 From: hh at hh.on-rev.com (-hh) Date: Mon, 6 Jun 2016 15:50:53 -0700 (PDT) Subject: Forcing redraw of a LC window Message-ID: <1465253453086-4705470.post@n4.nabble.com> I remember some discussions here about screen refresh and how to force the redraw of a (possibly resized) LC window. I recently found a method that works all the time for me, even for cards that are 'overloaded' in some sense. I couldn't find it mentioned until now, so I should share it. I use it mostly just before an "unlock screen": ** set backcolor of this card to the backcolor of this card ** -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Forcing-redraw-of-a-LC-window-tp4705470.html Sent from the Revolution - User mailing list archive at Nabble.com. From jiml at netrin.com Mon Jun 6 20:45:47 2016 From: jiml at netrin.com (Jim Lambert) Date: Mon, 6 Jun 2016 17:45:47 -0700 Subject: Card SnapShot from Negative Rect? In-Reply-To: References: Message-ID: <67172233-5715-4AF9-9509-65D6C7030406@netrin.com> >Scott Rossi wrote >> I'm trying to snapshot the card because I want >> to capture multiple objects/groups that are present in a designated >>rect, Import snapshot from this card then Crop the last image to somerect where somerect is your ?designated rect? will that give you what you want without grouping and ungrouping a bunch of objects? Jim Lambert From toolbook at kestner.de Tue Jun 7 02:24:13 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 7 Jun 2016 08:24:13 +0200 Subject: AW: LC 8 Random crash with QT set the filename of player on OS X In-Reply-To: References: <3B5923CD-B86D-4591-AC24-7CF843EFF5CC@appisle.net> <002d01d1bfd3$10481860$30d84920$@kestner.de> Message-ID: <002001d1c085$367bc740$a37355c0$@kestner.de> Thank you Fraser for your explanations Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Fraser Gordon Gesendet: Montag, 6. Juni 2016 17:45 An: How to use LiveCode Betreff: Re: LC 8 Random crash with QT set the filename of player on OS X On 6 Jun 2016, at 10:08, Tiemo Hollmann TB wrote: > I filed a bug report, but I could reproduce it only in my complex live stack and not in a test stack with a handy recipe. > It is LC 8.0 and yes it is QT. I know about all the QT hassles and have waited for years for a solution from Edinburgh. > > My main product includes about 20000 videos, which I have compressed 7 years ago with a Sorenson codec, which is not supported by AVFoundation and on Windows we don't have a LC productive release with the new player yet. > > Even if LC 8.1 is released, I can't create just a program update for my customers, because of the non supported codec, I have to supply complete new videos (about 8GB), so I can't make a only update for my product, actually It has to be a major version upgrade, shipping again on DVD. Even if I will have some day compressed all 20000 videos with a new codec (yes I have batch compressor from Sorenson) I have to develop an upgrade strategy for all my customers. All in all it will probably take me a year from now on, until I got rid of QT. > > It is especially annoying for me, that I have a new product, which is shortly before shipping, which I also only could develop depending on QT, because this product depends on the same 20000 videos being installed on the users machines and there was no alternative. > > "> - QT can not be supported on Mac 64 bit" > What does this mean exactly? I have an iMac with a Intel Core i5 processor and I thought up to now, it would run as 64 bit. I don't find any system information about 32/64 bit. But QT is running fine on this machine and I haven't had any complains about Mac users up to now. What does this mean? Where can I check, if my system is running in 32 or 64 bit? Apple have no longer support QuickTime on Windows and it is deprecated on OSX; it has seen no substantial changes since the release of AVFoundation in OSX 10.7. Additionally, it has never been available to 64-bit applications on any platform. Apple strongly encourage all apps on OSX to use AVFoundation instead of QuickTime. LiveCode pre-8.0 was a 32-bit only app and wasn?t directly affected by the deprecation of QT. However, since 8.0, we have also offered a 64-bit version, which offers performance improvements and, in future, will allow increased functionality (many interesting frameworks on OSX, like MapKit, are 64-bit only). Basically, 64-bit is now the norm on OSX and 32-bit no longer sees any new features from Apple. By default, the IDE runs in 32-bit mode (it can be switched to 64-bit mode by changing the app?s properties in Finder). Standalones can be built to include 32-bit mode, 64-bit mode or both; if you select 64-bit mode, QuickTime will not be available. The DirectShow framework that the new player on Windows uses supports user-installed codecs; if your users were to install a Sorenson decoder, they would retain the ability to play your videos without you having to re-encode. As far as I can tell, the decoder is proprietary to Sorenson and is not something LiveCode can supply; you may have access to it as part of your Sorenson compressor, however. Unfortunately, AVFoundation does not support installing additional codecs and does not support the Sorenson codec. For this reason, we maintain the ability to use QuickTime in 32-bit mode on OSX (even in 8.1) but there is nothing we can do to make it work using AVFoundation or in 64-bit mode. Apple could remove QuickTime entirely in some future OSX. If re-encoding your videos is a major undertaking, it might be better to start now in readiness for when QT is no longer available. Fraser _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From james at thehales.id.au Tue Jun 7 03:26:35 2016 From: james at thehales.id.au (jameshale) Date: Tue, 7 Jun 2016 00:26:35 -0700 (PDT) Subject: Feature Exchange any one? In-Reply-To: <5754F095.9080504@researchware.com> References: <5750D005.8020902@researchware.com> <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> <57532B72.5050703@researchware.com> <0D7977AD-BE6C-4D4A-8322-7D6586C06817@appisle.net> <5754F095.9080504@researchware.com> Message-ID: <1465284395275-4705473.post@n4.nabble.com> Paul Dupuis wrote > Perhaps if I find some time later this summer, I'll take a stab at the > Guide itself. OK the bug bit and I thought, why not. I have begun to convert the DG Manual to markdown. It is actually fun (I know, I need to get out more.) I have converted the first two chapters (66 out of 230 pages) and before I move on have a few questions. The first is for Ali: Can I submit a zip of the files in a bug request to pass them over too? Modifying something on GitHub is one thing,adding all this is another. Actually the second one is for Ali too: The images will all be in a folder called images (for insertion into the existing folder) but how many markdown docs should there be. A single doc would be very big. I am thinking along the lines of one doc per chapter. Thoughts? Q 3. Currently the images used are all pre LC 8. I was thinking of using these first up and once everything done and dusted (and up on Github) go through and update them to LC 8. Yes? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Feature-Exchange-any-one-tp4705390p4705473.html Sent from the Revolution - User mailing list archive at Nabble.com. From ali.lloyd at livecode.com Tue Jun 7 04:27:25 2016 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Tue, 07 Jun 2016 08:27:25 +0000 Subject: Feature Exchange any one? In-Reply-To: <1465284395275-4705473.post@n4.nabble.com> References: <5750D005.8020902@researchware.com> <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> <57532B72.5050703@researchware.com> <0D7977AD-BE6C-4D4A-8322-7D6586C06817@appisle.net> <5754F095.9080504@researchware.com> <1465284395275-4705473.post@n4.nabble.com> Message-ID: Hi James, Q1 - yes, that's fine by me, as long as you've signed the CLA http://livecode.com/store/account/contributor-agreement-signup (I'm not going to make too much of a habit of committing things on other people's behalves, but the datagrid docs are important and I really appreciate the time you and Paul have taken / are taking to help with this) :-) Q2 - we don't currently have good 'support' for combining sub-guides into one, so at the moment I'd prefer just one markdown file if that's ok. Q3 - I think that's a sensible approach, yes! On Tue, Jun 7, 2016 at 8:26 AM jameshale wrote: > Paul Dupuis wrote > > Perhaps if I find some time later this summer, I'll take a stab at the > > Guide itself. > > OK the bug bit and I thought, why not. > > I have begun to convert the DG Manual to markdown. > > It is actually fun (I know, I need to get out more.) > > I have converted the first two chapters (66 out of 230 pages) and before I > move on have a few questions. > > The first is for Ali: Can I submit a zip of the files in a bug request to > pass them over too? Modifying something on GitHub is one thing,adding all > this is another. > > Actually the second one is for Ali too: The images will all be in a folder > called images (for insertion into the existing folder) but how many > markdown > docs should there be. A single doc would be very big. I am thinking along > the lines of one doc per chapter. Thoughts? > > Q 3. Currently the images used are all pre LC 8. I was thinking of using > these first up and once everything done and dusted (and up on Github) go > through and update them to LC 8. Yes? > > > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Feature-Exchange-any-one-tp4705390p4705473.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 ali.lloyd at livecode.com Tue Jun 7 04:27:25 2016 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Tue, 07 Jun 2016 08:27:25 +0000 Subject: Feature Exchange any one? In-Reply-To: <1465284395275-4705473.post@n4.nabble.com> References: <5750D005.8020902@researchware.com> <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> <57532B72.5050703@researchware.com> <0D7977AD-BE6C-4D4A-8322-7D6586C06817@appisle.net> <5754F095.9080504@researchware.com> <1465284395275-4705473.post@n4.nabble.com> Message-ID: Hi James, Q1 - yes, that's fine by me, as long as you've signed the CLA http://livecode.com/store/account/contributor-agreement-signup (I'm not going to make too much of a habit of committing things on other people's behalves, but the datagrid docs are important and I really appreciate the time you and Paul have taken / are taking to help with this) :-) Q2 - we don't currently have good 'support' for combining sub-guides into one, so at the moment I'd prefer just one markdown file if that's ok. Q3 - I think that's a sensible approach, yes! On Tue, Jun 7, 2016 at 8:26 AM jameshale wrote: > Paul Dupuis wrote > > Perhaps if I find some time later this summer, I'll take a stab at the > > Guide itself. > > OK the bug bit and I thought, why not. > > I have begun to convert the DG Manual to markdown. > > It is actually fun (I know, I need to get out more.) > > I have converted the first two chapters (66 out of 230 pages) and before I > move on have a few questions. > > The first is for Ali: Can I submit a zip of the files in a bug request to > pass them over too? Modifying something on GitHub is one thing,adding all > this is another. > > Actually the second one is for Ali too: The images will all be in a folder > called images (for insertion into the existing folder) but how many > markdown > docs should there be. A single doc would be very big. I am thinking along > the lines of one doc per chapter. Thoughts? > > Q 3. Currently the images used are all pre LC 8. I was thinking of using > these first up and once everything done and dusted (and up on Github) go > through and update them to LC 8. Yes? > > > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Feature-Exchange-any-one-tp4705390p4705473.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 Jacques.Hausser at unil.ch Tue Jun 7 04:47:20 2016 From: Jacques.Hausser at unil.ch (Jacques Hausser) Date: Tue, 7 Jun 2016 08:47:20 +0000 Subject: How to change the color of the text in a disabled button ? Message-ID: <83FDD71A-2E62-4403-A182-B75D41FCACAD@unil.ch> I would like to, for aesthetic reasons. Is it possible (without going so far as writing a widget)? And, as we are there, what about the colors of a field?s scrollbar ? I?m not a fan of the Apple aesthetical dictatorship? Jacques From james at thehales.id.au Tue Jun 7 04:22:58 2016 From: james at thehales.id.au (jameshale) Date: Tue, 7 Jun 2016 01:22:58 -0700 (PDT) Subject: Feature Exchange any one? In-Reply-To: References: <5750D005.8020902@researchware.com> <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> <57532B72.5050703@researchware.com> <0D7977AD-BE6C-4D4A-8322-7D6586C06817@appisle.net> <5754F095.9080504@researchware.com> <1465284395275-4705473.post@n4.nabble.com> Message-ID: <1465287778291-4705476.post@n4.nabble.com> Ali Lloyd-2 wrote > Q1 - yes, that's fine by me, as long as you've signed the CLA > http://livecode.com/store/account/contributor-agreement-signup > (I'm not going to make too much of a habit of committing things on other > people's behalves, but the datagrid docs are important and I really > appreciate the time you and Paul have taken / are taking to help with > this) > :-) > > Q2 - we don't currently have good 'support' for combining sub-guides into > one, so at the moment I'd prefer just one markdown file if that's ok. > > Q3 - I think that's a sensible approach, yes! Thanks Ali, Pretty sure I signed the agreement so we are good to go. Will hopefully be back in a day or two with a QQC link. James -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Feature-Exchange-any-one-tp4705390p4705476.html Sent from the Revolution - User mailing list archive at Nabble.com. From richmondmathewson at gmail.com Tue Jun 7 05:02:42 2016 From: richmondmathewson at gmail.com (RM) Date: Tue, 7 Jun 2016 12:02:42 +0300 Subject: How to change the color of the text in a disabled button ? In-Reply-To: <83FDD71A-2E62-4403-A182-B75D41FCACAD@unil.ch> References: <83FDD71A-2E62-4403-A182-B75D41FCACAD@unil.ch> Message-ID: <57568DB2.703@gmail.com> That's all rather odd as the text in a button, regardless of what the textColor is set to goes grey as soon as it is disabled. If one groups the button and then disables the group the button text is also greyed out. If one takes a snapshot of a button and then uses the resultant image as a button that, also, won't do any good as one cannot DISABLE an image. Richmond. On 7.06.2016 11:47, Jacques Hausser wrote: > I would like to, for aesthetic reasons. Is it possible (without going so far as writing a widget)? And, as we are there, what about the colors of a field?s scrollbar ? I?m not a fan of the Apple aesthetical dictatorship? > > Jacques > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From Jacques.Hausser at unil.ch Tue Jun 7 05:13:00 2016 From: Jacques.Hausser at unil.ch (Jacques Hausser) Date: Tue, 7 Jun 2016 09:13:00 +0000 Subject: How to change the color of the text in a disabled button ? In-Reply-To: <57568DB2.703@gmail.com> References: <83FDD71A-2E62-4403-A182-B75D41FCACAD@unil.ch> <57568DB2.703@gmail.com> Message-ID: Yes, a group of two images used as icons will do the trick. But it is rather boring to do that for a zillion of buttons? not counting the different resolution for different screens. > Le 7 juin 2016 ? 11:02, RM a ?crit : > > That's all rather odd as the text in a button, regardless of what the textColor is set to goes grey > as soon as it is disabled. > > If one groups the button and then disables the group the button text is also greyed out. > > If one takes a snapshot of a button and then uses the resultant image as a button that, also, won't > do any good as one cannot DISABLE an image. > > Richmond. > > On 7.06.2016 11:47, Jacques Hausser wrote: >> I would like to, for aesthetic reasons. Is it possible (without going so far as writing a widget)? And, as we are there, what about the colors of a field?s scrollbar ? I?m not a fan of the Apple aesthetical dictatorship? >> >> Jacques >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ****************************************** Prof. Jacques Hausser Department of Ecology and Evolution Biophore / Sorge University of Lausanne CH 1015 Lausanne please use my private address: 6 route de Burtigny CH-1269 Bassins tel: ++ 41 22 366 19 40 mobile: ++ 41 79 757 05 24 E-Mail: jacques.hausser at unil.ch ******************************************* From Jacques.Hausser at unil.ch Tue Jun 7 05:37:59 2016 From: Jacques.Hausser at unil.ch (Jacques Hausser) Date: Tue, 7 Jun 2016 09:37:59 +0000 Subject: How to change the color of the text in a disabled button ? In-Reply-To: References: <83FDD71A-2E62-4403-A182-B75D41FCACAD@unil.ch> <57568DB2.703@gmail.com> Message-ID: <0426C71E-5580-40BE-827C-3937090E8424@unil.ch> I mean: A couple of images used as icons? > Le 7 juin 2016 ? 11:13, Jacques Hausser a ?crit : > > Yes, a group of two images used as icons will do the trick. But it is rather boring to do that for a zillion of buttons? not counting the different resolution for different screens. > >> Le 7 juin 2016 ? 11:02, RM a ?crit : >> >> That's all rather odd as the text in a button, regardless of what the textColor is set to goes grey >> as soon as it is disabled. >> >> If one groups the button and then disables the group the button text is also greyed out. >> >> If one takes a snapshot of a button and then uses the resultant image as a button that, also, won't >> do any good as one cannot DISABLE an image. >> >> Richmond. >> >> On 7.06.2016 11:47, Jacques Hausser wrote: >>> I would like to, for aesthetic reasons. Is it possible (without going so far as writing a widget)? And, as we are there, what about the colors of a field?s scrollbar ? I?m not a fan of the Apple aesthetical dictatorship? >>> >>> Jacques >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > ****************************************** > Prof. Jacques Hausser > Department of Ecology and Evolution > Biophore / Sorge > University of Lausanne > CH 1015 Lausanne > please use my private address: > 6 route de Burtigny > CH-1269 Bassins > tel: ++ 41 22 366 19 40 > mobile: ++ 41 79 757 05 24 > E-Mail: jacques.hausser at unil.ch > ******************************************* > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ****************************************** Prof. Jacques Hausser Department of Ecology and Evolution Biophore / Sorge University of Lausanne CH 1015 Lausanne please use my private address: 6 route de Burtigny CH-1269 Bassins tel: ++ 41 22 366 19 40 mobile: ++ 41 79 757 05 24 E-Mail: jacques.hausser at unil.ch ******************************************* From paul at researchware.com Tue Jun 7 06:52:25 2016 From: paul at researchware.com (Paul Dupuis) Date: Tue, 07 Jun 2016 06:52:25 -0400 Subject: Feature Exchange any one? In-Reply-To: <1465284395275-4705473.post@n4.nabble.com> References: <5750D005.8020902@researchware.com> <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> <57532B72.5050703@researchware.com> <0D7977AD-BE6C-4D4A-8322-7D6586C06817@appisle.net> <5754F095.9080504@researchware.com> <1465284395275-4705473.post@n4.nabble.com> Message-ID: <5756A769.8000500@researchware.com> On 6/7/2016 3:26 AM, jameshale wrote: > OK the bug bit and I thought, why not. > > I have begun to convert the DG Manual to markdown. Thank you! From panos.merakos at livecode.com Tue Jun 7 06:52:47 2016 From: panos.merakos at livecode.com (panagiotis merakos) Date: Tue, 7 Jun 2016 11:52:47 +0100 Subject: [ANN] Release 8.0.2 RC1 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 8.0.2 RC-1. Getting the Release =================== You can get the release at https://downloads.livecode.com/livecode/ or via the automatic updater. Release Contents ================ LiveCode 8.0.2 RC-1 contains more than 33 bug fixes since the LiveCode 8.0.1 STABLE release. Moreover, this release contains many documentation updates and engine fixes contributed by Charles Warwick, Dave Kilroy, Devin Asay, Trevor DeVore and Mark Smith. Thank you! The full release notes are available from: http://downloads.livecode.com/livecode/8_0_2/LiveCodeNotes-8_0_2_rc_1.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 peter.brett at livecode.com Tue Jun 7 07:05:44 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Tue, 7 Jun 2016 12:05:44 +0100 Subject: "LiveCode Infinity": lexically-scoped variables and bytecode blocks Message-ID: <04c45f58-95f6-d065-8674-522833e4f4d8@livecode.com> Hi folks, Just a quick update to let you know that work has already started on the "LiveCode Infinity" improvements to LiveCode Builder. There are two really interesting things that will be finished soon. Variables in LCB are going to become lexically scoped (https://github.com/livecode/livecode/pull/4113). This means that variables declared inside an "if" or "repeat" block won't be accessible after the end of that block. if true then variable tVar as String end if -- tVar isn't accessible here This also means that if you have a "repeat" loop, the variables that are declared inside the loop will be automatically reset on each iteration. It helps avoid bugs where temporary values created inside a loop get carried over to the next run of the loop. repeat 5 times variable tVar as optional String -- tVar is reset to "nothing" every time the loop runs end repeat If you wanted tVar to be preserved from one iteration to the next, you can simply move the declaration outside the "repeat" loop. Finally, it means that you can now "shadow" variables. For example, this will become valid LCB code: variable tX as Array repeat 5 times variable tX as Number repeat 4 times variable tX as String end repeat end repeat The second new feature is the "bytecode" block (https://github.com/livecode/livecode/pull/4097). This lets you write blocks of raw LCB bytecode in your LCB source files. At the moment there are not very many places where this is likely to be useful, but in the future when we add more bytecodes (as part of the "LiveCode Infinity" project) bytecode blocks will let us write much more of LCB in LCB. I believe that "unsafe" blocks and "unsafe" handlers will be added soon. These will be used to mark code that does risky direct memory manipulation. Peter -- Dr Peter Brett LiveCode Technical Project Manager LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ From dunbarx at aol.com Tue Jun 7 09:37:39 2016 From: dunbarx at aol.com (dunbarx at aol.com) Date: Tue, 7 Jun 2016 09:37:39 -0400 Subject: How to change the color of the text in a disabled button ? In-Reply-To: <0426C71E-5580-40BE-827C-3937090E8424@unil.ch> Message-ID: <1552b153af8-4035-5482@webprd-a39.mail.aol.com> Why not use two b buttons. The colored text one would not be opaque, and have no border. Simply overlay the two with the colored one on top visible when the other is disabled. Craig Newman -----Original Message----- From: Jacques Hausser To: How to use LiveCode Sent: Tue, Jun 7, 2016 5:39 am Subject: Re: How to change the color of the text in a disabled button ? I mean: A couple of images used as icons? > Le 7 juin 2016 ? 11:13, Jacques Hausser a ?crit : > > Yes, a group of two images used as icons will do the trick. But it is rather boring to do that for a zillion of buttons? not counting the different resolution for different screens. > >> Le 7 juin 2016 ? 11:02, RM a ?crit : >> >> That's all rather odd as the text in a button, regardless of what the textColor is set to goes grey >> as soon as it is disabled. >> >> If one groups the button and then disables the group the button text is also greyed out. >> >> If one takes a snapshot of a button and then uses the resultant image as a button that, also, won't >> do any good as one cannot DISABLE an image. >> >> Richmond. >> >> On 7.06.2016 11:47, Jacques Hausser wrote: >>> I would like to, for aesthetic reasons. Is it possible (without going so far as writing a widget)? And, as we are there, what about the colors of a field?s scrollbar ? I?m not a fan of the Apple aesthetical dictatorship? >>> >>> Jacques >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > ****************************************** > Prof. Jacques Hausser > Department of Ecology and Evolution > Biophore / Sorge > University of Lausanne > CH 1015 Lausanne > please use my private address: > 6 route de Burtigny > CH-1269 Bassins > tel: ++ 41 22 366 19 40 > mobile: ++ 41 79 757 05 24 > E-Mail: jacques.hausser at unil.ch > ******************************************* > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ****************************************** Prof. Jacques Hausser Department of Ecology and Evolution Biophore / Sorge University of Lausanne CH 1015 Lausanne please use my private address: 6 route de Burtigny CH-1269 Bassins tel: ++ 41 22 366 19 40 mobile: ++ 41 79 757 05 24 E-Mail: jacques.hausser at unil.ch ******************************************* _______________________________________________use-livecode mailing 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 paul at researchware.com Tue Jun 7 09:52:39 2016 From: paul at researchware.com (Paul Dupuis) Date: Tue, 07 Jun 2016 09:52:39 -0400 Subject: "LiveCode Infinity": lexically-scoped variables and bytecode blocks In-Reply-To: <04c45f58-95f6-d065-8674-522833e4f4d8@livecode.com> References: <04c45f58-95f6-d065-8674-522833e4f4d8@livecode.com> Message-ID: <5756D1A7.8030108@researchware.com> On 6/7/2016 7:05 AM, Peter TB Brett wrote: > The second new feature is the "bytecode" block > (https://github.com/livecode/livecode/pull/4097). This lets you write > blocks of raw LCB bytecode in your LCB source files. At the moment > there are not very many places where this is likely to be useful, but > in the future when we add more bytecodes (as part of the "LiveCode > Infinity" project) bytecode blocks will let us write much more of LCB > in LCB. > > I believe that "unsafe" blocks and "unsafe" handlers will be added > soon. These will be used to mark code that does risky direct memory > manipulation. Peter, LCS and LCB code is generally human readable (to the extent of the knowledge of the reader). Bytecode is much less readable. Is LiveCode, Ltd or the Open Source effort doung anything to screen for Widgets with malware hidden in blocks of byte code? From livfoss at mac.com Tue Jun 7 10:57:37 2016 From: livfoss at mac.com (Graham Samuel) Date: Tue, 07 Jun 2016 16:57:37 +0200 Subject: Has anyone got to the end of the BMI Calculator example? Message-ID: <5333648B-2AA8-4074-954B-DA3DF45AC45A@mac.com> I?m still trying to get a handle on LC8, and I now have LC 8.0.1 on my Mac, which AFAIK is the latest stable release. But I still can?t get the BMI Calculator example to work all the way through - the guidance has abandoned me at the first field, and the ?fast forward? arrow doesn?t do anything. Has anyone got to the end, and if so, how did they do it? I know I am very much behind compared to all you LC 8 aficionados, but I am not yet convinced that I really understand what a widget is, so I need to see a whole working example to understand how widgets have changed the LC that I have been using for so many years. Can anyone help, or maybe suggest an alternative practical learning strategy - or shall I just tinker around until the fog clears? TIA Graham From dochawk at gmail.com Tue Jun 7 11:04:14 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 7 Jun 2016 08:04:14 -0700 Subject: "LiveCode Infinity": lexically-scoped variables and bytecode blocks In-Reply-To: <04c45f58-95f6-d065-8674-522833e4f4d8@livecode.com> References: <04c45f58-95f6-d065-8674-522833e4f4d8@livecode.com> Message-ID: On Tue, Jun 7, 2016 at 4:05 AM, Peter TB Brett wrote: > Variables in LCB are going to become lexically scoped ( > https://github.com/livecode/livecode/pull/4113). This means that > variables declared inside an "if" or "repeat" block won't be accessible > after the end of that block. > To have this in livecode itself is on my top 3 list . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From peter.brett at livecode.com Tue Jun 7 11:19:01 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Tue, 7 Jun 2016 16:19:01 +0100 Subject: "LiveCode Infinity": lexically-scoped variables and bytecode blocks In-Reply-To: References: <04c45f58-95f6-d065-8674-522833e4f4d8@livecode.com> Message-ID: On 07/06/2016 16:04, Dr. Hawkins wrote: > On Tue, Jun 7, 2016 at 4:05 AM, Peter TB Brett > wrote: > >> Variables in LCB are going to become lexically scoped ( >> https://github.com/livecode/livecode/pull/4113). This means that >> variables declared inside an "if" or "repeat" block won't be accessible >> after the end of that block. >> > > To have this in livecode itself is on my top 3 list . . . Me too! Unfortunately, as I understand it we can't do this at the moment without breaking backwards compatibility. :-( Peter -- Dr Peter Brett LiveCode Technical Project Manager LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ From jim at omnia.on-rev.com Tue Jun 7 11:25:41 2016 From: jim at omnia.on-rev.com (jim at omnia.on-rev.com) Date: Tue, 7 Jun 2016 12:25:41 -0300 Subject: Has anyone got to the end of the BMI Calculator example? In-Reply-To: <5333648B-2AA8-4074-954B-DA3DF45AC45A@mac.com> References: <5333648B-2AA8-4074-954B-DA3DF45AC45A@mac.com> Message-ID: <5F6EB0CC-B0E4-4D37-999C-8FF910B33BB0@omnia.on-rev.com> Graham... I've been away from RunRev and LiveCode for quite a while and wanted to reorient myself to the new features. I didn't get to the end either... Jim On 2016-06-07, at 11:57 AM, Graham Samuel wrote: > I?m still trying to get a handle on LC8, and I now have LC 8.0.1 on my Mac, which AFAIK is the latest stable release. But I still can?t get the BMI Calculator example to work all the way through - the guidance has abandoned me at the first field, and the ?fast forward? arrow doesn?t do anything. > > Has anyone got to the end, and if so, how did they do it? I know I am very much behind compared to all you LC 8 aficionados, but I am not yet convinced that I really understand what a widget is, so I need to see a whole working example to understand how widgets have changed the LC that I have been using for so many years. > > Can anyone help, or maybe suggest an alternative practical learning strategy - or shall I just tinker around until the fog clears? > > TIA > > Graham > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From livfoss at mac.com Tue Jun 7 11:37:08 2016 From: livfoss at mac.com (Graham Samuel) Date: Tue, 07 Jun 2016 17:37:08 +0200 Subject: Has anyone got to the end of the BMI Calculator example? In-Reply-To: <5F6EB0CC-B0E4-4D37-999C-8FF910B33BB0@omnia.on-rev.com> References: <5333648B-2AA8-4074-954B-DA3DF45AC45A@mac.com> <5F6EB0CC-B0E4-4D37-999C-8FF910B33BB0@omnia.on-rev.com> Message-ID: <47BA8087-680A-49B5-8022-EEB2504EA352@mac.com> Hmm - looks like confirmation that the example (well the guidance really) is not robust. Since writing my email I did get a bit further by what amounts to a process of random clicks, but now I?ve reached ?resize and position the graphic as shown? when nothing IS shown, so stuck again? very frustrating. Graham > On 7 Jun 2016, at 17:25, jim at omnia.on-rev.com wrote: > > Graham... I've been away from RunRev and LiveCode for quite a while and wanted to reorient myself to the new features. I didn't get to the end either... Jim > > On 2016-06-07, at 11:57 AM, Graham Samuel wrote: > >> I?m still trying to get a handle on LC8, and I now have LC 8.0.1 on my Mac, which AFAIK is the latest stable release. But I still can?t get the BMI Calculator example to work all the way through - the guidance has abandoned me at the first field, and the ?fast forward? arrow doesn?t do anything. >> >> Has anyone got to the end, and if so, how did they do it? I know I am very much behind compared to all you LC 8 aficionados, but I am not yet convinced that I really understand what a widget is, so I need to see a whole working example to understand how widgets have changed the LC that I have been using for so many years. >> >> Can anyone help, or maybe suggest an alternative practical learning strategy - or shall I just tinker around until the fog clears? >> >> TIA >> >> Graham >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Tue Jun 7 11:43:55 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 7 Jun 2016 11:43:55 -0400 Subject: "LiveCode Infinity": lexically-scoped variables and bytecode blocks In-Reply-To: References: <04c45f58-95f6-d065-8674-522833e4f4d8@livecode.com> Message-ID: <005e01d1c0d3$66b27960$34176c20$@net> What about an enable "lexically-scoped variables in LCS" option check box in preferences or maybe an option in the stack so "lexically-scoped variables in LCS" is scoped by stack? The latter is probably the better option so existing library stacks won't be affected but a new main stack can have "lexically-scoped variables in LCS" enabled. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Peter TB Brett Sent: Tuesday, June 07, 2016 11:19 AM To: How to use LiveCode Subject: Re: "LiveCode Infinity": lexically-scoped variables and bytecode blocks On 07/06/2016 16:04, Dr. Hawkins wrote: > On Tue, Jun 7, 2016 at 4:05 AM, Peter TB Brett > > wrote: > >> Variables in LCB are going to become lexically scoped ( >> https://github.com/livecode/livecode/pull/4113). This means that >> variables declared inside an "if" or "repeat" block won't be >> accessible after the end of that block. >> > > To have this in livecode itself is on my top 3 list . . . Me too! Unfortunately, as I understand it we can't do this at the moment without breaking backwards compatibility. :-( Peter -- Dr Peter Brett LiveCode Technical Project Manager LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ _______________________________________________ use-livecode mailing list use-livecode at 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 Jun 7 11:45:20 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 7 Jun 2016 11:45:20 -0400 Subject: "LiveCode Infinity": lexically-scoped variables and bytecode blocks In-Reply-To: <005e01d1c0d3$66b27960$34176c20$@net> References: <04c45f58-95f6-d065-8674-522833e4f4d8@livecode.com> <005e01d1c0d3$66b27960$34176c20$@net> Message-ID: ick. Ick all the way around. More of "this me". On Tue, Jun 7, 2016 at 11:43 AM, Ralph DiMola wrote: > What about an enable "lexically-scoped variables in LCS" option check box > in > preferences or maybe an option in the stack so "lexically-scoped variables > in LCS" is scoped by stack? The latter is probably the better option so > existing library stacks won't be affected but a new main stack can have > "lexically-scoped variables in LCS" enabled. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On > Behalf > Of Peter TB Brett > Sent: Tuesday, June 07, 2016 11:19 AM > To: How to use LiveCode > Subject: Re: "LiveCode Infinity": lexically-scoped variables and bytecode > blocks > > On 07/06/2016 16:04, Dr. Hawkins wrote: > > On Tue, Jun 7, 2016 at 4:05 AM, Peter TB Brett > > > > wrote: > > > >> Variables in LCB are going to become lexically scoped ( > >> https://github.com/livecode/livecode/pull/4113). This means that > >> variables declared inside an "if" or "repeat" block won't be > >> accessible after the end of that block. > >> > > > > To have this in livecode itself is on my top 3 list . . . > > Me too! > > Unfortunately, as I understand it we can't do this at the moment without > breaking backwards compatibility. :-( > > Peter > > -- > Dr Peter Brett LiveCode Technical Project > Manager > > LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 peter.brett at livecode.com Tue Jun 7 11:51:04 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Tue, 7 Jun 2016 16:51:04 +0100 Subject: "LiveCode Infinity": lexically-scoped variables and bytecode blocks In-Reply-To: <005e01d1c0d3$66b27960$34176c20$@net> References: <04c45f58-95f6-d065-8674-522833e4f4d8@livecode.com> <005e01d1c0d3$66b27960$34176c20$@net> Message-ID: On 07/06/2016 16:43, Ralph DiMola wrote: > What about an enable "lexically-scoped variables in LCS" option check box in > preferences or maybe an option in the stack so "lexically-scoped variables > in LCS" is scoped by stack? The latter is probably the better option so > existing library stacks won't be affected but a new main stack can have > "lexically-scoped variables in LCS" enabled. Lexically-scoped variables are completely incompatible with the current execution model of LiveCode Script. If you changed it, it would be from many perspectives a different language. I believe that Mark Waddingham has a plan, at some point in the future, to change the LiveCode engine so that LCS is _also_ compiled to bytecode and run in the same VM that LCB is. Because variable scope is determined at compile time, you could then have multiple "versions" of the LCS language, which could all be run simultaneously and interact with each other without any problems. However, this would be a huge project (in fact, the project is, fundamentally, the long term "Open Language" goal). On 07/06/2016 16:45, Mike Kerner wrote: > ick. Ick all the way around. More of "this me". > Yes, I'd personally like to avoid "ick" if possible. Peter -- Dr Peter Brett LiveCode Technical Project Manager LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ From bonnmike at gmail.com Tue Jun 7 11:54:44 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 7 Jun 2016 09:54:44 -0600 Subject: Has anyone got to the end of the BMI Calculator example? In-Reply-To: <47BA8087-680A-49B5-8022-EEB2504EA352@mac.com> References: <5333648B-2AA8-4074-954B-DA3DF45AC45A@mac.com> <5F6EB0CC-B0E4-4D37-999C-8FF910B33BB0@omnia.on-rev.com> <47BA8087-680A-49B5-8022-EEB2504EA352@mac.com> Message-ID: The secret for me (which shouldn't be necessary) is to drag whatever control/palette/whatever is being referred to by the tutorial and it forces a redraw of the tutorial part itself, at which point I can get to the next step. On Tue, Jun 7, 2016 at 9:37 AM, Graham Samuel wrote: > Hmm - looks like confirmation that the example (well the guidance really) > is not robust. Since writing my email I did get a bit further by what > amounts to a process of random clicks, but now I?ve reached ?resize and > position the graphic as shown? when nothing IS shown, so stuck again? very > frustrating. > > Graham > > > On 7 Jun 2016, at 17:25, jim at omnia.on-rev.com wrote: > > > > Graham... I've been away from RunRev and LiveCode for quite a while and > wanted to reorient myself to the new features. I didn't get to the end > either... Jim > > > > On 2016-06-07, at 11:57 AM, Graham Samuel wrote: > > > >> I?m still trying to get a handle on LC8, and I now have LC 8.0.1 on my > Mac, which AFAIK is the latest stable release. But I still can?t get the > BMI Calculator example to work all the way through - the guidance has > abandoned me at the first field, and the ?fast forward? arrow doesn?t do > anything. > >> > >> Has anyone got to the end, and if so, how did they do it? I know I am > very much behind compared to all you LC 8 aficionados, but I am not yet > convinced that I really understand what a widget is, so I need to see a > whole working example to understand how widgets have changed the LC that I > have been using for so many years. > >> > >> Can anyone help, or maybe suggest an alternative practical learning > strategy - or shall I just tinker around until the fog clears? > >> > >> TIA > >> > >> Graham > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From livfoss at mac.com Tue Jun 7 12:00:18 2016 From: livfoss at mac.com (Graham Samuel) Date: Tue, 07 Jun 2016 18:00:18 +0200 Subject: Has anyone got to the end of the BMI Calculator example? In-Reply-To: References: <5333648B-2AA8-4074-954B-DA3DF45AC45A@mac.com> <5F6EB0CC-B0E4-4D37-999C-8FF910B33BB0@omnia.on-rev.com> <47BA8087-680A-49B5-8022-EEB2504EA352@mac.com> Message-ID: <5D8D8A72-DA12-4485-A6D0-C2A79E8F3168@mac.com> Thanks - doesn?t always work for me. The thing has actually got into a loop now? telling me to edit some script but not apparently letting me do it. I?m tired of this. I REALLY want to understand LC8 and my next step was to see if I could adapt an old desktop app of mine to HTML5, but right now there are too many concepts I haven?t grasped so I can?t start. Grrr. Graham > On 7 Jun 2016, at 17:54, Mike Bonner wrote: > > The secret for me (which shouldn't be necessary) is to drag whatever > control/palette/whatever is being referred to by the tutorial and it forces > a redraw of the tutorial part itself, at which point I can get to the next > step. > > On Tue, Jun 7, 2016 at 9:37 AM, Graham Samuel wrote: > >> Hmm - looks like confirmation that the example (well the guidance really) >> is not robust. Since writing my email I did get a bit further by what >> amounts to a process of random clicks, but now I?ve reached ?resize and >> position the graphic as shown? when nothing IS shown, so stuck again? very >> frustrating. >> >> Graham >> >>> On 7 Jun 2016, at 17:25, jim at omnia.on-rev.com wrote: >>> >>> Graham... I've been away from RunRev and LiveCode for quite a while and >> wanted to reorient myself to the new features. I didn't get to the end >> either... Jim >>> >>> On 2016-06-07, at 11:57 AM, Graham Samuel wrote: >>> >>>> I?m still trying to get a handle on LC8, and I now have LC 8.0.1 on my >> Mac, which AFAIK is the latest stable release. But I still can?t get the >> BMI Calculator example to work all the way through - the guidance has >> abandoned me at the first field, and the ?fast forward? arrow doesn?t do >> anything. >>>> >>>> Has anyone got to the end, and if so, how did they do it? I know I am >> very much behind compared to all you LC 8 aficionados, but I am not yet >> convinced that I really understand what a widget is, so I need to see a >> whole working example to understand how widgets have changed the LC that I >> have been using for so many years. >>>> >>>> Can anyone help, or maybe suggest an alternative practical learning >> strategy - or shall I just tinker around until the fog clears? >>>> >>>> TIA >>>> >>>> Graham >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 7 12:06:00 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 7 Jun 2016 10:06:00 -0600 Subject: Has anyone got to the end of the BMI Calculator example? In-Reply-To: <5D8D8A72-DA12-4485-A6D0-C2A79E8F3168@mac.com> References: <5333648B-2AA8-4074-954B-DA3DF45AC45A@mac.com> <5F6EB0CC-B0E4-4D37-999C-8FF910B33BB0@omnia.on-rev.com> <47BA8087-680A-49B5-8022-EEB2504EA352@mac.com> <5D8D8A72-DA12-4485-A6D0-C2A79E8F3168@mac.com> Message-ID: Hmm. It also is referring to the "contents" property which is now in a different place than it was, so it kinda horks things. (But I go to the second tab and fill in the styled text box anyway, and it lets me proceed) On Tue, Jun 7, 2016 at 10:00 AM, Graham Samuel wrote: > Thanks - doesn?t always work for me. The thing has actually got into a > loop now? telling me to edit some script but not apparently letting me do > it. I?m tired of this. I REALLY want to understand LC8 and my next step was > to see if I could adapt an old desktop app of mine to HTML5, but right now > there are too many concepts I haven?t grasped so I can?t start. Grrr. > > Graham > > > On 7 Jun 2016, at 17:54, Mike Bonner wrote: > > > > The secret for me (which shouldn't be necessary) is to drag whatever > > control/palette/whatever is being referred to by the tutorial and it > forces > > a redraw of the tutorial part itself, at which point I can get to the > next > > step. > > > > On Tue, Jun 7, 2016 at 9:37 AM, Graham Samuel wrote: > > > >> Hmm - looks like confirmation that the example (well the guidance > really) > >> is not robust. Since writing my email I did get a bit further by what > >> amounts to a process of random clicks, but now I?ve reached ?resize and > >> position the graphic as shown? when nothing IS shown, so stuck again? > very > >> frustrating. > >> > >> Graham > >> > >>> On 7 Jun 2016, at 17:25, jim at omnia.on-rev.com wrote: > >>> > >>> Graham... I've been away from RunRev and LiveCode for quite a while and > >> wanted to reorient myself to the new features. I didn't get to the end > >> either... Jim > >>> > >>> On 2016-06-07, at 11:57 AM, Graham Samuel wrote: > >>> > >>>> I?m still trying to get a handle on LC8, and I now have LC 8.0.1 on my > >> Mac, which AFAIK is the latest stable release. But I still can?t get the > >> BMI Calculator example to work all the way through - the guidance has > >> abandoned me at the first field, and the ?fast forward? arrow doesn?t do > >> anything. > >>>> > >>>> Has anyone got to the end, and if so, how did they do it? I know I am > >> very much behind compared to all you LC 8 aficionados, but I am not yet > >> convinced that I really understand what a widget is, so I need to see a > >> whole working example to understand how widgets have changed the LC > that I > >> have been using for so many years. > >>>> > >>>> Can anyone help, or maybe suggest an alternative practical learning > >> strategy - or shall I just tinker around until the fog clears? > >>>> > >>>> TIA > >>>> > >>>> Graham > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode at lists.runrev.com > >>>> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 7 12:07:25 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Tue, 7 Jun 2016 17:07:25 +0100 Subject: Has anyone got to the end of the BMI Calculator example? In-Reply-To: References: <5333648B-2AA8-4074-954B-DA3DF45AC45A@mac.com> <5F6EB0CC-B0E4-4D37-999C-8FF910B33BB0@omnia.on-rev.com> <47BA8087-680A-49B5-8022-EEB2504EA352@mac.com> <5D8D8A72-DA12-4485-A6D0-C2A79E8F3168@mac.com> Message-ID: <659333ac-d92b-7387-e92d-2d3a2bed6409@livecode.com> On 07/06/2016 17:06, Mike Bonner wrote: > Hmm. It also is referring to the "contents" property which is now in a > different place than it was, so it kinda horks things. (But I go to the > second tab and fill in the styled text box anyway, and it lets me proceed) Can you file a bug report please? Peter -- Dr Peter Brett LiveCode Technical Project Manager LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ From ali.lloyd at livecode.com Tue Jun 7 12:07:53 2016 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Tue, 07 Jun 2016 16:07:53 +0000 Subject: Has anyone got to the end of the BMI Calculator example? In-Reply-To: <47BA8087-680A-49B5-8022-EEB2504EA352@mac.com> References: <5333648B-2AA8-4074-954B-DA3DF45AC45A@mac.com> <5F6EB0CC-B0E4-4D37-999C-8FF910B33BB0@omnia.on-rev.com> <47BA8087-680A-49B5-8022-EEB2504EA352@mac.com> Message-ID: If you are having issues with the tutorial it would help a lot if you could say: 1) What platform you're on 2) What stage of the tutorial you got to before it got stuck 3) How you're stuck specifically - Does the instruction window not appear at all? - Is the instruction window hidden behind another window (probably a palette)? - Is the *target* of the required action missing (eg no tools palette to drag an object from, no property inspector to change the property, no dotted-line guide to show where to place an object, no object to click/place/select)? - Is the instruction satisfied (as far as you can tell) but the tutorial has not moved on to the next step? Thanks, Ali On Tue, Jun 7, 2016 at 4:37 PM Graham Samuel wrote: > Hmm - looks like confirmation that the example (well the guidance really) > is not robust. Since writing my email I did get a bit further by what > amounts to a process of random clicks, but now I?ve reached ?resize and > position the graphic as shown? when nothing IS shown, so stuck again? very > frustrating. > > Graham > > > On 7 Jun 2016, at 17:25, jim at omnia.on-rev.com wrote: > > > > Graham... I've been away from RunRev and LiveCode for quite a while and > wanted to reorient myself to the new features. I didn't get to the end > either... Jim > > > > On 2016-06-07, at 11:57 AM, Graham Samuel wrote: > > > >> I?m still trying to get a handle on LC8, and I now have LC 8.0.1 on my > Mac, which AFAIK is the latest stable release. But I still can?t get the > BMI Calculator example to work all the way through - the guidance has > abandoned me at the first field, and the ?fast forward? arrow doesn?t do > anything. > >> > >> Has anyone got to the end, and if so, how did they do it? I know I am > very much behind compared to all you LC 8 aficionados, but I am not yet > convinced that I really understand what a widget is, so I need to see a > whole working example to understand how widgets have changed the LC that I > have been using for so many years. > >> > >> Can anyone help, or maybe suggest an alternative practical learning > strategy - or shall I just tinker around until the fog clears? > >> > >> TIA > >> > >> Graham > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Tue Jun 7 12:10:08 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 7 Jun 2016 10:10:08 -0600 Subject: Has anyone got to the end of the BMI Calculator example? In-Reply-To: <659333ac-d92b-7387-e92d-2d3a2bed6409@livecode.com> References: <5333648B-2AA8-4074-954B-DA3DF45AC45A@mac.com> <5F6EB0CC-B0E4-4D37-999C-8FF910B33BB0@omnia.on-rev.com> <47BA8087-680A-49B5-8022-EEB2504EA352@mac.com> <5D8D8A72-DA12-4485-A6D0-C2A79E8F3168@mac.com> <659333ac-d92b-7387-e92d-2d3a2bed6409@livecode.com> Message-ID: Yep. Should I assume add a report for each type of problem rather than a list of issues in 1, correct? On Tue, Jun 7, 2016 at 10:07 AM, Peter TB Brett wrote: > On 07/06/2016 17:06, Mike Bonner wrote: > >> Hmm. It also is referring to the "contents" property which is now in a >> different place than it was, so it kinda horks things. (But I go to the >> second tab and fill in the styled text box anyway, and it lets me proceed) >> > > Can you file a bug report please? > > Peter > > -- > Dr Peter Brett > LiveCode Technical Project Manager > > LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 7 12:12:46 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Tue, 7 Jun 2016 17:12:46 +0100 Subject: Has anyone got to the end of the BMI Calculator example? In-Reply-To: References: <5333648B-2AA8-4074-954B-DA3DF45AC45A@mac.com> <5F6EB0CC-B0E4-4D37-999C-8FF910B33BB0@omnia.on-rev.com> <47BA8087-680A-49B5-8022-EEB2504EA352@mac.com> <5D8D8A72-DA12-4485-A6D0-C2A79E8F3168@mac.com> <659333ac-d92b-7387-e92d-2d3a2bed6409@livecode.com> Message-ID: <3b5cb4eb-7e68-2cd3-180c-c25be97ac027@livecode.com> On 07/06/2016 17:10, Mike Bonner wrote: > Yep. Should I assume add a report for each type of problem rather than a > list of issues in 1, correct? Hi Mike, Since, as far as we know, these are all directly related to the same feature and can likely be fixed together, please just file a single bug report (and someone will split it up if necessary). Peter -- Dr Peter Brett LiveCode Technical Project Manager LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ From bonnmike at gmail.com Tue Jun 7 12:16:35 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 7 Jun 2016 10:16:35 -0600 Subject: Has anyone got to the end of the BMI Calculator example? In-Reply-To: <3b5cb4eb-7e68-2cd3-180c-c25be97ac027@livecode.com> References: <5333648B-2AA8-4074-954B-DA3DF45AC45A@mac.com> <5F6EB0CC-B0E4-4D37-999C-8FF910B33BB0@omnia.on-rev.com> <47BA8087-680A-49B5-8022-EEB2504EA352@mac.com> <5D8D8A72-DA12-4485-A6D0-C2A79E8F3168@mac.com> <659333ac-d92b-7387-e92d-2d3a2bed6409@livecode.com> <3b5cb4eb-7e68-2cd3-180c-c25be97ac027@livecode.com> Message-ID: ok thanks. On Tue, Jun 7, 2016 at 10:12 AM, Peter TB Brett wrote: > On 07/06/2016 17:10, Mike Bonner wrote: > >> Yep. Should I assume add a report for each type of problem rather than a >> list of issues in 1, correct? >> > > Hi Mike, > > Since, as far as we know, these are all directly related to the same > feature and can likely be fixed together, please just file a single bug > report (and someone will split it up if necessary). > > Peter > > -- > Dr Peter Brett > LiveCode Technical Project Manager > > LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 7 12:51:39 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 7 Jun 2016 10:51:39 -0600 Subject: Has anyone got to the end of the BMI Calculator example? In-Reply-To: References: <5333648B-2AA8-4074-954B-DA3DF45AC45A@mac.com> <5F6EB0CC-B0E4-4D37-999C-8FF910B33BB0@omnia.on-rev.com> <47BA8087-680A-49B5-8022-EEB2504EA352@mac.com> <5D8D8A72-DA12-4485-A6D0-C2A79E8F3168@mac.com> <659333ac-d92b-7387-e92d-2d3a2bed6409@livecode.com> <3b5cb4eb-7e68-2cd3-180c-c25be97ac027@livecode.com> Message-ID: http://quality.livecode.com/show_bug.cgi?id=17812 On Tue, Jun 7, 2016 at 10:16 AM, Mike Bonner wrote: > ok thanks. > > On Tue, Jun 7, 2016 at 10:12 AM, Peter TB Brett > wrote: > >> On 07/06/2016 17:10, Mike Bonner wrote: >> >>> Yep. Should I assume add a report for each type of problem rather than a >>> list of issues in 1, correct? >>> >> >> Hi Mike, >> >> Since, as far as we know, these are all directly related to the same >> feature and can likely be fixed together, please just file a single bug >> report (and someone will split it up if necessary). >> >> Peter >> >> -- >> Dr Peter Brett >> LiveCode Technical Project Manager >> >> LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From bodine at bodinetraininggames.com Tue Jun 7 12:26:25 2016 From: bodine at bodinetraininggames.com (tbodine) Date: Tue, 7 Jun 2016 09:26:25 -0700 (PDT) Subject: Forcing redraw of a LC window In-Reply-To: <1465253453086-4705470.post@n4.nabble.com> References: <1465253453086-4705470.post@n4.nabble.com> Message-ID: <1465316785342-4705502.post@n4.nabble.com> Thanks for that! -- Tom Bodine [-hh] wrote > ...how to force the redraw of a (possibly resized) LC window. > > I use it mostly just before an "unlock screen": > ** set backcolor of this card to the backcolor of this card ** -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Forcing-redraw-of-a-LC-window-tp4705470p4705502.html Sent from the Revolution - User mailing list archive at Nabble.com. From gbojsza at gmail.com Tue Jun 7 13:18:22 2016 From: gbojsza at gmail.com (Glen Bojsza) Date: Tue, 7 Jun 2016 13:18:22 -0400 Subject: Looking for suggestions on how to approach this... Message-ID: Hello, I am looking for a way to cycle through a large list of urls and capture the home page and the about page (if it exists...some sites don't have one) using LC 8. My desired output would be a single pdf file per url. Is LC 8 a good solution since I will need to do this on a regular basis and each list may become a couple of thousand urls? Can revBrowserPrint be used to output a pdf directly? The ideal solution would be to feed a list of urls and the app would start working on producing pdfs (using the url excluding the domain as the name for the pdf). Any suggestions on this would be great. thanks, Glen From dochawk at gmail.com Tue Jun 7 13:27:26 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 7 Jun 2016 10:27:26 -0700 Subject: "LiveCode Infinity": lexically-scoped variables and bytecode blocks In-Reply-To: References: <04c45f58-95f6-d065-8674-522833e4f4d8@livecode.com> <005e01d1c0d3$66b27960$34176c20$@net> Message-ID: On Tue, Jun 7, 2016 at 8:51 AM, Peter TB Brett wrote: > Lexically-scoped variables are completely incompatible with the current > execution model of LiveCode Script. If you changed it, it would be from > many perspectives a different language. > So are things such as strict compilation, case dependency, and the like (which I think should be defaults, but . . .). I do see lexical scope, named control structures, and the availability of strong typing as absolutely critical for the longterm (even to the level of being a a go/nogo issue). -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From livfoss at mac.com Tue Jun 7 13:32:14 2016 From: livfoss at mac.com (Graham Samuel) Date: Tue, 07 Jun 2016 19:32:14 +0200 Subject: Has anyone got to the end of the BMI Calculator example? In-Reply-To: References: <5333648B-2AA8-4074-954B-DA3DF45AC45A@mac.com> <5F6EB0CC-B0E4-4D37-999C-8FF910B33BB0@omnia.on-rev.com> <47BA8087-680A-49B5-8022-EEB2504EA352@mac.com> <5D8D8A72-DA12-4485-A6D0-C2A79E8F3168@mac.com> <659333ac-d92b-7387-e92d-2d3a2bed6409@livecode.com> <3b5cb4eb-7e68-2cd3-180c-c25be97ac027@livecode.com> Message-ID: <2B808060-AF59-4303-A904-3921B07E4E94@mac.com> Well done Mike for getting your report in so quickly. I intend to add to it with a narrative of what I saw (on an iMac with Yosemite 10.10.5 running LC 8.0.1). I hope that Peter is right and that it?s all one problem, although there are other niggles than the guidance system - for example, when one is told to set colours, it would not be clear to a newbie that these are RGB colours, since the colour palette offers several alternatives and RGB probably doesn?t come up first? hoping to get on to my narrative soon. Graham > On 7 Jun 2016, at 18:51, Mike Bonner wrote: > > http://quality.livecode.com/show_bug.cgi?id=17812 > > On Tue, Jun 7, 2016 at 10:16 AM, Mike Bonner wrote: > >> ok thanks. >> >> On Tue, Jun 7, 2016 at 10:12 AM, Peter TB Brett >> wrote: >> >>> On 07/06/2016 17:10, Mike Bonner wrote: >>> >>>> Yep. Should I assume add a report for each type of problem rather than a >>>> list of issues in 1, correct? >>>> >>> >>> Hi Mike, >>> >>> Since, as far as we know, these are all directly related to the same >>> feature and can likely be fixed together, please just file a single bug >>> report (and someone will split it up if necessary). >>> >>> Peter >>> >>> -- >>> Dr Peter Brett >>> LiveCode Technical Project Manager >>> >>> LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Tue Jun 7 14:02:05 2016 From: dsc at swcp.com (Dar Scott) Date: Tue, 7 Jun 2016 12:02:05 -0600 Subject: "LiveCode Infinity": lexically-scoped variables and bytecode blocks In-Reply-To: References: <04c45f58-95f6-d065-8674-522833e4f4d8@livecode.com> <005e01d1c0d3$66b27960$34176c20$@net> Message-ID: In LiveCode, I tend to use small private functions. In a twisted sense, a handler that calls those does have block-based lexically scoped variables, the block is just pushed into a separate function. On those occasions that I do write long handlers (for whatever excuse), I sometimes pretend that variables are block scoped for documentation reasons. I declare the variables right before the section they are used in. This might be confusing for others reading my code, though, so I minimize this. I also use 'it' as though it has block scope and try not to let its life go beyond the chunks of a handler as my brain sees them. Clear use of 'it' often avoids the need of a variable. (Though a variable with a good name helps with documentation at times.) So, for me, other improvements in compiling without language changes are more important. Dar > On Jun 7, 2016, at 11:27 AM, Dr. Hawkins wrote: > > On Tue, Jun 7, 2016 at 8:51 AM, Peter TB Brett > wrote: > >> Lexically-scoped variables are completely incompatible with the current >> execution model of LiveCode Script. If you changed it, it would be from >> many perspectives a different language. >> > > So are things such as strict compilation, case dependency, and the like > (which I think should be defaults, but . . .). > > I do see lexical scope, named control structures, and the availability of > strong typing as absolutely critical for the longterm (even to the level of > being a a go/nogo issue). > > > -- > 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 scott at tactilemedia.com Tue Jun 7 14:06:46 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 07 Jun 2016 11:06:46 -0700 Subject: Card SnapShot from Negative Rect? In-Reply-To: <67172233-5715-4AF9-9509-65D6C7030406@netrin.com> References: <67172233-5715-4AF9-9509-65D6C7030406@netrin.com> Message-ID: Hi Jim: LC is unable to capture from the card when the target rect contains negative values. But apparently capturing from an object works. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 6/6/16, 5:45 PM, "use-livecode on behalf of Jim Lambert" wrote: >>Scott Rossi wrote >>> I'm trying to snapshot the card because I want >>> to capture multiple objects/groups that are present in a designated >>>rect, > >Import snapshot from this card >then >Crop the last image to somerect > >where somerect is your ?designated rect? > >will that give you what you want without grouping and ungrouping a bunch >of objects? > >Jim Lambert >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Tue Jun 7 14:11:16 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 7 Jun 2016 12:11:16 -0600 Subject: Has anyone got to the end of the BMI Calculator example? In-Reply-To: <2B808060-AF59-4303-A904-3921B07E4E94@mac.com> References: <5333648B-2AA8-4074-954B-DA3DF45AC45A@mac.com> <5F6EB0CC-B0E4-4D37-999C-8FF910B33BB0@omnia.on-rev.com> <47BA8087-680A-49B5-8022-EEB2504EA352@mac.com> <5D8D8A72-DA12-4485-A6D0-C2A79E8F3168@mac.com> <659333ac-d92b-7387-e92d-2d3a2bed6409@livecode.com> <3b5cb4eb-7e68-2cd3-180c-c25be97ac027@livecode.com> <2B808060-AF59-4303-A904-3921B07E4E94@mac.com> Message-ID: Yeah, I forgot that. You actually have to go into custom colors to set the rgb values, but it would be clear as mud to someone who has never done it before. Definitely add to it.. If the tutorial tools can be fleshed out and made easier, and more complete (hopefully with full storyboarding?) it would help encourage a multitude of creative uses. (It might even be useful in detailing "bug recipe" walkthroughs, as well as hopefully a way to include tutorials in standalones.. I'd LOVE to include tutorials in at least one of my standalones. (Lots of turnover at the place that uses this particular application, and whlie its simple, having a tutorial walk a person through the steps would be really great) On Tue, Jun 7, 2016 at 11:32 AM, Graham Samuel wrote: > Well done Mike for getting your report in so quickly. I intend to add to > it with a narrative of what I saw (on an iMac with Yosemite 10.10.5 running > LC 8.0.1). I hope that Peter is right and that it?s all one problem, > although there are other niggles than the guidance system - for example, > when one is told to set colours, it would not be clear to a newbie that > these are RGB colours, since the colour palette offers several alternatives > and RGB probably doesn?t come up first? hoping to get on to my narrative > soon. > > Graham > > > > On 7 Jun 2016, at 18:51, Mike Bonner wrote: > > > > http://quality.livecode.com/show_bug.cgi?id=17812 > > > > On Tue, Jun 7, 2016 at 10:16 AM, Mike Bonner wrote: > > > >> ok thanks. > >> > >> On Tue, Jun 7, 2016 at 10:12 AM, Peter TB Brett < > peter.brett at livecode.com> > >> wrote: > >> > >>> On 07/06/2016 17:10, Mike Bonner wrote: > >>> > >>>> Yep. Should I assume add a report for each type of problem rather > than a > >>>> list of issues in 1, correct? > >>>> > >>> > >>> Hi Mike, > >>> > >>> Since, as far as we know, these are all directly related to the same > >>> feature and can likely be fixed together, please just file a single bug > >>> report (and someone will split it up if necessary). > >>> > >>> Peter > >>> > >>> -- > >>> Dr Peter Brett > >>> LiveCode Technical Project Manager > >>> > >>> LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >>> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >> > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 7 14:27:07 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 7 Jun 2016 14:27:07 -0400 Subject: "LiveCode Infinity": lexically-scoped variables and bytecode blocks In-Reply-To: References: <04c45f58-95f6-d065-8674-522833e4f4d8@livecode.com> <005e01d1c0d3$66b27960$34176c20$@net> Message-ID: I respectfully disagree. On Tue, Jun 7, 2016 at 1:27 PM, Dr. Hawkins wrote: > On Tue, Jun 7, 2016 at 8:51 AM, Peter TB Brett > wrote: > > > Lexically-scoped variables are completely incompatible with the current > > execution model of LiveCode Script. If you changed it, it would be from > > many perspectives a different language. > > > > So are things such as strict compilation, case dependency, and the like > (which I think should be defaults, but . . .). > > I do see lexical scope, named control structures, and the availability of > strong typing as absolutely critical for the longterm (even to the level of > being a a go/nogo issue). > > > -- > 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 > -- 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 Jun 7 15:14:10 2016 From: richmondmathewson at gmail.com (RM) Date: Tue, 7 Jun 2016 22:14:10 +0300 Subject: [ANN] Release 8.0.2 RC1 In-Reply-To: References: Message-ID: <57571D02.5030100@gmail.com> Unfortunately, trying to install LiveCodeCommunityInstaller-8_0_2_rc_1-Linux.x64 onto Xubuntu 16.04 64-bit "You Only" I got a message: "Internal error (couldn't extract payload item to file). The installer did work on the "All Users" option. Richmond. On 7.06.2016 13:52, panagiotis merakos wrote: > Dear list members, > > We are pleased to announce the release of LiveCode 8.0.2 RC-1. > > > Getting the Release > =================== > You can get the release at https://downloads.livecode.com/livecode/ or via > the automatic updater. > > > Release Contents > ================ > LiveCode 8.0.2 RC-1 contains more than 33 bug fixes since the LiveCode > 8.0.1 STABLE release. Moreover, this release contains many documentation > updates and engine fixes contributed by Charles Warwick, Dave Kilroy, Devin > Asay, Trevor DeVore and Mark Smith. Thank you! > > The full release notes are available from: > http://downloads.livecode.com/livecode/8_0_2/LiveCodeNotes-8_0_2_rc_1.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 > -- > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 7 15:26:53 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 7 Jun 2016 15:26:53 -0400 Subject: 8 project browser hacking Message-ID: Has anyone messed around in the PB in 8, yet? I found a bug and was trying to pick my way through, but I've hit a bit of a wall with the PB header widget. -- 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 Tue Jun 7 15:37:14 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 7 Jun 2016 12:37:14 -0700 Subject: "LiveCode Infinity": lexically-scoped variables and bytecode blocks In-Reply-To: References: <04c45f58-95f6-d065-8674-522833e4f4d8@livecode.com> <005e01d1c0d3$66b27960$34176c20$@net> Message-ID: On Tue, Jun 7, 2016 at 11:27 AM, Mike Kerner wrote: > I respectfully disagree. > It all depends upon what you are doing. I, by necessity, have layers of nested loops. Not being able to exit an outer loop (or, for that matter, to identify the companion beginning of a control structure, takes odd contortions for the first and several minutes at a time for the second. Strong typing, even optional strong typing, would be a speed advantage when repeatedly handling math, for example--if theVals[] will only hold integers (e.g., pennies), and I regularly sum them, it's simply faster for the code to know that they're integers instead of converting them. And when you have not alternative but 10K+ lines of script, and handlers that are unavoidably several hundred lines, being able to localize variables is a Godsend; you don't have to worry about whether you used the same obvious name elsewhere, and whether you'll get side affect. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From MikeKerner at roadrunner.com Tue Jun 7 16:01:18 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 7 Jun 2016 16:01:18 -0400 Subject: 8 project browser hacking In-Reply-To: References: Message-ID: never mind, Ali responded on one of the bug reports... On Tue, Jun 7, 2016 at 3:26 PM, Mike Kerner wrote: > Has anyone messed around in the PB in 8, yet? I found a bug and was > trying to pick my way through, but I've hit a bit of a wall with the PB > header widget. > > -- > 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 bonnmike at gmail.com Tue Jun 7 16:11:35 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 7 Jun 2016 14:11:35 -0600 Subject: OT: Pi tripod case Message-ID: I'm looking for a decent pi camera case with a tripod adapter on the bottom (so that pictures are correct orientation without worrying about rotating them) Since most cases are set up so that correct rotation is attained with the usb cables poking out the bottom, the case would have to use an offset adapter of some type for my wifi dongle to poke out the bottom. (cabled dongle, so there is some flexibility (no pun intended) as far as clearance goes) I have a project pretty much done (with lc server/picam on the pi being remote controlled long distance by an lc application grabbing snapshots) but having a more functional casing option will make a huge difference in the final product. A custom print with a hole to cement in the right size nut, or with a threaded hole would be fine, but chances that I'll ever own a 3d printer is slimmer than none. Plus my fabrication skills for this sort of thing aren't so good, so I guess i'm looking for an affordable pre-made, or affordable 3rd party that can print a few cases for me. Suggestions? From peter.brett at livecode.com Tue Jun 7 16:25:19 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Tue, 7 Jun 2016 21:25:19 +0100 Subject: 8 project browser hacking In-Reply-To: References: Message-ID: <9ab44e5f-22e0-4357-1849-621f393e84c1@livecode.com> On 07/06/2016 21:01, Mike Kerner wrote: > never mind, Ali responded on one of the bug reports... FWIW, http://quality.livecode.com/show_bug.cgi?id=17813#c3 Here's Ali's comment in full: > Here is the pull request: > https://github.com/livecode/livecode-ide/pull/1192 > > Essentially the problem was that the 'frame behavior', which unifies > all of the palette header and footer handling, assumes that there is > a 1-1 mapping between preference menu items and preferences. The > original implementation of PB ordering used two preferences for each > menu item (sort type and sort order for each of stack, card and > control), which meant that the frame behavior couldn't set the > checkmarks correctly. > > Hence the fix was to combine each pair of prefs into one > (pb_stackSortOrder & pb_stackSortType -> pb_stackSort), add a mini > API for setting and getting the preference to make sure it was in a > consistent form, and then changing all the places where these pref > names were used. > > Note I missed one instance, hence bug 17769, which will be fixed in > 8.0.2 rc 2 (but not 8.0.2 rc 1 and possibly not 8.1.0 dp 2). The fix > for that is here: https://github.com/livecode/livecode-ide/pull/1222 > > I also took the opportunity there to add tests for each of the > ordering types. Peter -- Dr Peter Brett LiveCode Technical Project Manager LiveCode 2016 Conference https://livecode.com/edinburgh-2016/ From monte at appisle.net Tue Jun 7 16:32:54 2016 From: monte at appisle.net (Monte Goulding) Date: Wed, 8 Jun 2016 06:32:54 +1000 Subject: "LiveCode Infinity": lexically-scoped variables and bytecode blocks In-Reply-To: References: <04c45f58-95f6-d065-8674-522833e4f4d8@livecode.com> Message-ID: What I think we could do which I personally feel would be a bug fix is if a variable is declared with an initial value then reassign it if we iterate over the local command again. For example: repeat local tIndex = 1 -- tIndex is always 1 here repeat add 1 to tIndex end repeat end repeat Sent from my iPhone > On 8 Jun 2016, at 1:19 AM, Peter TB Brett wrote: > > Unfortunately, as I understand it we can't do this at the moment without breaking backwards compatibility. :-( From panos.merakos at livecode.com Tue Jun 7 16:35:19 2016 From: panos.merakos at livecode.com (panagiotis merakos) Date: Tue, 7 Jun 2016 23:35:19 +0300 Subject: [ANN] Release 8.0.2 RC1 In-Reply-To: <57571D02.5030100@gmail.com> References: <57571D02.5030100@gmail.com> Message-ID: Hi all, @Ron: LiveCode 8.0.2-RC1 contains *only* bugfixes. It is a maintenance release, and does not include any new features. LiveCode 8.1.0 DP1 is a development preview release, and contains new features (e.g. new Windows player, updated standalone builder). Every bug that is fixed in an older version (i.e. 8.0.2 rc1/rc2) will be merged up into newer versions (8.1.0 dp1/dp2) @Richmond Could you please file a bug report? Do you see the same error when installing 8.0.1 for "You only"? Best, Panos -- On Tue, Jun 7, 2016 at 10:14 PM, RM wrote: > Unfortunately, trying to install > LiveCodeCommunityInstaller-8_0_2_rc_1-Linux.x64 onto Xubuntu 16.04 64-bit > "You Only" I got a message: "Internal error (couldn't extract payload > item to file). > > The installer did work on the "All Users" option. > > Richmond. > > > On 7.06.2016 13:52, panagiotis merakos wrote: > >> Dear list members, >> >> We are pleased to announce the release of LiveCode 8.0.2 RC-1. >> >> >> Getting the Release >> =================== >> You can get the release at https://downloads.livecode.com/livecode/ or >> via >> the automatic updater. >> >> >> Release Contents >> ================ >> LiveCode 8.0.2 RC-1 contains more than 33 bug fixes since the LiveCode >> 8.0.1 STABLE release. Moreover, this release contains many documentation >> updates and engine fixes contributed by Charles Warwick, Dave Kilroy, >> Devin >> Asay, Trevor DeVore and Mark Smith. Thank you! >> >> The full release notes are available from: >> http://downloads.livecode.com/livecode/8_0_2/LiveCodeNotes-8_0_2_rc_1.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 >> -- >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 harrison at all-auctions.com Tue Jun 7 16:36:18 2016 From: harrison at all-auctions.com (Rick Harrison) Date: Tue, 7 Jun 2016 16:36:18 -0400 Subject: OT: Pi tripod case In-Reply-To: References: Message-ID: <664B3692-F0B6-41C6-8372-B1EF551C6B32@all-auctions.com> Hi Mike, You might try: http://www.shapeways.com You can design whatever you want, and they will 3D print it for you and ship it to you! Good luck! Rick > On Jun 7, 2016, at 4:11 PM, Mike Bonner wrote: > > I'm looking for a decent pi camera case with a tripod adapter on the bottom > (so that pictures are correct orientation without worrying about rotating > them) Since most cases are set up so that correct rotation is attained > with the usb cables poking out the bottom, the case would have to use an > offset adapter of some type for my wifi dongle to poke out the bottom. > (cabled dongle, so there is some flexibility (no pun intended) as far as > clearance goes) > > I have a project pretty much done (with lc server/picam on the pi being > remote controlled long distance by an lc application grabbing snapshots) > but having a more functional casing option will make a huge difference in > the final product. A custom print with a hole to cement in the right size > nut, or with a threaded hole would be fine, but chances that I'll ever own > a 3d printer is slimmer than none. Plus my fabrication skills for this > sort of thing aren't so good, so I guess i'm looking for an affordable > pre-made, or affordable 3rd party that can print a few cases for me. > > > Suggestions? > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 7 16:37:50 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 7 Jun 2016 14:37:50 -0600 Subject: OT: Pi tripod case In-Reply-To: <664B3692-F0B6-41C6-8372-B1EF551C6B32@all-auctions.com> References: <664B3692-F0B6-41C6-8372-B1EF551C6B32@all-auctions.com> Message-ID: Thanks very much :) On Tue, Jun 7, 2016 at 2:36 PM, Rick Harrison wrote: > Hi Mike, > > You might try: > > http://www.shapeways.com > > You can design whatever you want, and they > will 3D print it for you and ship it to you! > > Good luck! > > Rick > > > > On Jun 7, 2016, at 4:11 PM, Mike Bonner wrote: > > > > I'm looking for a decent pi camera case with a tripod adapter on the > bottom > > (so that pictures are correct orientation without worrying about rotating > > them) Since most cases are set up so that correct rotation is attained > > with the usb cables poking out the bottom, the case would have to use an > > offset adapter of some type for my wifi dongle to poke out the bottom. > > (cabled dongle, so there is some flexibility (no pun intended) as far as > > clearance goes) > > > > I have a project pretty much done (with lc server/picam on the pi being > > remote controlled long distance by an lc application grabbing snapshots) > > but having a more functional casing option will make a huge difference in > > the final product. A custom print with a hole to cement in the right > size > > nut, or with a threaded hole would be fine, but chances that I'll ever > own > > a 3d printer is slimmer than none. Plus my fabrication skills for this > > sort of thing aren't so good, so I guess i'm looking for an affordable > > pre-made, or affordable 3rd party that can print a few cases for me. > > > > > > Suggestions? > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 7 16:44:00 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 7 Jun 2016 16:44:00 -0400 Subject: OT: Pi tripod case In-Reply-To: <664B3692-F0B6-41C6-8372-B1EF551C6B32@all-auctions.com> References: <664B3692-F0B6-41C6-8372-B1EF551C6B32@all-auctions.com> Message-ID: TinkerCAD is a great & free online easy peazy 3D design program. I made this in about 30 minutes (with no instructions), and printed it on my 3D printer. https://tinkercad.com/things/blam4ODyd9t ~Roger On Tue, Jun 7, 2016 at 4:36 PM, Rick Harrison wrote: > Hi Mike, > > You might try: > > http://www.shapeways.com > > You can design whatever you want, and they > will 3D print it for you and ship it to you! > > Good luck! > > Rick > > > > On Jun 7, 2016, at 4:11 PM, Mike Bonner wrote: > > > > I'm looking for a decent pi camera case with a tripod adapter on the > bottom > > (so that pictures are correct orientation without worrying about rotating > > them) Since most cases are set up so that correct rotation is attained > > with the usb cables poking out the bottom, the case would have to use an > > offset adapter of some type for my wifi dongle to poke out the bottom. > > (cabled dongle, so there is some flexibility (no pun intended) as far as > > clearance goes) > > > > I have a project pretty much done (with lc server/picam on the pi being > > remote controlled long distance by an lc application grabbing snapshots) > > but having a more functional casing option will make a huge difference in > > the final product. A custom print with a hole to cement in the right > size > > nut, or with a threaded hole would be fine, but chances that I'll ever > own > > a 3d printer is slimmer than none. Plus my fabrication skills for this > > sort of thing aren't so good, so I guess i'm looking for an affordable > > pre-made, or affordable 3rd party that can print a few cases for me. > > > > > > Suggestions? > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dsc at swcp.com Tue Jun 7 16:58:14 2016 From: dsc at swcp.com (Dar Scott) Date: Tue, 7 Jun 2016 14:58:14 -0600 Subject: "LiveCode Infinity": lexically-scoped variables and bytecode blocks In-Reply-To: References: <04c45f58-95f6-d065-8674-522833e4f4d8@livecode.com> <005e01d1c0d3$66b27960$34176c20$@net> Message-ID: <4974EFF6-BF79-44E4-A6F1-508236B64B8C@swcp.com> > On Jun 7, 2016, at 1:37 PM, Dr. Hawkins wrote: > > Not being able to exit an > outer loop (or, for that matter, to identify the companion beginning of a > control structure, takes odd contortions for the first and several minutes > at a time for the second. I like the almost self-referential nature of this sentence. Are you talking about editing? Then I agree greatly. I do get lost in structures. I would appreciate the editor helping me. I sometimes avoid deep nesting or many lines between structure boundaries by ending some error handling with a return or a throw. Mostly, I try to find some meaning for the innermost loop and break that out as a separate function, especially something I can use elsewhere. That lowers my need for block scoped variables, too. (If I know the loop won't have a lot of iterations, I break down the content of the innermost into meaningful parts, too.) So, I agree with editor help. (Assuming I grok'd this right.) Dar From bonnmike at gmail.com Tue Jun 7 17:01:25 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 7 Jun 2016 15:01:25 -0600 Subject: OT: Pi tripod case In-Reply-To: References: <664B3692-F0B6-41C6-8372-B1EF551C6B32@all-auctions.com> Message-ID: Hey, that's nifty. And reminds me that I don't have to design a whole case, I just have to design something that a current pi case can slip into that has a tripod adapter. (which is easy since its basically a hunk of something with the right size/thread nut, and a pocket to hold the pi) I think I'll still go with a 3d print but just making a receptacle that the pi will fit into with properly placed holes for cabling and tripod nut brings it back within my fabrication abilities. (Goes to get out the dollar tree foam) I could probably even do something out of metal. (I'm lucky, my dad has a metal lathe, and recently rebuilt a mill from the ground up, so if I can figure out what I want, he can help me with the fabrication) Thanks for the help, I don't know why I was so stuck on having this be an all integral case. It will actually work much better as a separate unit. (I can design in a place to mount the external wifi antenna and a shelf for the battery pack too) On Tue, Jun 7, 2016 at 2:44 PM, Roger Eller wrote: > TinkerCAD is a great & free online easy peazy 3D design program. > > I made this in about 30 minutes (with no instructions), and printed it on > my 3D printer. > > https://tinkercad.com/things/blam4ODyd9t > > ~Roger > > > On Tue, Jun 7, 2016 at 4:36 PM, Rick Harrison > wrote: > > > Hi Mike, > > > > You might try: > > > > http://www.shapeways.com > > > > You can design whatever you want, and they > > will 3D print it for you and ship it to you! > > > > Good luck! > > > > Rick > > > > > > > On Jun 7, 2016, at 4:11 PM, Mike Bonner wrote: > > > > > > I'm looking for a decent pi camera case with a tripod adapter on the > > bottom > > > (so that pictures are correct orientation without worrying about > rotating > > > them) Since most cases are set up so that correct rotation is attained > > > with the usb cables poking out the bottom, the case would have to use > an > > > offset adapter of some type for my wifi dongle to poke out the bottom. > > > (cabled dongle, so there is some flexibility (no pun intended) as far > as > > > clearance goes) > > > > > > I have a project pretty much done (with lc server/picam on the pi being > > > remote controlled long distance by an lc application grabbing > snapshots) > > > but having a more functional casing option will make a huge difference > in > > > the final product. A custom print with a hole to cement in the right > > size > > > nut, or with a threaded hole would be fine, but chances that I'll ever > > own > > > a 3d printer is slimmer than none. Plus my fabrication skills for this > > > sort of thing aren't so good, so I guess i'm looking for an affordable > > > pre-made, or affordable 3rd party that can print a few cases for me. > > > > > > > > > Suggestions? > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dsc at swcp.com Tue Jun 7 17:04:00 2016 From: dsc at swcp.com (Dar Scott) Date: Tue, 7 Jun 2016 15:04:00 -0600 Subject: OT: Pi tripod case In-Reply-To: References: <664B3692-F0B6-41C6-8372-B1EF551C6B32@all-auctions.com> Message-ID: <3F445A2F-7912-47CD-9CDD-8D632F25FE0D@swcp.com> TinkerCAD even has a thread generator. It might be able to do the 1/4-20 UNC for the tripod. I'm not sure how strong the threads will be. You might want to consider laser milling a modified case design that is available to make room for mounting and gluing on a nut. You can etch the surface around the hole to help with gluing and maybe to control it. > On Jun 7, 2016, at 2:44 PM, Roger Eller wrote: > > TinkerCAD is a great & free online easy peazy 3D design program. > > I made this in about 30 minutes (with no instructions), and printed it on > my 3D printer. > > https://tinkercad.com/things/blam4ODyd9t > > ~Roger > > > On Tue, Jun 7, 2016 at 4:36 PM, Rick Harrison > wrote: > >> Hi Mike, >> >> You might try: >> >> http://www.shapeways.com >> >> You can design whatever you want, and they >> will 3D print it for you and ship it to you! >> >> Good luck! >> >> Rick >> >> >>> On Jun 7, 2016, at 4:11 PM, Mike Bonner wrote: >>> >>> I'm looking for a decent pi camera case with a tripod adapter on the >> bottom >>> (so that pictures are correct orientation without worrying about rotating >>> them) Since most cases are set up so that correct rotation is attained >>> with the usb cables poking out the bottom, the case would have to use an >>> offset adapter of some type for my wifi dongle to poke out the bottom. >>> (cabled dongle, so there is some flexibility (no pun intended) as far as >>> clearance goes) >>> >>> I have a project pretty much done (with lc server/picam on the pi being >>> remote controlled long distance by an lc application grabbing snapshots) >>> but having a more functional casing option will make a huge difference in >>> the final product. A custom print with a hole to cement in the right >> size >>> nut, or with a threaded hole would be fine, but chances that I'll ever >> own >>> a 3d printer is slimmer than none. Plus my fabrication skills for this >>> sort of thing aren't so good, so I guess i'm looking for an affordable >>> pre-made, or affordable 3rd party that can print a few cases for me. >>> >>> >>> Suggestions? >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 7 17:07:11 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 7 Jun 2016 15:07:11 -0600 Subject: OT: Once more Message-ID: One more OT question if I may. My current project uses a pi with a long range wifi dongle (an alpha), and hostapd so that the pi acts as an access point. Everything is working great.. Except when i try to connect with my mac. I had at first thought that the wifi was drawing too much power from my battery pack and when I tried to connect it shut the pi down, but it appears that is not the case. I can connect from various windows machines, from linux, from android devices.. I can't test with IOS unless I borrow hardware to do so, but everything I've tried EXCEPT the mac connects fine. (If it was a power issue a y cable adapter would have solved it, but noooooo) Unfortunately, when it decides to crash on connection from my mac, it does it with extreme prejudice.. On reboot I haven't managed to find any logs telling me WHY. (I may be able to change how caching works so that there are no delayed writes.. maybe that will help) Has anyone had trouble connecting to a pi that is running hostapd with a mac? And if so, was it fixable? From ray at linkit.com Tue Jun 7 18:09:36 2016 From: ray at linkit.com (Ray Horsley) Date: Tue, 7 Jun 2016 17:09:36 -0500 Subject: Get and Set the Scroll of a Datagrid In-Reply-To: References: <5700B84D.1090305@hyperactivesw.com> <570405BE.2060905@hyperactivesw.com> <5704064F.5010807@LinkIt.Com> <570420B7.8040804@LinkIt.Com> <570442C3.9070309@LinkIt.Com> <5704513E.3000601@LinkIt.Com> <57047996.5020604@LinkIt.Com> <57050998.7060206@LinkIt.Com> <57052C28.1030608@LinkIt.Com> <570548F4.5000908@LinkIt.Com> Message-ID: <57574620.4000202@LinkIt.Com> Does anybody know how to get and set the scroll of a datagrid? None of the dgProp handlers works, nor does plain old "get the vScroll of group MyGrid", which always returns 0 for some reason. Thanks a bunch for any help! From bonnmike at gmail.com Tue Jun 7 17:15:19 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 7 Jun 2016 15:15:19 -0600 Subject: OT: Pi tripod case In-Reply-To: <3F445A2F-7912-47CD-9CDD-8D632F25FE0D@swcp.com> References: <664B3692-F0B6-41C6-8372-B1EF551C6B32@all-auctions.com> <3F445A2F-7912-47CD-9CDD-8D632F25FE0D@swcp.com> Message-ID: Yeah, I'm thinking a hex socket to fit the nut (external socket, so full piece thickness can be maintained for strength) then I have this handy paste stuff that is used for glass bedding. I can coat the nut threads to keep them clear and paste it in. Having decided to design a case mount rather than a case, it should be considerably easier now. On Tue, Jun 7, 2016 at 3:04 PM, Dar Scott wrote: > TinkerCAD even has a thread generator. It might be able to do the 1/4-20 > UNC for the tripod. I'm not sure how strong the threads will be. > > You might want to consider laser milling a modified case design that is > available to make room for mounting and gluing on a nut. You can etch the > surface around the hole to help with gluing and maybe > to control it. > > > > On Jun 7, 2016, at 2:44 PM, Roger Eller > wrote: > > > > TinkerCAD is a great & free online easy peazy 3D design program. > > > > I made this in about 30 minutes (with no instructions), and printed it on > > my 3D printer. > > > > https://tinkercad.com/things/blam4ODyd9t > > > > ~Roger > > > > > > On Tue, Jun 7, 2016 at 4:36 PM, Rick Harrison > > > wrote: > > > >> Hi Mike, > >> > >> You might try: > >> > >> http://www.shapeways.com > >> > >> You can design whatever you want, and they > >> will 3D print it for you and ship it to you! > >> > >> Good luck! > >> > >> Rick > >> > >> > >>> On Jun 7, 2016, at 4:11 PM, Mike Bonner wrote: > >>> > >>> I'm looking for a decent pi camera case with a tripod adapter on the > >> bottom > >>> (so that pictures are correct orientation without worrying about > rotating > >>> them) Since most cases are set up so that correct rotation is attained > >>> with the usb cables poking out the bottom, the case would have to use > an > >>> offset adapter of some type for my wifi dongle to poke out the bottom. > >>> (cabled dongle, so there is some flexibility (no pun intended) as far > as > >>> clearance goes) > >>> > >>> I have a project pretty much done (with lc server/picam on the pi being > >>> remote controlled long distance by an lc application grabbing > snapshots) > >>> but having a more functional casing option will make a huge difference > in > >>> the final product. A custom print with a hole to cement in the right > >> size > >>> nut, or with a threaded hole would be fine, but chances that I'll ever > >> own > >>> a 3d printer is slimmer than none. Plus my fabrication skills for this > >>> sort of thing aren't so good, so I guess i'm looking for an affordable > >>> pre-made, or affordable 3rd party that can print a few cases for me. > >>> > >>> > >>> Suggestions? > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 7 17:15:44 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 7 Jun 2016 17:15:44 -0400 Subject: OT: Pi tripod case In-Reply-To: <3F445A2F-7912-47CD-9CDD-8D632F25FE0D@swcp.com> References: <664B3692-F0B6-41C6-8372-B1EF551C6B32@all-auctions.com> <3F445A2F-7912-47CD-9CDD-8D632F25FE0D@swcp.com> Message-ID: Ideas abound! http://www.thingiverse.com/thing:1592706 On Tue, Jun 7, 2016 at 5:04 PM, Dar Scott wrote: > TinkerCAD even has a thread generator. It might be able to do the 1/4-20 > UNC for the tripod. I'm not sure how strong the threads will be. > > You might want to consider laser milling a modified case design that is > available to make room for mounting and gluing on a nut. You can etch the > surface around the hole to help with gluing and maybe > to control it. > > > > On Jun 7, 2016, at 2:44 PM, Roger Eller > wrote: > > > > TinkerCAD is a great & free online easy peazy 3D design program. > > > > I made this in about 30 minutes (with no instructions), and printed it on > > my 3D printer. > > > > https://tinkercad.com/things/blam4ODyd9t > > > > ~Roger > > > > > > On Tue, Jun 7, 2016 at 4:36 PM, Rick Harrison > > > wrote: > > > >> Hi Mike, > >> > >> You might try: > >> > >> http://www.shapeways.com > >> > >> You can design whatever you want, and they > >> will 3D print it for you and ship it to you! > >> > >> Good luck! > >> > >> Rick > >> > >> > >>> On Jun 7, 2016, at 4:11 PM, Mike Bonner wrote: > >>> > >>> I'm looking for a decent pi camera case with a tripod adapter on the > >> bottom > >>> (so that pictures are correct orientation without worrying about > rotating > >>> them) Since most cases are set up so that correct rotation is attained > >>> with the usb cables poking out the bottom, the case would have to use > an > >>> offset adapter of some type for my wifi dongle to poke out the bottom. > >>> (cabled dongle, so there is some flexibility (no pun intended) as far > as > >>> clearance goes) > >>> > >>> I have a project pretty much done (with lc server/picam on the pi being > >>> remote controlled long distance by an lc application grabbing > snapshots) > >>> but having a more functional casing option will make a huge difference > in > >>> the final product. A custom print with a hole to cement in the right > >> size > >>> nut, or with a threaded hole would be fine, but chances that I'll ever > >> own > >>> a 3d printer is slimmer than none. Plus my fabrication skills for this > >>> sort of thing aren't so good, so I guess i'm looking for an affordable > >>> pre-made, or affordable 3rd party that can print a few cases for me. > >>> > >>> > >>> Suggestions? > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 7 17:17:58 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 7 Jun 2016 15:17:58 -0600 Subject: Get and Set the Scroll of a Datagrid In-Reply-To: <57574620.4000202@LinkIt.Com> References: <5700B84D.1090305@hyperactivesw.com> <570405BE.2060905@hyperactivesw.com> <5704064F.5010807@LinkIt.Com> <570420B7.8040804@LinkIt.Com> <570442C3.9070309@LinkIt.Com> <5704513E.3000601@LinkIt.Com> <57047996.5020604@LinkIt.Com> <57050998.7060206@LinkIt.Com> <57052C28.1030608@LinkIt.Com> <570548F4.5000908@LinkIt.Com> <57574620.4000202@LinkIt.Com> Message-ID: On this page: http://lessons.livecode.com/m/datagrid/l/7344-data-grid-api look for dghscroll, dghscrollpercent, dgvscroll and dgvscrollpercent On Tue, Jun 7, 2016 at 4:09 PM, Ray Horsley wrote: > Does anybody know how to get and set the scroll of a datagrid? None of > the dgProp handlers works, nor does plain old "get the vScroll of group > MyGrid", which always returns 0 for some reason. > > Thanks a bunch for any help! > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From klaus at major-k.de Tue Jun 7 17:19:47 2016 From: klaus at major-k.de (Klaus major-k) Date: Tue, 7 Jun 2016 23:19:47 +0200 Subject: Get and Set the Scroll of a Datagrid In-Reply-To: <57574620.4000202@LinkIt.Com> References: <5700B84D.1090305@hyperactivesw.com> <570405BE.2060905@hyperactivesw.com> <5704064F.5010807@LinkIt.Com> <570420B7.8040804@LinkIt.Com> <570442C3.9070309@LinkIt.Com> <5704513E.3000601@LinkIt.Com> <57047996.5020604@LinkIt.Com> <57050998.7060206@LinkIt.Com> <57052C28.1030608@LinkIt.Com> <570548F4.5000908@LinkIt.Com> <57574620.4000202@LinkIt.Com> Message-ID: Hi Ray, > Am 08.06.2016 um 00:09 schrieb Ray Horsley : > > Does anybody know how to get and set the scroll of a datagrid? None of the dgProp handlers works, nor does plain old "get the vScroll of group MyGrid", which always returns 0 for some reason. > > Thanks a bunch for any help! you can get and set: the dgHScroll of grp XYZ the dgVScroll of grp XYZ Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From ray at linkit.com Tue Jun 7 18:20:56 2016 From: ray at linkit.com (Ray Horsley) Date: Tue, 7 Jun 2016 17:20:56 -0500 Subject: Get and Set the Scroll of a Datagrid In-Reply-To: References: <5700B84D.1090305@hyperactivesw.com> <5704064F.5010807@LinkIt.Com> <570420B7.8040804@LinkIt.Com> <570442C3.9070309@LinkIt.Com> <5704513E.3000601@LinkIt.Com> <57047996.5020604@LinkIt.Com> <57050998.7060206@LinkIt.Com> <57052C28.1030608@LinkIt.Com> <570548F4.5000908@LinkIt.Com> <57574620.4000202@LinkIt.Com> Message-ID: <575748C8.80402@LinkIt.Com> Mike, Klaus, that's it! Thank you very much. On 6/7/2016 4:19 PM, Klaus major-k wrote: > Hi Ray, > >> Am 08.06.2016 um 00:09 schrieb Ray Horsley : >> >> Does anybody know how to get and set the scroll of a datagrid? None of the dgProp handlers works, nor does plain old "get the vScroll of group MyGrid", which always returns 0 for some reason. >> >> Thanks a bunch for any help! > you can get and set: > the dgHScroll of grp XYZ > the dgVScroll of grp XYZ > > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Tue Jun 7 17:22:52 2016 From: dsc at swcp.com (dsc at swcp.com) Date: Tue, 7 Jun 2016 15:22:52 -0600 Subject: OT: Pi tripod case In-Reply-To: <3F445A2F-7912-47CD-9CDD-8D632F25FE0D@swcp.com> References: <664B3692-F0B6-41C6-8372-B1EF551C6B32@all-auctions.com> <3F445A2F-7912-47CD-9CDD-8D632F25FE0D@swcp.com> Message-ID: Do you get stuff from AdaFruit? They sell a 3/8 to 1/4 adaptor that some people screw into a simple tight hole in a 3D design with glue to make a strong 1/4 thread. I think you can also do this with some laser cut pieces but with acrylic you have to be careful with the hole size because it might crack. I have also seen some press-in (heat or force) for laser milled pieces that I have seen described online. You might need to get those from--arg--that place that has all the cool hardware. You just need to choose material carefully. With the laser cutting you can adapt a box design and you would use (say) InkScape or Illustrator instead of TinkerCad (for 3D). > On Jun 7, 2016, at 3:04 PM, Dar Scott wrote: > > TinkerCAD even has a thread generator. It might be able to do the 1/4-20 UNC for the tripod. I'm not sure how strong the threads will be. > > You might want to consider laser milling a modified case design that is available to make room for mounting and gluing on a nut. You can etch the surface around the hole to help with gluing and maybe > to control it. > > >> On Jun 7, 2016, at 2:44 PM, Roger Eller wrote: >> >> TinkerCAD is a great & free online easy peazy 3D design program. >> >> I made this in about 30 minutes (with no instructions), and printed it on >> my 3D printer. >> >> https://tinkercad.com/things/blam4ODyd9t >> >> ~Roger >> >> >> On Tue, Jun 7, 2016 at 4:36 PM, Rick Harrison >> wrote: >> >>> Hi Mike, >>> >>> You might try: >>> >>> http://www.shapeways.com >>> >>> You can design whatever you want, and they >>> will 3D print it for you and ship it to you! >>> >>> Good luck! >>> >>> Rick >>> >>> >>>> On Jun 7, 2016, at 4:11 PM, Mike Bonner wrote: >>>> >>>> I'm looking for a decent pi camera case with a tripod adapter on the >>> bottom >>>> (so that pictures are correct orientation without worrying about rotating >>>> them) Since most cases are set up so that correct rotation is attained >>>> with the usb cables poking out the bottom, the case would have to use an >>>> offset adapter of some type for my wifi dongle to poke out the bottom. >>>> (cabled dongle, so there is some flexibility (no pun intended) as far as >>>> clearance goes) >>>> >>>> I have a project pretty much done (with lc server/picam on the pi being >>>> remote controlled long distance by an lc application grabbing snapshots) >>>> but having a more functional casing option will make a huge difference in >>>> the final product. A custom print with a hole to cement in the right >>> size >>>> nut, or with a threaded hole would be fine, but chances that I'll ever >>> own >>>> a 3d printer is slimmer than none. Plus my fabrication skills for this >>>> sort of thing aren't so good, so I guess i'm looking for an affordable >>>> pre-made, or affordable 3rd party that can print a few cases for me. >>>> >>>> >>>> Suggestions? >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Tue Jun 7 17:24:19 2016 From: dsc at swcp.com (Dar Scott) Date: Tue, 7 Jun 2016 15:24:19 -0600 Subject: OT: Pi tripod case In-Reply-To: References: <664B3692-F0B6-41C6-8372-B1EF551C6B32@all-auctions.com> <3F445A2F-7912-47CD-9CDD-8D632F25FE0D@swcp.com> Message-ID: I like it! I have seen some ideas online for different ways to capture a nut. > On Jun 7, 2016, at 3:15 PM, Mike Bonner wrote: > > Yeah, I'm thinking a hex socket to fit the nut (external socket, so full > piece thickness can be maintained for strength) then I have this handy > paste stuff that is used for glass bedding. I can coat the nut threads to > keep them clear and paste it in. Having decided to design a case mount > rather than a case, it should be considerably easier now. > > On Tue, Jun 7, 2016 at 3:04 PM, Dar Scott wrote: > >> TinkerCAD even has a thread generator. It might be able to do the 1/4-20 >> UNC for the tripod. I'm not sure how strong the threads will be. >> >> You might want to consider laser milling a modified case design that is >> available to make room for mounting and gluing on a nut. You can etch the >> surface around the hole to help with gluing and maybe >> to control it. >> >> >>> On Jun 7, 2016, at 2:44 PM, Roger Eller >> wrote: >>> >>> TinkerCAD is a great & free online easy peazy 3D design program. >>> >>> I made this in about 30 minutes (with no instructions), and printed it on >>> my 3D printer. >>> >>> https://tinkercad.com/things/blam4ODyd9t >>> >>> ~Roger >>> >>> >>> On Tue, Jun 7, 2016 at 4:36 PM, Rick Harrison >> >>> wrote: >>> >>>> Hi Mike, >>>> >>>> You might try: >>>> >>>> http://www.shapeways.com >>>> >>>> You can design whatever you want, and they >>>> will 3D print it for you and ship it to you! >>>> >>>> Good luck! >>>> >>>> Rick >>>> >>>> >>>>> On Jun 7, 2016, at 4:11 PM, Mike Bonner wrote: >>>>> >>>>> I'm looking for a decent pi camera case with a tripod adapter on the >>>> bottom >>>>> (so that pictures are correct orientation without worrying about >> rotating >>>>> them) Since most cases are set up so that correct rotation is attained >>>>> with the usb cables poking out the bottom, the case would have to use >> an >>>>> offset adapter of some type for my wifi dongle to poke out the bottom. >>>>> (cabled dongle, so there is some flexibility (no pun intended) as far >> as >>>>> clearance goes) >>>>> >>>>> I have a project pretty much done (with lc server/picam on the pi being >>>>> remote controlled long distance by an lc application grabbing >> snapshots) >>>>> but having a more functional casing option will make a huge difference >> in >>>>> the final product. A custom print with a hole to cement in the right >>>> size >>>>> nut, or with a threaded hole would be fine, but chances that I'll ever >>>> own >>>>> a 3d printer is slimmer than none. Plus my fabrication skills for this >>>>> sort of thing aren't so good, so I guess i'm looking for an affordable >>>>> pre-made, or affordable 3rd party that can print a few cases for me. >>>>> >>>>> >>>>> Suggestions? >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 7 17:28:57 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 7 Jun 2016 15:28:57 -0600 Subject: OT: Pi tripod case In-Reply-To: References: <664B3692-F0B6-41C6-8372-B1EF551C6B32@all-auctions.com> <3F445A2F-7912-47CD-9CDD-8D632F25FE0D@swcp.com> Message-ID: I'll check out adafruit, I haven't looked there in a while. I'll also check servo city to see what kind of things might trigger ideas. One way to capture a nut? Give me a project. Keeps me busy for months. On Tue, Jun 7, 2016 at 3:24 PM, Dar Scott wrote: > I like it! I have seen some ideas online for different ways to capture a > nut. > > > On Jun 7, 2016, at 3:15 PM, Mike Bonner wrote: > > > > Yeah, I'm thinking a hex socket to fit the nut (external socket, so full > > piece thickness can be maintained for strength) then I have this handy > > paste stuff that is used for glass bedding. I can coat the nut threads > to > > keep them clear and paste it in. Having decided to design a case mount > > rather than a case, it should be considerably easier now. > > > > On Tue, Jun 7, 2016 at 3:04 PM, Dar Scott wrote: > > > >> TinkerCAD even has a thread generator. It might be able to do the > 1/4-20 > >> UNC for the tripod. I'm not sure how strong the threads will be. > >> > >> You might want to consider laser milling a modified case design that is > >> available to make room for mounting and gluing on a nut. You can etch > the > >> surface around the hole to help with gluing and maybe > >> to control it. > >> > >> > >>> On Jun 7, 2016, at 2:44 PM, Roger Eller > >> wrote: > >>> > >>> TinkerCAD is a great & free online easy peazy 3D design program. > >>> > >>> I made this in about 30 minutes (with no instructions), and printed it > on > >>> my 3D printer. > >>> > >>> https://tinkercad.com/things/blam4ODyd9t > >>> > >>> ~Roger > >>> > >>> > >>> On Tue, Jun 7, 2016 at 4:36 PM, Rick Harrison < > harrison at all-auctions.com > >>> > >>> wrote: > >>> > >>>> Hi Mike, > >>>> > >>>> You might try: > >>>> > >>>> http://www.shapeways.com > >>>> > >>>> You can design whatever you want, and they > >>>> will 3D print it for you and ship it to you! > >>>> > >>>> Good luck! > >>>> > >>>> Rick > >>>> > >>>> > >>>>> On Jun 7, 2016, at 4:11 PM, Mike Bonner wrote: > >>>>> > >>>>> I'm looking for a decent pi camera case with a tripod adapter on the > >>>> bottom > >>>>> (so that pictures are correct orientation without worrying about > >> rotating > >>>>> them) Since most cases are set up so that correct rotation is > attained > >>>>> with the usb cables poking out the bottom, the case would have to use > >> an > >>>>> offset adapter of some type for my wifi dongle to poke out the > bottom. > >>>>> (cabled dongle, so there is some flexibility (no pun intended) as far > >> as > >>>>> clearance goes) > >>>>> > >>>>> I have a project pretty much done (with lc server/picam on the pi > being > >>>>> remote controlled long distance by an lc application grabbing > >> snapshots) > >>>>> but having a more functional casing option will make a huge > difference > >> in > >>>>> the final product. A custom print with a hole to cement in the right > >>>> size > >>>>> nut, or with a threaded hole would be fine, but chances that I'll > ever > >>>> own > >>>>> a 3d printer is slimmer than none. Plus my fabrication skills for > this > >>>>> sort of thing aren't so good, so I guess i'm looking for an > affordable > >>>>> pre-made, or affordable 3rd party that can print a few cases for me. > >>>>> > >>>>> > >>>>> Suggestions? > >>>>> _______________________________________________ > >>>>> use-livecode mailing list > >>>>> use-livecode at lists.runrev.com > >>>>> Please visit this url to subscribe, unsubscribe and manage your > >>>> subscription preferences: > >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>> > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode at lists.runrev.com > >>>> Please visit this url to subscribe, unsubscribe and manage your > >>>> subscription preferences: > >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dsc at swcp.com Tue Jun 7 17:31:24 2016 From: dsc at swcp.com (Dar Scott) Date: Tue, 7 Jun 2016 15:31:24 -0600 Subject: OT: Pi tripod case In-Reply-To: References: <664B3692-F0B6-41C6-8372-B1EF551C6B32@all-auctions.com> <3F445A2F-7912-47CD-9CDD-8D632F25FE0D@swcp.com> Message-ID: <5C310FA1-2332-4556-AFD3-C21C1B4805EA@swcp.com> > On Jun 7, 2016, at 3:28 PM, Mike Bonner wrote: > > One way to capture a nut? Give me a project. Keeps me busy for months. LOL! From hh at hh.on-rev.com Tue Jun 7 17:36:27 2016 From: hh at hh.on-rev.com (-hh) Date: Tue, 7 Jun 2016 14:36:27 -0700 (PDT) Subject: OT: Once more In-Reply-To: References: Message-ID: <1465335387539-4705535.post@n4.nabble.com> Mike Bonner wrote > Has anyone had trouble connecting to a pi that is running hostapd with a > mac? And if so, was it fixable? Yes and yes. I have it now running on a Raspi 2B (and it runs also with the on-board WIFI of Raspi 3). On Raspi 2 the fix was to try all WIFI dongles I could find in my workwear ;-) Using a 'newer' TP-Link fixed everything. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Once-more-tp4705524p4705535.html Sent from the Revolution - User mailing list archive at Nabble.com. From bonnmike at gmail.com Tue Jun 7 18:33:08 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 7 Jun 2016 16:33:08 -0600 Subject: OT: Once more In-Reply-To: <1465335387539-4705535.post@n4.nabble.com> References: <1465335387539-4705535.post@n4.nabble.com> Message-ID: Ah k. I'll have to see if I can find a high power tp-link for this. I like the alpha i'm using now, but if a tp-link will work I can always add a reflector or windsurfer antenna to get the range I'm hoping for, plus I have a couple 9dBi rubber duckie antennas (and a 2.4 yagi, though it would be a pain for what I'm doing) . Another option would be to find a 5.8 that will work since it will give better line of site distance, but I'd prefer to stick with 2.4 since I can't guarantee the end user will have a dual band wifi capability. I guess the other option is I can just declare myself apple incompatible since it works so well with EVERYTHING else. I'll have to borrow an iphone or ipad and see if that makes it tank too. I don't suppose you have the exact listing for the tp-link available? On Tue, Jun 7, 2016 at 3:36 PM, [-hh] wrote: > Mike Bonner wrote > > Has anyone had trouble connecting to a pi that is running hostapd with a > > mac? And if so, was it fixable? > > Yes and yes. I have it now running on a Raspi 2B (and it runs also with the > on-board WIFI of Raspi 3). On Raspi 2 the fix was to try all WIFI dongles I > could find in my workwear ;-) > Using a 'newer' TP-Link fixed everything. > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/OT-Once-more-tp4705524p4705535.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 lfredricks at proactive-intl.com Tue Jun 7 18:44:59 2016 From: lfredricks at proactive-intl.com (Lynn Fredricks) Date: Tue, 7 Jun 2016 15:44:59 -0700 Subject: OT: Pi tripod case In-Reply-To: <664B3692-F0B6-41C6-8372-B1EF551C6B32@all-auctions.com> References: <664B3692-F0B6-41C6-8372-B1EF551C6B32@all-auctions.com> Message-ID: > http://www.shapeways.com Shapeways prints are surprisingly good. I have visited with them previously at SIGGRAPH, where they showed off prints using different materials and metals. You do need to model very carefully and specifically for 3d printing. Remember how you were warned not to mix up color formats and image resolutions before sending something to a professional printer - or you will end up with a major surprise? Same thing or worse with 3D printing. Best regards, Lynn Fredricks Paradigma Software http://www.paradigmasoft.com Valentina SQL Server: The Ultra-fast, Royalty Free Database Server From livfoss at mac.com Tue Jun 7 18:47:42 2016 From: livfoss at mac.com (Graham Samuel) Date: Wed, 08 Jun 2016 00:47:42 +0200 Subject: Has anyone got to the end of the BMI Calculator example? In-Reply-To: References: <5333648B-2AA8-4074-954B-DA3DF45AC45A@mac.com> <5F6EB0CC-B0E4-4D37-999C-8FF910B33BB0@omnia.on-rev.com> <47BA8087-680A-49B5-8022-EEB2504EA352@mac.com> <5D8D8A72-DA12-4485-A6D0-C2A79E8F3168@mac.com> <659333ac-d92b-7387-e92d-2d3a2bed6409@livecode.com> <3b5cb4eb-7e68-2cd3-180c-c25be97ac027@livecode.com> <2B808060-AF59-4303-A904-3921B07E4E94@mac.com> Message-ID: <64F14029-D682-47B5-A604-6F528B720CA3@mac.com> OK, I added a text file to 17812 describing my experiences. I heartily endorse the idea of a ?back? button! My narrative had to end when LC 8.0.1 refused to open any more property inspectors - no idea why. I also had to use the ?fast forward? button once, just go get some progress. It really does need to be more robust. I am still a long way from understanding widgets, I fear. Graham > On 7 Jun 2016, at 20:11, Mike Bonner wrote: > > Yeah, I forgot that. You actually have to go into custom colors to set the > rgb values, but it would be clear as mud to someone who has never done it > before. > > Definitely add to it.. If the tutorial tools can be fleshed out and made > easier, and more complete (hopefully with full storyboarding?) it would > help encourage a multitude of creative uses. (It might even be useful in > detailing "bug recipe" walkthroughs, as well as hopefully a way to include > tutorials in standalones.. I'd LOVE to include tutorials in at least one of > my standalones. (Lots of turnover at the place that uses this particular > application, and whlie its simple, having a tutorial walk a person through > the steps would be really great) > > On Tue, Jun 7, 2016 at 11:32 AM, Graham Samuel wrote: > >> Well done Mike for getting your report in so quickly. I intend to add to >> it with a narrative of what I saw (on an iMac with Yosemite 10.10.5 running >> LC 8.0.1). I hope that Peter is right and that it?s all one problem, >> although there are other niggles than the guidance system - for example, >> when one is told to set colours, it would not be clear to a newbie that >> these are RGB colours, since the colour palette offers several alternatives >> and RGB probably doesn?t come up first? hoping to get on to my narrative >> soon. >> >> Graham >> >> >>> On 7 Jun 2016, at 18:51, Mike Bonner wrote: >>> >>> http://quality.livecode.com/show_bug.cgi?id=17812 >>> >>> On Tue, Jun 7, 2016 at 10:16 AM, Mike Bonner wrote: >>> >>>> ok thanks. >>>> >>>> On Tue, Jun 7, 2016 at 10:12 AM, Peter TB Brett < >> peter.brett at livecode.com> >>>> wrote: >>>> >>>>> On 07/06/2016 17:10, Mike Bonner wrote: >>>>> >>>>>> Yep. Should I assume add a report for each type of problem rather >> than a >>>>>> list of issues in 1, correct? >>>>>> >>>>> >>>>> Hi Mike, >>>>> >>>>> Since, as far as we know, these are all directly related to the same >>>>> feature and can likely be fixed together, please just file a single bug >>>>> report (and someone will split it up if necessary). >>>>> >>>>> Peter >>>>> >>>>> -- >>>>> Dr Peter Brett >>>>> LiveCode Technical Project Manager >>>>> >>>>> LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 7 18:52:45 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 7 Jun 2016 16:52:45 -0600 Subject: OT: Pi tripod case In-Reply-To: References: <664B3692-F0B6-41C6-8372-B1EF551C6B32@all-auctions.com> Message-ID: I'm working with some high quality test materials here at home first (aka,cardboard and foamboard) to figure out what I want, and then will tackle converting to a model. As far as the 3d modeling goes, I have a tiny bit of experience with blender, but know so little I might as well be starting from scratch. (I did take an autocad 11 class LONG ago) Tutorials are in my future I can tell. On Tue, Jun 7, 2016 at 4:44 PM, Lynn Fredricks < lfredricks at proactive-intl.com> wrote: > > http://www.shapeways.com > > Shapeways prints are surprisingly good. I have visited with them previously > at SIGGRAPH, where they showed off prints using different materials and > metals. > > You do need to model very carefully and specifically for 3d printing. > Remember how you were warned not to mix up color formats and image > resolutions before sending something to a professional printer - or you > will > end up with a major surprise? Same thing or worse with 3D printing. > > 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 > From alanstenhouse at hotmail.com Tue Jun 7 19:15:34 2016 From: alanstenhouse at hotmail.com (Alan) Date: Tue, 7 Jun 2016 23:15:34 +0000 Subject: Get and Set the Scroll of a Datagrid Message-ID: set the dgVscroll of to x HTH From alanstenhouse at hotmail.com Tue Jun 7 19:15:47 2016 From: alanstenhouse at hotmail.com (Alan) Date: Tue, 7 Jun 2016 23:15:47 +0000 Subject: Get and Set the Scroll of a Datagrid Message-ID: set the dgVscroll of to x HTH From richmondmathewson at gmail.com Wed Jun 8 01:42:52 2016 From: richmondmathewson at gmail.com (RM) Date: Wed, 8 Jun 2016 08:42:52 +0300 Subject: [ANN] Release 8.0.2 RC1 In-Reply-To: References: <57571D02.5030100@gmail.com> Message-ID: <5757B05C.2010707@gmail.com> This was a bad case of "Richmond's Silly Buggers": 1. A cache on my Xubuntu system had suddenly had an attack of bloat so there was NO space left on my HOME partition; something I did not see (because, previously, I had 1.5 GB space) before I attempted installation. 2. I messed around with the GRUB thing and booted into a recovery mode and managed to delete a few gratuitous installs to make space. 3. Subsequently no problems whatsoever. 4. Sorry for spoiling your day. Richmond. On 7.06.2016 23:35, panagiotis merakos wrote: > > > @Richmond > Could you please file a bug report? Do you see the same error when > installing 8.0.1 for "You only"? > > Best, > Panos > -- > > From richmondmathewson at gmail.com Wed Jun 8 01:47:10 2016 From: richmondmathewson at gmail.com (RM) Date: Wed, 8 Jun 2016 08:47:10 +0300 Subject: Uninstalling Livecode Message-ID: <5757B15E.3070603@gmail.com> Currently I have about 40 versions of Livecode installed on my Xubun tu system, with them all showing up in the menu system. This is giving my system "gut rot". If I dig into the /home/.runrev directory I can manually delete the versions I don't want, but the system still 'sees' those I have deleted, so they show up in the menu system. Is there a way to remove all but the 8 versions I use (3.5, 4.0, 4.5, 6.7.11, 7.14, 8.0.1, 8.0.2 rc-1 & 8.10) completely? Richmond. From james at thehales.id.au Wed Jun 8 01:33:21 2016 From: james at thehales.id.au (jameshale) Date: Tue, 7 Jun 2016 22:33:21 -0700 (PDT) Subject: Feature Exchange any one? In-Reply-To: <5756A769.8000500@researchware.com> References: <5750D005.8020902@researchware.com> <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> <57532B72.5050703@researchware.com> <0D7977AD-BE6C-4D4A-8322-7D6586C06817@appisle.net> <5754F095.9080504@researchware.com> <1465284395275-4705473.post@n4.nabble.com> <5756A769.8000500@researchware.com> Message-ID: <1465364001904-4705544.post@n4.nabble.com> Ok it is up. http://quality.livecode.com/show_bug.cgi?id=17816 over to your Ali. James -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Feature-Exchange-any-one-tp4705390p4705544.html Sent from the Revolution - User mailing list archive at Nabble.com. From peter.brett at livecode.com Wed Jun 8 02:35:51 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Wed, 8 Jun 2016 07:35:51 +0100 Subject: Feature Exchange any one? In-Reply-To: <1465364001904-4705544.post@n4.nabble.com> References: <5750D005.8020902@researchware.com> <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> <57532B72.5050703@researchware.com> <0D7977AD-BE6C-4D4A-8322-7D6586C06817@appisle.net> <5754F095.9080504@researchware.com> <1465284395275-4705473.post@n4.nabble.com> <5756A769.8000500@researchware.com> <1465364001904-4705544.post@n4.nabble.com> Message-ID: On 08/06/2016 06:33, jameshale wrote: > Ok it is up. > > http://quality.livecode.com/show_bug.cgi?id=17816 > > over to your Ali. Thanks James! I'm sure it'll be very greatly appreciated by everyone who uses datagrids! Peter -- Dr Peter Brett LiveCode Technical Project Manager LiveCode 2016 Conference https://livecode.com/edinburgh-2016/ From peter.brett at livecode.com Wed Jun 8 02:43:13 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Wed, 8 Jun 2016 07:43:13 +0100 Subject: Uninstalling Livecode In-Reply-To: <5757B15E.3070603@gmail.com> References: <5757B15E.3070603@gmail.com> Message-ID: <5cd617f1-a037-d322-4f3e-c30c20e61567@livecode.com> On 08/06/2016 06:47, RM wrote: > If I dig into the /home/.runrev directory I can manually delete the > versions I don't want, but the > system still 'sees' those I have deleted, so they show up in the menu > system. > > Is there a way to remove all but the 8 versions I use (3.5, 4.0, 4.5, > 6.7.11, 7.14, 8.0.1, 8.0.2 rc-1 & 8.10) completely? Hi Richmond, Assuming that you never install for "All Users", then you can try something like: find $HOME -iname 'livecode*.desktop' to list all of the .desktop files that LiveCode installs to make itself appear in your menu system. You can then manually delete the ones you no longer require. (I haven't actually tried this so some fudging around may be needed in order to make it work). Peter -- Dr Peter Brett LiveCode Technical Project Manager LiveCode 2016 Conference https://livecode.com/edinburgh-2016/ From hh at hh.on-rev.com Wed Jun 8 02:26:09 2016 From: hh at hh.on-rev.com (-hh) Date: Tue, 7 Jun 2016 23:26:09 -0700 (PDT) Subject: Uninstalling Livecode In-Reply-To: <5757B15E.3070603@gmail.com> References: <5757B15E.3070603@gmail.com> Message-ID: <1465367169603-4705547.post@n4.nabble.com> If you install "for this user": Go to user's directory /home/.runrev/components. Execute in each directory of a version you want to remove the "setup". Some older versions don't work or don't work fully with that. Then delete the directory (the rest and links to it) 'manually'. If you install "for all users": You have to find "components" (somewhere in /opt, find it by following a link from a desktop icon). Then do the above. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Uninstalling-Livecode-tp4705543p4705547.html Sent from the Revolution - User mailing list archive at Nabble.com. From toolbook at kestner.de Wed Jun 8 04:01:46 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 8 Jun 2016 10:01:46 +0200 Subject: AW: LC 8 window resize not possible on W7 In-Reply-To: <003c01d1bfda$418adb90$c4a092b0$@kestner.de> References: <003c01d1bfda$418adb90$c4a092b0$@kestner.de> Message-ID: <004701d1c15c$01eaeba0$05c0c2e0$@kestner.de> Has anybody ever seen such a phenomenon? If all other programs on this notebook could also not being resizable, I just would ignore this issue as being an issue of the notebook, but since my LC program is the only one, it must be related to LC. Or not? Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Tiemo Hollmann TB Gesendet: Montag, 6. Juni 2016 12:00 An: LiveCode User Liste senden Betreff: LC 8 window resize not possible on W7 Hello, I have a new LC 8 program, launched by a splash stack, hiding the splash stack and going to the "main program". The mainstack of the "main program" has set "resizable" to true (with a min width and min height). Resizing works fine on my W10 and W8 and OS X machine. Now I found a W7 Sony Vaio notebook, where I can't resize the window with the mouse. The cursor even doesn't change to the "resize arrows", when hovering the edge of the window. I only can "maximize" via the button in the title bar. Other program windows on the same Sony machine are resizable as normal. Any idea what is happening on that machine? Is there any other setting, which could have an influence on the resizability of a LC window? Could that be an issue of the graphic adapter or a bug of LC? Any ideas appreciated 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 hh at hh.on-rev.com Wed Jun 8 03:51:06 2016 From: hh at hh.on-rev.com (-hh) Date: Wed, 8 Jun 2016 00:51:06 -0700 (PDT) Subject: OT: Once more In-Reply-To: References: <1465335387539-4705535.post@n4.nabble.com> Message-ID: <1465372266598-4705549.post@n4.nabble.com> A simple TP-Link TL-WN823N v1 DRAM, up to 300 MBit Connectivity 11,54,300 802.11B, 802.11G, 802.11n [was at about 9 Euro] See https://wikidevi.com/wiki/TP-LINK_TL-WN823N_v1 The older TL-WN725N V1 also worked V2 had an extra driver (had problems). I use it as a wifi-repeater. Mike B. wrote >> I can just declare myself apple incompatible. Presumably it's exactly vice versa ... -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Once-more-tp4705524p4705549.html Sent from the Revolution - User mailing list archive at Nabble.com. From richmondmathewson at gmail.com Wed Jun 8 05:09:48 2016 From: richmondmathewson at gmail.com (RM) Date: Wed, 8 Jun 2016 12:09:48 +0300 Subject: Uninstalling Livecode In-Reply-To: <5cd617f1-a037-d322-4f3e-c30c20e61567@livecode.com> References: <5757B15E.3070603@gmail.com> <5cd617f1-a037-d322-4f3e-c30c20e61567@livecode.com> Message-ID: <5757E0DC.3090003@gmail.com> On 8.06.2016 09:43, Peter TB Brett wrote: > On 08/06/2016 06:47, RM wrote: > >> If I dig into the /home/.runrev directory I can manually delete the >> versions I don't want, but the >> system still 'sees' those I have deleted, so they show up in the menu >> system. >> >> Is there a way to remove all but the 8 versions I use (3.5, 4.0, 4.5, >> 6.7.11, 7.14, 8.0.1, 8.0.2 rc-1 & 8.10) completely? > > Hi Richmond, > > Assuming that you never install for "All Users", then you can try > something like: > > find $HOME -iname 'livecode*.desktop' > > to list all of the .desktop files that LiveCode installs to make > itself appear in your menu system. > > You can then manually delete the ones you no longer require. > > (I haven't actually tried this so some fudging around may be needed in > order to make it work). > > Peter > Thank you both: and, Peter, as I much prefer fudge to toffee, that's fine with me. Richmond. From richmondmathewson at gmail.com Wed Jun 8 05:22:03 2016 From: richmondmathewson at gmail.com (RM) Date: Wed, 8 Jun 2016 12:22:03 +0300 Subject: Uninstalling Livecode In-Reply-To: <5cd617f1-a037-d322-4f3e-c30c20e61567@livecode.com> References: <5757B15E.3070603@gmail.com> <5cd617f1-a037-d322-4f3e-c30c20e61567@livecode.com> Message-ID: <5757E3BB.8030809@gmail.com> On 8.06.2016 09:43, Peter TB Brett wrote: > On 08/06/2016 06:47, RM wrote: > >> If I dig into the /home/.runrev directory I can manually delete the >> versions I don't want, but the >> system still 'sees' those I have deleted, so they show up in the menu >> system. >> >> Is there a way to remove all but the 8 versions I use (3.5, 4.0, 4.5, >> 6.7.11, 7.14, 8.0.1, 8.0.2 rc-1 & 8.10) completely? > > Hi Richmond, > > Assuming that you never install for "All Users", then you can try > something like: > > find $HOME -iname 'livecode*.desktop' > > to list all of the .desktop files that LiveCode installs to make > itself appear in your menu system. > > You can then manually delete the ones you no longer require. > > (I haven't actually tried this so some fudging around may be needed in > order to make it work). > > Peter > To be honest 'find $HOME -iname 'livecode*.desktop'' didn't list much, so I took the quick-n-dirty route of deleting the folders from within /Home/.runrev/components/ . . . and then manually deleting .desktop files the in /Home/.local/share/application folder. The most useful information was pointing out the .local folder to me! Richmond. From ali.lloyd at livecode.com Wed Jun 8 07:09:26 2016 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Wed, 08 Jun 2016 11:09:26 +0000 Subject: Feature Exchange any one? In-Reply-To: References: <5750D005.8020902@researchware.com> <2E2AC88D-6DE7-4865-96FB-98FCB6AB5EAE@appisle.net> <57532B72.5050703@researchware.com> <0D7977AD-BE6C-4D4A-8322-7D6586C06817@appisle.net> <5754F095.9080504@researchware.com> <1465284395275-4705473.post@n4.nabble.com> <5756A769.8000500@researchware.com> <1465364001904-4705544.post@n4.nabble.com> Message-ID: Pull request submitted: https://github.com/livecode/livecode-ide/pull/1224 On Wed, Jun 8, 2016 at 7:35 AM Peter TB Brett wrote: > > > On 08/06/2016 06:33, jameshale wrote: > > Ok it is up. > > > > http://quality.livecode.com/show_bug.cgi?id=17816 > > > > over to your Ali. > > Thanks James! I'm sure it'll be very greatly appreciated by everyone > who uses datagrids! > > Peter > > -- > Dr Peter Brett > LiveCode Technical Project Manager > > LiveCode 2016 Conference https://livecode.com/edinburgh-2016/ > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 8 08:02:46 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 8 Jun 2016 06:02:46 -0600 Subject: OT: Once more In-Reply-To: <1465372266598-4705549.post@n4.nabble.com> References: <1465335387539-4705535.post@n4.nabble.com> <1465372266598-4705549.post@n4.nabble.com> Message-ID: Thank you! On Wed, Jun 8, 2016 at 1:51 AM, [-hh] wrote: > A simple TP-Link TL-WN823N v1 > DRAM, up to 300 MBit > Connectivity 11,54,300 > 802.11B, 802.11G, 802.11n > [was at about 9 Euro] > > See https://wikidevi.com/wiki/TP-LINK_TL-WN823N_v1 > > The older TL-WN725N V1 also worked > V2 had an extra driver (had problems). > I use it as a wifi-repeater. > > Mike B. wrote > >> I can just declare myself apple incompatible. > Presumably it's exactly vice versa ... > > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/OT-Once-more-tp4705524p4705549.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 Jun 8 12:30:04 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 8 Jun 2016 12:30:04 -0400 Subject: iPad and cellular data In-Reply-To: References: <1465335387539-4705535.post@n4.nabble.com> <1465372266598-4705549.post@n4.nabble.com> Message-ID: <006201d1c1a3$03592960$0a0b7c20$@net> I have an iPad 4 running an LC app. Settings: Wifi ==> off Cellular ==> on App specific cellular ==> off LC App still has access to network. There should be no network access. This does not happen on an iPhone. On the iPhone there is no network access(as expected). Has anyone else seen this? Could someone test on their iPad and see if you can reproduce? Thanks in advance for your help. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From ambassador at fourthworld.com Wed Jun 8 12:45:52 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 8 Jun 2016 09:45:52 -0700 Subject: Effective allowed orientation? Message-ID: <57584BC0.4060101@fourthworld.com> Android lets us turn off auto-rotate, but it seems the mobileAllowedOrientations function only returns whatever value I've set. How can I determine whether the user has turned off auto-rotate? -- 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 colinholgate at gmail.com Wed Jun 8 12:59:00 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Wed, 8 Jun 2016 12:59:00 -0400 Subject: Effective allowed orientation? In-Reply-To: <57584BC0.4060101@fourthworld.com> References: <57584BC0.4060101@fourthworld.com> Message-ID: <9EC8C15A-FFE3-481D-8F1C-51A0DC082EFD@gmail.com> Mostly guessing here, but turning off auto rotation shouldn?t disable the accelerometer. You ought to be able to deduce if the device is now portrait, and that you haven?t had an orientation message. > On Jun 8, 2016, at 12:45 PM, Richard Gaskin wrote: > > Android lets us turn off auto-rotate, but it seems the mobileAllowedOrientations function only returns whatever value I've set. > > How can I determine whether the user has turned off auto-rotate? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Wed Jun 8 13:15:28 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 8 Jun 2016 10:15:28 -0700 Subject: Change LC Server default output encoding? Message-ID: <575852B0.1040608@fourthworld.com> How can one use UTF-8-encoded files with LC Server and have the encoding preserved? See this thread for background: http://forums.livecode.com/viewtopic.php?f=15&t=27385 -- 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 Jun 8 13:18:15 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Wed, 8 Jun 2016 18:18:15 +0100 Subject: Change LC Server default output encoding? In-Reply-To: <575852B0.1040608@fourthworld.com> References: <575852B0.1040608@fourthworld.com> Message-ID: On 08/06/2016 18:15, Richard Gaskin wrote: > How can one use UTF-8-encoded files with LC Server and have the encoding > preserved? > > See this thread for background: > http://forums.livecode.com/viewtopic.php?f=15&t=27385 Try putting the string "encoding: utf-8" somewhere in the first or second line of the server source file. Peter -- Dr Peter Brett LiveCode Technical Project Manager LiveCode 2016 Conference https://livecode.com/edinburgh-2016/ From ambassador at fourthworld.com Wed Jun 8 13:20:33 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 8 Jun 2016 10:20:33 -0700 Subject: Effective allowed orientation? In-Reply-To: <9EC8C15A-FFE3-481D-8F1C-51A0DC082EFD@gmail.com> References: <9EC8C15A-FFE3-481D-8F1C-51A0DC082EFD@gmail.com> Message-ID: <575853E1.6070300@fourthworld.com> Colin Holgate wrote: >> On Jun 8, 2016, at 12:45 PM, Richard Gaskin wrote: >> >> Android lets us turn off auto-rotate, but it seems the >> mobileAllowedOrientations function only returns whatever value > I've set. >> >> How can I determine whether the user has turned off auto-rotate? >> > > Mostly guessing here, but turning off auto rotation shouldn?t disable > the accelerometer. You ought to be able to deduce if the device is > now portrait, and that you haven?t had an orientation message. That's exactly the problem: LiveCode changes orientation regardless of what the user's auto-rotate setting is. Bug? -- 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 Jun 8 13:24:42 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 8 Jun 2016 10:24:42 -0700 Subject: Change LC Server default output encoding? In-Reply-To: References: Message-ID: <575854DA.1020008@fourthworld.com> Peter TB Brett wrote: > On 08/06/2016 18:15, Richard Gaskin wrote: >> How can one use UTF-8-encoded files with LC Server and have the encoding >> preserved? >> >> See this thread for background: >> http://forums.livecode.com/viewtopic.php?f=15&t=27385 > > Try putting the string "encoding: utf-8" somewhere in the first or > second line of the server source file. Thanks. That'll help for new pages created for LC Server, but the challenge that user has is she also has many legacy pages in which she hasn't yet added LC tags, and she's like to have the UTF-8 encoding preserved when LC returns them to Apache. Is there a way to specify default output encoding with LC Server? Should there be? UTF-8 seems to be the most commonly used by other other systems. -- 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 colinholgate at gmail.com Wed Jun 8 13:30:58 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Wed, 8 Jun 2016 13:30:58 -0400 Subject: Effective allowed orientation? In-Reply-To: <575853E1.6070300@fourthworld.com> References: <9EC8C15A-FFE3-481D-8F1C-51A0DC082EFD@gmail.com> <575853E1.6070300@fourthworld.com> Message-ID: <6085668A-DFE4-4829-AC5C-A9E3F8F78BFC@gmail.com> It may be debatable. If you have an app that does different things in portrait an landscape, it?s handy if LiveCode ignores the device settings. If you have a landscape-only app that swings around to the upside-down view, then that would be wrong. > On Jun 8, 2016, at 1:20 PM, Richard Gaskin wrote: > > Colin Holgate wrote: > > >> On Jun 8, 2016, at 12:45 PM, Richard Gaskin wrote: > >> > >> Android lets us turn off auto-rotate, but it seems the > >> mobileAllowedOrientations function only returns whatever value > > I've set. > >> > >> How can I determine whether the user has turned off auto-rotate? > >> > > > > Mostly guessing here, but turning off auto rotation shouldn?t disable > > the accelerometer. You ought to be able to deduce if the device is > > now portrait, and that you haven?t had an orientation message. > > That's exactly the problem: LiveCode changes orientation regardless of what the user's auto-rotate setting is. > > Bug? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Wed Jun 8 13:39:28 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 8 Jun 2016 10:39:28 -0700 Subject: Effective allowed orientation? In-Reply-To: <6085668A-DFE4-4829-AC5C-A9E3F8F78BFC@gmail.com> References: <6085668A-DFE4-4829-AC5C-A9E3F8F78BFC@gmail.com> Message-ID: <57585850.8080104@fourthworld.com> Colin Holgate wrote: >> On Jun 8, 2016, at 1:20 PM, Richard Gaskin wrote: >> >> Colin Holgate wrote: >> >> >> On Jun 8, 2016, at 12:45 PM, Richard Gaskin wrote: >> >> >> >> Android lets us turn off auto-rotate, but it seems the >> >> mobileAllowedOrientations function only returns whatever value >> > I've set. >> >> >> >> How can I determine whether the user has turned off auto-rotate? >> >> >> > >> > Mostly guessing here, but turning off auto rotation shouldn?t >> > disable the accelerometer. You ought to be able to deduce if the >> > device is now portrait, and that you haven?t had an orientation >> > message. >> >> That's exactly the problem: LiveCode changes orientation regardless >> of what the user's auto-rotate setting is. >> >> Bug? > > It may be debatable. If you have an app that does different things in > portrait an landscape, it?s handy if LiveCode ignores the device > settings. If you have a landscape-only app that swings around to the > upside-down view, then that would be wrong. Agreed, certain types of apps may require specific orientation other than the one the user has locked their device to. But on the other hand, most apps will want to respect the user's orientation choice. I'm gathering we currently have no means of determining if the user has turned off auto-rotate. I can submit an enhancement request for that, but if that's needed I'm surprised others aren't hearing back from customers on this. Any suggestions on how this should work? A function, maybe something like mobileOrientationLocked? -- 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 mark at livecode.com Wed Jun 8 14:31:03 2016 From: mark at livecode.com (Mark Waddingham) Date: Wed, 08 Jun 2016 20:31:03 +0200 Subject: Change LC Server default output =?UTF-8?Q?encoding=3F?= In-Reply-To: <575854DA.1020008@fourthworld.com> References: <575854DA.1020008@fourthworld.com> Message-ID: On 2016-06-08 19:24, Richard Gaskin wrote: > Is there a way to specify default output encoding with LC Server? > Should there be? UTF-8 seems to be the most commonly used by other > other systems. Take a look at the outputTextEncoding and the outputLineEndings global properties - these control the format of text emitted by LC Server. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From ambassador at fourthworld.com Wed Jun 8 14:57:22 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 8 Jun 2016 11:57:22 -0700 Subject: Change LC Server default output encoding? In-Reply-To: References: Message-ID: <57586A92.1080503@fourthworld.com> Mark Waddingham wrote: > On 2016-06-08 19:24, Richard Gaskin wrote: >> Is there a way to specify default output encoding with LC Server? >> Should there be? UTF-8 seems to be the most commonly used by other >> other systems. > > Take a look at the outputTextEncoding and the outputLineEndings > global properties - these control the format of text emitted by > LC Server. Thanks. Any way to set those from the command line or a config file? This poster's circumstance is definitely an edge case, but she's hoping to be able to serve legacy files in addition to those that have LC tags, with the intention of adding any specific functionality she needs later on, so for now an ideal solution would be one which doesn't require modifying each page: http://forums.livecode.com/viewtopic.php?f=15&t=27385 -- 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 Jun 8 16:09:31 2016 From: paul at researchware.com (Paul Dupuis) Date: Wed, 08 Jun 2016 16:09:31 -0400 Subject: The 'startup' message not working in IDE Message-ID: <57587B7B.6020006@researchware.com> In LiveCode 6.7.11 and 8.1.0rc1 the startup message is send to your main stack when the mainstack is built as a standalone. However, if you open your stack in the IDE, the startup message is never received You can test this by making a new stack with the following script in the stack script: on startup answer "Startup message received" quit end startup save the stack and build it as a standalone Open the stack in LC and notice no answer dialog appears. Run the standalone and the answer dialog appears and then the app quits when the answer is responded to. I assume the IDE is receiving the start up message since the documentation says 'startup' is send only once to the first start that is opened. I think this should be a "bug". In general, any message a standalone could receive should be presented in the IDE for effective debugging. I think the IDE should pass the startup message to the first NON-IDE stack being opened. Having a message like 'startup' that is sent only ONCE is pretty handy, but if it can't be debugged in the IDE, it reduced its value. Before I submit this as a bug, especially since this "bug" seems to be the behavior that has been in place for some time, i want to poll the LC community and see if other agree it is an IDE bug and 'startup' should be received by your first stack opened? From monte at appisle.net Wed Jun 8 16:14:23 2016 From: monte at appisle.net (Monte Goulding) Date: Thu, 9 Jun 2016 06:14:23 +1000 Subject: The 'startup' message not working in IDE In-Reply-To: <57587B7B.6020006@researchware.com> References: <57587B7B.6020006@researchware.com> Message-ID: Hi Paul This is as intended. Startup goes to the first stack the engine runs not other stacks that are opened. Use preOpenStack for that. Cheers Monte Sent from my iPhone > On 9 Jun 2016, at 6:09 AM, Paul Dupuis wrote: > > In LiveCode 6.7.11 and 8.1.0rc1 the startup message is send to your main > stack when the mainstack is built as a standalone. However, if you open > your stack in the IDE, the startup message is never received > > You can test this by making a new stack with the following script in the > stack script: > on startup > answer "Startup message received" > quit > end startup > > save the stack and build it as a standalone > > Open the stack in LC and notice no answer dialog appears. Run the > standalone and the answer dialog appears and then the app quits when the > answer is responded to. > > I assume the IDE is receiving the start up message since the > documentation says 'startup' is send only once to the first start that > is opened. > > I think this should be a "bug". In general, any message a standalone > could receive should be presented in the IDE for effective debugging. I > think the IDE should pass the startup message to the first NON-IDE stack > being opened. > > Having a message like 'startup' that is sent only ONCE is pretty handy, > but if it can't be debugged in the IDE, it reduced its value. > > Before I submit this as a bug, especially since this "bug" seems to be > the behavior that has been in place for some time, i want to poll the LC > community and see if other agree it is an IDE bug and 'startup' should > be received by your first stack opened? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Wed Jun 8 16:23:32 2016 From: paul at researchware.com (Paul Dupuis) Date: Wed, 08 Jun 2016 16:23:32 -0400 Subject: The 'startup' message not working in IDE In-Reply-To: References: <57587B7B.6020006@researchware.com> Message-ID: <57587EC4.8070809@researchware.com> On 6/8/2016 4:14 PM, Monte Goulding wrote: > This is as intended. Startup goes to the first stack the engine runs not other stacks that are opened. Use preOpenStack for that. Yes, but should the IDE count as the "first stack" opened? I would argue that it should not. The first stack opened should always be the first USER stack opened as that is what happens in a Standalone - the IDE is not bundled into the standalone. The problem with substituting preOpenStack for startup is that preOpenStack could be invoked more than once after starting up, but startup is sent only once. I realize there are work-around for startup not being sent when I open a project in the IDE, but it really seem to me it should be passed by the IDE. If it would be received by my stack in a standalone, it should be received by my stack in the IDE. From livfoss at mac.com Wed Jun 8 16:27:37 2016 From: livfoss at mac.com (Graham Samuel) Date: Wed, 08 Jun 2016 22:27:37 +0200 Subject: The 'startup' message not working in IDE In-Reply-To: References: <57587B7B.6020006@researchware.com> Message-ID: I like the way it works now. I usually have a startup handler in the first card of an app which gets things going, loads libraries etc. When I want to test the app in the IDE, I just execute send "startup" to cd "startcard" of stack "myinitialstack" from the message box. That way the test run only starts when I want it to start. Just my two Eurocents. Graham Sent from my iPad > On 8 Jun 2016, at 22:14, Monte Goulding wrote: > > Hi Paul > > This is as intended. Startup goes to the first stack the engine runs not other stacks that are opened. Use preOpenStack for that. > > Cheers > > Monte > > Sent from my iPhone > >> On 9 Jun 2016, at 6:09 AM, Paul Dupuis wrote: >> >> In LiveCode 6.7.11 and 8.1.0rc1 the startup message is send to your main >> stack when the mainstack is built as a standalone. However, if you open >> your stack in the IDE, the startup message is never received >> >> You can test this by making a new stack with the following script in the >> stack script: >> on startup >> answer "Startup message received" >> quit >> end startup >> >> save the stack and build it as a standalone >> >> Open the stack in LC and notice no answer dialog appears. Run the >> standalone and the answer dialog appears and then the app quits when the >> answer is responded to. >> >> I assume the IDE is receiving the start up message since the >> documentation says 'startup' is send only once to the first start that >> is opened. >> >> I think this should be a "bug". In general, any message a standalone >> could receive should be presented in the IDE for effective debugging. I >> think the IDE should pass the startup message to the first NON-IDE stack >> being opened. >> >> Having a message like 'startup' that is sent only ONCE is pretty handy, >> but if it can't be debugged in the IDE, it reduced its value. >> >> Before I submit this as a bug, especially since this "bug" seems to be >> the behavior that has been in place for some time, i want to poll the LC >> community and see if other agree it is an IDE bug and 'startup' should >> be received by your first stack opened? >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Jun 8 16:29:35 2016 From: monte at appisle.net (Monte Goulding) Date: Thu, 9 Jun 2016 06:29:35 +1000 Subject: The 'startup' message not working in IDE In-Reply-To: <57587EC4.8070809@researchware.com> References: <57587B7B.6020006@researchware.com> <57587EC4.8070809@researchware.com> Message-ID: <3B650A7C-147E-4755-8401-E3B46E0FDFBD@appisle.net> One of the issues is lots of people over the years have put code in there they specifically don't want running in the IDE. I should have said standalone or home stack or stack passed go the open source standalone engine on the command line. I wonder if instead it would be feasible to pass a first run parameter to preOpenStack If the stack was reloaded from disk... It seems feasible and quite useful to me. Sent from my iPhone > On 9 Jun 2016, at 6:23 AM, Paul Dupuis wrote: > > If it would be received by my stack in a standalone, it should be > received by my stack in the IDE. From dunbarx at aol.com Wed Jun 8 16:30:31 2016 From: dunbarx at aol.com (dunbarx at aol.com) Date: Wed, 8 Jun 2016 16:30:31 -0400 Subject: The 'startup' message not working in IDE In-Reply-To: Message-ID: <15531b595da-5598-c496@webprd-m23.mail.aol.com> Paul. This was the way it worked in HC, but is different in LC. Craig Newman -----Original Message----- From: Monte Goulding To: How to use LiveCode Sent: Wed, Jun 8, 2016 4:16 pm Subject: Re: The 'startup' message not working in IDE Hi Paul This is as intended. Startup goes to the first stack the engine runs not other stacks that are opened. Use preOpenStack for that. Cheers Monte Sent from my iPhone > On 9 Jun 2016, at 6:09 AM, Paul Dupuis wrote: > > In LiveCode 6.7.11 and 8.1.0rc1 the startup message is send to your main > stack when the mainstack is built as a standalone. However, if you open > your stack in the IDE, the startup message is never received > > You can test this by making a new stack with the following script in the > stack script: > on startup > answer "Startup message received" > quit > end startup > > save the stack and build it as a standalone > > Open the stack in LC and notice no answer dialog appears. Run the > standalone and the answer dialog appears and then the app quits when the > answer is responded to. > > I assume the IDE is receiving the start up message since the > documentation says 'startup' is send only once to the first start that > is opened. > > I think this should be a "bug". In general, any message a standalone > could receive should be presented in the IDE for effective debugging. I > think the IDE should pass the startup message to the first NON-IDE stack > being opened. > > Having a message like 'startup' that is sent only ONCE is pretty handy, > but if it can't be debugged in the IDE, it reduced its value. > > Before I submit this as a bug, especially since this "bug" seems to be > the behavior that has been in place for some time, i want to poll the LC > community and see if other agree it is an IDE bug and 'startup' should > be received by your first stack opened? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Wed Jun 8 16:40:42 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 8 Jun 2016 20:40:42 +0000 (UTC) Subject: The 'startup' message not working in IDE References: <57587B7B.6020006@researchware.com> Message-ID: Paul Dupuis writes: > > In LiveCode 6.7.11 and 8.1.0rc1 the startup message is send to your main > stack when the mainstack is built as a standalone. However, if you open > your stack in the IDE, the startup message is never received As mentioned, this is by design, and it's quite a useful feature. I put code that I want to run *only* in a standalone environment in the startup handler, and initialization code that is common to both a standalone and development environment in the startXXX handlers. That said, if you really want to test the startup code in the IDE you can always execute directly, either from the message box or from a test control: command testStartup dispatch "startup" to card 1 end testStartup From monte at appisle.net Wed Jun 8 16:46:29 2016 From: monte at appisle.net (Monte Goulding) Date: Thu, 9 Jun 2016 06:46:29 +1000 Subject: The 'startup' message not working in IDE In-Reply-To: References: <57587B7B.6020006@researchware.com> Message-ID: Or: local sFIrstRun = "true" on preOpenStack if the owner of the target is me then if the environment is "development" and sFIrstRun then startup end if put false into sFIrstRun end if end preOpenStack Sent from my iPhone > On 9 Jun 2016, at 6:40 AM, Mark Wieder wrote: > > Paul Dupuis writes: > >> >> In LiveCode 6.7.11 and 8.1.0rc1 the startup message is send to your main >> stack when the mainstack is built as a standalone. However, if you open >> your stack in the IDE, the startup message is never received > > As mentioned, this is by design, and it's quite a useful feature. I put code that > I want to run *only* in a standalone environment in the startup handler, and > initialization code that is common to both a standalone and development > environment in the startXXX handlers. > > That said, if you really want to test the startup code in the IDE you can always > execute directly, either from the message box or from a test control: > > command testStartup > dispatch "startup" to card 1 > end testStartup > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Wed Jun 8 17:22:24 2016 From: paul at researchware.com (Paul Dupuis) Date: Wed, 08 Jun 2016 17:22:24 -0400 Subject: AW: The 'startup' message not working in IDE In-Reply-To: <57587B7B.6020006@researchware.com> References: <57587B7B.6020006@researchware.com> Message-ID: <57588C90.4090903@researchware.com> So, yes, I know there are a zillion work around. Boolean flags being the most classic method. I already has such a work-around in place. That said, it seems the consensus - so far - is that 'startup' only executing in the Standalone is a "feature" that people have come to use and expect, so I respect that changing would not be a good idea. That was why I polled the community, so thanks for the responses. From me at jerrydaniels.com Wed Jun 8 18:20:05 2016 From: me at jerrydaniels.com (Jerry Daniels) Date: Wed, 8 Jun 2016 17:20:05 -0500 Subject: mergExtSocket stuff Message-ID: <08ACFFFE-A0C6-446E-BF24-8857A9E1420A@jerrydaniels.com> Fellow socket addicts, I cannot seem to get a socket to open w mergSocketAcceptConnections. The code with it will not compile. ?Can?t find handler? error. Anyone else using and know the trick? Licensing not the issue. Best, Jerry From monte at appisle.net Wed Jun 8 18:23:08 2016 From: monte at appisle.net (Monte Goulding) Date: Thu, 9 Jun 2016 08:23:08 +1000 Subject: mergExtSocket stuff In-Reply-To: <08ACFFFE-A0C6-446E-BF24-8857A9E1420A@jerrydaniels.com> References: <08ACFFFE-A0C6-446E-BF24-8857A9E1420A@jerrydaniels.com> Message-ID: Hi Jerry mergSocket is iOS only (so it won?t function in the IDE) and is only really maintained for legacy reasons because the engine now supports mobile sockets so I would recommend just using the engine commands. Cheers Monte > On 9 Jun 2016, at 8:20 AM, Jerry Daniels wrote: > > Fellow socket addicts, > > I cannot seem to get a socket to open w mergSocketAcceptConnections. The code with it will not compile. ?Can?t find handler? error. > > Anyone else using and know the trick? Licensing not the issue. > > Best, Jerry > _______________________________________________ > use-livecode mailing list > use-livecode at 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.org Wed Jun 8 18:46:44 2016 From: alex at tweedly.org (Alex Tweedly) Date: Wed, 8 Jun 2016 23:46:44 +0100 Subject: Change LC Server default output encoding? In-Reply-To: <57586A92.1080503@fourthworld.com> References: <57586A92.1080503@fourthworld.com> Message-ID: Well, I am no expert on .htaccess, but it does seem to be powerful, so ..... Instead of simply having ,htaccess use LCS for all htm/html files, can it not rewrite the URL to run a particular LC script, and pass the original URL name as a parameter? Then the LCS script can simply output the relevant encoding statement, followed by the originally-requested html file. -- Alex. On 08/06/2016 19:57, Richard Gaskin wrote: > Mark Waddingham wrote: > > > On 2016-06-08 19:24, Richard Gaskin wrote: > >> Is there a way to specify default output encoding with LC Server? > >> Should there be? UTF-8 seems to be the most commonly used by other > >> other systems. > > > > Take a look at the outputTextEncoding and the outputLineEndings > > global properties - these control the format of text emitted by > > LC Server. > > Thanks. Any way to set those from the command line or a config file? > > This poster's circumstance is definitely an edge case, but she's > hoping to be able to serve legacy files in addition to those that have > LC tags, with the intention of adding any specific functionality she > needs later on, so for now an ideal solution would be one which > doesn't require modifying each page: > > http://forums.livecode.com/viewtopic.php?f=15&t=27385 > From gbojsza at gmail.com Wed Jun 8 18:53:11 2016 From: gbojsza at gmail.com (Glen Bojsza) Date: Wed, 8 Jun 2016 18:53:11 -0400 Subject: mergExtSocket stuff In-Reply-To: References: <08ACFFFE-A0C6-446E-BF24-8857A9E1420A@jerrydaniels.com> Message-ID: Are mobile sockets in LC 8.0.1? I checked the dictionary there are a lot of mobilexxx but not sockets...is there documentation somewhere else? regards, Glen On Wed, Jun 8, 2016 at 6:23 PM, Monte Goulding wrote: > Hi Jerry > > mergSocket is iOS only (so it won?t function in the IDE) and is only > really maintained for legacy reasons because the engine now supports mobile > sockets so I would recommend just using the engine commands. > > Cheers > > Monte > > > On 9 Jun 2016, at 8:20 AM, Jerry Daniels wrote: > > > > Fellow socket addicts, > > > > I cannot seem to get a socket to open w mergSocketAcceptConnections. The > code with it will not compile. ?Can?t find handler? error. > > > > Anyone else using and know the trick? Licensing not the issue. > > > > Best, Jerry > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From me at jerrydaniels.com Wed Jun 8 19:17:48 2016 From: me at jerrydaniels.com (Jerry Daniels) Date: Wed, 8 Jun 2016 18:17:48 -0500 Subject: mergExtSocket stuff? In-Reply-To: References: <08ACFFFE-A0C6-446E-BF24-8857A9E1420A@jerrydaniels.com> Message-ID: <9AA49B58-8495-41FC-924D-1FBCEFCEE272@jerrydaniels.com> Thanks for the quick reply, Monte! And congrats on your new position there at LC. Yeah, I noticed that the button in the Copy Files pane of the standalone settings lit up when I chose iOS. I was thinking of sending datagrams and your stuff seemed more straight-forward. With the engine stuff, do I just write to socket like I would ordinarily? Best, Jerry > On Jun 8, 2016, at 5:23 PM, Monte Goulding wrote: > > Hi Jerry > > mergSocket is iOS only (so it won?t function in the IDE) and is only really maintained for legacy reasons because the engine now supports mobile sockets so I would recommend just using the engine commands. > > Cheers > > Monte > >> On 9 Jun 2016, at 8:20 AM, Jerry Daniels wrote: >> >> Fellow socket addicts, >> >> I cannot seem to get a socket to open w mergSocketAcceptConnections. The code with it will not compile. ?Can?t find handler? error. >> >> Anyone else using and know the trick? Licensing not the issue. >> >> Best, Jerry >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Wed Jun 8 19:20:29 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 8 Jun 2016 23:20:29 +0000 (UTC) Subject: The 'startup' message not working in IDE References: <57587B7B.6020006@researchware.com> Message-ID: Monte Goulding writes: > > Or: > > local sFIrstRun = "true" > > on preOpenStack > if the owner of the target is me then > if the environment is "development" and sFIrstRun then > startup > end if > put false into sFIrstRun > end if > end preOpenStack 1: yes, but that rather defeats the purpose of having a separate routine for "startup", doesn't it? 2. I thought assigning values in a variable declaration was discouraged. -- Mark Wieder ahsoftware at gmail.com From monte at appisle.net Wed Jun 8 20:30:40 2016 From: monte at appisle.net (Monte Goulding) Date: Thu, 9 Jun 2016 10:30:40 +1000 Subject: mergExtSocket stuff? In-Reply-To: <9AA49B58-8495-41FC-924D-1FBCEFCEE272@jerrydaniels.com> References: <08ACFFFE-A0C6-446E-BF24-8857A9E1420A@jerrydaniels.com> <9AA49B58-8495-41FC-924D-1FBCEFCEE272@jerrydaniels.com> Message-ID: <7ACA4407-997E-4BE3-A642-79C1B862B865@appisle.net> > On 9 Jun 2016, at 9:17 AM, Jerry Daniels wrote: > > With the engine stuff, do I just write to socket like I would ordinarily? Yes I believe its the same as on desktop. Cheers Monte From jerry at jhjensen.com Wed Jun 8 20:37:42 2016 From: jerry at jhjensen.com (Jerry Jensen) Date: Wed, 8 Jun 2016 17:37:42 -0700 Subject: The 'startup' message not working in IDE In-Reply-To: References: <57587B7B.6020006@researchware.com> Message-ID: > On Jun 8, 2016, at 4:20 PM, Mark Wieder wrote: > > I thought assigning values in a variable declaration was discouraged. I probably missed that memo, I haven?t been keeping up as much as I should. I?m not in the habit of doing that except with constants, but should I avoid letting it become a habit? .Jerry From monte at appisle.net Wed Jun 8 20:46:05 2016 From: monte at appisle.net (Monte Goulding) Date: Thu, 9 Jun 2016 10:46:05 +1000 Subject: The 'startup' message not working in IDE In-Reply-To: References: <57587B7B.6020006@researchware.com> Message-ID: <5E5E8D92-22D0-4934-9AD6-950E8E7FFBE9@appisle.net> > On 9 Jun 2016, at 9:20 AM, Mark Wieder wrote: > > 1: yes, but that rather defeats the purpose of having a separate routine > for "startup", doesn't it? Well the original request was for a startup handler to be called on first run of a stack in the IDE so it does that. > > 2. I thought assigning values in a variable declaration was discouraged. Discouraged by whom? I guess you could check for empty if it?s an issue. I can?t see any mention of it in the FourthWorld scripting style guide: http://fourthworld.com/embassy/articles/scriptstyle.html#Variables It is most certainly an issue if it?s possible for the script to iterate over it again (I wouldn?t mind a script parser option to throw an error on that) because the value is not reassigned which we discussed the other day. I think it?s a bug as there?s really no reason the local command can?t reassign the value. It?s possibly too dangerous to fix but it does seem unlikely that someone would write `local tVar = 1` and not want it 1 every time the script executed that. Perhaps you could raise it in the panel discussion on scripting styles at the conference which you are in. Cheers Monte From dsc at swcp.com Wed Jun 8 20:50:36 2016 From: dsc at swcp.com (Dar Scott) Date: Wed, 8 Jun 2016 18:50:36 -0600 Subject: The 'startup' message not working in IDE In-Reply-To: References: <57587B7B.6020006@researchware.com> Message-ID: <5655B95C-28FB-4539-BD08-40688D880E18@swcp.com> I'm curious about this, too. I often assign values for script variables. > On Jun 8, 2016, at 6:37 PM, Jerry Jensen wrote: > > >> On Jun 8, 2016, at 4:20 PM, Mark Wieder wrote: >> >> I thought assigning values in a variable declaration was discouraged. > > I probably missed that memo, I haven?t been keeping up as much as I should. > I?m not in the habit of doing that except with constants, but should I avoid letting it become a habit? > .Jerry > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 hh.on-rev.com Wed Jun 8 21:48:38 2016 From: hh at hh.on-rev.com (-hh) Date: Wed, 8 Jun 2016 18:48:38 -0700 (PDT) Subject: OT: Once more In-Reply-To: References: <1465335387539-4705535.post@n4.nabble.com> <1465372266598-4705549.post@n4.nabble.com> Message-ID: <1465436918130-4705584.post@n4.nabble.com> Forgot to mention in case of using DHCP: Newer OS on Mac Desktop enforces me after each WIFI change (on a Raspi) in the local net to = delete the corresponding entries in ~/.ssh/known_hosts = sometimes even empty the file ~/.ssh/known_hosts or any connection that uses internally a line of 'ssh-talk' will die. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Once-more-tp4705524p4705584.html Sent from the Revolution - User mailing list archive at Nabble.com. From mwieder at ahsoftware.net Wed Jun 8 22:27:10 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 8 Jun 2016 19:27:10 -0700 Subject: The 'startup' message not working in IDE In-Reply-To: <5655B95C-28FB-4539-BD08-40688D880E18@swcp.com> References: <57587B7B.6020006@researchware.com> <5655B95C-28FB-4539-BD08-40688D880E18@swcp.com> Message-ID: <5758D3FE.301@ahsoftware.net> On 06/08/2016 05:50 PM, Dar Scott wrote: > I'm curious about this, too. > > I often assign values for script variables. I'm used to doing that as well in most other environments. Maybe it's just my faulty memory, but I think I remember discussions here about not relying on assigning values to local or script variables at declaration time because it's not an officially supported syntax. I've stayed away from doing it for that reason, and I'd be quite happy to be wrong about this. Possibly the engine/parser now supports this syntax, possibly I'm misremembering or thinking of a different discussion of a different topic... -- Mark Wieder ahsoftware at gmail.com From jerry at jhjensen.com Wed Jun 8 22:40:10 2016 From: jerry at jhjensen.com (Jerry Jensen) Date: Wed, 8 Jun 2016 19:40:10 -0700 Subject: The 'startup' message not working in IDE In-Reply-To: <5758D3FE.301@ahsoftware.net> References: <57587B7B.6020006@researchware.com> <5655B95C-28FB-4539-BD08-40688D880E18@swcp.com> <5758D3FE.301@ahsoftware.net> Message-ID: <64D99EC6-7DB7-44E3-B722-922C8A93EE85@jhjensen.com> The dictionary claims that it is legal syntax (in 7 and 8). The example therein shows that handler locals can be declared and assigned values at runtime using a do in a loop. I would never have thought of that! .Jerry > On Jun 8, 2016, at 7:27 PM, Mark Wieder wrote: > > On 06/08/2016 05:50 PM, Dar Scott wrote: >> I'm curious about this, too. >> >> I often assign values for script variables. > > I'm used to doing that as well in most other environments. > Maybe it's just my faulty memory, but I think I remember discussions here about not relying on assigning values to local or script variables at declaration time because it's not an officially supported syntax. > > I've stayed away from doing it for that reason, and I'd be quite happy to be wrong about this. Possibly the engine/parser now supports this syntax, possibly I'm misremembering or thinking of a different discussion of a different topic... > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Thu Jun 9 00:15:04 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 8 Jun 2016 21:15:04 -0700 Subject: The 'startup' message not working in IDE In-Reply-To: <64D99EC6-7DB7-44E3-B722-922C8A93EE85@jhjensen.com> References: <57587B7B.6020006@researchware.com> <5655B95C-28FB-4539-BD08-40688D880E18@swcp.com> <5758D3FE.301@ahsoftware.net> <64D99EC6-7DB7-44E3-B722-922C8A93EE85@jhjensen.com> Message-ID: <5758ED48.7090504@ahsoftware.net> On 06/08/2016 07:40 PM, Jerry Jensen wrote: > The dictionary claims that it is legal syntax (in 7 and 8). The example therein shows that handler locals can be declared and assigned values at runtime using a do in a loop. I would never have thought of that! If you're referring to the dictionary example repeat with x=1 to 20 do "local tVar_" & x & "; put empty into tVar_" & x end repeat then that's two separate commands, which is different from local tVar3 = empty -- Mark Wieder ahsoftware at gmail.com From richmondmathewson at gmail.com Thu Jun 9 02:13:24 2016 From: richmondmathewson at gmail.com (RM) Date: Thu, 9 Jun 2016 09:13:24 +0300 Subject: [a bit OT] Apple Store Message-ID: <57590904.8080201@gmail.com> http://www.bbc.com/news/technology-36486556 Richmond. From dixonja at hotmail.co.uk Thu Jun 9 02:15:11 2016 From: dixonja at hotmail.co.uk (John Dixon) Date: Thu, 9 Jun 2016 07:15:11 +0100 Subject: [a bit OT] Apple Store In-Reply-To: <57590904.8080201@gmail.com> References: <57590904.8080201@gmail.com> Message-ID: Yes... that article put a smile on my face when reading it over breakfast this morning...:-) > To: use-livecode at lists.runrev.com > From: richmondmathewson at gmail.com > Subject: [a bit OT] Apple Store > Date: Thu, 9 Jun 2016 09:13:24 +0300 > > http://www.bbc.com/news/technology-36486556 > > 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 Thu Jun 9 05:07:16 2016 From: dave at applicationinsight.com (Dave Kilroy) Date: Thu, 9 Jun 2016 10:07:16 +0100 Subject: [a bit OT] Apple Store Message-ID: <9E9798BA-689E-4DF5-8072-B66F0D0F7BB8@applicationinsight.com> The thing I?m currently most interested in is that the time Apple takes to review your product has fallen from more than a week to a day or less :) > Yes... that article put a smile on my face when reading it over breakfast this morning...:-) > > > To: [hidden email] > > From: [hidden email] > > Subject: [a bit OT] Apple Store > > Date: Thu, 9 Jun 2016 09:13:24 +0300 > > > > http://www.bbc.com/news/technology-36486556 > > > > Richmond. > > > > _______________________________________________ > > 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 Dave Kilroy Application Insight Web: www.applicationinsight.com Email: dave at applicationinsight.com Twitter: @App_Insight_ Tel: (01752) 671 418 Application Insight Ltd is a company registered in England (no: 05761203) Registered Office: 22 Hartley Park Gardens, Plymouth PL3 5HU http://www.applicationinsight.com The contents and any attachments of this electronic mail message are confidential and intended only for the named addressees. Dissemination, forwarding, publication or other use of the message or attachments by any unauthorised person is strictly prohibited. Unless stated to the contrary, any opinions expressed in this message are personal and may not be attributed to Application Insight Ltd. From benr_mc at cogapp.com Thu Jun 9 06:01:37 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 9 Jun 2016 11:01:37 +0100 Subject: Clipboard access on mobile? Message-ID: <2726b2ba-78b8-6050-2e36-b7d9a1a5f8b0@cogapp.com> Is there any way to access the clipboard on mobile yet? My immediate need is just to read the contents of the clipboard , though in principle it would be useful to be able to write it as well. (I've got a small utility, and I'd like it to be able to inspect the clipboard when the app launches, and offer to do something useful if the contents are appropriate.) Many thanks, Ben From peter.brett at livecode.com Thu Jun 9 06:09:51 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Thu, 9 Jun 2016 11:09:51 +0100 Subject: Clipboard access on mobile? In-Reply-To: <2726b2ba-78b8-6050-2e36-b7d9a1a5f8b0@cogapp.com> References: <2726b2ba-78b8-6050-2e36-b7d9a1a5f8b0@cogapp.com> Message-ID: <67ca263d-7a7d-1b94-ba46-996430bdaf72@livecode.com> On 09/06/2016 11:01, Ben Rubinstein wrote: > Is there any way to access the clipboard on mobile yet? > > My immediate need is just to read the contents of the clipboard , though > in principle it would be useful to be able to write it as well. > > (I've got a small utility, and I'd like it to be able to inspect the > clipboard when the app launches, and offer to do something useful if the > contents are appropriate.) Not at the moment, but it's on my "things that need to be done" list. Adding iOS clipboard support probably wouldn't be extremely difficult, because the API is very similar to the OS X API; I suspect it would be possible to more-or-less copy & paste the relevant code and tweak it a bit. Adding Android clipboard support would require a lot more work. Peter -- Dr Peter Brett LiveCode Technical Project Manager LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ From roger.e.eller at sealedair.com Thu Jun 9 08:13:46 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 9 Jun 2016 08:13:46 -0400 Subject: Clipboard access on mobile? In-Reply-To: <67ca263d-7a7d-1b94-ba46-996430bdaf72@livecode.com> References: <2726b2ba-78b8-6050-2e36-b7d9a1a5f8b0@cogapp.com> <67ca263d-7a7d-1b94-ba46-996430bdaf72@livecode.com> Message-ID: I would suggest that you do Android first then, and save iOS for dessert. Otherwise, parity will never happen. ~Roger On Jun 9, 2016 6:10 AM, "Peter TB Brett" wrote: > On 09/06/2016 11:01, Ben Rubinstein wrote: > >> Is there any way to access the clipboard on mobile yet? >> >> My immediate need is just to read the contents of the clipboard , though >> in principle it would be useful to be able to write it as well. >> >> (I've got a small utility, and I'd like it to be able to inspect the >> clipboard when the app launches, and offer to do something useful if the >> contents are appropriate.) >> > > Not at the moment, but it's on my "things that need to be done" list. > > Adding iOS clipboard support probably wouldn't be extremely difficult, > because the API is very similar to the OS X API; I suspect it would be > possible to more-or-less copy & paste the relevant code and tweak it a bit. > > Adding Android clipboard support would require a lot more work. > > Peter > > -- > Dr Peter Brett > LiveCode Technical Project Manager > > LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From livfoss at mac.com Thu Jun 9 09:52:20 2016 From: livfoss at mac.com (Graham Samuel) Date: Thu, 09 Jun 2016 15:52:20 +0200 Subject: Another way of approaching LC8? Message-ID: Having been burnt by the BMI Calculator example, what would listers suggest as the shortest way to get familiar with LC8 without reading an enormous amount of text? I would count myself as a pretty experienced LiveCode programmer, so that?s where I?m starting from. Maybe I should just take an existing program, open it and see what happens? But then widgets would remain a closed book, which isn?t the intention. I had a quick look at the HTML 5 side of things and at the dictionary, and both scared me. I don?t feel I?m in Kansas any more. How did you guys do it? TIA Graham From ambassador at fourthworld.com Thu Jun 9 10:33:29 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 9 Jun 2016 07:33:29 -0700 Subject: Another way of approaching LC8? In-Reply-To: References: Message-ID: <57597E39.6060102@fourthworld.com> Graham Samuel wrote: > Having been burnt by the BMI Calculator example, what would listers > suggest as the shortest way to get familiar with LC8 without reading > an enormous amount of text? I would count myself as a pretty > experienced LiveCode programmer, so that?s where I?m starting from. > > Maybe I should just take an existing program, open it and see what > happens? Yes. > But then widgets would remain a closed book, which isn?t the > intention. Use them now, write them later. > I had a quick look at the HTML 5 side of things and at the > dictionary, and both scared me. I don?t feel I?m in Kansas any more. Skip it for now and get back to it when you need it. > How did you guys do it? I learn what I need when I need 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 richmondmathewson at gmail.com Thu Jun 9 10:49:07 2016 From: richmondmathewson at gmail.com (RM) Date: Thu, 9 Jun 2016 17:49:07 +0300 Subject: Another way of approaching LC8? In-Reply-To: References: Message-ID: <575981E3.50102@gmail.com> Well, I'm just playing with it in my spare time: that's how I learnt Hypercard, Toolbook, Director, and Runtime Revolution 1.1.1 (that's Livecode to you). I have never found books on how to program make any sense whatsoever to me; and that is one of the reasons (apart from innate idleness) that I haven't got round to writing a "Livecode for Kiddies" book. I learnt MiniFortran, BASIC, FORTRAN IV and PASCAL by messing around at blind terminals; and, from the bottom of my heart, I am so glad I don't ever have to do that again because of environments such as Livecode. After all, you can mess around with Livecode 8 "in the privacy of your own room" [ and most of us aren't the types to video our bedroom games and plaster the film all over the internet, are we now?] and what happens is just between you, your computer and Livecode. Richmond. On 9.06.2016 16:52, Graham Samuel wrote: > Having been burnt by the BMI Calculator example, what would listers suggest as the shortest way to get familiar with LC8 without reading an enormous amount of text? I would count myself as a pretty experienced LiveCode programmer, so that?s where I?m starting from. > > Maybe I should just take an existing program, open it and see what happens? But then widgets would remain a closed book, which isn?t the intention. > > I had a quick look at the HTML 5 side of things and at the dictionary, and both scared me. I don?t feel I?m in Kansas any more. > > How did you guys do it? > > TIA > > Graham > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Thu Jun 9 10:52:43 2016 From: richmondmathewson at gmail.com (RM) Date: Thu, 9 Jun 2016 17:52:43 +0300 Subject: Another way of approaching LC8? In-Reply-To: <57597E39.6060102@fourthworld.com> References: <57597E39.6060102@fourthworld.com> Message-ID: <575982BB.2080108@gmail.com> On 9.06.2016 17:33, Richard Gaskin wrote: > Graham Samuel wrote: > > > Having been burnt by the BMI Calculator example, what would listers > > suggest as the shortest way to get familiar with LC8 without reading > > an enormous amount of text? I would count myself as a pretty > > experienced LiveCode programmer, so that?s where I?m starting from. > > > > Maybe I should just take an existing program, open it and see what > > happens? > > Yes. > > > > But then widgets would remain a closed book, which isn?t the > > intention. > > Use them now, write them later. > > > > I had a quick look at the HTML 5 side of things and at the > > dictionary, and both scared me. I don?t feel I?m in Kansas any more. No, you're not, but as I'm the Cowardly Lion . . . And Livecode 8 does look as though it might well lead to the Emerald City; and it doesn't seem that the Wizard of Livecode is not just some bloke behind a curtain doing the old "Smoke and Mirrors". > > Skip it for now and get back to it when you need it. > > > > How did you guys do it? > > I learn what I need when I need it. > Learning what you need when you need it is very good advice indeed: it has kept my head above water for about 40 years! AND: what about the Use-List and the Forums we all know and love? Richmond. From heather at livecode.com Thu Jun 9 10:56:57 2016 From: heather at livecode.com (Heather Laine) Date: Thu, 9 Jun 2016 15:56:57 +0100 Subject: Unpaid Pledges on Infinite LiveCode Campaign Message-ID: <23956AEA-5806-40DA-819A-55066C720241@livecode.com> Dear List Folks, We are somewhat concerned that quite a few pledges for the Infinite LiveCode campaign remain unpaid. It is possible that some of our payment request emails are going into spam folders. If you pledged for the campaign, and you do not recall having paid your pledge yet, could you check your spam folders and/or contact support for payment instructions? That's support at livecode.com. The level of non-payment is such that it may impact the amount we put towards the Field Object campaign. We are extremely reluctant to reduce that amount, so if you haven't paid yet, please, please, do so asap! Warm Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From francois.chaplais at mines-paristech.fr Thu Jun 9 11:01:14 2016 From: francois.chaplais at mines-paristech.fr (=?utf-8?Q?Fran=C3=A7ois_Chaplais?=) Date: Thu, 9 Jun 2016 17:01:14 +0200 Subject: Unpaid Pledges on Infinite LiveCode Campaign In-Reply-To: <23956AEA-5806-40DA-819A-55066C720241@livecode.com> References: <23956AEA-5806-40DA-819A-55066C720241@livecode.com> Message-ID: <329FB78D-39DF-4792-9BBF-FFEC40705DBB@mines-paristech.fr> my invoice was indeed buried is a ton of spam messages, that fortunately I scan more or less regularly. Fran?ois > Le 9 juin 2016 ? 16:56, Heather Laine a ?crit : > > Dear List Folks, > > We are somewhat concerned that quite a few pledges for the Infinite LiveCode campaign remain unpaid. It is possible that some of our payment request emails are going into spam folders. If you pledged for the campaign, and you do not recall having paid your pledge yet, could you check your spam folders and/or contact support for payment instructions? That's support at livecode.com. > > The level of non-payment is such that it may impact the amount we put towards the Field Object campaign. We are extremely reluctant to reduce that amount, so if you haven't paid yet, please, please, do so asap! > > Warm Regards, > > Heather > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.com > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lfredricks at proactive-intl.com Thu Jun 9 11:11:51 2016 From: lfredricks at proactive-intl.com (Lynn Fredricks) Date: Thu, 9 Jun 2016 08:11:51 -0700 Subject: [a bit OT] Apple Store In-Reply-To: <57590904.8080201@gmail.com> References: <57590904.8080201@gmail.com> Message-ID: > http://www.bbc.com/news/technology-36486556 I never thought 30% to be too high as generally speaking, any reseller will expect between 20-30%. Moving to a larger than 12 month subscription model means more revenue for Apple. Customers who have subscriptions certainly would rather handle them all through a single interface. For suppliers (that's you and me) who are smart enough to have both Apple Store and non Apple Store sales, it would make it less likely that a user would buy a first version from Apple and then all subsequent versions directly from the vendor. Also, strongly pushing a subscription model through all its channels makes it easier to move Apple products to a subscription model. Even with Adobe and Autodesk moving everything to subscription models, there are still a lot of 'rebel scum' clinging to their old fashioned licensing models. Best regards, Lynn Fredricks Paradigma Software http://www.paradigmasoft.com Valentina SQL Server: The Ultra-fast, Royalty Free Database Server From sims at ezpzapps.com Thu Jun 9 11:11:56 2016 From: sims at ezpzapps.com (Jim sims) Date: Thu, 9 Jun 2016 16:11:56 +0100 Subject: Another way of approaching LC8? In-Reply-To: References: Message-ID: Graham - what I've just done is signed on to the $49 Conference offer as it includes one month of email access to the LC gurus, unlimited questions but one month only. I'm hoping that will help me with learning LC 8 plus help me out in other ways. sims On Thu, Jun 9, 2016 at 2:52 PM, Graham Samuel wrote: > Having been burnt by the BMI Calculator example, what would listers > suggest as the shortest way to get familiar with LC8 without reading an > enormous amount of text? I would count myself as a pretty experienced > LiveCode programmer, so that?s where I?m starting from. > > Maybe I should just take an existing program, open it and see what > happens? But then widgets would remain a closed book, which isn?t the > intention. > > I had a quick look at the HTML 5 side of things and at the dictionary, and > both scared me. I don?t feel I?m in Kansas any more. > > How did you guys do it? > > TIA > > Graham > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Thu Jun 9 11:28:55 2016 From: paul at researchware.com (Paul Dupuis) Date: Thu, 09 Jun 2016 11:28:55 -0400 Subject: Unpaid Pledges on Infinite LiveCode Campaign In-Reply-To: <23956AEA-5806-40DA-819A-55066C720241@livecode.com> References: <23956AEA-5806-40DA-819A-55066C720241@livecode.com> Message-ID: <57598B37.1060203@researchware.com> On 6/9/2016 10:56 AM, Heather Laine wrote: > Dear List Folks, > > We are somewhat concerned that quite a few pledges for the Infinite LiveCode campaign remain unpaid. It is possible that some of our payment request emails are going into spam folders. If you pledged for the campaign, and you do not recall having paid your pledge yet, could you check your spam folders and/or contact support for payment instructions? That's support at livecode.com. > > The level of non-payment is such that it may impact the amount we put towards the Field Object campaign. We are extremely reluctant to reduce that amount, so if you haven't paid yet, please, please, do so asap! Heather, If a person logs into their account on LiveCode.com and looks under My Invoices, they can see their invoice for their Pledge, but is there an indication if it has been paid? I see some Woldpay IDs at the bottom, but nothing clear to indicate "paid in full". Is there some other where people can check online to confirm they have paid? From heather.williams11 at btinternet.com Thu Jun 9 11:44:08 2016 From: heather.williams11 at btinternet.com (Heather Laine) Date: Thu, 9 Jun 2016 16:44:08 +0100 Subject: Unpaid Pledges on Infinite LiveCode Campaign In-Reply-To: <57598B37.1060203@researchware.com> References: <23956AEA-5806-40DA-819A-55066C720241@livecode.com> <57598B37.1060203@researchware.com> Message-ID: <96E4793B-019A-4496-8968-D3B8E50FDA12@btinternet.com> If you have an invoice with an ID that starts with ST then you have definitely paid. This is the automatic receipt generated when you make your payment, you can't get an invoice ID starting ST without having paid. If you paid by contacting support and we manually generated an invoice for you, then it will have "MA" starting the invoice ID, and you can contact me to check your payment status if you are unsure. I hope this helps, Regards, Heather > On 9 Jun 2016, at 16:28, Paul Dupuis wrote: > > On 6/9/2016 10:56 AM, Heather Laine wrote: >> Dear List Folks, >> >> We are somewhat concerned that quite a few pledges for the Infinite LiveCode campaign remain unpaid. It is possible that some of our payment request emails are going into spam folders. If you pledged for the campaign, and you do not recall having paid your pledge yet, could you check your spam folders and/or contact support for payment instructions? That's support at livecode.com. >> >> The level of non-payment is such that it may impact the amount we put towards the Field Object campaign. We are extremely reluctant to reduce that amount, so if you haven't paid yet, please, please, do so asap! > > Heather, > > If a person logs into their account on LiveCode.com and looks under My > Invoices, they can see their invoice for their Pledge, but is there an > indication if it has been paid? I see some Woldpay IDs at the bottom, > but nothing clear to indicate "paid in full". > > Is there some other where people can check online to confirm they have paid? > > _______________________________________________ > use-livecode mailing list > use-livecode at 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.williams11 at btinternet.com Thu Jun 9 12:15:12 2016 From: heather.williams11 at btinternet.com (Heather Laine) Date: Thu, 9 Jun 2016 17:15:12 +0100 Subject: Unpaid Pledges on Infinite LiveCode Campaign In-Reply-To: <96E4793B-019A-4496-8968-D3B8E50FDA12@btinternet.com> References: <23956AEA-5806-40DA-819A-55066C720241@livecode.com> <57598B37.1060203@researchware.com> <96E4793B-019A-4496-8968-D3B8E50FDA12@btinternet.com> Message-ID: Replying to myself... I might add, if you do NOT have an invoice for your pledge in your LiveCode account, then you haven't paid. It could be that some people are under the impression that a payment went through when it did not. No invoice = we didn't get your payment. Regards, Heather > On 9 Jun 2016, at 16:44, Heather Laine wrote: > > If you have an invoice with an ID that starts with ST then you have definitely paid. This is the automatic receipt generated when you make your payment, you can't get an invoice ID starting ST without having paid. > > If you paid by contacting support and we manually generated an invoice for you, then it will have "MA" starting the invoice ID, and you can contact me to check your payment status if you are unsure. > > I hope this helps, > > Regards, > > Heather > >> On 9 Jun 2016, at 16:28, Paul Dupuis wrote: >> >> On 6/9/2016 10:56 AM, Heather Laine wrote: >>> Dear List Folks, >>> >>> We are somewhat concerned that quite a few pledges for the Infinite LiveCode campaign remain unpaid. It is possible that some of our payment request emails are going into spam folders. If you pledged for the campaign, and you do not recall having paid your pledge yet, could you check your spam folders and/or contact support for payment instructions? That's support at livecode.com. >>> >>> The level of non-payment is such that it may impact the amount we put towards the Field Object campaign. We are extremely reluctant to reduce that amount, so if you haven't paid yet, please, please, do so asap! >> >> Heather, >> >> If a person logs into their account on LiveCode.com and looks under My >> Invoices, they can see their invoice for their Pledge, but is there an >> indication if it has been paid? I see some Woldpay IDs at the bottom, >> but nothing clear to indicate "paid in full". >> >> Is there some other where people can check online to confirm they have paid? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dixonja at hotmail.co.uk Thu Jun 9 12:44:43 2016 From: dixonja at hotmail.co.uk (John Dixon) Date: Thu, 9 Jun 2016 17:44:43 +0100 Subject: Cost of app development... Message-ID: https://www.appgyver.com/ A link to this dropped into my mailbox... Whilst what it is supposed to be able to do seems to be very 'fashionable' and very 'whizzy', the main thought that entered my head after looking at the pricing page was... 'In future I will only mutter about the price of liveCode under my breath'... :-) From ambassador at fourthworld.com Thu Jun 9 13:06:57 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 9 Jun 2016 10:06:57 -0700 Subject: Cost of app development... In-Reply-To: References: Message-ID: <5759A231.7060108@fourthworld.com> John Dixon wrote: > https://www.appgyver.com/ > > A link to this dropped into my mailbox... Whilst what it is supposed > to be able to do seems to be very 'fashionable' and very 'whizzy', > the main thought that entered my head after looking at the pricing > page was... 'In future I will only mutter about the price of liveCode > under my breath'... :-) LOL And that's just for mobile - no desktop, where devs can make real money. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From richmondmathewson at gmail.com Thu Jun 9 13:14:59 2016 From: richmondmathewson at gmail.com (RM) Date: Thu, 9 Jun 2016 20:14:59 +0300 Subject: Cost of app development... In-Reply-To: References: Message-ID: <5759A413.90205@gmail.com> Maybe I'm a poisonous toad (OK, OK, don't answer that one: I am a poisonous toad), but I feel very funny about these claims: Battle-tested at 10,000 companies by 200,000 developers with over 100,000 apps. Craft your application in minutes [who is naive enough to fall for that one?] Certainly, if the first claim is true, surely at least one Livecode developer must have heard about appgyver before: anyone? Richmond. On 9.06.2016 19:44, John Dixon wrote: > https://www.appgyver.com/ > > A link to this dropped into my mailbox... Whilst what it is supposed to be able to do seems to be very 'fashionable' and very 'whizzy', the main thought that entered my head after looking at the pricing page was... 'In future I will only mutter about the price of liveCode under my breath'... :-) > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From me at jerrydaniels.com Thu Jun 9 14:23:20 2016 From: me at jerrydaniels.com (Jerry Daniels) Date: Thu, 9 Jun 2016 13:23:20 -0500 Subject: mergExt Markdown Message-ID: <677062E1-58F7-48D7-A52E-A37CCF6E7210@jerrydaniels.com> I cannot seem to get the mergExt markdown stuff to work in a standalone. Using 8.0.1 release version. Anyone else? From monte at appisle.net Thu Jun 9 15:47:02 2016 From: monte at appisle.net (Monte Goulding) Date: Fri, 10 Jun 2016 05:47:02 +1000 Subject: mergExt Markdown In-Reply-To: <677062E1-58F7-48D7-A52E-A37CCF6E7210@jerrydaniels.com> References: <677062E1-58F7-48D7-A52E-A37CCF6E7210@jerrydaniels.com> Message-ID: There were some issues with desktop mergExt inclusion in 8.0.1. 8.0.2 fixes it and 8.1 will bring some Ali awesomeness to the experience. Sent from my iPhone > On 10 Jun 2016, at 4:23 AM, Jerry Daniels wrote: > > I cannot seem to get the mergExt markdown stuff to work in a standalone. Using 8.0.1 release version. Anyone else? From me at jerrydaniels.com Thu Jun 9 16:04:13 2016 From: me at jerrydaniels.com (Jerry Daniels) Date: Thu, 9 Jun 2016 15:04:13 -0500 Subject: mergExt Markdown In-Reply-To: References: <677062E1-58F7-48D7-A52E-A37CCF6E7210@jerrydaniels.com> Message-ID: <0E429C81-BBBC-4D3D-8649-7581230F2BDF@jerrydaniels.com> Thx, Monte! ?Ali awesomeness?? > On Jun 9, 2016, at 2:47 PM, Monte Goulding wrote: > > There were some issues with desktop mergExt inclusion in 8.0.1. > > 8.0.2 fixes it and 8.1 will bring some Ali awesomeness to the experience. > > Sent from my iPhone > >> On 10 Jun 2016, at 4:23 AM, Jerry Daniels wrote: >> >> I cannot seem to get the mergExt markdown stuff to work in a standalone. Using 8.0.1 release version. Anyone else? > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 9 16:09:12 2016 From: monte at appisle.net (Monte Goulding) Date: Fri, 10 Jun 2016 06:09:12 +1000 Subject: mergExt Markdown In-Reply-To: <0E429C81-BBBC-4D3D-8649-7581230F2BDF@jerrydaniels.com> References: <677062E1-58F7-48D7-A52E-A37CCF6E7210@jerrydaniels.com> <0E429C81-BBBC-4D3D-8649-7581230F2BDF@jerrydaniels.com> Message-ID: <99980660-7B77-4A4D-906B-ED790D9C2519@appisle.net> > On 10 Jun 2016, at 6:04 AM, Jerry Daniels wrote: > > Thx, Monte! ?Ali awesomeness?? Ali from the LC team has worked some magic on standalone inclusions in 8.1. From me at jerrydaniels.com Thu Jun 9 17:09:06 2016 From: me at jerrydaniels.com (Jerry Daniels) Date: Thu, 9 Jun 2016 16:09:06 -0500 Subject: mergExt Markdown In-Reply-To: <0E429C81-BBBC-4D3D-8649-7581230F2BDF@jerrydaniels.com> References: <677062E1-58F7-48D7-A52E-A37CCF6E7210@jerrydaniels.com> <0E429C81-BBBC-4D3D-8649-7581230F2BDF@jerrydaniels.com> Message-ID: Monte, Just tested markdown with 8.0.2 rc1. As far as I can tell, it does not fix it. Is there something I need to do in SA setting to make it work? Best, Jerry > On Jun 9, 2016, at 3:04 PM, Jerry Daniels wrote: > > Thx, Monte! ?Ali awesomeness?? > >> On Jun 9, 2016, at 2:47 PM, Monte Goulding wrote: >> >> There were some issues with desktop mergExt inclusion in 8.0.1. >> >> 8.0.2 fixes it and 8.1 will bring some Ali awesomeness to the experience. >> >> Sent from my iPhone >> >>> On 10 Jun 2016, at 4:23 AM, Jerry Daniels wrote: >>> >>> I cannot seem to get the mergExt markdown stuff to work in a standalone. Using 8.0.1 release version. Anyone else? >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 9 17:21:34 2016 From: monte at appisle.net (Monte Goulding) Date: Fri, 10 Jun 2016 07:21:34 +1000 Subject: mergExt Markdown In-Reply-To: References: <677062E1-58F7-48D7-A52E-A37CCF6E7210@jerrydaniels.com> <0E429C81-BBBC-4D3D-8649-7581230F2BDF@jerrydaniels.com> Message-ID: > On 10 Jun 2016, at 7:09 AM, Jerry Daniels wrote: > > Just tested markdown with 8.0.2 rc1. As far as I can tell, it does not fix it. Is there something I need to do in SA setting to make it work? Are you including it on the copy files pane? From benr_mc at cogapp.com Thu Jun 9 18:52:05 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 9 Jun 2016 23:52:05 +0100 Subject: Clipboard access on mobile? In-Reply-To: <67ca263d-7a7d-1b94-ba46-996430bdaf72@livecode.com> References: <2726b2ba-78b8-6050-2e36-b7d9a1a5f8b0@cogapp.com> <67ca263d-7a7d-1b94-ba46-996430bdaf72@livecode.com> Message-ID: <777ad254-0fff-ad1b-942c-02e9f69b646d@cogapp.com> > I suspect it would be possible to > more-or-less copy & paste the relevant code Ironically enough. Thanks Peter! Ben On 09/06/2016 11:09, Peter TB Brett wrote: > On 09/06/2016 11:01, Ben Rubinstein wrote: >> Is there any way to access the clipboard on mobile yet? >> >> My immediate need is just to read the contents of the clipboard , though >> in principle it would be useful to be able to write it as well. >> >> (I've got a small utility, and I'd like it to be able to inspect the >> clipboard when the app launches, and offer to do something useful if the >> contents are appropriate.) > > Not at the moment, but it's on my "things that need to be done" list. > > Adding iOS clipboard support probably wouldn't be extremely difficult, because > the API is very similar to the OS X API; I suspect it would be possible to > more-or-less copy & paste the relevant code and tweak it a bit. > > Adding Android clipboard support would require a lot more work. > > Peter > From jerry at jhjensen.com Thu Jun 9 20:11:59 2016 From: jerry at jhjensen.com (Jerry Jensen) Date: Thu, 9 Jun 2016 17:11:59 -0700 Subject: The 'startup' message not working in IDE In-Reply-To: <5758ED48.7090504@ahsoftware.net> References: <57587B7B.6020006@researchware.com> <5655B95C-28FB-4539-BD08-40688D880E18@swcp.com> <5758D3FE.301@ahsoftware.net> <64D99EC6-7DB7-44E3-B722-922C8A93EE85@jhjensen.com> <5758ED48.7090504@ahsoftware.net> Message-ID: <903C00A6-98A3-4220-94D7-CB28E5E39C0D@jhjensen.com> True, true. in that example the ?;? separates the declaration command from the assignment command. My mistake. However, here is an example that does the assignment right in the declaration command, on the fly: It seems to work (!). Honestly, I half expected it to fail on the first do. on mouseUp local tStr, tOut put empty into tOut put empty into msg repeat with x=1 to 3 put "local tVar_" & x & "=" & 2*x into tStr do tStr put tStr & cr after msg put "put tVar_" & x & " after tOut" into tStr do tStr put tStr & cr after msg end repeat put tOut after msg end mouseUp .Jerry > On Jun 8, 2016, at 9:15 PM, Mark Wieder wrote: > > On 06/08/2016 07:40 PM, Jerry Jensen wrote: > >> The dictionary claims that it is legal syntax (in 7 and 8). The example therein shows that handler locals can be declared and assigned values at runtime using a do in a loop. I would never have thought of that! > > If you're referring to the dictionary example > > repeat with x=1 to 20 > do "local tVar_" & x & "; put empty into tVar_" & x > end repeat > > then that's two separate commands, which is different from > > local tVar3 = empty > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Thu Jun 9 18:38:10 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 9 Jun 2016 15:38:10 -0700 Subject: Raspberry Pi GPIO Message-ID: <5759EFD2.1050705@fourthworld.com> What's needed to work with the GPIO on RPi? I'd like to work with a motion sensor, and would prefer to work with LC instead Python if I can. -- 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 Thu Jun 9 21:07:49 2016 From: monte at appisle.net (Monte Goulding) Date: Fri, 10 Jun 2016 11:07:49 +1000 Subject: Raspberry Pi GPIO In-Reply-To: <5759EFD2.1050705@fourthworld.com> References: <5759EFD2.1050705@fourthworld.com> Message-ID: <7BF82971-7F12-4729-B538-1E545EB493FA@appisle.net> It looks like you could do this very easily in script. A good community project to write a library and see what you can do with it! http://luketopia.net/2013/07/28/raspberry-pi-gpio-via-the-shell/ Cheers Monte > On 10 Jun 2016, at 8:38 AM, Richard Gaskin wrote: > > What's needed to work with the GPIO on RPi? > > I'd like to work with a motion sensor, and would prefer to work with LC instead Python if I can. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Thu Jun 9 21:31:05 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 9 Jun 2016 18:31:05 -0700 Subject: The 'startup' message not working in IDE In-Reply-To: <903C00A6-98A3-4220-94D7-CB28E5E39C0D@jhjensen.com> References: <57587B7B.6020006@researchware.com> <5655B95C-28FB-4539-BD08-40688D880E18@swcp.com> <5758D3FE.301@ahsoftware.net> <64D99EC6-7DB7-44E3-B722-922C8A93EE85@jhjensen.com> <5758ED48.7090504@ahsoftware.net> <903C00A6-98A3-4220-94D7-CB28E5E39C0D@jhjensen.com> Message-ID: <575A1859.9030606@ahsoftware.net> On 06/09/2016 05:11 PM, Jerry Jensen wrote: > True, true. in that example the ?;? separates the declaration command from the assignment command. My mistake. > > However, here is an example that does the assignment right in the declaration command, on the fly: > It seems to work (!). Honestly, I half expected it to fail on the first do. Yeah, I'm always surprised when do statements succeed. I know the syntax works, or at least most of the time. I just think I remember a discussion in the past about not doing this. But maybe I'm the only one who thinks this happened. -- Mark Wieder ahsoftware at gmail.com From mwieder at ahsoftware.net Thu Jun 9 21:37:05 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 9 Jun 2016 18:37:05 -0700 Subject: LCB shell? Message-ID: <575A19C1.7050300@ahsoftware.net> Is the shell command/function available in extensions? I'm getting script parsing errors that seem like they might indicate that it's not, and the dictionary isn't conclusive on that issue. If it's not available for extensions, is there an alternative? I've got a script stack library that I'm trying to make into an extension, and I'm tripping over the syntax. Somewhere there should be a list of LCS-LCB translations. So far today I've already found LCS LCB the platform <-> the operating system -- Mark Wieder ahsoftware at gmail.com From jerry at jhjensen.com Thu Jun 9 21:42:28 2016 From: jerry at jhjensen.com (Jerry Jensen) Date: Thu, 9 Jun 2016 18:42:28 -0700 Subject: The 'startup' message not working in IDE In-Reply-To: <575A1859.9030606@ahsoftware.net> References: <57587B7B.6020006@researchware.com> <5655B95C-28FB-4539-BD08-40688D880E18@swcp.com> <5758D3FE.301@ahsoftware.net> <64D99EC6-7DB7-44E3-B722-922C8A93EE85@jhjensen.com> <5758ED48.7090504@ahsoftware.net> <903C00A6-98A3-4220-94D7-CB28E5E39C0D@jhjensen.com> <575A1859.9030606@ahsoftware.net> Message-ID: <25EE3D0A-C437-4DD4-A909-EB402B212EDD@jhjensen.com> > On Jun 9, 2016, at 6:31 PM, Mark Wieder wrote: > > On 06/09/2016 05:11 PM, Jerry Jensen wrote: >> True, true. in that example the ?;? separates the declaration command from the assignment command. My mistake. >> >> However, here is an example that does the assignment right in the declaration command, on the fly: >> It seems to work (!). Honestly, I half expected it to fail on the first do. > > Yeah, I'm always surprised when do statements succeed. > > I know the syntax works, or at least most of the time. I just think I remember a discussion in the past about not doing this. But maybe I'm the only one who thinks this happened. I?m still in the habit of not assigning value in declarations, and I?m sticking to it. I don?t like declarations in the middle of executing code either. When I?m curious about the details of a variable, I look at the top. Heck, I still use i,j,k,l,m,n variables for integers when there is such a thing. Harumph! Song over, .Jerry From dsc at swcp.com Thu Jun 9 21:53:06 2016 From: dsc at swcp.com (Dar Scott) Date: Thu, 9 Jun 2016 19:53:06 -0600 Subject: The 'startup' message not working in IDE In-Reply-To: <25EE3D0A-C437-4DD4-A909-EB402B212EDD@jhjensen.com> References: <57587B7B.6020006@researchware.com> <5655B95C-28FB-4539-BD08-40688D880E18@swcp.com> <5758D3FE.301@ahsoftware.net> <64D99EC6-7DB7-44E3-B722-922C8A93EE85@jhjensen.com> <5758ED48.7090504@ahsoftware.net> <903C00A6-98A3-4220-94D7-CB28E5E39C0D@jhjensen.com> <575A1859.9030606@ahsoftware.net> <25EE3D0A-C437-4DD4-A909-EB402B212EDD@jhjensen.com> Message-ID: Yeah, I started out in FORTRAN a half century ago, and I have habits from that. > On Jun 9, 2016, at 7:42 PM, Jerry Jensen wrote: > > >> On Jun 9, 2016, at 6:31 PM, Mark Wieder wrote: >> >> On 06/09/2016 05:11 PM, Jerry Jensen wrote: >>> True, true. in that example the ?;? separates the declaration command from the assignment command. My mistake. >>> >>> However, here is an example that does the assignment right in the declaration command, on the fly: >>> It seems to work (!). Honestly, I half expected it to fail on the first do. >> >> Yeah, I'm always surprised when do statements succeed. >> >> I know the syntax works, or at least most of the time. I just think I remember a discussion in the past about not doing this. But maybe I'm the only one who thinks this happened. > > I?m still in the habit of not assigning value in declarations, and I?m sticking to it. I don?t like declarations in the middle of executing code either. When I?m curious about the details of a variable, I look at the top. Heck, I still use i,j,k,l,m,n variables for integers when there is such a thing. Harumph! > > Song over, > .Jerry > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From th.douez at gmail.com Thu Jun 9 22:35:23 2016 From: th.douez at gmail.com (Thierry Douez) Date: Fri, 10 Jun 2016 04:35:23 +0200 Subject: LCB shell? In-Reply-To: <575A19C1.7050300@ahsoftware.net> References: <575A19C1.7050300@ahsoftware.net> Message-ID: Hi Mark, Not sure if this will help you, but anyway it's an interesting post. http://blog.peter-b.co.uk/2015/09/using-c-library-functions-from-livecode.html Regards, Thierry 2016-06-10 3:37 GMT+02:00 Mark Wieder : > Is the shell command/function available in extensions? I'm getting script > parsing errors that seem like they might indicate that it's not, and the > dictionary isn't conclusive on that issue. If it's not available for > extensions, is there an alternative? I've got a script stack library that > I'm trying to make into an extension, and I'm tripping over the syntax. > > Somewhere there should be a list of LCS-LCB translations. So far today > I've already found > > LCS LCB > the platform <-> the operating system > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- ------------------------------------------------ Thierry Douez - http://sunny-tdz.com sunnYrex - sunnYtext2speech - sunnYperl - sunnYmidi - sunnYmage From james at thehales.id.au Thu Jun 9 22:42:33 2016 From: james at thehales.id.au (James Hale) Date: Fri, 10 Jun 2016 12:42:33 +1000 Subject: Another way of approaching LC8 Message-ID: I concur with all the previous posters on this. Just jump in. I have been working slowly on an app since V6. Hey, I'm retired and this is something I do to amuse myself. Anyway, I have continued developing this app, adding bits and pieces to it through all of lc6 and lc7. I would occasionally open it in one of the lc8dp's to see how things were going but never really moved over to lc8 until dp16. This is not because of issues with the engine, more bugs in the IDE that got in my way. Indeed, it took about a dozen DP releases before I could get past the first screen of my app. Anyway, each time I tried I would find a bug here or there, submit a report and then go back to lc7 until the next dp. Since dp16 I have been satisfied that most of the issues have been sorted. This has enabled me to begin to take advantage of lc8 only features such as widgets. In fact the SVG widget being my favorite thus far as it has allowed me to replace all my png graphics I had been using for button icons with nice clean scalable ones. In the process I have also been able to find a few bugs in the widget and get them repaired. This is probably the most rewarding aspect of using 8, being able to help with ironing out remaining problems. Well that plus knowing my app is using the best LC has to offer. There are still some issues that need addressing but there will always be something won't there. Just grab one of your current apps that you have a fondness for, open it in 8 and start going though it. As Richard said, you will learn what you need to learn, as you need it. That's part of the fun, isn't it? James From jerry at jhjensen.com Thu Jun 9 23:03:11 2016 From: jerry at jhjensen.com (Jerry Jensen) Date: Thu, 9 Jun 2016 20:03:11 -0700 Subject: The 'startup' message not working in IDE In-Reply-To: References: <57587B7B.6020006@researchware.com> <5655B95C-28FB-4539-BD08-40688D880E18@swcp.com> <5758D3FE.301@ahsoftware.net> <64D99EC6-7DB7-44E3-B722-922C8A93EE85@jhjensen.com> <5758ED48.7090504@ahsoftware.net> <903C00A6-98A3-4220-94D7-CB28E5E39C0D@jhjensen.com> <575A1859.9030606@ahsoftware.net> <25EE3D0A-C437-4DD4-A909-EB402B212EDD@jhjensen.com> Message-ID: Hah! I was wondering if anybody would get that. > On Jun 9, 2016, at 6:53 PM, Dar Scott wrote: > > Yeah, I started out in FORTRAN a half century ago, and I have habits from that. > >> On Jun 9, 2016, at 7:42 PM, Jerry Jensen wrote: >> >> Heck, I still use i,j,k,l,m,n variables for integers when there is such a thing. Harumph! From mwieder at ahsoftware.net Fri Jun 10 00:14:17 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 9 Jun 2016 21:14:17 -0700 Subject: hasMemory In-Reply-To: References: <575A19C1.7050300@ahsoftware.net> Message-ID: <575A3E99.2080000@ahsoftware.net> On 06/09/2016 07:35 PM, Thierry Douez wrote: > Hi Mark, > > Not sure if this will help you, but anyway > it's an interesting post. Fortunately you and I have similar definitions of "interesting" Unfortunately it's no real help for what I was trying. After spending part of a day playing around with LCB, I'm concluding it's really not worth the effort. I got all excited seeing some of what Dar's been turning out, but I can't see there's anything to gain by turning a working library into an extension, and a lot of wasted time to lose. Here's a working cross-platform replacement for the flaky built-in hasMemory function. /** * Return the number of free bytes */ on mouseUp put freeMemory() && "bytes" into field 1 put cr & hasMem(2000000) after field 1 end mouseUp function hasMem pDesiredBytes return freeMemory() > pDesiredBytes end hasMem function freeMemory local tPlatform local tFreeMem put the platform into tPlatform if "Mac" is in tPlatform then put availableMemOSX() into tFreeMem else if "Win" is in tPlatform then put availableMemWindows() into tFreeMem else put availableMemLinux() into tFreeMem end if return tFreeMem end freeMemory private function availableMemOSX local tFreeMem local tPageSize local tFreePages put shell ("vm_stat -c 1 1") into tFreeMem put word -2 of line 1 of tFreeMem into tPageSize put word 1 of line -1 of tFreeMem into tFreePages return tFreePages * tPageSize / 1024 end availableMemOSX private function availableMemWindows local tFreeMem put shell ("wmic OS get FreePhysicalMemory /Value") into tFreeMem set the linedelimiter to "=" return line -1 of tFreeMem * 1024 end availableMemWindows private function availableMemLinux local tFreeMem put shell ("vmstat -s") into tFreeMem filter tFreeMem with "*free memory" return word 1 of tFreeMem * 1024 end availableMemLinux -- Mark Wieder ahsoftware at gmail.com From hh at hh.on-rev.com Fri Jun 10 00:52:33 2016 From: hh at hh.on-rev.com (-hh) Date: Thu, 9 Jun 2016 21:52:33 -0700 (PDT) Subject: Raspberry Pi GPIO In-Reply-To: <7BF82971-7F12-4729-B538-1E545EB493FA@appisle.net> References: <5759EFD2.1050705@fourthworld.com> <7BF82971-7F12-4729-B538-1E545EB493FA@appisle.net> Message-ID: <1465534353614-4705626.post@n4.nabble.com> Using the GPIO is nothing else than writing zeros or ones to a file. Nobody needs a library for that? [Also there was a talk about that at the last LC US-conference.] The problem is to use the *correct* files or pins numbering respectively. This is hardware dependent, not a problem of using LC or Python. And hardware has changes, also on Raspi GPIO ... So be very careful to follow old "second hand" links which are for Raspberry A (2012/13). Better use the infos/forum, starting for example from here (or ask LC-Fraser): http://www.raspberrypi-spy.co.uk/ http://www.raspberryconnect.com/ -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Raspberry-Pi-GPIO-tp4705616p4705626.html Sent from the Revolution - User mailing list archive at Nabble.com. From me at jerrydaniels.com Fri Jun 10 01:51:19 2016 From: me at jerrydaniels.com (me at jerrydaniels.com) Date: Fri, 10 Jun 2016 00:51:19 -0500 Subject: mergExt Markdown In-Reply-To: References: <677062E1-58F7-48D7-A52E-A37CCF6E7210@jerrydaniels.com> <0E429C81-BBBC-4D3D-8649-7581230F2BDF@jerrydaniels.com> Message-ID: <6d8e7109-5c57-4433-b188-b27c26a51741@Spark> I looked all over the place on the copy files page but didn't see how to add it. I'll check again. If you can point me in the right direction, I'd be grateful. Best, Jerry On Jun 9, 2016, 4:23 PM -0500, Monte Goulding, wrote: > > > On 10 Jun 2016, at 7:09 AM, Jerry Danielswrote: > > > > Just tested markdown with 8.0.2 rc1. As far as I can tell, it does not fix it. Is there something I need to do in SA setting to make it work? > > Are you including it on the copy files pane? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From me at jerrydaniels.com Fri Jun 10 01:53:26 2016 From: me at jerrydaniels.com (me at jerrydaniels.com) Date: Fri, 10 Jun 2016 00:53:26 -0500 Subject: mergExt Markdown In-Reply-To: <99980660-7B77-4A4D-906B-ED790D9C2519@appisle.net> References: <677062E1-58F7-48D7-A52E-A37CCF6E7210@jerrydaniels.com> <0E429C81-BBBC-4D3D-8649-7581230F2BDF@jerrydaniels.com> <99980660-7B77-4A4D-906B-ED790D9C2519@appisle.net> Message-ID: I figured out what 'Ali awesomeness' meant just before I checked email. I've got Mohammed Ali on the brain this week, I suppose. Best, Jerry On Jun 9, 2016, 3:10 PM -0500, Monte Goulding, wrote: > > > On 10 Jun 2016, at 6:04 AM, Jerry Danielswrote: > > > > Thx, Monte! ?Ali awesomeness?? > > Ali from the LC team has worked some magic on standalone inclusions in 8.1. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at appisle.net Fri Jun 10 02:50:33 2016 From: monte at appisle.net (Monte Goulding) Date: Fri, 10 Jun 2016 16:50:33 +1000 Subject: mergExt Markdown In-Reply-To: References: <677062E1-58F7-48D7-A52E-A37CCF6E7210@jerrydaniels.com> <0E429C81-BBBC-4D3D-8649-7581230F2BDF@jerrydaniels.com> <99980660-7B77-4A4D-906B-ED790D9C2519@appisle.net> Message-ID: > On 10 Jun 2016, at 3:53 PM, me at jerrydaniels.com wrote: > > I figured out what 'Ali awesomeness' meant just before I checked email. I've got Mohammed Ali on the brain this week, I suppose. Well float like a butterfly over to the copy files pane and sting like a bee on the ?Add Included External?? button ;-) From mark at livecode.com Fri Jun 10 04:05:50 2016 From: mark at livecode.com (Mark Waddingham) Date: Fri, 10 Jun 2016 10:05:50 +0200 Subject: hasMemory In-Reply-To: <575A3E99.2080000@ahsoftware.net> References: <575A19C1.7050300@ahsoftware.net> <575A3E99.2080000@ahsoftware.net> Message-ID: <4e55baeaf1ab7da2611fca3a7b70a080@livecode.com> On 2016-06-10 06:14, Mark Wieder wrote: > Here's a working cross-platform replacement for the flaky built-in > hasMemory function. The builtin 'hasMemory' function is not flaky - the question it asks just has no meaning on modern operating systems (and should probably actually be removed!). For example, change your mouseUp to this: on mouseUp put freeMemory() into tBytesAvailable repeat with i = 1 to tBytesAvailable * 4 put "a" after tString end repeat put "apparently there were" && tBytesAvailable && \ "bytes of memory available" & return after field 1 put "but I managed to allocate a string which requires" && \ the length of tString && "bytes" & return after field 1 end mouseUp And try running it on a modern Mac (although I have no reason to suspect it would be different on any other platform we support). In my case I got: apparently there were 8894284 bytes of memory available but I managed to allocate a string which requires 35577136 bytes The concept of 'free memory' on multi-user, pre-emptive, user/kernel space split operating systems doesn't exist as the kernel allocates any physical resources it has (including disk space to provide virtual memory) to where it is needed at any point it wishes. For example, a large amount of physical memory pages at any one time is likely to be used to cache blocks on disks for files which are currently in use. As the majority of these pages (those which have not been modified in memory) can be dumped at any time, that measure does not reflect how much memory any one process could allocate. Similarly, processes which are inactive and consuming physical memory are likely to have most of their memory usage paged to disk (i.e. into virtual memory) when another active process needs more memory. Warmest Regards, Mark. P.S. The 'hasMemory' function in LiveCode actually does the best it can do - it sees if it can allocate a contiguous block of memory of the size that has been requested (using malloc) and if that succeeds, it frees the block and returns true. This should mean that (assuming nothing on the system suddenly consumes all physical and virtual ram) you should be able to do an action which requires that amount of memory immediately after: void MCLegacyEvalHasMemory(MCExecContext& ctxt, uinteger_t p_bytes, bool& r_bool) { char *t_buffer = nil; r_bool = nil != (t_buffer = (char*)malloc(p_bytes)); free(t_buffer); } -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Fri Jun 10 05:21:23 2016 From: mark at livecode.com (Mark Waddingham) Date: Fri, 10 Jun 2016 11:21:23 +0200 Subject: hasMemory In-Reply-To: <4e55baeaf1ab7da2611fca3a7b70a080@livecode.com> References: <575A19C1.7050300@ahsoftware.net> <575A3E99.2080000@ahsoftware.net> <4e55baeaf1ab7da2611fca3a7b70a080@livecode.com> Message-ID: <632a142224abdfbc48ba88df373c0d68@livecode.com> On 2016-06-10 10:05, Mark Waddingham wrote: > P.S. The 'hasMemory' function in LiveCode actually does the best it > can do - it sees if it can allocate a contiguous block of memory of > the size that has been requested (using malloc) and if that succeeds, > it frees the block and returns true. This should mean that (assuming > nothing on the system suddenly consumes all physical and virtual ram) > you should be able to do an action which requires that amount of > memory immediately after: > > void MCLegacyEvalHasMemory(MCExecContext& ctxt, uinteger_t p_bytes, > bool& r_bool) > { > char *t_buffer = nil; > r_bool = nil != (t_buffer = (char*)malloc(p_bytes)); > free(t_buffer); > } As an addendum, Fraser just reminded that even this is entirely useless on Linux. When you request more memory to a process on Linux, the kernel will happily grant *all* requests which will fit in the address space - it allocates pages (whether they be physical or virtual) *lazily*. So you can quite happily do malloc(2^46) and it will succeed... You'll just get a SEGV at some point later when there are no pages anywhere left. (Linux has an overcommit policy - i.e. it does not use the number of possibly available pages to determine how much address space it will give each process). Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From me at jerrydaniels.com Fri Jun 10 07:05:03 2016 From: me at jerrydaniels.com (me at jerrydaniels.com) Date: Fri, 10 Jun 2016 06:05:03 -0500 Subject: mergExt Markdown In-Reply-To: References: <677062E1-58F7-48D7-A52E-A37CCF6E7210@jerrydaniels.com> <0E429C81-BBBC-4D3D-8649-7581230F2BDF@jerrydaniels.com> <99980660-7B77-4A4D-906B-ED790D9C2519@appisle.net> Message-ID: That button is disabled. (The first place I looked.) INDY license, so it should work. Best, Jerry On Jun 10, 2016, 1:52 AM -0500, Monte Goulding, wrote: > > > On 10 Jun 2016, at 3:53 PM, me at jerrydaniels.com wrote: > > > > I figured out what 'Ali awesomeness' meant just before I checked email. I've got Mohammed Ali on the brain this week, I suppose. > > Well float like a butterfly over to the copy files pane and sting like a bee on the ?Add Included External?? button ;-) > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at appisle.net Fri Jun 10 07:12:06 2016 From: monte at appisle.net (Monte Goulding) Date: Fri, 10 Jun 2016 21:12:06 +1000 Subject: mergExt Markdown In-Reply-To: References: <677062E1-58F7-48D7-A52E-A37CCF6E7210@jerrydaniels.com> <0E429C81-BBBC-4D3D-8649-7581230F2BDF@jerrydaniels.com> <99980660-7B77-4A4D-906B-ED790D9C2519@appisle.net> Message-ID: > On 10 Jun 2016, at 9:05 PM, me at jerrydaniels.com wrote: > > That button is disabled. (The first place I looked.) INDY license, so it should work. Sorry Jerry, I?ve led you a merry dance. It turns out that 8.0.X only added an interim feature for iOS covering most of my externals. Standalone inclusions have been completely reworked for 8.1. Cheers Monte From livfoss at mac.com Fri Jun 10 07:31:31 2016 From: livfoss at mac.com (Graham Samuel) Date: Fri, 10 Jun 2016 13:31:31 +0200 Subject: Another way of approaching LC8 In-Reply-To: References: Message-ID: <0DFEC8F3-A9E7-41CF-A881-DB39634082AF@mac.com> Thanks James, I'm encouraged. Here goes... Graham Sent from my iPhone > On 10 Jun 2016, at 04:42, James Hale wrote: > > I concur with all the previous posters on this. > Just jump in. > I have been working slowly on an app since V6. > Hey, I'm retired and this is something I do to amuse myself. > Anyway, I have continued developing this app, adding bits and pieces to it through all of lc6 and lc7. I would occasionally open it in one of the lc8dp's to see how things were going but never really moved over to lc8 until dp16. > This is not because of issues with the engine, more bugs in the IDE that got in my way. > Indeed, it took about a dozen DP releases before I could get past the first screen of my app. > Anyway, each time I tried I would find a bug here or there, submit a report and then go back to lc7 until the next dp. > Since dp16 I have been satisfied that most of the issues have been sorted. > This has enabled me to begin to take advantage of lc8 only features such as widgets. In fact the SVG widget being my favorite thus far as it has allowed me to replace all my png graphics I had been using for button icons with nice clean scalable ones. > In the process I have also been able to find a few bugs in the widget and get them repaired. > This is probably the most rewarding aspect of using 8, being able to help with ironing out remaining problems. > Well that plus knowing my app is using the best LC has to offer. > There are still some issues that need addressing but there will always be something won't there. > > Just grab one of your current apps that you have a fondness for, open it in 8 and start going though it. As Richard said, you will learn what you need to learn, as you need it. That's part of the fun, isn't it? > > 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 me at jerrydaniels.com Fri Jun 10 07:42:33 2016 From: me at jerrydaniels.com (me at jerrydaniels.com) Date: Fri, 10 Jun 2016 06:42:33 -0500 Subject: mergExt Markdown In-Reply-To: References: <677062E1-58F7-48D7-A52E-A37CCF6E7210@jerrydaniels.com> <0E429C81-BBBC-4D3D-8649-7581230F2BDF@jerrydaniels.com> <99980660-7B77-4A4D-906B-ED790D9C2519@appisle.net> Message-ID: <0988d2b9-e0c1-4316-9f0b-56486366150d@Spark> Thx, Monte. I've already coded around the problem by limiting the amount of markdown the app accepts from a user. So I've rolled my own limited translation of markdown. Best, Jerry On Jun 10, 2016, 6:13 AM -0500, Monte Goulding, wrote: > > > On 10 Jun 2016, at 9:05 PM, me at jerrydaniels.com wrote: > > > > That button is disabled. (The first place I looked.) INDY license, so it should work. > > Sorry Jerry, I?ve led you a merry dance. It turns out that 8.0.X only added an interim feature for iOS covering most of my externals. Standalone inclusions have been completely reworked for 8.1. > > 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 mikedoub at gmail.com Fri Jun 10 08:31:41 2016 From: mikedoub at gmail.com (Michael Doub) Date: Fri, 10 Jun 2016 08:31:41 -0400 Subject: Raspberry Pi GPIO In-Reply-To: <5759EFD2.1050705@fourthworld.com> References: <5759EFD2.1050705@fourthworld.com> Message-ID: Richard, Take a look at the code in the MasterLibrary. Look at the comments in the library it self for how to solve the Accessing the GPIO (of a raspberry pi) without "sudo" problem. https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 Regards, Mike On 6/9/16 6:38 PM, Richard Gaskin wrote: > What's needed to work with the GPIO on RPi? > > I'd like to work with a motion sensor, and would prefer to work with > LC instead Python if I can. > From MikeKerner at roadrunner.com Fri Jun 10 09:52:13 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 10 Jun 2016 09:52:13 -0400 Subject: dropbox repositories: phxdropbox v. 1.12 and dropboxapi Message-ID: All, the latest phxdropbox library is now on my git repository. Dropbox changed an error handling response: https://github.com/macMikey/phxDropboxLib Also, I'm going to keep/maintain Gerard's dropbox api v2 while I work on improving it: https://github.com/macMikey/dropboxapi_v2 -- 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 Jun 10 09:53:44 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 10 Jun 2016 09:53:44 -0400 Subject: csvToText Repository Message-ID: As far as I know, the latest/greatest code for converting csv to text is now on my git repository: https://github.com/macMikey/csvToText -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From roger.e.eller at sealedair.com Fri Jun 10 09:57:31 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 10 Jun 2016 09:57:31 -0400 Subject: csvToText Repository In-Reply-To: References: Message-ID: I clicked the link and got "This repository is empty". On Fri, Jun 10, 2016 at 9:53 AM, Mike Kerner wrote: > As far as I know, the latest/greatest code for converting csv to text is > now on my git repository: > https://github.com/macMikey/csvToText > > > -- > 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 roger.e.eller at sealedair.com Fri Jun 10 10:05:40 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 10 Jun 2016 10:05:40 -0400 Subject: csvToText Repository In-Reply-To: References: Message-ID: I have used the cvs import function from Richard Gaskin's great article. It works relatively well on simple cvs files. http://www.fourthworld.com/embassy/articles/csv-must-die.html On Fri, Jun 10, 2016 at 9:53 AM, Mike Kerner wrote: > As far as I know, the latest/greatest code for converting csv to text is > now on my git repository: > https://github.com/macMikey/csvToText > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From MikeKerner at roadrunner.com Fri Jun 10 10:56:09 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 10 Jun 2016 10:56:09 -0400 Subject: csvToText Repository In-Reply-To: References: Message-ID: Try it now, Roger. It's actually based on Richard's code, which was then improved by Alex. After fiddling, this is the version I use with my web scrapers. On Fri, Jun 10, 2016 at 10:05 AM, Roger Eller wrote: > I have used the cvs import function from Richard Gaskin's great article. > It works relatively well on simple cvs files. > > http://www.fourthworld.com/embassy/articles/csv-must-die.html > > > > On Fri, Jun 10, 2016 at 9:53 AM, Mike Kerner > wrote: > > > As far as I know, the latest/greatest code for converting csv to text is > > now on my git repository: > > https://github.com/macMikey/csvToText > > > > > > -- > > On the first day, God created the heavens and the Earth > > On the second day, God created the oceans. > > On the third day, God put the animals on hold for a few hours, > > and did a little diving. > > And God said, "This is good." > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From richmondmathewson at gmail.com Fri Jun 10 11:13:39 2016 From: richmondmathewson at gmail.com (RM) Date: Fri, 10 Jun 2016 18:13:39 +0300 Subject: Android-x86 Message-ID: <575AD923.70603@gmail.com> http://distrowatch.com/table.php?distribution=androidx86 http://www.android-x86.org/ Does anyone know: 1. Whether it is possible to get Livecode running on this? 2. Whether Android standalones will run on this? Richmond. From ambassador at fourthworld.com Fri Jun 10 11:14:59 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 10 Jun 2016 08:14:59 -0700 Subject: Raspberry Pi GPIO In-Reply-To: <1465534353614-4705626.post@n4.nabble.com> References: <1465534353614-4705626.post@n4.nabble.com> Message-ID: <575AD973.8090109@fourthworld.com> -hh wrote: > Using the GPIO is nothing else than writing zeros or ones to a file. > Nobody needs a library for that? > [Also there was a talk about that at the last LC US-conference.] I'll see if I can find that one on the DVDs. What is the LC syntax for something like: open file GPIO pin 6 for read ? -- 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 Jun 10 11:17:03 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 10 Jun 2016 08:17:03 -0700 Subject: csvToText Repository In-Reply-To: References: Message-ID: <575AD9EF.5060705@fourthworld.com> Mike Kerner wrote: > It's actually based on Richard's code, which was then improved by > Alex. To the best of my knowledge, the Tweedly algo on my page represents the best version we've seen yet. If you can point me to where they differ I'll happily update that part of the article. -- 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 Jun 10 11:19:26 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 10 Jun 2016 08:19:26 -0700 Subject: Raspberry Pi GPIO In-Reply-To: References: Message-ID: <575ADA7E.8010606@fourthworld.com> Michael Doub wrote: > Richard, Take a look at the code in the MasterLibrary. Look at the > comments in the library it self for how to solve the Accessing the > GPIO (of a raspberry pi) without "sudo" problem. > > https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 Thanks, Michael. Downloading now. I hadn't realized GPIO access was considered a solved problem. I see so many requests for this I had though there must be something else needed beyond what LC currently provides. -- 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 Fri Jun 10 11:24:26 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 10 Jun 2016 11:24:26 -0400 Subject: csvToText Repository In-Reply-To: <575AD9EF.5060705@fourthworld.com> References: <575AD9EF.5060705@fourthworld.com> Message-ID: It's on git. I'm just keeping it and all the test cases together. I think we're at v3 or v4. On Fri, Jun 10, 2016 at 11:17 AM, Richard Gaskin wrote: > Mike Kerner wrote: > > > It's actually based on Richard's code, which was then improved by > > Alex. > > To the best of my knowledge, the Tweedly algo on my page represents the > best version we've seen yet. > > If you can point me to where they differ I'll happily update that part of > the article. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From ambassador at fourthworld.com Fri Jun 10 11:27:44 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 10 Jun 2016 08:27:44 -0700 Subject: hasMemory In-Reply-To: <575A3E99.2080000@ahsoftware.net> References: <575A3E99.2080000@ahsoftware.net> Message-ID: <575ADC70.70208@fourthworld.com> Mark Wieder wrote: > After spending part of a day playing around with LCB, I'm concluding > it's really not worth the effort. I got all excited seeing some of > what Dar's been turning out, but I can't see there's anything to gain > by turning a working library into an extension, and a lot of wasted > time to lose. LC Builder is very exciting for the things that distinguish it: providing a means of encapsulating custom controls in Widgets far more cleanly for the end-user than is currently possible with groups, and for accessing binary APIs from system components. But like Kevin says, of the three options we have for writing code that can be executed in LC (externals written in C, LC Builder, and LC Script), LC Script is the fastest to develop in, so it remains an excellent choice. After all, LC Builder is not here to replace LC Script, but to augment it. What's working well in LC Script should for the most part remain working going forward, getting only better and ever more capable where LC Builder can add things that may be needed. But where LC Builder isn't necessary LC Script is fine by itself. LC Script is, after all, the primary language of LiveCode and the reason we're all here. It isn't going away. Continue to enjoy 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 ambassador at fourthworld.com Fri Jun 10 11:31:53 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 10 Jun 2016 08:31:53 -0700 Subject: hasMemory In-Reply-To: <4e55baeaf1ab7da2611fca3a7b70a080@livecode.com> References: <4e55baeaf1ab7da2611fca3a7b70a080@livecode.com> Message-ID: <575ADD69.3090002@fourthworld.com> Mark Waddingham wrote: > On 2016-06-10 06:14, Mark Wieder wrote: >> Here's a working cross-platform replacement for the flaky built-in >> hasMemory function. > > The builtin 'hasMemory' function is not flaky - the question it asks > just has no meaning on modern operating systems (and should probably > actually be removed!). For all the reasons you mentioned (thanks for the details; I love learning from your longer posts) what you say here makes good sense. But I would also suggest what Mark Wieder is after is also useful, though perhaps very different. From time to time it's useful to know how much RAM may be available to an application, to make decisions about loading data. Wieder's script seems to handle that, though I agree that it does seem to be solving a very different problem from the hasMemory function. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From MikeKerner at roadrunner.com Fri Jun 10 11:37:48 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 10 Jun 2016 11:37:48 -0400 Subject: csvToText Repository In-Reply-To: References: <575AD9EF.5060705@fourthworld.com> Message-ID: nope. my bad, v5 On Fri, Jun 10, 2016 at 11:24 AM, Mike Kerner wrote: > It's on git. I'm just keeping it and all the test cases together. I > think we're at v3 or v4. > > On Fri, Jun 10, 2016 at 11:17 AM, Richard Gaskin < > ambassador at fourthworld.com> wrote: > >> Mike Kerner wrote: >> >> > It's actually based on Richard's code, which was then improved by >> > Alex. >> >> To the best of my knowledge, the Tweedly algo on my page represents the >> best version we've seen yet. >> >> If you can point me to where they differ I'll happily update that part of >> the article. >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- 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 Fri Jun 10 11:39:32 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 10 Jun 2016 08:39:32 -0700 Subject: csvToText Repository In-Reply-To: References: Message-ID: <575ADF34.20206@fourthworld.com> Mike Kerner wrote: > It's on git. I'm just keeping it and all the test cases together. > I think we're at v3 or v4. I think we covered that a few months ago in a long thread here: When we were first discussing the need for a CSV parser I proposed a version named Csv2Tab. The "2" there is not a version number, merely a substitute for "to" which in some circles in the olden days was a common convention for converter functions to make them stand out visually when skimming lists of function names. Later in that thread Alex named his "csv3Tab" and "csv4Tab", using the middle numeral as a version number. When I posted the article I used what was called at the time "Csv4Tab", but renamed it to the original name that attempted (however poorly) semantic meaning for the numeral portion rather than some sort of embedded version number. I can update the article to use a non-numeric name, but before I do it's worth exploring that relative to whichever version you have on Github, since there was at least one later version which appeared to be faster but turned out to cover fewer edge 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 peter.brett at livecode.com Fri Jun 10 11:41:38 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Fri, 10 Jun 2016 16:41:38 +0100 Subject: hasMemory In-Reply-To: <575ADD69.3090002@fourthworld.com> References: <4e55baeaf1ab7da2611fca3a7b70a080@livecode.com> <575ADD69.3090002@fourthworld.com> Message-ID: <38cce318-f456-3d4c-11cf-7883cd50398d@livecode.com> On 10/06/2016 16:31, Richard Gaskin wrote: > From time to time it's useful to know how much RAM may be available to > an application, to make decisions about loading data. No, it isn't useful. Don't do this. At the very best, you'll have a Time-of-check-to-time-of-use error (i.e. you check a condition time X, and do something that assumes the condition at time Y, but in the intervening time something happens elsewhere in the system that invalidates the condition). And on most operating systems, the result will be total lies. Just go ahead and load the data. If it fails, then try a smaller chunk. Peter -- Dr Peter Brett LiveCode Technical Project Manager LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ From ambassador at fourthworld.com Fri Jun 10 11:47:39 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 10 Jun 2016 08:47:39 -0700 Subject: hasMemory In-Reply-To: <38cce318-f456-3d4c-11cf-7883cd50398d@livecode.com> References: <38cce318-f456-3d4c-11cf-7883cd50398d@livecode.com> Message-ID: <575AE11B.4060006@fourthworld.com> Peter TB Brett wrote: > On 10/06/2016 16:31, Richard Gaskin wrote: > >> From time to time it's useful to know how much RAM may be available >> to an application, to make decisions about loading data. > > No, it isn't useful. Don't do this. > > At the very best, you'll have a Time-of-check-to-time-of-use error > (i.e. you check a condition time X, and do something that assumes the > condition at time Y, but in the intervening time something happens > elsewhere in the system that invalidates the condition). And on most > operating systems, the result will be total lies. > > Just go ahead and load the data. If it fails, then try a smaller > chunk. I once got the same advice from Mark Lucas, the lead engineer for SuperCard, so it would be foolish for me to disregard the same guidance so consistently offered. The challenge, however, is that currently most xTalks, including LiveCode, sometimes have difficulty reporting errors in low-memory conditions. When bad enough, it can sometimes cause a crash before we're able to check "the result" and apply any remedy. Any advice for working gracefully in potentially RAM-taxing routines? -- 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 mikedoub at gmail.com Fri Jun 10 12:43:13 2016 From: mikedoub at gmail.com (Michael Doub) Date: Fri, 10 Jun 2016 12:43:13 -0400 Subject: Raspberry Pi GPIO In-Reply-To: <575ADA7E.8010606@fourthworld.com> References: <575ADA7E.8010606@fourthworld.com> Message-ID: Richard, You initial gut reaction is STILL correct. Currently the only solution available to livecoders is the file method. The performance of this solution is terrible and limits the types of real world problems that can be solved with livecode and raspberry pi. It would be wonderful if someone could write a library that allowed direct access to the actual GPIO driver. I am hoping someone with LiveCode builder skills will solve this problem. If python can do it, so can livecode. -= Mike On 6/10/16 11:19 AM, Richard Gaskin wrote: > Michael Doub wrote: > > > Richard, Take a look at the code in the MasterLibrary. Look at the > > comments in the library it self for how to solve the Accessing the > > GPIO (of a raspberry pi) without "sudo" problem. > > > > https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 > > Thanks, Michael. Downloading now. > > I hadn't realized GPIO access was considered a solved problem. I see > so many requests for this I had though there must be something else > needed beyond what LC currently provides. > From mwieder at ahsoftware.net Fri Jun 10 12:46:26 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 10 Jun 2016 16:46:26 +0000 (UTC) Subject: hasMemory References: <575A19C1.7050300@ahsoftware.net> <575A3E99.2080000@ahsoftware.net> <4e55baeaf1ab7da2611fca3a7b70a080@livecode.com> <632a142224abdfbc48ba88df373c0d68@livecode.com> Message-ID: Mark Waddingham writes: > As an addendum, Fraser just reminded that even this is entirely useless > on Linux. OK - 'flaky' was a bad choice of words here. Point taken. And yes, the replacement for the hasMemory function was actually just an afterthought. What I really was after is what the OS thinks is the amount of free non-virtual ram, for use in error reporting. Since all modern operating systems will happily dish out virtual memory and swap things around, I agree that seeing if you can allocate a block of memory of a given size is somewhat less useful. What might be more useful, though, is determining whether swap space is being used, which could have significant impact on program responsiveness. -- Mark Wieder ahsoftware at gmail.com From mark at livecode.com Fri Jun 10 13:00:16 2016 From: mark at livecode.com (Mark Waddingham) Date: Fri, 10 Jun 2016 19:00:16 +0200 Subject: hasMemory In-Reply-To: References: <575A19C1.7050300@ahsoftware.net> <575A3E99.2080000@ahsoftware.net> <4e55baeaf1ab7da2611fca3a7b70a080@livecode.com> <632a142224abdfbc48ba88df373c0d68@livecode.com> Message-ID: <798a8d370cbbc69f54c5c65cdc231d4f@livecode.com> On 2016-06-10 18:46, Mark Wieder wrote: > Since all modern operating systems will happily dish out virtual memory > and swap things around, I agree that seeing if you can allocate a block > of > memory of a given size is somewhat less useful. What might be more > useful, > though, is determining whether swap space is being used, which could > have > significant impact on program responsiveness. The Mac OS X Activity Monitor on El Capitan has a 'memory pressure' graph which is what it sounds like what you were looking for - I'm guessing this is a measure for memory, a bit like the CPU load factor. Of course, how Activity Monitor calculates this value is not clear - it certainly isn't just a function of physical memory usage as I'm currently using 10Gb/16Gb (i.e. 63%) and my memory pressure graph is as low as it gets. I suspect it is some function of various factors (number of paging requests, quantity of wired pages, free disk space etc.) which increases more and more rapidly as the amount of virtual memory and physical memory available approaches zero. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From ambassador at fourthworld.com Fri Jun 10 13:00:19 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 10 Jun 2016 10:00:19 -0700 Subject: csvToText Repository In-Reply-To: <575ADF34.20206@fourthworld.com> References: <575ADF34.20206@fourthworld.com> Message-ID: <575AF223.6070908@fourthworld.com> Earlier I wrote: > I can update the article to use a non-numeric name, but before I do > it's worth exploring that relative to whichever version you have on > Github, since there was at least one later version which appeared to > be faster but turned out to cover fewer edge cases. I've done some initial testing, and with the common test data in the article both functions return the same result. The one from your GitHub site is about 30% slower, but apparently for good reason: when testing on other CSV files I use locally, I found at least one edge case where the new algo handles some escaped escapes better. I've updated my article with the new code, along with updating the URL that points to LiveCode and the URL to the source, now pointing to your Github repository: The only suggestion I would make for the Github repo is in the Read Me: While I believe I may have initiative the first of the several threads suggesting we should pull our minds together and solve the CSV issue for LiveCode, we've also had so many contributions to the source I no longer recall who suggested the first posted version, and many people contributed ideas along the way. So where your Read Me says: Originally a project by Alex Tweedley to improve Richard's code, we eventually put it in the community... ...it may be more accurate to say: After a community process with many contributors, Alex Tweedly came up with what is currently the most robust general-purpose CSV parser. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From mwieder at ahsoftware.net Fri Jun 10 13:13:13 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 10 Jun 2016 17:13:13 +0000 (UTC) Subject: hasMemory References: <38cce318-f456-3d4c-11cf-7883cd50398d@livecode.com> <575AE11B.4060006@fourthworld.com> Message-ID: Richard Gaskin writes: > The challenge, however, is that currently most xTalks, including > LiveCode, sometimes have difficulty reporting errors in low-memory > conditions. When bad enough, it can sometimes cause a crash before > we're able to check "the result" and apply any remedy. Yes, that is of course what I'm aiming for. There have been problems in the past with LC (or at least RunRev) misbehaving under low physical memory conditions, and that's difficult to catch an replicate. Of course, this all depends on the engine still functioning well enough to handle the memory reporting functions, so it may just be moot after all. -- Mark Wieder ahsoftware at gmail.com From ambassador at fourthworld.com Fri Jun 10 13:14:50 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 10 Jun 2016 10:14:50 -0700 Subject: Raspberry Pi GPIO In-Reply-To: References: Message-ID: <575AF58A.3090601@fourthworld.com> Michael Doub wrote: > Richard, > > You initial gut reaction is STILL correct. Currently the only > solution available to livecoders is the file method. What is "the file method"? How do I treat GPIO connections as file paths? Somewhere in /proc? Earlier you wrote: Look at the comments in the library it self for how to solve the Accessing the GPIO (of a raspberry pi) without "sudo" problem. The stack script isn't very big, and perhaps I'm just pre-coffee but I couldn't find anything there about sudo. Where should I be looking? > It would be wonderful if someone could write a library that allowed > direct access to the actual GPIO driver. I am hoping someone with > LiveCode builder skills will solve this problem. If python can do > it, so can livecode. I would imagine so, but in Python it's easy because someone wrote a component for GPIO. I haven't looked into this deeply so forgive my ignorance, but how does GPIO present itself to an application? A sort of named pipe, or serial I/O, or....? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From mwieder at ahsoftware.net Fri Jun 10 13:18:21 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 10 Jun 2016 17:18:21 +0000 (UTC) Subject: hasMemory References: <575A3E99.2080000@ahsoftware.net> <575ADC70.70208@fourthworld.com> Message-ID: Richard Gaskin writes: > What's working well in LC Script should for the most part remain working > going forward, getting only better and ever more capable where LC > Builder can add things that may be needed. But where LC Builder isn't > necessary LC Script is fine by itself. My (somewhat faulty thinking) was that the script-only library stack might make an interesting extension library (not widget), so with that small a code base to work with I thought I'd experiment. LCB looks promising for other things, but as you mentioned, it's for different purposes. I thought extension widgets might be custom controls, but I see I'll have to narrow my definition. -- Mark Wieder ahsoftware at gmail.com From ambassador at fourthworld.com Fri Jun 10 13:26:28 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 10 Jun 2016 10:26:28 -0700 Subject: Raspberry Pi GPIO In-Reply-To: <575AF58A.3090601@fourthworld.com> References: <575AF58A.3090601@fourthworld.com> Message-ID: <575AF844.8070706@fourthworld.com> Earlier I wrote: > What is "the file method"? How do I treat GPIO connections as file > paths? Somewhere in /proc? > > Earlier you wrote: > > Look at the comments in the library it self for how to solve > the Accessing the GPIO (of a raspberry pi) without "sudo" problem. > > The stack script isn't very big, and perhaps I'm just pre-coffee but I > couldn't find anything there about sudo. > > Where should I be looking? Coffee helped. I was looking in "the stack itself", and then for a "Hardware" section, overlooking the "Raspberry Pi" section right there in front of me once I thought to scroll down to look for it. :) It seems the "files" method is using a mounted virtual file system, similar to /proc or /run/shm, which are actually elements in RAM accessible through file-like paths in keeping with the Unix tradition of "everything is a file". This appears to be the common method for obtaining GPIO data: Thanks for maintaining the Master Lib - with what's there I should be able to poke around and get what I need. One last question for now: is there any mechanism accessible to use in LiveCode that allows our app to subscribe to events in /sys/class/gpio, or do we need to poll for changes? -- 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 Fri Jun 10 13:45:18 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 10 Jun 2016 13:45:18 -0400 Subject: csvToText Repository In-Reply-To: <575AF223.6070908@fourthworld.com> References: <575ADF34.20206@fourthworld.com> <575AF223.6070908@fourthworld.com> Message-ID: It is on git. Do a pull and tweak it as you see fit, and I'll be happy to push the update. On Fri, Jun 10, 2016 at 1:00 PM, Richard Gaskin wrote: > Earlier I wrote: > > I can update the article to use a non-numeric name, but before I do > > it's worth exploring that relative to whichever version you have on > > Github, since there was at least one later version which appeared to > > be faster but turned out to cover fewer edge cases. > > I've done some initial testing, and with the common test data in the > article both functions return the same result. The one from your GitHub > site is about 30% slower, but apparently for good reason: when testing on > other CSV files I use locally, I found at least one edge case where the new > algo handles some escaped escapes better. > > I've updated my article with the new code, along with updating the URL > that points to LiveCode and the URL to the source, now pointing to your > Github repository: > > > > > The only suggestion I would make for the Github repo is in the Read Me: > > While I believe I may have initiative the first of the several threads > suggesting we should pull our minds together and solve the CSV issue for > LiveCode, we've also had so many contributions to the source I no longer > recall who suggested the first posted version, and many people contributed > ideas along the way. > > So where your Read Me says: > > Originally a project by Alex Tweedley to improve Richard's code, > we eventually put it in the community... > > ...it may be more accurate to say: > > After a community process with many contributors, Alex Tweedly > came up with what is currently the most robust general-purpose > CSV parser. > > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From mikedoub at gmail.com Fri Jun 10 13:50:49 2016 From: mikedoub at gmail.com (Michael Doub) Date: Fri, 10 Jun 2016 13:50:49 -0400 Subject: Raspberry Pi GPIO In-Reply-To: <575AF844.8070706@fourthworld.com> References: <575AF58A.3090601@fourthworld.com> <575AF844.8070706@fourthworld.com> Message-ID: I think you have to poll. This would be another feature that might go on the list to be done with LCB. -= Mike On 6/10/16 1:26 PM, Richard Gaskin wrote: > Earlier I wrote: > > > What is "the file method"? How do I treat GPIO connections as file > > paths? Somewhere in /proc? > > > > Earlier you wrote: > > > > Look at the comments in the library it self for how to solve > > the Accessing the GPIO (of a raspberry pi) without "sudo" problem. > > > > The stack script isn't very big, and perhaps I'm just pre-coffee but I > > couldn't find anything there about sudo. > > > > Where should I be looking? > > Coffee helped. I was looking in "the stack itself", and then for a > "Hardware" section, overlooking the "Raspberry Pi" section right there > in front of me once I thought to scroll down to look for it. :) > > It seems the "files" method is using a mounted virtual file system, > similar to /proc or /run/shm, which are actually elements in RAM > accessible through file-like paths in keeping with the Unix tradition > of "everything is a file". This appears to be the common method for > obtaining GPIO data: > > > Thanks for maintaining the Master Lib - with what's there I should be > able to poke around and get what I need. > > One last question for now: is there any mechanism accessible to use > in LiveCode that allows our app to subscribe to events in > /sys/class/gpio, or do we need to poll for changes? > From ambassador at fourthworld.com Fri Jun 10 14:05:13 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 10 Jun 2016 11:05:13 -0700 Subject: Raspberry Pi community team? Message-ID: <575B0159.6070404@fourthworld.com> Discussing Raspberry Pi with the team, it seems that although they'd like to add it into their build system the time required to do so is in short supply. So if we want an updated Pi build, it's up to the community to make it happen. I haven't run a make file since before we used make files (THINK C - yes, that long ago), so as much as I'd like to help I'm not the one you folks want to wait for. Anyone here have time and interest to try an ARM compile of the Pi build? In addition to updating to v8, there's apparently an issue in which clicking in the menu bar causes a hard crash, but only for some but not everyone. My own needs with Pi are strictly IoT at the moment, so the Pi Server build is fine for what I'm looking for. But I'd be happy to help however I can in assembling a process whereby the community can build and maintain LC for Pi going 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 mikedoub at gmail.com Fri Jun 10 15:32:00 2016 From: mikedoub at gmail.com (Mike Doub) Date: Fri, 10 Jun 2016 15:32:00 -0400 Subject: Raspberry Pi GPIO In-Reply-To: <575AF58A.3090601@fourthworld.com> References: <575AF58A.3090601@fourthworld.com> Message-ID: <0cf7cced-bd7e-44cb-96a1-a40ffc7609c9@typeapp.com> Sorry,? this is beyond me as well -= Mike On Jun 10, 2016, 1:15 PM, at 1:15 PM, Richard Gaskin wrote: >Michael Doub wrote: > > Richard, > > > > You initial gut reaction is STILL correct. Currently the only > > solution available to livecoders is the file method. > >What is "the file method"? How do I treat GPIO connections as file >paths? Somewhere in /proc? > >Earlier you wrote: > > Look at the comments in the library it self for how to solve > the Accessing the GPIO (of a raspberry pi) without "sudo" problem. > >The stack script isn't very big, and perhaps I'm just pre-coffee but I >couldn't find anything there about sudo. > >Where should I be looking? > > > > It would be wonderful if someone could write a library that allowed > > direct access to the actual GPIO driver. I am hoping someone with > > LiveCode builder skills will solve this problem. If python can do > > it, so can livecode. > >I would imagine so, but in Python it's easy because someone wrote a >component for GPIO. I haven't looked into this deeply so forgive my >ignorance, but how does GPIO present itself to an application? A sort >of named pipe, or serial I/O, or....? > >-- > 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 hh at hh.on-rev.com Sat Jun 11 04:34:00 2016 From: hh at hh.on-rev.com (-hh) Date: Sat, 11 Jun 2016 01:34:00 -0700 (PDT) Subject: Raspberry Pi GPIO In-Reply-To: <0cf7cced-bd7e-44cb-96a1-a40ffc7609c9@typeapp.com> References: <5759EFD2.1050705@fourthworld.com> <575ADA7E.8010606@fourthworld.com> <575AF58A.3090601@fourthworld.com> <0cf7cced-bd7e-44cb-96a1-a40ffc7609c9@typeapp.com> Message-ID: <1465634040555-4705665.post@n4.nabble.com> Perhaps the best "library" to Raspi-GPIO, that may also answer most of your technical questions (in the C-part). http://elinux.org/RPi_GPIO_Code_Samples Note the line in the C example that explains how to make this "Raspi 1"-code working on a Raspi 2. Especially for you the WebIOPi may be also interesting: http://webiopi.trouch.com/ Relating to PIR sensors there are well-tested-tutorials in English in the folks (I dont link to the one I used, because it's in German only). === This is my 'unsharp' opinion (may hopefully need an update with LC's FFI): If you use python via shell from LC this doesn't really matter: LC 7 is *much* slower than LC 6, and LC 6 is slower than Python, and Python is *much* slower than C anyway. Sums up to a factor of close to 100 in time needed. LCB will not bring that down below 10, I presume. Nevertheless, using LC on Raspi for hardware is *really* good for rapid TESTING (use LC 6), NOT for rapid WORKING. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Raspberry-Pi-GPIO-tp4705616p4705665.html Sent from the Revolution - User mailing list archive at Nabble.com. From richmondmathewson at gmail.com Sat Jun 11 08:13:58 2016 From: richmondmathewson at gmail.com (RM) Date: Sat, 11 Jun 2016 15:13:58 +0300 Subject: Help yourself. Message-ID: <575C0086.8000500@gmail.com> I'm starting with my kids on Monday: and I'm releasing the stacks for teaching as I go along (2 already uploaded). So, anyone who wishes to teach with these stacks, mess around for fun, or whatever, is more than welcome to pop across to the Facebook page and "beg, borrow or steal" the material with my blessing. Have a super Summer. https://www.facebook.com/RMLCclasses/ Richmond Mathewson. From maarten.koopmans at gmail.com Sat Jun 11 09:00:14 2016 From: maarten.koopmans at gmail.com (Maarten Koopmans) Date: Sat, 11 Jun 2016 15:00:14 +0200 Subject: livecode 8 system tray / osx menu bar support Message-ID: Hi, See subject - can I put a Livecode app in the menu bar or system tray. From 4.5 onwards there was this hidden feature. I haven't tried, but I'd expected it to be in the docs if it were. SEE http://downloads.livecode.com/livecode/4_5_0/LiveCodeNotes-4_5_0.pdf and search for system tray. If anyone knows how to do this or has an insight or example to offer, that would be highly appreciated. Thanks, Maarten From monte at appisle.net Sat Jun 11 09:06:43 2016 From: monte at appisle.net (Monte Goulding) Date: Sat, 11 Jun 2016 23:06:43 +1000 Subject: livecode 8 system tray / osx menu bar support In-Reply-To: References: Message-ID: <3660E60E-F038-47EB-953F-89DE738218FC@appisle.net> Maarten could you report this. I believe the LC updater uses both of these so I'd say it's no longer experimental. The menu bar widget on Mac is not supported. It would be a helpful feature to have I think. Cheers Monte Sent from my iPhone > On 11 Jun 2016, at 11:00 PM, Maarten Koopmans wrote: > > See subject - can I put a Livecode app in the menu bar or system tray. From > 4.5 onwards there was this hidden feature. I haven't tried, but I'd > expected it to be in the docs if it were From hh at hh.on-rev.com Sat Jun 11 10:07:58 2016 From: hh at hh.on-rev.com (-hh) Date: Sat, 11 Jun 2016 07:07:58 -0700 (PDT) Subject: Raspberry Pi GPIO In-Reply-To: <1465634040555-4705665.post@n4.nabble.com> References: <5759EFD2.1050705@fourthworld.com> <575ADA7E.8010606@fourthworld.com> <575AF58A.3090601@fourthworld.com> <0cf7cced-bd7e-44cb-96a1-a40ffc7609c9@typeapp.com> <1465634040555-4705665.post@n4.nabble.com> Message-ID: <1465654078850-4705669.post@n4.nabble.com> Forgot to mention, in case you are interested in WebIOPi, there is a patch: WebIOPi-0.7.1 Patch for Raspberry B+, Pi2, and Pi3 https://github.com/doublebind/raspi/ I had it running on Raspi2, but not yet on Raspi3. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Raspberry-Pi-GPIO-tp4705616p4705669.html Sent from the Revolution - User mailing list archive at Nabble.com. From maarten.koopmans at gmail.com Sat Jun 11 11:00:16 2016 From: maarten.koopmans at gmail.com (Maarten Koopmans) Date: Sat, 11 Jun 2016 17:00:16 +0200 Subject: livecode 8 system tray / osx menu bar support In-Reply-To: <3660E60E-F038-47EB-953F-89DE738218FC@appisle.net> References: <3660E60E-F038-47EB-953F-89DE738218FC@appisle.net> Message-ID: Report where? I am happy to do so. Op zaterdag 11 juni 2016 heeft Monte Goulding het volgende geschreven: > Maarten could you report this. I believe the LC updater uses both of these > so I'd say it's no longer experimental. > > The menu bar widget on Mac is not supported. It would be a helpful feature > to have I think. > > Cheers > > Monte > > Sent from my iPhone > > > On 11 Jun 2016, at 11:00 PM, Maarten Koopmans < > maarten.koopmans at gmail.com > wrote: > > > > See subject - can I put a Livecode app in the menu bar or system tray. > From > > 4.5 onwards there was this hidden feature. I haven't tried, but I'd > > expected it to be in the docs if it were > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Sat Jun 11 11:30:01 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 11 Jun 2016 08:30:01 -0700 Subject: Raspberry Pi GPIO In-Reply-To: <1465654078850-4705669.post@n4.nabble.com> References: <1465654078850-4705669.post@n4.nabble.com> Message-ID: <575C2E79.306@fourthworld.com> -hh wrote: > Forgot to mention, in case you are interested in WebIOPi, > there is a patch: > > WebIOPi-0.7.1 Patch for Raspberry B+, Pi2, and Pi3 > https://github.com/doublebind/raspi/ > > I had it running on Raspi2, but not yet on Raspi3. Thanks. Bookmarked for when I get back to that. Right now I have a very small Pi project that doesn't need GPIO, and I don't know when I'll get back to the GPIO project given the state of LC in Pi. Yesterday my Pi3 arrived and I tried once again to see if any of the three most recent LC builds would run on it. And once again, as with my Pi2, the older of the three crashes on launch, the other two crash as soon as I click anywhere in the menu bar. Too bad, since the Pi is very popular in EDU and LC is a perfect fit for that. I'm hoping to get some time to work out the compile details so I can at least compile v8 for Pi, but I don't know when that will be. And even when I do, I doubt I have the C chops to track down and fix the menu bar crasher. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Sat Jun 11 11:47:34 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 11 Jun 2016 08:47:34 -0700 Subject: Raspberry Pi GPIO In-Reply-To: <575C2E79.306@fourthworld.com> References: <575C2E79.306@fourthworld.com> Message-ID: <575C3296.5090604@fourthworld.com> Earlier I wrote: > Yesterday my Pi3 arrived and I tried once again to see if any of the > three most recent LC builds would run on it. And once again, as with my > Pi2, the older of the three crashes on launch, the other two crash as > soon as I click anywhere in the menu bar. > > Too bad, since the Pi is very popular in EDU and LC is a perfect fit for > that. > > I'm hoping to get some time to work out the compile details so I can at > least compile v8 for Pi, but I don't know when that will be. And even > when I do, I doubt I have the C chops to track down and fix the menu bar > crasher. I should add that the crashers appear limited to GUI routines. My current Pi3 SD card has Raspbian Jessie Lite with no GUI, a better fit for the lower-powered Pi and all you need for server and IoT projects. In that setup the most recent LC Server build for Pi works very well. So if you were excited about LC on Pi for GUIs, it seems a mixed bag in which some folks are having a good time and others getting crashers. But if you're using your Pi for server or IoT projects, run LC Server without a GUI and it seems to run reliably well. And FWIW, I once ran my Pi2 under Ubuntu Snappy Core, the new super-slim Ubuntu edition with their new Snap packaging optimized for microservers and IoT. LC Server ran well there. There isn't yet a build of Ubuntu Core for Pi3, but it should be just another couple weeks and once it's out I'll be using that and can report back here on how it goes with LC Server if anyone's interested. -- 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 Sat Jun 11 11:52:50 2016 From: richmondmathewson at gmail.com (RM) Date: Sat, 11 Jun 2016 18:52:50 +0300 Subject: Commercial version lockout Message-ID: <575C33D2.5000106@gmail.com> Am I right in thinking that if one opens a stack in the Commercial version of Livecode and then saves it, it will be unopenable in the Community version? Richmond. From ambassador at fourthworld.com Sat Jun 11 12:06:04 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 11 Jun 2016 09:06:04 -0700 Subject: Commercial version lockout In-Reply-To: <575C33D2.5000106@gmail.com> References: <575C33D2.5000106@gmail.com> Message-ID: <575C36EC.3090707@fourthworld.com> RM wrote: > Am I right in thinking that if one opens a stack in the Commercial > version of Livecode and then saves it, it will be unopenable in the > Community version? Only if you've set a password for any of the stacks in the stack file. Otherwise, both editions use the same format. -- 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 m.schonewille at economy-x-talk.com Sat Jun 11 12:13:02 2016 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 11 Jun 2016 18:13:02 +0200 Subject: Commercial version lockout In-Reply-To: <575C33D2.5000106@gmail.com> References: <575C33D2.5000106@gmail.com> Message-ID: <95618732-4181-4154-8ECB-729B0CDD6750@economy-x-talk.com> No, it is not like this, but you have to be careful when you open a stack in a newer version of LiveCode. Sometimes it is difficult to go back. -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com Op 11 jun. 2016 om 17:52 heeft RM het volgende geschreven: > Am I right in thinking that if one opens a stack in the Commercial version of Livecode > and then saves it, it will be unopenable in the Community version? > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Sat Jun 11 12:20:34 2016 From: richmondmathewson at gmail.com (RM) Date: Sat, 11 Jun 2016 19:20:34 +0300 Subject: Commercial version lockout In-Reply-To: <575C36EC.3090707@fourthworld.com> References: <575C33D2.5000106@gmail.com> <575C36EC.3090707@fourthworld.com> Message-ID: <575C3A52.5020807@gmail.com> That's extremely good to know. Richmond. On 11.06.2016 19:06, Richard Gaskin wrote: > RM wrote: > > Am I right in thinking that if one opens a stack in the Commercial > > version of Livecode and then saves it, it will be unopenable in the > > Community version? > > Only if you've set a password for any of the stacks in the stack file. > > Otherwise, both editions use the same format. > From hh at hh.on-rev.com Sat Jun 11 12:39:38 2016 From: hh at hh.on-rev.com (-hh) Date: Sat, 11 Jun 2016 09:39:38 -0700 (PDT) Subject: Raspberry Pi GPIO In-Reply-To: <575C3296.5090604@fourthworld.com> References: <5759EFD2.1050705@fourthworld.com> <575ADA7E.8010606@fourthworld.com> <575AF58A.3090601@fourthworld.com> <0cf7cced-bd7e-44cb-96a1-a40ffc7609c9@typeapp.com> <1465634040555-4705665.post@n4.nabble.com> <1465654078850-4705669.post@n4.nabble.com> <575C2E79.306@fourthworld.com> <575C3296.5090604@fourthworld.com> Message-ID: <1465663178104-4705677.post@n4.nabble.com> Currently I ran = Lubuntu 15.10 on Raspi2, runs LC 6.5.1 and 7.0.4 without any problem = Xubuntu 16.04 on Raspi3, runs LC 6.5.1 and 7.0.4 without any problem installed from here: https://ubuntu-pi-flavour-maker.org/download/ There is also Ubuntu Server Minimal 16.04 for Raspi3 ... -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Raspberry-Pi-GPIO-tp4705616p4705677.html Sent from the Revolution - User mailing list archive at Nabble.com. From nabble at mad.pink Sat Jun 11 14:21:22 2016 From: nabble at mad.pink (pink) Date: Sat, 11 Jun 2016 11:21:22 -0700 (PDT) Subject: Very OT - Bad pun In-Reply-To: References: <677062E1-58F7-48D7-A52E-A37CCF6E7210@jerrydaniels.com> <0E429C81-BBBC-4D3D-8649-7581230F2BDF@jerrydaniels.com> <99980660-7B77-4A4D-906B-ED790D9C2519@appisle.net> Message-ID: <1465669282569-4705678.post@n4.nabble.com> Jerry Daniels-3 wrote > I figured out what 'Ali awesomeness' meant just before I checked email. > I've got Mohammed Ali on the brain this week, I suppose. I realize the spelling is off, but RunRev could put on their own Ali-Fraser match. and I can't think of anything that rhymes Edinburgh... but if we moved it just a little ways away we could call it the "Fiasco is Glasgow" -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/mergExt-Markdown-tp4705608p4705678.html Sent from the Revolution - User mailing list archive at Nabble.com. From gregory.lypny at videotron.ca Sat Jun 11 15:48:00 2016 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Sat, 11 Jun 2016 15:48:00 -0400 Subject: Need Help With String Pattern Matching Message-ID: <19A0E5FC-E4CE-42E8-9DD1-1B4D9040B7F9@videotron.ca> Hello everyone, I?ve just come back to LiveCode and I'm pretty little rusty. I used to do some basic text analysis of files where the lines containing strings of interest were consistent and therefore easy to spot. I am now working on files where the chunk of text that contains the data I want is more ambiguous. I figure I should be using MatchChunk and was wondering if anyone might give me some tips on how to do the following. The chunk that I want to extract will have a certain word or phrase near its start and a certain word or phrase near its end. There may be many such chunks like it in the document, but the best candidate contains certain other strings. Here?s an example: The chunk starts with the word *owner* or the phrase *beneficial owner*. The chunk ends with *all directors* or *less than one percent*. The chunk contains all of the following: - At least four or five big numbers, e.g., 234,879 - At least two percentages, e.g., 3.4%, or percentage signs If you are curious, this would more or less identify an ownership table in a proxy statement filed at the Securities and Exchange Commission. These are archived at the SEC in text and html (in vintages going back to about 1994). Any tips or examples would be much appreciated. Regards, Gregory From monte at appisle.net Sat Jun 11 18:37:57 2016 From: monte at appisle.net (Monte Goulding) Date: Sun, 12 Jun 2016 08:37:57 +1000 Subject: livecode 8 system tray / osx menu bar support In-Reply-To: References: <3660E60E-F038-47EB-953F-89DE738218FC@appisle.net> Message-ID: Thanks Maarten. Could you report on quality.livecode.com Sent from my iPhone > On 12 Jun 2016, at 1:00 AM, Maarten Koopmans wrote: > > Report where? I am happy to do so. From richmondmathewson at gmail.com Sun Jun 12 03:54:05 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 12 Jun 2016 10:54:05 +0300 Subject: Tarting up one's interface In-Reply-To: <575C36EC.3090707@fourthworld.com> References: <575C33D2.5000106@gmail.com> <575C36EC.3090707@fourthworld.com> Message-ID: <575D151D.7060504@gmail.com> http://forums.livecode.com/viewtopic.php?f=5&t=27479&p=143611#p143611 Richmond. From richmondmathewson at gmail.com Sun Jun 12 16:00:48 2016 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 12 Jun 2016 23:00:48 +0300 Subject: [OT] building hpkg packages for Haiku OS Message-ID: <575DBF70.4020901@gmail.com> I cannot find adequate documentation on this. Supposedly (!), one can build from source code, fully functional Haiku OS apps such as (!) Livecode (?). Richmond. From mwieder at ahsoftware.net Sun Jun 12 16:30:25 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 12 Jun 2016 13:30:25 -0700 Subject: Raspberry Pi GPIO In-Reply-To: <5759EFD2.1050705@fourthworld.com> References: <5759EFD2.1050705@fourthworld.com> Message-ID: <575DC661.5020703@ahsoftware.net> On 06/09/2016 03:38 PM, Richard Gaskin wrote: > What's needed to work with the GPIO on RPi? > > I'd like to work with a motion sensor, and would prefer to work with LC > instead Python if I can. > Not LC, but I came across a very nice Forth for the pi: supports C-code primitives and has a GPIO example. http://elinux.org/Forth -- Mark Wieder ahsoftware at gmail.com From sundown at pacifier.com Sun Jun 12 16:41:42 2016 From: sundown at pacifier.com (JB) Date: Sun, 12 Jun 2016 13:41:42 -0700 Subject: [OT] building hpkg packages for Haiku OS In-Reply-To: <575DBF70.4020901@gmail.com> References: <575DBF70.4020901@gmail.com> Message-ID: <7FB7722E-B370-411E-A6AE-9B6A68BB9F39@pacifier.com> I was reading a little about it and it said it is a open source OS built using JAM. Then I read a little about JAM and it said JAM has Efficient C bindings* Since LiveCode is written in C++ it might mean it could be incorporated easily. JB > On Jun 12, 2016, at 1:00 PM, Richmond wrote: > > I cannot find adequate documentation on this. > > Supposedly (!), one can build from source code, fully functional Haiku OS apps > such as (!) 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 ambassador at fourthworld.com Sun Jun 12 17:51:37 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 12 Jun 2016 14:51:37 -0700 Subject: [OT] building hpkg packages for Haiku OS In-Reply-To: <575DBF70.4020901@gmail.com> References: <575DBF70.4020901@gmail.com> Message-ID: <575DD969.90306@fourthworld.com> JB wrote: > I was reading a little about it and it said it is a open source > OS built using JAM. Then I read a little about JAM and it said > JAM has Efficient C bindings* > Since LiveCode is written in C++ it might mean it could be > incorporated easily. "Easily" is relative. LiveCode is not an island. It's a system that carefully factors our common LiveCode Script to provide seven different sets of interfaces to underlying OS calls. I suppose there are some things that are truly generic across platforms, but anything touching GUI elements, file systems, or other OS-controlled things are likely not so "easy" to write all over again for another OS. Haiku was originally BeOS, a wonderful system with many interesting and somewhat advanced features. But after Apple passed on it in favor of the much-more-expensive NeXT, Be languished, eventually becoming open source under a new trademark as HaikuOS. BeOS was an unusual system. I would imagine porting the LC engine to it would be at least as expensive as porting the Mac build from Carbon to Cocoa, but without any of Apple's tools or libraries to help. But then again I've never done C programming for BeOS. If it seems easy to port LC to it don't let me stop you. :) -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From sundown at pacifier.com Sun Jun 12 18:19:40 2016 From: sundown at pacifier.com (JB) Date: Sun, 12 Jun 2016 15:19:40 -0700 Subject: [OT] building hpkg packages for Haiku OS In-Reply-To: <575DD969.90306@fourthworld.com> References: <575DBF70.4020901@gmail.com> <575DD969.90306@fourthworld.com> Message-ID: Thanks Richard. Don?t worry you won?t be stopping me frorm adding LiveCode to a new version of BeOS. I do have some old BeOS ROMS & software but I have not used them in years. Efficient bindings would suggest to me you could easily use C libraries and if LiveCode is written with libraries it might be reasonably easy for someone to add them but I am not the person for that job, plus I am busy trying to finish the program you gave me advice to speed up. Someone posted on here the first 90% of a program takes 90% of the time and the last 10% takes the other 90% of the time. I still have a few percent to finish so I do not have the time even if it is easy. JB > On Jun 12, 2016, at 2:51 PM, Richard Gaskin wrote: > > JB wrote: > > > I was reading a little about it and it said it is a open source > > OS built using JAM. Then I read a little about JAM and it said > > JAM has Efficient C bindings* > > Since LiveCode is written in C++ it might mean it could be > > incorporated easily. > > "Easily" is relative. > > LiveCode is not an island. It's a system that carefully factors our common LiveCode Script to provide seven different sets of interfaces to underlying OS calls. > > I suppose there are some things that are truly generic across platforms, but anything touching GUI elements, file systems, or other OS-controlled things are likely not so "easy" to write all over again for another OS. > > Haiku was originally BeOS, a wonderful system with many interesting and somewhat advanced features. > > But after Apple passed on it in favor of the much-more-expensive NeXT, Be languished, eventually becoming open source under a new trademark as HaikuOS. > > BeOS was an unusual system. I would imagine porting the LC engine to it would be at least as expensive as porting the Mac build from Carbon to Cocoa, but without any of Apple's tools or libraries to help. > > But then again I've never done C programming for BeOS. If it seems easy to port LC to it don't let me stop you. :) > > -- > 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 Sun Jun 12 20:59:39 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 13 Jun 2016 00:59:39 +0000 Subject: Problem with Player on Windows Message-ID: I am mentoring a very smart older man who is a complete LiveCode newbie who is on Windows He was trying to get a player "PlayMySounds" to work with pretty "bad" results. I advised him to set up his project like this MyLiveCode Project (folder) myFirstLCSTack.livecode /audio /listenToBirds.mp3 /img /data If he set the filename of a player from inside the inspector? and choses the "listenToBirds.mp3" the file name would appear something like :/C:/MyDrive/LiveCode/MyLiveCodeProject/audio/listenToBirds.mp3 If he clicked play to start the player? the audio plays as expected changing the path to a relative path: file: audio/listenToBirds.mp3 oin the inspector? the player will plays the file. if we try to create a button on mouseUp start player "PlayMeSounds" end mouseup the player simply jumped to the end? but you *can* still hit the play icon on the control itself and the sound plays. if we removed the filename from the player, in the inspector then strange things happen. The player disappears from the screen, but it's vis prop is still true! If you select it in the Project Browser, it appears on the card with dotted line around it but no player inside. ?? I advised him to upgrade to 8.1.0? I hope that was a good idea Comments? Brahmanathaswami From jacque at hyperactivesw.com Sun Jun 12 22:22:36 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 12 Jun 2016 21:22:36 -0500 Subject: Problem with Player on Windows In-Reply-To: References: Message-ID: On 6/12/2016 7:59 PM, Sannyasin Brahmanathaswami wrote: > if we removed the filename from the player, in the inspector then > strange things happen. > > The player disappears from the screen, but it's vis prop is still > true! If you select it in the Project Browser, it appears on the > card with dotted line around it but no player inside. I suspect that without a filename, there is no size to calculate. So it's visible but has no width or length. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From cubist at aol.com Sun Jun 12 23:45:20 2016 From: cubist at aol.com (Quentin Long) Date: Sun, 12 Jun 2016 23:45:20 -0400 Subject: Need Help With String Pattern Matching In-Reply-To: References: Message-ID: <15547dd1ae8-1367-fbf8@webstg-a05.mail.aol.com> Message: 14 Date: Sat, 11 Jun 2016 15:48:00 -0400 From: Gregory Lypny To: LiveCode Discussion List Subject: Need Help With String Pattern Matching Message-ID: <19A0E5FC-E4CE-42E8-9DD1-1B4D9040B7F9 at videotron.ca> Content-Type: text/plain; charset=utf-8 Hello everyone, > I used to do some basic text analysis of files where the lines containing strings of interest were consistent and therefore easy to spot. I am now working on files where the chunk of text that contains the data I want is more ambiguous.? >The chunk starts with the word *owner* or the phrase *beneficial owner*. > >The chunk ends with *all directors* or *less than one percent*. > >The chunk contains all of the following: >- At least four or five big numbers, e.g., 234,879 >- At least two percentages, e.g., 3.4%, or percentage signs MatchChunk uses regular expressions ("regex" for short). I don't claim to be a master of regex, but hopefully the following will be of some help to you. First off, "owner" or "beneficial owner". That would be like so: [owner|beneficial owner] Since that's the start of the chunks you're interested in, you'll put that at the beginning of your regex filter. Next is "all directors" or "less than one percent". That's going to be similar: [all directors|less than one percent] And *that* bit goes at the *end* of your regex filter. In between the start-bit and the end-bit, you have "four or five big numbers", and "percentages" or "percentage signs". "Big number" isn't really a well-defined concept, but here's one way to go for "big numbers": [0-9][0-9],[0-9][0-9][0-9] In regex, that bit will match any string that consists of *at least* two digits, a comma, and three more digits. It'll match XX,XXX (where "X" is any digit at all); it'll match XXX,XXX (because if you can match *two* digits in a row, you can certainly match *three* digits in a row); it'll match XX,XXXX (if you can match 3 in a row, you can match 4 in a row); and so on. Note that this bit *will not* match XXXXX?that's a string of five digits in a row *without* any commas. As for percentages, this will work for matching a percent sign: & And this will work for matching a single digit followed by a percent sign: [0-9]% I'm going to assume that you don't know exactly where the "big number"s or "percentage"s will be within the chunks you're interested in, or how many characters will occur in between the bits of interest. If you want your regex filter to ignore what occurs between the bits of interest, this will do the trick: .* The period will match any character (except a newline character), and the asterisk is regex for "at least 0 of that thing just previous". So if you want to match Big Number followed by Percentage, this should do the trick: [0-9][0-9],[0-9][0-9][0-9].*[0-9]% If you at least know what order your Big Numbers and Percentages going to be found in, you can build a regex filter for that sequence by fitting the bits together like Lego bricks, with the period-asterisk "spacer" in between the important bits. "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 peter.brett at livecode.com Mon Jun 13 05:06:40 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 13 Jun 2016 10:06:40 +0100 Subject: csvToText Repository In-Reply-To: References: Message-ID: <8464fef1-bb82-4386-c4e5-c9dc8fae8b90@livecode.com> On 10/06/2016 14:53, Mike Kerner wrote: > As far as I know, the latest/greatest code for converting csv to text is > now on my git repository: > https://github.com/macMikey/csvToText This is great! Can I make a feature request to parse CSV data into an array? Peter -- Dr Peter Brett LiveCode Technical Project Manager LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ From peter.brett at livecode.com Mon Jun 13 05:10:20 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 13 Jun 2016 10:10:20 +0100 Subject: dropbox repositories: phxdropbox v. 1.12 and dropboxapi In-Reply-To: References: Message-ID: <287dc25c-3a54-3b44-0a4d-fdfcd00cf97b@livecode.com> On 10/06/2016 14:52, Mike Kerner wrote: > All, > the latest phxdropbox library is now on my git repository. Dropbox changed > an error handling response: > https://github.com/macMikey/phxDropboxLib > > > Also, I'm going to keep/maintain Gerard's dropbox api v2 while I work on > improving it: > https://github.com/macMikey/dropboxapi_v2 Hi Mike, Can you please add "LICENSE.md" files to each of these repositories? It makes it much clearer what license applies to each without having to grub around in the source code. Thanks! Peter -- Dr Peter Brett LiveCode Technical Project Manager LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ From peter.brett at livecode.com Mon Jun 13 05:11:55 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 13 Jun 2016 10:11:55 +0100 Subject: dropbox repositories: phxdropbox v. 1.12 and dropboxapi In-Reply-To: References: Message-ID: <6aa5a24f-5d61-ef0f-4d92-de5d7669f9f3@livecode.com> On 10/06/2016 14:52, Mike Kerner wrote: > All, > the latest phxdropbox library is now on my git repository. Dropbox changed > an error handling response: > https://github.com/macMikey/phxDropboxLib Hi Mike, I also recommend making "proper" releases of phxDropboxLib. If you do that, GitHub will let you add release notes and make it possible for people to download the version of the project as a zip file. https://help.github.com/articles/creating-releases/ Peter -- Dr Peter Brett LiveCode Technical Project Manager LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ From me at jerrydaniels.com Mon Jun 13 07:37:26 2016 From: me at jerrydaniels.com (me at jerrydaniels.com) Date: Mon, 13 Jun 2016 06:37:26 -0500 Subject: LC and webviews Message-ID: I just read this article about Basecamp's use of webviews in their mobile (Android in this case) apps. It got me thinking about LiveCode's htmlText. Does it use some sort of CSS? If so, can one be set in its stead? Link to webviews article: https://m.signalvnoise.com/debunking-android-myths-webviews-suck-so-make-everything-native-cea5f8a8db87#.8c54ftec5 Best, Jerry From alex at tweedly.net Mon Jun 13 07:45:52 2016 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 13 Jun 2016 12:45:52 +0100 Subject: csvToText Repository In-Reply-To: <8464fef1-bb82-4386-c4e5-c9dc8fae8b90@livecode.com> References: <8464fef1-bb82-4386-c4e5-c9dc8fae8b90@livecode.com> Message-ID: <12ecd088-d819-430a-b0af-69c3b1629e55@tweedly.net> "into an array" .... in what way ? presumably a numerically indexed array. Perhaps a more general feature requests would be to extend the 'split' command, so that it would parse by Primary and Secondary delimiters into numerically indexed arrays ? (using a new optional keyword "completely" ... :-) e.g. split completely myVar by CR and TAB would take a variable (such as the output from csvtotext) containing John smith betty boop into myVar[1][1] = John myVar[1][2] = smith myVar[2][1] = betty myVar[2][2] = boop then we could simply do put csvToText(myCSVFileContent) into myText split completely myText by CR and TAB Of course, that can be done in a simple (untested) script put 0 into lCount repeat for each line L in myText add 1 to lCount put 0 into iCount repeat for each item I in L add 1 to iCount put I into myArray[lCount][iCount] end repeat end repeat but having it done as part of the split command would be much faster (and would just feel right to me :-) -- Alex. On 13/06/2016 10:06, Peter TB Brett wrote: > > > On 10/06/2016 14:53, Mike Kerner wrote: >> As far as I know, the latest/greatest code for converting csv to text is >> now on my git repository: >> https://github.com/macMikey/csvToText > > This is great! > > Can I make a feature request to parse CSV data into an array? > > Peter > > From peter.brett at livecode.com Mon Jun 13 08:30:36 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 13 Jun 2016 13:30:36 +0100 Subject: [ANN] This Week in LiveCode 37 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 #37 here: https://goo.gl/kRiN37 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! Are you doing something interesting with LiveCode Community Edition? Please get in touch and get it featured in "This Week in LiveCode"! Peter -- Dr Peter Brett LiveCode Technical Project Manager LiveCode on reddit: https://reddit.com/r/livecode From peter.brett at livecode.com Mon Jun 13 08:39:04 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 13 Jun 2016 13:39:04 +0100 Subject: New sections for This Week in LiveCode Message-ID: <673726dc-58b0-d898-9abc-ac145909563b@livecode.com> Hi everyone, With Panos's help I've added two new sections to the 'This Week in LiveCode' newsletter. - The "Bug Report of the Week" showcases one of the most useful or most interesting bug reports that we've received recently, with some notes on why we thought it was particularly worthy of attention - The "Help Needed" section is for anyone who's felt like getting involved in the LiveCode open source project but has found it hard to find a good area to which to contribute. Each week the newsletter will list some interesting tasks of various types and difficulties that might be a good starting point. If you feel like tackling one of them, let me know and I'll provide as much support as I can. Peter -- Dr Peter Brett LiveCode Technical Project Manager LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ From paul at researchware.com Mon Jun 13 09:10:34 2016 From: paul at researchware.com (Paul Dupuis) Date: Mon, 13 Jun 2016 09:10:34 -0400 Subject: csvToText Repository In-Reply-To: <12ecd088-d819-430a-b0af-69c3b1629e55@tweedly.net> References: <8464fef1-bb82-4386-c4e5-c9dc8fae8b90@livecode.com> <12ecd088-d819-430a-b0af-69c3b1629e55@tweedly.net> Message-ID: <575EB0CA.8010701@researchware.com> On 6/13/2016 7:45 AM, Alex Tweedly wrote: > Perhaps a more general feature requests would be to extend the 'split' > command, so that it would parse by Primary and Secondary delimiters > into numerically indexed arrays ? (using a new optional keyword > "completely" ... :-) See http://quality.livecode.com/show_bug.cgi?id=9950 From MikeKerner at roadrunner.com Mon Jun 13 09:54:16 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 13 Jun 2016 09:54:16 -0400 Subject: dropbox repositories: phxdropbox v. 1.12 and dropboxapi In-Reply-To: <6aa5a24f-5d61-ef0f-4d92-de5d7669f9f3@livecode.com> References: <6aa5a24f-5d61-ef0f-4d92-de5d7669f9f3@livecode.com> Message-ID: Good idea, and we will do that, moving forward. Thanks for the suggestion to the git n00b On Mon, Jun 13, 2016 at 5:11 AM, Peter TB Brett wrote: > > > On 10/06/2016 14:52, Mike Kerner wrote: > >> All, >> the latest phxdropbox library is now on my git repository. Dropbox >> changed >> an error handling response: >> https://github.com/macMikey/phxDropboxLib >> > > Hi Mike, > > I also recommend making "proper" releases of phxDropboxLib. If you do > that, GitHub will let you add release notes and make it possible for people > to download the version of the project as a zip file. > > https://help.github.com/articles/creating-releases/ > > > Peter > > -- > Dr Peter Brett > LiveCode Technical Project Manager > > LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Mon Jun 13 10:00:11 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 13 Jun 2016 10:00:11 -0400 Subject: csvToText Repository In-Reply-To: <575EB0CA.8010701@researchware.com> References: <8464fef1-bb82-4386-c4e5-c9dc8fae8b90@livecode.com> <12ecd088-d819-430a-b0af-69c3b1629e55@tweedly.net> <575EB0CA.8010701@researchware.com> Message-ID: Richard and Alex, do we have a preference for which license to release the code under? Peter was asking, on the dropbox thread, that we specify it. On Mon, Jun 13, 2016 at 9:10 AM, Paul Dupuis wrote: > On 6/13/2016 7:45 AM, Alex Tweedly wrote: > > Perhaps a more general feature requests would be to extend the 'split' > > command, so that it would parse by Primary and Secondary delimiters > > into numerically indexed arrays ? (using a new optional keyword > > "completely" ... :-) > See http://quality.livecode.com/show_bug.cgi?id=9950 > > _______________________________________________ > use-livecode mailing list > use-livecode 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 lyn.teyla at gmail.com Mon Jun 13 10:40:29 2016 From: lyn.teyla at gmail.com (Lyn Teyla) Date: Mon, 13 Jun 2016 16:40:29 +0200 Subject: LC and webviews In-Reply-To: References: Message-ID: <9540BDE4-2826-4916-85AD-82BBD15AE4AB@gmail.com> Jerry Daniels wrote: > I just read this article about Basecamp's use of webviews in their mobile (Android in this case) apps. It got me thinking about LiveCode's htmlText. Does it use some sort of CSS? If so, can one be set in its stead? That's exactly the sort of thing the browser widget in LiveCode 8 allows you to do, and it really opens the door to all sorts of possibilities. And, it works on all platforms, not just Android. Once the Windows bug is fixed, it will get even better: http://quality.livecode.com/show_bug.cgi?id=17633 ;) In my opinion, the multi-platform browser widget, with the included support for communication via JavaScript, is one of the most important features the LiveCode team has implemented, and will allow many more to consider LiveCode as a possible tool for development and deployment. You do need to know at least some rudimentary JavaScript (it's easy to pick up the essentials, though the more you know the better) so you can pass data back and forth between the browser widget and your LiveCode handlers. This way, you get to do the bulk of your coding using LiveCode rather than JavaScript, whilst using one or more browser widgets (a.k.a. "web views") to handle the UI via HTML, CSS and JavaScript. You can create any sort of polished UI that can be accomplished using web views, and use Angular, Bootstrap, and other established web-based UI frameworks to speed up the process. You can place your UI code on a server and update it on the fly. You can create reusable widgets and libraries based on HTML, CSS and/or JavaScript. You can tap into the huge repository of existing JavaScript libraries to shave off chunks of coding time. You can perform concurrent processing by handing stuff over to JavaScript in one or more browser widgets. In short, the browser widget is a brilliant, much-welcomed feature. Lyn From prothero at earthednet.org Mon Jun 13 11:29:32 2016 From: prothero at earthednet.org (Earthednet-wp) Date: Mon, 13 Jun 2016 08:29:32 -0700 Subject: LC and webviews In-Reply-To: <9540BDE4-2826-4916-85AD-82BBD15AE4AB@gmail.com> References: <9540BDE4-2826-4916-85AD-82BBD15AE4AB@gmail.com> Message-ID: <7DF63218-D349-4FD6-9C7B-1A817F1258BF@earthednet.org> Lynn, Thank you for explaining some of the possibilities of the browser widget. I'd sure love to eventually see some simple example stacks showing how to implement some of these features. I'm not a JavaScript programmer, but can generally get by with a new language once I have a "skeleton" app to start with. One of my projects involves student writing that includes images and captions. It would be great to be able to format it in a nice looking presentation with nice wrapping around figures, etc. I can think of lots of other uses, especially for materials that may need regular updating. Best, Bill William Prothero http://es.earthednet.org > On Jun 13, 2016, at 7:40 AM, Lyn Teyla wrote: > > Jerry Daniels wrote: > >> I just read this article about Basecamp's use of webviews in their mobile (Android in this case) apps. It got me thinking about LiveCode's htmlText. Does it use some sort of CSS? If so, can one be set in its stead? > > That's exactly the sort of thing the browser widget in LiveCode 8 allows you to do, and it really opens the door to all sorts of possibilities. > > And, it works on all platforms, not just Android. > > Once the Windows bug is fixed, it will get even better: > > http://quality.livecode.com/show_bug.cgi?id=17633 > > ;) > > In my opinion, the multi-platform browser widget, with the included support for communication via JavaScript, is one of the most important features the LiveCode team has implemented, and will allow many more to consider LiveCode as a possible tool for development and deployment. > > You do need to know at least some rudimentary JavaScript (it's easy to pick up the essentials, though the more you know the better) so you can pass data back and forth between the browser widget and your LiveCode handlers. > > This way, you get to do the bulk of your coding using LiveCode rather than JavaScript, whilst using one or more browser widgets (a.k.a. "web views") to handle the UI via HTML, CSS and JavaScript. > > You can create any sort of polished UI that can be accomplished using web views, and use Angular, Bootstrap, and other established web-based UI frameworks to speed up the process. > > You can place your UI code on a server and update it on the fly. > > You can create reusable widgets and libraries based on HTML, CSS and/or JavaScript. > > You can tap into the huge repository of existing JavaScript libraries to shave off chunks of coding time. > > You can perform concurrent processing by handing stuff over to JavaScript in one or more browser widgets. > > In short, the browser widget is a brilliant, much-welcomed feature. > > Lyn > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From panos.merakos at livecode.com Mon Jun 13 11:44:39 2016 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 13 Jun 2016 16:44:39 +0100 Subject: [ ANN ] Release 8.0.2 RC-2 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 8.0.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.0.2 RC-2 contains 3 bug fixes for regressions introduced in LiveCode 8.0.2 RC-1. The full release notes are available from: http://downloads.livecode.com/livecode/8_0_2/LiveCodeNotes-8_0_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 me at jerrydaniels.com Mon Jun 13 12:01:43 2016 From: me at jerrydaniels.com (me at jerrydaniels.com) Date: Mon, 13 Jun 2016 11:01:43 -0500 Subject: LC and webviews In-Reply-To: <7DF63218-D349-4FD6-9C7B-1A817F1258BF@earthednet.org> References: <9540BDE4-2826-4916-85AD-82BBD15AE4AB@gmail.com> <7DF63218-D349-4FD6-9C7B-1A817F1258BF@earthednet.org> Message-ID: I've been using the browser object usefully, but my question was about LC text fields which you may have answered, actually. Best, Jerry On Jun 13, 2016, 10:31 AM -0500, Earthednet-wp, wrote: > Lynn, > Thank you for explaining some of the possibilities of the browser widget. > > I'd sure love to eventually see some simple example stacks showing how to implement some of these features. I'm not a JavaScript programmer, but can generally get by with a new language once I have a "skeleton" app to start with. > > One of my projects involves student writing that includes images and captions. It would be great to be able to format it in a nice looking presentation with nice wrapping around figures, etc. I can think of lots of other uses, especially for materials that may need regular updating. > > Best, > Bill > > William Prothero > http://es.earthednet.org > > > On Jun 13, 2016, at 7:40 AM, Lyn Teylawrote: > > > > Jerry Daniels wrote: > > > > > I just read this article about Basecamp's use of webviews in their mobile (Android in this case) apps. It got me thinking about LiveCode's htmlText. Does it use some sort of CSS? If so, can one be set in its stead? > > > > That's exactly the sort of thing the browser widget in LiveCode 8 allows you to do, and it really opens the door to all sorts of possibilities. > > > > And, it works on all platforms, not just Android. > > > > Once the Windows bug is fixed, it will get even better: > > > > http://quality.livecode.com/show_bug.cgi?id=17633 > > > > ;) > > > > In my opinion, the multi-platform browser widget, with the included support for communication via JavaScript, is one of the most important features the LiveCode team has implemented, and will allow many more to consider LiveCode as a possible tool for development and deployment. > > > > You do need to know at least some rudimentary JavaScript (it's easy to pick up the essentials, though the more you know the better) so you can pass data back and forth between the browser widget and your LiveCode handlers. > > > > This way, you get to do the bulk of your coding using LiveCode rather than JavaScript, whilst using one or more browser widgets (a.k.a. "web views") to handle the UI via HTML, CSS and JavaScript. > > > > You can create any sort of polished UI that can be accomplished using web views, and use Angular, Bootstrap, and other established web-based UI frameworks to speed up the process. > > > > You can place your UI code on a server and update it on the fly. > > > > You can create reusable widgets and libraries based on HTML, CSS and/or JavaScript. > > > > You can tap into the huge repository of existing JavaScript libraries to shave off chunks of coding time. > > > > You can perform concurrent processing by handing stuff over to JavaScript in one or more browser widgets. > > > > In short, the browser widget is a brilliant, much-welcomed feature. > > > > Lyn > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Mon Jun 13 12:02:45 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 13 Jun 2016 12:02:45 -0400 Subject: dropbox repositories: phxdropbox v. 1.12 and dropboxapi In-Reply-To: References: <6aa5a24f-5d61-ef0f-4d92-de5d7669f9f3@livecode.com> Message-ID: Have a look, now. On Mon, Jun 13, 2016 at 9:54 AM, Mike Kerner wrote: > Good idea, and we will do that, moving forward. Thanks for the suggestion > to the git n00b > > On Mon, Jun 13, 2016 at 5:11 AM, Peter TB Brett > wrote: > >> >> >> On 10/06/2016 14:52, Mike Kerner wrote: >> >>> All, >>> the latest phxdropbox library is now on my git repository. Dropbox >>> changed >>> an error handling response: >>> https://github.com/macMikey/phxDropboxLib >>> >> >> Hi Mike, >> >> I also recommend making "proper" releases of phxDropboxLib. If you do >> that, GitHub will let you add release notes and make it possible for people >> to download the version of the project as a zip file. >> >> https://help.github.com/articles/creating-releases/ >> >> >> Peter >> >> -- >> Dr Peter Brett >> LiveCode Technical Project Manager >> >> LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 ambassador at fourthworld.com Mon Jun 13 12:03:33 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 13 Jun 2016 09:03:33 -0700 Subject: [ANN] This Week in LiveCode 37 In-Reply-To: References: Message-ID: <575ED955.3080303@fourthworld.com> Peter TB Brett wrote: > 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 #37 here: https://goo.gl/kRiN37 > > 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! The 10 most recent community newsletters are also available right in the IDE in LiveNet ("RevNet" in versions prior to v8.0) - see Development -> Plugins -> GoLiveNet > With Panos's help I've added two new sections to the 'This Week in > LiveCode' newsletter. > > - The "Bug Report of the Week" showcases one of the most useful or > most interesting bug reports that we've received recently, with some > notes on why we thought it was particularly worthy of attention > > - The "Help Needed" section is for anyone who's felt like getting > involved in the LiveCode open source project but has found it hard to > find a good area to which to contribute. Each week the newsletter > will list some interesting tasks of various types and difficulties > that might be a good starting point. If you feel like tackling one > of them, let me know and I'll provide as much support as I can. Great additions, thanks for adding those. -- 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 Jun 13 12:08:01 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 13 Jun 2016 09:08:01 -0700 Subject: csvToText Repository In-Reply-To: References: Message-ID: <575EDA61.3030400@fourthworld.com> Mike Kerner wrote: > Richard and Alex, do we have a preference for which license to > release the code under? Peter was asking, on the dropbox thread, > that we specify it. Good idea. Not only is Github strongly encouraging more explicit license declaration, but it's also just a good move to help anyone who wants to use the code know how they can do so. As I wrote earlier, I don't think there's any of my code in there anymore, and while some incidental portions may have come from others I think that's all Alex Tweedly. If we were voting I'd suggest MIT License, so Alex continues to retain credit for his good work and is absolved from liability, while the code could be used in both GPL and proprietary works. But of course it's up to him to choose a license that he feels reflects his own goals and preferences for that. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Mon Jun 13 12:10:47 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 13 Jun 2016 09:10:47 -0700 Subject: [ ANN ] Release 8.0.2 RC-2 In-Reply-To: References: Message-ID: <575EDB07.9000709@fourthworld.com> panagiotis merakos wrote: > We are pleased to announce the release of LiveCode 8.0.2 RC-2. Thanks for that. For those of us helping to test the latest feature release, any ETA on v8.1 DP2? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From alex at tweedly.net Mon Jun 13 12:11:41 2016 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 13 Jun 2016 17:11:41 +0100 Subject: csvToText Repository In-Reply-To: <575EDA61.3030400@fourthworld.com> References: <575EDA61.3030400@fourthworld.com> Message-ID: <12fac0b6-c154-6951-3b24-397f4c32a8d4@tweedly.net> I too have a preference for the MIT license. (Could you also correct the spelling of my name - on Github, you have an extra 'e' in Tweedley; Tweedly is enough. Thanks :-) Alex. On 13/06/2016 17:08, Richard Gaskin wrote: > Mike Kerner wrote: > > > Richard and Alex, do we have a preference for which license to > > release the code under? Peter was asking, on the dropbox thread, > > that we specify it. > > Good idea. Not only is Github strongly encouraging more explicit > license declaration, but it's also just a good move to help anyone who > wants to use the code know how they can do so. > > As I wrote earlier, I don't think there's any of my code in there > anymore, and while some incidental portions may have come from others > I think that's all Alex Tweedly. > > If we were voting I'd suggest MIT License, so Alex continues to retain > credit for his good work and is absolved from liability, while the > code could be used in both GPL and proprietary works. > > But of course it's up to him to choose a license that he feels > reflects his own goals and preferences for that. > From peter.brett at livecode.com Mon Jun 13 12:14:53 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 13 Jun 2016 17:14:53 +0100 Subject: 8.1.0 DP releases [was: Release 8.0.2 RC-2] In-Reply-To: <575EDB07.9000709@fourthworld.com> References: <575EDB07.9000709@fourthworld.com> Message-ID: On 13/06/2016 17:10, Richard Gaskin wrote: > panagiotis merakos wrote: >> We are pleased to announce the release of LiveCode 8.0.2 RC-2. > > Thanks for that. > > For those of us helping to test the latest feature release, any ETA on > v8.1 DP2? Sometime this week, probably. We were hoping to release it today, but we realized that we'd forgotten to increment the LiveCode Builder bytecode version number. We need to do that before the 8.1.0-dp-2 release because there are some non-backward-compatible changes to the bytecode. Peter -- Dr Peter Brett LiveCode Technical Project Manager LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ From ambassador at fourthworld.com Mon Jun 13 12:16:09 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 13 Jun 2016 09:16:09 -0700 Subject: LC and webviews In-Reply-To: <9540BDE4-2826-4916-85AD-82BBD15AE4AB@gmail.com> References: <9540BDE4-2826-4916-85AD-82BBD15AE4AB@gmail.com> Message-ID: <575EDC49.1090706@fourthworld.com> Lyn Teyla wrote: > You can create any sort of polished UI that can be accomplished using > web views, and use Angular, Bootstrap, and other established > web-based UI frameworks to speed up the process. > > You can place your UI code on a server and update it on the fly. We can do that with downloadable stacks now. Most apps I've built for the last few years live on a server, with the standalone containing only enough code to know where to download the first one. But as for the benefits of JS/HTML/CSS, yes and double-yes. Fully-native apps are great for when you need access to hardware features not supported in the browser. But those are relatively few, and once you become proficient with frameworks like Angular a whole new world opens up where you can choose between native apps, Web apps, or a mix of either, depending on the needs of the project at hand. -- 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 skiplondon at gmail.com Mon Jun 13 12:38:08 2016 From: skiplondon at gmail.com (Skip Kimpel) Date: Mon, 13 Jun 2016 12:38:08 -0400 Subject: Modal stack on third screen Message-ID: How can I open a modal stack on a different screen. For instance, I have two screens. I want the modal stack that I initiate from my main standalone to open on the same screen that I have moved my main standalone to? Currently, if I launch my main application on screen one, move it over to screen two and I initiate the modal stack, it appears back in the middle of screen one. Make sense? SKIP From livfoss at mac.com Mon Jun 13 12:41:47 2016 From: livfoss at mac.com (Graham Samuel) Date: Mon, 13 Jun 2016 18:41:47 +0200 Subject: Has anyone got to the end of the BMI Calculator example? Message-ID: Just to let anyone interested know, the BMI example works a LOT better on LC 8.0.2 rc-1. There are still a few glitches, and I still had to press ?fast forward? once. But I did complete the example. It leaves me with many questions about widgets and what seems to me new syntax, and indeed how to read the dictionary, but at least it can be done! I have added a bit more to my earlier comments for bug 17830. Graham PS I am officially overweight! From alex at tweedly.net Mon Jun 13 12:51:17 2016 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 13 Jun 2016 17:51:17 +0100 Subject: csvToText Repository In-Reply-To: <575EB0CA.8010701@researchware.com> References: <8464fef1-bb82-4386-c4e5-c9dc8fae8b90@livecode.com> <12ecd088-d819-430a-b0af-69c3b1629e55@tweedly.net> <575EB0CA.8010701@researchware.com> Message-ID: <4dd2cb52-4fd2-ea41-d82e-f46c574d3d2a@tweedly.net> Sorry, Paul - I suspect I had seen that before, but forgotten it. It was a good idea back then, and still is :-) Though, if we are going to add some form of "with colkeys", I believe there should be a version which says that the first line of the input contains the column keys; thus you could do Split X indexed using cr and tab with colKeys tColumns and tColumns contains the column keys or simply Split X indexed using cr and tab with colKeys and the first line of X contains the column keys (and line 1 is omitted from the results) If no-one tells me that's crazy (and why), I'll go add that to the feature request. Alex. On 13/06/2016 14:10, Paul Dupuis wrote: > On 6/13/2016 7:45 AM, Alex Tweedly wrote: >> Perhaps a more general feature requests would be to extend the 'split' >> command, so that it would parse by Primary and Secondary delimiters >> into numerically indexed arrays ? (using a new optional keyword >> "completely" ... :-) > See http://quality.livecode.com/show_bug.cgi?id=9950 > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jun 13 12:52:43 2016 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 13 Jun 2016 17:52:43 +0100 Subject: LC and webviews In-Reply-To: <575EDC49.1090706@fourthworld.com> References: <9540BDE4-2826-4916-85AD-82BBD15AE4AB@gmail.com> <575EDC49.1090706@fourthworld.com> Message-ID: <22aa782a-ac26-7464-1d4a-6aed13e9ee68@tweedly.net> On 13/06/2016 17:16, Richard Gaskin wrote: > Lyn Teyla wrote: > > > You can create any sort of polished UI that can be accomplished using > > web views, and use Angular, Bootstrap, and other established > > web-based UI frameworks to speed up the process. > > > > You can place your UI code on a server and update it on the fly. > > We can do that with downloadable stacks now. Unless we are on IOS ?? Presumably, there is no such restriction on webviews. > Most apps I've built for the last few years live on a server, with the > standalone containing only enough code to know where to download the > first one. > > But as for the benefits of JS/HTML/CSS, yes and double-yes. > > Fully-native apps are great for when you need access to hardware > features not supported in the browser. > > But those are relatively few, and once you become proficient with > frameworks like Angular a whole new world opens up where you can > choose between native apps, Web apps, or a mix of either, depending on > the needs of the project at hand. > From ambassador at fourthworld.com Mon Jun 13 13:30:56 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 13 Jun 2016 10:30:56 -0700 Subject: LC and webviews In-Reply-To: <22aa782a-ac26-7464-1d4a-6aed13e9ee68@tweedly.net> References: <22aa782a-ac26-7464-1d4a-6aed13e9ee68@tweedly.net> Message-ID: <575EEDD0.2060609@fourthworld.com> Alex Tweedly wrote: > On 13/06/2016 17:16, Richard Gaskin wrote: >> Lyn Teyla wrote: >> >> > You can create any sort of polished UI that can be accomplished >> > using web views, and use Angular, Bootstrap, and other established >> > web-based UI frameworks to speed up the process. >> > >> > You can place your UI code on a server and update it on the fly. >> >> We can do that with downloadable stacks now. > > Unless we are on IOS ?? Apple's current policy is not entirely clear on this, and the company reserves the right to change policies at any time. As we saw with iOS SDK v4 Section 3.3.1, they have demonstrated a willingness to introduce unexpected changes, even those that cause significant loss across many segments of the developer community, so there's no way to rely on any specific Apple policy when making business plans. As for the moment, my understanding of the current policy is to try to prevent approving an app that later morphs itself into something else. If a downloaded stack file contains no LiveCode Script, it should in all fairness be given the same allowance any other binary data for being downloadable for use in the application. With behaviors this is relatively straightforward, allowing developers to extend an application's content and provide additional functionality, perhaps even using Apple's in-app purchasing where appropriate. For stack files that contain code, there does appear to be a restriction on those, but it's unclear how well it's enforced or if they'd even care given how LC Script can't operate outside the sandboxed bounds of the LC engine embedded in the app that was approved. Still, it may be prudent for those concerned about the possibility of having an app pulled to take on the additional expense and delayed update time for your users by bundling new code into an entirely new app build for that one OS. -- 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 Jun 13 13:47:44 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 13 Jun 2016 11:47:44 -0600 Subject: Modal stack on third screen In-Reply-To: References: Message-ID: add a preopenstack handler to the stack you're going to modal and set its location there. You should be able to use the loc of your manstack to set its position. On Mon, Jun 13, 2016 at 10:38 AM, Skip Kimpel wrote: > How can I open a modal stack on a different screen. For instance, I have > two screens. I want the modal stack that I initiate from my main > standalone to open on the same screen that I have moved my main standalone > to? > > Currently, if I launch my main application on screen one, move it over to > screen two and I initiate the modal stack, it appears back in the middle of > screen one. > > Make sense? > > SKIP > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From brahma at hindu.org Mon Jun 13 14:17:15 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 13 Jun 2016 18:17:15 +0000 Subject: Problem with Player on Windows In-Reply-To: References: , Message-ID: I have been using the player for "decades" on mac and windows for audio only by locking the height to ~20 pixels and it has always been visible regardless of whether it has a filename or not. It also appears in 8 on mac. Let's see if it does better with the new player for windows in 8.1 otherwise will submit a bug report BR Swasti Astu! Be Well ( from my mobile ) On Sun, Jun 12, 2016 at 4:22 PM -1000, "J. Landman Gay" > wrote: On 6/12/2016 7:59 PM, Sannyasin Brahmanathaswami wrote: > if we removed the filename from the player, in the inspector then > strange things happen. > > The player disappears from the screen, but it's vis prop is still > true! If you select it in the Project Browser, it appears on the > card with dotted line around it but no player inside. I suspect that without a filename, there is no size to calculate. So it's visible but has no width or length. -- 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 gregory.lypny at videotron.ca Mon Jun 13 15:14:00 2016 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Mon, 13 Jun 2016 15:14:00 -0400 Subject: Need Help With String Pattern Matching In-Reply-To: References: Message-ID: <0B1845B5-B205-4155-9A97-5812118C7443@videotron.ca> Hello Quentin, Thank you for the tips on string pattern matching. I?m used to Mathematica?s string pattern syntax, which is probably built on regex, but I can see the similarities in your nice examples, particularly the using of alternatives [Joe|Anges]. While Mathematica?s string functions are insanely extensive and their implementation far more powerful that those in LiveCode, they can become arbitrarily slow if used repeatedly in loops, and unfortunately, my procedure requires repeating the functions over tens of thousands of files. That is why I want to build an alternative procedure in LiveCode. Thanks again, Gregory From livfoss at mac.com Mon Jun 13 17:34:29 2016 From: livfoss at mac.com (Graham Samuel) Date: Mon, 13 Jun 2016 23:34:29 +0200 Subject: 'Coordinate' syntax Message-ID: <5A45629E-A7AD-4B5C-AD25-2E7073D2A234@mac.com> In the BMI example which introduces LC 8, there occurs this line of script: put the cHeight of this stack, the cWeight of this stack into tCoordinates This has the effect of putting two values (the values of the two custom props) separated by a comma into the variable ?tCoordinates?. I was surprised by this. Has it always been legal to do this kind of thing without an overt string expression? I would have expected to have to do put (the cHeight of this stack) & ?,? & (the cWeight of this stack) into tCoordinates I don?t see in the first version how LC ?knows? that the separating comma is legitimate. Is everyone else OK with this? Graham From dsc at swcp.com Mon Jun 13 17:46:46 2016 From: dsc at swcp.com (Dar Scott) Date: Mon, 13 Jun 2016 15:46:46 -0600 Subject: 'Coordinate' syntax In-Reply-To: <5A45629E-A7AD-4B5C-AD25-2E7073D2A234@mac.com> References: <5A45629E-A7AD-4B5C-AD25-2E7073D2A234@mac.com> Message-ID: <80301581-6D2C-4F5A-8B9B-6B22B1976F66@swcp.com> The comma is an infix string concatenation operator much like & and &&. a,b is the same as a & comma & b Pretty handy. This can get you into trouble if you accidentally put parentheses around command parameters. You end up with one argument, a comma separated list. The compiler doesn't catch it because it is valid. Dar > On Jun 13, 2016, at 3:34 PM, Graham Samuel wrote: > > In the BMI example which introduces LC 8, there occurs this line of script: > > put the cHeight of this stack, the cWeight of this stack into tCoordinates > > This has the effect of putting two values (the values of the two custom props) separated by a comma into the variable ?tCoordinates?. I was surprised by this. Has it always been legal to do this kind of thing without an overt string expression? I would have expected to have to do > > put (the cHeight of this stack) & ?,? & (the cWeight of this stack) into tCoordinates > > I don?t see in the first version how LC ?knows? that the separating comma is legitimate. > > Is everyone else OK with this? > > Graham > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From livfoss at mac.com Mon Jun 13 18:01:21 2016 From: livfoss at mac.com (Graham Samuel) Date: Tue, 14 Jun 2016 00:01:21 +0200 Subject: 'Coordinate' syntax In-Reply-To: <80301581-6D2C-4F5A-8B9B-6B22B1976F66@swcp.com> References: <5A45629E-A7AD-4B5C-AD25-2E7073D2A234@mac.com> <80301581-6D2C-4F5A-8B9B-6B22B1976F66@swcp.com> Message-ID: <4C502D12-C54A-492A-88BC-0867446C0F84@mac.com> Funny, I never noticed, after all these years? Thanks, clarified. Graham > On 13 Jun 2016, at 23:46, Dar Scott wrote: > > The comma is an infix string concatenation operator much like & and &&. > > a,b > is the same as > a & comma & b > > Pretty handy. > > This can get you into trouble if you accidentally put parentheses around command parameters. You end up with one argument, a comma separated list. The compiler doesn't catch it because it is valid. > > Dar > > >> On Jun 13, 2016, at 3:34 PM, Graham Samuel wrote: >> >> In the BMI example which introduces LC 8, there occurs this line of script: >> >> put the cHeight of this stack, the cWeight of this stack into tCoordinates >> >> This has the effect of putting two values (the values of the two custom props) separated by a comma into the variable ?tCoordinates?. I was surprised by this. Has it always been legal to do this kind of thing without an overt string expression? I would have expected to have to do >> >> put (the cHeight of this stack) & ?,? & (the cWeight of this stack) into tCoordinates >> >> I don?t see in the first version how LC ?knows? that the separating comma is legitimate. >> >> Is everyone else OK with this? >> >> Graham >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From livfoss at mac.com Mon Jun 13 18:08:49 2016 From: livfoss at mac.com (Graham Samuel) Date: Tue, 14 Jun 2016 00:08:49 +0200 Subject: LC8 - Stumbling into JSON Message-ID: Sorry to be a pain, but again in the BMI example for LC 8 there is this function: function getBMI pHeight, pWeight put "http://api.clinicalcalculator.org/bmi?" & "height_in_m=" & pHeight & "&weight_in_kg=" & pWeight into tURL put url tURL into tJSON put JsonImport(tJSON) into tArray return round(tArray["result"]["value"]) end getBMI Knowing nothing about JSON, I find this confusing to say the least. I see that the JsonImport uses a URL to get some value(s) based on parameters incorporated in the URL, but what am I to make of the ?return? statement? I mean what do the bits in square brackets mean? Where did the names ?result? and ?value? come from? How would one know the spec of the result returned by a particular ?JsonImport? invocation? Are there libraries of these things, or what? How much JavaScript will I have to know to use this kind of functionality? Feeling stupid. Graham From brahma at hindu.org Mon Jun 13 18:30:34 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 13 Jun 2016 22:30:34 +0000 Subject: LC8 - Stumbling into JSON In-Reply-To: References: Message-ID: <0E95C614-0A78-471D-B409-D2AF34BA6A64@hindu.org> Not to trivialize the opacity of these things, but I used to resist JSON, but actually you can learn it in 10 minutes http://json.org/ It's actually much easier to grok in some ways than XML and now I prefer it to XML Sure there are deeper, more complex levels, but at a very simple level: This is json fruitColors { "apples":"red", "oranges": "orange", "bananas","yellow" } So LC will return this as an array put fruitColors["apples'] # you will get value "red" For this BMI calculator, that's all JSON you need to know. http://api.clinicalcalculator.org/bmi?height_in_m=1.778&weight_in_kg=68 returns a 2 dimensional array, 2 elements, each of which contains 2 elements {"result": {"value":18.75, "units":"kg/m^2" }, "request_fields": {"height_in_m":"2", "weight_in_kg":"75" } } Graham wrote: "Where did the names ?result? and ?value? come from?" They came from the first JSON name/value pair Hope that helps BR From: use-livecode on behalf of Graham Samuel Reply-To: How LiveCode Date: Monday, June 13, 2016 at 12:08 PM To: How LiveCode Subject: LC8 - Stumbling into JSON Sorry to be a pain, but again in the BMI example for LC 8 there is this function: function getBMI pHeight, pWeight put "http://api.clinicalcalculator.org/bmi?" & "height_in_m=" & pHeight & "&weight_in_kg=" & pWeight into tURL put url tURL into tJSON put JsonImport(tJSON) into tArray return round(tArray["result"]["value"]) end getBMI Knowing nothing about JSON, I find this confusing to say the least. I see that the JsonImport uses a URL to get some value(s) based on parameters incorporated in the URL, but what am I to make of the ?return? statement? I mean what do the bits in square brackets mean? Where did the names ?result? and ?value? come from? How would one know the spec of the result returned by a particular ?JsonImport? invocation? Are there libraries of these things, or what? How much JavaScript will I have to know to use this kind of functionality? Feeling stupid. Graham _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From colinholgate at gmail.com Mon Jun 13 18:55:24 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 13 Jun 2016 18:55:24 -0400 Subject: [OT-ish] WWDC things of interest Message-ID: <08FEEB28-2DEA-475D-AB93-38CA7ED626AC@gmail.com> The start of Apple?s WWDC was today. They announced a bunch of things. One of those was a rename to the OS, to be macOS instead of OS X , and they released the next version to developers (10.12 codename Sierra). I?m running that already! I tested LiveCodes 5, 6, 7,and 8, and all seem to open ok. The most interesting thing that was shown overlaps somewhat with what LiveCode is good for. Apple have a new app coming, called Swift Playgrounds. It?s free, and it?s meant for people learning programming. Here?s the info page on it: http://www.apple.com/swift/playgrounds/ From mwieder at ahsoftware.net Mon Jun 13 18:57:59 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 13 Jun 2016 22:57:59 +0000 (UTC) Subject: 'Coordinate' syntax References: <5A45629E-A7AD-4B5C-AD25-2E7073D2A234@mac.com> <80301581-6D2C-4F5A-8B9B-6B22B1976F66@swcp.com> <4C502D12-C54A-492A-88BC-0867446C0F84@mac.com> Message-ID: Graham Samuel writes: > Funny, I never noticed, after all these years? ...and if you find that surprising, you'll love the fact that you can also do that with return values: -- returns 100,200 function myPoint local x, y put 100 into x put 200 into y return x, y end myPoint -- Mark Wieder ahsoftware at gmail.com From mwieder at ahsoftware.net Mon Jun 13 19:07:02 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 13 Jun 2016 23:07:02 +0000 (UTC) Subject: [OT-ish] WWDC things of interest References: <08FEEB28-2DEA-475D-AB93-38CA7ED626AC@gmail.com> Message-ID: Colin Holgate writes: > > The start of Apple?s WWDC was today. They announced a bunch of things. > One of those was a rename to the OS, to be macOS instead of OS X , and > they released the next version to developers (10.12 codename Sierra). I?m > running that already! Also, they're opening up the Siri and messaging apis to developers. (and you'll now be able to accidentally dial 911 from your watch) -- Mark Wieder ahsoftware at gmail.com From colinholgate at gmail.com Mon Jun 13 19:16:40 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 13 Jun 2016 19:16:40 -0400 Subject: [OT-ish] WWDC things of interest In-Reply-To: References: <08FEEB28-2DEA-475D-AB93-38CA7ED626AC@gmail.com> Message-ID: <32C7DCC6-4FB8-4BEA-AED8-690AACE437F7@gmail.com> 999 in Hong Kong (and the UK). > On Jun 13, 2016, at 7:07 PM, Mark Wieder wrote: > > Colin Holgate writes: > >> >> The start of Apple?s WWDC was today. They announced a bunch of things. >> One of those was a rename to the OS, to be macOS instead of OS X , and >> they released the next version to developers (10.12 codename Sierra). I?m >> running that already! > > Also, they're opening up the Siri and messaging apis to developers. > > (and you'll now be able to accidentally dial 911 from your watch) > > -- > Mark Wieder > ahsoftware at gmail.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Mon Jun 13 19:19:43 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 13 Jun 2016 23:19:43 +0000 (UTC) Subject: LC8 - Stumbling into JSON References: <0E95C614-0A78-471D-B409-D2AF34BA6A64@hindu.org> Message-ID: Sannyasin Brahmanathaswami writes: > http://api.clinicalcalculator.org/bmi?height_in_m=1.778&weight_in_kg=68 > > returns a 2 dimensional array, 2 elements, each of which contains 2 elements > > {"result": > {"value":18.75, > "units":"kg/m^2" > }, > "request_fields": > {"height_in_m":"2", > "weight_in_kg":"75" > } > } > > Graham wrote: "Where did the names ?result? and ?value? come from?" > > They came from the first JSON name/value pair > Hope that helps And just FYI, for comparison the xml translation of that would be 18.75 kg/m at 2 2 75 -- Mark Wieder ahsoftware at gmail.com From mwieder at ahsoftware.net Mon Jun 13 19:23:01 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 13 Jun 2016 23:23:01 +0000 (UTC) Subject: [OT-ish] WWDC things of interest References: <08FEEB28-2DEA-475D-AB93-38CA7ED626AC@gmail.com> <32C7DCC6-4FB8-4BEA-AED8-690AACE437F7@gmail.com> Message-ID: Colin Holgate writes: > > 999 in Hong Kong (and the UK). > > > On Jun 13, 2016, at 7:07 PM, Mark Wieder wrote: > > > > (and you'll now be able to accidentally dial 911 from your watch) It's a joke in your town. -- Mark Wieder ahsoftware at gmail.com From peterwawood at gmail.com Mon Jun 13 19:36:21 2016 From: peterwawood at gmail.com (Peter W A Wood) Date: Tue, 14 Jun 2016 07:36:21 +0800 Subject: LC8 - Stumbling into JSON In-Reply-To: References: <0E95C614-0A78-471D-B409-D2AF34BA6A64@hindu.org> Message-ID: Mark > On 14 Jun 2016, at 07:19, Mark Wieder wrote: > > And just FYI, for comparison the xml translation of that would be > > > > 18.75 > kg/m at 2 > > > 2 > 75 > > > Wouldn?t an XML purist come up with the following, making it much more time consuming to process? 18.75 2 75 Regards Peter From mwieder at ahsoftware.net Mon Jun 13 19:46:43 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 13 Jun 2016 23:46:43 +0000 (UTC) Subject: LC8 - Stumbling into JSON References: <0E95C614-0A78-471D-B409-D2AF34BA6A64@hindu.org> Message-ID: Peter W A Wood writes: > Wouldn?t an XML purist come up with the following, making it much more time consuming to process? Yes, I was by no means suggesting doing this in xml. Just a hint as to meaning in case the json format was inscrutable. I think xml is only slightly more readable than csv. Or perl. -- Mark Wieder ahsoftware at gmail.com From terry.judd at unimelb.edu.au Mon Jun 13 20:34:42 2016 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Tue, 14 Jun 2016 00:34:42 +0000 Subject: jsonExport problem Message-ID: I?m running into problems exporting a large multidimensional array to JSON using the jsonExport function in LC8. I?ve been doing this successfully with other large datasets for a while now but there are particular elements in my current array that cause an error something like the following in the script editor... card "": execution error at line (extension: error occurred with domain) near ?runtime", char 8 ...in response to the following... put jsonExport(tData) into tJsonData If I go through all of the array elements in turn it is possible to identify the problem ones and I can ?fix? each of them by doing this... put empty after tData[] ...after which jsonExport() runs just fine. The problem data was originally sourced from another array that was populated from a series of xml files using Trevor?s library for converting xml data to an array (specifying UTF-8 encoding during the conversion). Any ideas on what might be going on? Like I mentioned, I can ?fix' the data before exporting it but that?s probably not a long term solution. Regards, Terry... Terry Judd | Senior Lecturer in Medical Education Department of Medical Education The University of Melbourne E: terry.judd at unimelb.edu.au Publications From dsc at swcp.com Mon Jun 13 21:32:26 2016 From: dsc at swcp.com (Dar Scott) Date: Mon, 13 Jun 2016 19:32:26 -0600 Subject: jsonExport problem In-Reply-To: References: Message-ID: <2EBA76EC-44B8-4A7C-BFD7-3F658B77C422@swcp.com> > On Jun 13, 2016, at 6:34 PM, Terry Judd wrote: > > If I go through all of the array elements in turn it is possible to > identify the problem ones and I can ?fix? each of them by doing this... > > put empty after tData[] > > ...after which jsonExport() runs just fine. Maybe I'm just stating the obvious--since you have this solution, you probably know. But just in case... This will turn a number into a string. it does it using the numberFormat at the time and place of the 'put empty after'. I'm guessing jsonExport() is gagging on the result of arithmetic. Dar From terry.judd at unimelb.edu.au Mon Jun 13 22:37:36 2016 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Tue, 14 Jun 2016 02:37:36 +0000 Subject: jsonExport problem In-Reply-To: <2EBA76EC-44B8-4A7C-BFD7-3F658B77C422@swcp.com> References: <2EBA76EC-44B8-4A7C-BFD7-3F658B77C422@swcp.com> Message-ID: Hi Dar - yeah, I wondered about that but the problem elements contain text or a mix of text and numbers so they really should be ok to start with. The weird thing is that I have two apps, which are essentially versions of the same project. Both use similar data files as input and both use jsonExport() to output. One throws a wobbly on certain elements and the other doesn?t. It?s got me. Terry... On 14/06/2016 11:32 am, "use-livecode on behalf of Dar Scott" wrote: > >> On Jun 13, 2016, at 6:34 PM, Terry Judd >>wrote: >> >> If I go through all of the array elements in turn it is possible to >> identify the problem ones and I can ?fix? each of them by doing this... >> >> put empty after tData[] >> >> ...after which jsonExport() runs just fine. > >Maybe I'm just stating the obvious--since you have this solution, you >probably know. But just in case... > >This will turn a number into a string. it does it using the numberFormat >at the time and place of the 'put empty after'. > >I'm guessing jsonExport() is gagging on the result of arithmetic. > >Dar > > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From Mark_Smith at cpe.umanitoba.ca Mon Jun 13 22:12:24 2016 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Mon, 13 Jun 2016 19:12:24 -0700 (PDT) Subject: [OT-ish] WWDC things of interest In-Reply-To: <08FEEB28-2DEA-475D-AB93-38CA7ED626AC@gmail.com> References: <08FEEB28-2DEA-475D-AB93-38CA7ED626AC@gmail.com> Message-ID: <1465870344071-4705735.post@n4.nabble.com> Colin Holgate-3 wrote > The most interesting thing that was shown overlaps somewhat with what > LiveCode is good for. Apple have a new app coming, called Swift > Playgrounds. It?s free, and it?s meant for people learning programming. > Here?s the info page on it: > > http://www.apple.com/swift/playgrounds/ Interesting, indeed!! -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-ish-WWDC-things-of-interest-tp4705724p4705735.html Sent from the Revolution - User mailing list archive at Nabble.com. From hh at hh.on-rev.com Tue Jun 14 06:12:07 2016 From: hh at hh.on-rev.com (-hh) Date: Tue, 14 Jun 2016 03:12:07 -0700 (PDT) Subject: [OT-ish] WWDC things of interest In-Reply-To: <1465870344071-4705735.post@n4.nabble.com> References: <08FEEB28-2DEA-475D-AB93-38CA7ED626AC@gmail.com> <1465870344071-4705735.post@n4.nabble.com> Message-ID: <1465899127858-4705736.post@n4.nabble.com> Sadly LC is not OK with 10.12 here: Menu file > Open stack ... *crashes* LC immediately. Tested with LC 6/7/8 latest releases. [I'm running MacOS 10.12 beta (16A201w) from an external disk]. Is that system dialog working in LC with you? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-ish-WWDC-things-of-interest-tp4705724p4705736.html Sent from the Revolution - User mailing list archive at Nabble.com. From colinholgate at gmail.com Tue Jun 14 07:00:10 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Tue, 14 Jun 2016 07:00:10 -0400 Subject: [OT-ish] WWDC things of interest In-Reply-To: <1465899127858-4705736.post@n4.nabble.com> References: <08FEEB28-2DEA-475D-AB93-38CA7ED626AC@gmail.com> <1465870344071-4705735.post@n4.nabble.com> <1465899127858-4705736.post@n4.nabble.com> Message-ID: <8943F62D-12B7-4260-A234-2405DB1F4C46@gmail.com> I?m running it from my internal drive, and open stack works fine. I do use the utility Default Folder, and that isn?t working it seems. > On Jun 14, 2016, at 6:12 AM, [-hh] wrote: > > Sadly LC is not OK with 10.12 here: > > Menu file > Open stack ... *crashes* LC immediately. > Tested with LC 6/7/8 latest releases. > > [I'm running MacOS 10.12 beta (16A201w) from an external disk]. > Is that system dialog working in LC with you? > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-ish-WWDC-things-of-interest-tp4705724p4705736.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 Tue Jun 14 08:09:49 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 14 Jun 2016 08:09:49 -0400 Subject: LC8 - Stumbling into JSON In-Reply-To: References: <0E95C614-0A78-471D-B409-D2AF34BA6A64@hindu.org> Message-ID: Graham, The syntax you are asking about is array syntax. There are two axes in this particular array. They are called "result" and "value". The "round" is rounding the value to clean up the decimals. JSON is a web data standard. On Mon, Jun 13, 2016 at 7:46 PM, Mark Wieder wrote: > Peter W A Wood writes: > > > Wouldn?t an XML purist come up with the following, making it much more > time > consuming to process? > > Yes, I was by no means suggesting doing this in xml. > Just a hint as to meaning in case the json format was inscrutable. > I think xml is only slightly more readable than csv. > Or perl. > > -- > Mark Wieder > ahsoftware at gmail.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From pmbrig at gmail.com Tue Jun 14 09:21:09 2016 From: pmbrig at gmail.com (Peter M. Brigham) Date: Tue, 14 Jun 2016 09:21:09 -0400 Subject: csvToText Repository In-Reply-To: <4dd2cb52-4fd2-ea41-d82e-f46c574d3d2a@tweedly.net> References: <8464fef1-bb82-4386-c4e5-c9dc8fae8b90@livecode.com> <12ecd088-d819-430a-b0af-69c3b1629e55@tweedly.net> <575EB0CA.8010701@researchware.com> <4dd2cb52-4fd2-ea41-d82e-f46c574d3d2a@tweedly.net> Message-ID: Although incorporating this into the engine is clearly the way to go, here are a couple of pure LC functions that are possibly relevant. They could be generalized to arbitrary line- and item-delimiters. -- Peter Peter M. Brigham pmbrig at gmail.com ------- function tabTableToArray pTable, withHeaders -- returns a 2-dimensional array from a tab-delimited table -- if withHeaders = true then first line is treated as column titles -- and first column is treated as row titles, -- data is stored as tArray[rowName][colName] -- headers are stored in tArray["_row_names_"] and tArray["_column_names_"] -- as comma-delim lists -- if withHeaders = false (default) then array is -- tArray[n][i], where n = rowNumber, i = columnNumber -- requires arrayToTabTable() -- which is the inverse function if tab is not in pTable then return empty if withHeaders = empty then put false into withHeaders set the itemdelimiter to tab if withHeaders then put line 1 of pTable into colHdrsList delete line 1 of pTable delete char 1 of colHdrsList put (the number of items of colHdrsList) into nbrItems -- for debugging repeat for each line tLine in pTable put item 1 of tLine into thisRowHdr put thisRowHdr & comma after rowHdrs delete item 1 of tLine repeat with i = 1 to nbrItems put item i of tLine into tArray[thisRowHdr][item i of colHdrsList] end repeat end repeat delete char -1 of rowHdrs put rowHdrs into tArray["_row_names_"] replace tab with comma in colHdrsList put colHdrsList into tArray["_column_names_"] else -- first get the max number of items in the lines -- in case of empty trailing items in some lines put 0 into maxItems repeat for each line tLine in pTable put max(maxItems,the number of items of tLine) into maxItems end repeat repeat with n = 1 to the number of lines of pTable repeat with i = 1 to maxItems put item i of line n of pTable into tArray[n][i] end repeat end repeat end if return tArray end tabTableToArray function arrayToTabTable tArray -- returns a tab-delimited table from a two-dimensional array -- eg, one created by tabTableToArray() -- if the array format is tArray[tRowName][tColName] -- then tArray["_column_names_"] should contain a comma-delim list -- of column names -- and tArray["_row_names_"] should contain a comma-delim list of row names -- if these special keys are empty then assumes that the array format is -- tArray[tRowNbr][tColNbr] -- requires tabTableToArray() -- which is the inverse function put the keys of tArray into tKeys put the number of lines of tKeys into nbrLines if nbrLines = 0 then return empty -- not an array filter tKeys without "_column_names_" filter tKeys without "_row_names_" put the number of lines of the keys of tArray[line 1 of tKeys] into nbrCols if nbrCols = 0 then return empty -- not a 2-dimensional array set the itemdelimiter to tab put tArray["_column_names_"] into colNames if colNames <> empty then -- column headers and row names are stored. -- first row must be column headers, first col must be row names put tArray["_row_names_"] into rowNames replace comma with tab in colNames replace comma with cr in rowNames put tab before colNames put colNames into tTable repeat for each line tRowName in rowNames put tRowName into tableRow repeat for each item tCol in colNames if tCol = empty then next repeat if tCol is not among the lines of the keys of tArray[tRowName] \ then next repeat put tArray[tRowName][tCol] into tElement put tab & tElement after tableRow end repeat put cr & tableRow after tTable end repeat else repeat with n = 1 to nbrLines repeat with i = 1 to nbrCols put tArray[n][i] into item i of line n of tTable end repeat end repeat end if return tTable end arrayToTabTable ------- On Jun 13, 2016, at 12:51 PM, Alex Tweedly wrote: > Sorry, Paul - I suspect I had seen that before, but forgotten it. > > It was a good idea back then, and still is :-) > > > Though, if we are going to add some form of "with colkeys", I believe there should be a version which says that the first line of the input contains the column keys; thus you could do > > Split X indexed using cr and tab with colKeys tColumns and tColumns contains the column keys > or simply > Split X indexed using cr and tab with colKeys and the first line of X contains the column keys (and line 1 is omitted from the results) > > If no-one tells me that's crazy (and why), I'll go add that to the feature request. > > Alex. > > > > > On 13/06/2016 14:10, Paul Dupuis wrote: >> On 6/13/2016 7:45 AM, Alex Tweedly wrote: >>> Perhaps a more general feature requests would be to extend the 'split' >>> command, so that it would parse by Primary and Secondary delimiters >>> into numerically indexed arrays ? (using a new optional keyword >>> "completely" ... :-) >> See http://quality.livecode.com/show_bug.cgi?id=9950 >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 14 09:33:57 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Tue, 14 Jun 2016 14:33:57 +0100 Subject: csvToText Repository In-Reply-To: <12ecd088-d819-430a-b0af-69c3b1629e55@tweedly.net> References: <8464fef1-bb82-4386-c4e5-c9dc8fae8b90@livecode.com> <12ecd088-d819-430a-b0af-69c3b1629e55@tweedly.net> Message-ID: On 13/06/2016 12:45, Alex Tweedly wrote: > "into an array" .... in what way ? presumably a numerically indexed > array. > > Perhaps a more general feature requests would be to extend the 'split' > command, so that it would parse by Primary and Secondary delimiters into > numerically indexed arrays ? (using a new optional keyword "completely" > ... :-) > > e.g. split completely myVar by CR and TAB Hi Alex, I don't think an enhancement to the split command would be adequate for correct parsing of a CSV file. For example, this is a single line of a valid CSV file, according to some producers: > a,"b,c",d e The elements of the line are: "a", "b,c", "d" and "e". Obviously, this is best handled by parsing into an array. Coping with the many subtle variants of CSV or TSV files is beyond what can be realistically built into the engine, and having a library specifically dedicated to good CSV file format support seems to me to be the best way to deal with this. Peter -- Dr Peter Brett LiveCode Technical Project Manager LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ From livfoss at mac.com Tue Jun 14 09:38:17 2016 From: livfoss at mac.com (Graham Samuel) Date: Tue, 14 Jun 2016 15:38:17 +0200 Subject: LC8 - Stumbling into JSON In-Reply-To: References: <0E95C614-0A78-471D-B409-D2AF34BA6A64@hindu.org> Message-ID: Thanks Mike, and thanks to everyone else who explained. My query about ?result? and ?value? wasn?t about arrays as such, it was about the use of those particular labels in that context - the answer is (I suppose) that one has to know the spec of the JSON that is being used in order to know what the JSON output looks like (and indeed what the function does). I have no idea how the LC people found the JSON-outputting BMI calculation but I suppose they just Googled it like everyone else. Obviously it would be nice to be more familiar with sources of such functions (that?s what they are really, isn?t it? Just web-based functions that output JSON). I guess I will gradually become more familiar with that world, since it seems immensely useful, provided of course one can believe that any given function is trustworthy. Cheers Graham > On 14 Jun 2016, at 14:09, Mike Kerner wrote: > > Graham, > The syntax you are asking about is array syntax. There are two axes in > this particular array. They are called "result" and "value". The "round" > is rounding the value to clean up the decimals. > JSON is a web data standard. > > On Mon, Jun 13, 2016 at 7:46 PM, Mark Wieder wrote: > >> Peter W A Wood writes: >> >>> Wouldn?t an XML purist come up with the following, making it much more >> time >> consuming to process? >> >> Yes, I was by no means suggesting doing this in xml. >> Just a hint as to meaning in case the json format was inscrutable. >> I think xml is only slightly more readable than csv. >> Or perl. >> >> -- >> Mark Wieder >> ahsoftware at gmail.com >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 14 09:44:14 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 14 Jun 2016 09:44:14 -0400 Subject: csvToText Repository In-Reply-To: References: <8464fef1-bb82-4386-c4e5-c9dc8fae8b90@livecode.com> <12ecd088-d819-430a-b0af-69c3b1629e55@tweedly.net> Message-ID: Peter, You forgot "far" as in "far beyond". Coping with non-standards and moving standards is something that is better left at a higher level, IMHO. I want to add more test and corner cases for things that are legitimate csv that we should make sure that we handle, properly, so when anyone thinks you have one, first check the "test cases folder", and if it is not in there, send it to me, please. On Tue, Jun 14, 2016 at 9:33 AM, Peter TB Brett wrote: > On 13/06/2016 12:45, Alex Tweedly wrote: > >> "into an array" .... in what way ? presumably a numerically indexed >> array. >> >> Perhaps a more general feature requests would be to extend the 'split' >> command, so that it would parse by Primary and Secondary delimiters into >> numerically indexed arrays ? (using a new optional keyword "completely" >> ... :-) >> >> e.g. split completely myVar by CR and TAB >> > > Hi Alex, > > I don't think an enhancement to the split command would be adequate for > correct parsing of a CSV file. > > For example, this is a single line of a valid CSV file, according to some > producers: > > > a,"b,c",d e > > The elements of the line are: "a", "b,c", "d" and "e". Obviously, this is > best handled by parsing into an array. > > Coping with the many subtle variants of CSV or TSV files is beyond what > can be realistically built into the engine, and having a library > specifically dedicated to good CSV file format support seems to me to be > the best way to deal with this. > > Peter > > -- > Dr Peter Brett > LiveCode Technical Project Manager > > LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Tue Jun 14 09:46:07 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 14 Jun 2016 09:46:07 -0400 Subject: csvToText Repository In-Reply-To: References: <8464fef1-bb82-4386-c4e5-c9dc8fae8b90@livecode.com> <12ecd088-d819-430a-b0af-69c3b1629e55@tweedly.net> <575EB0CA.8010701@researchware.com> <4dd2cb52-4fd2-ea41-d82e-f46c574d3d2a@tweedly.net> Message-ID: Peter B, If you don't mind, I would like to add your goodies to the codebase we're building for csv handling. I'll want to tweak it so that we use the other code we already have inside, of course. On Tue, Jun 14, 2016 at 9:21 AM, Peter M. Brigham wrote: > Although incorporating this into the engine is clearly the way to go, here > are a couple of pure LC functions that are possibly relevant. They could be > generalized to arbitrary line- and item-delimiters. > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > > ------- > > function tabTableToArray pTable, withHeaders > -- returns a 2-dimensional array from a tab-delimited table > -- if withHeaders = true then first line is treated as column titles > -- and first column is treated as row titles, > -- data is stored as tArray[rowName][colName] > -- headers are stored in tArray["_row_names_"] and > tArray["_column_names_"] > -- as comma-delim lists > -- if withHeaders = false (default) then array is > -- tArray[n][i], where n = rowNumber, i = columnNumber > -- requires arrayToTabTable() > -- which is the inverse function > > if tab is not in pTable then return empty > if withHeaders = empty then put false into withHeaders > set the itemdelimiter to tab > if withHeaders then > put line 1 of pTable into colHdrsList > delete line 1 of pTable > delete char 1 of colHdrsList > put (the number of items of colHdrsList) into nbrItems -- for > debugging > repeat for each line tLine in pTable > put item 1 of tLine into thisRowHdr > put thisRowHdr & comma after rowHdrs > delete item 1 of tLine > repeat with i = 1 to nbrItems > put item i of tLine into tArray[thisRowHdr][item i of > colHdrsList] > end repeat > end repeat > delete char -1 of rowHdrs > put rowHdrs into tArray["_row_names_"] > replace tab with comma in colHdrsList > put colHdrsList into tArray["_column_names_"] > else > -- first get the max number of items in the lines > -- in case of empty trailing items in some lines > put 0 into maxItems > repeat for each line tLine in pTable > put max(maxItems,the number of items of tLine) into maxItems > end repeat > repeat with n = 1 to the number of lines of pTable > repeat with i = 1 to maxItems > put item i of line n of pTable into tArray[n][i] > end repeat > end repeat > end if > return tArray > end tabTableToArray > > function arrayToTabTable tArray > -- returns a tab-delimited table from a two-dimensional array > -- eg, one created by tabTableToArray() > -- if the array format is tArray[tRowName][tColName] > -- then tArray["_column_names_"] should contain a comma-delim list > -- of column names > -- and tArray["_row_names_"] should contain a comma-delim list of > row names > -- if these special keys are empty then assumes that the array format is > -- tArray[tRowNbr][tColNbr] > -- requires tabTableToArray() > -- which is the inverse function > > put the keys of tArray into tKeys > put the number of lines of tKeys into nbrLines > if nbrLines = 0 then return empty -- not an array > filter tKeys without "_column_names_" > filter tKeys without "_row_names_" > put the number of lines of the keys of tArray[line 1 of tKeys] into > nbrCols > if nbrCols = 0 then return empty -- not a 2-dimensional array > set the itemdelimiter to tab > put tArray["_column_names_"] into colNames > if colNames <> empty then > -- column headers and row names are stored. > -- first row must be column headers, first col must be row names > put tArray["_row_names_"] into rowNames > replace comma with tab in colNames > replace comma with cr in rowNames > put tab before colNames > put colNames into tTable > repeat for each line tRowName in rowNames > put tRowName into tableRow > repeat for each item tCol in colNames > if tCol = empty then next repeat > if tCol is not among the lines of the keys of tArray[tRowName] > \ > then next repeat > put tArray[tRowName][tCol] into tElement > put tab & tElement after tableRow > end repeat > put cr & tableRow after tTable > end repeat > else > repeat with n = 1 to nbrLines > repeat with i = 1 to nbrCols > put tArray[n][i] into item i of line n of tTable > end repeat > end repeat > end if > return tTable > end arrayToTabTable > > ------- > > On Jun 13, 2016, at 12:51 PM, Alex Tweedly wrote: > > > Sorry, Paul - I suspect I had seen that before, but forgotten it. > > > > It was a good idea back then, and still is :-) > > > > > > Though, if we are going to add some form of "with colkeys", I believe > there should be a version which says that the first line of the input > contains the column keys; thus you could do > > > > Split X indexed using cr and tab with colKeys tColumns and tColumns > contains the column keys > > or simply > > Split X indexed using cr and tab with colKeys and the first line of X > contains the column keys (and line 1 is omitted from the results) > > > > If no-one tells me that's crazy (and why), I'll go add that to the > feature request. > > > > Alex. > > > > > > > > > > On 13/06/2016 14:10, Paul Dupuis wrote: > >> On 6/13/2016 7:45 AM, Alex Tweedly wrote: > >>> Perhaps a more general feature requests would be to extend the 'split' > >>> command, so that it would parse by Primary and Secondary delimiters > >>> into numerically indexed arrays ? (using a new optional keyword > >>> "completely" ... :-) > >> See http://quality.livecode.com/show_bug.cgi?id=9950 > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 klaus at major-k.de Tue Jun 14 09:56:00 2016 From: klaus at major-k.de (Klaus major-k) Date: Tue, 14 Jun 2016 15:56:00 +0200 Subject: strange experience in Windows standalone with windowshape Message-ID: <4D6CB7D6-B1A4-4631-91FF-3B3DF8A0B1CA@major-k.de> Hi all, i have a stack with a "splash" screen which has an windowshape set. I has a script like this: on opencard wait 5 secs go next cd end opencard In a standalone on a Mac, everything works as exspected, on Windows I see NOTHING for 5 secs and then second card of this stack appear and the stack HAS the windowshape set!? Now if I remove the windowshape (set to 0 again), everything works as advertised!? LC 8.01, Windows 7. Works also fine in the IDE! Anyone else seen this? Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From MikeKerner at roadrunner.com Tue Jun 14 10:03:10 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 14 Jun 2016 10:03:10 -0400 Subject: [OT-ish] WWDC things of interest In-Reply-To: <8943F62D-12B7-4260-A234-2405DB1F4C46@gmail.com> References: <08FEEB28-2DEA-475D-AB93-38CA7ED626AC@gmail.com> <1465870344071-4705735.post@n4.nabble.com> <1465899127858-4705736.post@n4.nabble.com> <8943F62D-12B7-4260-A234-2405DB1F4C46@gmail.com> Message-ID: the playgrounds looks like fun... On Tue, Jun 14, 2016 at 7:00 AM, Colin Holgate wrote: > I?m running it from my internal drive, and open stack works fine. I do use > the utility Default Folder, and that isn?t working it seems. > > > > On Jun 14, 2016, at 6:12 AM, [-hh] wrote: > > > > Sadly LC is not OK with 10.12 here: > > > > Menu file > Open stack ... *crashes* LC immediately. > > Tested with LC 6/7/8 latest releases. > > > > [I'm running MacOS 10.12 beta (16A201w) from an external disk]. > > Is that system dialog working in LC with you? > > > > > > > > -- > > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/OT-ish-WWDC-things-of-interest-tp4705724p4705736.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 pmbrig at gmail.com Tue Jun 14 10:05:02 2016 From: pmbrig at gmail.com (Peter M. Brigham) Date: Tue, 14 Jun 2016 10:05:02 -0400 Subject: csvToText Repository In-Reply-To: References: <8464fef1-bb82-4386-c4e5-c9dc8fae8b90@livecode.com> <12ecd088-d819-430a-b0af-69c3b1629e55@tweedly.net> <575EB0CA.8010701@researchware.com> <4dd2cb52-4fd2-ea41-d82e-f46c574d3d2a@tweedly.net> Message-ID: <58BE34F0-B9C3-43FE-853E-9804BC1F8B26@gmail.com> Be my guest. -- Peter Peter M. Brigham pmbrig at gmail.com On Jun 14, 2016, at 9:46 AM, Mike Kerner wrote: > Peter B, > If you don't mind, I would like to add your goodies to the codebase we're > building for csv handling. I'll want to tweak it so that we use the other > code we already have inside, of course. > > On Tue, Jun 14, 2016 at 9:21 AM, Peter M. Brigham wrote: > >> Although incorporating this into the engine is clearly the way to go, here >> are a couple of pure LC functions that are possibly relevant. They could be >> generalized to arbitrary line- and item-delimiters. >> >> -- Peter >> >> Peter M. Brigham >> pmbrig at gmail.com >> >> ------- >> >> function tabTableToArray pTable, withHeaders >> -- returns a 2-dimensional array from a tab-delimited table >> -- if withHeaders = true then first line is treated as column titles >> -- and first column is treated as row titles, >> -- data is stored as tArray[rowName][colName] >> -- headers are stored in tArray["_row_names_"] and >> tArray["_column_names_"] >> -- as comma-delim lists >> -- if withHeaders = false (default) then array is >> -- tArray[n][i], where n = rowNumber, i = columnNumber >> -- requires arrayToTabTable() >> -- which is the inverse function >> >> if tab is not in pTable then return empty >> if withHeaders = empty then put false into withHeaders >> set the itemdelimiter to tab >> if withHeaders then >> put line 1 of pTable into colHdrsList >> delete line 1 of pTable >> delete char 1 of colHdrsList >> put (the number of items of colHdrsList) into nbrItems -- for >> debugging >> repeat for each line tLine in pTable >> put item 1 of tLine into thisRowHdr >> put thisRowHdr & comma after rowHdrs >> delete item 1 of tLine >> repeat with i = 1 to nbrItems >> put item i of tLine into tArray[thisRowHdr][item i of >> colHdrsList] >> end repeat >> end repeat >> delete char -1 of rowHdrs >> put rowHdrs into tArray["_row_names_"] >> replace tab with comma in colHdrsList >> put colHdrsList into tArray["_column_names_"] >> else >> -- first get the max number of items in the lines >> -- in case of empty trailing items in some lines >> put 0 into maxItems >> repeat for each line tLine in pTable >> put max(maxItems,the number of items of tLine) into maxItems >> end repeat >> repeat with n = 1 to the number of lines of pTable >> repeat with i = 1 to maxItems >> put item i of line n of pTable into tArray[n][i] >> end repeat >> end repeat >> end if >> return tArray >> end tabTableToArray >> >> function arrayToTabTable tArray >> -- returns a tab-delimited table from a two-dimensional array >> -- eg, one created by tabTableToArray() >> -- if the array format is tArray[tRowName][tColName] >> -- then tArray["_column_names_"] should contain a comma-delim list >> -- of column names >> -- and tArray["_row_names_"] should contain a comma-delim list of >> row names >> -- if these special keys are empty then assumes that the array format is >> -- tArray[tRowNbr][tColNbr] >> -- requires tabTableToArray() >> -- which is the inverse function >> >> put the keys of tArray into tKeys >> put the number of lines of tKeys into nbrLines >> if nbrLines = 0 then return empty -- not an array >> filter tKeys without "_column_names_" >> filter tKeys without "_row_names_" >> put the number of lines of the keys of tArray[line 1 of tKeys] into >> nbrCols >> if nbrCols = 0 then return empty -- not a 2-dimensional array >> set the itemdelimiter to tab >> put tArray["_column_names_"] into colNames >> if colNames <> empty then >> -- column headers and row names are stored. >> -- first row must be column headers, first col must be row names >> put tArray["_row_names_"] into rowNames >> replace comma with tab in colNames >> replace comma with cr in rowNames >> put tab before colNames >> put colNames into tTable >> repeat for each line tRowName in rowNames >> put tRowName into tableRow >> repeat for each item tCol in colNames >> if tCol = empty then next repeat >> if tCol is not among the lines of the keys of tArray[tRowName] >> \ >> then next repeat >> put tArray[tRowName][tCol] into tElement >> put tab & tElement after tableRow >> end repeat >> put cr & tableRow after tTable >> end repeat >> else >> repeat with n = 1 to nbrLines >> repeat with i = 1 to nbrCols >> put tArray[n][i] into item i of line n of tTable >> end repeat >> end repeat >> end if >> return tTable >> end arrayToTabTable >> >> ------- >> >> On Jun 13, 2016, at 12:51 PM, Alex Tweedly wrote: >> >>> Sorry, Paul - I suspect I had seen that before, but forgotten it. >>> >>> It was a good idea back then, and still is :-) >>> >>> >>> Though, if we are going to add some form of "with colkeys", I believe >> there should be a version which says that the first line of the input >> contains the column keys; thus you could do >>> >>> Split X indexed using cr and tab with colKeys tColumns and tColumns >> contains the column keys >>> or simply >>> Split X indexed using cr and tab with colKeys and the first line of X >> contains the column keys (and line 1 is omitted from the results) >>> >>> If no-one tells me that's crazy (and why), I'll go add that to the >> feature request. >>> >>> Alex. >>> >>> >>> >>> >>> On 13/06/2016 14:10, Paul Dupuis wrote: >>>> On 6/13/2016 7:45 AM, Alex Tweedly wrote: >>>>> Perhaps a more general feature requests would be to extend the 'split' >>>>> command, so that it would parse by Primary and Secondary delimiters >>>>> into numerically indexed arrays ? (using a new optional keyword >>>>> "completely" ... :-) >>>> See http://quality.livecode.com/show_bug.cgi?id=9950 >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 alex at tweedly.net Tue Jun 14 10:09:42 2016 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 14 Jun 2016 15:09:42 +0100 Subject: csvToText Repository In-Reply-To: References: <8464fef1-bb82-4386-c4e5-c9dc8fae8b90@livecode.com> <12ecd088-d819-430a-b0af-69c3b1629e55@tweedly.net> Message-ID: <8adbaf96-b903-f9c5-4b14-b3140ee020dc@tweedly.net> On 14/06/2016 14:33, Peter TB Brett wrote: > > Hi Alex, > > I don't think an enhancement to the split command would be adequate > for correct parsing of a CSV file. > I wasn't suggesting that. Having struggled to create the current version of csvToText, I am all too aware of the vagaries of csv formats :-) I was suggesting an extension to 'split' which would enable it to handle the *output* from csvToText - i.e. an already cleaned-up version of the file, with all the CSV oddities already dealt with. I did look at enhancing csvToText to produce a numerical-indexed array directly - but it would be a bit of a pain; given that we can already produce cleaned-up-text, it would be sufficient to have an efficient way to convert it to an array for convenient and efficient further processing. As I said, it can be done in 20 line of LC script - but not efficiently. > For example, this is a single line of a valid CSV file, according to > some producers: > > > a,"b,c",d e > > The elements of the line are: "a", "b,c", "d" and "e". Obviously, > this is best handled by parsing into an array. Don't even start ... :-) :-) -- Alex. From colinholgate at gmail.com Tue Jun 14 10:24:14 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Tue, 14 Jun 2016 10:24:14 -0400 Subject: [OT-ish] WWDC things of interest In-Reply-To: References: <08FEEB28-2DEA-475D-AB93-38CA7ED626AC@gmail.com> Message-ID: <30B6F88C-9914-4920-91C0-EF4EAA4A18C4@gmail.com> Something else from yesterday, macOS 10.12 has a new feature where applications that didn?t have a tabs feature before suddenly do now. I?ve tried that with SketchUp, and it works well. The system inserts a Show Tab Bar into the top of the View menu. In some cases that option is there but doesn?t get you very far, the tab bar shows without a + at the end, so you can?t add more tabs. That happens in Starry Night and in Mail. LiveCode is different though, it doesn?t show the new menu item at all. I?m not sure if it would be that useful in LiveCode, in that very often stacks are different sizes, which wouldn?t work well as tabs in a single size window. But, it?s just curious that LiveCode must be doing menus or windows in a non-standard way. From dochawk at gmail.com Tue Jun 14 10:28:50 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 14 Jun 2016 07:28:50 -0700 Subject: [OT-ish] WWDC things of interest In-Reply-To: References: <08FEEB28-2DEA-475D-AB93-38CA7ED626AC@gmail.com> Message-ID: On Mon, Jun 13, 2016 at 4:07 PM, Mark Wieder wrote: > > Also, they're opening up the Siri and messaging apis to developers. > This is what I've been waiting for--I want to be able to tell Siri to record billing information while out and about. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From MikeKerner at roadrunner.com Tue Jun 14 10:46:19 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 14 Jun 2016 10:46:19 -0400 Subject: [OT-ish] WWDC things of interest In-Reply-To: References: <08FEEB28-2DEA-475D-AB93-38CA7ED626AC@gmail.com> Message-ID: I emailed Kevin and proposed another funding round, for universal voice support across all platforms for all digital assistants. We paid Monte to give us hooks into Dragon (for both voice in and out), because Siri wasn't available. For those keeping score at home, I think there are now 5: Siri, Google Now, Cortana, Alexa, and Dragon, serving different platforms. It would therefore be great to have a way to get voice recognition and voice feedback on all. On Tue, Jun 14, 2016 at 10:28 AM, Dr. Hawkins wrote: > On Mon, Jun 13, 2016 at 4:07 PM, Mark Wieder > wrote: > > > > > Also, they're opening up the Siri and messaging apis to developers. > > > > This is what I've been waiting for--I want to be able to tell Siri to > record billing information while out and about. > > -- > 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 > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From paul at researchware.com Tue Jun 14 10:48:48 2016 From: paul at researchware.com (Paul Dupuis) Date: Tue, 14 Jun 2016 10:48:48 -0400 Subject: strange experience in Windows standalone with windowshape In-Reply-To: <4D6CB7D6-B1A4-4631-91FF-3B3DF8A0B1CA@major-k.de> References: <4D6CB7D6-B1A4-4631-91FF-3B3DF8A0B1CA@major-k.de> Message-ID: <57601950.5080303@researchware.com> On 6/14/2016 9:56 AM, Klaus major-k wrote: > Hi all, > > i have a stack with a "splash" screen which has an windowshape set. > > I has a script like this: > on opencard > wait 5 secs > go next cd > end opencard > > In a standalone on a Mac, everything works as exspected, on Windows > I see NOTHING for 5 secs and then second card of this stack appear and > the stack HAS the windowshape set!? > > Now if I remove the windowshape (set to 0 again), everything works as advertised!? > LC 8.01, Windows 7. Works also fine in the IDE! > > Anyone else seen this? > I have not seen this exact weirdness, but on Windows 8.x and 10 I have seen other weirdness. For example, app which work fine in the IDE, but when built as a standalone, the mainstack window never appears on launch (like the exe is running with the -ui command line parameter as headless or something) or the mainstack window only appears after a very long while and usually after I am about to force quit it through the task manager or have spent time interacting with other applications and it finally (minutes later) appears in the background. So far I have been unable to consistently get any of this weirdness repeatable in a test case I could file a bug report on, but since someone else has brought up the topic, I figured I'd respond with the issue's I've seen. From MikeKerner at roadrunner.com Tue Jun 14 10:49:47 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 14 Jun 2016 10:49:47 -0400 Subject: [OT-ish] WWDC things of interest In-Reply-To: References: <08FEEB28-2DEA-475D-AB93-38CA7ED626AC@gmail.com> Message-ID: I am also extremely disappointed that we are not seeing any sort of real convergence between macOS and ios. Here, we have several users that are on surface pro's, because they can get the best of both worlds in the windows universe on one device. On Tue, Jun 14, 2016 at 10:46 AM, Mike Kerner wrote: > I emailed Kevin and proposed another funding round, for universal voice > support across all platforms for all digital assistants. We paid Monte to > give us hooks into Dragon (for both voice in and out), because Siri wasn't > available. For those keeping score at home, I think there are now 5: > Siri, Google Now, Cortana, Alexa, and Dragon, serving different > platforms. It would therefore be great to have a way to get voice > recognition and voice feedback on all. > > On Tue, Jun 14, 2016 at 10:28 AM, Dr. Hawkins wrote: > >> On Mon, Jun 13, 2016 at 4:07 PM, Mark Wieder >> wrote: >> >> > >> > Also, they're opening up the Siri and messaging apis to developers. >> > >> >> This is what I've been waiting for--I want to be able to tell Siri to >> record billing information while out and about. >> >> -- >> 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 >> > > > > -- > 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 colinholgate at gmail.com Tue Jun 14 10:51:21 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Tue, 14 Jun 2016 10:51:21 -0400 Subject: [OT-ish] WWDC things of interest In-Reply-To: References: <08FEEB28-2DEA-475D-AB93-38CA7ED626AC@gmail.com> Message-ID: Although I?m a fan of Apple, and a fan of Halo, Alexa is my favorite one of these. Amazon have done a good job with it. > On Jun 14, 2016, at 10:46 AM, Mike Kerner wrote: > > I emailed Kevin and proposed another funding round, for universal voice > support across all platforms for all digital assistants. We paid Monte to > give us hooks into Dragon (for both voice in and out), because Siri wasn't > available. For those keeping score at home, I think there are now 5: > Siri, Google Now, Cortana, Alexa, and Dragon, serving different > platforms. It would therefore be great to have a way to get voice > recognition and voice feedback on all. > > On Tue, Jun 14, 2016 at 10:28 AM, Dr. Hawkins wrote: > >> On Mon, Jun 13, 2016 at 4:07 PM, Mark Wieder >> wrote: >> >>> >>> Also, they're opening up the Siri and messaging apis to developers. >>> >> >> This is what I've been waiting for--I want to be able to tell Siri to >> record billing information while out and about. >> >> -- >> 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 >> > > > > -- > 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 klaus at major-k.de Tue Jun 14 10:52:02 2016 From: klaus at major-k.de (Klaus major-k) Date: Tue, 14 Jun 2016 16:52:02 +0200 Subject: strange experience in Windows standalone with windowshape In-Reply-To: <57601950.5080303@researchware.com> References: <4D6CB7D6-B1A4-4631-91FF-3B3DF8A0B1CA@major-k.de> <57601950.5080303@researchware.com> Message-ID: Hi Paul, > Am 14.06.2016 um 16:48 schrieb Paul Dupuis : > > On 6/14/2016 9:56 AM, Klaus major-k wrote: >> Hi all, >> >> i have a stack with a "splash" screen which has an windowshape set. >> >> I has a script like this: >> on opencard >> wait 5 secs >> go next cd >> end opencard >> >> In a standalone on a Mac, everything works as exspected, on Windows >> I see NOTHING for 5 secs and then second card of this stack appear and >> the stack HAS the windowshape set!? >> >> Now if I remove the windowshape (set to 0 again), everything works as advertised!? >> LC 8.01, Windows 7. Works also fine in the IDE! >> >> Anyone else seen this? > > I have not seen this exact weirdness, but on Windows 8.x and 10 I have > seen other weirdness. For example, app which work fine in the IDE, but > when built as a standalone, the mainstack window never appears on launch > (like the exe is running with the -ui command line parameter as headless > or something) or the mainstack window only appears after a very long > while and usually after I am about to force quit it through the task > manager or have spent time interacting with other applications and it > finally (minutes later) appears in the background. > > So far I have been unable to consistently get any of this weirdness > repeatable in a test case I could file a bug report on, but since > someone else has brought up the topic, I figured I'd respond with the > issue's I've seen. I was finally able to find a recipe, this will only happen under certain circumstances, and reported this as a bug: Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From colinholgate at gmail.com Tue Jun 14 10:53:16 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Tue, 14 Jun 2016 10:53:16 -0400 Subject: [OT-ish] WWDC things of interest In-Reply-To: References: <08FEEB28-2DEA-475D-AB93-38CA7ED626AC@gmail.com> Message-ID: <317DF5A8-AD5D-421A-92A7-A89D78726C40@gmail.com> Did you see the shared clipboard feature? And Siri on Mac is pretty neat. > On Jun 14, 2016, at 10:49 AM, Mike Kerner wrote: > > I am also extremely disappointed that we are not seeing any sort of real > convergence between macOS and ios. Here, we have several users that are on > surface pro's, because they can get the best of both worlds in the windows > universe on one device. > > On Tue, Jun 14, 2016 at 10:46 AM, Mike Kerner > wrote: > >> I emailed Kevin and proposed another funding round, for universal voice >> support across all platforms for all digital assistants. We paid Monte to >> give us hooks into Dragon (for both voice in and out), because Siri wasn't >> available. For those keeping score at home, I think there are now 5: >> Siri, Google Now, Cortana, Alexa, and Dragon, serving different >> platforms. It would therefore be great to have a way to get voice >> recognition and voice feedback on all. >> >> On Tue, Jun 14, 2016 at 10:28 AM, Dr. Hawkins wrote: >> >>> On Mon, Jun 13, 2016 at 4:07 PM, Mark Wieder >>> wrote: >>> >>>> >>>> Also, they're opening up the Siri and messaging apis to developers. >>>> >>> >>> This is what I've been waiting for--I want to be able to tell Siri to >>> record billing information while out and about. >>> >>> -- >>> 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 >>> >> >> >> >> -- >> On the first day, God created the heavens and the Earth >> On the second day, God created the oceans. >> On the third day, God put the animals on hold for a few hours, >> and did a little diving. >> And God said, "This is good." >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Tue Jun 14 11:15:25 2016 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 14 Jun 2016 08:15:25 -0700 Subject: [OT-ish] WWDC things of interest In-Reply-To: <30B6F88C-9914-4920-91C0-EF4EAA4A18C4@gmail.com> References: <08FEEB28-2DEA-475D-AB93-38CA7ED626AC@gmail.com> <30B6F88C-9914-4920-91C0-EF4EAA4A18C4@gmail.com> Message-ID: <57601F8D.9050405@ahsoftware.net> On 06/14/2016 07:24 AM, Colin Holgate wrote: > Something else from yesterday, macOS 10.12 has a new feature where applications that didn?t have a tabs feature before suddenly do now. The way I understand this is that applications *that support multiple windows* now have tabs. LC doesn't have actual multiple windows, just multiple stacks, and that can be a very different thing from the operating system's point of view. -- Mark Wieder ahsoftware at gmail.com From devin_asay at byu.edu Tue Jun 14 11:40:37 2016 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 14 Jun 2016 15:40:37 +0000 Subject: LC8 - Stumbling into JSON In-Reply-To: References: <0E95C614-0A78-471D-B409-D2AF34BA6A64@hindu.org> Message-ID: > On Jun 14, 2016, at 7:38 AM, Graham Samuel wrote: > > Thanks Mike, and thanks to everyone else who explained. My query about ?result? and ?value? wasn?t about arrays as such, it was about the use of those particular labels in that context - the answer is (I suppose) that one has to know the spec of the JSON that is being used in order to know what the JSON output looks like (and indeed what the function does). > > I have no idea how the LC people found the JSON-outputting BMI calculation but I suppose they just Googled it like everyone else. Obviously it would be nice to be more familiar with sources of such functions (that?s what they are really, isn?t it? Just web-based functions that output JSON). I guess I will gradually become more familiar with that world, since it seems immensely useful, provided of course one can believe that any given function is trustworthy. Graham, They are more properly called web services, and are accessible through published web service APIs. There are some web sites that act as ?clearing houses? of sorts to publicize these APIs. See, for example: http://www.programmableweb.com http://apis.io There is a fellow named Kin Lane who publishesa great site all about web APIs: http://apievangelist.com I created a lesson outline for my class on this topic: http://livecode.byu.edu/internet/webServicesIntro.php As you?ll see it?s a whole new world of functionality, and so simple to access through LiveCode, using GET and PUT requests. Enjoy! Devin Devin Asay Office of Digital Humanities Brigham Young University From bonnmike at gmail.com Tue Jun 14 11:47:37 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 14 Jun 2016 09:47:37 -0600 Subject: strange experience in Windows standalone with windowshape In-Reply-To: References: <4D6CB7D6-B1A4-4631-91FF-3B3DF8A0B1CA@major-k.de> <57601950.5080303@researchware.com> Message-ID: Paul, I've seen this too. Launch a standalone and it doesn't show. I've only seen this when using the browser widget as part of the build. (haven't really used other widgets, so I can't speak for those) If I then go into task manager and tell it to create a dump file for my application, poof.. it moves from background processes to apps and works fine, including the browser widget. (I can also make it appear by choosing to debug) Removing the widget, or not putting the check in the box for it in standalone settings makes the app show up just fine. But of course without a functional widget. On Tue, Jun 14, 2016 at 8:52 AM, Klaus major-k wrote: > Hi Paul, > > > Am 14.06.2016 um 16:48 schrieb Paul Dupuis : > > > > On 6/14/2016 9:56 AM, Klaus major-k wrote: > >> Hi all, > >> > >> i have a stack with a "splash" screen which has an windowshape set. > >> > >> I has a script like this: > >> on opencard > >> wait 5 secs > >> go next cd > >> end opencard > >> > >> In a standalone on a Mac, everything works as exspected, on Windows > >> I see NOTHING for 5 secs and then second card of this stack appear and > >> the stack HAS the windowshape set!? > >> > >> Now if I remove the windowshape (set to 0 again), everything works as > advertised!? > >> LC 8.01, Windows 7. Works also fine in the IDE! > >> > >> Anyone else seen this? > > > > I have not seen this exact weirdness, but on Windows 8.x and 10 I have > > seen other weirdness. For example, app which work fine in the IDE, but > > when built as a standalone, the mainstack window never appears on launch > > (like the exe is running with the -ui command line parameter as headless > > or something) or the mainstack window only appears after a very long > > while and usually after I am about to force quit it through the task > > manager or have spent time interacting with other applications and it > > finally (minutes later) appears in the background. > > > > So far I have been unable to consistently get any of this weirdness > > repeatable in a test case I could file a bug report on, but since > > someone else has brought up the topic, I figured I'd respond with the > > issue's I've seen. > > I was finally able to find a recipe, this will only happen under certain > circumstances, > and reported this as a bug: < > http://quality.livecode.com/show_bug.cgi?id=17846> > > > Best > > Klaus > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul at researchware.com Tue Jun 14 11:58:43 2016 From: paul at researchware.com (Paul Dupuis) Date: Tue, 14 Jun 2016 11:58:43 -0400 Subject: strange experience in Windows standalone with windowshape In-Reply-To: References: <4D6CB7D6-B1A4-4631-91FF-3B3DF8A0B1CA@major-k.de> <57601950.5080303@researchware.com> Message-ID: <576029B3.3000508@researchware.com> On 6/14/2016 11:47 AM, Mike Bonner wrote: > Paul, I've seen this too. Launch a standalone and it doesn't show. I've > only seen this when using the browser widget as part of the build. (haven't > really used other widgets, so I can't speak for those) If I then go into > task manager and tell it to create a dump file for my application, poof.. > it moves from background processes to apps and works fine, including the > browser widget. (I can also make it appear by choosing to debug) > Removing the widget, or not putting the check in the box for it in > standalone settings makes the app show up just fine. But of course without > a functional widget. It is comforting (sort of, although I wish it wasn't happening at all) to hear that I am not the only one who has run into this. In my case, this is all using LC6.7.x (currently 6.7.11), so no widgets are involved, so I am not sure Widgets are the root cause. The damnedest thing is that it is not consistent! From bonnmike at gmail.com Tue Jun 14 12:10:06 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 14 Jun 2016 10:10:06 -0600 Subject: strange experience in Windows standalone with windowshape In-Reply-To: <576029B3.3000508@researchware.com> References: <4D6CB7D6-B1A4-4631-91FF-3B3DF8A0B1CA@major-k.de> <57601950.5080303@researchware.com> <576029B3.3000508@researchware.com> Message-ID: I'll keep my fingers crossed that its located and fixed. If I find a reliable recipe I'll report it, but so far no luck. (the same standalone does sometimes start correctly. Annoying!) On Tue, Jun 14, 2016 at 9:58 AM, Paul Dupuis wrote: > On 6/14/2016 11:47 AM, Mike Bonner wrote: > > Paul, I've seen this too. Launch a standalone and it doesn't show. I've > > only seen this when using the browser widget as part of the build. > (haven't > > really used other widgets, so I can't speak for those) If I then go into > > task manager and tell it to create a dump file for my application, poof.. > > it moves from background processes to apps and works fine, including the > > browser widget. (I can also make it appear by choosing to debug) > > Removing the widget, or not putting the check in the box for it in > > standalone settings makes the app show up just fine. But of course > without > > a functional widget. > > It is comforting (sort of, although I wish it wasn't happening at all) > to hear that I am not the only one who has run into this. In my case, > this is all using LC6.7.x (currently 6.7.11), so no widgets are > involved, so I am not sure Widgets are the root cause. > > The damnedest thing is that it is not consistent! > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 14 12:29:06 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 14 Jun 2016 09:29:06 -0700 Subject: [OT-ish] WWDC things of interest In-Reply-To: References: Message-ID: <576030D2.1050109@fourthworld.com> Mike Kerner wrote: > I am also extremely disappointed that we are not seeing any sort of > real convergence between macOS and ios. Here, we have several users > that are on surface pro's, because they can get the best of both > worlds in the windows universe on one device. No worries, it'll happen, probably within just another year or two. It's inevitable: it doesn't make economic sense to create a different OS for every form factor. After all, what's really the difference between a laptop with a detachable touch screen and a tablet with a docking keyboard? As device types continue to diversify they also continue to overlap in use cases. Unifying the underpinnings makes good sense. They're just taking their time with it. They want it to be good. And then they're ready to announce it their convergence implementation will likely be far better than Windows', and possibly even better than Ubuntu's. Ubuntu has a several-year head start, but _much_ smaller R&D resources than one of the world's wealthiest multinationals. And before folks reply with "But Time Cook said convergence ain't gonna happen!", remember that Steve and/or Tim have also said Apple won't make a tablet, won't get into the music business, and have no interest in making a phone. The company is famous for its secrecy, and misdirection is a frequent part of that recipe to keep the competition guessing. -- 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 Jun 14 12:17:05 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 14 Jun 2016 09:17:05 -0700 Subject: [OT-ish] WWDC things of interest In-Reply-To: References: Message-ID: <57602E01.8040908@fourthworld.com> Mike Kerner wrote: > > I emailed Kevin and proposed another funding round, for universal > voice support across all platforms for all digital assistants. We > paid Monte to give us hooks into Dragon (for both voice in and out), > because Siri wasn't available. With all due respect to you and the dev team, I hope that before we pull them away into new platform-specific features we first tighten up the loose ends with Windows. I know that Mac represents a disproportionately large segment of our audience, but what we use to develop on is less important than where we deliver to our customers. Many of us who use LiveCode chose it because SuperCard is exclusively Mac. Even if we develop on Mac or Linux, the majority of most of our income comes from Windows users, and our income is what enables LC's income. So it's critically important we look past direct download counts at livecode.com and look instead and general market share when prioritizing platform-specific features. The Mac audience may be two to three times larger than Linux, but both are niches compared to the 86% using Windows. The new macOS features outlined at WWDC yesterday are very exciting and I share your enthusiasm for seeing direct support for them in LC, whether as engine enhancements or as community-driven libraries using LC Builder's ability to call OS APIs. But ideally any near-term development to support OS-specific features for Mac or Linux would be coming from the community, so the engine team can continue their good focus on bringing the Windows engine up to parity with the Mac in terms of common features and robustness. Certainly a Feature Exchange would offset direct costs, but unless it's large enough to hire more devs it represents an opportunity cost. Let's tidy up Windows right now, and if we're really itching to get going on Mac-specific features let's see if we can use the last successful fundraiser for extending LC Builder's API support to empower community-driven development there. Along those lines, once that's in hand I'd love to see if anyone here has time and interest to explore how we might use that API access to handle menus in Ubuntu as they are on the Mac for better integration with Ubuntu Unity, but that's a different thread.... > For those keeping score at home, I think there are now 5: Siri, > Google Now, Cortana, Alexa, and Dragon, serving different > platforms. It would therefore be great to have a way to get voice > recognition and voice feedback on all. There's also Mycroft AI, a free and open system that's been getting some good news coverage lately: https://mycroft.ai/ They got seed funding from a very successful Kickstarter campaign: I met the devs at the SoCal Linux Expo a few months ago. Impressive team, impressive project. And being open source, anyone can tailor it for their needs however they want. -- 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 Jun 14 13:55:48 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 14 Jun 2016 13:55:48 -0400 Subject: [OT-ish] WWDC things of interest In-Reply-To: <576030D2.1050109@fourthworld.com> References: <576030D2.1050109@fourthworld.com> Message-ID: Here's all I can say about Apple in the last few years. Tim Cook is no Steve Jobs. On Tue, Jun 14, 2016 at 12:29 PM, Richard Gaskin wrote: > Mike Kerner wrote: > > > I am also extremely disappointed that we are not seeing any sort of > > real convergence between macOS and ios. Here, we have several users > > that are on surface pro's, because they can get the best of both > > worlds in the windows universe on one device. > > No worries, it'll happen, probably within just another year or two. > > It's inevitable: it doesn't make economic sense to create a different OS > for every form factor. > > After all, what's really the difference between a laptop with a detachable > touch screen and a tablet with a docking keyboard? > > As device types continue to diversify they also continue to overlap in use > cases. Unifying the underpinnings makes good sense. > > They're just taking their time with it. They want it to be good. And > then they're ready to announce it their convergence implementation will > likely be far better than Windows', and possibly even better than > Ubuntu's. Ubuntu has a several-year head start, but _much_ smaller R&D > resources than one of the world's wealthiest multinationals. > > And before folks reply with "But Time Cook said convergence ain't gonna > happen!", remember that Steve and/or Tim have also said Apple won't make a > tablet, won't get into the music business, and have no interest in making a > phone. The company is famous for its secrecy, and misdirection is a > frequent part of that recipe to keep the competition guessing. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From admin at FlexibleLearning.com Tue Jun 14 13:56:23 2016 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Tue, 14 Jun 2016 18:56:23 +0100 Subject: SelectedObjectChanged in LC8... Bug? Message-ID: <001501d1c666$11718070$34548150$@FlexibleLearning.com> When the "Browse" tool is selected in the UI, any selected objects are deselected and a SelectedObjectChanged message used to be sent. This is no longer the case in LC8. I have also tried trapping for a NewTool message, but this is similarly ignored. Any insights, or is this a bug? Hugh Senior FLCo From ambassador at fourthworld.com Tue Jun 14 11:52:47 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 14 Jun 2016 08:52:47 -0700 Subject: LC8 - Stumbling into JSON In-Reply-To: References: Message-ID: <5760284F.7060505@fourthworld.com> Graham Samuel wrote: > My query about ?result? and ?value? wasn?t about arrays as such, > it was about the use of those particular labels in that context > - the answer is (I suppose) that one has to know the spec of the > JSON that is being used in order to know what the JSON output > looks like (and indeed what the function does). Like learning LiveCode's API, any good REST API will be well documented with examples to help the developer understand what the call expects to receive and what it will return. Devin Asay wrote: > They are more properly called web services, and are accessible > through published web service APIs. There are some web sites that > act as ?clearing houses? of sorts to publicize these APIs. See, > for example: > > http://www.programmableweb.com > http://apis.io > > There is a fellow named Kin Lane who publishesa great site all about > web APIs: > > http://apievangelist.com > > I created a lesson outline for my class on this topic: > > http://livecode.byu.edu/internet/webServicesIntro.php > > As you?ll see it?s a whole new world of functionality, and so simple > to access through LiveCode, using GET and PUT requests. ...and with LC Server also easy to provide. When designing a REST API I've found Vinay Sahni's "Best Practices for Designing a Pragmatic RESTful API" the best one-stop-shopping for good, clear ideas: http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api Andre Garzia's revSpark library helps with implementing good REST APIs: http://andregarzia.com/pages/en/revspark/ Extra bonus points: if both your client and server are written in LiveCode, you can bypass JSON and use LSON instead, LiveCode's own native array serialization provided by arrayEncode and arrayDecode. These binary data streams can even be compressed with LC's built-in compress function for faster transport. Super-easy to work with in LC, and being as native to LC as JSON is to JavaScript you'll be hard-pressed to find a data format more efficient when sharing array data between LC clients and LC servers. In fact, if you have an API that may sometimes deliver to LC-based clients and sometimes to Web clients, you can take a tip from Vinay's article and have JSON as the default but allow the requesting URL to end with ".json" to specify JSON as the delivery format. -- 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 Jun 14 14:06:31 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 14 Jun 2016 14:06:31 -0400 Subject: [OT-ish] WWDC things of interest In-Reply-To: <57602E01.8040908@fourthworld.com> References: <57602E01.8040908@fourthworld.com> Message-ID: "All" means all. On Tue, Jun 14, 2016 at 12:17 PM, Richard Gaskin wrote: > Mike Kerner wrote: > > > > I emailed Kevin and proposed another funding round, for universal > > voice support across all platforms for all digital assistants. We > > paid Monte to give us hooks into Dragon (for both voice in and out), > > because Siri wasn't available. > > With all due respect to you and the dev team, I hope that before we pull > them away into new platform-specific features we first tighten up the loose > ends with Windows. > > I know that Mac represents a disproportionately large segment of our > audience, but what we use to develop on is less important than where we > deliver to our customers. Many of us who use LiveCode chose it because > SuperCard is exclusively Mac. Even if we develop on Mac or Linux, the > majority of most of our income comes from Windows users, and our income is > what enables LC's income. > > So it's critically important we look past direct download counts at > livecode.com and look instead and general market share when prioritizing > platform-specific features. > > The Mac audience may be two to three times larger than Linux, but both are > niches compared to the 86% using Windows. > > The new macOS features outlined at WWDC yesterday are very exciting and I > share your enthusiasm for seeing direct support for them in LC, whether as > engine enhancements or as community-driven libraries using LC Builder's > ability to call OS APIs. > > But ideally any near-term development to support OS-specific features for > Mac or Linux would be coming from the community, so the engine team can > continue their good focus on bringing the Windows engine up to parity with > the Mac in terms of common features and robustness. > > Certainly a Feature Exchange would offset direct costs, but unless it's > large enough to hire more devs it represents an opportunity cost. > > Let's tidy up Windows right now, and if we're really itching to get going > on Mac-specific features let's see if we can use the last successful > fundraiser for extending LC Builder's API support to empower > community-driven development there. > > Along those lines, once that's in hand I'd love to see if anyone here has > time and interest to explore how we might use that API access to handle > menus in Ubuntu as they are on the Mac for better integration with Ubuntu > Unity, but that's a different thread.... > > > > For those keeping score at home, I think there are now 5: Siri, > > Google Now, Cortana, Alexa, and Dragon, serving different > > platforms. It would therefore be great to have a way to get voice > > recognition and voice feedback on all. > > There's also Mycroft AI, a free and open system that's been getting some > good news coverage lately: > https://mycroft.ai/ > > They got seed funding from a very successful Kickstarter campaign: > < > https://www.kickstarter.com/projects/aiforeveryone/mycroft-an-open-source-artificial-intelligence-for > > > > I met the devs at the SoCal Linux Expo a few months ago. Impressive team, > impressive project. And being open source, anyone can tailor it for their > needs however they want. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From ambassador at fourthworld.com Tue Jun 14 14:25:21 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 14 Jun 2016 11:25:21 -0700 Subject: [OT-ish] WWDC things of interest In-Reply-To: References: Message-ID: <57604C11.3060200@fourthworld.com> Mike Kerner wrote: > Here's all I can say about Apple in the last few years. Tim Cook is > no Steve Jobs. Agreed, but at the risk of veering off into cheeseland here I'll say that's not entirely a bad thing. Steve was a gifted product designer, and indeed his loss is a loss for not just Apple but all of us. They'll continue to make good products, but we haven't seen anything like the excitement he was able to generate, and I'm not sure we ever will. He was one of a kind. But on balance, Cook seems a more cool-headed leader, less prone to the sort of anger fits that gave us his Adobe revenge with the iOS SDK v4 Section 3.3.1 debacle, and others. I can't imagine Cook would lie to his oldest friend to trick him out of money he had earned. And if Cook had produced a child, I imagine he'd pay child support without a court order. And apparently, they even disagreed over whether mounting years of expensive lawsuits was a smart thing to do: After Steve passed Cook negotiated a truce with Samsung. I don't think Jobs was a bad person, or even a bad leader. Obviously he did a lot of good for Apple's growth. But we was definitely volatile, and like many, complicated. Personally, I feel I can rely on Cook more, that his stewardship may be less interesting, but more predictable, in ways that benefit business planning with such a partner. -- 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 Jun 14 14:40:12 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 14 Jun 2016 11:40:12 -0700 Subject: [OT-ish] WWDC things of interest In-Reply-To: References: Message-ID: <57604F8C.2000606@fourthworld.com> Mike Kerner wrote: > "All" means all. "All" is a very big number. The largest possible. As such it's a uniquely expensive option. If we had a universal API for bots the way we do for email, this would be a no-brainer. And we will, but not for some time. We're still in the early days, in which every vendor believes they will be the one who rules the world. It'll be perhaps many years before it becomes self-evident that there will be no single prevailing vendor, that interoperability is more important than trying to win an unwinnable game of total market domination. So for the next few years we have to look long and hard at ROI for each AI API. Colin likes Alexa, and I'm rather partial to MyCroft, and others like Siri, and I suppose there are fans of Cortana. And new ones are springing up every month. But when it comes to implementation, at some point we'll find ourselves needing to make choices. And when we do, as much as I may like Mycrosft I'd have to support Colin's preference for Alexa as a first implementation, if only by its market share. By virtue of its smaller audience and greater openness, perhaps Mycroft would be ideally supported through a separate community-driven effort. In a world of finite resources, choices are inevitable. -- 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 colinholgate at gmail.com Tue Jun 14 14:52:22 2016 From: colinholgate at gmail.com (Colin Holgate) Date: Tue, 14 Jun 2016 14:52:22 -0400 Subject: [OT-ish] WWDC things of interest In-Reply-To: <57604F8C.2000606@fourthworld.com> References: <57604F8C.2000606@fourthworld.com> Message-ID: I happen to be doing some Alexa work today. They have it hooked up to ifttt.com now, which broadens what it?s able to do. > On Jun 14, 2016, at 2:40 PM, Richard Gaskin wrote: > > And when we do, as much as I may like Mycrosft I'd have to support Colin's preference for Alexa as a first implementation, if only by its market share. By virtue of its smaller audience and greater openness, perhaps Mycroft would be ideally supported through a separate community-driven effort. From MikeKerner at roadrunner.com Tue Jun 14 14:57:32 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 14 Jun 2016 14:57:32 -0400 Subject: [OT-ish] WWDC things of interest In-Reply-To: References: <57604F8C.2000606@fourthworld.com> Message-ID: oooooooh funfunfunfunfunfunfun On Tue, Jun 14, 2016 at 2:52 PM, Colin Holgate wrote: > I happen to be doing some Alexa work today. They have it hooked up to > ifttt.com now, which broadens what it?s able to do. > > > > On Jun 14, 2016, at 2:40 PM, Richard Gaskin > wrote: > > > > And when we do, as much as I may like Mycrosft I'd have to support > Colin's preference for Alexa as a first implementation, if only by its > market share. By virtue of its smaller audience and greater openness, > perhaps Mycroft would be ideally supported through a separate > community-driven effort. > > _______________________________________________ > use-livecode mailing list > use-livecode 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 devin_asay at byu.edu Tue Jun 14 15:04:28 2016 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 14 Jun 2016 19:04:28 +0000 Subject: LC8 - Stumbling into JSON In-Reply-To: <5760284F.7060505@fourthworld.com> References: <5760284F.7060505@fourthworld.com> Message-ID: <2214FF1B-5340-4EE1-BB68-3221344D8251@byu.edu> > On Jun 14, 2016, at 9:52 AM, Richard Gaskin wrote: > > > As you?ll see it?s a whole new world of functionality, and so simple > > to access through LiveCode, using GET and PUT requests. That should be GET and POST, of course. Devin Asay Office of Digital Humanities Brigham Young University From richmondmathewson at gmail.com Tue Jun 14 15:08:15 2016 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 14 Jun 2016 22:08:15 +0300 Subject: Indy licence Message-ID: <5760561F.7060907@gmail.com> Someone has just paid for a 2 year licence for Livecode Commercial on my behalf. This is amazingly generous, and I will always be indebted to them. ------------------------------- Richmond Mathewson. From devin_asay at byu.edu Tue Jun 14 15:09:26 2016 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 14 Jun 2016 19:09:26 +0000 Subject: LC8 - Stumbling into JSON In-Reply-To: <5760284F.7060505@fourthworld.com> References: <5760284F.7060505@fourthworld.com> Message-ID: <3DAB9995-E538-486F-8ACE-3AC36DF6653D@byu.edu> > On Jun 14, 2016, at 9:52 AM, Richard Gaskin wrote: > > As you?ll see it?s a whole new world of functionality, and so simple > > to access through LiveCode, using GET and POST requests. > > ...and with LC Server also easy to provide. That?s the rest of the story. In most of my projects I am both the creator and consumer of the API. All in LiveCode. > > When designing a REST API I've found Vinay Sahni's "Best Practices for Designing a Pragmatic RESTful API" the best one-stop-shopping for good, clear ideas: > http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api > > Andre Garzia's revSpark library helps with implementing good REST APIs: > http://andregarzia.com/pages/en/revspark/ > > Extra bonus points: if both your client and server are written in LiveCode, you can bypass JSON and use LSON instead, LiveCode's own native array serialization provided by arrayEncode and arrayDecode. These binary data streams can even be compressed with LC's built-in compress function for faster transport. > > Super-easy to work with in LC, and being as native to LC as JSON is to JavaScript you'll be hard-pressed to find a data format more efficient when sharing array data between LC clients and LC servers. > > In fact, if you have an API that may sometimes deliver to LC-based clients and sometimes to Web clients, you can take a tip from Vinay's article and have JSON as the default but allow the requesting URL to end with ".json" to specify JSON as the delivery format. Thanks for the great links, Richard! Bookmarked. Devin Devin Asay Office of Digital Humanities Brigham Young University From devin_asay at byu.edu Tue Jun 14 15:28:44 2016 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 14 Jun 2016 19:28:44 +0000 Subject: Indy licence In-Reply-To: <5760561F.7060907@gmail.com> References: <5760561F.7060907@gmail.com> Message-ID: <451396D9-FDDE-49F3-A47E-ED56AD02873A@byu.edu> > On Jun 14, 2016, at 1:08 PM, Richmond wrote: > > Someone has just paid for a 2 year licence for Livecode Commercial on my behalf. > > This is amazingly generous, and I will always be indebted to them. +1 How incredibly generous. And we know it?ll be put to good use. Devin Devin Asay Office of Digital Humanities Brigham Young University From rdimola at evergreeninfo.net Tue Jun 14 15:38:03 2016 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 14 Jun 2016 15:38:03 -0400 Subject: Indy licence In-Reply-To: <5760561F.7060907@gmail.com> References: <5760561F.7060907@gmail.com> Message-ID: <003f01d1c674$44813740$cd83a5c0$@net> > On Jun 14, 2016, at 1:08 PM, Richmond wrote: > > Someone has just paid for a 2 year licence for Livecode Commercial on my behalf. > > This is amazingly generous, and I will always be indebted to them. Nice to hear about and also feel the love. Thanks for sharing this! That person just made my day brighter also. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From livfoss at mac.com Tue Jun 14 15:37:25 2016 From: livfoss at mac.com (Graham Samuel) Date: Tue, 14 Jun 2016 21:37:25 +0200 Subject: LC8 - Stumbling into JSON In-Reply-To: <3DAB9995-E538-486F-8ACE-3AC36DF6653D@byu.edu> References: <5760284F.7060505@fourthworld.com> <3DAB9995-E538-486F-8ACE-3AC36DF6653D@byu.edu> Message-ID: More thanks is due, to Devin and to Richard. Some of the fog of my ignorance is dispersing, I hope and believe. Graham > On 14 Jun 2016, at 21:09, Devin Asay wrote: > > >> On Jun 14, 2016, at 9:52 AM, Richard Gaskin wrote: > >>> As you?ll see it?s a whole new world of functionality, and so simple >>> to access through LiveCode, using GET and POST requests. >> >> ...and with LC Server also easy to provide. > > That?s the rest of the story. In most of my projects I am both the creator and consumer of the API. All in LiveCode. >> >> When designing a REST API I've found Vinay Sahni's "Best Practices for Designing a Pragmatic RESTful API" the best one-stop-shopping for good, clear ideas: >> http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api >> >> Andre Garzia's revSpark library helps with implementing good REST APIs: >> http://andregarzia.com/pages/en/revspark/ >> >> Extra bonus points: if both your client and server are written in LiveCode, you can bypass JSON and use LSON instead, LiveCode's own native array serialization provided by arrayEncode and arrayDecode. These binary data streams can even be compressed with LC's built-in compress function for faster transport. >> >> Super-easy to work with in LC, and being as native to LC as JSON is to JavaScript you'll be hard-pressed to find a data format more efficient when sharing array data between LC clients and LC servers. >> >> In fact, if you have an API that may sometimes deliver to LC-based clients and sometimes to Web clients, you can take a tip from Vinay's article and have JSON as the default but allow the requesting URL to end with ".json" to specify JSON as the delivery format. > > Thanks for the great links, Richard! Bookmarked. > > Devin > > Devin Asay > Office of Digital Humanities > Brigham Young University > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From scott at tactilemedia.com Tue Jun 14 15:38:16 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 14 Jun 2016 12:38:16 -0700 Subject: strange experience in Windows standalone with windowshape In-Reply-To: <4D6CB7D6-B1A4-4631-91FF-3B3DF8A0B1CA@major-k.de> References: <4D6CB7D6-B1A4-4631-91FF-3B3DF8A0B1CA@major-k.de> Message-ID: Hi Klaus: I may not have seen all your responses, but did you try adding "with messages" to your code or delaying the card advance using "end in"? wait 5 secs with messages Or: send "goNextCard" to me in 5 seconds command goNextCard go next cd end goNextCard Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 6/14/16, 6:56 AM, "use-livecode on behalf of Klaus major-k" wrote: >Hi all, > >i have a stack with a "splash" screen which has an windowshape set. > >I has a script like this: >on opencard > wait 5 secs > go next cd >end opencard > >In a standalone on a Mac, everything works as exspected, on Windows >I see NOTHING for 5 secs and then second card of this stack appear and >the stack HAS the windowshape set!? > >Now if I remove the windowshape (set to 0 again), everything works as >advertised!? >LC 8.01, Windows 7. Works also fine in the IDE! > >Anyone else seen this? > > >Best > >Klaus >-- >Klaus Major >http://www.major-k.de >klaus at major-k.de > > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Tue Jun 14 15:51:46 2016 From: dsc at swcp.com (Dar Scott) Date: Tue, 14 Jun 2016 13:51:46 -0600 Subject: strange experience in Windows standalone with windowshape In-Reply-To: References: <4D6CB7D6-B1A4-4631-91FF-3B3DF8A0B1CA@major-k.de> Message-ID: <56A47447-0C04-4A0B-8E00-058298BE9F66@swcp.com> Without knowing the context and just adding random things: send "go next card" to me in 5 seconds > On Jun 14, 2016, at 1:38 PM, Scott Rossi wrote: > > Hi Klaus: > > I may not have seen all your responses, but did you try adding "with > messages" to your code or delaying the card advance using "end in"? > > wait 5 secs with messages > > Or: > > send "goNextCard" to me in 5 seconds > > command goNextCard > go next cd > end goNextCard > > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 6/14/16, 6:56 AM, "use-livecode on behalf of Klaus major-k" > > wrote: > >> Hi all, >> >> i have a stack with a "splash" screen which has an windowshape set. >> >> I has a script like this: >> on opencard >> wait 5 secs >> go next cd >> end opencard >> >> In a standalone on a Mac, everything works as exspected, on Windows >> I see NOTHING for 5 secs and then second card of this stack appear and >> the stack HAS the windowshape set!? >> >> Now if I remove the windowshape (set to 0 again), everything works as >> advertised!? >> LC 8.01, Windows 7. Works also fine in the IDE! >> >> Anyone else seen this? >> >> >> Best >> >> Klaus >> -- >> Klaus Major >> http://www.major-k.de >> klaus at major-k.de >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Tue Jun 14 16:04:47 2016 From: klaus at major-k.de (Klaus major-k) Date: Tue, 14 Jun 2016 22:04:47 +0200 Subject: strange experience in Windows standalone with windowshape In-Reply-To: References: <4D6CB7D6-B1A4-4631-91FF-3B3DF8A0B1CA@major-k.de> Message-ID: <3018878F-F945-4B86-B267-9BD97324876C@major-k.de> Hi Scott, > Am 14.06.2016 um 21:38 schrieb Scott Rossi : > > Hi Klaus: > > I may not have seen all your responses, but did you try adding "with > messages" to your code or delaying the card advance using "end in"? > > wait 5 secs with messages > > Or: > > send "goNextCard" to me in 5 seconds > > command goNextCard > go next cd > end goNextCard thanks, just tested, same result, no stack with windwoshape. > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 6/14/16, 6:56 AM, "use-livecode on behalf of Klaus major-k" > > wrote: > >> Hi all, >> >> i have a stack with a "splash" screen which has an windowshape set. >> >> I has a script like this: >> on opencard >> wait 5 secs >> go next cd >> end opencard Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From klaus at major-k.de Tue Jun 14 16:07:54 2016 From: klaus at major-k.de (Klaus major-k) Date: Tue, 14 Jun 2016 22:07:54 +0200 Subject: strange experience in Windows standalone with windowshape In-Reply-To: <56A47447-0C04-4A0B-8E00-058298BE9F66@swcp.com> References: <4D6CB7D6-B1A4-4631-91FF-3B3DF8A0B1CA@major-k.de> <56A47447-0C04-4A0B-8E00-058298BE9F66@swcp.com> Message-ID: Hi Dar, > Am 14.06.2016 um 21:51 schrieb Dar Scott : > > Without knowing the context and just adding random things: > > send "go next card" to me in 5 seconds that was the next thing to try, and YES, that actually works! :-) >> On Jun 14, 2016, at 1:38 PM, Scott Rossi wrote: >> >> Hi Klaus: >> >> I may not have seen all your responses, but did you try adding "with >> messages" to your code or delaying the card advance using "end in"? >> >> wait 5 secs with messages >> >> Or: >> >> send "goNextCard" to me in 5 seconds >> >> command goNextCard >> go next cd >> end goNextCard >> >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> >> On 6/14/16, 6:56 AM, "use-livecode on behalf of Klaus major-k" >> >> wrote: >> >>> Hi all, >>> >>> i have a stack with a "splash" screen which has an windowshape set. >>> >>> I has a script like this: >>> on opencard >>> wait 5 secs >>> go next cd >>> end opencard Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From ebeugelaar at gmail.com Tue Jun 14 16:13:04 2016 From: ebeugelaar at gmail.com (Erik Beugelaar) Date: Tue, 14 Jun 2016 22:13:04 +0200 Subject: strange experience in Windows standalone with windowshape In-Reply-To: References: <4D6CB7D6-B1A4-4631-91FF-3B3DF8A0B1CA@major-k.de> <56A47447-0C04-4A0B-8E00-058298BE9F66@swcp.com> Message-ID: <001201d1c679$28c64540$7a52cfc0$@gmail.com> This is what we call "the slang language of LiveCode" feature ;-) Good to know this! Sent from solidit -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Klaus major-k Sent: dinsdag 14 juni 2016 22:08 To: How to use LiveCode Subject: Re: strange experience in Windows standalone with windowshape Hi Dar, > Am 14.06.2016 um 21:51 schrieb Dar Scott : > > Without knowing the context and just adding random things: > > send "go next card" to me in 5 seconds that was the next thing to try, and YES, that actually works! :-) >> On Jun 14, 2016, at 1:38 PM, Scott Rossi wrote: >> >> Hi Klaus: >> >> I may not have seen all your responses, but did you try adding "with >> messages" to your code or delaying the card advance using "end in"? >> >> wait 5 secs with messages >> >> Or: >> >> send "goNextCard" to me in 5 seconds >> >> command goNextCard >> go next cd >> end goNextCard >> >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> >> On 6/14/16, 6:56 AM, "use-livecode on behalf of Klaus major-k" >> >> wrote: >> >>> Hi all, >>> >>> i have a stack with a "splash" screen which has an windowshape set. >>> >>> I has a script like this: >>> on opencard >>> wait 5 secs >>> go next cd >>> end opencard Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Tue Jun 14 16:13:05 2016 From: dsc at swcp.com (Dar Scott) Date: Tue, 14 Jun 2016 14:13:05 -0600 Subject: strange experience in Windows standalone with windowshape In-Reply-To: References: <4D6CB7D6-B1A4-4631-91FF-3B3DF8A0B1CA@major-k.de> <56A47447-0C04-4A0B-8E00-058298BE9F66@swcp.com> Message-ID: <1F406A02-C19E-45D1-83DE-192DF2A3591C@swcp.com> Now that is goofy. Why would that work and Scott's not? Did you remember the "in 5 seconds" for his? > On Jun 14, 2016, at 2:07 PM, Klaus major-k wrote: > > Hi Dar, > >> Am 14.06.2016 um 21:51 schrieb Dar Scott : >> >> Without knowing the context and just adding random things: >> >> send "go next card" to me in 5 seconds > > that was the next thing to try, and YES, that actually works! :-) > >>> On Jun 14, 2016, at 1:38 PM, Scott Rossi wrote: >>> >>> Hi Klaus: >>> >>> I may not have seen all your responses, but did you try adding "with >>> messages" to your code or delaying the card advance using "end in"? >>> >>> wait 5 secs with messages >>> >>> Or: >>> >>> send "goNextCard" to me in 5 seconds >>> >>> command goNextCard >>> go next cd >>> end goNextCard >>> >>> >>> Regards, >>> >>> Scott Rossi >>> Creative Director >>> Tactile Media, UX/UI Design >>> >>> >>> On 6/14/16, 6:56 AM, "use-livecode on behalf of Klaus major-k" >>> >>> wrote: >>> >>>> Hi all, >>>> >>>> i have a stack with a "splash" screen which has an windowshape set. >>>> >>>> I has a script like this: >>>> on opencard >>>> wait 5 secs >>>> go next cd >>>> end opencard > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Tue Jun 14 16:20:50 2016 From: klaus at major-k.de (Klaus major-k) Date: Tue, 14 Jun 2016 22:20:50 +0200 Subject: strange experience in Windows standalone with windowshape In-Reply-To: <1F406A02-C19E-45D1-83DE-192DF2A3591C@swcp.com> References: <4D6CB7D6-B1A4-4631-91FF-3B3DF8A0B1CA@major-k.de> <56A47447-0C04-4A0B-8E00-058298BE9F66@swcp.com> <1F406A02-C19E-45D1-83DE-192DF2A3591C@swcp.com> Message-ID: <09677D80-2F75-46AC-AA75-1F577BB8C9C0@major-k.de> Hi Dra, > Am 14.06.2016 um 22:13 schrieb Dar Scott : > > Now that is goofy. Why would that work and Scott's not? well, that's a rhetorical question, right? ;-) I added an appropriate comment to the bug report! > Did you remember the "in 5 seconds" for his? From the card script: ... send "go next" to me in 5 secs # wait 5 seconds with messages # go to next card ... OK? 8-) Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From dsc at swcp.com Tue Jun 14 16:30:04 2016 From: dsc at swcp.com (Dar Scott) Date: Tue, 14 Jun 2016 14:30:04 -0600 Subject: strange experience in Windows standalone with windowshape In-Reply-To: <09677D80-2F75-46AC-AA75-1F577BB8C9C0@major-k.de> References: <4D6CB7D6-B1A4-4631-91FF-3B3DF8A0B1CA@major-k.de> <56A47447-0C04-4A0B-8E00-058298BE9F66@swcp.com> <1F406A02-C19E-45D1-83DE-192DF2A3591C@swcp.com> <09677D80-2F75-46AC-AA75-1F577BB8C9C0@major-k.de> Message-ID: <98C96FDE-80C5-4243-A811-6AA4953B0AA4@swcp.com> Of course. It is a bug. Bugs are supposed to act strange. > On Jun 14, 2016, at 2:20 PM, Klaus major-k wrote: > > Hi Dra, > >> Am 14.06.2016 um 22:13 schrieb Dar Scott : >> >> Now that is goofy. Why would that work and Scott's not? > > well, that's a rhetorical question, right? ;-) > > I added an appropriate comment to the bug report! > >> Did you remember the "in 5 seconds" for his? > >> From the card script: > ... > send "go next" to me in 5 secs > # wait 5 seconds with messages > # go to next card > ... > OK? 8-) > > > Best > > Klaus > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Tue Jun 14 16:50:41 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 14 Jun 2016 13:50:41 -0700 Subject: strange experience in Windows standalone with windowshape In-Reply-To: <1F406A02-C19E-45D1-83DE-192DF2A3591C@swcp.com> References: <1F406A02-C19E-45D1-83DE-192DF2A3591C@swcp.com> Message-ID: <57606E21.4050308@fourthworld.com> The whole thing is goofy. Why is openStack behaving like preOpenStack just because it's a non-standard window style? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com Dar wrote: > Now that is goofy. Why would that work and Scott's not? > > Did you remember the "in 5 seconds" for his? > >> On Jun 14, 2016, at 2:07 PM, Klaus major-k wrote: >> >> Hi Dar, >> >>> Am 14.06.2016 um 21:51 schrieb Dar Scott : >>> >>> Without knowing the context and just adding random things: >>> >>> send "go next card" to me in 5 seconds >> >> that was the next thing to try, and YES, that actually works! :-) >> >>>> On Jun 14, 2016, at 1:38 PM, Scott Rossi wrote: >>>> >>>> Hi Klaus: >>>> >>>> I may not have seen all your responses, but did you try adding "with >>>> messages" to your code or delaying the card advance using "end in"? >>>> >>>> wait 5 secs with messages >>>> >>>> Or: >>>> >>>> send "goNextCard" to me in 5 seconds >>>> >>>> command goNextCard >>>> go next cd >>>> end goNextCard >>>> >>>> >>>> Regards, >>>> >>>> Scott Rossi >>>> Creative Director >>>> Tactile Media, UX/UI Design >>>> >>>> >>>> On 6/14/16, 6:56 AM, "use-livecode on behalf of Klaus major-k" >>>> >>>> wrote: >>>> >>>>> Hi all, >>>>> >>>>> i have a stack with a "splash" screen which has an windowshape set. >>>>> >>>>> I has a script like this: >>>>> on opencard >>>>> wait 5 secs >>>>> go next cd >>>>> end opencard >> >> Best From cubist at aol.com Tue Jun 14 17:54:52 2016 From: cubist at aol.com (Quentin Long) Date: Tue, 14 Jun 2016 17:54:52 -0400 Subject: Need Help With String Pattern Matching In-Reply-To: References: Message-ID: <15550e8f5d4-7b18-4060@webstg-m10.mail.aol.com> sez Gregory Lypny: > Thank you for the tips on string pattern matching. I?m > used to Mathematica?s string pattern syntax, which is > probably built on regex, but I can see the similarities in > your nice examples, particularly the using of > alternatives [Joe|Anges]. While Mathematica?s string > functions are insanely extensive and their implementation > far more powerful that those in LiveCode, they can > become arbitrarily slow if used repeatedly in loops, and > unfortunately, my procedure requires repeating the > functions over tens of thousands of files. That is why I > want to build an alternative procedure in LiveCode. Hold it. You're saying you don't want to use regex in *LiveCode* because a more-complex feature is too slow in *Mathematica*? I'm not sure how to connect those dots, myself. Why not give regex in LiveCode a shot anyway? "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 bonnmike at gmail.com Tue Jun 14 18:00:30 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 14 Jun 2016 16:00:30 -0600 Subject: strange experience in Windows standalone with windowshape In-Reply-To: <57606E21.4050308@fourthworld.com> References: <1F406A02-C19E-45D1-83DE-192DF2A3591C@swcp.com> <57606E21.4050308@fourthworld.com> Message-ID: Silly question but.. Is the image id that you're setting your windowshape to an imported image or a referenced image? While it doesn't explain the 2nd window having a windowshape and the first not (unless both do have windowshapes set...) ,it might explain why the windowshape for the first is blank if things occur before the reference is fulfilled. On Tue, Jun 14, 2016 at 2:50 PM, Richard Gaskin wrote: > The whole thing is goofy. Why is openStack behaving like preOpenStack > just because it's a non-standard window style? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > Dar wrote: > >> Now that is goofy. Why would that work and Scott's not? >> >> Did you remember the "in 5 seconds" for his? >> >> On Jun 14, 2016, at 2:07 PM, Klaus major-k wrote: >>> >>> Hi Dar, >>> >>> Am 14.06.2016 um 21:51 schrieb Dar Scott : >>>> >>>> Without knowing the context and just adding random things: >>>> >>>> send "go next card" to me in 5 seconds >>>> >>> >>> that was the next thing to try, and YES, that actually works! :-) >>> >>> On Jun 14, 2016, at 1:38 PM, Scott Rossi >>>>> wrote: >>>>> >>>>> Hi Klaus: >>>>> >>>>> I may not have seen all your responses, but did you try adding "with >>>>> messages" to your code or delaying the card advance using "end in"? >>>>> >>>>> wait 5 secs with messages >>>>> >>>>> Or: >>>>> >>>>> send "goNextCard" to me in 5 seconds >>>>> >>>>> command goNextCard >>>>> go next cd >>>>> end goNextCard >>>>> >>>>> >>>>> Regards, >>>>> >>>>> Scott Rossi >>>>> Creative Director >>>>> Tactile Media, UX/UI Design >>>>> >>>>> >>>>> On 6/14/16, 6:56 AM, "use-livecode on behalf of Klaus major-k" >>>>> >>>> major-k.de> >>>>> wrote: >>>>> >>>>> Hi all, >>>>>> >>>>>> i have a stack with a "splash" screen which has an windowshape set. >>>>>> >>>>>> I has a script like this: >>>>>> on opencard >>>>>> wait 5 secs >>>>>> go next cd >>>>>> end opencard >>>>>> >>>>> >>> Best >>> >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From klaus at major-k.de Tue Jun 14 18:02:36 2016 From: klaus at major-k.de (Klaus major-k) Date: Wed, 15 Jun 2016 00:02:36 +0200 Subject: strange experience in Windows standalone with windowshape In-Reply-To: References: <1F406A02-C19E-45D1-83DE-192DF2A3591C@swcp.com> <57606E21.4050308@fourthworld.com> Message-ID: <79FB8025-B7F4-46FF-BDA2-3DC443792E05@major-k.de> Hi Mike, > Am 15.06.2016 um 00:00 schrieb Mike Bonner : > > Silly question but.. Is the image id that you're setting your windowshape > to an imported image or a referenced image? While it doesn't explain the > 2nd window having a windowshape and the first not (unless both do have > windowshapes set...) ,it might explain why the windowshape for the first is > blank if things occur before the reference is fulfilled. it is an imported image! Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From bonnmike at gmail.com Tue Jun 14 18:05:50 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 14 Jun 2016 16:05:50 -0600 Subject: Need Help With String Pattern Matching In-Reply-To: <15550e8f5d4-7b18-4060@webstg-m10.mail.aol.com> References: <15550e8f5d4-7b18-4060@webstg-m10.mail.aol.com> Message-ID: If you don't want to write a regex loop, you can also use regex with filter. I haven't done speed comparisons though. On Tue, Jun 14, 2016 at 3:54 PM, Quentin Long wrote: > sez Gregory Lypny: > > Thank you for the tips on string pattern matching. I?m > > used to Mathematica?s string pattern syntax, which is > > probably built on regex, but I can see the similarities in > > your nice examples, particularly the using of > > alternatives [Joe|Anges]. While Mathematica?s string > > functions are insanely extensive and their implementation > > far more powerful that those in LiveCode, they can > > become arbitrarily slow if used repeatedly in loops, and > > unfortunately, my procedure requires repeating the > > functions over tens of thousands of files. That is why I > > want to build an alternative procedure in LiveCode. > Hold it. You're saying you don't want to use regex in *LiveCode* because a > more-complex feature is too slow in *Mathematica*? I'm not sure how to > connect those dots, myself. Why not give regex in LiveCode a shot anyway? > > "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 ]. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 14 18:06:31 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 14 Jun 2016 16:06:31 -0600 Subject: strange experience in Windows standalone with windowshape In-Reply-To: <79FB8025-B7F4-46FF-BDA2-3DC443792E05@major-k.de> References: <1F406A02-C19E-45D1-83DE-192DF2A3591C@swcp.com> <57606E21.4050308@fourthworld.com> <79FB8025-B7F4-46FF-BDA2-3DC443792E05@major-k.de> Message-ID: Ah well, I was hoping. On Tue, Jun 14, 2016 at 4:02 PM, Klaus major-k wrote: > Hi Mike, > > > Am 15.06.2016 um 00:00 schrieb Mike Bonner : > > > > Silly question but.. Is the image id that you're setting your windowshape > > to an imported image or a referenced image? While it doesn't explain the > > 2nd window having a windowshape and the first not (unless both do have > > windowshapes set...) ,it might explain why the windowshape for the first > is > > blank if things occur before the reference is fulfilled. > > it is an imported image! > > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dsc at swcp.com Tue Jun 14 18:25:46 2016 From: dsc at swcp.com (Dar Scott) Date: Tue, 14 Jun 2016 16:25:46 -0600 Subject: strange experience in Windows standalone with windowshape In-Reply-To: <001201d1c679$28c64540$7a52cfc0$@gmail.com> References: <4D6CB7D6-B1A4-4631-91FF-3B3DF8A0B1CA@major-k.de> <56A47447-0C04-4A0B-8E00-058298BE9F66@swcp.com> <001201d1c679$28c64540$7a52cfc0$@gmail.com> Message-ID: <4BBD88CC-5C42-4988-8D77-9A92B6110BB9@swcp.com> Be careful! There are some things you can do with 'do' but can't send with 'send'. Also, as I recall, not all you can 'call' can lend itself to 'send'. I've seen things that 'do' did but sent d'n't. Also, a sending pending is not the same as a do doing since a pending sending is not done as is a done 'do'. So, unless I need pending, I do do instead of sending a send. > On Jun 14, 2016, at 2:13 PM, Erik Beugelaar wrote: > > This is what we call "the slang language of LiveCode" feature ;-) > Good to know this! > > > Sent from solidit > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of Klaus major-k > Sent: dinsdag 14 juni 2016 22:08 > To: How to use LiveCode > Subject: Re: strange experience in Windows standalone with windowshape > > Hi Dar, > >> Am 14.06.2016 um 21:51 schrieb Dar Scott : >> >> Without knowing the context and just adding random things: >> >> send "go next card" to me in 5 seconds > > that was the next thing to try, and YES, that actually works! :-) > >>> On Jun 14, 2016, at 1:38 PM, Scott Rossi wrote: >>> >>> Hi Klaus: >>> >>> I may not have seen all your responses, but did you try adding "with >>> messages" to your code or delaying the card advance using "end in"? >>> >>> wait 5 secs with messages >>> >>> Or: >>> >>> send "goNextCard" to me in 5 seconds >>> >>> command goNextCard >>> go next cd >>> end goNextCard >>> >>> >>> Regards, >>> >>> Scott Rossi >>> Creative Director >>> Tactile Media, UX/UI Design >>> >>> >>> On 6/14/16, 6:56 AM, "use-livecode on behalf of Klaus major-k" >>> >>> wrote: >>> >>>> Hi all, >>>> >>>> i have a stack with a "splash" screen which has an windowshape set. >>>> >>>> I has a script like this: >>>> on opencard >>>> wait 5 secs >>>> go next cd >>>> end opencard > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Tue Jun 14 18:34:19 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 14 Jun 2016 16:34:19 -0600 Subject: strange experience in Windows standalone with windowshape In-Reply-To: <4BBD88CC-5C42-4988-8D77-9A92B6110BB9@swcp.com> References: <4D6CB7D6-B1A4-4631-91FF-3B3DF8A0B1CA@major-k.de> <56A47447-0C04-4A0B-8E00-058298BE9F66@swcp.com> <001201d1c679$28c64540$7a52cfc0$@gmail.com> <4BBD88CC-5C42-4988-8D77-9A92B6110BB9@swcp.com> Message-ID: I've read this 3 times now and I'm still fascinated. On Tue, Jun 14, 2016 at 4:25 PM, Dar Scott wrote: > Be careful! There are some things you can do with 'do' but can't send > with 'send'. Also, as I recall, not all you can 'call' can lend itself to > 'send'. I've seen things that 'do' did but sent d'n't. Also, a sending > pending is not the same as a do doing since a pending sending is not done > as is a done 'do'. So, unless I need pending, I do do instead of sending a > send. > From revdev at pdslabs.net Tue Jun 14 18:37:14 2016 From: revdev at pdslabs.net (Phil Davis) Date: Tue, 14 Jun 2016 15:37:14 -0700 Subject: strange experience in Windows standalone with windowshape In-Reply-To: References: <4D6CB7D6-B1A4-4631-91FF-3B3DF8A0B1CA@major-k.de> <56A47447-0C04-4A0B-8E00-058298BE9F66@swcp.com> <001201d1c679$28c64540$7a52cfc0$@gmail.com> <4BBD88CC-5C42-4988-8D77-9A92B6110BB9@swcp.com> Message-ID: <7638e6d7-ca43-c32c-b223-369044164690@pdslabs.net> Dar clearly has too much time on his hands. ;-) Phil Davis On 6/14/16 3:34 PM, Mike Bonner wrote: > I've read this 3 times now and I'm still fascinated. > > On Tue, Jun 14, 2016 at 4:25 PM, Dar Scott wrote: > >> Be careful! There are some things you can do with 'do' but can't send >> with 'send'. Also, as I recall, not all you can 'call' can lend itself to >> 'send'. I've seen things that 'do' did but sent d'n't. Also, a sending >> pending is not the same as a do doing since a pending sending is not done >> as is a done 'do'. So, unless I need pending, I do do instead of sending a >> send. >> > _______________________________________________ > use-livecode mailing list > use-livecode 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 dsc at swcp.com Tue Jun 14 18:46:39 2016 From: dsc at swcp.com (Dar Scott) Date: Tue, 14 Jun 2016 16:46:39 -0600 Subject: strange experience in Windows standalone with windowshape In-Reply-To: <7638e6d7-ca43-c32c-b223-369044164690@pdslabs.net> References: <4D6CB7D6-B1A4-4631-91FF-3B3DF8A0B1CA@major-k.de> <56A47447-0C04-4A0B-8E00-058298BE9F66@swcp.com> <001201d1c679$28c64540$7a52cfc0$@gmail.com> <4BBD88CC-5C42-4988-8D77-9A92B6110BB9@swcp.com> <7638e6d7-ca43-c32c-b223-369044164690@pdslabs.net> Message-ID: Actually not! I have just gotten over some under-the-weather and I need to get back to work. Work, Dar, work! But, I am feeling a lot better. I just wanted to say that send is much like do but I forgot what the differences were. > On Jun 14, 2016, at 4:37 PM, Phil Davis wrote: > > Dar clearly has too much time on his hands. ;-) > > Phil Davis > > > On 6/14/16 3:34 PM, Mike Bonner wrote: >> I've read this 3 times now and I'm still fascinated. >> >> On Tue, Jun 14, 2016 at 4:25 PM, Dar Scott wrote: >> >>> Be careful! There are some things you can do with 'do' but can't send >>> with 'send'. Also, as I recall, not all you can 'call' can lend itself to >>> 'send'. I've seen things that 'do' did but sent d'n't. Also, a sending >>> pending is not the same as a do doing since a pending sending is not done >>> as is a done 'do'. So, unless I need pending, I do do instead of sending a >>> send. >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 bonnmike at gmail.com Tue Jun 14 18:54:01 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 14 Jun 2016 16:54:01 -0600 Subject: strange experience in Windows standalone with windowshape In-Reply-To: References: <4D6CB7D6-B1A4-4631-91FF-3B3DF8A0B1CA@major-k.de> <56A47447-0C04-4A0B-8E00-058298BE9F66@swcp.com> <001201d1c679$28c64540$7a52cfc0$@gmail.com> <4BBD88CC-5C42-4988-8D77-9A92B6110BB9@swcp.com> <7638e6d7-ca43-c32c-b223-369044164690@pdslabs.net> Message-ID: I kept expecting it to turn into a full blown tale of daring "do", a "call" to arms, and code troops sending pending. Thanks for the time you 'put into it', I like 'the result' On Tue, Jun 14, 2016 at 4:46 PM, Dar Scott wrote: > Actually not! I have just gotten over some under-the-weather and I need > to get back to work. Work, Dar, work! But, I am feeling a lot better. > > I just wanted to say that send is much like do but I forgot what the > differences were. > > > On Jun 14, 2016, at 4:37 PM, Phil Davis wrote: > > > > Dar clearly has too much time on his hands. ;-) > > > > Phil Davis > > > > > > On 6/14/16 3:34 PM, Mike Bonner wrote: > >> I've read this 3 times now and I'm still fascinated. > >> > >> On Tue, Jun 14, 2016 at 4:25 PM, Dar Scott wrote: > >> > >>> Be careful! There are some things you can do with 'do' but can't send > >>> with 'send'. Also, as I recall, not all you can 'call' can lend > itself to > >>> 'send'. I've seen things that 'do' did but sent d'n't. Also, a sending > >>> pending is not the same as a do doing since a pending sending is not > done > >>> as is a done 'do'. So, unless I need pending, I do do instead of > sending a > >>> send. > >>> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > > > -- > > Phil Davis > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Tue Jun 14 19:43:10 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 14 Jun 2016 16:43:10 -0700 Subject: neither error nor change on internal mySQL query Message-ID: It seems to me that I should either get an entry or an error out of this: Where dcmd is *BEGIN ;* *CREATE TABLE dhdbt_testy_zeke_______001 (unqKy SERIAL PRIMARY KEY, ktyp CHAR(1), kywd VARCHAR(50) UNIQUE, usr VARCHAR(20), tstmp TIMESTAMP WITH TIME ZONE, scr TEXT, dltd BOOLEAN, cmd TEXT );* *ALTER TABLE dhdbt_testy_zeke_______001 OWNER TO hawk ;* *INSERT INTO dhdbt_testy_zeke_______001(kywd, ktyp, cmd) VALUES ('ckDinfo', 'M', '100000a');* *COMMIT;* the code snippet * revExecuteSQL dbNum, dcmd* *put* *the* *result* *into** theRes* puts 0 into theRes. This has worked for a couple of years, and stopped when I made changes elsewhere. Am I missing something her? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From scott at tactilemedia.com Tue Jun 14 20:00:07 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 14 Jun 2016 17:00:07 -0700 Subject: strange experience in Windows standalone with windowshape In-Reply-To: <09677D80-2F75-46AC-AA75-1F577BB8C9C0@major-k.de> References: <4D6CB7D6-B1A4-4631-91FF-3B3DF8A0B1CA@major-k.de> <56A47447-0C04-4A0B-8E00-058298BE9F66@swcp.com> <1F406A02-C19E-45D1-83DE-192DF2A3591C@swcp.com> <09677D80-2F75-46AC-AA75-1F577BB8C9C0@major-k.de> Message-ID: On 6/14/16, 1:20 PM, "use-livecode on behalf of Klaus major-k" wrote: >Hi Dra, > >> Am 14.06.2016 um 22:13 schrieb Dar Scott : >> >> Now that is goofy. Why would that work and Scott's not? > >well, that's a rhetorical question, right? ;-) > >I added an appropriate comment to the bug report! > >> Did you remember the "in 5 seconds" for his? > >From the card script: >... >send "go next" to me in 5 secs ># wait 5 seconds with messages ># go to next card >... >OK? 8-) Klaus: This is the part you missed: send "goNextCard" to me in 5 seconds command goNextCard go next cd end goNextCard Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design From klaus at major-k.de Tue Jun 14 20:04:32 2016 From: klaus at major-k.de (Klaus major-k) Date: Wed, 15 Jun 2016 02:04:32 +0200 Subject: strange experience in Windows standalone with windowshape In-Reply-To: References: <4D6CB7D6-B1A4-4631-91FF-3B3DF8A0B1CA@major-k.de> <56A47447-0C04-4A0B-8E00-058298BE9F66@swcp.com> <1F406A02-C19E-45D1-83DE-192DF2A3591C@swcp.com> <09677D80-2F75-46AC-AA75-1F577BB8C9C0@major-k.de> Message-ID: <9121F1C5-E58B-486C-8B8D-24EDB40AF594@major-k.de> Hi Scott, > Am 15.06.2016 um 02:00 schrieb Scott Rossi : > On 6/14/16, 1:20 PM, "use-livecode on behalf of Klaus major-k" > > wrote: > >> Hi Dar, >>> Am 14.06.2016 um 22:13 schrieb Dar Scott : >>> Now that is goofy. Why would that work and Scott's not? >> well, that's a rhetorical question, right? ;-) >> I added an appropriate comment to the bug report! >>> Did you remember the "in 5 seconds" for his? >> From the card script: >> ... >> send "go next" to me in 5 secs >> # wait 5 seconds with messages >> # go to next card >> ... >> OK? 8-) > > Klaus: > > This is the part you missed: > send "goNextCard" to me in 5 seconds > > command goNextCard > go next cd > end goNextCard I did not miss anything, this line: ... send "go next" to me in 5 secs ... actually works, no need for an extra handler! :-) > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From maarten.koopmans at gmail.com Wed Jun 15 03:18:13 2016 From: maarten.koopmans at gmail.com (Maarten Koopmans) Date: Wed, 15 Jun 2016 09:18:13 +0200 Subject: livecode 8 system tray / osx menu bar support In-Reply-To: References: <3660E60E-F038-47EB-953F-89DE738218FC@appisle.net> Message-ID: Done. http://quality.livecode.com/show_bug.cgi?id=17848 Op zondag 12 juni 2016 heeft Monte Goulding het volgende geschreven: > Thanks Maarten. Could you report on quality.livecode.com > > Sent from my iPhone > > > On 12 Jun 2016, at 1:00 AM, Maarten Koopmans > wrote: > > > > Report where? I am happy to do so. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From cubist at aol.com Wed Jun 15 11:24:47 2016 From: cubist at aol.com (Quentin Long) Date: Wed, 15 Jun 2016 11:24:47 -0400 Subject: strange experience in Windows standalone with windowshape In-Reply-To: References: Message-ID: <15554aa2f7a-4c6b-541c@webstg-m08.mail.aol.com> sez Dar Scott: > Be careful! There are some things you can do with 'do' > but can't send with 'send'. Also, as I recall, not all you > can 'call' can lend itself to 'send'. I've seen things that > 'do' did but sent d'n't. Also, a sending pending is not > the same as a do doing since a pending sending is > not done as is a done 'do'. So, unless I need pending, > I do do instead of sending a send. But wait! Is the potion with the pellet in the vessel with the pestle, or in the flagon with the dragon? And is it the chalice with the palace that has the brew which is true? "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 dsc at swcp.com Wed Jun 15 11:41:37 2016 From: dsc at swcp.com (Dar Scott) Date: Wed, 15 Jun 2016 09:41:37 -0600 Subject: strange experience in Windows standalone with windowshape In-Reply-To: <15554aa2f7a-4c6b-541c@webstg-m08.mail.aol.com> References: <15554aa2f7a-4c6b-541c@webstg-m08.mail.aol.com> Message-ID: Perhaps, in my subconscious, Danny Kaye was my inspiration! (Now I need to focus on getting better and getting back to work.) > On Jun 15, 2016, at 9:24 AM, Quentin Long wrote: > > sez Dar Scott: >> Be careful! There are some things you can do with 'do' >> but can't send with 'send'. Also, as I recall, not all you >> can 'call' can lend itself to 'send'. I've seen things that >> 'do' did but sent d'n't. Also, a sending pending is not >> the same as a do doing since a pending sending is >> not done as is a done 'do'. So, unless I need pending, >> I do do instead of sending a send. > But wait! Is the potion with the pellet in the vessel with the pestle, or in the flagon with the dragon? And is it the chalice with the palace that has the brew which is true? > > > "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 ]. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bodine at bodinetraininggames.com Wed Jun 15 11:41:36 2016 From: bodine at bodinetraininggames.com (tbodine) Date: Wed, 15 Jun 2016 08:41:36 -0700 (PDT) Subject: [OT-ish] WWDC things of interest In-Reply-To: <57602E01.8040908@fourthworld.com> References: <08FEEB28-2DEA-475D-AB93-38CA7ED626AC@gmail.com> <57602E01.8040908@fourthworld.com> Message-ID: <1466005296858-4705802.post@n4.nabble.com> Richard Gaskin wrote > Even if we develop on Mac or Linux, the majority of most of our income > comes from Windows users, and our income is what enables LC's income. > > The Mac audience may be two to three times larger than Linux, but both > are niches compared to the 86% using Windows. Richard makes a very important point here. I agree and wish to echo it. -- Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-ish-WWDC-things-of-interest-tp4705724p4705802.html Sent from the Revolution - User mailing list archive at Nabble.com. From richmondmathewson at gmail.com Wed Jun 15 12:27:16 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 15 Jun 2016 19:27:16 +0300 Subject: Lying in the bath, but telling the truth. Message-ID: <576181E4.1090903@gmail.com> As is often the case, I was doing some *Livecode* programming in a nice, hot bath, ably assisted by a good, strong cup of coffee and Aly Bain playing the "St. Anne's Reel": I had to be careful not to splash Aly's fiddle with bath water . . . but I digress. https://www.youtube.com/watch?v=lwllcWC_FL4 Anyway, I was musing on my tendency to come to things later in life than many other people, as I learnt to drive a car at 32, and so on. Of course *set the useUnicode to true* bubbled up from somewhere near the plug-hole . . . Now, being, now, the owner (for a season) of an Indy licence to Livecode it behoves me to port my Devawriter Pro to 7.1.4 or, even, 8. something as several of my customers, having upgraded their Macintoshes to 10.11 are getting Devawriter 1.x crashing like mad. To contextualise further; currently Devawriter Pro is being developed on G5 Macintosh running Livecode (that's Runtime Revolution to you) 4.5 on Mac OS 10.5.8; and is about to be moved on a DELL Optiplex 745 running Xubuntu 16.04. So, obviously, I will have to set a "bot" to trawl its way through my code and replace every incidence of *numToChar* to *numToCodePoint*, and replace the surrogate pairs in the upcoming *Grantha* interface with "standard" Unicode addresses. The first of which should (?) be relatively simple if the global search-N-replace behaves itself, the second will be a bother, but nothing insurmountable. Anyway; to cut a short story long, as is my wont: to *set the useUnicode to true*: what is unclear from the Livecode 7.x documentation is if this is now redundant or not. Richmond. From devin_asay at byu.edu Wed Jun 15 12:33:21 2016 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 15 Jun 2016 16:33:21 +0000 Subject: Lying in the bath, but telling the truth. In-Reply-To: <576181E4.1090903@gmail.com> References: <576181E4.1090903@gmail.com> Message-ID: <6CE0120F-233D-443F-B2CB-F3CCCC8C7EF0@byu.edu> > On Jun 15, 2016, at 10:27 AM, Richmond wrote: > So, obviously, I will have to set a "bot" to trawl its way through my code > and replace every incidence of *numToChar* to *numToCodePoint*, and > replace the surrogate pairs in the upcoming *Grantha* interface > with "standard" Unicode addresses. The first of which should (?) be relatively > simple if the global search-N-replace behaves itself, the second will be a > bother, but nothing insurmountable. > > Anyway; to cut a short story long, as is my wont: to *set the useUnicode to true*: > what is unclear from the Livecode 7.x documentation is if this is now redundant > or not. It?s no longer needed, as it only ever applied to how numToChar and charToNum worked. Here?s a note from the tail-end of the dictionary entry in LC 8: Deprecated:In LiveCode 7.0 the language was changed to handle unicode transparently. This means that language functionality which previously aided unicode text manipulation is no longer required. This property should not be used in new code, as it only affects the behaviour of numToChar and charToNum, which are themselves deprecated. Devin Asay Office of Digital Humanities Brigham Young University From jacques.hausser at unil.ch Wed Jun 15 12:38:05 2016 From: jacques.hausser at unil.ch (Jacques Hausser) Date: Wed, 15 Jun 2016 16:38:05 +0000 Subject: browser widget again In-Reply-To: References: <15554aa2f7a-4c6b-541c@webstg-m08.mail.aol.com> Message-ID: <42234EDF-ACC5-4187-84E1-9B9DE733113D@unil.ch> Still trying to use the browser widget and its javascripthandlers. I picked information here and there (many thanks to those who answered my previous mails, especially Mike) but really I would be glad to find a detailed user?s guide somewhere. I?m using a html file exploiting google map?s API as URL, and it works perfectly well with the old style browser. But I cannot grab the information I want with the new browser widget. Hereunder a simplified (and tested) example of what I tried for the old browser (successfully) and the widget browser (to no avail). ?????????????????????????????? old style browser: ?????????????????????????????? in the card script: command getLoc get revBrowserCallScript(LBrowserID,exportXYZ) put it into fld "FResult" end getLoc in the html file: function exportXYZ() //tCoord contains the ccordinates and altitude of the last point clicked { var vCoord = tCoord; return vCoord; } ?????????????????????????????? browser widget: ?????????????????????????????? in the card script: command getLoc do "exportXYZ();" in widget "mapBrowser" end mouseUp command inputLoc pCoord ?- this command?s name is in the list of javascripthandlers for my browser put pCoord into fld "FResult" end inputLoc in the html file: function exportXYZ() //tCoord contains the ccordinates and altitude of the last point clicked { var pCoord = tCoord; liveCode.inputLoc(pCoord); } ?????????????????????????????? the html file is exactly the same in both cases except for the change illustrated above. The map is displayed as expected in the browser widget, I can click any location to get a marker displayed and I can move to a new region with the following: ?????????????????????????????? in the card script: command newReg plat,plon,pzoom do "goToReg(plat,plon,pzoom);? in widget "mapBrowser" end mouseUp and in the htlm file: function goToReg(pLat,pLng,pZoom) { var newCenter = new google.maps.LatLng(pLat,pLng); tmap.setCenter(newCenter); var tZoom = parseInt(pZoom,10); tmap.setZoom(tZoom); } ?????????????????????????????? Thus ?do ? in widget? works; but I cannot fetch those damned coordinates with ?liveCode.inputLoc(pCoord);". How to make the javascriptHandlers to work ? PS: Mac 10.11.5, LC 8.0.2 rc2 From mark at livecode.com Wed Jun 15 12:43:53 2016 From: mark at livecode.com (Mark Waddingham) Date: Wed, 15 Jun 2016 18:43:53 +0200 Subject: Lying in the bath, but telling the truth. In-Reply-To: <576181E4.1090903@gmail.com> References: <576181E4.1090903@gmail.com> Message-ID: Hi Richmond, On 2016-06-15 18:27, Richmond wrote: > So, obviously, I will have to set a "bot" to trawl its way through my > code > and replace every incidence of *numToChar* to *numToCodePoint*, and > replace the surrogate pairs in the upcoming *Grantha* interface > with "standard" Unicode addresses. The first of which should (?) be > relatively > simple if the global search-N-replace behaves itself, the second will > be a > bother, but nothing insurmountable. If all your instances of numToChar are where useUnicode is 'true' then you probably *won't* have to do this. When useUnicode is true, numToChar() works as it always did - it produces two bytes which are the binary encoding of the specified unicode code unit (not codepoint - see in a minute) as UTF-16. Now, numToChar() (with useUnicode true) never supported unicode codepoints above 65535 - however I think you already figured out how to decompose a character outside of the BMP (i.e > 65535) into two surrogate pairs which are < 65535 and thus supported by numToChar(). You mention that Devawriter Pro was written against 4.5.x - if I recall correctly then this was *before* the field became more intelligent at handling unicode. Around 5.5 we changed the field so that it *understood* that a unicode code unit (any unicode char <= 65535, surrogate pairs are two code units) was a single 'char'. Prior to 5.5, the field used 'char' to mean byte (so char 1 of field 1, where the first character in a field was a unicode character would return you the first byte of code unit, not the code unit itself - which you would get with char 1 to 2 of field 1). This latter fact probably means you will need to spend some time looking at the code which manipulates fields as, if you are using 'char' on your fields containing unicode and computing indicies thereof (e.g. char 3 to 4 of field 1), you'll need to adjust for that. So, to sum up, the changes introduced around 5.5 are likely to cause you *more* trouble than those introduced with 7.0 - if you fix your code so it works with 5.5 functioning of the field and make sure you put text into the field using 'set the unicodeText of ' or 'put unicode ... into '; then you *should* find that there is little or no need to update your unicode construction code - which has all the instances of numToChar. Hope this helps! Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From richmondmathewson at gmail.com Wed Jun 15 13:12:30 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 15 Jun 2016 20:12:30 +0300 Subject: Lying in the bath, but telling the truth. In-Reply-To: <6CE0120F-233D-443F-B2CB-F3CCCC8C7EF0@byu.edu> References: <576181E4.1090903@gmail.com> <6CE0120F-233D-443F-B2CB-F3CCCC8C7EF0@byu.edu> Message-ID: <57618C7E.1070809@gmail.com> Ah: "the tail-end of the dictionary entry in LC 8" Well all that does is allow me the chance to get in a bi*chy comment about the LC 8 dictionary and 64 bit Linux. There should be, at the very least a browser widget set to load the Dictionary. Richmond. On 15.06.2016 19:33, Devin Asay wrote: >> On Jun 15, 2016, at 10:27 AM, Richmond wrote: > >> So, obviously, I will have to set a "bot" to trawl its way through my code >> and replace every incidence of *numToChar* to *numToCodePoint*, and >> replace the surrogate pairs in the upcoming *Grantha* interface >> with "standard" Unicode addresses. The first of which should (?) be relatively >> simple if the global search-N-replace behaves itself, the second will be a >> bother, but nothing insurmountable. >> >> Anyway; to cut a short story long, as is my wont: to *set the useUnicode to true*: >> what is unclear from the Livecode 7.x documentation is if this is now redundant >> or not. > It?s no longer needed, as it only ever applied to how numToChar and charToNum worked. Here?s a note from the tail-end of the dictionary entry in LC 8: > > Deprecated:In LiveCode 7.0 the language was changed to handle unicode transparently. This means that language functionality which previously aided unicode text manipulation is no longer required. This property should not be used in new code, as it only affects the behaviour of numToChar and charToNum, which are themselves deprecated. > > > Devin Asay > Office of Digital Humanities > Brigham Young University > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Wed Jun 15 13:37:43 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 15 Jun 2016 20:37:43 +0300 Subject: Lying in the bath, but telling the truth. In-Reply-To: References: <576181E4.1090903@gmail.com> Message-ID: <57619267.5060603@gmail.com> On 15.06.2016 19:43, Mark Waddingham wrote: > Hi Richmond, > > On 2016-06-15 18:27, Richmond wrote: > >> So, obviously, I will have to set a "bot" to trawl its way through my >> code >> and replace every incidence of *numToChar* to *numToCodePoint*, and >> replace the surrogate pairs in the upcoming *Grantha* interface >> with "standard" Unicode addresses. The first of which should (?) be >> relatively >> simple if the global search-N-replace behaves itself, the second will >> be a >> bother, but nothing insurmountable. > > If all your instances of numToChar are where useUnicode is 'true' then > you probably *won't* have to do this. > > When useUnicode is true, numToChar() works as it always did - it > produces two bytes which are the binary encoding of the specified > unicode code unit (not codepoint - see in a minute) as UTF-16. > > Now, numToChar() (with useUnicode true) never supported unicode > codepoints above 65535 - however I think you already figured out how > to decompose a character outside of the BMP (i.e > 65535) into two > surrogate pairs which are < 65535 and thus supported by numToChar(). > > You mention that Devawriter Pro was written against 4.5.x - if I > recall correctly then this was *before* the field became more > intelligent at handling unicode. Around 5.5 we changed the field so > that it *understood* that a unicode code unit (any unicode char <= > 65535, surrogate pairs are two code units) was a single 'char'. Prior > to 5.5, the field used 'char' to mean byte (so char 1 of field 1, > where the first character in a field was a unicode character would > return you the first byte of code unit, not the code unit itself - > which you would get with char 1 to 2 of field 1). > > This latter fact probably means you will need to spend some time > looking at the code which manipulates fields as, if you are using > 'char' on your fields containing unicode and computing indicies > thereof (e.g. char 3 to 4 of field 1), you'll need to adjust for that. > > So, to sum up, the changes introduced around 5.5 are likely to cause > you *more* trouble than those introduced with 7.0 - if you fix your > code so it works with 5.5 functioning of the field and make sure you > put text into the field using 'set the unicodeText of ' > or 'put unicode ... into '; then you *should* find that > there is little or no need to update your unicode construction code - > which has all the instances of numToChar. This is rather interesting as all my code currently features set the unicodeText of fld "XYZ" to the unicodeText of fld "XYZ" & numToChar(12345) in LC/RR 4.5, to which I should add: 1. That works 100% in LC 4.5 2. I thought that was "the way" in 4.5, so don't entirely understand "the changes introduced around 5.5 are likely to cause you *more* trouble than those introduced with 7.0". Having said that, we'll see soon enough if I come-a-cropper or not :) Richmond. > > Hope this helps! Very much so. > > Warmest Regards, > > Mark. > From mark at livecode.com Wed Jun 15 13:42:15 2016 From: mark at livecode.com (Mark Waddingham) Date: Wed, 15 Jun 2016 19:42:15 +0200 Subject: Lying in the bath, but telling the truth. In-Reply-To: <57619267.5060603@gmail.com> References: <576181E4.1090903@gmail.com> <57619267.5060603@gmail.com> Message-ID: On 2016-06-15 19:37, Richmond wrote: > This is rather interesting as all my code currently features > > set the unicodeText of fld "XYZ" to the unicodeText of fld "XYZ" & > numToChar(12345) > > in LC/RR 4.5, to which I should add: > > 1. That works 100% in LC 4.5 > > 2. I thought that was "the way" in 4.5, so don't entirely understand > "the changes introduced around 5.5 are likely to cause you *more* > trouble than those introduced with 7.0". If your code only ever sets 'the unicodeText of field' and not a field chunk, then you should find you won't have to make many changes at all. It was the behavior of character chunks of fields which changed in 5.5 - setting the field's unicodeText property did not. Indeed, you should find that 'numToChar()' with 'useUnicode == true' and 'the unicodeText of field ...' work exactly the same in 4.5, 5.5 and 7+ - modulo any bugs which have been fixed in unicode support since 4.5, that is. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From richmondmathewson at gmail.com Wed Jun 15 14:10:49 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 15 Jun 2016 21:10:49 +0300 Subject: Lying in the bath, but telling the truth. In-Reply-To: References: <576181E4.1090903@gmail.com> <57619267.5060603@gmail.com> Message-ID: <57619A29.8010901@gmail.com> My main question is whether it will be necessary to delete all the *set the useUnicode to true* lines. Richmond. On 15.06.2016 20:42, Mark Waddingham wrote: > On 2016-06-15 19:37, Richmond wrote: >> This is rather interesting as all my code currently features >> >> set the unicodeText of fld "XYZ" to the unicodeText of fld "XYZ" & >> numToChar(12345) >> >> in LC/RR 4.5, to which I should add: >> >> 1. That works 100% in LC 4.5 >> >> 2. I thought that was "the way" in 4.5, so don't entirely understand >> "the changes introduced around 5.5 are likely to cause you *more* >> trouble than those introduced with 7.0". > > If your code only ever sets 'the unicodeText of field' and not a field > chunk, then you should find you won't have to make many changes at > all. It was the behavior of character chunks of fields which changed > in 5.5 - setting the field's unicodeText property did not. > > Indeed, you should find that 'numToChar()' with 'useUnicode == true' > and 'the unicodeText of field ...' work exactly the same in 4.5, 5.5 > and 7+ - modulo any bugs which have been fixed in unicode support > since 4.5, that is. > > Warmest Regards, > > Mark. > From iphonelagi at gmail.com Wed Jun 15 14:17:18 2016 From: iphonelagi at gmail.com (Lagi Pittas) Date: Wed, 15 Jun 2016 19:17:18 +0100 Subject: [OT-ish] WWDC things of interest In-Reply-To: <1466005296858-4705802.post@n4.nabble.com> References: <08FEEB28-2DEA-475D-AB93-38CA7ED626AC@gmail.com> <57602E01.8040908@fourthworld.com> <1466005296858-4705802.post@n4.nabble.com> Message-ID: I second that emotion - (or is it third) I've been harping on about this for over a year now - LiveCodeTowers should be putting libraries and courses in the Indy and Business licence that is useful to the Foxpro, Clipper,Delphi,Dbase,Paradox ,VB6, Omnis and dare I say it Filemaker people. Without wishing to flog a dead horse - you are trying to attract people to write apps for IOS but they can't actually do that without an expensive licence - oh its free but you can't write Apps for IOS or the Apple store. Compare with "Here's a free car, the windows work the horn works - everything works all you need is an engine." I would be mighty pissed to find out after I had spent hours learning to "write Apps" I couldn't deploy my "Crappy Bird" clone that isn't gonna make me any money anyway. A developer who has clientele for Business critical applications that earns thousands will see the value. If you want everyone to learn to program (whatever that means) they can do it with the free one and then they decide thats it's too expensive afterwards - you have still lost a sale. I have 2 enterprise versions of B4A and B4I just incase there is something I can't do in LIvecode - hasn't happened yet and I think when V8 is a little more progressed it probably won't but always have a plan B. Now if you had 2 paid for options for IOS and Android - Separate versions ) at a commensurate price to Apples Developer Tax you would get the numbers who would then have a chance of gravitating to the "Full Fat" version of livecode. Sorry I'm talking to myself again. Lagi On 15 June 2016 at 16:41, tbodine wrote: > Richard Gaskin wrote > > Even if we develop on Mac or Linux, the majority of most of our income > > comes from Windows users, and our income is what enables LC's income. > > > > The Mac audience may be two to three times larger than Linux, but both > > are niches compared to the 86% using Windows. > > Richard makes a very important point here. I agree and wish to echo it. > > -- Tom Bodine > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/OT-ish-WWDC-things-of-interest-tp4705724p4705802.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 dochawk at gmail.com Wed Jun 15 14:19:51 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 15 Jun 2016 11:19:51 -0700 Subject: "Error description: set: license limit exceeded" Message-ID: I am getting this error message. This should not be happening on an indy license with more than a year left. For that matter, I have no idea what it means: Error description: set: license limit exceeded -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From richmondmathewson at gmail.com Wed Jun 15 14:23:00 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 15 Jun 2016 21:23:00 +0300 Subject: "Error description: set: license limit exceeded" In-Reply-To: References: Message-ID: <57619D04.6030605@gmail.com> Your income has probably just exceeded $500,000; after all, the Indy version of Livecode has a built-in income detector :P Richmond. On 15.06.2016 21:19, Dr. Hawkins wrote: > I am getting this error message. This should not be happening on an indy > license with more than a year left. > > For that matter, I have no idea what it means: > > Error description: set: license limit exceeded > From bonnmike at gmail.com Wed Jun 15 14:25:20 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 15 Jun 2016 12:25:20 -0600 Subject: browser widget again In-Reply-To: <42234EDF-ACC5-4187-84E1-9B9DE733113D@unil.ch> References: <15554aa2f7a-4c6b-541c@webstg-m08.mail.aol.com> <42234EDF-ACC5-4187-84E1-9B9DE733113D@unil.ch> Message-ID: You said tcoord contains the information you want to return... I don't think you need to actually include the livecode function call in your html, I'm pretty sure you can remove it entirely and do something like this.. do "liveCode.inputLoc(tcoord)" in widget "Browser" and it will work. (It did for me, its possible there are issues elsewhere in the javascript code) In this way you can define a single javascripthandler and have it hand back any data you need. As a quick example, I set the htmltext of a widget to the following.. The ONLY thing in there as javascript is the declaration of tcoords Then from the message box I set a javascript handler to myJSHandler and then.. do "liveCode.myJSHandler(tcoords,'fred')" in widget 1 For my lc handler I used paramcount and param() to find out and show the data that was passed out. command myjshandler put empty repeat with i = 1 to the paramcount put param(i) & cr after msg end repeat end myjshandler As expected the message box displayed 1,2,3 fred You might be able to leverage this into some debugging ability. I did try a bunch of different ways to get things out (some that seemed like they SHOULD work but didn't, causing an "error eveluating javascript" error) It even seemed sometimes that a method that worked just a minute ago would stop. (I'm so bad at javascript though, its no surprise i'm lost) On Wed, Jun 15, 2016 at 10:38 AM, Jacques Hausser wrote: > Still trying to use the browser widget and its javascripthandlers. I > picked information here and there (many thanks to those who answered my > previous mails, especially Mike) but really I would be glad to find a > detailed user?s guide somewhere. I?m using a html file exploiting google > map?s API as URL, and it works perfectly well with the old style browser. > But I cannot grab the information I want with the new browser widget. > Hereunder a simplified (and tested) example of what I tried for the old > browser (successfully) and the widget browser (to no avail). > > ?????????????????????????????? > old style browser: > ?????????????????????????????? > in the card script: > > command getLoc > get revBrowserCallScript(LBrowserID,exportXYZ) > put it into fld "FResult" > end getLoc > > in the html file: > > function exportXYZ() > //tCoord contains the ccordinates and altitude of the last point clicked > { > var vCoord = tCoord; > return vCoord; > } > ?????????????????????????????? > browser widget: > ?????????????????????????????? > in the card script: > > command getLoc > do "exportXYZ();" in widget "mapBrowser" > end mouseUp > > command inputLoc pCoord > ?- this command?s name is in the list of javascripthandlers for my browser > put pCoord into fld "FResult" > end inputLoc > > in the html file: > > function exportXYZ() > //tCoord contains the ccordinates and altitude of the last point clicked > { > var pCoord = tCoord; > liveCode.inputLoc(pCoord); > } > ?????????????????????????????? > > the html file is exactly the same in both cases except for the change > illustrated above. The map is displayed as expected in the browser widget, > I can click any location to get a marker displayed and I can move to a new > region with the following: > > ?????????????????????????????? > in the card script: > > command newReg plat,plon,pzoom > do "goToReg(plat,plon,pzoom);? in widget "mapBrowser" > end mouseUp > > and in the htlm file: > > function goToReg(pLat,pLng,pZoom) > { > var newCenter = new google.maps.LatLng(pLat,pLng); > tmap.setCenter(newCenter); > var tZoom = parseInt(pZoom,10); > tmap.setZoom(tZoom); > } > ?????????????????????????????? > > Thus ?do ? in widget? works; but I cannot fetch those damned coordinates > with ?liveCode.inputLoc(pCoord);". How to make the javascriptHandlers to > work ? > > PS: Mac 10.11.5, LC 8.0.2 rc2 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Jun 15 14:35:10 2016 From: mark at livecode.com (Mark Waddingham) Date: Wed, 15 Jun 2016 20:35:10 +0200 Subject: Lying in the bath, but telling the truth. In-Reply-To: <57619A29.8010901@gmail.com> References: <576181E4.1090903@gmail.com> <57619267.5060603@gmail.com> <57619A29.8010901@gmail.com> Message-ID: <429dbb017ba9dbb03ca018cc6fd2f99d@livecode.com> On 2016-06-15 20:10, Richmond wrote: > My main question is whether it will be necessary to delete all the > *set the useUnicode to true* lines. No, you shouldn't need to - the 'useUnicode' property and 'numToChar' still interact in exactly the same way as they did before. If 'useUnicode' is true, then numToChar() produces two bytes representing the UTF-16 encoding of the specified unicode code unit. These generated bytes still work in exactly the same way with regards 'set the unicodeText of field' and 'get the unicodeText of field'. So, all being well, you should be fine. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From dsc at swcp.com Wed Jun 15 14:35:36 2016 From: dsc at swcp.com (Dar Scott) Date: Wed, 15 Jun 2016 12:35:36 -0600 Subject: "Error description: set: license limit exceeded" In-Reply-To: <57619D04.6030605@gmail.com> References: <57619D04.6030605@gmail.com> Message-ID: <4B8B7ED5-E6F1-463B-8663-35A51B645F87@swcp.com> I would very much like to be Indy disqualified. As to the error, it seems it has come up a few times in discussions over the years. Because of the word 'set', it feels like it has to do with too many lines in a script that is set in a standalone. But, I thought those limits had been removed. Just it case, scriptLimits() can be checked. It should be 0,0,0,0. Dar > On Jun 15, 2016, at 12:23 PM, Richmond wrote: > > Your income has probably just exceeded $500,000; after all, the Indy version of Livecode > has a built-in income detector :P > > Richmond. > > On 15.06.2016 21:19, Dr. Hawkins wrote: >> I am getting this error message. This should not be happening on an indy >> license with more than a year left. >> >> For that matter, I have no idea what it means: >> >> Error description: set: license limit exceeded >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From david at viral.academy Wed Jun 15 15:03:06 2016 From: david at viral.academy (David Bovill) Date: Wed, 15 Jun 2016 20:03:06 +0100 Subject: browser widget again In-Reply-To: References: <15554aa2f7a-4c6b-541c@webstg-m08.mail.aol.com> <42234EDF-ACC5-4187-84E1-9B9DE733113D@unil.ch> Message-ID: I have the same sort of problem. It seems that calling javascript from Livecode with "do someFunction in browser" does not return anything even if the Javascript function does return a value? Or maybe the returned value needs to be of a certain type? If you write javascript that calls Livecode I think there is no issue, but for accessing existing pages I think we can't get results from javascript functions. On 15 June 2016 at 19:25, Mike Bonner wrote: > You said tcoord contains the information you want to return... > > I don't think you need to actually include the livecode function call in > your html, I'm pretty sure you can remove it entirely and do something like > this.. > > do "liveCode.inputLoc(tcoord)" in widget "Browser" and it will work. (It > did for me, its possible there are issues elsewhere in the javascript code) > > In this way you can define a single javascripthandler and have it hand back > any data you need. > > As a quick example, I set the htmltext of a widget to the following.. > > > > > > > > The ONLY thing in there as javascript is the declaration of tcoords > > Then from the message box I set a javascript handler to myJSHandler and > then.. > do "liveCode.myJSHandler(tcoords,'fred')" in widget 1 > > For my lc handler I used paramcount and param() to find out and show the > data that was passed out. > > command myjshandler > put empty > repeat with i = 1 to the paramcount > put param(i) & cr after msg > end repeat > end myjshandler > > As expected the message box displayed > 1,2,3 > fred > > You might be able to leverage this into some debugging ability. > > I did try a bunch of different ways to get things out (some that seemed > like they SHOULD work but didn't, causing an "error eveluating javascript" > error) > > It even seemed sometimes that a method that worked just a minute ago would > stop. (I'm so bad at javascript though, its no surprise i'm lost) > > > On Wed, Jun 15, 2016 at 10:38 AM, Jacques Hausser > > wrote: > > > Still trying to use the browser widget and its javascripthandlers. I > > picked information here and there (many thanks to those who answered my > > previous mails, especially Mike) but really I would be glad to find a > > detailed user?s guide somewhere. I?m using a html file exploiting google > > map?s API as URL, and it works perfectly well with the old style browser. > > But I cannot grab the information I want with the new browser widget. > > Hereunder a simplified (and tested) example of what I tried for the old > > browser (successfully) and the widget browser (to no avail). > > > > ?????????????????????????????? > > old style browser: > > ?????????????????????????????? > > in the card script: > > > > command getLoc > > get revBrowserCallScript(LBrowserID,exportXYZ) > > put it into fld "FResult" > > end getLoc > > > > in the html file: > > > > function exportXYZ() > > //tCoord contains the ccordinates and altitude of the last point clicked > > { > > var vCoord = tCoord; > > return vCoord; > > } > > ?????????????????????????????? > > browser widget: > > ?????????????????????????????? > > in the card script: > > > > command getLoc > > do "exportXYZ();" in widget "mapBrowser" > > end mouseUp > > > > command inputLoc pCoord > > ?- this command?s name is in the list of javascripthandlers for my > browser > > put pCoord into fld "FResult" > > end inputLoc > > > > in the html file: > > > > function exportXYZ() > > //tCoord contains the ccordinates and altitude of the last point clicked > > { > > var pCoord = tCoord; > > liveCode.inputLoc(pCoord); > > } > > ?????????????????????????????? > > > > the html file is exactly the same in both cases except for the change > > illustrated above. The map is displayed as expected in the browser > widget, > > I can click any location to get a marker displayed and I can move to a > new > > region with the following: > > > > ?????????????????????????????? > > in the card script: > > > > command newReg plat,plon,pzoom > > do "goToReg(plat,plon,pzoom);? in widget "mapBrowser" > > end mouseUp > > > > and in the htlm file: > > > > function goToReg(pLat,pLng,pZoom) > > { > > var newCenter = new google.maps.LatLng(pLat,pLng); > > tmap.setCenter(newCenter); > > var tZoom = parseInt(pZoom,10); > > tmap.setZoom(tZoom); > > } > > ?????????????????????????????? > > > > Thus ?do ? in widget? works; but I cannot fetch those damned coordinates > > with ?liveCode.inputLoc(pCoord);". How to make the javascriptHandlers to > > work ? > > > > PS: Mac 10.11.5, LC 8.0.2 rc2 > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 15 15:15:24 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 15 Jun 2016 22:15:24 +0300 Subject: "Error description: set: license limit exceeded" In-Reply-To: <4B8B7ED5-E6F1-463B-8663-35A51B645F87@swcp.com> References: <57619D04.6030605@gmail.com> <4B8B7ED5-E6F1-463B-8663-35A51B645F87@swcp.com> Message-ID: <5761A94C.10204@gmail.com> So, (swank, swank) I opened up LC 8.0.1 Indy and typed "put the" into the Message box, then copy-pasted "scriptLimits()" across from your message, at which point the Message box contained this: put the ?? I was unable to DELETE anything in the Message Box. which is both odd and problematic. So, stopping trying to be clever (!) I typed "put the scriptLimits()" into the Message box and got: Script compile error: Error description: Handler: bad command which is also not much use. I then opened LC 7.1.4 (because the Dictionary in Livecode 8.0.1 64-bit Linux is a non-starter) and looked up "scriptLimits()" and read: Deprecated in Livecode 6.7. At which point I felt bl**dy silly that I didn't check that first. Richmond. On 15.06.2016 21:35, Dar Scott wrote: > I would very much like to be Indy disqualified. > > As to the error, it seems it has come up a few times in discussions over the years. > > Because of the word 'set', it feels like it has to do with too many lines in a script that is set in a standalone. But, I thought those limits had been removed. Just it case, scriptLimits() can be checked. It should be 0,0,0,0. > > Dar > > > >> On Jun 15, 2016, at 12:23 PM, Richmond wrote: >> >> Your income has probably just exceeded $500,000; after all, the Indy version of Livecode >> has a built-in income detector :P >> >> Richmond. >> >> On 15.06.2016 21:19, Dr. Hawkins wrote: >>> I am getting this error message. This should not be happening on an indy >>> license with more than a year left. >>> >>> For that matter, I have no idea what it means: >>> >>> Error description: set: license limit exceeded >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 15 15:15:46 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 15 Jun 2016 12:15:46 -0700 Subject: "Error description: set: license limit exceeded" In-Reply-To: <4B8B7ED5-E6F1-463B-8663-35A51B645F87@swcp.com> References: <57619D04.6030605@gmail.com> <4B8B7ED5-E6F1-463B-8663-35A51B645F87@swcp.com> Message-ID: On Wed, Jun 15, 2016 at 11:35 AM, Dar Scott wrote: > I would very much like to be Indy disqualified. > > Me too . . . a couple of years of that, and I'd retire. For that matter, that revenue would let me sell for enough to retire. Even given that my retirement needs have gone up now that I've driven a '27 Cadillac . . . As to the error, it seems it has come up a few times in discussions over > the years. > > Because of the word 'set', it feels like it has to do with too many lines > in a script that is set in a standalone. But, I thought those limits had > been removed. Just it case, scriptLimits() can be checked. It should be > 0,0,0,0. > That occurred to me--but there is nowhere in my code that sets a script! (that, and i'm in the IDI . . .) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dsc at swcp.com Wed Jun 15 15:20:30 2016 From: dsc at swcp.com (Dar Scott) Date: Wed, 15 Jun 2016 13:20:30 -0600 Subject: "Error description: set: license limit exceeded" In-Reply-To: <5761A94C.10204@gmail.com> References: <57619D04.6030605@gmail.com> <4B8B7ED5-E6F1-463B-8663-35A51B645F87@swcp.com> <5761A94C.10204@gmail.com> Message-ID: the scriptLimits() I think you should still be able to put it, just drop 'the' or the parentheses. > On Jun 15, 2016, at 1:15 PM, Richmond wrote: > > So, (swank, swank) I opened up LC 8.0.1 Indy and typed "put the" into the > Message box, then copy-pasted "scriptLimits()" across from your message, > at which point the Message box contained this: > > put the ?? > > I was unable to DELETE anything in the Message Box. > > which is both odd and problematic. > > So, stopping trying to be clever (!) I typed "put the scriptLimits()" > into the Message box and got: > > Script compile error: > Error description: Handler: bad command > > which is also not much use. > > I then opened LC 7.1.4 (because the Dictionary in Livecode 8.0.1 64-bit Linux is a non-starter) > and looked up "scriptLimits()" and read: > > Deprecated in Livecode 6.7. > > At which point I felt bl**dy silly that I didn't check that first. > > Richmond. > > > On 15.06.2016 21:35, Dar Scott wrote: >> I would very much like to be Indy disqualified. >> >> As to the error, it seems it has come up a few times in discussions over the years. >> >> Because of the word 'set', it feels like it has to do with too many lines in a script that is set in a standalone. But, I thought those limits had been removed. Just it case, scriptLimits() can be checked. It should be 0,0,0,0. >> >> Dar >> >> >> >>> On Jun 15, 2016, at 12:23 PM, Richmond wrote: >>> >>> Your income has probably just exceeded $500,000; after all, the Indy version of Livecode >>> has a built-in income detector :P >>> >>> Richmond. >>> >>> On 15.06.2016 21:19, Dr. Hawkins wrote: >>>> I am getting this error message. This should not be happening on an indy >>>> license with more than a year left. >>>> >>>> For that matter, I have no idea what it means: >>>> >>>> Error description: set: license limit exceeded >>>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > From dsc at swcp.com Wed Jun 15 15:24:45 2016 From: dsc at swcp.com (Dar Scott) Date: Wed, 15 Jun 2016 13:24:45 -0600 Subject: "Error description: set: license limit exceeded" In-Reply-To: References: <57619D04.6030605@gmail.com> <4B8B7ED5-E6F1-463B-8663-35A51B645F87@swcp.com> Message-ID: I think there is a random memory smashing error, based on the strange, but rare crashes and weird behavior reported recently. Try quitting and restarting LC. Otherwise, I'd look into script encryption. Or some rarely used feature involving scripts. > On Jun 15, 2016, at 1:15 PM, Dr. Hawkins wrote: > > On Wed, Jun 15, 2016 at 11:35 AM, Dar Scott wrote: > >> I would very much like to be Indy disqualified. >> >> > Me too . . . a couple of years of that, and I'd retire. > > For that matter, that revenue would let me sell for enough to retire. > > Even given that my retirement needs have gone up now that I've driven a '27 > Cadillac . . . > > As to the error, it seems it has come up a few times in discussions over >> the years. >> >> Because of the word 'set', it feels like it has to do with too many lines >> in a script that is set in a standalone. But, I thought those limits had >> been removed. Just it case, scriptLimits() can be checked. It should be >> 0,0,0,0. >> > > > That occurred to me--but there is nowhere in my code that sets a script! > (that, and i'm in the IDI . . .) > > -- > 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 richmondmathewson at gmail.com Wed Jun 15 15:26:05 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 15 Jun 2016 22:26:05 +0300 Subject: "Error description: set: license limit exceeded" In-Reply-To: <5761A94C.10204@gmail.com> References: <57619D04.6030605@gmail.com> <4B8B7ED5-E6F1-463B-8663-35A51B645F87@swcp.com> <5761A94C.10204@gmail.com> Message-ID: <5761ABCD.6060405@gmail.com> Bug 17859 On 15.06.2016 22:15, Richmond wrote: > So, (swank, swank) I opened up LC 8.0.1 Indy and typed "put the" into the > Message box, then copy-pasted "scriptLimits()" across from your message, > at which point the Message box contained this: > > put the ?? > > I was unable to DELETE anything in the Message Box. > > which is both odd and problematic. > > So, stopping trying to be clever (!) I typed "put the scriptLimits()" > into the Message box and got: > > Script compile error: > Error description: Handler: bad command > > which is also not much use. > > I then opened LC 7.1.4 (because the Dictionary in Livecode 8.0.1 > 64-bit Linux is a non-starter) > and looked up "scriptLimits()" and read: > > Deprecated in Livecode 6.7. > > At which point I felt bl**dy silly that I didn't check that first. > > Richmond. > > > On 15.06.2016 21:35, Dar Scott wrote: >> I would very much like to be Indy disqualified. >> >> As to the error, it seems it has come up a few times in discussions >> over the years. >> >> Because of the word 'set', it feels like it has to do with too many >> lines in a script that is set in a standalone. But, I thought those >> limits had been removed. Just it case, scriptLimits() can be >> checked. It should be 0,0,0,0. >> >> Dar >> >> >> >>> On Jun 15, 2016, at 12:23 PM, Richmond >>> wrote: >>> >>> Your income has probably just exceeded $500,000; after all, the Indy >>> version of Livecode >>> has a built-in income detector :P >>> >>> Richmond. >>> >>> On 15.06.2016 21:19, Dr. Hawkins wrote: >>>> I am getting this error message. This should not be happening on >>>> an indy >>>> license with more than a year left. >>>> >>>> For that matter, I have no idea what it means: >>>> >>>> Error description: set: license limit exceeded >>>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From jacques.hausser at unil.ch Wed Jun 15 15:28:37 2016 From: jacques.hausser at unil.ch (Jacques Hausser) Date: Wed, 15 Jun 2016 19:28:37 +0000 Subject: browser widget again In-Reply-To: References: <15554aa2f7a-4c6b-541c@webstg-m08.mail.aol.com> <42234EDF-ACC5-4187-84E1-9B9DE733113D@unil.ch> Message-ID: <113D0D6E-4D5D-4EB2-A707-CEEC6A2BB8C3@unil.ch> YESSS ! IT WORKS ! Many thanks, Mike ! But I?m very surprised: I don?t have to call my command ?getLoc? more than one time: after that, each time I change the location of my marker on the map, the value of tCoord (which is declared at the start of the script, that is, as ?global?) is modified, the function is triggered and the new coordinates are displayed in fld ?Result?. I do not understand why, actually. Nothing to do with my ?exportXYZ? javascript function, which was suppressed. My card script now contains: command getLoc do "liveCode.inputLoc(tCoord);" in widget "mapBrowser" end getLoc on inputLoc put param(1) into fld ?FResult" end inputLoc (it?s less general than your version, but I wanted just to check it) I still have to dig further away to understand how it works. But you made my day ! Jacques > Le 15 juin 2016 ? 20:25, Mike Bonner a ?crit : > > You said tcoord contains the information you want to return... > > I don't think you need to actually include the livecode function call in > your html, I'm pretty sure you can remove it entirely and do something like > this.. > > do "liveCode.inputLoc(tcoord)" in widget "Browser" and it will work. (It > did for me, its possible there are issues elsewhere in the javascript code) > > In this way you can define a single javascripthandler and have it hand back > any data you need. > > As a quick example, I set the htmltext of a widget to the following.. > > > > > > > > The ONLY thing in there as javascript is the declaration of tcoords > > Then from the message box I set a javascript handler to myJSHandler and > then.. > do "liveCode.myJSHandler(tcoords,'fred')" in widget 1 > > For my lc handler I used paramcount and param() to find out and show the > data that was passed out. > > command myjshandler > put empty > repeat with i = 1 to the paramcount > put param(i) & cr after msg > end repeat > end myjshandler > > As expected the message box displayed > 1,2,3 > fred > > You might be able to leverage this into some debugging ability. > > I did try a bunch of different ways to get things out (some that seemed > like they SHOULD work but didn't, causing an "error eveluating javascript" > error) > > It even seemed sometimes that a method that worked just a minute ago would > stop. (I'm so bad at javascript though, its no surprise i'm lost) > > > On Wed, Jun 15, 2016 at 10:38 AM, Jacques Hausser > wrote: > >> Still trying to use the browser widget and its javascripthandlers. I >> picked information here and there (many thanks to those who answered my >> previous mails, especially Mike) but really I would be glad to find a >> detailed user?s guide somewhere. I?m using a html file exploiting google >> map?s API as URL, and it works perfectly well with the old style browser. >> But I cannot grab the information I want with the new browser widget. >> Hereunder a simplified (and tested) example of what I tried for the old >> browser (successfully) and the widget browser (to no avail). >> >> ?????????????????????????????? >> old style browser: >> ?????????????????????????????? >> in the card script: >> >> command getLoc >> get revBrowserCallScript(LBrowserID,exportXYZ) >> put it into fld "FResult" >> end getLoc >> >> in the html file: >> >> function exportXYZ() >> //tCoord contains the ccordinates and altitude of the last point clicked >> { >> var vCoord = tCoord; >> return vCoord; >> } >> ?????????????????????????????? >> browser widget: >> ?????????????????????????????? >> in the card script: >> >> command getLoc >> do "exportXYZ();" in widget "mapBrowser" >> end mouseUp >> >> command inputLoc pCoord >> ?- this command?s name is in the list of javascripthandlers for my browser >> put pCoord into fld "FResult" >> end inputLoc >> >> in the html file: >> >> function exportXYZ() >> //tCoord contains the ccordinates and altitude of the last point clicked >> { >> var pCoord = tCoord; >> liveCode.inputLoc(pCoord); >> } >> ?????????????????????????????? >> >> the html file is exactly the same in both cases except for the change >> illustrated above. The map is displayed as expected in the browser widget, >> I can click any location to get a marker displayed and I can move to a new >> region with the following: >> >> ?????????????????????????????? >> in the card script: >> >> command newReg plat,plon,pzoom >> do "goToReg(plat,plon,pzoom);? in widget "mapBrowser" >> end mouseUp >> >> and in the htlm file: >> >> function goToReg(pLat,pLng,pZoom) >> { >> var newCenter = new google.maps.LatLng(pLat,pLng); >> tmap.setCenter(newCenter); >> var tZoom = parseInt(pZoom,10); >> tmap.setZoom(tZoom); >> } >> ?????????????????????????????? >> >> Thus ?do ? in widget? works; but I cannot fetch those damned coordinates >> with ?liveCode.inputLoc(pCoord);". How to make the javascriptHandlers to >> work ? >> >> PS: Mac 10.11.5, LC 8.0.2 rc2 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ****************************************** Prof. Jacques Hausser Department of Ecology and Evolution Biophore / Sorge University of Lausanne CH 1015 Lausanne please use my private address: 6 route de Burtigny CH-1269 Bassins tel: ++ 41 22 366 19 40 mobile: ++ 41 79 757 05 24 E-Mail: jacques.hausser at unil.ch ******************************************* From bonnmike at gmail.com Wed Jun 15 15:41:09 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 15 Jun 2016 13:41:09 -0600 Subject: browser widget again In-Reply-To: <113D0D6E-4D5D-4EB2-A707-CEEC6A2BB8C3@unil.ch> References: <15554aa2f7a-4c6b-541c@webstg-m08.mail.aol.com> <42234EDF-ACC5-4187-84E1-9B9DE733113D@unil.ch> <113D0D6E-4D5D-4EB2-A707-CEEC6A2BB8C3@unil.ch> Message-ID: Not sure I understand whats going on either, I'd probably have to see more code. @david.. I don't have time to try it right now, but I _THINK_ if you have an existing function in your page and you want to get the results of that function out, you can treat the function as a parameter to your livecode call. Meaning if you have defined a javascrpithandler named fred, and your page has a function named add() which takes 2 values to be added it will probably work do do this.. do "liveCode.fred(add(4,3))" in widget "browser" Hmm in fact, i'll try it now. Yep, it works fine. Just pop whatever existing function (that has a return value) that you want to get back out of the widget as a parameter to your javascripthandler call and poof. Out it comes. In my test I had this in the page.. And have registered myJSHandler as my livecode hook. Then this will get the results back out. do "liveCode.myJSHandler(add(1,2))" in widget 1 It uses the existing add function to add the 2 numbers passed in, and my generic handler displays 3 in the message box. On Wed, Jun 15, 2016 at 1:28 PM, Jacques Hausser wrote: > YESSS ! IT WORKS ! Many thanks, Mike ! > > But I?m very surprised: I don?t have to call my command ?getLoc? more than > one time: after that, each time I change the location of my marker on the > map, the value of tCoord (which is declared at the start of the script, > that is, as ?global?) is modified, the function is triggered and the new > coordinates are displayed in fld ?Result?. I do not understand why, > actually. Nothing to do with my ?exportXYZ? javascript function, which was > suppressed. My card script now contains: > > command getLoc > do "liveCode.inputLoc(tCoord);" in widget "mapBrowser" > end getLoc > > on inputLoc > put param(1) into fld ?FResult" > end inputLoc > > (it?s less general than your version, but I wanted just to check it) > > I still have to dig further away to understand how it works. But you made > my day ! > > Jacques > > > Le 15 juin 2016 ? 20:25, Mike Bonner a ?crit : > > > > You said tcoord contains the information you want to return... > > > > I don't think you need to actually include the livecode function call in > > your html, I'm pretty sure you can remove it entirely and do something > like > > this.. > > > > do "liveCode.inputLoc(tcoord)" in widget "Browser" and it will work. (It > > did for me, its possible there are issues elsewhere in the javascript > code) > > > > In this way you can define a single javascripthandler and have it hand > back > > any data you need. > > > > As a quick example, I set the htmltext of a widget to the following.. > > > > > > > > > > > > > > > > The ONLY thing in there as javascript is the declaration of tcoords > > > > Then from the message box I set a javascript handler to myJSHandler and > > then.. > > do "liveCode.myJSHandler(tcoords,'fred')" in widget 1 > > > > For my lc handler I used paramcount and param() to find out and show the > > data that was passed out. > > > > command myjshandler > > put empty > > repeat with i = 1 to the paramcount > > put param(i) & cr after msg > > end repeat > > end myjshandler > > > > As expected the message box displayed > > 1,2,3 > > fred > > > > You might be able to leverage this into some debugging ability. > > > > I did try a bunch of different ways to get things out (some that seemed > > like they SHOULD work but didn't, causing an "error eveluating > javascript" > > error) > > > > It even seemed sometimes that a method that worked just a minute ago > would > > stop. (I'm so bad at javascript though, its no surprise i'm lost) > > > > > > On Wed, Jun 15, 2016 at 10:38 AM, Jacques Hausser < > jacques.hausser at unil.ch> > > wrote: > > > >> Still trying to use the browser widget and its javascripthandlers. I > >> picked information here and there (many thanks to those who answered my > >> previous mails, especially Mike) but really I would be glad to find a > >> detailed user?s guide somewhere. I?m using a html file exploiting google > >> map?s API as URL, and it works perfectly well with the old style > browser. > >> But I cannot grab the information I want with the new browser widget. > >> Hereunder a simplified (and tested) example of what I tried for the old > >> browser (successfully) and the widget browser (to no avail). > >> > >> ?????????????????????????????? > >> old style browser: > >> ?????????????????????????????? > >> in the card script: > >> > >> command getLoc > >> get revBrowserCallScript(LBrowserID,exportXYZ) > >> put it into fld "FResult" > >> end getLoc > >> > >> in the html file: > >> > >> function exportXYZ() > >> //tCoord contains the ccordinates and altitude of the last point clicked > >> { > >> var vCoord = tCoord; > >> return vCoord; > >> } > >> ?????????????????????????????? > >> browser widget: > >> ?????????????????????????????? > >> in the card script: > >> > >> command getLoc > >> do "exportXYZ();" in widget "mapBrowser" > >> end mouseUp > >> > >> command inputLoc pCoord > >> ?- this command?s name is in the list of javascripthandlers for my > browser > >> put pCoord into fld "FResult" > >> end inputLoc > >> > >> in the html file: > >> > >> function exportXYZ() > >> //tCoord contains the ccordinates and altitude of the last point clicked > >> { > >> var pCoord = tCoord; > >> liveCode.inputLoc(pCoord); > >> } > >> ?????????????????????????????? > >> > >> the html file is exactly the same in both cases except for the change > >> illustrated above. The map is displayed as expected in the browser > widget, > >> I can click any location to get a marker displayed and I can move to a > new > >> region with the following: > >> > >> ?????????????????????????????? > >> in the card script: > >> > >> command newReg plat,plon,pzoom > >> do "goToReg(plat,plon,pzoom);? in widget "mapBrowser" > >> end mouseUp > >> > >> and in the htlm file: > >> > >> function goToReg(pLat,pLng,pZoom) > >> { > >> var newCenter = new google.maps.LatLng(pLat,pLng); > >> tmap.setCenter(newCenter); > >> var tZoom = parseInt(pZoom,10); > >> tmap.setZoom(tZoom); > >> } > >> ?????????????????????????????? > >> > >> Thus ?do ? in widget? works; but I cannot fetch those damned coordinates > >> with ?liveCode.inputLoc(pCoord);". How to make the javascriptHandlers to > >> work ? > >> > >> PS: Mac 10.11.5, LC 8.0.2 rc2 > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > ****************************************** > Prof. Jacques Hausser > Department of Ecology and Evolution > Biophore / Sorge > University of Lausanne > CH 1015 Lausanne > please use my private address: > 6 route de Burtigny > CH-1269 Bassins > tel: ++ 41 22 366 19 40 > mobile: ++ 41 79 757 05 24 > E-Mail: jacques.hausser at unil.ch > ******************************************* > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Wed Jun 15 15:42:03 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 15 Jun 2016 22:42:03 +0300 Subject: "Error description: set: license limit exceeded" In-Reply-To: References: <57619D04.6030605@gmail.com> <4B8B7ED5-E6F1-463B-8663-35A51B645F87@swcp.com> <5761A94C.10204@gmail.com> Message-ID: <5761AF8B.4090403@gmail.com> That's interesting; putting "put the scriptLimits" into the Message Box of LC 8.0.01 Indy yields 0,0,0,0. I *wonder why* the documentation says "deprecated"? Richmond. On 15.06.2016 22:20, Dar Scott wrote: > the scriptLimits() > > I think you should still be able to put it, just drop 'the' or the parentheses. Why does this sound vaguely 'porno'? > >> On Jun 15, 2016, at 1:15 PM, Richmond wrote: >> >> So, (swank, swank) I opened up LC 8.0.1 Indy and typed "put the" into the >> Message box, then copy-pasted "scriptLimits()" across from your message, >> at which point the Message box contained this: >> >> put the ?? >> >> I was unable to DELETE anything in the Message Box. >> >> which is both odd and problematic. >> >> So, stopping trying to be clever (!) I typed "put the scriptLimits()" >> into the Message box and got: >> >> Script compile error: >> Error description: Handler: bad command >> >> which is also not much use. >> >> I then opened LC 7.1.4 (because the Dictionary in Livecode 8.0.1 64-bit Linux is a non-starter) >> and looked up "scriptLimits()" and read: >> >> Deprecated in Livecode 6.7. >> >> At which point I felt bl**dy silly that I didn't check that first. >> >> Richmond. >> >> >> On 15.06.2016 21:35, Dar Scott wrote: >>> I would very much like to be Indy disqualified. >>> >>> As to the error, it seems it has come up a few times in discussions over the years. >>> >>> Because of the word 'set', it feels like it has to do with too many lines in a script that is set in a standalone. But, I thought those limits had been removed. Just it case, scriptLimits() can be checked. It should be 0,0,0,0. >>> >>> Dar >>> >>> >>> >>>> On Jun 15, 2016, at 12:23 PM, Richmond wrote: >>>> >>>> Your income has probably just exceeded $500,000; after all, the Indy version of Livecode >>>> has a built-in income detector :P >>>> >>>> Richmond. >>>> >>>> On 15.06.2016 21:19, Dr. Hawkins wrote: >>>>> I am getting this error message. This should not be happening on an indy >>>>> license with more than a year left. >>>>> >>>>> For that matter, I have no idea what it means: >>>>> >>>>> Error description: set: license limit exceeded >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 15 15:52:15 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 15 Jun 2016 13:52:15 -0600 Subject: browser widget again In-Reply-To: References: <15554aa2f7a-4c6b-541c@webstg-m08.mail.aol.com> <42234EDF-ACC5-4187-84E1-9B9DE733113D@unil.ch> <113D0D6E-4D5D-4EB2-A707-CEEC6A2BB8C3@unil.ch> Message-ID: Hey, when the var tcoord is declared and/or set its value, how do you do it? If you bring up the message watcher, after grabbing your return value it once, does it continue spamming your livecode handler? I have the inkling of a theory.. On Wed, Jun 15, 2016 at 1:41 PM, Mike Bonner wrote: > Not sure I understand whats going on either, I'd probably have to see more > code. > > @david.. I don't have time to try it right now, but I _THINK_ if you have > an existing function in your page and you want to get the results of that > function out, you can treat the function as a parameter to your livecode > call. > > Meaning if you have defined a javascrpithandler named fred, and your page > has a function named add() which takes 2 values to be added it will > probably work do do this.. > > do "liveCode.fred(add(4,3))" in widget "browser" > > Hmm in fact, i'll try it now. > > Yep, it works fine. Just pop whatever existing function (that has a return > value) that you want to get back out of the widget as a parameter to your > javascripthandler call and poof. Out it comes. > > In my test I had this in the page.. > > > > > > > > And have registered myJSHandler as my livecode hook. > > Then this will get the results back out. > do "liveCode.myJSHandler(add(1,2))" in widget 1 > It uses the existing add function to add the 2 numbers passed in, and my > generic handler displays 3 in the message box. > > > On Wed, Jun 15, 2016 at 1:28 PM, Jacques Hausser > wrote: > >> YESSS ! IT WORKS ! Many thanks, Mike ! >> >> But I?m very surprised: I don?t have to call my command ?getLoc? more >> than one time: after that, each time I change the location of my marker on >> the map, the value of tCoord (which is declared at the start of the script, >> that is, as ?global?) is modified, the function is triggered and the new >> coordinates are displayed in fld ?Result?. I do not understand why, >> actually. Nothing to do with my ?exportXYZ? javascript function, which was >> suppressed. My card script now contains: >> >> command getLoc >> do "liveCode.inputLoc(tCoord);" in widget "mapBrowser" >> end getLoc >> >> on inputLoc >> put param(1) into fld ?FResult" >> end inputLoc >> >> (it?s less general than your version, but I wanted just to check it) >> >> I still have to dig further away to understand how it works. But you made >> my day ! >> >> Jacques >> >> > Le 15 juin 2016 ? 20:25, Mike Bonner a ?crit : >> > >> > You said tcoord contains the information you want to return... >> > >> > I don't think you need to actually include the livecode function call in >> > your html, I'm pretty sure you can remove it entirely and do something >> like >> > this.. >> > >> > do "liveCode.inputLoc(tcoord)" in widget "Browser" and it will work. >> (It >> > did for me, its possible there are issues elsewhere in the javascript >> code) >> > >> > In this way you can define a single javascripthandler and have it hand >> back >> > any data you need. >> > >> > As a quick example, I set the htmltext of a widget to the following.. >> > >> > >> > >> > >> > >> > >> > >> > The ONLY thing in there as javascript is the declaration of tcoords >> > >> > Then from the message box I set a javascript handler to myJSHandler and >> > then.. >> > do "liveCode.myJSHandler(tcoords,'fred')" in widget 1 >> > >> > For my lc handler I used paramcount and param() to find out and show the >> > data that was passed out. >> > >> > command myjshandler >> > put empty >> > repeat with i = 1 to the paramcount >> > put param(i) & cr after msg >> > end repeat >> > end myjshandler >> > >> > As expected the message box displayed >> > 1,2,3 >> > fred >> > >> > You might be able to leverage this into some debugging ability. >> > >> > I did try a bunch of different ways to get things out (some that seemed >> > like they SHOULD work but didn't, causing an "error eveluating >> javascript" >> > error) >> > >> > It even seemed sometimes that a method that worked just a minute ago >> would >> > stop. (I'm so bad at javascript though, its no surprise i'm lost) >> > >> > >> > On Wed, Jun 15, 2016 at 10:38 AM, Jacques Hausser < >> jacques.hausser at unil.ch> >> > wrote: >> > >> >> Still trying to use the browser widget and its javascripthandlers. I >> >> picked information here and there (many thanks to those who answered my >> >> previous mails, especially Mike) but really I would be glad to find a >> >> detailed user?s guide somewhere. I?m using a html file exploiting >> google >> >> map?s API as URL, and it works perfectly well with the old style >> browser. >> >> But I cannot grab the information I want with the new browser widget. >> >> Hereunder a simplified (and tested) example of what I tried for the old >> >> browser (successfully) and the widget browser (to no avail). >> >> >> >> ?????????????????????????????? >> >> old style browser: >> >> ?????????????????????????????? >> >> in the card script: >> >> >> >> command getLoc >> >> get revBrowserCallScript(LBrowserID,exportXYZ) >> >> put it into fld "FResult" >> >> end getLoc >> >> >> >> in the html file: >> >> >> >> function exportXYZ() >> >> //tCoord contains the ccordinates and altitude of the last point >> clicked >> >> { >> >> var vCoord = tCoord; >> >> return vCoord; >> >> } >> >> ?????????????????????????????? >> >> browser widget: >> >> ?????????????????????????????? >> >> in the card script: >> >> >> >> command getLoc >> >> do "exportXYZ();" in widget "mapBrowser" >> >> end mouseUp >> >> >> >> command inputLoc pCoord >> >> ?- this command?s name is in the list of javascripthandlers for my >> browser >> >> put pCoord into fld "FResult" >> >> end inputLoc >> >> >> >> in the html file: >> >> >> >> function exportXYZ() >> >> //tCoord contains the ccordinates and altitude of the last point >> clicked >> >> { >> >> var pCoord = tCoord; >> >> liveCode.inputLoc(pCoord); >> >> } >> >> ?????????????????????????????? >> >> >> >> the html file is exactly the same in both cases except for the change >> >> illustrated above. The map is displayed as expected in the browser >> widget, >> >> I can click any location to get a marker displayed and I can move to a >> new >> >> region with the following: >> >> >> >> ?????????????????????????????? >> >> in the card script: >> >> >> >> command newReg plat,plon,pzoom >> >> do "goToReg(plat,plon,pzoom);? in widget "mapBrowser" >> >> end mouseUp >> >> >> >> and in the htlm file: >> >> >> >> function goToReg(pLat,pLng,pZoom) >> >> { >> >> var newCenter = new google.maps.LatLng(pLat,pLng); >> >> tmap.setCenter(newCenter); >> >> var tZoom = parseInt(pZoom,10); >> >> tmap.setZoom(tZoom); >> >> } >> >> ?????????????????????????????? >> >> >> >> Thus ?do ? in widget? works; but I cannot fetch those damned >> coordinates >> >> with ?liveCode.inputLoc(pCoord);". How to make the javascriptHandlers >> to >> >> work ? >> >> >> >> PS: Mac 10.11.5, LC 8.0.2 rc2 >> >> >> >> >> >> _______________________________________________ >> >> use-livecode mailing list >> >> use-livecode at lists.runrev.com >> >> Please visit this url to subscribe, unsubscribe and manage your >> >> subscription preferences: >> >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at lists.runrev.com >> > Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> >> ****************************************** >> Prof. Jacques Hausser >> Department of Ecology and Evolution >> Biophore / Sorge >> University of Lausanne >> CH 1015 Lausanne >> please use my private address: >> 6 route de Burtigny >> CH-1269 Bassins >> tel: ++ 41 22 366 19 40 >> mobile: ++ 41 79 757 05 24 >> E-Mail: jacques.hausser at unil.ch >> ******************************************* >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From bonnmike at gmail.com Wed Jun 15 16:04:59 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 15 Jun 2016 14:04:59 -0600 Subject: "Error description: set: license limit exceeded" In-Reply-To: <5761AF8B.4090403@gmail.com> References: <57619D04.6030605@gmail.com> <4B8B7ED5-E6F1-463B-8663-35A51B645F87@swcp.com> <5761A94C.10204@gmail.com> <5761AF8B.4090403@gmail.com> Message-ID: Deprecated doesn't mean removed. In this case, it looks like the code is still there, but limits set to 0 (IE infinite) Kinda surprised the code is still there though, doesn't seem like it would be needed for backwards compatability. Of course excising it would (probably?) be far more than a just a snip snip snip. On Wed, Jun 15, 2016 at 1:42 PM, Richmond wrote: > That's interesting; putting "put the scriptLimits" into the Message Box of > LC 8.0.01 Indy yields 0,0,0,0. > > I *wonder why* the documentation says "deprecated"? > > Richmond. > > On 15.06.2016 22:20, Dar Scott wrote: > >> the scriptLimits() >> >> I think you should still be able to put it, just drop 'the' or the >> parentheses. >> > > Why does this sound vaguely 'porno'? > > > >> On Jun 15, 2016, at 1:15 PM, Richmond >>> wrote: >>> >>> So, (swank, swank) I opened up LC 8.0.1 Indy and typed "put the" into the >>> Message box, then copy-pasted "scriptLimits()" across from your message, >>> at which point the Message box contained this: >>> >>> put the ?? >>> >>> I was unable to DELETE anything in the Message Box. >>> >>> which is both odd and problematic. >>> >>> So, stopping trying to be clever (!) I typed "put the scriptLimits()" >>> into the Message box and got: >>> >>> Script compile error: >>> Error description: Handler: bad command >>> >>> which is also not much use. >>> >>> I then opened LC 7.1.4 (because the Dictionary in Livecode 8.0.1 64-bit >>> Linux is a non-starter) >>> and looked up "scriptLimits()" and read: >>> >>> Deprecated in Livecode 6.7. >>> >>> At which point I felt bl**dy silly that I didn't check that first. >>> >>> Richmond. >>> >>> >>> On 15.06.2016 21:35, Dar Scott wrote: >>> >>>> I would very much like to be Indy disqualified. >>>> >>>> As to the error, it seems it has come up a few times in discussions >>>> over the years. >>>> >>>> Because of the word 'set', it feels like it has to do with too many >>>> lines in a script that is set in a standalone. But, I thought those limits >>>> had been removed. Just it case, scriptLimits() can be checked. It should >>>> be 0,0,0,0. >>>> >>>> Dar >>>> >>>> >>>> >>>> On Jun 15, 2016, at 12:23 PM, Richmond >>>>> wrote: >>>>> >>>>> Your income has probably just exceeded $500,000; after all, the Indy >>>>> version of Livecode >>>>> has a built-in income detector :P >>>>> >>>>> Richmond. >>>>> >>>>> On 15.06.2016 21:19, Dr. Hawkins wrote: >>>>> >>>>>> I am getting this error message. This should not be happening on an >>>>>> indy >>>>>> license with more than a year left. >>>>>> >>>>>> For that matter, I have no idea what it means: >>>>>> >>>>>> Error description: set: license limit exceeded >>>>>> >>>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 15 16:16:16 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 15 Jun 2016 23:16:16 +0300 Subject: "Error description: set: license limit exceeded" In-Reply-To: References: <57619D04.6030605@gmail.com> <4B8B7ED5-E6F1-463B-8663-35A51B645F87@swcp.com> <5761A94C.10204@gmail.com> <5761AF8B.4090403@gmail.com> Message-ID: <5761B790.5010704@gmail.com> That "snip snip snip" also sounds unfortunate :/ I thought I knew what "deprecated" meant - gone, dead, no more. Obviously it means something a bit more subtle; well, at least in the Livecode Universe. If "deprecated" here means that it has been replaced by something else (?) it would be nice to know what the something else is. Richmond. On 15.06.2016 23:04, Mike Bonner wrote: > Deprecated doesn't mean removed. In this case, it looks like the code is > still there, but limits set to 0 (IE infinite) Kinda surprised the code is > still there though, doesn't seem like it would be needed for backwards > compatability. Of course excising it would (probably?) be far more than a > just a snip snip snip. > > On Wed, Jun 15, 2016 at 1:42 PM, Richmond > wrote: > >> That's interesting; putting "put the scriptLimits" into the Message Box of >> LC 8.0.01 Indy yields 0,0,0,0. >> >> I *wonder why* the documentation says "deprecated"? >> >> Richmond. >> >> On 15.06.2016 22:20, Dar Scott wrote: >> >>> the scriptLimits() >>> >>> I think you should still be able to put it, just drop 'the' or the >>> parentheses. >>> >> Why does this sound vaguely 'porno'? >> >> >> >>> On Jun 15, 2016, at 1:15 PM, Richmond >>>> wrote: >>>> >>>> So, (swank, swank) I opened up LC 8.0.1 Indy and typed "put the" into the >>>> Message box, then copy-pasted "scriptLimits()" across from your message, >>>> at which point the Message box contained this: >>>> >>>> put the ?? >>>> >>>> I was unable to DELETE anything in the Message Box. >>>> >>>> which is both odd and problematic. >>>> >>>> So, stopping trying to be clever (!) I typed "put the scriptLimits()" >>>> into the Message box and got: >>>> >>>> Script compile error: >>>> Error description: Handler: bad command >>>> >>>> which is also not much use. >>>> >>>> I then opened LC 7.1.4 (because the Dictionary in Livecode 8.0.1 64-bit >>>> Linux is a non-starter) >>>> and looked up "scriptLimits()" and read: >>>> >>>> Deprecated in Livecode 6.7. >>>> >>>> At which point I felt bl**dy silly that I didn't check that first. >>>> >>>> Richmond. >>>> >>>> >>>> On 15.06.2016 21:35, Dar Scott wrote: >>>> >>>>> I would very much like to be Indy disqualified. >>>>> >>>>> As to the error, it seems it has come up a few times in discussions >>>>> over the years. >>>>> >>>>> Because of the word 'set', it feels like it has to do with too many >>>>> lines in a script that is set in a standalone. But, I thought those limits >>>>> had been removed. Just it case, scriptLimits() can be checked. It should >>>>> be 0,0,0,0. >>>>> >>>>> Dar >>>>> >>>>> >>>>> >>>>> On Jun 15, 2016, at 12:23 PM, Richmond >>>>>> wrote: >>>>>> >>>>>> Your income has probably just exceeded $500,000; after all, the Indy >>>>>> version of Livecode >>>>>> has a built-in income detector :P >>>>>> >>>>>> Richmond. >>>>>> >>>>>> On 15.06.2016 21:19, Dr. Hawkins wrote: >>>>>> >>>>>>> I am getting this error message. This should not be happening on an >>>>>>> indy >>>>>>> license with more than a year left. >>>>>>> >>>>>>> For that matter, I have no idea what it means: >>>>>>> >>>>>>> Error description: set: license limit exceeded >>>>>>> >>>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Wed Jun 15 16:16:17 2016 From: dsc at swcp.com (Dar Scott) Date: Wed, 15 Jun 2016 14:16:17 -0600 Subject: "Error description: set: license limit exceeded" In-Reply-To: References: <57619D04.6030605@gmail.com> <4B8B7ED5-E6F1-463B-8663-35A51B645F87@swcp.com> <5761A94C.10204@gmail.com> <5761AF8B.4090403@gmail.com> Message-ID: <3A9A83BE-7FF8-425A-8172-17559D8333C4@swcp.com> The function should stick around for a little bit because some old scripts might still check. The generation of the error is strange, though--that may indicate a need for some snipping. I suspect there is a check that never succeeds, but never has somehow occurred. Just for fun: https://en.wikipedia.org/wiki/Deprecation > On Jun 15, 2016, at 2:04 PM, Mike Bonner wrote: > > Deprecated doesn't mean removed. In this case, it looks like the code is > still there, but limits set to 0 (IE infinite) Kinda surprised the code is > still there though, doesn't seem like it would be needed for backwards > compatability. Of course excising it would (probably?) be far more than a > just a snip snip snip. > > On Wed, Jun 15, 2016 at 1:42 PM, Richmond > wrote: > >> That's interesting; putting "put the scriptLimits" into the Message Box of >> LC 8.0.01 Indy yields 0,0,0,0. >> >> I *wonder why* the documentation says "deprecated"? >> >> Richmond. >> >> On 15.06.2016 22:20, Dar Scott wrote: >> >>> the scriptLimits() >>> >>> I think you should still be able to put it, just drop 'the' or the >>> parentheses. >>> >> >> Why does this sound vaguely 'porno'? >> >> >> >>> On Jun 15, 2016, at 1:15 PM, Richmond >>>> wrote: >>>> >>>> So, (swank, swank) I opened up LC 8.0.1 Indy and typed "put the" into the >>>> Message box, then copy-pasted "scriptLimits()" across from your message, >>>> at which point the Message box contained this: >>>> >>>> put the ?? >>>> >>>> I was unable to DELETE anything in the Message Box. >>>> >>>> which is both odd and problematic. >>>> >>>> So, stopping trying to be clever (!) I typed "put the scriptLimits()" >>>> into the Message box and got: >>>> >>>> Script compile error: >>>> Error description: Handler: bad command >>>> >>>> which is also not much use. >>>> >>>> I then opened LC 7.1.4 (because the Dictionary in Livecode 8.0.1 64-bit >>>> Linux is a non-starter) >>>> and looked up "scriptLimits()" and read: >>>> >>>> Deprecated in Livecode 6.7. >>>> >>>> At which point I felt bl**dy silly that I didn't check that first. >>>> >>>> Richmond. >>>> >>>> >>>> On 15.06.2016 21:35, Dar Scott wrote: >>>> >>>>> I would very much like to be Indy disqualified. >>>>> >>>>> As to the error, it seems it has come up a few times in discussions >>>>> over the years. >>>>> >>>>> Because of the word 'set', it feels like it has to do with too many >>>>> lines in a script that is set in a standalone. But, I thought those limits >>>>> had been removed. Just it case, scriptLimits() can be checked. It should >>>>> be 0,0,0,0. >>>>> >>>>> Dar >>>>> >>>>> >>>>> >>>>> On Jun 15, 2016, at 12:23 PM, Richmond >>>>>> wrote: >>>>>> >>>>>> Your income has probably just exceeded $500,000; after all, the Indy >>>>>> version of Livecode >>>>>> has a built-in income detector :P >>>>>> >>>>>> Richmond. >>>>>> >>>>>> On 15.06.2016 21:19, Dr. Hawkins wrote: >>>>>> >>>>>>> I am getting this error message. This should not be happening on an >>>>>>> indy >>>>>>> license with more than a year left. >>>>>>> >>>>>>> For that matter, I have no idea what it means: >>>>>>> >>>>>>> Error description: set: license limit exceeded >>>>>>> >>>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 15 16:16:38 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 15 Jun 2016 16:16:38 -0400 Subject: [OT-ish] WWDC things of interest In-Reply-To: References: <08FEEB28-2DEA-475D-AB93-38CA7ED626AC@gmail.com> <57602E01.8040908@fourthworld.com> <1466005296858-4705802.post@n4.nabble.com> Message-ID: Apple says every ios connection must be encrypted by YE 2016 http://www.zdnet.com/article/wwdc-2016-apple-ramps-up-privacy-now-all-ios-apps-must-encrypt-web-connections-by-year-end/?ftag=TRE17cfd61&bhid=21150576046427068198636522512581 On Wed, Jun 15, 2016 at 2:17 PM, Lagi Pittas wrote: > I second that emotion - (or is it third) > > I've been harping on about this for over a year now - LiveCodeTowers > should be putting libraries and courses in the Indy and Business licence > that is useful to the Foxpro, Clipper,Delphi,Dbase,Paradox ,VB6, Omnis and > dare I say it Filemaker people. > > Without wishing to flog a dead horse - you are trying to attract people to > write apps for IOS but they can't actually do that without an expensive > licence - oh its free but you can't write Apps for IOS or the Apple store. > Compare with "Here's a free car, the windows work the horn works - > everything works all you need is an engine." > > I would be mighty pissed to find out after I had spent hours learning to > "write Apps" I couldn't deploy my "Crappy Bird" clone that isn't gonna make > me any money anyway. > > A developer who has clientele for Business critical applications that > earns thousands will see the value. If you want everyone to learn to > program (whatever that means) they can do it with the free one and then > they decide thats it's too expensive afterwards - you have still lost a > sale. I have 2 enterprise versions of B4A and B4I just incase there is > something I can't do in LIvecode - hasn't happened yet and I think when V8 > is a little more progressed it probably won't but always have a plan B. > > Now if you had 2 paid for options for IOS and Android - Separate versions ) > at a commensurate price to Apples Developer Tax you would get the numbers > who would then have a chance of gravitating to the "Full Fat" version of > livecode. > > > Sorry I'm talking to myself again. > > > > Lagi > > > On 15 June 2016 at 16:41, tbodine wrote: > > > Richard Gaskin wrote > > > Even if we develop on Mac or Linux, the majority of most of our income > > > comes from Windows users, and our income is what enables LC's income. > > > > > > The Mac audience may be two to three times larger than Linux, but both > > > are niches compared to the 86% using Windows. > > > > Richard makes a very important point here. I agree and wish to echo it. > > > > -- Tom Bodine > > > > > > > > -- > > View this message in context: > > > http://runtime-revolution.278305.n4.nabble.com/OT-ish-WWDC-things-of-interest-tp4705724p4705802.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 richmondmathewson at gmail.com Wed Jun 15 16:19:06 2016 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 15 Jun 2016 23:19:06 +0300 Subject: "Error description: set: license limit exceeded" In-Reply-To: <3A9A83BE-7FF8-425A-8172-17559D8333C4@swcp.com> References: <57619D04.6030605@gmail.com> <4B8B7ED5-E6F1-463B-8663-35A51B645F87@swcp.com> <5761A94C.10204@gmail.com> <5761AF8B.4090403@gmail.com> <3A9A83BE-7FF8-425A-8172-17559D8333C4@swcp.com> Message-ID: <5761B83A.3000102@gmail.com> That's a bit semantically slithery . . . Richmond. On 15.06.2016 23:16, Dar Scott wrote: > The function should stick around for a little bit because some old scripts might still check. > > The generation of the error is strange, though--that may indicate a need for some snipping. I suspect there is a check that never succeeds, but never has somehow occurred. > > Just for fun: > https://en.wikipedia.org/wiki/Deprecation > > >> On Jun 15, 2016, at 2:04 PM, Mike Bonner wrote: >> >> Deprecated doesn't mean removed. In this case, it looks like the code is >> still there, but limits set to 0 (IE infinite) Kinda surprised the code is >> still there though, doesn't seem like it would be needed for backwards >> compatability. Of course excising it would (probably?) be far more than a >> just a snip snip snip. >> >> On Wed, Jun 15, 2016 at 1:42 PM, Richmond >> wrote: >> >>> That's interesting; putting "put the scriptLimits" into the Message Box of >>> LC 8.0.01 Indy yields 0,0,0,0. >>> >>> I *wonder why* the documentation says "deprecated"? >>> >>> Richmond. >>> >>> On 15.06.2016 22:20, Dar Scott wrote: >>> >>>> the scriptLimits() >>>> >>>> I think you should still be able to put it, just drop 'the' or the >>>> parentheses. >>>> >>> Why does this sound vaguely 'porno'? >>> >>> >>> >>>> On Jun 15, 2016, at 1:15 PM, Richmond >>>>> wrote: >>>>> >>>>> So, (swank, swank) I opened up LC 8.0.1 Indy and typed "put the" into the >>>>> Message box, then copy-pasted "scriptLimits()" across from your message, >>>>> at which point the Message box contained this: >>>>> >>>>> put the ?? >>>>> >>>>> I was unable to DELETE anything in the Message Box. >>>>> >>>>> which is both odd and problematic. >>>>> >>>>> So, stopping trying to be clever (!) I typed "put the scriptLimits()" >>>>> into the Message box and got: >>>>> >>>>> Script compile error: >>>>> Error description: Handler: bad command >>>>> >>>>> which is also not much use. >>>>> >>>>> I then opened LC 7.1.4 (because the Dictionary in Livecode 8.0.1 64-bit >>>>> Linux is a non-starter) >>>>> and looked up "scriptLimits()" and read: >>>>> >>>>> Deprecated in Livecode 6.7. >>>>> >>>>> At which point I felt bl**dy silly that I didn't check that first. >>>>> >>>>> Richmond. >>>>> >>>>> >>>>> On 15.06.2016 21:35, Dar Scott wrote: >>>>> >>>>>> I would very much like to be Indy disqualified. >>>>>> >>>>>> As to the error, it seems it has come up a few times in discussions >>>>>> over the years. >>>>>> >>>>>> Because of the word 'set', it feels like it has to do with too many >>>>>> lines in a script that is set in a standalone. But, I thought those limits >>>>>> had been removed. Just it case, scriptLimits() can be checked. It should >>>>>> be 0,0,0,0. >>>>>> >>>>>> Dar >>>>>> >>>>>> >>>>>> >>>>>> On Jun 15, 2016, at 12:23 PM, Richmond >>>>>>> wrote: >>>>>>> >>>>>>> Your income has probably just exceeded $500,000; after all, the Indy >>>>>>> version of Livecode >>>>>>> has a built-in income detector :P >>>>>>> >>>>>>> Richmond. >>>>>>> >>>>>>> On 15.06.2016 21:19, Dr. Hawkins wrote: >>>>>>> >>>>>>>> I am getting this error message. This should not be happening on an >>>>>>>> indy >>>>>>>> license with more than a year left. >>>>>>>> >>>>>>>> For that matter, I have no idea what it means: >>>>>>>> >>>>>>>> Error description: set: license limit exceeded >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>> subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 15 16:19:20 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 15 Jun 2016 16:19:20 -0400 Subject: [OT-ish] WWDC things of interest In-Reply-To: References: <08FEEB28-2DEA-475D-AB93-38CA7ED626AC@gmail.com> <57602E01.8040908@fourthworld.com> <1466005296858-4705802.post@n4.nabble.com> Message-ID: And I think what all of us want is more, faster. On Wed, Jun 15, 2016 at 4:16 PM, Mike Kerner wrote: > Apple says every ios connection must be encrypted by YE 2016 > > http://www.zdnet.com/article/wwdc-2016-apple-ramps-up-privacy-now-all-ios-apps-must-encrypt-web-connections-by-year-end/?ftag=TRE17cfd61&bhid=21150576046427068198636522512581 > > On Wed, Jun 15, 2016 at 2:17 PM, Lagi Pittas wrote: > >> I second that emotion - (or is it third) >> >> I've been harping on about this for over a year now - LiveCodeTowers >> should be putting libraries and courses in the Indy and Business licence >> that is useful to the Foxpro, Clipper,Delphi,Dbase,Paradox ,VB6, Omnis and >> dare I say it Filemaker people. >> >> Without wishing to flog a dead horse - you are trying to attract people to >> write apps for IOS but they can't actually do that without an expensive >> licence - oh its free but you can't write Apps for IOS or the Apple store. >> Compare with "Here's a free car, the windows work the horn works - >> everything works all you need is an engine." >> >> I would be mighty pissed to find out after I had spent hours learning to >> "write Apps" I couldn't deploy my "Crappy Bird" clone that isn't gonna >> make >> me any money anyway. >> >> A developer who has clientele for Business critical applications that >> earns thousands will see the value. If you want everyone to learn to >> program (whatever that means) they can do it with the free one and then >> they decide thats it's too expensive afterwards - you have still lost a >> sale. I have 2 enterprise versions of B4A and B4I just incase there is >> something I can't do in LIvecode - hasn't happened yet and I think when V8 >> is a little more progressed it probably won't but always have a plan B. >> >> Now if you had 2 paid for options for IOS and Android - Separate versions >> ) >> at a commensurate price to Apples Developer Tax you would get the numbers >> who would then have a chance of gravitating to the "Full Fat" version of >> livecode. >> >> >> Sorry I'm talking to myself again. >> >> >> >> Lagi >> >> >> On 15 June 2016 at 16:41, tbodine wrote: >> >> > Richard Gaskin wrote >> > > Even if we develop on Mac or Linux, the majority of most of our income >> > > comes from Windows users, and our income is what enables LC's income. >> > > >> > > The Mac audience may be two to three times larger than Linux, but both >> > > are niches compared to the 86% using Windows. >> > >> > Richard makes a very important point here. I agree and wish to echo it. >> > >> > -- Tom Bodine >> > >> > >> > >> > -- >> > View this message in context: >> > >> http://runtime-revolution.278305.n4.nabble.com/OT-ish-WWDC-things-of-interest-tp4705724p4705802.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." > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From bonnmike at gmail.com Wed Jun 15 16:32:37 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 15 Jun 2016 14:32:37 -0600 Subject: "Error description: set: license limit exceeded" In-Reply-To: <5761B83A.3000102@gmail.com> References: <57619D04.6030605@gmail.com> <4B8B7ED5-E6F1-463B-8663-35A51B645F87@swcp.com> <5761A94C.10204@gmail.com> <5761AF8B.4090403@gmail.com> <3A9A83BE-7FF8-425A-8172-17559D8333C4@swcp.com> <5761B83A.3000102@gmail.com> Message-ID: Deprecated in this case means pointless since checking the limits shows that there aren't any. Usually the connotation is "discouraged" as in they'd rather you not use it but its still there for whatever reason. (as dar points out, some older scripts might check it and they might break if it were removed) I guess its possible that all the scriptlimits code that keeps you from doing more than intended WAS cleaned up and removed, and all thats left is a function that always returns 0,0,0,0. On Wed, Jun 15, 2016 at 2:19 PM, Richmond wrote: > That's a bit semantically slithery . . . > > Richmond. > > > On 15.06.2016 23:16, Dar Scott wrote: > >> The function should stick around for a little bit because some old >> scripts might still check. >> >> The generation of the error is strange, though--that may indicate a need >> for some snipping. I suspect there is a check that never succeeds, but >> never has somehow occurred. >> >> Just for fun: >> https://en.wikipedia.org/wiki/Deprecation >> >> >> On Jun 15, 2016, at 2:04 PM, Mike Bonner wrote: >>> >>> Deprecated doesn't mean removed. In this case, it looks like the code is >>> still there, but limits set to 0 (IE infinite) Kinda surprised the code >>> is >>> still there though, doesn't seem like it would be needed for backwards >>> compatability. Of course excising it would (probably?) be far more than a >>> just a snip snip snip. >>> >>> On Wed, Jun 15, 2016 at 1:42 PM, Richmond >>> wrote: >>> >>> That's interesting; putting "put the scriptLimits" into the Message Box >>>> of >>>> LC 8.0.01 Indy yields 0,0,0,0. >>>> >>>> I *wonder why* the documentation says "deprecated"? >>>> >>>> Richmond. >>>> >>>> On 15.06.2016 22:20, Dar Scott wrote: >>>> >>>> the scriptLimits() >>>>> >>>>> I think you should still be able to put it, just drop 'the' or the >>>>> parentheses. >>>>> >>>>> Why does this sound vaguely 'porno'? >>>> >>>> >>>> >>>> On Jun 15, 2016, at 1:15 PM, Richmond >>>>> >>>>>> wrote: >>>>>> >>>>>> So, (swank, swank) I opened up LC 8.0.1 Indy and typed "put the" into >>>>>> the >>>>>> Message box, then copy-pasted "scriptLimits()" across from your >>>>>> message, >>>>>> at which point the Message box contained this: >>>>>> >>>>>> put the ?? >>>>>> >>>>>> I was unable to DELETE anything in the Message Box. >>>>>> >>>>>> which is both odd and problematic. >>>>>> >>>>>> So, stopping trying to be clever (!) I typed "put the scriptLimits()" >>>>>> into the Message box and got: >>>>>> >>>>>> Script compile error: >>>>>> Error description: Handler: bad command >>>>>> >>>>>> which is also not much use. >>>>>> >>>>>> I then opened LC 7.1.4 (because the Dictionary in Livecode 8.0.1 >>>>>> 64-bit >>>>>> Linux is a non-starter) >>>>>> and looked up "scriptLimits()" and read: >>>>>> >>>>>> Deprecated in Livecode 6.7. >>>>>> >>>>>> At which point I felt bl**dy silly that I didn't check that first. >>>>>> >>>>>> Richmond. >>>>>> >>>>>> >>>>>> On 15.06.2016 21:35, Dar Scott wrote: >>>>>> >>>>>> I would very much like to be Indy disqualified. >>>>>>> >>>>>>> As to the error, it seems it has come up a few times in discussions >>>>>>> over the years. >>>>>>> >>>>>>> Because of the word 'set', it feels like it has to do with too many >>>>>>> lines in a script that is set in a standalone. But, I thought those >>>>>>> limits >>>>>>> had been removed. Just it case, scriptLimits() can be checked. It >>>>>>> should >>>>>>> be 0,0,0,0. >>>>>>> >>>>>>> Dar >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Jun 15, 2016, at 12:23 PM, Richmond >>>>>>> >>>>>>>> wrote: >>>>>>>> >>>>>>>> Your income has probably just exceeded $500,000; after all, the Indy >>>>>>>> version of Livecode >>>>>>>> has a built-in income detector :P >>>>>>>> >>>>>>>> Richmond. >>>>>>>> >>>>>>>> On 15.06.2016 21:19, Dr. Hawkins wrote: >>>>>>>> >>>>>>>> I am getting this error message. This should not be happening on an >>>>>>>>> indy >>>>>>>>> license with more than a year left. >>>>>>>>> >>>>>>>>> For that matter, I have no idea what it means: >>>>>>>>> >>>>>>>>> Error description: set: license limit exceeded >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> >>>>>>>> use-livecode mailing list >>>>>>>> use-livecode at lists.runrev.com >>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>> subscription preferences: >>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>> subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 15 16:45:52 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 15 Jun 2016 15:45:52 -0500 Subject: "Error description: set: license limit exceeded" In-Reply-To: <5761B790.5010704@gmail.com> References: <57619D04.6030605@gmail.com> <4B8B7ED5-E6F1-463B-8663-35A51B645F87@swcp.com> <5761A94C.10204@gmail.com> <5761AF8B.4090403@gmail.com> <5761B790.5010704@gmail.com> Message-ID: <15555d02400.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Deprecated doesn't mean gone, it means basically no longer useful, either because it's been replaced by something better or because it no longer applies. Typically the original term is retained in the language for backward compatibility, but use in new code going forward is discouraged. This is like the numtochar you use in Deva Writer, which is no longer necessary in LC7+. It doesn't break scripts but using newer syntax is more powerful and convenient. Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On June 15, 2016 3:18:12 PM Richmond wrote: > That "snip snip snip" also sounds unfortunate :/ > > I thought I knew what "deprecated" meant - gone, dead, no more. > > Obviously it means something a bit more subtle; well, at least in the > Livecode Universe. > > If "deprecated" here means that it has been replaced by something else > (?) it would > be nice to know what the something else is. > > Richmond. > > On 15.06.2016 23:04, Mike Bonner wrote: >> Deprecated doesn't mean removed. In this case, it looks like the code is >> still there, but limits set to 0 (IE infinite) Kinda surprised the code is >> still there though, doesn't seem like it would be needed for backwards >> compatability. Of course excising it would (probably?) be far more than a >> just a snip snip snip. >> >> On Wed, Jun 15, 2016 at 1:42 PM, Richmond >> wrote: >> >>> That's interesting; putting "put the scriptLimits" into the Message Box of >>> LC 8.0.01 Indy yields 0,0,0,0. >>> >>> I *wonder why* the documentation says "deprecated"? >>> >>> Richmond. >>> >>> On 15.06.2016 22:20, Dar Scott wrote: >>> >>>> the scriptLimits() >>>> >>>> I think you should still be able to put it, just drop 'the' or the >>>> parentheses. >>>> >>> Why does this sound vaguely 'porno'? >>> >>> >>> >>>> On Jun 15, 2016, at 1:15 PM, Richmond >>>>> wrote: >>>>> >>>>> So, (swank, swank) I opened up LC 8.0.1 Indy and typed "put the" into the >>>>> Message box, then copy-pasted "scriptLimits()" across from your message, >>>>> at which point the Message box contained this: >>>>> >>>>> put the ?? >>>>> >>>>> I was unable to DELETE anything in the Message Box. >>>>> >>>>> which is both odd and problematic. >>>>> >>>>> So, stopping trying to be clever (!) I typed "put the scriptLimits()" >>>>> into the Message box and got: >>>>> >>>>> Script compile error: >>>>> Error description: Handler: bad command >>>>> >>>>> which is also not much use. >>>>> >>>>> I then opened LC 7.1.4 (because the Dictionary in Livecode 8.0.1 64-bit >>>>> Linux is a non-starter) >>>>> and looked up "scriptLimits()" and read: >>>>> >>>>> Deprecated in Livecode 6.7. >>>>> >>>>> At which point I felt bl**dy silly that I didn't check that first. >>>>> >>>>> Richmond. >>>>> >>>>> >>>>> On 15.06.2016 21:35, Dar Scott wrote: >>>>> >>>>>> I would very much like to be Indy disqualified. >>>>>> >>>>>> As to the error, it seems it has come up a few times in discussions >>>>>> over the years. >>>>>> >>>>>> Because of the word 'set', it feels like it has to do with too many >>>>>> lines in a script that is set in a standalone. But, I thought those limits >>>>>> had been removed. Just it case, scriptLimits() can be checked. It should >>>>>> be 0,0,0,0. >>>>>> >>>>>> Dar >>>>>> >>>>>> >>>>>> >>>>>> On Jun 15, 2016, at 12:23 PM, Richmond >>>>>>> wrote: >>>>>>> >>>>>>> Your income has probably just exceeded $500,000; after all, the Indy >>>>>>> version of Livecode >>>>>>> has a built-in income detector :P >>>>>>> >>>>>>> Richmond. >>>>>>> >>>>>>> On 15.06.2016 21:19, Dr. Hawkins wrote: >>>>>>> >>>>>>>> I am getting this error message. This should not be happening on an >>>>>>>> indy >>>>>>>> license with more than a year left. >>>>>>>> >>>>>>>> For that matter, I have no idea what it means: >>>>>>>> >>>>>>>> Error description: set: license limit exceeded >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>> subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Wed Jun 15 16:50:46 2016 From: dsc at swcp.com (Dar Scott) Date: Wed, 15 Jun 2016 14:50:46 -0600 Subject: "Error description: set: license limit exceeded" In-Reply-To: References: <57619D04.6030605@gmail.com> <4B8B7ED5-E6F1-463B-8663-35A51B645F87@swcp.com> <5761A94C.10204@gmail.com> <5761AF8B.4090403@gmail.com> <3A9A83BE-7FF8-425A-8172-17559D8333C4@swcp.com> <5761B83A.3000102@gmail.com> Message-ID: <9012EEE6-D358-438A-9F0D-28000730ABAD@swcp.com> I'm guessing *almost" all the scriptlimits code was removed. Something generated the error for Dr. Hawkins. Maybe that part that sets the limits to zero is broken. Maybe some file was created with the same name as the old limits file. I'm guessing that something smashed some RAM and set the limits to nonzero. But, you are right, even the limits (and all limit checking) can be fully removed and the function just return a fixed string. > On Jun 15, 2016, at 2:32 PM, Mike Bonner wrote: > > Deprecated in this case means pointless since checking the limits shows > that there aren't any. Usually the connotation is "discouraged" as in > they'd rather you not use it but its still there for whatever reason. (as > dar points out, some older scripts might check it and they might break if > it were removed) > I guess its possible that all the scriptlimits code that keeps you from > doing more than intended WAS cleaned up and removed, and all thats left is > a function that always returns 0,0,0,0. > > On Wed, Jun 15, 2016 at 2:19 PM, Richmond > wrote: > >> That's a bit semantically slithery . . . >> >> Richmond. >> >> >> On 15.06.2016 23:16, Dar Scott wrote: >> >>> The function should stick around for a little bit because some old >>> scripts might still check. >>> >>> The generation of the error is strange, though--that may indicate a need >>> for some snipping. I suspect there is a check that never succeeds, but >>> never has somehow occurred. >>> >>> Just for fun: >>> https://en.wikipedia.org/wiki/Deprecation >>> >>> >>> On Jun 15, 2016, at 2:04 PM, Mike Bonner wrote: >>>> >>>> Deprecated doesn't mean removed. In this case, it looks like the code is >>>> still there, but limits set to 0 (IE infinite) Kinda surprised the code >>>> is >>>> still there though, doesn't seem like it would be needed for backwards >>>> compatability. Of course excising it would (probably?) be far more than a >>>> just a snip snip snip. >>>> >>>> On Wed, Jun 15, 2016 at 1:42 PM, Richmond >>>> wrote: >>>> >>>> That's interesting; putting "put the scriptLimits" into the Message Box >>>>> of >>>>> LC 8.0.01 Indy yields 0,0,0,0. >>>>> >>>>> I *wonder why* the documentation says "deprecated"? >>>>> >>>>> Richmond. >>>>> >>>>> On 15.06.2016 22:20, Dar Scott wrote: >>>>> >>>>> the scriptLimits() >>>>>> >>>>>> I think you should still be able to put it, just drop 'the' or the >>>>>> parentheses. >>>>>> >>>>>> Why does this sound vaguely 'porno'? >>>>> >>>>> >>>>> >>>>> On Jun 15, 2016, at 1:15 PM, Richmond >>>>>> >>>>>>> wrote: >>>>>>> >>>>>>> So, (swank, swank) I opened up LC 8.0.1 Indy and typed "put the" into >>>>>>> the >>>>>>> Message box, then copy-pasted "scriptLimits()" across from your >>>>>>> message, >>>>>>> at which point the Message box contained this: >>>>>>> >>>>>>> put the ?? >>>>>>> >>>>>>> I was unable to DELETE anything in the Message Box. >>>>>>> >>>>>>> which is both odd and problematic. >>>>>>> >>>>>>> So, stopping trying to be clever (!) I typed "put the scriptLimits()" >>>>>>> into the Message box and got: >>>>>>> >>>>>>> Script compile error: >>>>>>> Error description: Handler: bad command >>>>>>> >>>>>>> which is also not much use. >>>>>>> >>>>>>> I then opened LC 7.1.4 (because the Dictionary in Livecode 8.0.1 >>>>>>> 64-bit >>>>>>> Linux is a non-starter) >>>>>>> and looked up "scriptLimits()" and read: >>>>>>> >>>>>>> Deprecated in Livecode 6.7. >>>>>>> >>>>>>> At which point I felt bl**dy silly that I didn't check that first. >>>>>>> >>>>>>> Richmond. >>>>>>> >>>>>>> >>>>>>> On 15.06.2016 21:35, Dar Scott wrote: >>>>>>> >>>>>>> I would very much like to be Indy disqualified. >>>>>>>> >>>>>>>> As to the error, it seems it has come up a few times in discussions >>>>>>>> over the years. >>>>>>>> >>>>>>>> Because of the word 'set', it feels like it has to do with too many >>>>>>>> lines in a script that is set in a standalone. But, I thought those >>>>>>>> limits >>>>>>>> had been removed. Just it case, scriptLimits() can be checked. It >>>>>>>> should >>>>>>>> be 0,0,0,0. >>>>>>>> >>>>>>>> Dar >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Jun 15, 2016, at 12:23 PM, Richmond >>>>>>>> >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>> Your income has probably just exceeded $500,000; after all, the Indy >>>>>>>>> version of Livecode >>>>>>>>> has a built-in income detector :P >>>>>>>>> >>>>>>>>> Richmond. >>>>>>>>> >>>>>>>>> On 15.06.2016 21:19, Dr. Hawkins wrote: >>>>>>>>> >>>>>>>>> I am getting this error message. This should not be happening on an >>>>>>>>>> indy >>>>>>>>>> license with more than a year left. >>>>>>>>>> >>>>>>>>>> For that matter, I have no idea what it means: >>>>>>>>>> >>>>>>>>>> Error description: set: license limit exceeded >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> >>>>>>>>> use-livecode mailing list >>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>>> subscription preferences: >>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> >>>>>>>> use-livecode mailing list >>>>>>>> use-livecode at lists.runrev.com >>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>>> subscription preferences: >>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>> subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 15 17:12:11 2016 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 16 Jun 2016 00:12:11 +0300 Subject: Probs related to the LC 8 dictionary on 64 bit Linux Message-ID: <5761C4AB.4030103@gmail.com> Sorry; that title is a bit of a mouthful. Ideally (there's another semantically dubious word) the dictionary should be properly accessible in Livecode 8.x on Linux 64 bit; but it's not, and will probably take a while to sort that out. 3 days ago my operating system "went West", and I had to reinstall. This was neither here nor there beyond being a bit frustrating and taking up 4 hours of my time. However; having reinstalled 64 bit Xubuntu 16.04 and Kernel 4.6.2 I found that even on installing the multi-arch "gubbins" I could not install the 32 bit version of Livecode 8.0.1 - which I was trying to install to get at the dictionary in a . . . relatively . . . accessible fashion (i.e. via my web browser). So, here I am with Livecode 8.0.1 Indy and unable to get at the dictionary; even fossicking around in the /home/.runrev/ directories didn't give me any file I could open directly via Firefox . . . Richmond. From fraser.gordon at livecode.com Wed Jun 15 17:28:33 2016 From: fraser.gordon at livecode.com (Fraser Gordon) Date: Wed, 15 Jun 2016 22:28:33 +0100 Subject: Probs related to the LC 8 dictionary on 64 bit Linux In-Reply-To: <5761C4AB.4030103@gmail.com> References: <5761C4AB.4030103@gmail.com> Message-ID: <5761C881.2080900@livecode.com> On 15/06/16 22:12, Richmond wrote: > Sorry; that title is a bit of a mouthful. > > Ideally (there's another semantically dubious word) the dictionary > should be properly accessible > in Livecode 8.x on Linux 64 bit; but it's not, and will probably take > a while to sort that out. > > 3 days ago my operating system "went West", and I had to reinstall. > This was neither here nor there > beyond being a bit frustrating and taking up 4 hours of my time. > > However; having reinstalled 64 bit Xubuntu 16.04 and Kernel 4.6.2 I > found that even on installing > the multi-arch "gubbins" I could not install the 32 bit version of > Livecode 8.0.1 - which I was trying > to install to get at the dictionary in a . . . relatively . . . > accessible fashion (i.e. via my web browser). > > So, here I am with Livecode 8.0.1 Indy and unable to get at the > dictionary; even fossicking around in > the /home/.runrev/ directories didn't give me any file I could open > directly via Firefox . . . If it isn't already installed, it might be worth trying to install Chromium in case there is a missing dependency (the browser we use on Linux is, at its core, the same as Chrome/Chromium). One thing in particular that I've noticed may not be installed by default is the "xscrnsaver" library; I believe it is called "libxss1" on Ubuntu. Fraser From richmondmathewson at gmail.com Wed Jun 15 17:39:15 2016 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 16 Jun 2016 00:39:15 +0300 Subject: Probs related to the LC 8 dictionary on 64 bit Linux In-Reply-To: <5761C881.2080900@livecode.com> References: <5761C4AB.4030103@gmail.com> <5761C881.2080900@livecode.com> Message-ID: <5761CB03.1020000@gmail.com> I'm afraid that just doesn't work, as I have reported in Bugzilla, the dictionary just doesn't function at all in Livecode 8.x 64 bit Xubuntu. What I am looking to do is to install Livecode 8.x 32 bit on my 64 bit system, because that does let me get at the dictionary. So I installed the multiarch stuff, and I was still uynable to get the Livecode 8.0.1 32 bit Linux installer to start up. Richmond. On 16.06.2016 00:28, Fraser Gordon wrote: > On 15/06/16 22:12, Richmond wrote: >> Sorry; that title is a bit of a mouthful. >> >> Ideally (there's another semantically dubious word) the dictionary >> should be properly accessible >> in Livecode 8.x on Linux 64 bit; but it's not, and will probably take >> a while to sort that out. >> >> 3 days ago my operating system "went West", and I had to reinstall. >> This was neither here nor there >> beyond being a bit frustrating and taking up 4 hours of my time. >> >> However; having reinstalled 64 bit Xubuntu 16.04 and Kernel 4.6.2 I >> found that even on installing >> the multi-arch "gubbins" I could not install the 32 bit version of >> Livecode 8.0.1 - which I was trying >> to install to get at the dictionary in a . . . relatively . . . >> accessible fashion (i.e. via my web browser). >> >> So, here I am with Livecode 8.0.1 Indy and unable to get at the >> dictionary; even fossicking around in >> the /home/.runrev/ directories didn't give me any file I could open >> directly via Firefox . . . > > If it isn't already installed, it might be worth trying to install > Chromium in case there is a missing dependency (the browser we use on > Linux is, at its core, the same as Chrome/Chromium). One thing in > particular that I've noticed may not be installed by default is the > "xscrnsaver" library; I believe it is called "libxss1" on Ubuntu. > > Fraser > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Wed Jun 15 18:06:38 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 15 Jun 2016 16:06:38 -0600 Subject: Probs related to the LC 8 dictionary on 64 bit Linux In-Reply-To: <5761CB03.1020000@gmail.com> References: <5761C4AB.4030103@gmail.com> <5761C881.2080900@livecode.com> <5761CB03.1020000@gmail.com> Message-ID: While not as convenient, you could go to https://livecode.com/resources/api and look things up there. No widget info, but there is builder info. Its better than nothing. On Wed, Jun 15, 2016 at 3:39 PM, Richmond wrote: > I'm afraid that just doesn't work, as I have reported in Bugzilla, the > dictionary just > doesn't function at all in Livecode 8.x 64 bit Xubuntu. > > What I am looking to do is to install Livecode 8.x 32 bit on my 64 bit > system, because that does > let me get at the dictionary. > > So I installed the multiarch stuff, and I was still uynable to get the > Livecode 8.0.1 32 bit Linux > installer to start up. > > Richmond. > > > On 16.06.2016 00:28, Fraser Gordon wrote: > >> On 15/06/16 22:12, Richmond wrote: >> >>> Sorry; that title is a bit of a mouthful. >>> >>> Ideally (there's another semantically dubious word) the dictionary >>> should be properly accessible >>> in Livecode 8.x on Linux 64 bit; but it's not, and will probably take a >>> while to sort that out. >>> >>> 3 days ago my operating system "went West", and I had to reinstall. This >>> was neither here nor there >>> beyond being a bit frustrating and taking up 4 hours of my time. >>> >>> However; having reinstalled 64 bit Xubuntu 16.04 and Kernel 4.6.2 I >>> found that even on installing >>> the multi-arch "gubbins" I could not install the 32 bit version of >>> Livecode 8.0.1 - which I was trying >>> to install to get at the dictionary in a . . . relatively . . . >>> accessible fashion (i.e. via my web browser). >>> >>> So, here I am with Livecode 8.0.1 Indy and unable to get at the >>> dictionary; even fossicking around in >>> the /home/.runrev/ directories didn't give me any file I could open >>> directly via Firefox . . . >>> >> >> If it isn't already installed, it might be worth trying to install >> Chromium in case there is a missing dependency (the browser we use on Linux >> is, at its core, the same as Chrome/Chromium). One thing in particular that >> I've noticed may not be installed by default is the "xscrnsaver" library; I >> believe it is called "libxss1" on Ubuntu. >> >> Fraser >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacques.hausser at unil.ch Wed Jun 15 18:55:23 2016 From: jacques.hausser at unil.ch (Jacques Hausser) Date: Wed, 15 Jun 2016 22:55:23 +0000 Subject: browser widget again In-Reply-To: References: <15554aa2f7a-4c6b-541c@webstg-m08.mail.aol.com> <42234EDF-ACC5-4187-84E1-9B9DE733113D@unil.ch> <113D0D6E-4D5D-4EB2-A707-CEEC6A2BB8C3@unil.ch> Message-ID: <5A823712-CAED-440D-8191-5252886343E7@unil.ch> In my html file, tCoord is declared (together with several other variables) before the first function initialize() . In the function initialize() I set the map, I create an elevation service (for the altitude) and a listener to catch the clicks on the map. Then I have a function retrieving the last clicked location (but filtering out the double-clicks I leave to the API to deal with), pushing it in an array ?locations?, then requesting the altitude of this location. The value of tCoord is set in this function as: tCoord = results[0].location + ?," + results[0].elevation; and finally a marker is put at this location. This is certainly not a very well designed javascript function, but it works. I have only a very thin and superficial knowledge of javascript (not even speaking of the google map API). As it is sooo easy to get something not working at all when trying to optimalize, I leave it as it is at the moment. Eager to read about your theory ! Jacques > Le 15 juin 2016 ? 21:52, Mike Bonner a ?crit : > > Hey, when the var tcoord is declared and/or set its value, how do you do > it? If you bring up the message watcher, after grabbing your return value > it once, does it continue spamming your livecode handler? I have the > inkling of a theory.. > > On Wed, Jun 15, 2016 at 1:41 PM, Mike Bonner wrote: > >> Not sure I understand whats going on either, I'd probably have to see more >> code. >> >> @david.. I don't have time to try it right now, but I _THINK_ if you have >> an existing function in your page and you want to get the results of that >> function out, you can treat the function as a parameter to your livecode >> call. >> >> Meaning if you have defined a javascrpithandler named fred, and your page >> has a function named add() which takes 2 values to be added it will >> probably work do do this.. >> >> do "liveCode.fred(add(4,3))" in widget "browser" >> >> Hmm in fact, i'll try it now. >> >> Yep, it works fine. Just pop whatever existing function (that has a return >> value) that you want to get back out of the widget as a parameter to your >> javascripthandler call and poof. Out it comes. >> >> In my test I had this in the page.. >> >> >> >> >> >> >> >> And have registered myJSHandler as my livecode hook. >> >> Then this will get the results back out. >> do "liveCode.myJSHandler(add(1,2))" in widget 1 >> It uses the existing add function to add the 2 numbers passed in, and my >> generic handler displays 3 in the message box. >> >> >> On Wed, Jun 15, 2016 at 1:28 PM, Jacques Hausser >> wrote: >> >>> YESSS ! IT WORKS ! Many thanks, Mike ! >>> >>> But I?m very surprised: I don?t have to call my command ?getLoc? more >>> than one time: after that, each time I change the location of my marker on >>> the map, the value of tCoord (which is declared at the start of the script, >>> that is, as ?global?) is modified, the function is triggered and the new >>> coordinates are displayed in fld ?Result?. I do not understand why, >>> actually. Nothing to do with my ?exportXYZ? javascript function, which was >>> suppressed. My card script now contains: >>> >>> command getLoc >>> do "liveCode.inputLoc(tCoord);" in widget "mapBrowser" >>> end getLoc >>> >>> on inputLoc >>> put param(1) into fld ?FResult" >>> end inputLoc >>> >>> (it?s less general than your version, but I wanted just to check it) >>> >>> I still have to dig further away to understand how it works. But you made >>> my day ! >>> >>> Jacques >>> >>>> Le 15 juin 2016 ? 20:25, Mike Bonner a ?crit : >>>> >>>> You said tcoord contains the information you want to return... >>>> >>>> I don't think you need to actually include the livecode function call in >>>> your html, I'm pretty sure you can remove it entirely and do something >>> like >>>> this.. >>>> >>>> do "liveCode.inputLoc(tcoord)" in widget "Browser" and it will work. >>> (It >>>> did for me, its possible there are issues elsewhere in the javascript >>> code) >>>> >>>> In this way you can define a single javascripthandler and have it hand >>> back >>>> any data you need. >>>> >>>> As a quick example, I set the htmltext of a widget to the following.. >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> The ONLY thing in there as javascript is the declaration of tcoords >>>> >>>> Then from the message box I set a javascript handler to myJSHandler and >>>> then.. >>>> do "liveCode.myJSHandler(tcoords,'fred')" in widget 1 >>>> >>>> For my lc handler I used paramcount and param() to find out and show the >>>> data that was passed out. >>>> >>>> command myjshandler >>>> put empty >>>> repeat with i = 1 to the paramcount >>>> put param(i) & cr after msg >>>> end repeat >>>> end myjshandler >>>> >>>> As expected the message box displayed >>>> 1,2,3 >>>> fred >>>> >>>> You might be able to leverage this into some debugging ability. >>>> >>>> I did try a bunch of different ways to get things out (some that seemed >>>> like they SHOULD work but didn't, causing an "error eveluating >>> javascript" >>>> error) >>>> >>>> It even seemed sometimes that a method that worked just a minute ago >>> would >>>> stop. (I'm so bad at javascript though, its no surprise i'm lost) >>>> >>>> >>>> On Wed, Jun 15, 2016 at 10:38 AM, Jacques Hausser < >>> jacques.hausser at unil.ch> >>>> wrote: >>>> >>>>> Still trying to use the browser widget and its javascripthandlers. I >>>>> picked information here and there (many thanks to those who answered my >>>>> previous mails, especially Mike) but really I would be glad to find a >>>>> detailed user?s guide somewhere. I?m using a html file exploiting >>> google >>>>> map?s API as URL, and it works perfectly well with the old style >>> browser. >>>>> But I cannot grab the information I want with the new browser widget. >>>>> Hereunder a simplified (and tested) example of what I tried for the old >>>>> browser (successfully) and the widget browser (to no avail). >>>>> >>>>> ?????????????????????????????? >>>>> old style browser: >>>>> ?????????????????????????????? >>>>> in the card script: >>>>> >>>>> command getLoc >>>>> get revBrowserCallScript(LBrowserID,exportXYZ) >>>>> put it into fld "FResult" >>>>> end getLoc >>>>> >>>>> in the html file: >>>>> >>>>> function exportXYZ() >>>>> //tCoord contains the ccordinates and altitude of the last point >>> clicked >>>>> { >>>>> var vCoord = tCoord; >>>>> return vCoord; >>>>> } >>>>> ?????????????????????????????? >>>>> browser widget: >>>>> ?????????????????????????????? >>>>> in the card script: >>>>> >>>>> command getLoc >>>>> do "exportXYZ();" in widget "mapBrowser" >>>>> end mouseUp >>>>> >>>>> command inputLoc pCoord >>>>> ?- this command?s name is in the list of javascripthandlers for my >>> browser >>>>> put pCoord into fld "FResult" >>>>> end inputLoc >>>>> >>>>> in the html file: >>>>> >>>>> function exportXYZ() >>>>> //tCoord contains the ccordinates and altitude of the last point >>> clicked >>>>> { >>>>> var pCoord = tCoord; >>>>> liveCode.inputLoc(pCoord); >>>>> } >>>>> ?????????????????????????????? >>>>> >>>>> the html file is exactly the same in both cases except for the change >>>>> illustrated above. The map is displayed as expected in the browser >>> widget, >>>>> I can click any location to get a marker displayed and I can move to a >>> new >>>>> region with the following: >>>>> >>>>> ?????????????????????????????? >>>>> in the card script: >>>>> >>>>> command newReg plat,plon,pzoom >>>>> do "goToReg(plat,plon,pzoom);? in widget "mapBrowser" >>>>> end mouseUp >>>>> >>>>> and in the htlm file: >>>>> >>>>> function goToReg(pLat,pLng,pZoom) >>>>> { >>>>> var newCenter = new google.maps.LatLng(pLat,pLng); >>>>> tmap.setCenter(newCenter); >>>>> var tZoom = parseInt(pZoom,10); >>>>> tmap.setZoom(tZoom); >>>>> } >>>>> ?????????????????????????????? >>>>> >>>>> Thus ?do ? in widget? works; but I cannot fetch those damned >>> coordinates >>>>> with ?liveCode.inputLoc(pCoord);". How to make the javascriptHandlers >>> to >>>>> work ? >>>>> >>>>> PS: Mac 10.11.5, LC 8.0.2 rc2 >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> ****************************************** >>> Prof. Jacques Hausser >>> Department of Ecology and Evolution >>> Biophore / Sorge >>> University of Lausanne >>> CH 1015 Lausanne >>> please use my private address: >>> 6 route de Burtigny >>> CH-1269 Bassins >>> tel: ++ 41 22 366 19 40 >>> mobile: ++ 41 79 757 05 24 >>> E-Mail: jacques.hausser at unil.ch >>> ******************************************* >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ****************************************** Prof. Jacques Hausser Department of Ecology and Evolution Biophore / Sorge University of Lausanne CH 1015 Lausanne please use my private address: 6 route de Burtigny CH-1269 Bassins tel: ++ 41 22 366 19 40 mobile: ++ 41 79 757 05 24 E-Mail: jacques.hausser at unil.ch ******************************************* From jacques.hausser at unil.ch Wed Jun 15 19:02:59 2016 From: jacques.hausser at unil.ch (Jacques Hausser) Date: Wed, 15 Jun 2016 23:02:59 +0000 Subject: browser widget again In-Reply-To: <5A823712-CAED-440D-8191-5252886343E7@unil.ch> References: <15554aa2f7a-4c6b-541c@webstg-m08.mail.aol.com> <42234EDF-ACC5-4187-84E1-9B9DE733113D@unil.ch> <113D0D6E-4D5D-4EB2-A707-CEEC6A2BB8C3@unil.ch> <5A823712-CAED-440D-8191-5252886343E7@unil.ch> Message-ID: <1C9BCDD9-2B7C-40AD-ACF1-357D6AA84644@unil.ch> And I forgot: yes, the messageWatcher gives successive ?inputLoc and the time when I click successive points on the map. > Le 16 juin 2016 ? 00:55, Jacques Hausser a ?crit : > > In my html file, tCoord is declared (together with several other variables) before the first function initialize() > . > In the function initialize() I set the map, I create an elevation service (for the altitude) and a listener to catch the clicks on the map. > > Then I have a function retrieving the last clicked location (but filtering out the double-clicks I leave to the API to deal with), pushing it in an array ?locations?, then requesting the altitude of this location. The value of tCoord is set in this function as: > tCoord = results[0].location + ?," + results[0].elevation; > and finally a marker is put at this location. > > This is certainly not a very well designed javascript function, but it works. I have only a very thin and superficial knowledge of javascript (not even speaking of the google map API). As it is sooo easy to get something not working at all when trying to optimalize, I leave it as it is at the moment. > > Eager to read about your theory ! > > Jacques > >> Le 15 juin 2016 ? 21:52, Mike Bonner a ?crit : >> >> Hey, when the var tcoord is declared and/or set its value, how do you do >> it? If you bring up the message watcher, after grabbing your return value >> it once, does it continue spamming your livecode handler? I have the >> inkling of a theory.. >> >> On Wed, Jun 15, 2016 at 1:41 PM, Mike Bonner wrote: >> >>> Not sure I understand whats going on either, I'd probably have to see more >>> code. >>> >>> @david.. I don't have time to try it right now, but I _THINK_ if you have >>> an existing function in your page and you want to get the results of that >>> function out, you can treat the function as a parameter to your livecode >>> call. >>> >>> Meaning if you have defined a javascrpithandler named fred, and your page >>> has a function named add() which takes 2 values to be added it will >>> probably work do do this.. >>> >>> do "liveCode.fred(add(4,3))" in widget "browser" >>> >>> Hmm in fact, i'll try it now. >>> >>> Yep, it works fine. Just pop whatever existing function (that has a return >>> value) that you want to get back out of the widget as a parameter to your >>> javascripthandler call and poof. Out it comes. >>> >>> In my test I had this in the page.. >>> >>> >>> >>> >>> >>> >>> >>> And have registered myJSHandler as my livecode hook. >>> >>> Then this will get the results back out. >>> do "liveCode.myJSHandler(add(1,2))" in widget 1 >>> It uses the existing add function to add the 2 numbers passed in, and my >>> generic handler displays 3 in the message box. >>> >>> >>> On Wed, Jun 15, 2016 at 1:28 PM, Jacques Hausser >>> wrote: >>> >>>> YESSS ! IT WORKS ! Many thanks, Mike ! >>>> >>>> But I?m very surprised: I don?t have to call my command ?getLoc? more >>>> than one time: after that, each time I change the location of my marker on >>>> the map, the value of tCoord (which is declared at the start of the script, >>>> that is, as ?global?) is modified, the function is triggered and the new >>>> coordinates are displayed in fld ?Result?. I do not understand why, >>>> actually. Nothing to do with my ?exportXYZ? javascript function, which was >>>> suppressed. My card script now contains: >>>> >>>> command getLoc >>>> do "liveCode.inputLoc(tCoord);" in widget "mapBrowser" >>>> end getLoc >>>> >>>> on inputLoc >>>> put param(1) into fld ?FResult" >>>> end inputLoc >>>> >>>> (it?s less general than your version, but I wanted just to check it) >>>> >>>> I still have to dig further away to understand how it works. But you made >>>> my day ! >>>> >>>> Jacques >>>> >>>>> Le 15 juin 2016 ? 20:25, Mike Bonner a ?crit : >>>>> >>>>> You said tcoord contains the information you want to return... >>>>> >>>>> I don't think you need to actually include the livecode function call in >>>>> your html, I'm pretty sure you can remove it entirely and do something >>>> like >>>>> this.. >>>>> >>>>> do "liveCode.inputLoc(tcoord)" in widget "Browser" and it will work. >>>> (It >>>>> did for me, its possible there are issues elsewhere in the javascript >>>> code) >>>>> >>>>> In this way you can define a single javascripthandler and have it hand >>>> back >>>>> any data you need. >>>>> >>>>> As a quick example, I set the htmltext of a widget to the following.. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> The ONLY thing in there as javascript is the declaration of tcoords >>>>> >>>>> Then from the message box I set a javascript handler to myJSHandler and >>>>> then.. >>>>> do "liveCode.myJSHandler(tcoords,'fred')" in widget 1 >>>>> >>>>> For my lc handler I used paramcount and param() to find out and show the >>>>> data that was passed out. >>>>> >>>>> command myjshandler >>>>> put empty >>>>> repeat with i = 1 to the paramcount >>>>> put param(i) & cr after msg >>>>> end repeat >>>>> end myjshandler >>>>> >>>>> As expected the message box displayed >>>>> 1,2,3 >>>>> fred >>>>> >>>>> You might be able to leverage this into some debugging ability. >>>>> >>>>> I did try a bunch of different ways to get things out (some that seemed >>>>> like they SHOULD work but didn't, causing an "error eveluating >>>> javascript" >>>>> error) >>>>> >>>>> It even seemed sometimes that a method that worked just a minute ago >>>> would >>>>> stop. (I'm so bad at javascript though, its no surprise i'm lost) >>>>> >>>>> >>>>> On Wed, Jun 15, 2016 at 10:38 AM, Jacques Hausser < >>>> jacques.hausser at unil.ch> >>>>> wrote: >>>>> >>>>>> Still trying to use the browser widget and its javascripthandlers. I >>>>>> picked information here and there (many thanks to those who answered my >>>>>> previous mails, especially Mike) but really I would be glad to find a >>>>>> detailed user?s guide somewhere. I?m using a html file exploiting >>>> google >>>>>> map?s API as URL, and it works perfectly well with the old style >>>> browser. >>>>>> But I cannot grab the information I want with the new browser widget. >>>>>> Hereunder a simplified (and tested) example of what I tried for the old >>>>>> browser (successfully) and the widget browser (to no avail). >>>>>> >>>>>> ?????????????????????????????? >>>>>> old style browser: >>>>>> ?????????????????????????????? >>>>>> in the card script: >>>>>> >>>>>> command getLoc >>>>>> get revBrowserCallScript(LBrowserID,exportXYZ) >>>>>> put it into fld "FResult" >>>>>> end getLoc >>>>>> >>>>>> in the html file: >>>>>> >>>>>> function exportXYZ() >>>>>> //tCoord contains the ccordinates and altitude of the last point >>>> clicked >>>>>> { >>>>>> var vCoord = tCoord; >>>>>> return vCoord; >>>>>> } >>>>>> ?????????????????????????????? >>>>>> browser widget: >>>>>> ?????????????????????????????? >>>>>> in the card script: >>>>>> >>>>>> command getLoc >>>>>> do "exportXYZ();" in widget "mapBrowser" >>>>>> end mouseUp >>>>>> >>>>>> command inputLoc pCoord >>>>>> ?- this command?s name is in the list of javascripthandlers for my >>>> browser >>>>>> put pCoord into fld "FResult" >>>>>> end inputLoc >>>>>> >>>>>> in the html file: >>>>>> >>>>>> function exportXYZ() >>>>>> //tCoord contains the ccordinates and altitude of the last point >>>> clicked >>>>>> { >>>>>> var pCoord = tCoord; >>>>>> liveCode.inputLoc(pCoord); >>>>>> } >>>>>> ?????????????????????????????? >>>>>> >>>>>> the html file is exactly the same in both cases except for the change >>>>>> illustrated above. The map is displayed as expected in the browser >>>> widget, >>>>>> I can click any location to get a marker displayed and I can move to a >>>> new >>>>>> region with the following: >>>>>> >>>>>> ?????????????????????????????? >>>>>> in the card script: >>>>>> >>>>>> command newReg plat,plon,pzoom >>>>>> do "goToReg(plat,plon,pzoom);? in widget "mapBrowser" >>>>>> end mouseUp >>>>>> >>>>>> and in the htlm file: >>>>>> >>>>>> function goToReg(pLat,pLng,pZoom) >>>>>> { >>>>>> var newCenter = new google.maps.LatLng(pLat,pLng); >>>>>> tmap.setCenter(newCenter); >>>>>> var tZoom = parseInt(pZoom,10); >>>>>> tmap.setZoom(tZoom); >>>>>> } >>>>>> ?????????????????????????????? >>>>>> >>>>>> Thus ?do ? in widget? works; but I cannot fetch those damned >>>> coordinates >>>>>> with ?liveCode.inputLoc(pCoord);". How to make the javascriptHandlers >>>> to >>>>>> work ? >>>>>> >>>>>> PS: Mac 10.11.5, LC 8.0.2 rc2 >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> ****************************************** >>>> Prof. Jacques Hausser >>>> Department of Ecology and Evolution >>>> Biophore / Sorge >>>> University of Lausanne >>>> CH 1015 Lausanne >>>> please use my private address: >>>> 6 route de Burtigny >>>> CH-1269 Bassins >>>> tel: ++ 41 22 366 19 40 >>>> mobile: ++ 41 79 757 05 24 >>>> E-Mail: jacques.hausser at unil.ch >>>> ******************************************* >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > ****************************************** > Prof. Jacques Hausser > Department of Ecology and Evolution > Biophore / Sorge > University of Lausanne > CH 1015 Lausanne > please use my private address: > 6 route de Burtigny > CH-1269 Bassins > tel: ++ 41 22 366 19 40 > mobile: ++ 41 79 757 05 24 > E-Mail: jacques.hausser at unil.ch > ******************************************* > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ****************************************** Prof. Jacques Hausser Department of Ecology and Evolution Biophore / Sorge University of Lausanne CH 1015 Lausanne please use my private address: 6 route de Burtigny CH-1269 Bassins tel: ++ 41 22 366 19 40 mobile: ++ 41 79 757 05 24 E-Mail: jacques.hausser at unil.ch ******************************************* From MikeKerner at roadrunner.com Wed Jun 15 19:26:56 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 15 Jun 2016 19:26:56 -0400 Subject: exitsOnSuspend hack dead Message-ID: In trying to build with 7.1.4 to ios with the exitsOnSuspend hack but I'm getting an info.plist error when I try to install. Is there some new trick to making this work? -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From bonnmike at gmail.com Wed Jun 15 19:31:51 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 15 Jun 2016 17:31:51 -0600 Subject: browser widget again In-Reply-To: References: <15554aa2f7a-4c6b-541c@webstg-m08.mail.aol.com> <42234EDF-ACC5-4187-84E1-9B9DE733113D@unil.ch> <113D0D6E-4D5D-4EB2-A707-CEEC6A2BB8C3@unil.ch> <5A823712-CAED-440D-8191-5252886343E7@unil.ch> <1C9BCDD9-2B7C-40AD-ACF1-357D6AA84644@unil.ch> Message-ID: Well, my theory is shot down.. however.. I think in your code, in order to get the same behavior you already seem to be getting, but on purpose..(Which I still don't understand why its doing what it is..) You might be able to change your html code to this.... tcoord = liveCode.inputLoc(results[0].location + ?," + results[0) elevation); at which point you won't need the "do" at all. (maybe) Or some variation of this. I don't understand javascript well enough yet to think it through without trying things (in the middle of something else, or I'd poke around now) I have the feeling there is a huge depth of possibility here that I just can't quite grasp yet. From cubist at aol.com Wed Jun 15 19:45:28 2016 From: cubist at aol.com (Quentin Long) Date: Wed, 15 Jun 2016 19:45:28 -0400 Subject: "Error description: set: license limit exceeded" In-Reply-To: References: Message-ID: <155567492fb-4c6b-67e9@webstg-m08.mail.aol.com> "Deprecated" doesn't mean "absent". "Deprecated" means something more like "we haven't *got rid of* X because a lot of our installed base depends on X, but we *really* don't want to see anybody using X for *new* projects." "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 MikeKerner at roadrunner.com Wed Jun 15 19:49:46 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 15 Jun 2016 19:49:46 -0400 Subject: exitsOnSuspend hack dead In-Reply-To: References: Message-ID: and that should be "exitOnSuspend", as we all know. On Wed, Jun 15, 2016 at 7:26 PM, Mike Kerner wrote: > In trying to build with 7.1.4 to ios with the exitsOnSuspend hack but I'm > getting an info.plist error when I try to install. Is there some new trick > to making this work? > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Wed Jun 15 19:56:44 2016 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 15 Jun 2016 19:56:44 -0400 Subject: exitsOnSuspend hack dead In-Reply-To: References: Message-ID: UGH! DOUBLE-FACEPALMERY! Not only is it exitsOnSuspend, but I had the wrong substitution, duh. "" works much better than "false". Just ignore this thread, or delete it. Yeah. Delete it. On Wed, Jun 15, 2016 at 7:49 PM, Mike Kerner wrote: > and that should be "exitOnSuspend", as we all know. > > On Wed, Jun 15, 2016 at 7:26 PM, Mike Kerner > wrote: > >> In trying to build with 7.1.4 to ios with the exitsOnSuspend hack but I'm >> getting an info.plist error when I try to install. Is there some new trick >> to making this work? >> >> -- >> On the first day, God created the heavens and the Earth >> On the second day, God created the oceans. >> On the third day, God put the animals on hold for a few hours, >> and did a little diving. >> And God said, "This is good." >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From selander at tkf.att.ne.jp Wed Jun 15 21:54:28 2016 From: selander at tkf.att.ne.jp (Tim Selander) Date: Thu, 16 Jun 2016 10:54:28 +0900 Subject: opening utf8 text file Message-ID: <576206D4.5040903@tkf.att.ne.jp> LC 8, Dictionary says it can be done, but does not give a sample. No syntax I've tried works. How do you open a file encoded in UTF8? open file for UTF8 read does not work. Thanks. Tim Selander Tokyo, Japan From dsc at swcp.com Wed Jun 15 22:10:55 2016 From: dsc at swcp.com (Dar Scott) Date: Wed, 15 Jun 2016 20:10:55 -0600 Subject: opening utf8 text file In-Reply-To: <576206D4.5040903@tkf.att.ne.jp> References: <576206D4.5040903@tkf.att.ne.jp> Message-ID: <324E4566-6517-430C-8CF3-52C71C9D8F19@swcp.com> The encoding names are found with textEncode and textDecode. There you can see the name needs a hyphen. Try "UTF-8". (You can also open the file for binary or use binfifle: and then use textDecode.) > On Jun 15, 2016, at 7:54 PM, Tim Selander wrote: > > LC 8, Dictionary says it can be done, but does not give a sample. No syntax I've tried works. > > How do you open a file encoded in UTF8? > > open file for UTF8 read > > does not work. > > Thanks. > > Tim Selander > Tokyo, Japan > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From selander at tkf.att.ne.jp Wed Jun 15 22:42:11 2016 From: selander at tkf.att.ne.jp (Tim Selander) Date: Thu, 16 Jun 2016 11:42:11 +0900 Subject: opening utf8 text file In-Reply-To: <324E4566-6517-430C-8CF3-52C71C9D8F19@swcp.com> References: <576206D4.5040903@tkf.att.ne.jp> <324E4566-6517-430C-8CF3-52C71C9D8F19@swcp.com> Message-ID: <57621203.8080404@tkf.att.ne.jp> The hyphen and the quotes made it work. Many thanks, Dar! Tim On 2016/06/16 11:10, Dar Scott wrote: > The encoding names are found with textEncode and textDecode. There you can see the name needs a hyphen. Try "UTF-8". (You can also open the file for binary or use binfifle: and then use textDecode.) > >> On Jun 15, 2016, at 7:54 PM, Tim Selander wrote: >> >> LC 8, Dictionary says it can be done, but does not give a sample. No syntax I've tried works. >> >> How do you open a file encoded in UTF8? >> >> open file for UTF8 read >> >> does not work. >> >> Thanks. >> >> Tim Selander >> Tokyo, Japan >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gbojsza at gmail.com Thu Jun 16 09:34:43 2016 From: gbojsza at gmail.com (Glen Bojsza) Date: Thu, 16 Jun 2016 09:34:43 -0400 Subject: Alternatives to Option Menu, Pulldown Menu and Combo Box for iOS Message-ID: Hello, I wanted to see what everyone is using on iOS in stead of the standard Option Menu, Pulldown Menu and Combo Box which all show the old Motif style. Is there something that can be done via SVG or is there any widgets that replace these. I am using LC 8.0.1 and need something that looks appropriate in style with iOS. thanks, Glen From klaus at major-k.de Thu Jun 16 09:37:25 2016 From: klaus at major-k.de (Klaus major-k) Date: Thu, 16 Jun 2016 15:37:25 +0200 Subject: Alternatives to Option Menu, Pulldown Menu and Combo Box for iOS In-Reply-To: References: Message-ID: Hi Glen, > Am 16.06.2016 um 15:34 schrieb Glen Bojsza : > > Hello, > > I wanted to see what everyone is using on iOS in stead of the standard > Option Menu, Pulldown Menu and Combo Box which all show the old Motif style. > > Is there something that can be done via SVG or is there any widgets that > replace these. > > I am using LC 8.0.1 and need something that looks appropriate in style with > iOS. what about "mobilepick..."? You can't be more native with that one :-) > thanks, > > Glen Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From bernd.niggemann at uni-wh.de Thu Jun 16 09:26:09 2016 From: bernd.niggemann at uni-wh.de (BNig) Date: Thu, 16 Jun 2016 06:26:09 -0700 (PDT) Subject: SelectedObjectChanged in LC8... Bug? In-Reply-To: <001501d1c666$11718070$34548150$@FlexibleLearning.com> References: <001501d1c666$11718070$34548150$@FlexibleLearning.com> Message-ID: <1466083569625-4705852.post@n4.nabble.com> Hi Hugh, FlexibleLearning.com wrote > When the "Browse" tool is selected in the UI, any selected objects are > deselected and a SelectedObjectChanged message used to be sent. This is no > longer the case in LC8. > > I have also tried trapping for a NewTool message, but this is similarly > ignored. > > Any insights, or is this a bug? > > Hugh Senior > FLCo I see the same and I consider this a bug. When a selected object changes it should trigger SelectedObjectChanged, no matter why it changed. I see the same for the new subscription model, ideSelectedObjectChanged does not trigger when changing from edit to browse tool, but ideToolChanged does. put this into a card script and put 1 field on the card ----------------------------------------------------- on openCard subscribeCardToMessage end openCard on subscribeCardToMessage ideSubscribe "ideSelectedObjectChanged" ideSubscribe "ideToolChanged" end subscribeCardToMessage on ideToolChanged put "toolChanged" && the milliseconds into field 1 end ideToolChanged on ideSelectedObjectChanged put "selectedObjectchanged" && the milliseconds into field 1 end ideSelectedObjectChanged ----------------------------------------------------- Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/SelectedObjectChanged-in-LC8-Bug-tp4705763p4705852.html Sent from the Revolution - User mailing list archive at Nabble.com. From gbojsza at gmail.com Thu Jun 16 10:12:34 2016 From: gbojsza at gmail.com (Glen Bojsza) Date: Thu, 16 Jun 2016 10:12:34 -0400 Subject: Alternatives to Option Menu, Pulldown Menu and Combo Box for iOS In-Reply-To: References: Message-ID: Hi Klaus, I looked it up in the Dictionary and it would appear to be the solution ... this tells you how out of date I am on LC. I signed up for the conference streaming in hopes that I can catch up. regards, Glen On Thu, Jun 16, 2016 at 9:37 AM, Klaus major-k wrote: > Hi Glen, > > > Am 16.06.2016 um 15:34 schrieb Glen Bojsza : > > > > Hello, > > > > I wanted to see what everyone is using on iOS in stead of the standard > > Option Menu, Pulldown Menu and Combo Box which all show the old Motif > style. > > > > Is there something that can be done via SVG or is there any widgets that > > replace these. > > > > I am using LC 8.0.1 and need something that looks appropriate in style > with > > iOS. > > what about "mobilepick..."? > You can't be more native with that one :-) > > > thanks, > > > > Glen > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Thu Jun 16 14:18:06 2016 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 16 Jun 2016 21:18:06 +0300 Subject: Sadistic teacher. Message-ID: <5762ED5E.2020304@gmail.com> I'm having a lot of fun, even if my pupils aren't: http://forums.livecode.com/viewtopic.php?f=25&t=27476 Very happy this year to have 4 girls; 3 of whom are "ripping sh*t" out of the boys! Richmond. From devinasay at gmail.com Thu Jun 16 15:10:30 2016 From: devinasay at gmail.com (Devin Asay) Date: Thu, 16 Jun 2016 13:10:30 -0600 Subject: Windows 10 script editor problem Message-ID: <0D466781-276D-4CAE-9D21-A512530F6EE5@gmail.com> Hi all, I have a student who is trying to run 8.1.0DP1 on her Windows 10 laptop. It installs and launches, and she can open a stack, but when she tries to open a script editor window, it does not appear. There is a tab for it on the task bar, but clicking on the tab doesn?t bring up the editor window. It?s almost like it?s invisible or off screen somewhere. I tried showing IDE windows in the View menu, and I can see it in the Project Manager list, but again, it won?t appear on the screen. Setting the visibility to true doesn?t help, neither does setting the loc to somewhere on screen. Has anybody run into this with LC 8? Maybe there?s something about Windows 10 I don?t get, like some sort of virtual desktop, ?Spaces? thing. Any ideas appreciated. Devin Devin Asay Learn to code with LiveCode University https://livecode.com/store/education/ From scott at tactilemedia.com Thu Jun 16 15:17:08 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 16 Jun 2016 12:17:08 -0700 Subject: Windows 10 script editor problem In-Reply-To: <0D466781-276D-4CAE-9D21-A512530F6EE5@gmail.com> References: <0D466781-276D-4CAE-9D21-A512530F6EE5@gmail.com> Message-ID: Did you try checking the editor window's location or topLeft and verifying that it's within the screenRect? Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 6/16/16, 12:10 PM, "use-livecode on behalf of Devin Asay" wrote: >Hi all, > >I have a student who is trying to run 8.1.0DP1 on her Windows 10 laptop. >It installs and launches, and she can open a stack, but when she tries to >open a script editor window, it does not appear. There is a tab for it on >the task bar, but clicking on the tab doesn?t bring up the editor window. >It?s almost like it?s invisible or off screen somewhere. I tried showing >IDE windows in the View menu, and I can see it in the Project Manager >list, but again, it won?t appear on the screen. Setting the visibility to >true doesn?t help, neither does setting the loc to somewhere on screen. > >Has anybody run into this with LC 8? Maybe there?s something about >Windows 10 I don?t get, like some sort of virtual desktop, ?Spaces? thing. > >Any ideas appreciated. > >Devin > >Devin Asay >Learn to code with LiveCode University >https://livecode.com/store/education/ > > > > >_______________________________________________ >use-livecode mailing list >use-livecode at 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 Jun 16 15:20:06 2016 From: devin_asay at byu.edu (Devin Asay) Date: Thu, 16 Jun 2016 19:20:06 +0000 Subject: Windows 10 script editor problem In-Reply-To: References: <0D466781-276D-4CAE-9D21-A512530F6EE5@gmail.com> Message-ID: <20F1070F-137D-49F9-9C80-9066EB61DCB6@byu.edu> > On Jun 16, 2016, at 1:17 PM, Scott Rossi wrote: > > Did you try checking the editor window's location or topLeft and verifying > that it's within the screenRect? > Yeah, I tried that. No dice. Set the topLeft to 100,100. > > On 6/16/16, 12:10 PM, "use-livecode on behalf of Devin Asay" > > wrote: > >> Hi all, >> >> I have a student who is trying to run 8.1.0DP1 on her Windows 10 laptop. >> It installs and launches, and she can open a stack, but when she tries to >> open a script editor window, it does not appear. There is a tab for it on >> the task bar, but clicking on the tab doesn?t bring up the editor window. >> It?s almost like it?s invisible or off screen somewhere. I tried showing >> IDE windows in the View menu, and I can see it in the Project Manager >> list, but again, it won?t appear on the screen. Setting the visibility to >> true doesn?t help, neither does setting the loc to somewhere on screen. >> >> Has anybody run into this with LC 8? Maybe there?s something about >> Windows 10 I don?t get, like some sort of virtual desktop, ?Spaces? thing. >> >> Any ideas appreciated. >> >> Devin >> >> Devin Asay >> Learn to code with LiveCode University >> https://livecode.com/store/education/ >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Office of Digital Humanities Brigham Young University From dsc at swcp.com Thu Jun 16 15:25:28 2016 From: dsc at swcp.com (Dar Scott) Date: Thu, 16 Jun 2016 13:25:28 -0600 Subject: Windows 10 script editor problem In-Reply-To: <20F1070F-137D-49F9-9C80-9066EB61DCB6@byu.edu> References: <0D466781-276D-4CAE-9D21-A512530F6EE5@gmail.com> <20F1070F-137D-49F9-9C80-9066EB61DCB6@byu.edu> Message-ID: Check the screenRect? > On Jun 16, 2016, at 1:20 PM, Devin Asay wrote: > > >> On Jun 16, 2016, at 1:17 PM, Scott Rossi wrote: >> >> Did you try checking the editor window's location or topLeft and verifying >> that it's within the screenRect? >> > > Yeah, I tried that. No dice. Set the topLeft to 100,100. > >> >> On 6/16/16, 12:10 PM, "use-livecode on behalf of Devin Asay" >> >> wrote: >> >>> Hi all, >>> >>> I have a student who is trying to run 8.1.0DP1 on her Windows 10 laptop. >>> It installs and launches, and she can open a stack, but when she tries to >>> open a script editor window, it does not appear. There is a tab for it on >>> the task bar, but clicking on the tab doesn?t bring up the editor window. >>> It?s almost like it?s invisible or off screen somewhere. I tried showing >>> IDE windows in the View menu, and I can see it in the Project Manager >>> list, but again, it won?t appear on the screen. Setting the visibility to >>> true doesn?t help, neither does setting the loc to somewhere on screen. >>> >>> Has anybody run into this with LC 8? Maybe there?s something about >>> Windows 10 I don?t get, like some sort of virtual desktop, ?Spaces? thing. >>> >>> Any ideas appreciated. >>> >>> Devin >>> >>> Devin Asay >>> Learn to code with LiveCode University >>> https://livecode.com/store/education/ >>> >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > Devin Asay > Office of Digital Humanities > Brigham Young University > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 16 15:32:27 2016 From: devin_asay at byu.edu (Devin Asay) Date: Thu, 16 Jun 2016 19:32:27 +0000 Subject: Windows 10 script editor problem In-Reply-To: References: <0D466781-276D-4CAE-9D21-A512530F6EE5@gmail.com> <20F1070F-137D-49F9-9C80-9066EB61DCB6@byu.edu> Message-ID: <1ED5E704-D2F1-4CAB-AC4B-BCF7B23609A5@byu.edu> Didn?t do that specifically, but it seemed like the resolution was set to an acceptable size. What we finally ended up doing that worked was to have her create a new user account and reopen livecode. Script editor window shows up normally in the new account. So? weird Win 10 setting or corrupted prefs file? Devin > On Jun 16, 2016, at 1:25 PM, Dar Scott wrote: > > Check the screenRect? > > >> On Jun 16, 2016, at 1:20 PM, Devin Asay wrote: >> >> >>> On Jun 16, 2016, at 1:17 PM, Scott Rossi wrote: >>> >>> Did you try checking the editor window's location or topLeft and verifying >>> that it's within the screenRect? >>> >> >> Yeah, I tried that. No dice. Set the topLeft to 100,100. >> >>> >>> On 6/16/16, 12:10 PM, "use-livecode on behalf of Devin Asay" >>> >>> wrote: >>> >>>> Hi all, >>>> >>>> I have a student who is trying to run 8.1.0DP1 on her Windows 10 laptop. >>>> It installs and launches, and she can open a stack, but when she tries to >>>> open a script editor window, it does not appear. There is a tab for it on >>>> the task bar, but clicking on the tab doesn?t bring up the editor window. >>>> It?s almost like it?s invisible or off screen somewhere. I tried showing >>>> IDE windows in the View menu, and I can see it in the Project Manager >>>> list, but again, it won?t appear on the screen. Setting the visibility to >>>> true doesn?t help, neither does setting the loc to somewhere on screen. >>>> >>>> Has anybody run into this with LC 8? Maybe there?s something about >>>> Windows 10 I don?t get, like some sort of virtual desktop, ?Spaces? thing. >>>> >>>> Any ideas appreciated. >>>> >>>> Devin >>>> >>>> Devin Asay >>>> Learn to code with LiveCode University >>>> https://livecode.com/store/education/ >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> Devin Asay >> Office of Digital Humanities >> Brigham Young University >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Office of Digital Humanities Brigham Young University From dsc at swcp.com Thu Jun 16 15:39:33 2016 From: dsc at swcp.com (Dar Scott) Date: Thu, 16 Jun 2016 13:39:33 -0600 Subject: Windows 10 script editor problem In-Reply-To: <1ED5E704-D2F1-4CAB-AC4B-BCF7B23609A5@byu.edu> References: <0D466781-276D-4CAE-9D21-A512530F6EE5@gmail.com> <20F1070F-137D-49F9-9C80-9066EB61DCB6@byu.edu> <1ED5E704-D2F1-4CAB-AC4B-BCF7B23609A5@byu.edu> Message-ID: <1803C19E-C5A2-44CB-944A-76BD5F9E0574@swcp.com> I wasn't thinking resolution, but some surprise, like ten monitors or a super huge monitor. Maybe there was something weird in your remote desktop settings that was cleared in the new account. My inclination is to blame 10. Dar > On Jun 16, 2016, at 1:32 PM, Devin Asay wrote: > > Didn?t do that specifically, but it seemed like the resolution was set to an acceptable size. > > What we finally ended up doing that worked was to have her create a new user account and reopen livecode. Script editor window shows up normally in the new account. So? weird Win 10 setting or corrupted prefs file? > > Devin > > >> On Jun 16, 2016, at 1:25 PM, Dar Scott wrote: >> >> Check the screenRect? >> >> >>> On Jun 16, 2016, at 1:20 PM, Devin Asay wrote: >>> >>> >>>> On Jun 16, 2016, at 1:17 PM, Scott Rossi wrote: >>>> >>>> Did you try checking the editor window's location or topLeft and verifying >>>> that it's within the screenRect? >>>> >>> >>> Yeah, I tried that. No dice. Set the topLeft to 100,100. >>> >>>> >>>> On 6/16/16, 12:10 PM, "use-livecode on behalf of Devin Asay" >>>> >>>> wrote: >>>> >>>>> Hi all, >>>>> >>>>> I have a student who is trying to run 8.1.0DP1 on her Windows 10 laptop. >>>>> It installs and launches, and she can open a stack, but when she tries to >>>>> open a script editor window, it does not appear. There is a tab for it on >>>>> the task bar, but clicking on the tab doesn?t bring up the editor window. >>>>> It?s almost like it?s invisible or off screen somewhere. I tried showing >>>>> IDE windows in the View menu, and I can see it in the Project Manager >>>>> list, but again, it won?t appear on the screen. Setting the visibility to >>>>> true doesn?t help, neither does setting the loc to somewhere on screen. >>>>> >>>>> Has anybody run into this with LC 8? Maybe there?s something about >>>>> Windows 10 I don?t get, like some sort of virtual desktop, ?Spaces? thing. >>>>> >>>>> Any ideas appreciated. >>>>> >>>>> Devin >>>>> >>>>> Devin Asay >>>>> Learn to code with LiveCode University >>>>> https://livecode.com/store/education/ >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> Devin Asay >>> Office of Digital Humanities >>> Brigham Young University >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > Devin Asay > Office of Digital Humanities > Brigham Young University > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 16 15:41:16 2016 From: devin_asay at byu.edu (Devin Asay) Date: Thu, 16 Jun 2016 19:41:16 +0000 Subject: Windows 10 script editor problem In-Reply-To: <1803C19E-C5A2-44CB-944A-76BD5F9E0574@swcp.com> References: <0D466781-276D-4CAE-9D21-A512530F6EE5@gmail.com> <20F1070F-137D-49F9-9C80-9066EB61DCB6@byu.edu> <1ED5E704-D2F1-4CAB-AC4B-BCF7B23609A5@byu.edu> <1803C19E-C5A2-44CB-944A-76BD5F9E0574@swcp.com> Message-ID: <3A34C520-FC84-4EAB-901E-160805B66FFD@byu.edu> > On Jun 16, 2016, at 1:39 PM, Dar Scott wrote: > > I wasn't thinking resolution, but some surprise, like ten monitors or a super huge monitor. > > Maybe there was something weird in your remote desktop settings that was cleared in the new account. > > My inclination is to blame 10. My sentiments exactly. ;) Devin Asay Office of Digital Humanities Brigham Young University From scott at tactilemedia.com Thu Jun 16 16:06:25 2016 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 16 Jun 2016 13:06:25 -0700 Subject: Windows 10 script editor problem In-Reply-To: <20F1070F-137D-49F9-9C80-9066EB61DCB6@byu.edu> References: <0D466781-276D-4CAE-9D21-A512530F6EE5@gmail.com> <20F1070F-137D-49F9-9C80-9066EB61DCB6@byu.edu> Message-ID: The script editor in v7 also seems to suffer from display issues. Once I've ruled out blendLevel and position, the only way I've been able to get it to reappear is issue "close stack