From scott at elementarysoftware.com Thu Dec 1 01:03:34 2016 From: scott at elementarysoftware.com (Scott Morrow) Date: Wed, 30 Nov 2016 22:03:34 -0800 Subject: Widget request (native text scroller for iOS) In-Reply-To: <841c9bcd-30c8-3af1-c365-972913e21b5b@hyperactivesw.com> References: <7C70542E-3A81-491F-ACE1-AF9C6E37A6DE@gmail.com> <4ED0D621-03DA-40F9-BACC-CACB965B1967@gmail.com> <841c9bcd-30c8-3af1-c365-972913e21b5b@hyperactivesw.com> Message-ID: <0B8FED28-99FF-4CD1-B57C-C7698553999E@elementarysoftware.com> John, I?ve put some pretty complex groups under an iOS scroller and had it work quite well. My problem is that I forget the on scrollerDidScroll hOffset, vOffset // When the user scrolls move the displayed content set the vScroll of group "scrollArea" to vOffset end scrollerDidScroll part of the script almost every time and end up scratching my head for a bit. I suppose because desktop fields don?t need this. I figure I only need to scratch my head a few more times and then I?ll start remembering. ? Scott > On Nov 30, 2016, at 12:34 PM, J. Landman Gay wrote: > > On 11/30/16 7:35 AM, John Allijn wrote: >> I can?t get the scroller working > > I haven't had any problem with scrollers on either iOS or Android, barring a specific vScroll bug that's been reported. (http://quality.livecode.com/show_bug.cgi?id=18924) Aside from that they work very well as long as you follow the instructions here: > > > > Scrollers are picky, you have to make sure that: > > 1. The full length of the field is displayed. It can't be a scrolling field, it has to be a very tall field at its full height so all content is visible. It's okay if it runs off the window. > 2. The field must have lockloc set to true. > 3. The field must be in a group, and generally it's the only thing in the group. The group should be sized to the rectangle you want the user to see. It's lockloc must be set to true. > 4. For now (until the bug is fixed) the vScroll of the group should be set to 0 when the mobile scroller is created, and the mobile vScroll should also be 0. (A workaround is in the bug report if you want to set the vScroll to something else.) > > I have a simplified handler that creates a mobile scroller which has been working for a long time. The only parameter it needs is the short name of the group that contains the field. (The content of the group doesn't have to be a field, it can be an image or anything else.) > > I find that using names instead of IDs is much easier because you don't have to bother with "the result" or track the reference in a script local. It just works, provided each scrolling group has a unique name. When you want to delete the scroller you can also just use the name. This handler automatically creates a scroller with the same name as the group it is scrolling. > > command createScroller pName > if the environment is not "mobile" then exit createScroller > deleteMobileControl pName -- custom handler, in case one already exists > set the vScroll of control pName to 0 -- init for alignment > set the hScroll of control pName to 0 > mobileControlCreate "scroller", pName > mobileControlSet pName, "rect", the rect of control pName > put (0,0,the formattedwidth of control pName,the formattedheight of control pName) into tRect > mobileControlSet pName, "contentRect",tRect > mobileControlSet pName, "hScroll",0 > mobileControlSet pName, "vScroll",0 > mobileControlSet pName, "hIndicator",false > mobileControlSet pName, "vIndicator",true > mobileControlSet pName, "visible", true > end createScroller > > This is enough to create a basic scroller. There are other settings you might want to add for iOS, such as the canBounce, etc., and you may want to change the v and h indicator settings. Adding more settings is easy, but the above does the basic work. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Thu Dec 1 01:08:29 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 1 Dec 2016 08:08:29 +0200 Subject: Clone graphic does not respect dimensions In-Reply-To: <5E4806B4-322D-42C0-9CCD-D1CB1D7F201B@unimelb.edu.au> References: <5E4806B4-322D-42C0-9CCD-D1CB1D7F201B@unimelb.edu.au> Message-ID: Was the graphic locked? Richmond. On 12/1/16 2:48 am, Michael Julian Lew wrote: > When I clone a graphic (an 8 by 8 pixel oval) in LiveCode 8.1.1 the copy comes out at the default size for a new oval, 120 by 120. That would not be a clone, in my opinion. Is it correct behaviour? > > Michael > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Thu Dec 1 02:10:50 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 1 Dec 2016 01:10:50 -0600 Subject: molassus IDE and revInternal_savePrefs In-Reply-To: References: <158b8689338.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <2962d1aa-d7c3-ff63-2d56-e9fe3bd76b28@hyperactivesw.com> On 11/30/16 10:21 PM, Dr. Hawkins wrote: > On Wed, Nov 30, 2016 at 7:23 PM, J. Landman Gay > wrote: > >> I suppose it wouldn't hurt to delete your preferences file. Who knows, it >> might perform some magic. >> > > I tried going back to 8.1, which was noticeably better, and 7.1.4, which > was *much* better. > > Deleting the red dots didn't do it in 8.1.2. I meant the prefs file in ~/Library/Preferences/RunRev/LiveCode7.rev -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bernd.niggemann at uni-wh.de Thu Dec 1 04:08:04 2016 From: bernd.niggemann at uni-wh.de (BNig) Date: Thu, 1 Dec 2016 01:08:04 -0800 (PST) Subject: Clone graphic does not respect dimensions In-Reply-To: <4EEEAE41-94DC-486D-AD30-440341EDF507@tactilemedia.com> References: <5E4806B4-322D-42C0-9CCD-D1CB1D7F201B@unimelb.edu.au> <4EEEAE41-94DC-486D-AD30-440341EDF507@tactilemedia.com> Message-ID: <1480583284124-4710784.post@n4.nabble.com> Scott Rossi wrote > It's wrong but it's always been like this. LC doesn't like graphics > smaller than 9 pixels. > > Regards, > > Scott Rossi that is determined somewhat arbitrarily by the revBackScriptLibrary in handler on newGraphic if the width of the target < 9 and the height of the target < 9 then .... use default values if you set those values to "<8" then it lets you clone a 8 by 8 graphic. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Clone-graphic-does-not-respect-dimensions-tp4710776p4710784.html Sent from the Revolution - User mailing list archive at Nabble.com. From benr_mc at cogapp.com Thu Dec 1 06:12:40 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 1 Dec 2016 11:12:40 +0000 Subject: tsNet docs/sample stacks Message-ID: <6a2aa644-c550-f750-1f5b-85d5bd67fe55@cogapp.com> (I asked this at the end of a chain about email formatting libraries but I think it got lost.) When I asked that question, Matthias referenced this https://downloads.techstrategies.com.au/tsnet/LCMail.livecode which I didn't know about. Apart from entries in the dictionary, I've not found any documentation for tsNet; and I can't list the above directory to see if there are other sample stacks. Did I miss a post with handy pointers, in the great use-list bounce disaster? TIA, Ben From roger.e.eller at sealedair.com Thu Dec 1 09:33:53 2016 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 1 Dec 2016 09:33:53 -0500 Subject: [ANN] XLSX Library ready for a test - Looking for testers In-Reply-To: References: Message-ID: Zyrip, The report looks similar in Excel 2010 (Win), and Libre Office 4.3 (Mac). Mac Preview didn't render any of the totals. I had to reduce the font size in Libre Office to have a similar appearance, otherwise the totals were shown as ####. There was one difference in cell content. And lastly, the sample executable should either show progress, or use a busy cursor when generating the report. VERY NICELY DONE!! This library could be quite useful in business apps! ~Roger On Wed, Nov 30, 2016 at 6:36 PM, zryip theSlug wrote: > Dear LiveCode Users, > > We are working on a new Library capable to read / write / update xlsx > files without the help of MS Excel. > The Library is dealing natively with LiveCode (and the help of revXML > and revZip) with the Office Open XML format. > > We are actually in alpha version and we have prepared a small > application for validating our capability to generate xlsx files > readable by every solution capable of opening an xlsx file: MS Excel > standalone or online, OpenOffice, LibreOffice, Google Sheets, etc > > For extending our tests to different environments and applications we > are looking for some testers ready to help: > - by playing with our "Salestore report generator" application. Few > clicks are required for preparing the report + 30 secs to 1 minute, > the time for the Lib to create a report of about 700 lines * 8 columns > with styles and formulae. > - opening the generated xlsx file with the solution they have. > - reporting the result of their tests by dropping me a small note. > > We have prepared different versions of our test application: linux, > mac and windows. > All the versions are available by following this link: > http://www.aslugontheroad.com/download/category/9-salestore- > report-generator-xlsx-lib-test > > > Thanks in advance for any help. > > > Best Regards, > -- > Zryip TheSlug > http://www.aslugontheroad.com > From ambassador at fourthworld.com Thu Dec 1 10:39:39 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 1 Dec 2016 07:39:39 -0800 Subject: Clone graphic does not respect dimensions In-Reply-To: <1480583284124-4710784.post@n4.nabble.com> References: <1480583284124-4710784.post@n4.nabble.com> Message-ID: <58061661-fb67-8af2-5fac-b146dc0bb580@fourthworld.com> BNig wrote: > Scott Rossi wrote >> It's wrong but it's always been like this. LC doesn't like graphics >> smaller than 9 pixels. >> >> Regards, >> >> Scott Rossi > > that is determined somewhat arbitrarily by the revBackScriptLibrary in > handler > > on newGraphic > if the width of the target < 9 and the height of the target < 9 then > .... use default values > > if you set those values to "<8" then it lets you clone a 8 by 8 > graphic. Would that be a user experience bug? What would be a good reason to prevent the user from doing a reasonable action like this? If the size is explicitly set, why not let it remain so? -- 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 matthias_livecode_150811 at m-r-d.de Thu Dec 1 11:10:10 2016 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 1 Dec 2016 17:10:10 +0100 Subject: tsNet docs/sample stacks In-Reply-To: <6a2aa644-c550-f750-1f5b-85d5bd67fe55@cogapp.com> References: <6a2aa644-c550-f750-1f5b-85d5bd67fe55@cogapp.com> Message-ID: There is at least one other stack available at that location https://downloads.techstrategies.com.au/tsnet/sample_async_post.livecode And there was a sample stack from Neill Roger somewhere. I cannot find the URL anymore. Will look over the weekend. tsNet is so powerful, but there is definitively a need for more sample stacks. Matthias > Am 01.12.2016 um 12:12 schrieb Ben Rubinstein : > > (I asked this at the end of a chain about email formatting libraries but I think it got lost.) > > When I asked that question, Matthias referenced this > https://downloads.techstrategies.com.au/tsnet/LCMail.livecode > > which I didn't know about. Apart from entries in the dictionary, I've not found any documentation for tsNet; and I can't list the above directory to see if there are other sample stacks. > > Did I miss a post with handy pointers, in the great use-list bounce disaster? > > TIA, > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From revolution at jaedworks.com Thu Dec 1 11:38:15 2016 From: revolution at jaedworks.com (Jeanne A. E. DeVoto) Date: Thu, 1 Dec 2016 08:38:15 -0800 Subject: Clone graphic does not respect dimensions In-Reply-To: <58061661-fb67-8af2-5fac-b146dc0bb580@fourthworld.com> References: <1480583284124-4710784.post@n4.nabble.com> <58061661-fb67-8af2-5fac-b146dc0bb580@fourthworld.com> Message-ID: At 7:39 AM -0800 12/1/2016, Richard Gaskin wrote: >BNig wrote: >> Scott Rossi wrote >>> It's wrong but it's always been like this. LC doesn't like graphics > >> smaller than 9 pixels. > > >> that is determined somewhat arbitrarily by the revBackScriptLibrary in >> handler >> >> on newGraphic >> if the width of the target < 9 and the height of the target < 9 then > > .... use default values > >Would that be a user experience bug? > >What would be a good reason to prevent the user from doing a >reasonable action like this? > >If the size is explicitly set, why not let it remain so? I expect this was done to prevent the case where someone: 1. chooses a graphic tool from the Tools palette 2. clicks to start dragging out the graphic 3. accidentally double-clicks instead and ends the graphic, resulting in an unintentionally-tiny graphic It also lets you click once with a graphic tool to create a default-size graphic at that spot. Perhaps newGraphic could test what tool is chosen, and change the size only if the tool is "graphic". From skiplondon at gmail.com Thu Dec 1 12:06:02 2016 From: skiplondon at gmail.com (Skip Kimpel) Date: Thu, 1 Dec 2016 12:06:02 -0500 Subject: tsNet docs/sample stacks In-Reply-To: References: <6a2aa644-c550-f750-1f5b-85d5bd67fe55@cogapp.com> Message-ID: Here is a nice stack from the creators of tsNet that demonstrates some of the key functionality. You can grab some code from this stack... I have put it up on my server so you can take experiment with it. http://magicgate.com/files/tsNet_Sample_Sync_Stack.livecode SKIP On Thu, Dec 1, 2016 at 11:10 AM, Matthias Rebbe < matthias_livecode_150811 at m-r-d.de> wrote: > There is at least one other stack available at that location > > https://downloads.techstrategies.com.au/tsnet/sample_async_post.livecode < > https://downloads.techstrategies.com.au/tsnet/sample_async_post.livecode> > > And there was a sample stack from Neill Roger somewhere. I cannot find the > URL anymore. > > Will look over the weekend. > > tsNet is so powerful, but there is definitively a need for more sample > stacks. > > Matthias > > > Am 01.12.2016 um 12:12 schrieb Ben Rubinstein : > > > > (I asked this at the end of a chain about email formatting libraries but > I think it got lost.) > > > > When I asked that question, Matthias referenced this > > https://downloads.techstrategies.com.au/tsnet/LCMail.livecode > > > > which I didn't know about. Apart from entries in the dictionary, I've > not found any documentation for tsNet; and I can't list the above directory > to see if there are other sample stacks. > > > > Did I miss a post with handy pointers, in the great use-list bounce > disaster? > > > > TIA, > > > > Ben > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From benr_mc at cogapp.com Thu Dec 1 12:31:58 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 1 Dec 2016 17:31:58 +0000 Subject: tsNet docs/sample stacks In-Reply-To: References: <6a2aa644-c550-f750-1f5b-85d5bd67fe55@cogapp.com> Message-ID: <8696e1da-701b-8bfe-cfc6-cacfb1005b99@cogapp.com> Thanks both of you... by my real question is how do you know about these sample stacks? Is their existence being revealed one by one on a need-to-know basis? On 01/12/2016 17:06, Skip Kimpel wrote: > Here is a nice stack from the creators of tsNet that demonstrates some of > the key functionality. You can grab some code from this stack... I have > put it up on my server so you can take experiment with it. > > http://magicgate.com/files/tsNet_Sample_Sync_Stack.livecode > > SKIP > > > On Thu, Dec 1, 2016 at 11:10 AM, Matthias Rebbe < > matthias_livecode_150811 at m-r-d.de> wrote: > >> There is at least one other stack available at that location >> >> https://downloads.techstrategies.com.au/tsnet/sample_async_post.livecode < >> https://downloads.techstrategies.com.au/tsnet/sample_async_post.livecode> >> >> And there was a sample stack from Neill Roger somewhere. I cannot find the >> URL anymore. >> >> Will look over the weekend. >> >> tsNet is so powerful, but there is definitively a need for more sample >> stacks. >> >> Matthias >> >>> Am 01.12.2016 um 12:12 schrieb Ben Rubinstein : >>> >>> (I asked this at the end of a chain about email formatting libraries but >> I think it got lost.) >>> >>> When I asked that question, Matthias referenced this >>> https://downloads.techstrategies.com.au/tsnet/LCMail.livecode >>> >>> which I didn't know about. Apart from entries in the dictionary, I've >> not found any documentation for tsNet; and I can't list the above directory >> to see if there are other sample stacks. >>> >>> Did I miss a post with handy pointers, in the great use-list bounce >> disaster? >>> >>> TIA, >>> >>> Ben From paul at smarttsoftware.co.uk Thu Dec 1 13:10:38 2016 From: paul at smarttsoftware.co.uk (Paul Richards) Date: Thu, 1 Dec 2016 18:10:38 +0000 Subject: tsNet docs/sample stacks In-Reply-To: <8696e1da-701b-8bfe-cfc6-cacfb1005b99@cogapp.com> References: <6a2aa644-c550-f750-1f5b-85d5bd67fe55@cogapp.com> , <8696e1da-701b-8bfe-cfc6-cacfb1005b99@cogapp.com> Message-ID: I originally found out about tsNet and the sample stacks here: https://livecode.com/tsnet-new-networking-capabilities-for-livecode/ From: Ben Rubinstein Sent: 01 December 2016 17:45 To: How to use LiveCode Subject: Re: tsNet docs/sample stacks Thanks both of you... by my real question is how do you know about these sample stacks? Is their existence being revealed one by one on a need-to-know basis? On 01/12/2016 17:06, Skip Kimpel wrote: > Here is a nice stack from the creators of tsNet that demonstrates some of > the key functionality. You can grab some code from this stack... I have > put it up on my server so you can take experiment with it. > > http://magicgate.com/files/tsNet_Sample_Sync_Stack.livecode > > SKIP > > > On Thu, Dec 1, 2016 at 11:10 AM, Matthias Rebbe < > matthias_livecode_150811 at m-r-d.de> wrote: > >> There is at least one other stack available at that location >> >> https://downloads.techstrategies.com.au/tsnet/sample_async_post.livecode < >> https://downloads.techstrategies.com.au/tsnet/sample_async_post.livecode> >> >> And there was a sample stack from Neill Roger somewhere. I cannot find the >> URL anymore. >> >> Will look over the weekend. >> >> tsNet is so powerful, but there is definitively a need for more sample >> stacks. >> >> Matthias >> >>> Am 01.12.2016 um 12:12 schrieb Ben Rubinstein : >>> >>> (I asked this at the end of a chain about email formatting libraries but >> I think it got lost.) >>> >>> When I asked that question, Matthias referenced this >>> https://downloads.techstrategies.com.au/tsnet/LCMail.livecode >>> >>> which I didn't know about. Apart from entries in the dictionary, I've >> not found any documentation for tsNet; and I can't list the above directory >> to see if there are other sample stacks. >>> >>> Did I miss a post with handy pointers, in the great use-list bounce >> disaster? >>> >>> TIA, >>> >>> Ben _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From skiplondon at gmail.com Thu Dec 1 13:11:26 2016 From: skiplondon at gmail.com (Skip Kimpel) Date: Thu, 1 Dec 2016 13:11:26 -0500 Subject: tsNet docs/sample stacks In-Reply-To: <8696e1da-701b-8bfe-cfc6-cacfb1005b99@cogapp.com> References: <6a2aa644-c550-f750-1f5b-85d5bd67fe55@cogapp.com> <8696e1da-701b-8bfe-cfc6-cacfb1005b99@cogapp.com> Message-ID: There was some discussion awhile back where I first started to get some information and some links. I had unresolved questions and issues so I went to LC tech support and they reached out to the creator of tsNet to create that demo that I gave a link to. I was specifically looking for examples for SFTP operations. SKIP On Thu, Dec 1, 2016 at 12:31 PM, Ben Rubinstein wrote: > Thanks both of you... by my real question is how do you know about these > sample stacks? Is their existence being revealed one by one on a > need-to-know basis? > > > On 01/12/2016 17:06, Skip Kimpel wrote: > >> Here is a nice stack from the creators of tsNet that demonstrates some of >> the key functionality. You can grab some code from this stack... I have >> put it up on my server so you can take experiment with it. >> >> http://magicgate.com/files/tsNet_Sample_Sync_Stack.livecode >> >> SKIP >> >> >> On Thu, Dec 1, 2016 at 11:10 AM, Matthias Rebbe < >> matthias_livecode_150811 at m-r-d.de> wrote: >> >> There is at least one other stack available at that location >>> >>> https://downloads.techstrategies.com.au/tsnet/sample_async_post.livecode >>> < >>> https://downloads.techstrategies.com.au/tsnet/sample_async_post.livecode >>> > >>> >>> And there was a sample stack from Neill Roger somewhere. I cannot find >>> the >>> URL anymore. >>> >>> Will look over the weekend. >>> >>> tsNet is so powerful, but there is definitively a need for more sample >>> stacks. >>> >>> Matthias >>> >>> Am 01.12.2016 um 12:12 schrieb Ben Rubinstein : >>>> >>>> (I asked this at the end of a chain about email formatting libraries but >>>> >>> I think it got lost.) >>> >>>> >>>> When I asked that question, Matthias referenced this >>>> https://downloads.techstrategies.com.au/tsnet/LCMail.livecode >>>> >>>> which I didn't know about. Apart from entries in the dictionary, I've >>>> >>> not found any documentation for tsNet; and I can't list the above >>> directory >>> to see if there are other sample stacks. >>> >>>> >>>> Did I miss a post with handy pointers, in the great use-list bounce >>>> >>> disaster? >>> >>>> >>>> TIA, >>>> >>>> Ben >>>> >>> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From benr_mc at cogapp.com Thu Dec 1 13:18:40 2016 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 1 Dec 2016 18:18:40 +0000 Subject: tsNet docs/sample stacks In-Reply-To: References: <6a2aa644-c550-f750-1f5b-85d5bd67fe55@cogapp.com> <8696e1da-701b-8bfe-cfc6-cacfb1005b99@cogapp.com> Message-ID: <9e2e94cd-eef1-ed0d-6002-07d92fa18213@cogapp.com> I see - thanks Paul and Skip. Ben On 01/12/2016 18:11, Skip Kimpel wrote: > There was some discussion awhile back where I first started to get some > information and some links. I had unresolved questions and issues so I > went to LC tech support and they reached out to the creator of tsNet to > create that demo that I gave a link to. I was specifically looking for > examples for SFTP operations. > > SKIP > > On Thu, Dec 1, 2016 at 12:31 PM, Ben Rubinstein wrote: > >> Thanks both of you... by my real question is how do you know about these >> sample stacks? Is their existence being revealed one by one on a >> need-to-know basis? >> >> >> On 01/12/2016 17:06, Skip Kimpel wrote: >> >>> Here is a nice stack from the creators of tsNet that demonstrates some of >>> the key functionality. You can grab some code from this stack... I have >>> put it up on my server so you can take experiment with it. >>> >>> http://magicgate.com/files/tsNet_Sample_Sync_Stack.livecode >>> >>> SKIP >>> >>> >>> On Thu, Dec 1, 2016 at 11:10 AM, Matthias Rebbe < >>> matthias_livecode_150811 at m-r-d.de> wrote: >>> >>> There is at least one other stack available at that location >>>> >>>> https://downloads.techstrategies.com.au/tsnet/sample_async_post.livecode >>>> < >>>> https://downloads.techstrategies.com.au/tsnet/sample_async_post.livecode >>>>> >>>> >>>> And there was a sample stack from Neill Roger somewhere. I cannot find >>>> the >>>> URL anymore. >>>> >>>> Will look over the weekend. >>>> >>>> tsNet is so powerful, but there is definitively a need for more sample >>>> stacks. >>>> >>>> Matthias >>>> >>>> Am 01.12.2016 um 12:12 schrieb Ben Rubinstein : >>>>> >>>>> (I asked this at the end of a chain about email formatting libraries but >>>>> >>>> I think it got lost.) >>>> >>>>> >>>>> When I asked that question, Matthias referenced this >>>>> https://downloads.techstrategies.com.au/tsnet/LCMail.livecode >>>>> >>>>> which I didn't know about. Apart from entries in the dictionary, I've >>>>> >>>> not found any documentation for tsNet; and I can't list the above >>>> directory >>>> to see if there are other sample stacks. >>>> >>>>> >>>>> Did I miss a post with handy pointers, in the great use-list bounce >>>>> >>>> disaster? >>>> >>>>> >>>>> TIA, >>>>> >>>>> Ben From ambassador at fourthworld.com Thu Dec 1 13:38:44 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 1 Dec 2016 10:38:44 -0800 Subject: Clone graphic does not respect dimensions In-Reply-To: References: Message-ID: <18dd3462-393b-b473-5baf-01660b56b83f@fourthworld.com> Jeanne A. E. DeVoto wrote: > At 7:39 AM -0800 12/1/2016, Richard Gaskin wrote: >>BNig wrote: >>> that is determined somewhat arbitrarily by the >>> revBackScriptLibrary in handler >>> >>> on newGraphic >>> if the width of the target < 9 and the height of the target < 9 then >> > .... use default values >> >> Would that be a user experience bug? >> >> What would be a good reason to prevent the user from doing a >> reasonable action like this? >> >> If the size is explicitly set, why not let it remain so? > > I expect this was done to prevent the case where someone: > 1. chooses a graphic tool from the Tools palette > 2. clicks to start dragging out the graphic > 3. accidentally double-clicks instead and ends the graphic, resulting > in an unintentionally-tiny graphic > > It also lets you click once with a graphic tool to create a > default-size graphic at that spot. > > Perhaps newGraphic could test what tool is chosen, and change the > size only if the tool is "graphic". I can see the benefit of minimizing occurrences of objects that are *prohibitively* small to work with, but am less enthused about constraining options for the user at the much lower threshold of mere possible inconvenience. I'd opt for a 4px threshold. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dochawk at gmail.com Thu Dec 1 14:12:07 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 1 Dec 2016 11:12:07 -0800 Subject: LC suddenly sending using library stack for script editor field calls In-Reply-To: References: Message-ID: On Tue, Nov 29, 2016 at 2:25 PM, Monte Goulding wrote: > > The IDE and your stack are running in the same engine so if you add a > handler for a message sent to an IDE stack but unhandled or passed to a > library or backScript then it will get it. Having said that I think the IDE > should probably have an event trapper backScript we apply to all the stacks > so that they don?t pass through to user stacks lower in the message path so > please open a report about this. I'll file that, but it just got odder When the development environment is detected, a couple of scripts fire to make sure that I don't overwrite yesterday's work, and open a few scripts to edit. All of my regular stacks (i.e., the ones that will ship, not my dev tools) share a behavior (src_mcp). I deleted my live code prefs before starting this morning for good measure. After everything settles, I search for the routine I want (ckVersDat) from the find control below the script. When I then click into the script window, the closeField handler from src_mcp fires. src_mcp is *not* set as a library stack although it is prolific. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Thu Dec 1 14:32:24 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 1 Dec 2016 11:32:24 -0800 Subject: live code seems to gratuitously unlock write permission for directories Message-ID: livecode seems to be gratuitously unlocking directories. I launch live code, and then "chmod -w" the directory of the stack. On quit, it restores write permission! If I use shell (chmod -w someDir), it apparently unlocks it before returning from shell! I'm trying to put in a failsafe that prevents overwriting older files. Do I need to change the owner of the files for this??? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From zryip.theslug at gmail.com Thu Dec 1 14:34:33 2016 From: zryip.theslug at gmail.com (zryip theSlug) Date: Thu, 1 Dec 2016 20:34:33 +0100 Subject: [ANN] XLSX Library ready for a test - Looking for testers In-Reply-To: References: Message-ID: Roger, Thanks for your feedback. 1. In my experience, the #### is due to the column width. When the column is not large enough to display the content, instead of truncating the number, the #### are displayed. The app sample is only resizing the first column. I can apply a resize to the others columns. 2. Will have a look to the difference in cell content with Libre Office. Thanks for the screenshot. 3. Will probably add a callback message inside XLSX_Range_Values_Set and XLSX_Range_Styles_Set, to help inform about processing large data. Jim, Thanks for the kind words and for the tests! Best Regards, On Thu, Dec 1, 2016 at 3:33 PM, Roger Eller wrote: > Zyrip, > > The report looks similar in Excel 2010 (Win), and Libre Office 4.3 (Mac). > Mac Preview didn't render any of the totals. > > I had to reduce the font size in Libre Office to have a similar appearance, > otherwise the totals were shown as ####. > There was one difference > in cell > content. > And lastly, the sample executable should either show progress, or use a > busy cursor when generating the report. > > VERY NICELY DONE!! This library could be quite useful in business apps! > > ~Roger > > > On Wed, Nov 30, 2016 at 6:36 PM, zryip theSlug > wrote: > >> Dear LiveCode Users, >> >> We are working on a new Library capable to read / write / update xlsx >> files without the help of MS Excel. >> The Library is dealing natively with LiveCode (and the help of revXML >> and revZip) with the Office Open XML format. >> >> We are actually in alpha version and we have prepared a small >> application for validating our capability to generate xlsx files >> readable by every solution capable of opening an xlsx file: MS Excel >> standalone or online, OpenOffice, LibreOffice, Google Sheets, etc >> >> For extending our tests to different environments and applications we >> are looking for some testers ready to help: >> - by playing with our "Salestore report generator" application. Few >> clicks are required for preparing the report + 30 secs to 1 minute, >> the time for the Lib to create a report of about 700 lines * 8 columns >> with styles and formulae. >> - opening the generated xlsx file with the solution they have. >> - reporting the result of their tests by dropping me a small note. >> >> We have prepared different versions of our test application: linux, >> mac and windows. >> All the versions are available by following this link: >> http://www.aslugontheroad.com/download/category/9-salestore- >> report-generator-xlsx-lib-test >> >> >> Thanks in advance for any help. >> >> >> Best Regards, >> -- >> Zryip TheSlug >> http://www.aslugontheroad.com >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Zryip TheSlug http://www.aslugontheroad.com From dochawk at gmail.com Thu Dec 1 14:53:33 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 1 Dec 2016 11:53:33 -0800 Subject: live code seems to gratuitously unlock write permission for directories In-Reply-To: References: Message-ID: On Thu, Dec 1, 2016 at 11:32 AM, Dr. Hawkins wrote: > I'm trying to put in a failsafe that prevents overwriting older files. Do > I need to change the owner of the files for this??? > That doesn't do it either: get shell ("chmod -w " & oldFlDir && "; chown dhArchive " & oldFlDir) gets chown: /Users/hawk/Documents/dhbk/16/1611/161130: Operation not permitted And I still own the directory, and it's still write-enabled. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Thu Dec 1 15:00:44 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 1 Dec 2016 12:00:44 -0800 Subject: LC suddenly sending using library stack for script editor field calls In-Reply-To: References: Message-ID: now *Bug 18954* - script editor uses user libraries and even behaviors -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dpierce at xpertassist.com Thu Dec 1 16:44:42 2016 From: dpierce at xpertassist.com (Daniel Pierce) Date: Thu, 1 Dec 2016 21:44:42 +0000 Subject: Downloads Directory Message-ID: <01010158bc58be18-a5bb28f5-23b3-4eca-84ac-8e9d71828414-000000@us-west-2.amazonses.com> Question, Last week when Livecode prompted me about the V8.1.2 RC2 release I declined because I was in the middle of a project and didn't have time for the new release. Now I want to download it, but the DOWNLOADS link is gone from the Livecode web site, or I can't find it. Is there any whay to access the previous Downloads directory to get V8.1.2 RC2 or maybe I should ask, how can you access a RC version before it is released outside of the IDE? Thanks for the help. Dan From matthias_livecode_150811 at m-r-d.de Thu Dec 1 16:46:34 2016 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 1 Dec 2016 22:46:34 +0100 Subject: Downloads Directory In-Reply-To: <01010158bc58be18-a5bb28f5-23b3-4eca-84ac-8e9d71828414-000000@us-west-2.amazonses.com> References: <01010158bc58be18-a5bb28f5-23b3-4eca-84ac-8e9d71828414-000000@us-west-2.amazonses.com> Message-ID: <2D8C862C-4C5A-41D3-B998-056329E106E5@m-r-d.de> http://downloads.livecode.com lists all available downloads. Matthias > Am 01.12.2016 um 22:44 schrieb Daniel Pierce : > > Question, > > Last week when Livecode prompted me about the V8.1.2 RC2 release I declined > because I was in the middle of a project and didn't have time for the new > release. Now I want to download it, but the DOWNLOADS link is gone from > the Livecode web site, or I can't find it. > > Is there any whay to access the previous Downloads directory to get V8.1.2 > RC2 or maybe I should ask, how can you access a RC version before it is > released outside of the IDE? > > Thanks for the help. > Dan > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Thu Dec 1 16:47:18 2016 From: klaus at major-k.de (Klaus major-k) Date: Thu, 1 Dec 2016 22:47:18 +0100 Subject: Downloads Directory In-Reply-To: <01010158bc58be18-a5bb28f5-23b3-4eca-84ac-8e9d71828414-000000@us-west-2.amazonses.com> References: <01010158bc58be18-a5bb28f5-23b3-4eca-84ac-8e9d71828414-000000@us-west-2.amazonses.com> Message-ID: <038D2FDE-071A-4986-8123-25A429682B56@major-k.de> Hi Dan, > Am 01.12.2016 um 22:44 schrieb Daniel Pierce : > > Question, > > Last week when Livecode prompted me about the V8.1.2 RC2 release I declined > because I was in the middle of a project and didn't have time for the new > release. Now I want to download it, but the DOWNLOADS link is gone from > the Livecode web site, or I can't find it. > > Is there any whay to access the previous Downloads directory to get V8.1.2 > RC2 or maybe I should ask, how can you access a RC version before it is > released outside of the IDE? > > Thanks for the help. > Dan here we go: Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From lc-developer at xpertassist.com Thu Dec 1 16:50:53 2016 From: lc-developer at xpertassist.com (Livecode XAC) Date: Thu, 1 Dec 2016 15:50:53 -0600 Subject: Downloads Directory In-Reply-To: <038D2FDE-071A-4986-8123-25A429682B56@major-k.de> References: <01010158bc58be18-a5bb28f5-23b3-4eca-84ac-8e9d71828414-000000@us-west-2.amazonses.com> <038D2FDE-071A-4986-8123-25A429682B56@major-k.de> Message-ID: Thanks for the fast response. I'll book mark it as the link is gone. Dan -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Klaus major-k Sent: Thursday, December 01, 2016 3:47 PM To: How to use LiveCode Subject: Re: Downloads Directory Hi Dan, > Am 01.12.2016 um 22:44 schrieb Daniel Pierce : > > Question, > > Last week when Livecode prompted me about the V8.1.2 RC2 release I > declined because I was in the middle of a project and didn't have time for the new > release. Now I want to download it, but the DOWNLOADS link is gone from > the Livecode web site, or I can't find it. > > Is there any whay to access the previous Downloads directory to get > V8.1.2 > RC2 or maybe I should ask, how can you access a RC version before it > is released outside of the IDE? > > Thanks for the help. > Dan here we go: 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 bobsneidar at iotecdigital.com Thu Dec 1 18:08:11 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 1 Dec 2016 23:08:11 +0000 Subject: [ANN] XLSX Library ready for a test - Looking for testers In-Reply-To: References: Message-ID: <5D7F2069-EBE2-40F3-A5F3-57C843ACB64F@iotecdigital.com> I'll give it a go later. Bob S On Nov 30, 2016, at 15:36 , zryip theSlug > wrote: Dear LiveCode Users, We are working on a new Library capable to read / write / update xlsx files without the help of MS Excel. The Library is dealing natively with LiveCode (and the help of revXML and revZip) with the Office Open XML format. From harrison at all-auctions.com Thu Dec 1 19:08:39 2016 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 1 Dec 2016 19:08:39 -0500 Subject: live code seems to gratuitously unlock write permission for directories In-Reply-To: References: Message-ID: Hi Dr. Hawkins, If you just want to prevent overwriting of older files, why don?t you just use a new name for the file. You can always track which file is the newest in a few different ways. For Example: File1, File2, or append a date and time to the file name. At the end of some larger time period you can decide which ones to keep and which to toss out. You don?t have to screw around with file permissions at all then. You can always check for the existence of a file too by name. If the file already exists then you know not to rewrite it. Create a new name for a new file and use that one instead. Still if LC is not doing what it is supposed to, or doing something that it shouldn?t do, it should be fixed. Good luck, Rick > On Dec 1, 2016, at 2:53 PM, Dr. Hawkins wrote: > > On Thu, Dec 1, 2016 at 11:32 AM, Dr. Hawkins wrote: > >> I'm trying to put in a failsafe that prevents overwriting older files. Do >> I need to change the owner of the files for this??? >> > > That doesn't do it either: > > get shell ("chmod -w " & oldFlDir && "; chown dhArchive " & oldFlDir) > > > gets > > chown: /Users/hawk/Documents/dhbk/16/1611/161130: Operation not permitted > > And I still own the directory, and it's still write-enabled. > > -- > 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 michaell at unimelb.edu.au Thu Dec 1 19:27:09 2016 From: michaell at unimelb.edu.au (Michael Julian Lew) Date: Fri, 2 Dec 2016 00:27:09 +0000 Subject: Clone graphic does not respect dimensions Message-ID: <39700040-AC2C-4700-9BAC-185049D4C32F@unimelb.edu.au> Seems to me that if the current restriction on the result of ?clone? is intended to prevent possible problems when tools palette is being used then a very bad design decision was made. A solution should not affect what happens when the user clones an abject that is already in the stack. The script function ?clone? should clone the object _exactly_ when used by itself, but could be used in conjunction with size-dectecting code for the palette. Michael BNig wrote: that is determined somewhat arbitrarily by the revBackScriptLibrary in handler on newGraphic if the width of the target < 9 and the height of the target < 9 then .... use default values Would that be a user experience bug? What would be a good reason to prevent the user from doing a reasonable action like this? If the size is explicitly set, why not let it remain so? I expect this was done to prevent the case where someone: 1. chooses a graphic tool from the Tools palette 2. clicks to start dragging out the graphic 3. accidentally double-clicks instead and ends the graphic, resulting in an unintentionally-tiny graphic It also lets you click once with a graphic tool to create a default-size graphic at that spot. Perhaps newGraphic could test what tool is chosen, and change the size only if the tool is "graphic". I can see the benefit of minimizing occurrences of objects that are *prohibitively* small to work with, but am less enthused about constraining options for the user at the much lower threshold of mere possible inconvenience. I'd opt for a 4px threshold. -- From ambassador at fourthworld.com Thu Dec 1 19:49:54 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 1 Dec 2016 16:49:54 -0800 Subject: Clone graphic does not respect dimensions In-Reply-To: <39700040-AC2C-4700-9BAC-185049D4C32F@unimelb.edu.au> References: <39700040-AC2C-4700-9BAC-185049D4C32F@unimelb.edu.au> Message-ID: <4738cd53-c146-ff29-1cf7-155f344eca53@fourthworld.com> Michael Julian Lew wrote: > Richard Gaskin wrote: >> BNig wrote: >>> that is determined somewhat arbitrarily by the >>> revBackScriptLibrary in handler >>> >>> on newGraphic >>> if the width of the target < 9 and the height of the target < 9 then >>> .... use default values >>> >> Would that be a user experience bug? >> >> I can see the benefit of minimizing occurrences of objects that are >> *prohibitively* small to work with, but am less enthused about >> constraining options for the user at the much lower threshold of mere >> possible inconvenience. >> >> I'd opt for a 4px threshold. > > Seems to me that if the current restriction on the result of ?clone? > is intended to prevent possible problems when tools palette is being > used then a very bad design decision was made. A solution should not > affect what happens when the user clones an abject that is already in > the stack. > > The script function ?clone? should clone the object _exactly_ when > used by itself, but could be used in conjunction with size-dectecting > code for the palette. In principle I agree. The challenge is that we don't have a separate message for clone as distinct from other ways to create a new graphic. If it were up to me, I'd say let the user do whatever they want. If they want to make a control too small to be used, who am I to stop them? But as Jeanne suggested, it may be that the IDE is trying to be helpful in cases of accidental resizing too small. Personally, I'd favor simplifying the extra work the IDE is doing and just leave the user alone. If there must be a threshold, at least make it smaller than it is now. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From paul at livecode.org Thu Dec 1 21:21:41 2016 From: paul at livecode.org (Paul Hibbert) Date: Thu, 1 Dec 2016 18:21:41 -0800 Subject: Crash in LC related to regular polygon In-Reply-To: References: Message-ID: <25F578B9-21ED-4A03-BEB7-A03B15F9633E@livecode.org> Randy, I will happily look at your stack. I also experienced a crash with polygons but couldn?t reproduce it. I?m on Mac OS Sierra 10.12.1 Regards. Paul > On Nov 30, 2016, at 3:28 PM, Randy Hengst wrote: > > Hi All, > > I?ve been able to reproduce a hard crash on two different Macs? one running 10.10.5 and the other running 10.11.6. > > I?ve seen the crash in LC 8.1 on the 10.10.5 Mac and in LC 8.1 and LC 7.1.4 on the other Mac. > > In short, I was playing with the ?effective points? I asked about earlier so I could set the sides of a regular polygon and then assign a marker to each of the vertices via script. I ran into a problem when I scripted a handler to iterate through all sizes of polygons from 3-sided to 32-sided. > > Is anyone willing to take a look at the stack before I submit a bug report? I?d appreciate even thoughts on what to call the problem. > > Happy to send the demo stack I create to anyone off list. > > be well, > randy > www.classroomFocusedSoftware.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Thu Dec 1 21:55:52 2016 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 1 Dec 2016 18:55:52 -0800 Subject: Downloads Directory In-Reply-To: <01010158bc58be18-a5bb28f5-23b3-4eca-84ac-8e9d71828414-000000@us-west-2.amazonses.com> References: <01010158bc58be18-a5bb28f5-23b3-4eca-84ac-8e9d71828414-000000@us-west-2.amazonses.com> Message-ID: <39c76070-9898-5b82-6051-62188fcd0f29@sonic.net> On 12/01/2016 01:44 PM, Daniel Pierce wrote: > Question, > > Last week when Livecode prompted me about the V8.1.2 RC2 release I declined > because I was in the middle of a project and didn't have time for the new > release. Now I want to download it, but the DOWNLOADS link is gone from > the Livecode web site, or I can't find it. The link is right at the top of www.livecode.org. The one that says "Downloads". -- Mark Wieder ahsoftware at gmail.com From bernd.niggemann at uni-wh.de Fri Dec 2 06:02:53 2016 From: bernd.niggemann at uni-wh.de (BNig) Date: Fri, 2 Dec 2016 03:02:53 -0800 (PST) Subject: Clone graphic does not respect dimensions In-Reply-To: <4738cd53-c146-ff29-1cf7-155f344eca53@fourthworld.com> References: <5E4806B4-322D-42C0-9CCD-D1CB1D7F201B@unimelb.edu.au> <39700040-AC2C-4700-9BAC-185049D4C32F@unimelb.edu.au> <4738cd53-c146-ff29-1cf7-155f344eca53@fourthworld.com> Message-ID: <1480676573419-4710811.post@n4.nabble.com> Richard Gaskin wrote > Michael Julian Lew wrote: > > > Richard Gaskin wrote: > >> BNig wrote: > >>> that is determined somewhat arbitrarily by the > >>> revBackScriptLibrary in handler > >>> > >>> on newGraphic > >>> if the width of the target < 9 and the height of the target < 9 then > >>> .... use default values > >>> > >> Would that be a user experience bug? > >> > >> I can see the benefit of minimizing occurrences of objects that are > >> *prohibitively* small to work with, but am less enthused about > >> constraining options for the user at the much lower threshold of mere > >> possible inconvenience. > >> > >> I'd opt for a 4px threshold. > > > > Seems to me that if the current restriction on the result of ?clone? > > is intended to prevent possible problems when tools palette is being > > used then a very bad design decision was made. A solution should not > > affect what happens when the user clones an abject that is already in > > the stack. > > > > The script function ?clone? should clone the object _exactly_ when > > used by itself, but could be used in conjunction with size-dectecting > > code for the palette. > > In principle I agree. The challenge is that we don't have a separate > message for clone as distinct from other ways to create a new graphic. > > If it were up to me, I'd say let the user do whatever they want. If > they want to make a control too small to be used, who am I to stop them? > > But as Jeanne suggested, it may be that the IDE is trying to be helpful > in cases of accidental resizing too small. > > Personally, I'd favor simplifying the extra work the IDE is doing and > just leave the user alone. > > If there must be a threshold, at least make it smaller than it is now. > > -- > Richard Gaskin It seems the consensus is to lower the threshold when graphics are changed to default sizes. I will do an enhancement request next week and propose that the currrent threshold of 8 by 8 and lower will be reduced to 5 by 5 and lower. That should cover most clone requests and still prevents most accidental clicks. The double-click delta default is 4 in case someone double-clicks right away. If Edinburgh agrees I will do a pull-request. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Clone-graphic-does-not-respect-dimensions-tp4710776p4710811.html Sent from the Revolution - User mailing list archive at Nabble.com. From skiplondon at gmail.com Fri Dec 2 08:44:28 2016 From: skiplondon at gmail.com (Skip Kimpel) Date: Fri, 2 Dec 2016 08:44:28 -0500 Subject: [ANN] XLSX Library ready for a test - Looking for testers In-Reply-To: <5D7F2069-EBE2-40F3-A5F3-57C843ACB64F@iotecdigital.com> References: <5D7F2069-EBE2-40F3-A5F3-57C843ACB64F@iotecdigital.com> Message-ID: You know I am all in... I believe in the your products, Mr. Slug! SKIP On Thu, Dec 1, 2016 at 6:08 PM, Bob Sneidar wrote: > I'll give it a go later. > > Bob S > > > On Nov 30, 2016, at 15:36 , zryip theSlug zryip.theslug at gmail.com>> wrote: > > Dear LiveCode Users, > > We are working on a new Library capable to read / write / update xlsx > files without the help of MS Excel. > The Library is dealing natively with LiveCode (and the help of revXML > and revZip) with the Office Open XML format. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Fri Dec 2 10:26:01 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 2 Dec 2016 07:26:01 -0800 Subject: live code seems to gratuitously unlock write permission for directories In-Reply-To: References: Message-ID: On Thu, Dec 1, 2016 at 4:08 PM, Rick Harrison wrote: > If you just want to prevent overwriting of older files, > why don?t you just use a new name for the file. > This is about protecting me from accidental saves. There are a dozen or so separate files. I want a new "main" stack for every editing day, but most of the others don't usually get changed. So blocking the directory when a date change is detected neatly solves the problem--but livecode apparently overrides this. >Still if LC is not doing what it is supposed to, or doing something >that it shouldn?t do, it should be fixed. if something is locked in the OS livecode should not be unlocking it. I suppose I can trap saveStackRequest, but I shouldn't have to for this. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From harrison at all-auctions.com Fri Dec 2 12:59:50 2016 From: harrison at all-auctions.com (Rick Harrison) Date: Fri, 2 Dec 2016 12:59:50 -0500 Subject: live code seems to gratuitously unlock write permission for directories In-Reply-To: References: Message-ID: Ok, so it sounds like you are using an LC stack file. You are opening that LC stack from within LC so LC/macOS, (assuming your are on a Macintosh Computer), is going to update the ?Date Modified? date because LC/you have touched the file. That?s built into the OS and is deliberate. What I do to protect myself from accidental saves is to always work with a copy of of the file or folder. When I get onto my computer in the morning. I first duplicate the stack file I want to work with. I use version numbers which I create so I can keep track of which is the current version. Sometimes this is as simple as calling it LCStackNameV1 or LCStackNameV2, V3, etc. If I?m really want more information I might even include the date and/or time with that version number: LCStackName120220161022AMV1 If later on in the day, I know that I?ve done a lot of good work/changes I may make yet another duplicate of the stack and continue with my version naming convention. If I did something really really dumb in-between version creations I can also go back into my TimeMachine backup and pull up a version of the stack file from it?s last hourly backup, so I can eliminate as much of my working loss as possible. We live in the age of giant hard drives. I can duplicate my folders the same way if I need to. When I?m all done with a project, and it has been finalized, then I can go back and delete all of those old files/folders if I want to. That?s how I protect myself from my own stupid saving mistakes. I hope that helps. :-) Rick > On Dec 2, 2016, at 10:26 AM, Dr. Hawkins wrote: > > On Thu, Dec 1, 2016 at 4:08 PM, Rick Harrison > wrote: > >> If you just want to prevent overwriting of older files, >> why don?t you just use a new name for the file. >> > > This is about protecting me from accidental saves. > > There are a dozen or so separate files. I want a new "main" stack for > every editing day, but most of the others don't usually get changed. > > So blocking the directory when a date change is detected neatly solves the > problem--but livecode apparently overrides this. > >> Still if LC is not doing what it is supposed to, or doing something >> that it shouldn?t do, it should be fixed. > > if something is locked in the OS livecode should not be unlocking it. > > I suppose I can trap saveStackRequest, but I shouldn't have to for this. > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Fri Dec 2 13:55:58 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 2 Dec 2016 10:55:58 -0800 Subject: live code seems to gratuitously unlock write permission for directories In-Reply-To: References: Message-ID: On Fri, Dec 2, 2016 at 9:59 AM, Rick Harrison wrote: > Ok, so it sounds like you are using an LC stack file. > You are opening that LC stack from within LC > so LC/macOS, (assuming your are on a Macintosh Computer), > is going to update the ?Date Modified? date because LC/you > have touched the file. That?s built into the OS and is > deliberate. > Yes, but changing from mode 555 to 755 is not; that's livecode. . . . > > What I do to protect myself from accidental saves is to > always work with a copy of of the file or folder. When I get onto > my computer in the morning. I first duplicate the stack > file I want to work with. I use version numbers which I > create so I can keep track of which is the current version. > Sometimes this is as simple as calling it LCStackNameV1 > or LCStackNameV2, V3, etc. If I?m really want more > information I might even include the date and/or time > with that version number: LCStackName120220161022AMV1 > Mine are generally stackname.yymmddv.livecode, where v starts at the first one, and goes on. But here's a fit of cleverness that seems to work, although it relies on the OS or user to clean /tmp from time to time: *on* saveStackRequest *--keep a copy of the stack* *local* stkNm, bkNm *put* the short name of this stack into stkNm *switch* *--livecode's own stacks* *case* char 1 to 3 of stkNm="Rev" *case* stkNm="Message Box" *pass* saveStackRequest *break* *case* stkNm begins with "dinfo_" *case* stkNm begins with "dna_" *case* stkNm begins with "out_" *--never save these* *break* *default* *--it must be a dh program stack* *lock* messages *save* this stack *put* the seconds into bkNm *convert* bkNm to dateItems *put* char 3 to 4 of item 1 of bkNm \ & char -2 to -1 of ("0" & item 2 of bkNm) \ & char -2 to -1 of ("0" & item 3 of bkNm) \ & "." \ & char -2 to -1 of ("0" & item 4 of bkNm) \ & char -2 to -1 of ("0" & item 5 of bkNm) \ into bkNm *set* the itemDel to "/" *put* char 1 to -2 of item -1 of the long name of this stack & "." before bkNm *put* "cp " & char 8 to -2 of the long name of this stack & " /tmp/" before bkNm *unlock* messages *get* shell(bkNm) *break* *end* *switch* *end* saveStackRequest So many more than time machine would do, and they go away in a couple of days if not needed. I also have a bmpVrsn routine to handle my major checkpoints through the day (bump the v above) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From bobsneidar at iotecdigital.com Fri Dec 2 14:05:22 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 2 Dec 2016 19:05:22 +0000 Subject: live code seems to gratuitously unlock write permission for directories In-Reply-To: References: Message-ID: <23E0CDE3-101F-4A88-8B02-545788D45202@iotecdigital.com> So what *actually* happens when you save a file is, the old file is renamed by prepending a tilde (~) to the filename, then an attempt to save the file as the original is attempted. If all goes well, the backup copy is deleted. So in a sense you are not actually saving, you are saving as. Someone correct me on this if I am wrong. Bob S > On Dec 2, 2016, at 10:55 , Dr. Hawkins wrote: > > On Fri, Dec 2, 2016 at 9:59 AM, Rick Harrison > wrote: > >> Ok, so it sounds like you are using an LC stack file. >> You are opening that LC stack from within LC >> so LC/macOS, (assuming your are on a Macintosh Computer), >> is going to update the ?Date Modified? date because LC/you >> have touched the file. That?s built into the OS and is >> deliberate. >> > > Yes, but changing from mode 555 to 755 is not; that's livecode. . . . From jacque at hyperactivesw.com Fri Dec 2 14:20:25 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 2 Dec 2016 13:20:25 -0600 Subject: live code seems to gratuitously unlock write permission for directories In-Reply-To: References: Message-ID: On 12/2/16 12:55 PM, Dr. Hawkins wrote: > *--livecode's own stacks* > > *case* char 1 to 3 of stkNm="Rev" > > *case* stkNm="Message Box" This is no longer the case. Some of LC's stacks no longer start with "rev". It probably doesn't matter if you back those up anyway, but just so you know. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From revolution at jaedworks.com Fri Dec 2 14:30:37 2016 From: revolution at jaedworks.com (Jeanne A. E. DeVoto) Date: Fri, 2 Dec 2016 11:30:37 -0800 Subject: Clone graphic does not respect dimensions In-Reply-To: <1480676573419-4710811.post@n4.nabble.com> References: <5E4806B4-322D-42C0-9CCD-D1CB1D7F201B@unimelb.edu.au> <39700040-AC2C-4700-9BAC-185049D4C32F@unimelb.edu.au> <4738cd53-c146-ff29-1cf7-155f344eca53@fourthworld.com> <1480676573419-4710811.post@n4.nabble.com> Message-ID: At 3:02 AM -0800 12/2/2016, BNig wrote: >It seems the consensus is to lower the threshold when graphics are changed >to default sizes. I will do an enhancement request next week and propose >that the currrent threshold of 8 by 8 and lower will be reduced to 5 by 5 >and lower. Is there any reason not to check the tool, instead of playing with the size threshold? If the tool is not any of the graphic tools, then the user was not manually creating the object: it must have been created via script and there's no issue of accidental clicks, so the IDE should not override the size. If the tool is a graphic tool, then the user manually created the object and so it's reasonable to apply a size floor. Am I missing something? From hh at hyperhh.de Fri Dec 2 14:30:52 2016 From: hh at hyperhh.de (hh) Date: Fri, 2 Dec 2016 20:30:52 +0100 Subject: Clone graphic does not respect dimensions Message-ID: <4DEEDA40-1695-445C-9D09-C9B0CA7E031C@hyperhh.de> Yet another option is a 0.618 x 0.618 pixels threshold. I definitely need that when using a HiRes display ;-) "A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools." (Douglas Adams) From dochawk at gmail.com Fri Dec 2 14:42:36 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 2 Dec 2016 11:42:36 -0800 Subject: live code seems to gratuitously unlock write permission for directories In-Reply-To: <23E0CDE3-101F-4A88-8B02-545788D45202@iotecdigital.com> References: <23E0CDE3-101F-4A88-8B02-545788D45202@iotecdigital.com> Message-ID: On Fri, Dec 2, 2016 at 11:05 AM, Bob Sneidar wrote: > So what *actually* happens when you save a file is, the old file is > renamed by prepending a tilde (~) to the filename, then an attempt to save > the file as the original is attempted. If all goes well, the backup copy is > deleted. So in a sense you are not actually saving, you are saving as. However, if the directory is write-locked by the OS, both of these operations should fail . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Fri Dec 2 14:49:59 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 2 Dec 2016 11:49:59 -0800 Subject: live code seems to gratuitously unlock write permission for directories In-Reply-To: References: Message-ID: On Fri, Dec 2, 2016 at 11:20 AM, J. Landman Gay wrote: > On 12/2/16 12:55 PM, Dr. Hawkins wrote: > >> *--livecode's own stacks* >> >> *case* char 1 to 3 of stkNm="Rev" >> >> *case* stkNm="Message Box" >> > > This is no longer the case. Some of LC's stacks no longer start with > "rev". It probably doesn't matter if you back those up anyway, but just so > you know. > I figure there might be more, but if something causes one to save, it will just mean that I get an extraneous backup in /tmp . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From bonnmike at gmail.com Fri Dec 2 15:01:09 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 2 Dec 2016 13:01:09 -0700 Subject: live code seems to gratuitously unlock write permission for directories In-Reply-To: References: Message-ID: Not sure I understand this but... You open a stack, and then try to change the permissions of the directory that it resides in so that you then can't save it? Since the file is already open and "in use" i'm not sure its actually possible to change the permissions under those circumstances. If you create a new folder (empty, or not) and change the permissions on that one (with no open stack or file inside) does the change stick? >>quote livecode seems to be gratuitously unlocking directories. I launch live code, and then "chmod -w" the directory of the stack. On quit, it restores write permission! If I use shell (chmod -w someDir), it apparently unlocks it before returning from shell! I'm trying to put in a failsafe that prevents overwriting older files. Do I need to change the owner of the files for this??? On Fri, Dec 2, 2016 at 12:20 PM, J. Landman Gay wrote: > On 12/2/16 12:55 PM, Dr. Hawkins wrote: > >> *--livecode's own stacks* >> >> *case* char 1 to 3 of stkNm="Rev" >> >> *case* stkNm="Message Box" >> > > This is no longer the case. Some of LC's stacks no longer start with > "rev". It probably doesn't matter if you back those up anyway, but just so > you know. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Fri Dec 2 15:23:30 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 2 Dec 2016 12:23:30 -0800 Subject: Clone graphic does not respect dimensions In-Reply-To: References: Message-ID: <0a030e3a-266a-107f-69ad-a987b99c8b9d@fourthworld.com> Jeanne A. E. DeVoto wrote: > At 3:02 AM -0800 12/2/2016, BNig wrote: >> It seems the consensus is to lower the threshold when graphics are >> changed to default sizes. I will do an enhancement request next week >> and propose that the currrent threshold of 8 by 8 and lower will be >> reduced to 5 by 5 and lower. > > Is there any reason not to check the tool, instead of playing with > the size threshold? > > If the tool is not any of the graphic tools, then the user was not > manually creating the object: it must have been created via script > and there's no issue of accidental clicks, so the IDE should not > override the size. If the tool is a graphic tool, then the user > manually created the object and so it's reasonable to apply a size > floor. I believe the original post here was about cloning, presumably done via Option+drag (on macOS, or Cntrl+drag on Win and Linux). But another case might be scripted creation of objects that use drag rather than the create command. So many possibilities that I wouldn't be opposed to completely removing arbitrary IDE-imposed limits on what people can do with their objects. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dochawk at gmail.com Fri Dec 2 15:31:55 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 2 Dec 2016 12:31:55 -0800 Subject: live code seems to gratuitously unlock write permission for directories In-Reply-To: References: Message-ID: On Fri, Dec 2, 2016 at 12:01 PM, Mike Bonner wrote: > Not sure I understand this but... You open a stack, and then try to change > the permissions of the directory that it resides in so that you then can't > save it? Since the file is already open and "in use" i'm not sure its > actually possible to change the permissions under those circumstances. > I've checked; it is. From within LiveCode, I used a shell command to chmod. But I've also done it from the OS before launching, and locks the directory in the OS; these just get ignored (yet saving the preferences for plugins is not) If you create a new folder (empty, or not) and change the permissions on > that one (with no open stack or file inside) does the change stick? > Nope; gets overridden. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Fri Dec 2 15:34:15 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 2 Dec 2016 12:34:15 -0800 Subject: live code seems to gratuitously unlock write permission for directories In-Reply-To: References: Message-ID: I've added the following after setting the name, and also moved the save into this block: *if* (char 1 to 6 of bkNm) <> (char -17 to -12 of the long name of this stack) *then* *--date has changed* bmpVrsn stkNm *else* *save* this stack *end* *if* bmpVrsn is my routine to bump the filename. Without this, it would keep backing up yesterday's file . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ahsoftware at sonic.net Fri Dec 2 17:30:00 2016 From: ahsoftware at sonic.net (mwieder) Date: Fri, 2 Dec 2016 14:30:00 -0800 (PST) Subject: Clone graphic does not respect dimensions In-Reply-To: <0a030e3a-266a-107f-69ad-a987b99c8b9d@fourthworld.com> References: <5E4806B4-322D-42C0-9CCD-D1CB1D7F201B@unimelb.edu.au> <39700040-AC2C-4700-9BAC-185049D4C32F@unimelb.edu.au> <4738cd53-c146-ff29-1cf7-155f344eca53@fourthworld.com> <1480676573419-4710811.post@n4.nabble.com> <0a030e3a-266a-107f-69ad-a987b99c8b9d@fourthworld.com> Message-ID: <1480717800301-4710826.post@n4.nabble.com> In any event, if there's going to be a size trap, I don't believe it belongs in the backscript newGraphic handler. If the intention of the minimum size restriction is to prevent accidental double-clicks, there are better ways to deal with that situation. ----- -- Mark Wieder ahsoftware at gmail.com -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Clone-graphic-does-not-respect-dimensions-tp4710776p4710826.html Sent from the Revolution - User mailing list archive at Nabble.com. From revolution at jaedworks.com Fri Dec 2 18:40:12 2016 From: revolution at jaedworks.com (Jeanne A. E. DeVoto) Date: Fri, 2 Dec 2016 15:40:12 -0800 Subject: Clone graphic does not respect dimensions In-Reply-To: <0a030e3a-266a-107f-69ad-a987b99c8b9d@fourthworld.com> References: <0a030e3a-266a-107f-69ad-a987b99c8b9d@fourthworld.com> Message-ID: At 12:23 PM -0800 12/2/2016, Richard Gaskin wrote: >I believe the original post here was about cloning, presumably done >via Option+drag (on macOS, or Cntrl+drag on Win and Linux). Hmm, I was under the impression that it was scripted using the "clone" command. I'd forgotten about option-drag... ...but that's also done with the pointer tool, not the graphic tool. So checking the tool would also exempt that case from auto-resizing small graphics. >So many possibilities that I wouldn't be opposed to completely >removing arbitrary IDE-imposed limits on what people can do with >their objects. A good point, but there's also the utility of having the interface act to "heal" common mistakes and enable common patterns (like single-clicking with an object tool to create that object). I think this may simply be a philosophical difference-some people prefer an IDE that stays out of the way, and others prefer one that does certain things for them. The trick is always to figure out what things most users will take as helpful, and what they'll take as getting in the way. ;-) From ambassador at fourthworld.com Fri Dec 2 19:47:30 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 2 Dec 2016 16:47:30 -0800 Subject: Clone graphic does not respect dimensions In-Reply-To: References: Message-ID: <03e5dffa-bb1b-af7b-5cbd-aff9aa6b384d@fourthworld.com> Jeanne A. E. DeVoto wrote: > At 12:23 PM -0800 12/2/2016, Richard Gaskin wrote: >>I believe the original post here was about cloning, presumably done >>via Option+drag (on macOS, or Cntrl+drag on Win and Linux). > > Hmm, I was under the impression that it was scripted using the > "clone" command. I'd forgotten about option-drag... > > ...but that's also done with the pointer tool, not the graphic tool. > So checking the tool would also exempt that case from auto-resizing > small graphics. IMO it would be even worse to have an IDE convenience prevent people from scripting their apps. >>So many possibilities that I wouldn't be opposed to completely >>removing arbitrary IDE-imposed limits on what people can do with >>their objects. > > A good point, but there's also the utility of having the interface > act to "heal" common mistakes and enable common patterns (like > single-clicking with an object tool to create that object). How often does that accident that happen? And how often does one need to use a smaller graphic in their app and find themselves mystified by being unable to do so? Either path has trade-offs, but since this is a developer tool, rather than a consumer drawing tool, I'd favor design decisions that leave the developer in control. If someone's smart enough to develop software, they're probably smart enough to figure out how to grab a resize handle and make a graphic larger. :) -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From brahma at hindu.org Fri Dec 2 20:26:00 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 3 Dec 2016 01:26:00 +0000 Subject: tsNet docs/sample stacks In-Reply-To: <9e2e94cd-eef1-ed0d-6002-07d92fa18213@cogapp.com> References: <6a2aa644-c550-f750-1f5b-85d5bd67fe55@cogapp.com> <8696e1da-701b-8bfe-cfc6-cacfb1005b99@cogapp.com> <9e2e94cd-eef1-ed0d-6002-07d92fa18213@cogapp.com> Message-ID: <031A46A4-85A6-4BBA-876C-E736FB4EE632@hindu.org> yes, more docs would help. I don't see any "SFTP" upload example, only "FTPS" upload. The later, I believe, gets into certificates, which I would rather avoid. On 12/1/16, 8:18 AM, "use-livecode on behalf of Ben Rubinstein" wrote: Here is a nice stack from the creators of tsNet that demonstrates some of the key functionality. You can grab some code from this stack... I have put it up on my server so you can take experiment with it. http://magicgate.com/files/tsNet_Sample_Sync_Stack.livecode SKIP From richmondmathewson at gmail.com Sat Dec 3 10:58:11 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 3 Dec 2016 17:58:11 +0200 Subject: [OT] unhosing .rev and .livecode files Message-ID: <82464fb1-643f-fbbf-dee4-3313396cb86a@gmail.com> Aa all forensic software for digging in blanked hard drives seems to find the most obvious files, and NOT .rev and .livecode files I wonder if anyone has any bright suggestions how one might go about looking for them. Richmond. From stephen at barncard.com Sat Dec 3 12:42:47 2016 From: stephen at barncard.com (Stephen Barncard) Date: Sat, 3 Dec 2016 09:42:47 -0800 Subject: [OT] unhosing .rev and .livecode files In-Reply-To: <82464fb1-643f-fbbf-dee4-3313396cb86a@gmail.com> References: <82464fb1-643f-fbbf-dee4-3313396cb86a@gmail.com> Message-ID: On Sat, Dec 3, 2016 at 7:58 AM, Richmond Mathewson < richmondmathewson at gmail.com> wrote: > files, and NOT .rev and .livecode files I wonder if anyone has any bright > suggestions how one might > go about looking for them. > Look for the file header text at the beginning of every stack: like REVO7000 REVO5500 you may need to do research on the headers for the vintage stack formats. -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org From stephen at barncard.com Sat Dec 3 12:43:35 2016 From: stephen at barncard.com (Stephen Barncard) Date: Sat, 3 Dec 2016 09:43:35 -0800 Subject: [OT] unhosing .rev and .livecode files In-Reply-To: References: <82464fb1-643f-fbbf-dee4-3313396cb86a@gmail.com> Message-ID: On Sat, Dec 3, 2016 at 9:42 AM, Stephen Barncard wrote: > Look for the file header text at the beginning of every stack: > > like > REVO7000 > REVO5500 > There should also be a file termination character(s) -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org From alex at tweedly.net Sat Dec 3 12:47:52 2016 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 3 Dec 2016 17:47:52 +0000 Subject: live code seems to gratuitously unlock write permission for directories In-Reply-To: References: Message-ID: OK, I got slightly lost in this thread - we've gone off to solve a work-around to your problem, and I'd like to go back to the problem itself. If I understood it properly, what you;re seeing is that setting the permission of a directory to disallow write *should* prevent you from saving a stack within that directory - but it doesn't. So I decided to write a small test stack that did just that, and see how it performs. And it does just what I would expect (which I think is the same as you would expect :-) I know it's unhelpful, even annoying, to be told "it works OK for me" - but it works ok for me. Could I ask you to download my simple stack, and try it out in your environment - ideally on the same directory - and report back on what it does ? Hopefully this will isolate whether it's your OS/filesystem/environment or something else going on in your scrips. It's at http://tweedly.org/downloads/checkpermissionsettings.livecode very simple stack - 4 buttons - one let's you specify a directory - one checks the permission of that directory and write that to the msg box - one removes write permission on the specified folder - the last one adds write permisison. I actually saved this stack within the folder so I was testing something as close as possible to what I thought was your situation. So you should find that after specifying the folder, you can check the permissions, save the stack, remove write permission, check permissions (and see that it's gone), then try to save the stack again - and it fails. Then add wrote permission back again, chek permissions and then save - works OK. Thanks -- Alex. On 02/12/2016 20:34, Dr. Hawkins wrote: > I've added the following after setting the name, and also moved the save > into this block: > > *if* (char 1 to 6 of bkNm) <> (char -17 to -12 of the long name of this > stack) *then* > > *--date has changed* > > bmpVrsn stkNm > > *else* > > *save* this stack > > *end* *if* > > > bmpVrsn is my routine to bump the filename. Without this, it would keep > backing up yesterday's file . . . > From richmondmathewson at gmail.com Sat Dec 3 13:44:22 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 3 Dec 2016 20:44:22 +0200 Subject: [OT] unhosing .rev and .livecode files In-Reply-To: References: <82464fb1-643f-fbbf-dee4-3313396cb86a@gmail.com> Message-ID: <431db042-cdc7-a358-b694-53f7bb67b35e@gmail.com> That sounds great, but I wonder exactly how I should look for the file headers. Richmond. On 12/3/16 7:42 pm, Stephen Barncard wrote: > On Sat, Dec 3, 2016 at 7:58 AM, Richmond Mathewson < > richmondmathewson at gmail.com> wrote: > >> files, and NOT .rev and .livecode files I wonder if anyone has any bright >> suggestions how one might >> go about looking for them. >> > Look for the file header text at the beginning of every stack: > > like > REVO7000 > REVO5500 > > you may need to do research on the headers for the vintage stack formats. > -- > Stephen Barncard - Sebastopol Ca. USA - > mixstream.org > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Sat Dec 3 14:32:08 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 3 Dec 2016 11:32:08 -0800 Subject: live code seems to gratuitously unlock write permission for directories In-Reply-To: References: Message-ID: On Sat, Dec 3, 2016 at 9:47 AM, Alex Tweedly wrote: > It's at http://tweedly.org/downloads/checkpermissionsettings.livecode > Not Found The requested URL /downloads/checkpermissionsettings.livecode was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From capellan2000 at gmail.com Sat Dec 3 15:54:48 2016 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sat, 3 Dec 2016 16:54:48 -0400 Subject: live code seems to gratuitously unlock write permission for directories Message-ID: Hi Alex, Downloads folder in your server is not accessible. It's not possible to download this stack either: http://tweedly.org/showpage.lc?page=taskRunner Al From alex at tweedly.net Sat Dec 3 17:30:48 2016 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 3 Dec 2016 22:30:48 +0000 Subject: live code seems to gratuitously unlock write permission for directories In-Reply-To: References: Message-ID: <56cb36de-bc1b-9ee0-4a5e-88a23de0edfa@tweedly.net> Very strange - the correct URL is http://tweedly.org/downloads/checkpermissionsetting.livecode i.e. without the last 's' Did you know that, in Chrome, if you modify the URL, and it turns out to be a downloadable file - then Chrome downloads it, and then changes the visible URL in the address bar back to what it was before !! So - very sorry, the correct address is indeed http://tweedly.org/downloads/checkpermissionsetting.livecode (checked and downloaded in a new Chrome window :-) -- Alex. On 03/12/2016 19:32, Dr. Hawkins wrote: > On Sat, Dec 3, 2016 at 9:47 AM, Alex Tweedly wrote: > >> It's at http://tweedly.org/downloads/checkpermissionsettings.livecode >> > > Not Found > > The requested URL /downloads/checkpermissionsettings.livecode was not found > on this server. > > Additionally, a 404 Not Found error was encountered while trying to use an > ErrorDocument to handle the request. > From alex at tweedly.net Sat Dec 3 17:54:32 2016 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 3 Dec 2016 22:54:32 +0000 Subject: live code seems to gratuitously unlock write permission for directories In-Reply-To: References: Message-ID: You're right - and I confess I don't know why the downloads folder is inaccessible. Permission is set to 755, and there's no .htaccess file or anything else I know of to prevent it. Anyway - if you wanted the taskrunner files, they are : - taskrunner.rev - taskClientLib.rev - test-task-runner.rev - verybusy.rev - IndexFiles.rev - CheckURL.rev and each one can be downloaded individually, for example http://tweedly.org/downloads/taskrunner.rev I guess I'll just have to find a silver lining ..... this must be a security measure to keep files hidden unless I reveal the actual URLs. And I will very shortly change the taskRunner page to make the file entry line into links that are clickable. (and btw, although I do still use taskRunner regularly, I haven't rebuilt the executables since probably LC 5.0 - so approach with some caution :-) -- Alex. On 03/12/2016 20:54, Alejandro Tejada wrote: > Hi Alex, > > Downloads folder in your server is not accessible. > > It's not possible to download this stack either: > http://tweedly.org/showpage.lc?page=taskRunner > > Al > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Sat Dec 3 18:10:05 2016 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 3 Dec 2016 16:10:05 -0700 Subject: live code seems to gratuitously unlock write permission for directories In-Reply-To: References: Message-ID: Most likely directory browsing is turned off. You could change the setting, or you could put in an irev that gets "the files" and builds a link list dynamically, minus itself of course. On Sat, Dec 3, 2016 at 3:54 PM, Alex Tweedly wrote: > You're right - and I confess I don't know why the downloads folder is > inaccessible. Permission is set to 755, and there's no .htaccess file or > anything else I know of to prevent it. > > Anyway - if you wanted the taskrunner files, they are : > - taskrunner.rev > - taskClientLib.rev > - test-task-runner.rev > - verybusy.rev > - IndexFiles.rev > - CheckURL.rev > > and each one can be downloaded individually, for example > > http://tweedly.org/downloads/taskrunner.rev > > > I guess I'll just have to find a silver lining ..... this must be a > security measure to keep files hidden unless I reveal the actual URLs. And > I will very shortly change the taskRunner page to make the file entry line > into links that are clickable. > > (and btw, although I do still use taskRunner regularly, I haven't rebuilt > the executables since probably LC 5.0 - so approach with some caution :-) > > -- Alex. > > > On 03/12/2016 20:54, Alejandro Tejada wrote: > >> Hi Alex, >> >> Downloads folder in your server is not accessible. >> >> It's not possible to download this stack either: >> http://tweedly.org/showpage.lc?page=taskRunner >> >> Al >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From nabble at mad.pink Sat Dec 3 19:03:55 2016 From: nabble at mad.pink (pink) Date: Sat, 3 Dec 2016 16:03:55 -0800 (PST) Subject: Non-Public API Usage Message-ID: <1480809835470-4710840.post@n4.nabble.com> I compiled and submitted an app using iTunes Connect. I received the following rejection message. I compiled using Livecode 8.1.2 rc2, I have Xcode 8.1 installed. I tried recompiling a few times and got the same results each time. How do I fix this? Dear developer, We have discovered one or more issues with your recent delivery for "PlanningBoard 2". To process your delivery, the following issues must be corrected: Non-public API usage: The app references non-public symbols in MadPink Planning Board: _getcontext, _makecontext, _setcontext If method names in your source code match the private Apple APIs listed above, altering your method names will help prevent this app from being flagged in future submissions. In addition, note that one or more of the above APIs may be located in a static library that was included with your app. If so, they must be removed. If you think this message was sent in error and that you have only used Apple-published APIs in accordance with the guidelines, send the app's nine-digit Apple ID, along with detailed information about why you believe the above APIs were incorrectly flagged, to appreview at apple.com. For further information, visit the Technical Support Information page. Though you are not required to fix the following issues, we wanted to make you aware of them: Missing Push Notification Entitlement - Your app includes an API for Apple's Push Notification service, but the aps-environment entitlement is missing from the app's signature. To resolve this, make sure your App ID is enabled for push notification in the Provisioning Portal. Then, sign your app with a distribution provisioning profile that includes the aps-environment entitlement. This will create the correct signature, and you can resubmit your app. See "Provisioning and Development" in the Local and Push Notification Programming Guide for more information. If your app does not use the Apple Push Notification service, no action is required. You may remove the API from future submissions to stop this warning. If you use a third-party framework, you may need to contact the developer for information on removing the API. Once the required corrections have been made, you can then redeliver the corrected binary. Regards, The App Store team -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Non-Public-API-Usage-tp4710840.html Sent from the Revolution - User mailing list archive at Nabble.com. From m.schonewille at economy-x-talk.com Sat Dec 3 19:41:31 2016 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 4 Dec 2016 01:41:31 +0100 Subject: Non-Public API Usage In-Reply-To: <1480809835470-4710840.post@n4.nabble.com> References: <1480809835470-4710840.post@n4.nabble.com> Message-ID: Hi Pink, If you are using the names _getcontext, _makecontext and _setcontext for your handlers in your scripts, just change the names and make sure they are nowhere mentioned in your app. If you didn't use these handler names, report it as a bug to the QCC. 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 04-Dec-16 om 01:03 schreef pink: > I compiled and submitted an app using iTunes Connect. I received the > following rejection message. > > I compiled using Livecode 8.1.2 rc2, I have Xcode 8.1 installed. I tried > recompiling a few times and got the same results each time. > > How do I fix this? > > Dear developer, > > We have discovered one or more issues with your recent delivery for > "PlanningBoard 2". To process your delivery, the following issues must be > corrected: > > Non-public API usage: > > The app references non-public symbols in MadPink Planning Board: > _getcontext, _makecontext, _setcontext > If method names in your source code match the private Apple APIs listed > above, altering your method names will help prevent this app from being > flagged in future submissions. In addition, note that one or more of the > above APIs may be located in a static library that was included with your > app. If so, they must be removed. > > If you think this message was sent in error and that you have only used > Apple-published APIs in accordance with the guidelines, send the app's > nine-digit Apple ID, along with detailed information about why you believe > the above APIs were incorrectly flagged, to appreview at apple.com. For further > information, visit the Technical Support Information page. > > Though you are not required to fix the following issues, we wanted to make > you aware of them: > > Missing Push Notification Entitlement - Your app includes an API for Apple's > Push Notification service, but the aps-environment entitlement is missing > from the app's signature. To resolve this, make sure your App ID is enabled > for push notification in the Provisioning Portal. Then, sign your app with a > distribution provisioning profile that includes the aps-environment > entitlement. This will create the correct signature, and you can resubmit > your app. See "Provisioning and Development" in the Local and Push > Notification Programming Guide for more information. If your app does not > use the Apple Push Notification service, no action is required. You may > remove the API from future submissions to stop this warning. If you use a > third-party framework, you may need to contact the developer for information > on removing the API. > > Once the required corrections have been made, you can then redeliver the > corrected binary. > > Regards, > > The App Store team > From nabble at mad.pink Sat Dec 3 19:55:34 2016 From: nabble at mad.pink (pink) Date: Sat, 3 Dec 2016 16:55:34 -0800 (PST) Subject: Non-Public API Usage In-Reply-To: References: <1480809835470-4710840.post@n4.nabble.com> Message-ID: <1480812934389-4710842.post@n4.nabble.com> I have not used those names, so I submitted it: http://quality.livecode.com/show_bug.cgi?id=18958 -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Non-Public-API-Usage-tp4710840p4710842.html Sent from the Revolution - User mailing list archive at Nabble.com. From lan.kc.macmail at gmail.com Sat Dec 3 21:46:01 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sun, 4 Dec 2016 10:46:01 +0800 Subject: [OT] unhosing .rev and .livecode files In-Reply-To: <431db042-cdc7-a358-b694-53f7bb67b35e@gmail.com> References: <82464fb1-643f-fbbf-dee4-3313396cb86a@gmail.com> <431db042-cdc7-a358-b694-53f7bb67b35e@gmail.com> Message-ID: Hi Richmond, Glad to hear that you've been able to rescue most of your files. The Data Rescue programme I use is imaginatively called 'Data Rescue' by Prosoft. I don't think it would help in your case as I don't think the Mac version can recover non-Mac HDs. The reason I mention it is that it has a feature called 'FileIQ', so you drag a .livecode file onto FileIQ, it then learns the structure of an LC file, then you can Start Data Rescue to search all similar such files on a HD. I'm sure it wouldn't be the only Disk Rescue programme that supported such a feature. Good luck. PS. Every single LC stack I create, no matter how large, small, trivial or world changing, sits in a suitably named folder within a generic folder 'my stacks' which lives on my Google Drive. I have plenty of back-up options (as covered by Richard) as I just can't afford to loose a HD, but for reasons I can't explain, for LC Stacks I feel it necessary to have quadruple redundancy back-up. Some one on this List mentioned using Dropbox or Google Drive as a working location for their stacks, and since following that advise I've been most thankful. No fuss, no thought, works a treat. From stephen at barncard.com Sat Dec 3 22:26:55 2016 From: stephen at barncard.com (Stephen Barncard) Date: Sat, 3 Dec 2016 19:26:55 -0800 Subject: live code seems to gratuitously unlock write permission for directories In-Reply-To: References: Message-ID: This has been standard practice for shared hosting at Dreamhost for years. I made an index.irev file that looked at the contents of the directory and displayed a list, subject to filtering. Parameters set with simple txt file. Very easy. sqb -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org On Sat, Dec 3, 2016 at 3:10 PM, Mike Bonner wrote: > Most likely directory browsing is turned off. You could change the > setting, or you could put in an irev that gets "the files" and builds a > link list dynamically, minus itself of course. > > On Sat, Dec 3, 2016 at 3:54 PM, Alex Tweedly wrote: > > > You're right - and I confess I don't know why the downloads folder is > > inaccessible. Permission is set to 755, and there's no .htaccess file or > > anything else I know of to prevent it. > > > > Anyway - if you wanted the taskrunner files, they are : > > - taskrunner.rev > > - taskClientLib.rev > > - test-task-runner.rev > > - verybusy.rev > > - IndexFiles.rev > > - CheckURL.rev > > > > and each one can be downloaded individually, for example > > > > http://tweedly.org/downloads/taskrunner.rev > > > > > > I guess I'll just have to find a silver lining ..... this must be a > > security measure to keep files hidden unless I reveal the actual URLs. > And > > I will very shortly change the taskRunner page to make the file entry > line > > into links that are clickable. > > > > (and btw, although I do still use taskRunner regularly, I haven't rebuilt > > the executables since probably LC 5.0 - so approach with some caution :-) > > > > -- Alex. > > > > > > On 03/12/2016 20:54, Alejandro Tejada wrote: > > > >> Hi Alex, > >> > >> Downloads folder in your server is not accessible. > >> > >> It's not possible to download this stack either: > >> http://tweedly.org/showpage.lc?page=taskRunner > >> > >> Al > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Dec 3 22:28:22 2016 From: jerry at jhjensen.com (Jerry Jensen) Date: Sat, 3 Dec 2016 19:28:22 -0800 Subject: [OT] unhosing .rev and .livecode files In-Reply-To: References: <82464fb1-643f-fbbf-dee4-3313396cb86a@gmail.com> <431db042-cdc7-a358-b694-53f7bb67b35e@gmail.com> Message-ID: <3EE7AB6A-56F9-46C5-946A-EA4B07B34F03@jhjensen.com> Just one additional level of warning - if you keep Dropbox or Google Drive online, malware can get there too. Usually the baddies just trash your directory, but if they encrypt everything you have accessible online, Dropbox and Google Drive won?t help you. Offline backup is essential, offsite is even better. > On Dec 3, 2016, at 6:46 PM, Kay C Lan wrote: > > Hi Richmond, > > Glad to hear that you've been able to rescue most of your files. The > Data Rescue programme I use is imaginatively called 'Data Rescue' by > Prosoft. I don't think it would help in your case as I don't think the > Mac version can recover non-Mac HDs. The reason I mention it is that > it has a feature called 'FileIQ', so you drag a .livecode file onto > FileIQ, it then learns the structure of an LC file, then you can Start > Data Rescue to search all similar such files on a HD. I'm sure it > wouldn't be the only Disk Rescue programme that supported such a > feature. > > Good luck. > > PS. Every single LC stack I create, no matter how large, small, > trivial or world changing, sits in a suitably named folder within a > generic folder 'my stacks' which lives on my Google Drive. I have > plenty of back-up options (as covered by Richard) as I just can't > afford to loose a HD, but for reasons I can't explain, for LC Stacks I > feel it necessary to have quadruple redundancy back-up. Some one on > this List mentioned using Dropbox or Google Drive as a working > location for their stacks, and since following that advise I've been > most thankful. No fuss, no thought, works a treat. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Dec 4 06:34:19 2016 From: dave at applicationinsight.com (Dave Kilroy) Date: Sun, 4 Dec 2016 11:34:19 +0000 Subject: Non-Public API Usage Message-ID: <987A6A9E-9FF4-4697-A1BB-27FE4A29621B@applicationinsight.com> Hi Pink - have you seen this related thread: http://runtime-revolution.278305.n4.nabble.com/iTunes-Connect-rejection-td4710481.html > I have not used those names, so I submitted it: > > http://quality.livecode.com/show_bug.cgi?id=18958 From andrew at midwestcoastmedia.com Sun Dec 4 08:15:31 2016 From: andrew at midwestcoastmedia.com (Andrew Bell) Date: Sun, 04 Dec 2016 08:15:31 -0500 Subject: > Subject: Re: Non-Public API Usage In-Reply-To: References: Message-ID: > We have discovered one or more issues with your recent delivery for > "PlanningBoard 2". To process your delivery, the following issues must > be > corrected: > > Non-public API usage: > > The app references non-public symbols in MadPink Planning Board: > _getcontext, _makecontext, _setcontext > If method names in your source code match the private Apple APIs listed > above, altering your method names will help prevent this app from being > flagged in future submissions. In addition, note that one or more of > the > above APIs may be located in a static library that was included with > your > app. If so, they must be removed. I had the same exact problem two weeks and also wasn't using those references. I'm adding myself to the CC list on your bug. LC Support asked to see the compiled IPA file, which I attached a Dropbox link to a list reply last week. To get an acceptable build, I recompiled in LC 8.1.1 using Xcode 8. Nothing else changed with my stack. --Andrew Bell From nabble at mad.pink Sun Dec 4 09:25:33 2016 From: nabble at mad.pink (pink) Date: Sun, 4 Dec 2016 06:25:33 -0800 (PST) Subject: Non-Public API Usage In-Reply-To: <1480809835470-4710840.post@n4.nabble.com> References: <1480809835470-4710840.post@n4.nabble.com> Message-ID: <1480861533358-4710848.post@n4.nabble.com> I switched back to 8.1.2 RC1 and compiled. I submitted to Apple and the result was just the "Missing Push Notification Entitlement" message. So whatever the problem is, it must be specific to RC2. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Non-Public-API-Usage-tp4710840p4710848.html Sent from the Revolution - User mailing list archive at Nabble.com. From harrison at all-auctions.com Sun Dec 4 10:54:27 2016 From: harrison at all-auctions.com (Rick Harrison) Date: Sun, 4 Dec 2016 10:54:27 -0500 Subject: [OT] unhosing .rev and .livecode files In-Reply-To: <3EE7AB6A-56F9-46C5-946A-EA4B07B34F03@jhjensen.com> References: <82464fb1-643f-fbbf-dee4-3313396cb86a@gmail.com> <431db042-cdc7-a358-b694-53f7bb67b35e@gmail.com> <3EE7AB6A-56F9-46C5-946A-EA4B07B34F03@jhjensen.com> Message-ID: <4BC7CE09-94B7-4CCF-9814-0DC237DF29DE@all-auctions.com> ?Diskwarrior" is a good tool to use in addition to ?Data Rescue?. If you have to go as far as using ?Disk Rescue? you have had some major problem and may not have been doing your backups routinely enough. If you already have a safe-deposit box at a bank, you may want to consider using that as your offsite backup storage place. The idea being that you have a couple of backup drives, one at home and one in the bank. Every week or day depending on how much you think you can afford to lose, visit the bank and swap the drives. Then you aren?t trusting the internet with important backups. Yes it?s old school, but it works! Just my 2 cents for the day. ;-) Rick > On Dec 3, 2016, at 10:28 PM, Jerry Jensen wrote: > > Just one additional level of warning - if you keep Dropbox or Google Drive online, malware can get there too. Usually the baddies just trash your directory, but if they encrypt everything you have accessible online, Dropbox and Google Drive won?t help you. Offline backup is essential, offsite is even better. > From pmbrig at gmail.com Sun Dec 4 12:33:41 2016 From: pmbrig at gmail.com (Peter M. Brigham) Date: Sun, 4 Dec 2016 12:33:41 -0500 Subject: [OT] unhosing .rev and .livecode files In-Reply-To: <4BC7CE09-94B7-4CCF-9814-0DC237DF29DE@all-auctions.com> References: <82464fb1-643f-fbbf-dee4-3313396cb86a@gmail.com> <431db042-cdc7-a358-b694-53f7bb67b35e@gmail.com> <3EE7AB6A-56F9-46C5-946A-EA4B07B34F03@jhjensen.com> <4BC7CE09-94B7-4CCF-9814-0DC237DF29DE@all-auctions.com> Message-ID: I use Time Machine for hourly backups, mirror my LC stacks folder on Dropbox (so every change is also saved in the cloud), then in addition I have a peripheral hard drive at work where I back up my work stacks every time I close down for the day. I once lost over 2 weeks of notes due to a disk crash, and that taught me that it?s not a matter of *if* a disk will fail, it?s a matter of *when*. Never again. ? Peter Peter M. Brigham pmbrig at gmail.com > On Dec 4, 2016, at 10:54 AM, Rick Harrison wrote: > > ?Diskwarrior" is a good tool to use in addition to ?Data Rescue?. > If you have to go as far as using ?Disk Rescue? you have had > some major problem and may not have been doing your > backups routinely enough. > > If you already have a safe-deposit box at a bank, you may want to > consider using that as your offsite backup storage place. The idea > being that you have a couple of backup drives, one at home and > one in the bank. Every week or day depending on how much you think > you can afford to lose, visit the bank and swap the drives. Then you > aren?t trusting the internet with important backups. > > Yes it?s old school, but it works! > > Just my 2 cents for the day. ;-) > > Rick > >> On Dec 3, 2016, at 10:28 PM, Jerry Jensen wrote: >> >> Just one additional level of warning - if you keep Dropbox or Google Drive online, malware can get there too. Usually the baddies just trash your directory, but if they encrypt everything you have accessible online, Dropbox and Google Drive won?t help you. Offline backup is essential, offsite is even better. >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Sun Dec 4 13:44:55 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 4 Dec 2016 20:44:55 +0200 Subject: [OT] unhosing .rev and .livecode files In-Reply-To: References: <82464fb1-643f-fbbf-dee4-3313396cb86a@gmail.com> <431db042-cdc7-a358-b694-53f7bb67b35e@gmail.com> <3EE7AB6A-56F9-46C5-946A-EA4B07B34F03@jhjensen.com> <4BC7CE09-94B7-4CCF-9814-0DC237DF29DE@all-auctions.com> Message-ID: Thanks, one-and-all, for the kind and informative messages about backing up and so forth. I have retrieved as much as I am likely to from my zonked Linux box, and am now putting the thing back together. HOWEVER, before that: 1. Retrieved from one of my hard drives was a "rather intriguing" set of extremely foul, hard-core porn images which I most definitely did not download onto that drive. Looking through a load of old receipts I discovered that I had bought that hard-drive second-hand. 2. So, at the cost of losing 2 more days time, I am doing a seven-fold deletion thing offered by Macintosh's Disk Tools as have no very great desire to find that set of images popping up again. 3. I also noticed all sorts of advert images which, I, similarly did not download onto my hard drives; so can only conclude that whatever webpages one visits, those webpages dump their images onto your hard drive in some sort of cache that is not purged properly subsequently. 4. I have invested in a 4 TB external hard-drive as well as a further three 2 TB external hard-drives so that I cans et up some sort of rotating system as Richard Gaskin suggested. 5. I am using a 1 TB partiion on one of the 2 TB hard drives as a Time-Machine disk for my newly acquired 2006 Intel Mac. As I was completely unable to retrieve the log files from my hosed system I have no way of knowing what zonked my Linux system. What I do know is as follows: A. The computer (DELL Optiplex 754) works perfectly alright, having had it up and running doing forensic stuff on a variety of Live Disks (Xubuntu 16.04, GParted, Hiren's). B. The night before it "died" I was accessing an external disk that was freezing up the machine, and I wonder if the "culprit" was something on that disk. Richmond. From stephen at barncard.com Sun Dec 4 14:02:00 2016 From: stephen at barncard.com (Stephen Barncard) Date: Sun, 4 Dec 2016 11:02:00 -0800 Subject: [OT] unhosing .rev and .livecode files In-Reply-To: References: <82464fb1-643f-fbbf-dee4-3313396cb86a@gmail.com> <431db042-cdc7-a358-b694-53f7bb67b35e@gmail.com> <3EE7AB6A-56F9-46C5-946A-EA4B07B34F03@jhjensen.com> <4BC7CE09-94B7-4CCF-9814-0DC237DF29DE@all-auctions.com> Message-ID: your drive was probably at some time used as a Torrent server source. Yes definitely delete all porn, don't even bother seeing if it contains illegal porn. Chances of child porn are very likely in a Torrent folder, and one has no idea where's it's from or been. In the US the son of a friend of mine was thrown in jail for 5 years by the feds and jailed as a sexual predator for what was on his hard drive. The federal prosecutor got the defendant's independent examination thrown out of court which would have proven his innocence and made it hard for him to defend himself. He's still there. On Sun, Dec 4, 2016 at 10:44 AM, Richmond Mathewson < richmondmathewson at gmail.com> wrote: > 2. So, at the cost of losing 2 more days time, I am doing a seven-fold > deletion thing offered by > Macintosh's Disk Tools as have no very great desire to find that set of > images popping up again. > -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org From alex at tweedly.net Sun Dec 4 18:24:36 2016 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 4 Dec 2016 23:24:36 +0000 Subject: live code seems to gratuitously unlock write permission for directories In-Reply-To: References: Message-ID: <57da2e61-94e2-ae83-1bac-a71a9c8b9c70@tweedly.net> Thanks Stephen - this isn't one of my Dreamhost sites, it's still on on-rev. I am 99% sure the downloads directory was readable at one time - but I've decided to keep the extra security of explicitly deciding which URLs to to give out, and to whom - rather than a more permissive (even if filtered and parameterized) script. That would probably be a different decision if I had a larger number of files - but it's basically only a dozen or so files, referenced from 4 or 5 pages, plus a few mentioned in individual emails. Thanks everyone for the help ... -- Alex. On 04/12/2016 03:26, Stephen Barncard wrote: > This has been standard practice for shared hosting at Dreamhost for years. > I made an index.irev file that looked at the contents of the directory and > displayed a list, subject to filtering. Parameters set with simple txt > file. Very easy. > > sqb > > -- > Stephen Barncard - Sebastopol Ca. USA - > mixstream.org > > On Sat, Dec 3, 2016 at 3:10 PM, Mike Bonner wrote: > >> Most likely directory browsing is turned off. You could change the >> setting, or you could put in an irev that gets "the files" and builds a >> link list dynamically, minus itself of course. >> >> On Sat, Dec 3, 2016 at 3:54 PM, Alex Tweedly wrote: >> >>> You're right - and I confess I don't know why the downloads folder is >>> inaccessible. Permission is set to 755, and there's no .htaccess file or >>> anything else I know of to prevent it. >>> >>> Anyway - if you wanted the taskrunner files, they are : >>> - taskrunner.rev >>> - taskClientLib.rev >>> - test-task-runner.rev >>> - verybusy.rev >>> - IndexFiles.rev >>> - CheckURL.rev >>> >>> and each one can be downloaded individually, for example >>> >>> http://tweedly.org/downloads/taskrunner.rev >>> >>> >>> I guess I'll just have to find a silver lining ..... this must be a >>> security measure to keep files hidden unless I reveal the actual URLs. >> And >>> I will very shortly change the taskRunner page to make the file entry >> line >>> into links that are clickable. >>> >>> (and btw, although I do still use taskRunner regularly, I haven't rebuilt >>> the executables since probably LC 5.0 - so approach with some caution :-) >>> >>> -- Alex. >>> >>> >>> On 03/12/2016 20:54, Alejandro Tejada wrote: >>> >>>> Hi Alex, >>>> >>>> Downloads folder in your server is not accessible. >>>> >>>> It's not possible to download this stack either: >>>> http://tweedly.org/showpage.lc?page=taskRunner >>>> >>>> Al >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Mon Dec 5 04:12:08 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Mon, 5 Dec 2016 17:12:08 +0800 Subject: [OT] unhosing .rev and .livecode files In-Reply-To: <3EE7AB6A-56F9-46C5-946A-EA4B07B34F03@jhjensen.com> References: <82464fb1-643f-fbbf-dee4-3313396cb86a@gmail.com> <431db042-cdc7-a358-b694-53f7bb67b35e@gmail.com> <3EE7AB6A-56F9-46C5-946A-EA4B07B34F03@jhjensen.com> Message-ID: On Sun, Dec 4, 2016 at 11:28 AM, Jerry Jensen wrote: > Just one additional level of warning - if you keep Dropbox or Google Drive online, > malware can get there too. Usually the baddies just trash your directory, but if > they encrypt everything you have accessible online, Dropbox and Google Drive >won?t help you. Offline backup is essential, offsite is even better. Whilst your overall comment is extremely valid, that everyone should have some sort of offline back-up, the sentiment about Google Drive I think is false and probably driven by articles such as this: http://blog.teklinks.com/ask-the-engineer-why-dropbox-wont-help-if-youre-the-victim-of-cryptowall The statement that versioning is just a few hours or a couple of days at most is just wrong; certainly in the case of Google Drive, and is just a perfect example of how so many of us do not really understand the programs and services we use and the options available to us: http://fieldguide.gizmodo.com/keep-older-versions-of-your-documents-on-google-drive-f-1671188573 If Richmond had Google Drive synced to his stacks (which I appreciate he doesn't), then even at the default setting, if there was some crypto attack on his computer I would NOT discount the effort of going to your Google Drive and looking at the old versions kept - there is a little clock icon against any file that has multiple versions. Not only that, Google Drive has a menubar icon which becomes active only when it's syncing, ie I've just saved a stack. It spends most of it's time as a static Icon, so if it starts up at a random time and doesn't stop it's a clear indication to pull the ethernet, USB, Thunderbolt and FireWire cables and shut the computer down immediately - especially if I were to click on the menubar Google Drive Icon and the files it listed as being synced are ones that I haven't worked on for ages. Had to pull cables a couple of times over the years, although not for uncommanded Google Drive activity but for network traffic that didn't seem right. Cloud based sync is not THE answer, it's just one of many cheap and easy options that should be ADDED to our stash of computer prophylactics. Only if your network bandwidth is thin and/or expensive would you not avail yourself of the side benefits of free Google Drive/Dropbox. From dave at applicationinsight.com Mon Dec 5 05:54:10 2016 From: dave at applicationinsight.com (Dave Kilroy) Date: Mon, 5 Dec 2016 10:54:10 +0000 Subject: Installing LiveCode Server on a Microsoft Azure Bitnami LAMP stack Message-ID: Huzzah! The wonderful Simon Smith solved the problem - thanks Simon! :) See http://forums.livecode.com/viewtopic.php?f=20&t=28354&p=149144#p149144 for details From peter.brett at livecode.com Mon Dec 5 06:10:10 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 5 Dec 2016 11:10:10 +0000 Subject: [ANN] This Week in LiveCode 62 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 #62 here: https://goo.gl/XlzIg4 This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From toolbook at kestner.de Mon Dec 5 06:58:19 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 5 Dec 2016 12:58:19 +0100 Subject: AW: Is there a mapping table for all rawKeyUp Codes? No solution yet with LC 8 Message-ID: <004e01d24eee$df8fc550$9eaf4ff0$@kestner.de> Since the keyup handler is broken, I am still trying to build a table for mapping the rawkeyup key to a char. When testing a prototype it seemed to be easy, but now there are some pitfalls I don't get over. On Mac OS X 10.11, German system, German keyboard I get with some different char the same keyname. When putting the following code into a field: *On rawkeyup keyname* *put keyname* *end rawkeyup* e.g. Entering shift + dot (":") I get the keyname: 58 Entering shift + ? ("?") I also get the keyname: 58 ... and others... How can I map these keynames back to the char? Anttis kecode app shows for the first example the keycode 47 and for the second example 41. But that?s not what I get from rawkeyup. And with Marks link to the source code I couldn't find a solution either. Because there is only a hex value table included. Can anybody confirm these doubled codes from rawkeyup (with a German keyboard)? I am stuck with LiveCode 8 Thanks for any ideas -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Antti Ilola Gesendet: Sonntag, 27. November 2016 13:55 An: How to use LiveCode Betreff: Re: Is there a mapping table for all rawKeyUp Codes? I found this program, maybe useful. https://manytricks.com/keycodes/ Antti ---------- Edelleenl?hetetty viesti ---------- > From: Richmond > To: How to use LiveCode > Cc: > Date: Sat, 26 Nov 2016 17:17:23 +0200 > Subject: Re: Is there a mapping table for all rawKeyUp Codes? > http://forums.livecode.com/viewtopic.php?f=7&t=28395 > > Better than nothing . . . but a long, long way from ideal. > > Richmond. > > On 24.11.2016 20:31, Mark Waddingham wrote: > >> Hi Tiemo, >> >> If you search for 'PlatformKeyCode' in this file: >> >> https://github.com/livecode/livecode/blob/develop/engine/src/platform >> .h >> >> It should give you what you need. >> >> Warmest Regards, >> >> Mark. >> >> Sent from my iPhone >> >> On 24 Nov 2016, at 16:31, Tiemo Hollmann TB wrote: >>> >>> Hello, >>> >>> since keyUp doesn't works anymore as it should on windows in LC 7/8 >>> (see my previous post) I have to workaround with rawKeyUp. >>> >>> Does anybody has a togo mapping table of the rawkeyup codes to the >>> real chars? If not I have to build it myself by testing each char. >>> >>> Thanks >>> >>> Tiemo >>> >>> >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > Am I missing something? Should I expect otherwise? >> >> Peter Bogdanoff >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Mon Dec 5 08:29:43 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 5 Dec 2016 14:29:43 +0100 Subject: Can some German tell me the rawkeyup codes from a MAC numpad? Message-ID: <005701d24efb$a45a60f0$ed0f22d0$@kestner.de> Hello, I only have the standard Apple keyboard, so I can't test it. If there is somebody, who has a Mac keyboard with numpad and a German system and German keyboard, could you please tell me the keynames from rawkeyup from the numbers 0-9 from the numpad. Just create a field with a *rawkeyup* handler type the numbers 0-9 on the keypad and return the keys. Thanks Tiemo From hh at hyperhh.de Mon Dec 5 08:55:15 2016 From: hh at hyperhh.de (hh) Date: Mon, 5 Dec 2016 14:55:15 +0100 Subject: AW: Is there a mapping table for all rawKeyUp Codes? No solution yet with LC 8 Message-ID: <95ACA749-9138-4BAE-8F8C-10ECDC6DB658@hyperhh.de> The '58-example' is obviously a script error: the message box has always display bugs, you may better use a field for the display. If I understand right, then you want now the keyCode (an event, depending on _hardware_) and NOT the characterCode (a number representation of the char). Some Mac apps show, with an abuse of the name, the characterCode and not the hardware keycode. On a german keyboard from Apple the keycodes are on MacOS 10.12.1/LC 9.0.0-dp2 (65505=shift) ? = 59 ? = 59,65505 . = 46 : = 46,65505 This is not contradicting your results if your hardware is different. You could think about using ___the keysdown___, for example this works for me, using a locked field 1 and the following card script (just to see the difference): on idle ; put the keysDown into fld 1 ; end idle p.s. For the LC table (Mark's link) you could use: put baseConvert(hexValue,16,10) into decValue > Since the keyup handler is broken, I am still trying to build a table for mapping the rawkeyup key to a char. When testing a prototype it seemed to be easy, but now there are some pitfalls I don't get over. On Mac OS X 10.11, German system, German keyboard I get with some different char the same keyname. > > When putting the following code into a field: > *On rawkeyup keyname* > *put keyname* > *end rawkeyup* > > e.g. > Entering shift + dot (":") I get the keyname: 58 > Entering shift + ? ("?") I also get the keyname: 58 > > ... and others... > How can I map these keynames back to the char? > > Anttis kecode app shows for the first example the keycode 47 and for the second example 41. But that?s not what I get from rawkeyup. > > And with Marks link to the source code I couldn't find a solution either. Because there is only a hex value table included. > > Can anybody confirm these doubled codes from rawkeyup (with a German keyboard)? > > I am stuck with LiveCode 8 > > Thanks for any ideas From hh at hyperhh.de Mon Dec 5 09:14:41 2016 From: hh at hyperhh.de (hh) Date: Mon, 5 Dec 2016 15:14:41 +0100 Subject: Can some German tell me the rawkeyup codes from a MAC numpad? Message-ID: <9B3BE348-0D39-4041-A4A4-C94657564F08@hyperhh.de> Mac Keypad charcodes ,:65439 0:65438 1:65436 2:65433 3:65435 4:65430 5:65437 6:65432 7:65429 8:65431 9:65434 Clear:65407 =:65469 /:65455 *:65450 -:65453 +:65451 Enter:65421 From toolbook at kestner.de Mon Dec 5 11:10:28 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 5 Dec 2016 17:10:28 +0100 Subject: AW: Can some German tell me the rawkeyup codes from a MAC numpad? In-Reply-To: <9B3BE348-0D39-4041-A4A4-C94657564F08@hyperhh.de> References: <9B3BE348-0D39-4041-A4A4-C94657564F08@hyperhh.de> Message-ID: <006601d24f12$1987edf0$4c97c9d0$@kestner.de> Hallo Hermann, vielen Dank f?r die schnelle Hilfe! - thank you for the fast help Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von hh Gesendet: Montag, 5. Dezember 2016 15:15 An: use-livecode at lists.runrev.com Betreff: Re: Can some German tell me the rawkeyup codes from a MAC numpad? Mac Keypad charcodes ,:65439 0:65438 1:65436 2:65433 3:65435 4:65430 5:65437 6:65432 7:65429 8:65431 9:65434 Clear:65407 =:65469 /:65455 *:65450 -:65453 +:65451 Enter:65421 _______________________________________________ use-livecode mailing list use-livecode at 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 Dec 5 11:18:50 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 5 Dec 2016 17:18:50 +0100 Subject: AW: AW: Is there a mapping table for all rawKeyUp Codes? No solution yet with LC 8 In-Reply-To: <95ACA749-9138-4BAE-8F8C-10ECDC6DB658@hyperhh.de> References: <95ACA749-9138-4BAE-8F8C-10ECDC6DB658@hyperhh.de> Message-ID: <006701d24f13$44066b50$cc1341f0$@kestner.de> Hallo Hermann, shift + ? and shift + dot both return 58, anyhow if I give the output tot he message box or a field. I can't see a script error. For me it's an engine error. Same with "-" and "?", both return 45. I don't see a chance on how I could differentiate between "-" and "?", when getting 45. Perhaps I didn't understood, what you meant to workaround this issue. Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von hh Gesendet: Montag, 5. Dezember 2016 14:55 An: use-livecode at lists.runrev.com Betreff: Re: AW: Is there a mapping table for all rawKeyUp Codes? No solution yet with LC 8 The '58-example' is obviously a script error: the message box has always display bugs, you may better use a field for the display. If I understand right, then you want now the keyCode (an event, depending on _hardware_) and NOT the characterCode (a number representation of the char). Some Mac apps show, with an abuse of the name, the characterCode and not the hardware keycode. On a german keyboard from Apple the keycodes are on MacOS 10.12.1/LC 9.0.0-dp2 (65505=shift) ? = 59 ? = 59,65505 . = 46 : = 46,65505 This is not contradicting your results if your hardware is different. You could think about using ___the keysdown___, for example this works for me, using a locked field 1 and the following card script (just to see the difference): on idle ; put the keysDown into fld 1 ; end idle p.s. For the LC table (Mark's link) you could use: put baseConvert(hexValue,16,10) into decValue > Since the keyup handler is broken, I am still trying to build a table for mapping the rawkeyup key to a char. When testing a prototype it seemed to be easy, but now there are some pitfalls I don't get over. On Mac OS X 10.11, German system, German keyboard I get with some different char the same keyname. > > When putting the following code into a field: > *On rawkeyup keyname* > *put keyname* > *end rawkeyup* > > e.g. > Entering shift + dot (":") I get the keyname: 58 Entering shift + ? > ("?") I also get the keyname: 58 > > ... and others... > How can I map these keynames back to the char? > > Anttis kecode app shows for the first example the keycode 47 and for the second example 41. But that?s not what I get from rawkeyup. > > And with Marks link to the source code I couldn't find a solution either. Because there is only a hex value table included. > > Can anybody confirm these doubled codes from rawkeyup (with a German keyboard)? > > I am stuck with LiveCode 8 > > Thanks for any ideas _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Mon Dec 5 13:28:09 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 5 Dec 2016 20:28:09 +0200 Subject: AW: Is there a mapping table for all rawKeyUp Codes? No solution yet with LC 8 In-Reply-To: <004e01d24eee$df8fc550$9eaf4ff0$@kestner.de> References: <004e01d24eee$df8fc550$9eaf4ff0$@kestner.de> Message-ID: Why are you stuck with LiveCode 8? 1. My Indy licence lets me go on downloading commercial versions until it expires (sometime in 2018). 2. If this is not possible, you can, at least, download the Community version of later builds and fiddle around to see what happens there. Richmond. On 12/5/16 1:58 pm, Tiemo Hollmann TB wrote: > Since the keyup handler is broken, I am still trying to build a table for mapping the rawkeyup key to a char. When testing a prototype it seemed to be easy, but now there are some pitfalls I don't get over. On Mac OS X 10.11, German system, German keyboard I get with some different char the same keyname. > > When putting the following code into a field: > *On rawkeyup keyname* > *put keyname* > *end rawkeyup* > > e.g. > Entering shift + dot (":") I get the keyname: 58 > Entering shift + ? ("?") I also get the keyname: 58 > > ... and others... > How can I map these keynames back to the char? > > Anttis kecode app shows for the first example the keycode 47 and for the second example 41. But that?s not what I get from rawkeyup. > > And with Marks link to the source code I couldn't find a solution either. Because there is only a hex value table included. > > Can anybody confirm these doubled codes from rawkeyup (with a German keyboard)? > > I am stuck with LiveCode 8 > > Thanks for any ideas > > > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Antti Ilola > Gesendet: Sonntag, 27. November 2016 13:55 > An: How to use LiveCode > Betreff: Re: Is there a mapping table for all rawKeyUp Codes? > > I found this program, maybe useful. > > https://manytricks.com/keycodes/ > > > Antti > > ---------- Edelleenl?hetetty viesti ---------- >> From: Richmond >> To: How to use LiveCode >> Cc: >> Date: Sat, 26 Nov 2016 17:17:23 +0200 >> Subject: Re: Is there a mapping table for all rawKeyUp Codes? >> http://forums.livecode.com/viewtopic.php?f=7&t=28395 >> >> Better than nothing . . . but a long, long way from ideal. >> >> Richmond. >> >> On 24.11.2016 20:31, Mark Waddingham wrote: >> >>> Hi Tiemo, >>> >>> If you search for 'PlatformKeyCode' in this file: >>> >>> https://github.com/livecode/livecode/blob/develop/engine/src/platform >>> .h >>> >>> It should give you what you need. >>> >>> Warmest Regards, >>> >>> Mark. >>> >>> Sent from my iPhone >>> >>> On 24 Nov 2016, at 16:31, Tiemo Hollmann TB wrote: >>>> Hello, >>>> >>>> since keyUp doesn't works anymore as it should on windows in LC 7/8 >>>> (see my previous post) I have to workaround with rawKeyUp. >>>> >>>> Does anybody has a togo mapping table of the rawkeyup codes to the >>>> real chars? If not I have to build it myself by testing each char. >>>> >>>> Thanks >>>> >>>> Tiemo >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> Am I missing something? Should I expect otherwise? >>> Peter Bogdanoff >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Mon Dec 5 13:57:32 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 5 Dec 2016 20:57:32 +0200 Subject: AW: Is there a mapping table for all rawKeyUp Codes? No solution yet with LC 8 In-Reply-To: <004e01d24eee$df8fc550$9eaf4ff0$@kestner.de> References: <004e01d24eee$df8fc550$9eaf4ff0$@kestner.de> Message-ID: Um . . . On 12/5/16 1:58 pm, Tiemo Hollmann TB wrote: > Since the keyup handler is broken, I am not entirely sure what you mean by this . . . I am currently running LiveCode 8.1.1 on Mac OS 10.7.5 and have a boring little stack with 2 fields, "ff" & "gg", and this in the cardScript: onrawKeyDown KN putKN intofld "ff" endrawKeyDown onkeyUp KD putKD intofld "gg" endkeyUp and that dumps the rawKey codes into field "ff" and the keycodes into field "gg" just exactly as I would expect it to. I wonder if this is something to do with Mac OS 10.11? > I am still trying to build a table for mapping the rawkeyup key to a char. When testing a prototype it seemed to be easy, but now there are some pitfalls I don't get over. On Mac OS X 10.11, German system, German keyboard I get with some different char the same keyname. > > When putting the following code into a field: > *On rawkeyup keyname* > *put keyname* > *end rawkeyup* > > e.g. > Entering shift + dot (":") I get the keyname: 58 > Entering shift + ? ("?") I also get the keyname: 58 I have just tried that, and, Yes, you are quite right. If you set up a stack with 2 fields, "ff" & "gg" and put this script in the card: onrawKeyUp KN putKN intofld "ff" endrawKeyUp onkeyDown KD putKD intofld "gg" endkeyDown and then enter shift + dot (":") [German keyboard layout, Mac OS 10.7.5], you do get 58 in fld "ff" and ":" in fld "gg". if you then enter shift + ? ("?") you do get 58 in fld "ff" and "?" in fld "gg" which does seem very odd indeed. I wonder how Macintosh tells the difference between whether I press key "58" or key "58"? > > ... and others... > How can I map these keynames back to the char? > > Anttis kecode app shows for the first example the keycode 47 and for the second example 41. But that?s not what I get from rawkeyup. > > And with Marks link to the source code I couldn't find a solution either. Because there is only a hex value table included. > > Can anybody confirm these doubled codes from rawkeyup (with a German keyboard)? > > I am stuck with LiveCode 8 > > Thanks for any ideas > > Richmond. From toolbook at kestner.de Mon Dec 5 14:11:35 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 5 Dec 2016 20:11:35 +0100 Subject: AW: AW: Is there a mapping table for all rawKeyUp Codes? No solution yet with LC 8 In-Reply-To: References: <004e01d24eee$df8fc550$9eaf4ff0$@kestner.de> Message-ID: <000401d24f2b$6660be90$33223bb0$@kestner.de> Hello Richmond, an essential feature of my main programs, which I just wanted to release in a new Quicktime free version is to enter text. As I have pointed out in my thread "LC 8: no keyUp at fast enter" you can't enter fast text in LC anymore, because the keyup handler (the engine?) swallows chars. Now I wanted to workaround with rawkeyup, catching the codes and mapping them back into the current chars. But now I find that there are duplicate codes in rawkeyup, which prevent me to map the codes back to the current chars. Perhaps my English is too bad, to explain this correct. And I am sure, that it is not an issue of indy, it's an issue of LC 8 (what I need because of working without QT) Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Richmond Mathewson Gesendet: Montag, 5. Dezember 2016 19:28 An: How to use LiveCode Betreff: Re: AW: Is there a mapping table for all rawKeyUp Codes? No solution yet with LC 8 Why are you stuck with LiveCode 8? 1. My Indy licence lets me go on downloading commercial versions until it expires (sometime in 2018). 2. If this is not possible, you can, at least, download the Community version of later builds and fiddle around to see what happens there. Richmond. On 12/5/16 1:58 pm, Tiemo Hollmann TB wrote: > Since the keyup handler is broken, I am still trying to build a table for mapping the rawkeyup key to a char. When testing a prototype it seemed to be easy, but now there are some pitfalls I don't get over. On Mac OS X 10.11, German system, German keyboard I get with some different char the same keyname. > > When putting the following code into a field: > *On rawkeyup keyname* > *put keyname* > *end rawkeyup* > > e.g. > Entering shift + dot (":") I get the keyname: 58 Entering shift + ? > ("?") I also get the keyname: 58 > > ... and others... > How can I map these keynames back to the char? > > Anttis kecode app shows for the first example the keycode 47 and for the second example 41. But that?s not what I get from rawkeyup. > > And with Marks link to the source code I couldn't find a solution either. Because there is only a hex value table included. > > Can anybody confirm these doubled codes from rawkeyup (with a German keyboard)? > > I am stuck with LiveCode 8 > > Thanks for any ideas > > > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im > Auftrag von Antti Ilola > Gesendet: Sonntag, 27. November 2016 13:55 > An: How to use LiveCode > Betreff: Re: Is there a mapping table for all rawKeyUp Codes? > > I found this program, maybe useful. > > https://manytricks.com/keycodes/ > > > Antti > > ---------- Edelleenl?hetetty viesti ---------- >> From: Richmond >> To: How to use LiveCode >> Cc: >> Date: Sat, 26 Nov 2016 17:17:23 +0200 >> Subject: Re: Is there a mapping table for all rawKeyUp Codes? >> http://forums.livecode.com/viewtopic.php?f=7&t=28395 >> >> Better than nothing . . . but a long, long way from ideal. >> >> Richmond. >> >> On 24.11.2016 20:31, Mark Waddingham wrote: >> >>> Hi Tiemo, >>> >>> If you search for 'PlatformKeyCode' in this file: >>> >>> https://github.com/livecode/livecode/blob/develop/engine/src/platfor >>> m >>> .h >>> >>> It should give you what you need. >>> >>> Warmest Regards, >>> >>> Mark. >>> >>> Sent from my iPhone >>> >>> On 24 Nov 2016, at 16:31, Tiemo Hollmann TB wrote: >>>> Hello, >>>> >>>> since keyUp doesn't works anymore as it should on windows in LC >>>> 7/8 (see my previous post) I have to workaround with rawKeyUp. >>>> >>>> Does anybody has a togo mapping table of the rawkeyup codes to the >>>> real chars? If not I have to build it myself by testing each char. >>>> >>>> Thanks >>>> >>>> Tiemo >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> Am I missing something? Should I expect otherwise? >>> Peter Bogdanoff >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at 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 Dec 5 14:19:18 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 5 Dec 2016 19:19:18 +0000 Subject: Typesetting in LC -- Line Spacing Message-ID: <988534A9-CD12-4A89-814D-40BD6E9DDF14@hindu.org> Our design team here has high expectations for typesetting that are not easily implemented in LC? or were not before. But I realize new text styles have been introduced? though I believe thorough docs/tutorials have not been issued so it is a bit opaque. Where are the new text style command documented? I just spent 20 minute in the dictionary? not finding what I thought was the "new text formatting stuff" I could have been mistaken... I see a textShift option, but this is from 1.0 so I don't think it is part of the new styles? the entry under "textStyle" talks about an array but this is also from as far back as 5.0.2 Where are all these defined? Or am I thinking that there is something there is not? USE CASE: There are times where you want to tighten the spacing between lines, aka "change the leading" because the default gives way too much space?same problem in browsers where a default of 1.5 over X height is a common leading default that you have to override with some tedious CSS? but then when you get into running, wrapping text you do want to keep more open line-height for readability. Given the following text in a field ----------- Headline # at font size 2X Sub-head # at font size 1.5 X blank line body text # at font size 1 X -------------- Can we now control the line height above and below the headlines in this example? i.e. control over the baseline of a given line in relation to the baseline of the previous line? i.e. variable spacing between lines in the same field. BR From paul at livecode.org Mon Dec 5 14:44:06 2016 From: paul at livecode.org (Paul Hibbert) Date: Mon, 5 Dec 2016 11:44:06 -0800 Subject: Is there a mapping table for all rawKeyUp Codes? No solution yet with LC 8 In-Reply-To: <006701d24f13$44066b50$cc1341f0$@kestner.de> References: <95ACA749-9138-4BAE-8F8C-10ECDC6DB658@hyperhh.de> <006701d24f13$44066b50$cc1341f0$@kestner.de> Message-ID: <7FA28FEC-D24F-47E8-BFEA-235E55589CEA@livecode.org> On Mac OS Sierra 10.12.1 with LC 8.1.2(rc2) and German Keyboard layout I see: Shift + dot (":") the keyname = 58 Shift + ? ("?") the keyname = 58 But if you add to these 'the keysDown' as Herman suggested I see: Shift + dot (":") the keyname = 58 and the keysDown = 46,65505 (46 is the : key and 65505 is the shift key) Shift + ? ("?") the keyname = 58 and the keysDown = 59,65505 (59 is the ? key and 65505 is the shift key) So you should be able to use the first item of the keysDown to differentiate which key was pressed. Maybe not ideal, but it should work. e.g. put keyname and item 1 of the keysDown Paul > On Dec 5, 2016, at 8:18 AM, Tiemo Hollmann TB wrote: > > Hallo Hermann, > > shift + ? and shift + dot both return 58, anyhow if I give the output tot he message box or a field. I can't see a script error. For me it's an engine error. > > Same with "-" and "?", both return 45. > I don't see a chance on how I could differentiate between "-" and "?", when getting 45. > > Perhaps I didn't understood, what you meant to workaround this issue. > > Tiemo > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von hh > Gesendet: Montag, 5. Dezember 2016 14:55 > An: use-livecode at lists.runrev.com > Betreff: Re: AW: Is there a mapping table for all rawKeyUp Codes? No solution yet with LC 8 > > The '58-example' is obviously a script error: > the message box has always display bugs, you may better use a field for the display. > > If I understand right, then you want now the keyCode (an event, depending on _hardware_) and NOT the characterCode (a number representation of the char). > Some Mac apps show, with an abuse of the name, the characterCode and not the hardware keycode. > > On a german keyboard from Apple the keycodes are on MacOS 10.12.1/LC 9.0.0-dp2 (65505=shift) > > ? = 59 > ? = 59,65505 > . = 46 > : = 46,65505 > > This is not contradicting your results if your hardware is different. > > You could think about using ___the keysdown___, for example this works for me, using a locked field 1 and the following card script (just to see the difference): > > on idle ; put the keysDown into fld 1 ; end idle > > p.s. For the LC table (Mark's link) you could use: > put baseConvert(hexValue,16,10) into decValue > >> Since the keyup handler is broken, I am still trying to build a table for mapping the rawkeyup key to a char. When testing a prototype it seemed to be easy, but now there are some pitfalls I don't get over. On Mac OS X 10.11, German system, German keyboard I get with some different char the same keyname. >> >> When putting the following code into a field: >> *On rawkeyup keyname* >> *put keyname* >> *end rawkeyup* >> >> e.g. >> Entering shift + dot (":") I get the keyname: 58 Entering shift + ? >> ("?") I also get the keyname: 58 >> >> ... and others... >> How can I map these keynames back to the char? >> >> Anttis kecode app shows for the first example the keycode 47 and for the second example 41. But that?s not what I get from rawkeyup. >> >> And with Marks link to the source code I couldn't find a solution either. Because there is only a hex value table included. >> >> Can anybody confirm these doubled codes from rawkeyup (with a German keyboard)? >> >> I am stuck with LiveCode 8 >> >> Thanks for any ideas > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Mon Dec 5 15:08:02 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 5 Dec 2016 14:08:02 -0600 Subject: Typesetting in LC -- Line Spacing In-Reply-To: <988534A9-CD12-4A89-814D-40BD6E9DDF14@hindu.org> References: <988534A9-CD12-4A89-814D-40BD6E9DDF14@hindu.org> Message-ID: <1cb11a04-b14a-393a-d919-6edb775b8f29@hyperactivesw.com> On 12/5/16 1:19 PM, Sannyasin Brahmanathaswami wrote: > Can we now control the line height above and below the headlines in > this example? i.e. control over the baseline of a given line in > relation to the baseline of the previous line? i.e. variable spacing > between lines in the same field. It took me forever to find a definitive list, which I now know is located in the LC 5.5 release notes. There really should be a lesson or summary about this stuff. To control line spacing individually, you can set the field's fixedLineHeight to true and its textheight to the smallest spacing you'll need, and then use the "spaceAbove" and/or the "spaceBelow" adjustments to manage specific lines. The "new-ish" field and text properties are very, very powerful and I use them a lot. But if you don't know about them, it is almost impossible to discover they exist. I only found them because I remembered some new features were implemented, but I actually had to open and read every release note going to back to 5.5 before I found them. I wish there were a way to search all the release notes at once. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From brahma at hindu.org Mon Dec 5 15:18:27 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 5 Dec 2016 20:18:27 +0000 Subject: Typesetting in LC -- Line Spacing In-Reply-To: <1cb11a04-b14a-393a-d919-6edb775b8f29@hyperactivesw.com> References: <988534A9-CD12-4A89-814D-40BD6E9DDF14@hindu.org> <1cb11a04-b14a-393a-d919-6edb775b8f29@hyperactivesw.com> Message-ID: " I wish there were a way to search all the release notes at once." ditto that! And it goes back to an older request I had (of course someone will say "you can build that yourself" that the IDE should have a very robust text/layout/typsetting palette? so that newbies coming on board don?t feel this platform is unusable for "real classy" design work.. BR On 12/5/16, 10:08 AM, "use-livecode on behalf of J. Landman Gay" wrote: It took me forever to find a definitive list, which I now know is located in the LC 5.5 release notes. There really should be a lesson or summary about this stuff. To control line spacing individually, you can set the field's fixedLineHeight to true and its textheight to the smallest spacing you'll need, and then use the "spaceAbove" and/or the "spaceBelow" adjustments to manage specific lines. The "new-ish" field and text properties are very, very powerful and I use them a lot. But if you don't know about them, it is almost impossible to discover they exist. I only found them because I remembered some new features were implemented, but I actually had to open and read every release note going to back to 5.5 before I found them. From richmondmathewson at gmail.com Mon Dec 5 15:18:42 2016 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 5 Dec 2016 22:18:42 +0200 Subject: Typesetting in LC -- Line Spacing In-Reply-To: <1cb11a04-b14a-393a-d919-6edb775b8f29@hyperactivesw.com> References: <988534A9-CD12-4A89-814D-40BD6E9DDF14@hindu.org> <1cb11a04-b14a-393a-d919-6edb775b8f29@hyperactivesw.com> Message-ID: <702944d3-127a-bfeb-f0de-20b777964b4e@gmail.com> On 12/5/16 10:08 pm, J. Landman Gay wrote: > On 12/5/16 1:19 PM, Sannyasin Brahmanathaswami wrote: > >> Can we now control the line height above and below the headlines in >> this example? i.e. control over the baseline of a given line in >> relation to the baseline of the previous line? i.e. variable spacing >> between lines in the same field. > > It took me forever to find a definitive list, which I now know is > located in the LC 5.5 release notes. There really should be a lesson > or summary about this stuff. > > To control line spacing individually, you can set the field's > fixedLineHeight to true and its textheight to the smallest spacing > you'll need, and then use the "spaceAbove" and/or the "spaceBelow" > adjustments to manage specific lines. > > The "new-ish" field and text properties are very, very powerful and I > use them a lot. But if you don't know about them, it is almost > impossible to discover they exist. I only found them because I > remembered some new features were implemented, but I actually had to > open and read every release note going to back to 5.5 before I found > them. > > I wish there were a way to search all the release notes at once. > Surely one way to search all the release notes at once would be to download them, copy the text out of them (all) into a socking greta text file and . . . Of course a clever person might work out a way to concatenate pdf files . . . or cheat: http://www.pdfmerge.com/ http://pdfjoiner.com/ https://www.maketecheasier.com/combine-multiple-pdf-files-with-pdftk/ http://www.pdfsam.org/ Richmond. From brahma at hindu.org Mon Dec 5 15:22:57 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 5 Dec 2016 20:22:57 +0000 Subject: Typesetting in LC -- Line Spacing In-Reply-To: <1cb11a04-b14a-393a-d919-6edb775b8f29@hyperactivesw.com> References: <988534A9-CD12-4A89-814D-40BD6E9DDF14@hindu.org> <1cb11a04-b14a-393a-d919-6edb775b8f29@hyperactivesw.com> Message-ID: <29B206DD-3A95-4367-9181-82A2EBBACE93@hindu.org> Wow! If you go to the download page there is this awesome little stack included in the 5.5.0 release called field_features.livecode Message to HQ: You need to bring this forward somehow! at just 96 K why don't you just package it with the other resources and documentation in every distro? BR On 12/5/16, 10:08 AM, "use-livecode on behalf of J. Landman Gay" wrote: The "new-ish" field and text properties are very, very powerful and I use them a lot. But if you don't know about them, it is almost impossible to discover they exist. I only found them because I remembered some new features were implemented, but I actually had to open and read every release note going to back to 5.5 before I found them. From bogdanoff at me.com Mon Dec 5 15:29:24 2016 From: bogdanoff at me.com (Peter Bogdanoff) Date: Mon, 05 Dec 2016 12:29:24 -0800 Subject: Typesetting in LC -- Line Spacing In-Reply-To: <988534A9-CD12-4A89-814D-40BD6E9DDF14@hindu.org> References: <988534A9-CD12-4A89-814D-40BD6E9DDF14@hindu.org> Message-ID: <529CD76C-7FD6-44EA-A424-2EA80654772D@me.com> As far as I can tell, you only have 2 choices for a field: fixed and non-fixed line height. Fixed?uses, of course, your input setting. Not-fixed?uses a default based on the size of the text within a particular line, or the size of an image referenced in the htmlText "img src" tag (the imageSource property of a character). And if there is no larger text or image, then it seems to set the line height to the default used by fixed line height. You could try to fake it by setting the field to not fixed line height, and then force-adjust particular lines by setting the text size of an invisible character like a space, or using a transparent (or not noticeable) image source. However, this last solution may not give you your desired default height for the main body of text (unless you set the spaces to a larger size). Peter Bogdanoff On Dec 5, 2016, at 11:19 AM, Sannyasin Brahmanathaswami wrote: > Our design team here has high expectations for typesetting that are not easily implemented in LC? or were not before. > > But I realize new text styles have been introduced? though I believe thorough docs/tutorials have not been issued so it is a bit opaque. Where are the new text style command documented? I just spent 20 minute in the dictionary? not finding what I thought was the "new text formatting stuff" I could have been mistaken... > > I see a textShift option, but this is from 1.0 so I don't think it is part of the new styles? the entry under "textStyle" talks about an array but this is also from as far back as 5.0.2 > > Where are all these defined? Or am I thinking that there is something there is not? > > USE CASE: > > There are times where you want to tighten the spacing between lines, aka "change the leading" because the default gives way too much space?same problem in browsers where a default of 1.5 over X height is a common leading default that you have to override with some tedious CSS? but then when you get into running, wrapping text you do want to keep more open line-height for readability. > > Given the following text in a field > > ----------- > > Headline # at font size 2X > > Sub-head # at font size 1.5 X > > blank line > > body text # at font size 1 X > > -------------- > > Can we now control the line height above and below the headlines in this example? i.e. control over the baseline of a given line in relation to the baseline of the previous line? i.e. variable spacing between lines in the same field. > > BR > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Dec 5 15:38:29 2016 From: paul at researchware.com (Paul Dupuis) Date: Mon, 05 Dec 2016 15:38:29 -0500 Subject: Typesetting in LC -- Line Spacing In-Reply-To: <1cb11a04-b14a-393a-d919-6edb775b8f29@hyperactivesw.com> References: <988534A9-CD12-4A89-814D-40BD6E9DDF14@hindu.org> <1cb11a04-b14a-393a-d919-6edb775b8f29@hyperactivesw.com> Message-ID: <5845D045.9050405@researchware.com> On 12/5/2016 3:08 PM, J. Landman Gay wrote: > On 12/5/16 1:19 PM, Sannyasin Brahmanathaswami wrote: > >> Can we now control the line height above and below the headlines in >> this example? i.e. control over the baseline of a given line in >> relation to the baseline of the previous line? i.e. variable spacing >> between lines in the same field. > > It took me forever to find a definitive list, which I now know is > located in the LC 5.5 release notes. There really should be a lesson > or summary about this stuff. > > To control line spacing individually, you can set the field's > fixedLineHeight to true and its textheight to the smallest spacing > you'll need, and then use the "spaceAbove" and/or the "spaceBelow" > adjustments to manage specific lines. > > The "new-ish" field and text properties are very, very powerful and I > use them a lot. But if you don't know about them, it is almost > impossible to discover they exist. I only found them because I > remembered some new features were implemented, but I actually had to > open and read every release note going to back to 5.5 before I found > them. > > I wish there were a way to search all the release notes at once. > I am not sure what version of LC you are working in, but in LC 6.7.11 if you go to the dictionary and click on the field object to see all the properties of the field object, all the new field properties, including spaceAbove and spaceBelow seem to be there. In new releases, I often browse object of interest in the dictionary looking for new properties first rather than the release notes, simply because the Dictionary is a big convenient button on the IDE toolbar. From ambassador at fourthworld.com Mon Dec 5 15:39:40 2016 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 5 Dec 2016 12:39:40 -0800 Subject: Typesetting in LC -- Line Spacing In-Reply-To: References: Message-ID: Sannyasin Brahmanathaswami wrote: > " I wish there were a way to search all the release notes at once." > > ditto that! > > And it goes back to an older request I had (of course someone will > say "you can build that yourself" In an ideal world it would be great for the team to have time to do that. In the world we live in, they'd have to take time away from other things we ask them to do. Which of the stuff they're working on would you like them to set aside to do that? Can you get enough other people to agree with such priorities so that suspending the other work doesn't result in a lot of complaints the other direction? If enough people see value in such a search index, why would they not make one and let the engine team continue to work on the engine? While we ponder that, here's the link to the v5.5 Release Notes, which I've found to be the best one-stop-shopping for info on the new field features added in that version: And yes, I'd like to write the new manual section that incorporates that and submit a pull request to have it become part of the manual that ships with LC. But like the team and the other community members, I have other obligations as well, so like the team and the other community members I haven't done that yet. But anyone sufficiently motivated with a few spare hours could do it. Same with: > that the IDE should have a very robust text/layout/typsetting > palette? so that newbies coming on board don?t feel this platform > is unusable for "real classy" design work.. One of the great things about a toolkit like LC is that it goes so very far beyond any other Xtalk, light years beyond HC, that it's completely redefined our expectations. In HC folks were happily clicking away without even any vector graphics at all, very limited typography, and the only support for color was done in an overlay through an external. LC has done such a great job in delivering an engine so far more capable, and for so many more platforms, and the team's done such a good job with it that we take for granted that all that's somehow easy, and that it should be equally easy to build UIs for the sorts of feature sets commonly found only in drawing programs, page layout programs, and many other categories far beyond a humble coder's IDE. The team size at LC Ltd. may be finite, the our community need not be. If we need scripted UIs for these sorts of enhancements, as scripters we're well equipped to deliver them. Why can't the UI you're describing be a plugin, perhaps liberally licensed for all to use, share, and enhance? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From jacque at hyperactivesw.com Mon Dec 5 16:33:13 2016 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 5 Dec 2016 15:33:13 -0600 Subject: Typesetting in LC -- Line Spacing In-Reply-To: <5845D045.9050405@researchware.com> References: <988534A9-CD12-4A89-814D-40BD6E9DDF14@hindu.org> <1cb11a04-b14a-393a-d919-6edb775b8f29@hyperactivesw.com> <5845D045.9050405@researchware.com> Message-ID: <69cc2380-36f8-2ae2-3059-a333672c9998@hyperactivesw.com> On 12/5/16 2:38 PM, Paul Dupuis wrote: > I am not sure what version of LC you are working in, but in LC 6.7.11 if > you go to the dictionary and click on the field object to see all the > properties of the field object, all the new field properties, including > spaceAbove and spaceBelow seem to be there. > > In new releases, I often browse object of interest in the dictionary > looking for new properties first rather than the release notes, simply > because the Dictionary is a big convenient button on the IDE toolbar. I'm in 8.1.2 right now and you can (indirectly) do the same thing to see all properties of a field, for instance. But there are so many... Still, I could have done that I guess. Mainly I remembered there was a "change list" and went looking for it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From hh at hyperhh.de Mon Dec 5 17:27:21 2016 From: hh at hyperhh.de (hh) Date: Mon, 5 Dec 2016 23:27:21 +0100 Subject: Is there a mapping table for all rawKeyUp Codes? No solution yet with LC 8 Message-ID: Hi all. Yes that's the point: *The keysDown* return the correct (hardware) keyCode. Tiemo is right, there is a bug introduced around LC 8. From the dictionary: "The keycodes returned by the keysDown function are the same as those passed as parameters with the rawKeyDown and rawKeyUp messages." That's not true (I tested with all latest versions of LC 8.1.1 and up and Paul confirmed for some). Thus we can possibly locate the bug: Apple changed his keyboard mapping method around the introduction of LC 8 (it is no longer in easy accessible files but in "layout bundles"). Was _the keysDown_ adjusted by the LC-team and _rawkeyDown/Up_ not? Tiemo, you should definitely report this!? From bobsneidar at iotecdigital.com Mon Dec 5 17:47:54 2016 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 5 Dec 2016 22:47:54 +0000 Subject: Typesetting in LC -- Line Spacing In-Reply-To: <1cb11a04-b14a-393a-d919-6edb775b8f29@hyperactivesw.com> References: <988534A9-CD12-4A89-814D-40BD6E9DDF14@hindu.org> <1cb11a04-b14a-393a-d919-6edb775b8f29@hyperactivesw.com> Message-ID: <883C1309-4A93-44CE-B7DB-0FAB79003453@iotecdigital.com> The OS will allow you to search the contents of a folder. Windows and OS X allow you to do this. They automatically index most files and directories. Bob S > On Dec 5, 2016, at 12:08 , J. Landman Gay wrote: > > On 12/5/16 1:19 PM, Sannyasin Brahmanathaswami wrote: > >> Can we now control the line height above and below the headlines in >> this example? i.e. control over the baseline of a given line in >> relation to the baseline of the previous line? i.e. variable spacing >> between lines in the same field. > > It took me forever to find a definitive list, which I now know is located in the LC 5.5 release notes. There really should be a lesson or summary about this stuff. > > To control line spacing individually, you can set the field's fixedLineHeight to true and its textheight to the smallest spacing you'll need, and then use the "spaceAbove" and/or the "spaceBelow" adjustments to manage specific lines. > > The "new-ish" field and text properties are very, very powerful and I use them a lot. But if you don't know about them, it is almost impossible to discover they exist. I only found them because I remembered some new features were implemented, but I actually had to open and read every release note going to back to 5.5 before I found them. > > I wish there were a way to search all the release notes at once. > > -- > 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 devin_asay at byu.edu Mon Dec 5 18:57:56 2016 From: devin_asay at byu.edu (Devin Asay) Date: Mon, 5 Dec 2016 23:57:56 +0000 Subject: Typesetting in LC -- Line Spacing In-Reply-To: <988534A9-CD12-4A89-814D-40BD6E9DDF14@hindu.org> References: <988534A9-CD12-4A89-814D-40BD6E9DDF14@hindu.org> Message-ID: <207AF6BC-EBDB-4151-A417-15AEF58BAB88@byu.edu> > On Dec 5, 2016, at 12:19 PM, Sannyasin Brahmanathaswami wrote: > > Our design team here has high expectations for typesetting that are not easily implemented in LC? or were not before. > > But I realize new text styles have been introduced? though I believe thorough docs/tutorials have not been issued so it is a bit opaque. Where are the new text style command documented? I just spent 20 minute in the dictionary? not finding what I thought was the "new text formatting stuff" I could have been mistaken... > > I see a textShift option, but this is from 1.0 so I don't think it is part of the new styles? the entry under "textStyle" talks about an array but this is also from as far back as 5.0.2 > > Where are all these defined? Or am I thinking that there is something there is not? You can filter dictionary listings to only show field properties, and then it?s a not-too-long scroll to see almost all of the text properties. Also, the htmlText property listing in the dictionary lists pretty much all of the field properties, including properties that apply to paragraphs. They are pretty much all there, since the htmlText property has to accurately capture all text formatting within a field. (I grant that this is a non-obvious place to look, but it is mostly all there.) Devin Devin Asay Director Office of Digital Humanities Brigham Young University From bernd.niggemann at uni-wh.de Mon Dec 5 19:36:01 2016 From: bernd.niggemann at uni-wh.de (BNig) Date: Mon, 5 Dec 2016 16:36:01 -0800 (PST) Subject: Clone graphic does not respect dimensions In-Reply-To: References: <5E4806B4-322D-42C0-9CCD-D1CB1D7F201B@unimelb.edu.au> <39700040-AC2C-4700-9BAC-185049D4C32F@unimelb.edu.au> <4738cd53-c146-ff29-1cf7-155f344eca53@fourthworld.com> <1480676573419-4710811.post@n4.nabble.com> <0a030e3a-266a-107f-69ad-a987b99c8b9d@fourthworld.com> Message-ID: <1480984561992-4710879.post@n4.nabble.com> Jeanne A. E. DeVoto wrote > Hmm, I was under the impression that it was scripted using the > "clone" command. I'd forgotten about option-drag... > > ...but that's also done with the pointer tool, not the graphic tool. > So checking the tool would also exempt that case from auto-resizing > small graphics. I like the idea of checking the tool to allow cloning at sizes below 9 by 9 if it were not for the use case that copying/pasting a graphic smaller than 9 by 9 is possible while the graphic tool is active. This is where checking for the tool would fail and the graphic would be pasted at default dimensions. This leaves changing the "newGraphic" handler wholesale (without considering the tool) to values smaller than 9 by 9 e.g. smaller 6 by 6 to cover most common use cases and still let the IDE prevent user mishaps by converting a new graphic to default 120 by 120 if the newly created graphic is smaller than 6 by 6. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Clone-graphic-does-not-respect-dimensions-tp4710776p4710879.html Sent from the Revolution - User mailing list archive at Nabble.com. From brahma at hindu.org Mon Dec 5 22:16:26 2016 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 6 Dec 2016 03:16:26 +0000 Subject: Typesetting in LC -- Line Spacing In-Reply-To: References: Message-ID: <743E6293-F089-4652-9CF4-792C32E39998@hindu.org> You are right? in fact I had set Andre on this a few years ago and he started one (robust, complete text/field typesetting layout palette)? We are using Git for our new app. It would be fun to try a new repo for this and let everyone hammer on it? BR On 12/5/16, 10:39 AM, "use-livecode on behalf of Richard Gaskin" wrote: Why can't the UI you're describing be a plugin, perhaps liberally licensed for all to use, share, and enhance? From lan.kc.macmail at gmail.com Mon Dec 5 23:57:31 2016 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 6 Dec 2016 12:57:31 +0800 Subject: Typesetting in LC -- Line Spacing In-Reply-To: <702944d3-127a-bfeb-f0de-20b777964b4e@gmail.com> References: <988534A9-CD12-4A89-814D-40BD6E9DDF14@hindu.org> <1cb11a04-b14a-393a-d919-6edb775b8f29@hyperactivesw.com> <702944d3-127a-bfeb-f0de-20b777964b4e@gmail.com> Message-ID: On Tue, Dec 6, 2016 at 4:18 AM, Richmond Mathewson wrote: > > Of course a clever person might work out a way to concatenate pdf files . . > . > or cheat: > > http://www.pdfmerge.com/ > http://pdfjoiner.com/ > https://www.maketecheasier.com/combine-multiple-pdf-files-with-pdftk/ > http://www.pdfsam.org/ > > Richmond. > Why waste time and bandwidth doing something online that gives you less flexibility and takes more time than using free a programe already on your computer that can do this? On OS X it's Preview but I know Acrobat Reader can do it and I'm sure there is a Linux equivalent that will do the same: https://support.apple.com/en-us/HT202945 From toolbook at kestner.de Tue Dec 6 02:45:17 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 6 Dec 2016 08:45:17 +0100 Subject: AW: Is there a mapping table for all rawKeyUp Codes? No solution yet with LC 8 In-Reply-To: References: Message-ID: <001401d24f94$b1ae7400$150b5c00$@kestner.de> Thanks Hermann and Paul for clarifying this to me. I didn't noticed the difference to *the keysdown* You say Apple changed the keyboard mapping. I have no idea, if and how this could affect now LC 8 concerning backward compatibility with older systems. Will the keysdown give me on "all" systems (from 10.8-10.12) the same codes, if Apple changed something in any system? Can I rely on this workaround to get the correct chars, which have been entered on "all" systems? Has anybody a best guest on how to handle this? Tiemo P.S. yes I filed it in the QC -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von hh Gesendet: Montag, 5. Dezember 2016 23:27 An: use-livecode at lists.runrev.com Betreff: Re: Is there a mapping table for all rawKeyUp Codes? No solution yet with LC 8 Hi all. Yes that's the point: *The keysDown* return the correct (hardware) keyCode. Tiemo is right, there is a bug introduced around LC 8. From the dictionary: "The keycodes returned by the keysDown function are the same as those passed as parameters with the rawKeyDown and rawKeyUp messages." That's not true (I tested with all latest versions of LC 8.1.1 and up and Paul confirmed for some). Thus we can possibly locate the bug: Apple changed his keyboard mapping method around the introduction of LC 8 (it is no longer in easy accessible files but in "layout bundles"). Was _the keysDown_ adjusted by the LC-team and _rawkeyDown/Up_ not? Tiemo, you should definitely report this!? _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Tue Dec 6 03:24:37 2016 From: mark at livecode.com (Mark Waddingham) Date: Tue, 06 Dec 2016 09:24:37 +0100 Subject: Is there a mapping table for all rawKeyUp =?UTF-8?Q?Codes=3F?= In-Reply-To: <00c301d24670$2ac523d0$804f6b70$@kestner.de> References: <00c301d24670$2ac523d0$804f6b70$@kestner.de> Message-ID: <1b6730080cb5c256fee8fd4ac9d81a62@livecode.com> Hi Tiemo, On 2016-11-24 17:31, Tiemo Hollmann TB wrote: > since keyUp doesn't works anymore as it should on windows in LC 7/8 > (see my > previous post) I have to workaround with rawKeyUp. Can you explain what effect you are trying to achieve? There might be another way to do what you want. The keyUp message isn't quite what it appears to be - it is a synthetic message generated by the engine *after* passing a keyDown event through the message path. In particular, it has no direct relation to the user actually releasing a key. In theory, keyUp is equivalent to doing: on keyDown pKey send "keyUp pKey" to me in 0 millisecs end keyDown In general, there is no guaranteed one-to-one mapping between key strokes and keyDown/keyUp messages as it can sometimes take multiple key presses to generate a single character (e.g. alt-e e to get e-acute on Mac). This makes doing any wrangling from rawkey codes to characters quite hard - as it depends entirely on the specific keyboard layout a user has set, or which input method is in use. If you are doing entry into a field and want to be notified of a user editing action which has changed the content *after* the content has been changed you could try using the 'textChanged' message. This is sent after any user editing operation has completed, but before the screen is unlocked and the changes displayed. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Tue Dec 6 03:30:48 2016 From: mark at livecode.com (Mark Waddingham) Date: Tue, 06 Dec 2016 09:30:48 +0100 Subject: Clone graphic does not respect dimensions In-Reply-To: <03e5dffa-bb1b-af7b-5cbd-aff9aa6b384d@fourthworld.com> References: <03e5dffa-bb1b-af7b-5cbd-aff9aa6b384d@fourthworld.com> Message-ID: <2bcc1bd6363c4f10a0e29bda7554bdfa@livecode.com> On 2016-12-03 01:47, Richard Gaskin wrote: > If someone's smart enough to develop software, they're probably smart > enough to figure out how to grab a resize handle and make a graphic > larger. :) I think that was the problem - and why the check was present. (Of course, the check should only ever have been done whilst the user was *editing* in the IDE, and not in the normal course of things - but that's an entirely different matter). Prior to 8.0, if your control was smaller than 8x8 it was virtually impossible to use the edit handles as they were 'interior' to the object. I suspect that was why the minimum size restriction was put in place. Since 8.0, however, edit handlers are on the corners of the controls meaning that you can still easily resize a control which is 1x1. This probably means that check can actually be removed without any adverse effects. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From toolbook at kestner.de Tue Dec 6 04:02:28 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 6 Dec 2016 10:02:28 +0100 Subject: AW: Is there a mapping table for all rawKeyUp Codes? In-Reply-To: <1b6730080cb5c256fee8fd4ac9d81a62@livecode.com> References: <00c301d24670$2ac523d0$804f6b70$@kestner.de> <1b6730080cb5c256fee8fd4ac9d81a62@livecode.com> Message-ID: <002501d24f9f$79813170$6c839450$@kestner.de> Hi Mark, thank you for jumping in. interesting to know your explanations. I was catching the user input to pass it to a SQL for selecting data. I will modify my script to *textChanged* and see what happens (probably it will be solved). Thanks Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Mark Waddingham Gesendet: Dienstag, 6. Dezember 2016 09:25 An: How to use LiveCode Betreff: Re: Is there a mapping table for all rawKeyUp Codes? Hi Tiemo, On 2016-11-24 17:31, Tiemo Hollmann TB wrote: > since keyUp doesn't works anymore as it should on windows in LC 7/8 > (see my previous post) I have to workaround with rawKeyUp. Can you explain what effect you are trying to achieve? There might be another way to do what you want. The keyUp message isn't quite what it appears to be - it is a synthetic message generated by the engine *after* passing a keyDown event through the message path. In particular, it has no direct relation to the user actually releasing a key. In theory, keyUp is equivalent to doing: on keyDown pKey send "keyUp pKey" to me in 0 millisecs end keyDown In general, there is no guaranteed one-to-one mapping between key strokes and keyDown/keyUp messages as it can sometimes take multiple key presses to generate a single character (e.g. alt-e e to get e-acute on Mac). This makes doing any wrangling from rawkey codes to characters quite hard - as it depends entirely on the specific keyboard layout a user has set, or which input method is in use. If you are doing entry into a field and want to be notified of a user editing action which has changed the content *after* the content has been changed you could try using the 'textChanged' message. This is sent after any user editing operation has completed, but before the screen is unlocked and the changes displayed. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Tue Dec 6 04:05:23 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 6 Dec 2016 10:05:23 +0100 Subject: AW: Is there a mapping table for all rawKeyUp Codes? No solution yet with LC 8 In-Reply-To: <001401d24f94$b1ae7400$150b5c00$@kestner.de> References: <001401d24f94$b1ae7400$150b5c00$@kestner.de> Message-ID: <002601d24f9f$e18945f0$a49bd1d0$@kestner.de> FYI, Mark Waddingham has just answered this issue in the QC: " Whilst Panos has observed a difference between the pre-Cocoa and Cocoa Mac engines, it was actually incorrect in the pre-Cocoa engines. The raw keycodes are the keycodes of the actual keyboard keys and not the characters they represent. The same key will give the same raw keycode regardless of keyboard layout and it will be unaffected by the modifier key state (alt, shift etc.)." Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Tiemo Hollmann TB Gesendet: Dienstag, 6. Dezember 2016 08:45 An: 'How to use LiveCode' Betreff: AW: Is there a mapping table for all rawKeyUp Codes? No solution yet with LC 8 Thanks Hermann and Paul for clarifying this to me. I didn't noticed the difference to *the keysdown* You say Apple changed the keyboard mapping. I have no idea, if and how this could affect now LC 8 concerning backward compatibility with older systems. Will the keysdown give me on "all" systems (from 10.8-10.12) the same codes, if Apple changed something in any system? Can I rely on this workaround to get the correct chars, which have been entered on "all" systems? Has anybody a best guest on how to handle this? Tiemo P.S. yes I filed it in the QC -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von hh Gesendet: Montag, 5. Dezember 2016 23:27 An: use-livecode at lists.runrev.com Betreff: Re: Is there a mapping table for all rawKeyUp Codes? No solution yet with LC 8 Hi all. Yes that's the point: *The keysDown* return the correct (hardware) keyCode. Tiemo is right, there is a bug introduced around LC 8. From the dictionary: "The keycodes returned by the keysDown function are the same as those passed as parameters with the rawKeyDown and rawKeyUp messages." That's not true (I tested with all latest versions of LC 8.1.1 and up and Paul confirmed for some). Thus we can possibly locate the bug: Apple changed his keyboard mapping method around the introduction of LC 8 (it is no longer in easy accessible files but in "layout bundles"). Was _the keysDown_ adjusted by the LC-team and _rawkeyDown/Up_ not? Tiemo, you should definitely report this!? _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bernd.niggemann at uni-wh.de Tue Dec 6 06:49:35 2016 From: bernd.niggemann at uni-wh.de (BNig) Date: Tue, 6 Dec 2016 03:49:35 -0800 (PST) Subject: Clone graphic does not respect dimensions In-Reply-To: <2bcc1bd6363c4f10a0e29bda7554bdfa@livecode.com> References: <5E4806B4-322D-42C0-9CCD-D1CB1D7F201B@unimelb.edu.au> <39700040-AC2C-4700-9BAC-185049D4C32F@unimelb.edu.au> <4738cd53-c146-ff29-1cf7-155f344eca53@fourthworld.com> <1480676573419-4710811.post@n4.nabble.com> <0a030e3a-266a-107f-69ad-a987b99c8b9d@fourthworld.com> <03e5dffa-bb1b-af7b-5cbd-aff9aa6b384d@fourthworld.com> <2bcc1bd6363c4f10a0e29bda7554bdfa@livecode.com> Message-ID: <1481024975738-4710887.post@n4.nabble.com> Mark Waddingham-2 wrote > On 2016-12-03 01:47, Richard Gaskin wrote: >> If someone's smart enough to develop software, they're probably smart >> enough to figure out how to grab a resize handle and make a graphic >> larger. :) > > I think that was the problem - and why the check was present. (Of > course, the check should only ever have been done whilst the user was > *editing* in the IDE, and not in the normal course of things - but > that's an entirely different matter). > > Prior to 8.0, if your control was smaller than 8x8 it was virtually > impossible to use the edit handles as they were 'interior' to the > object. I suspect that was why the minimum size restriction was put in > place. > > Since 8.0, however, edit handlers are on the corners of the controls > meaning that you can still easily resize a control which is 1x1. This > probably means that check can actually be removed without any adverse > effects. > > Warmest Regards, > > Mark. Enhancement request: http://quality.livecode.com/show_bug.cgi?id=18966 Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Clone-graphic-does-not-respect-dimensions-tp4710776p4710887.html Sent from the Revolution - User mailing list archive at Nabble.com. From hh at hyperhh.de Tue Dec 6 07:08:55 2016 From: hh at hyperhh.de (hh) Date: Tue, 6 Dec 2016 13:08:55 +0100 Subject: AW: Is there a mapping table for all rawKeyUp Codes? No solution yet with LC 8 Message-ID: Tiemo wrote: > You say Apple changed the keyboard mapping. NO, I said, Apple changed his keyboard mapping _method_. That's why developers had to change the lookup method for the mapping. Anyway, 'the keysdown' and 'rawkeydown/up' should return the _hardware_ code [keydown/up may return, basically different, the character (or the character code).] Currently (MacOS 10.12, LC 8 and up) only 'the keysdown' is correct. From hh at hyperhh.de Tue Dec 6 07:33:20 2016 From: hh at hyperhh.de (hh) Date: Tue, 6 Dec 2016 13:33:20 +0100 Subject: AW: Is there a mapping table for all rawKeyUp Codes? No solution yet with LC 8 Message-ID: Tiemo wrote: > Can I rely on this workaround to get the correct chars, which > have been entered on "all" systems? TMHO: No. As a workaround to get the "char input" this isn't reliable on _any_ system or hardware configuration. You only *guess* with that: IF the user uses a 'usual' keyboard layout, then he'll get from that key press a certain character. Currently I'm using a german keyboard on an english system (because my english keyboard was drunk from a cup of cappucino). But I use the english keyboard layout. So my "?" yields ";". But it's always the keyCode 59. While the characterCode is what you get from charToNum(). Using "Ukelele" (good site for writing systems and character encoding) http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=ukelele I can use my "?" for (nearly all) other keypresses. And the keyCode is always 59. From toolbook at kestner.de Tue Dec 6 07:42:36 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 6 Dec 2016 13:42:36 +0100 Subject: AW: AW: Is there a mapping table for all rawKeyUp Codes? No solution yet with LC 8 In-Reply-To: References: Message-ID: <006401d24fbe$399d0ce0$acd726a0$@kestner.de> Hello Hermann, Thank you, issues solved, see my replies to Mark from this morning Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von hh Gesendet: Dienstag, 6. Dezember 2016 13:33 An: use-livecode at lists.runrev.com Betreff: Re: AW: Is there a mapping table for all rawKeyUp Codes? No solution yet with LC 8 Tiemo wrote: > Can I rely on this workaround to get the correct chars, which have > been entered on "all" systems? TMHO: No. As a workaround to get the "char input" this isn't reliable on _any_ system or hardware configuration. You only *guess* with that: IF the user uses a 'usual' keyboard layout, then he'll get from that key press a certain character. Currently I'm using a german keyboard on an english system (because my english keyboard was drunk from a cup of cappucino). But I use the english keyboard layout. So my "?" yields ";". But it's always the keyCode 59. While the characterCode is what you get from charToNum(). Using "Ukelele" (good site for writing systems and character encoding) http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=ukelele I can use my "?" for (nearly all) other keypresses. And the keyCode is always 59. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From nabble at mad.pink Tue Dec 6 07:38:52 2016 From: nabble at mad.pink (pink) Date: Tue, 6 Dec 2016 04:38:52 -0800 (PST) Subject: Cannot get a compiled app to work Message-ID: <1481027932771-4710891.post@n4.nabble.com> So, I made some major revisions to an app that I've been working on, it works fine in a the iOS simulator, but when I put the app on my iPad all I get is the splash screen for a few seconds and then it closes immediately. I've compiled and added through Xcode... I also tried making a beta version and adding ti through TestFlight, neither works. I tried rolling back to the last version of the stack that works on my iPad, but now when I compile that version, it does not work either. The important thing to note first, is that my iPad is running 9.3.5. 1. Is it possible that something is causing my app to be compiled in such a way that it is not compatible with iOS 9? 2. What version of Xcode do I need for Livecode 8.1.0? (That was the last version of Livecode that successfully compiled my app and worked on my iPad) 3. Anyone with an iOS 10 device iPad willing to help me out with a test? 4. Any other suggestions about things I can try? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Cannot-get-a-compiled-app-to-work-tp4710891.html Sent from the Revolution - User mailing list archive at Nabble.com. From panos.merakos at livecode.com Tue Dec 6 08:04:16 2016 From: panos.merakos at livecode.com (panagiotis merakos) Date: Tue, 6 Dec 2016 13:04:16 +0000 Subject: Cannot get a compiled app to work In-Reply-To: <1481027932771-4710891.post@n4.nabble.com> References: <1481027932771-4710891.post@n4.nabble.com> Message-ID: Hi Greg, Since your app does work on the simulator but crashes on startup on a physical device, a rough guess of the cause is that your app tries to load "something" on startup (an external maybe?), which can be found on the simulator because the path to it is valid, but fails on device because the path to "something" is not found. I suggest you have a look at the device log in Xcode when you install and launch the app in your iPad. PS: The fact that your iPad runs iOS 9.x is not a problem, as long as in the iOS standalone settings you have NOT chosen to build for "iOS 10.0 or later". Best, Panos -- On Tue, Dec 6, 2016 at 12:38 PM, pink wrote: > So, I made some major revisions to an app that I've been working on, it > works > fine in a the iOS simulator, but when I put the app on my iPad all I get is > the splash screen for a few seconds and then it closes immediately. I've > compiled and added through Xcode... I also tried making a beta version and > adding ti through TestFlight, neither works. > > I tried rolling back to the last version of the stack that works on my > iPad, > but now when I compile that version, it does not work either. > > The important thing to note first, is that my iPad is running 9.3.5. > > 1. Is it possible that something is causing my app to be compiled in such a > way that it is not compatible with iOS 9? > 2. What version of Xcode do I need for Livecode 8.1.0? (That was the last > version of Livecode that successfully compiled my app and worked on my > iPad) > 3. Anyone with an iOS 10 device iPad willing to help me out with a test? > 4. Any other suggestions about things I can try? > > > > -- > View this message in context: http://runtime-revolution. > 278305.n4.nabble.com/Cannot-get-a-compiled-app-to-work-tp4710891.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 > -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From hh at hyperhh.de Tue Dec 6 08:08:59 2016 From: hh at hyperhh.de (hh) Date: Tue, 6 Dec 2016 14:08:59 +0100 Subject: Is there a mapping table for all rawKeyUp Codes? No solution yet with LC 8 Message-ID: Fine, 'textchanged' solves your problem. But the bug revealed by this thread still remains. So just to 'round up' (also with regards to HTML5) this discussion with a working method for getting keyCodes and characterCodes. One could also use javascript for that, see here, also for a good explanation of the difference there and a *** try it yourself ***: http://www.w3schools.com/jsref/event_key_keycode.asp This is probably reliable on "all" systems that LC supports. From toolbook at kestner.de Tue Dec 6 08:42:51 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 6 Dec 2016 14:42:51 +0100 Subject: understanding on how to handle UTF-8 import/export Message-ID: <006701d24fc6$a4193500$ec4b9f00$@kestner.de> Hello, In my LC 6 programs I have uniEncoded and uniDecoded text when exporting/importing text to an xml file via revXML. Now with LC 8 everything internal in LC is UTF-8 and since uniDecode/uniEncode is deprecated my first thought was, that I could straight export/import text from LC fields into an xml file (encoding=UTF-8), without any special charset handling anymore. But obviously this isn't the fact. Doing so, the text is corrupted in the xml file (checking with an editor) and trying to import the file again, fails with an import error regarding the encoding of the file. Using my old mechanic with the deprecated functions uniDecode/uniEncode still works fine, but I shouldn't use these functions anymore. What am I missing? Thanks for a hint Tiemo From peter.brett at livecode.com Tue Dec 6 08:51:12 2016 From: peter.brett at livecode.com (Peter TB Brett) Date: Tue, 6 Dec 2016 13:51:12 +0000 Subject: understanding on how to handle UTF-8 import/export In-Reply-To: <006701d24fc6$a4193500$ec4b9f00$@kestner.de> References: <006701d24fc6$a4193500$ec4b9f00$@kestner.de> Message-ID: On 06/12/2016 13:42, Tiemo Hollmann TB wrote: > In my LC 6 programs I have uniEncoded and uniDecoded text when > exporting/importing text to an xml file via revXML. > > Now with LC 8 everything internal in LC is UTF-8 and since > uniDecode/uniEncode is deprecated my first thought was, that I could > straight export/import text from LC fields into an xml file > (encoding=UTF-8), without any special charset handling anymore. But > obviously this isn't the fact. Doing so, the text is corrupted in the xml > file (checking with an editor) and trying to import the file again, fails > with an import error regarding the encoding of the file. Using my old > mechanic with the deprecated functions uniDecode/uniEncode still works fine, > but I shouldn't use these functions anymore. Hi Tiemo, I think you have run into bug 18927 [1]. You can use the textEncode() function to encode strings to UTF-8 before passing them to revXML commands. For example: revXMLSetAttribute tTheTreeID,"root/node1", "myAttribute", \ textEncode(the text of fld "Input","utf-8") I hope that helps. Peter [1] http://quality.livecode.com/show_bug.cgi?id=18927 -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From toolbook at kestner.de Tue Dec 6 09:13:05 2016 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 6 Dec 2016 15:13:05 +0100 Subject: AW: understanding on how to handle UTF-8 import/export In-Reply-To: References: <006701d24fc6$a4193500$ec4b9f00$@kestner.de> Message-ID: <007101d24fca$de1d5ca0$9a5815e0$@kestner.de> Thanks Peter, that works fine. Perhaps you could add a cross reference in the docs at uniEncode/uniDecode to textEncode/textDecode, that would have helped me. I know, that there was written a lot about UTF-8 when it was released in LC7, but if you don't need it at that time, it is hard to find the related links later when you need it. Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Peter TB Brett Gesendet: Dienstag, 6. Dezember 2016 14:51 An: How to use LiveCode Betreff: Re: understanding on how to handle UTF-8 import/export On 06/12/2016 13:42, Tiemo Hollmann TB wrote: > In my LC 6 programs I have uniEncoded and uniDecoded text when > exporting/importing text to an xml file via revXML. > > Now with LC 8 everything internal in LC is UTF-8 and since > uniDecode/uniEncode is deprecated my first thought was, that I could > straight export/import text from LC fields into an xml file > (encoding=UTF-8), without any special charset handling anymore. But > obviously this isn't the fact. Doing so, the text is corrupted in the > xml file (checking with an editor) and trying to import the file > again, fails with an import error regarding the encoding of the file. > Using my old mechanic with the deprecated functions > uniDecode/uniEncode still works fine, but I shouldn't use these functions anymore. Hi Tiemo, I think you have run into bug 18927 [1]. You can use the textEncode() function to encode strings to UTF-8 before passing them to revXML commands. For example: revXMLSetAttribute tTheTreeID,"root/node1", "myAttribute", \ textEncode(the text of fld "Input","utf-8") I hope that helps. Peter [1] http://quality.livecode.com/show_bug.cgi?id=18927 -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Tue Dec 6 16:09:48 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 6 Dec 2016 13:09:48 -0800 Subject: molassus IDE and revInternal_savePrefs In-Reply-To: <2962d1aa-d7c3-ff63-2d56-e9fe3bd76b28@hyperactivesw.com> References: <158b8689338.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <2962d1aa-d7c3-ff63-2d56-e9fe3bd76b28@hyperactivesw.com> Message-ID: On Wed, Nov 30, 2016 at 11:10 PM, J. Landman Gay wrote: > I meant the prefs file in ~/Library/Preferences/RunRev/LiveCode7.rev > Yes; those were what I've zapped. But for quite some time, I've found it necessary to peridoically delete all the PCDs as they accumulate some kind of execution-blocking cruft. I think I even had to do this in 5, definitely for all of 7. Also, as I switch back and forth between 8.1.1 and 8.1.2rc2, it's definitely a change between them. I can't reproduce this on command, but it only happens in rc2, not 8.1.1. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Tue Dec 6 16:30:07 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 6 Dec 2016 13:30:07 -0800 Subject: compiler not catching bad exit within routine Message-ID: I have a (much longer) routine to the nature of on mkNwDnaRec if something then exit makeNewDnaRec end if end mkNwDnaRec The compiler doesn't choke when saving the editor window. It does, though, file to go to mkNwDnaRec stating that it can't find it. I then paste the routine into another script, and it catches the error. Paste it back, and it still isn't caught. ??? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From andrew at midwestcoastmedia.com Tue Dec 6 17:09:05 2016 From: andrew at midwestcoastmedia.com (Mid West Coast Media) Date: Tue, 6 Dec 2016 17:09:05 -0500 Subject: Android push notifications Message-ID: <5D610BB4-CC66-46BF-BED9-7CE7C63C4706@midwestcoastmedia.com> I had done some proof of concept testing with push notifications over a year ago but am just now getting around to implementing in an app. The lesson to do so with iOS and demo stack worked great. The lesson for Android seems no longer valid. Google Cloud Messaging is documented, and what I had used before, but has been deprecated in favor of Firebase Cloud Messaging. This new service doesn't provide the same API key process and instead wants me to modify my build.gradle (whatever that is) to include a JSON file Google generated with my app credentials. I can see Google Cloud Messaging in my original test app console in Google Play, but can only add Firebase Cloud Messaging to other apps. Anyone have any experience implementing this new service? It seems that a feature request (#18075 was submitted in July) but https://quality.livecode.com is down right now. --Andrew Bell --Sent from my iPhone From ali.lloyd at livecode.com Tue Dec 6 18:03:59 2016 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Tue, 06 Dec 2016 23:03:59 +0000 Subject: compiler not catching bad exit within routine In-Reply-To: References: Message-ID: I've no idea what the problem could be, but when things like this happen to me I copy the routine and continually delete lines until either I discover what I did wrong, or have a very minimal test case. On Tue, Dec 6, 2016 at 9:30 PM Dr. Hawkins wrote: > I have a (much longer) routine to the nature of > > on mkNwDnaRec > > > if something then > > exit makeNewDnaRec > > end if > > end mkNwDnaRec > > > > The compiler doesn't choke when saving the editor window. > > It does, though, file to go to mkNwDnaRec stating that it can't find it. > > I then paste the routine into another script, and it catches the error. > > Paste it back, and it still isn't caught. > > ??? > -- > 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 dave at applicationinsight.com Tue Dec 6 17:52:17 2016 From: dave at applicationinsight.com (Dave Kilroy) Date: Tue, 6 Dec 2016 14:52:17 -0800 (PST) Subject: compiler not catching bad exit within routine In-Reply-To: References: Message-ID: <1481064737260-4710901.post@n4.nabble.com> You define a handler "mkNwDnaRec" but your exit statement refers to "makeNewDnaRec" ... ----- "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/compiler-not-catching-bad-exit-within-routine-tp4710898p4710901.html Sent from the Revolution - User mailing list archive at Nabble.com. From nabble at mad.pink Tue Dec 6 18:54:34 2016 From: nabble at mad.pink (pink) Date: Tue, 6 Dec 2016 15:54:34 -0800 (PST) Subject: Cannot get a compiled app to work In-Reply-To: References: <1481027932771-4710891.post@n4.nabble.com> Message-ID: <1481068474365-4710902.post@n4.nabble.com> I've checked the log, and I'm not sure what to make of it... Here's the hilights: Incident Identifier: AFAA6B71-1B35-4D4C-8724-FF8718751FC9 CrashReporter Key: f7ae25e6109f1f1c31242e123b0dda7eb3f1df37 Hardware Model: iPad2,6 Process: MadPink Planning Board 2.1.6 [263] Path: /private/var/containers/Bundle/Application/F3111D2B-0A98-46E3-AB68-6A6AD6A1509E/MadPink Planning Board 2.1.6.app/MadPink Planning Board 2.1.6 Identifier: pink.mad.planningboard2 Version: 2.1.6 (2.1.6) Code Type: ARM (Native) Parent Process: launchd [1] Date/Time: 2016-12-06 18:50:14.14 -0500 Launch Time: 2016-12-06 18:50:12.12 -0500 OS Version: iOS 9.3.5 (13G36) Report Version: 104 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x00000004 Triggered by Thread: 5 The full log is here: http://pink.guru/paste/1 -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Cannot-get-a-compiled-app-to-work-tp4710891p4710902.html Sent from the Revolution - User mailing list archive at Nabble.com. From dochawk at gmail.com Tue Dec 6 19:12:31 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 6 Dec 2016 16:12:31 -0800 Subject: compiler not catching bad exit within routine In-Reply-To: <1481064737260-4710901.post@n4.nabble.com> References: <1481064737260-4710901.post@n4.nabble.com> Message-ID: On Tue, Dec 6, 2016 at 2:52 PM, Dave Kilroy wrote: > You define a handler "mkNwDnaRec" but your exit statement refers to > "makeNewDnaRec" ... > > Correct. That should throw any error on script save--but it doesn't. The rest of the script compiles, but this routine quietly doesn't. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Tue Dec 6 19:13:34 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 6 Dec 2016 16:13:34 -0800 Subject: compiler not catching bad exit within routine In-Reply-To: References: Message-ID: On Tue, Dec 6, 2016 at 3:03 PM, Ali Lloyd wrote: > I've no idea what the problem could be, but when things like this happen to > me I copy the routine and continually delete lines until either I discover > what I did wrong, or have a very minimal test case. > That's my usual approach, but it failed here. And cut & paste into another stack worked. I then came up with a completely new name, and copied a few lines at a time into the new handler, and it worked. Something's rotten . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ahsoftware at sonic.net Tue Dec 6 19:01:09 2016 From: ahsoftware at sonic.net (mwieder) Date: Tue, 6 Dec 2016 16:01:09 -0800 (PST) Subject: compiler not catching bad exit within routine In-Reply-To: References: <1481064737260-4710901.post@n4.nabble.com> Message-ID: <1481068869550-4710905.post@n4.nabble.com> Yeah, I think that's the point of the original post. My guess is that there's a "makeNewDnaRec" variable somewhere in the original script. ----- -- Mark Wieder ahsoftware at gmail.com -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/compiler-not-catching-bad-exit-within-routine-tp4710898p4710905.html Sent from the Revolution - User mailing list archive at Nabble.com. From dochawk at gmail.com Tue Dec 6 19:15:56 2016 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 6 Dec 2016 16:15:56 -0800 Subject: compiler not catching bad exit within routine In-Reply-To: <1481068869550-4710905.post@n4.nabble.com> References: <1481064737260-4710901.post@n4.nabble.com> <1481068869550-4710905.post@n4.nabble.com> Message-ID: On Tue, Dec 6, 2016 at 4:01 PM, mwieder wrote: > My guess is that there's a "makeNewDnaRec" variable somewhere in the > original script. > just checked; and no. And strict compilation is on (although it seems to keep getting turned off). -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dave at applicationinsight.com Wed Dec 7 06:21:04 2016 From: dave at applicationinsight.com (Dave Kilroy) Date: Wed, 7 Dec 2016 03:21:04 -0800 (PST) Subject: compiler not catching bad exit within routine In-Reply-To: References: <1481064737260-4710901.post@n4.nabble.com> Message-ID: <1481109664988-4710907.post@n4.nabble.com> Ah right I get it now Have you tried checking your script for invisible characters? Try copying the entire script to something like BBedit, selecting and copying it afresh there, deleting everything in the LiveCode script, saving it to ensure it's clean, pasting in the (hopefully cleaned) script from Bbedit and finally saving... ----- "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/compiler-not-catching-bad-exit-within-routine-tp4710898p4710907.html Sent from the Revolution - User mailing list archive at Nabble.com. From ali.lloyd at livecode.com Wed Dec 7 06:58:17 2016 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Wed, 07 Dec 2016 11:58:17 +0000 Subject: compiler not catching bad exit within routine In-Reply-To: <1481109664988-4710907.post@n4.nabble.com> References: <1481064737260-4710901.post@n4.nabble.com> <1481109664988-4710907.post@n4.nabble.com> Message-ID: Or try this if the script is not supposed to have any non-ascii characters: local tLineCount, tCPCount repeat for each line tLine in