From kee.nethery at elloco.com Sat Dec 1 00:35:37 2018 From: kee.nethery at elloco.com (kee nethery) Date: Fri, 30 Nov 2018 21:35:37 -0800 Subject: LC-apps for HC In-Reply-To: <266E0970-4DE7-4C97-82DF-DA207C471A0B@sosiologi.uio.no> References: <49BEFBF9-44AC-4D74-AB1F-DFFC1859C264@major-k.de> <5018472d-31d3-9f71-7ba4-951a1cb5c68c@andregarzia.com> <9e0cbdb7-0725-9c66-ac54-5ed5be666639@andregarzia.com> <695072A1-1388-4A41-B10A-07237CC57C37@sosiologi.uio.no> <9F3F1C23-C94D-4F9E-A694-875D962AAFE9@sosgeo.uio.no> <266E0970-4DE7-4C97-82DF-DA207C471A0B@sosiologi.uio.no> Message-ID: <0086D6EA-D5C4-4717-A884-4835679F5C6A@elloco.com> Livecode is a program for creating programs. MacPaint is a program for creating images that as far as I know ran on 68K macs. Not sure it ever ran on PPC Macs. Not sure if MacPaint images can import into Livecode. Asking if MacPaint works in LC doesn?t make sense to me. Kee > On Nov 30, 2018, at 2:02 PM, Ingar Roggen via use-livecode wrote: > > But before that I would like to know if MacPaint works in LC. Anybody know that? > > Sendt fra min iPhone From ingar.roggen at sosiologi.uio.no Sat Dec 1 04:42:11 2018 From: ingar.roggen at sosiologi.uio.no (Ingar Roggen) Date: Sat, 1 Dec 2018 09:42:11 +0000 Subject: LC-apps for HC In-Reply-To: <0086D6EA-D5C4-4717-A884-4835679F5C6A@elloco.com> References: <49BEFBF9-44AC-4D74-AB1F-DFFC1859C264@major-k.de> <5018472d-31d3-9f71-7ba4-951a1cb5c68c@andregarzia.com> <9e0cbdb7-0725-9c66-ac54-5ed5be666639@andregarzia.com> <695072A1-1388-4A41-B10A-07237CC57C37@sosiologi.uio.no> <9F3F1C23-C94D-4F9E-A694-875D962AAFE9@sosgeo.uio.no> <266E0970-4DE7-4C97-82DF-DA207C471A0B@sosiologi.uio.no>, <0086D6EA-D5C4-4717-A884-4835679F5C6A@elloco.com> Message-ID: <6790DDCA-348F-498E-8559-07F78F671D04@sosiologi.uio.no> I recognize the importance of asking adequate questions. I don?t know if the one about MacPaint (MP) belongs to that group. But I use MP all the time with SheepShaver and believe that the partial scriptability of MP perhaps was HC?s greatest contribution to interactive use of words and images in thinking. It?s a question of coordinating logic and imagination. Ingar Sendt fra min iPhone > 1. des. 2018 kl. 06:36 skrev kee nethery via use-livecode : > > Livecode is a program for creating programs. > MacPaint is a program for creating images that as far as I know ran on 68K macs. Not sure it ever ran on PPC Macs. Not sure if MacPaint images can import into Livecode. > Asking if MacPaint works in LC doesn?t make sense to me. > Kee > >> On Nov 30, 2018, at 2:02 PM, Ingar Roggen via use-livecode wrote: >> >> But before that I would like to know if MacPaint works in LC. Anybody know that? >> >> Sendt fra min iPhone > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kaveh at rivervalleytechnologies.com Sat Dec 1 05:21:56 2018 From: kaveh at rivervalleytechnologies.com (Kaveh Bazargan) Date: Sat, 1 Dec 2018 10:21:56 +0000 Subject: Setting hidden of lines very slow In-Reply-To: <00a421a1-2c6b-a5c0-9b67-0ae24431fd5a@fourthworld.com> References: <00a421a1-2c6b-a5c0-9b67-0ae24431fd5a@fourthworld.com> Message-ID: Hi all I have learned a lot here, especially the hint of using styledText. But there might be a misunderstanding. In my case, it is not necessarily the whole line that is styled, but a line might *contain* a chunk of text that is styled, e.g. one word in the middle of the line has textcolor set. So I am looking to hide any line that contains no textcolor anywhere. Trevors code contains: ... if tTextA[i]["runs"][1]["style"]["textcolor"] is not empty then ... If I understand correctly the ['runs'][1] is looking at the first element of that line. I need to check that no other elements in the line are styled either. Before I write a loop that is slow again, any quick way of checking for a line with no style anywhere? Thanks all for the great contributions. K On Fri, 30 Nov 2018 at 20:17, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Kaveh wrote: > > Now how many lines of JavaScript would that be? ;-) > > The equivalent of chunk expressions are ridiculously verbose in JS, but > this one's not bad: > > getElementById("id").removeAttribute("style"); > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Kaveh Bazargan Director River Valley Technologies ? Twitter ? LinkedIn From hh at hyperhh.de Sat Dec 1 08:45:56 2018 From: hh at hyperhh.de (hh) Date: Sat, 1 Dec 2018 14:45:56 +0100 Subject: Setting hidden of lines very slow Message-ID: <682B44FA-FE55-447B-9DDA-A5F32E8A1791@hyperhh.de> > Kaveh wrote: > I am looking to hide any line that contains no textcolor anywhere. I already gave you one that hides *exactly* these lines (as you already wished in your first post). > Hermann wrote: > Here yet another fast method. > > on mouseUp > put the millisecs into m1 > lock screen; lock messages > put the htmltext of fld 1 into ht > set linedelimiter to " put the htmltext of fld 1 into ht > replace " hidden" with empty in ht > repeat for each line L in ht > if offset("color=",L)>0 then put " else put "

end repeat > set htmltext of fld 1 to s > put the millisecs-m1 into fld "timing" > end mouseUp From kaveh at rivervalleytechnologies.com Sat Dec 1 09:05:51 2018 From: kaveh at rivervalleytechnologies.com (Kaveh Bazargan) Date: Sat, 1 Dec 2018 14:05:51 +0000 Subject: Setting hidden of lines very slow In-Reply-To: <682B44FA-FE55-447B-9DDA-A5F32E8A1791@hyperhh.de> References: <682B44FA-FE55-447B-9DDA-A5F32E8A1791@hyperhh.de> Message-ID: Apologies hh. I can confirm that the htmltext method works beautifully and blindingly fast. I was going to try it to understand fully first. I now do and am grateful for the amazing tricks I have learned here. :-) On Sat, 1 Dec 2018 at 13:46, hh via use-livecode < use-livecode at lists.runrev.com> wrote: > > > Kaveh wrote: > > I am looking to hide any line that contains no textcolor anywhere. > > I already gave you one that hides *exactly* these lines > (as you already wished in your first post). > > > Hermann wrote: > > Here yet another fast method. > > > > on mouseUp > > put the millisecs into m1 > > lock screen; lock messages > > put the htmltext of fld 1 into ht > > set linedelimiter to " > put the htmltext of fld 1 into ht > > replace " hidden" with empty in ht > > repeat for each line L in ht > > if offset("color=",L)>0 then put " > else put "

> end repeat > > set htmltext of fld 1 to s > > put the millisecs-m1 into fld "timing" > > end mouseUp > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Kaveh Bazargan Director River Valley Technologies ? Twitter ? LinkedIn From hh at hyperhh.de Sat Dec 1 09:40:11 2018 From: hh at hyperhh.de (hh) Date: Sat, 1 Dec 2018 15:40:11 +0100 Subject: Setting hidden of lines very slow Message-ID: > Kaveh wrote: > I can confirm that the htmltext method works beautifully and blindingly fast. So we have here two methods: The htmlText-method and the styledText-method. There is an interesting result in the speed comparison of the two methods. Here the htmlText-method is significantly faster with less than at about 1500 short lines, between 1500 and 2500 short lines speed is at about the same, for more than at about 2500 short lines the styledText-method becomes significantly faster. As LC flattens any nested arrays the styledText-method is probably adjustable and worth the loop through the runs: styledText experts please come in. ## HtmlText-method for any colored text chunk in the line. on mouseUp put the millisecs into m1 lock screen; lock messages set linedelimiter to " References: <49BEFBF9-44AC-4D74-AB1F-DFFC1859C264@major-k.de> <5018472d-31d3-9f71-7ba4-951a1cb5c68c@andregarzia.com> <9e0cbdb7-0725-9c66-ac54-5ed5be666639@andregarzia.com> <695072A1-1388-4A41-B10A-07237CC57C37@sosiologi.uio.no> <9F3F1C23-C94D-4F9E-A694-875D962AAFE9@sosgeo.uio.no> <266E0970-4DE7-4C97-82DF-DA207C471A0B@sosiologi.uio.no> <0086D6EA-D5C4-4717-A884-4835679F5C6A@elloco.com> <6790DDCA-348F-498E-8559-07F78F671D04@sosiologi.uio.no> Message-ID: <6A78C220-9FFD-4E4A-B2D0-0EE1D3A5063C@elloco.com> Great clarification. Thank you. Your question now makes perfect sense to me, and I don?t have the answer for you. Hopefully someone else does. Kee Nethery > On Dec 1, 2018, at 1:42 AM, Ingar Roggen wrote: > > I recognize the importance of asking adequate questions. I don?t know if the one about MacPaint (MP) belongs to that group. But I use MP all the time with SheepShaver and believe that the partial scriptability of MP perhaps was HC?s greatest contribution to interactive use of words and images in thinking. It?s a question of coordinating logic and imagination. Ingar > > Sendt fra min iPhone > >> 1. des. 2018 kl. 06:36 skrev kee nethery via use-livecode : >> >> Livecode is a program for creating programs. >> MacPaint is a program for creating images that as far as I know ran on 68K macs. Not sure it ever ran on PPC Macs. Not sure if MacPaint images can import into Livecode. >> Asking if MacPaint works in LC doesn?t make sense to me. >> Kee >> >>> On Nov 30, 2018, at 2:02 PM, Ingar Roggen via use-livecode wrote: >>> >>> But before that I would like to know if MacPaint works in LC. Anybody know that? >>> >>> Sendt fra min iPhone >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode From ingar.roggen at sosiologi.uio.no Sat Dec 1 12:00:37 2018 From: ingar.roggen at sosiologi.uio.no (Ingar Roggen) Date: Sat, 1 Dec 2018 17:00:37 +0000 Subject: LC-apps for HC In-Reply-To: <6A78C220-9FFD-4E4A-B2D0-0EE1D3A5063C@elloco.com> References: <49BEFBF9-44AC-4D74-AB1F-DFFC1859C264@major-k.de> <5018472d-31d3-9f71-7ba4-951a1cb5c68c@andregarzia.com> <9e0cbdb7-0725-9c66-ac54-5ed5be666639@andregarzia.com> <695072A1-1388-4A41-B10A-07237CC57C37@sosiologi.uio.no> <9F3F1C23-C94D-4F9E-A694-875D962AAFE9@sosgeo.uio.no> <266E0970-4DE7-4C97-82DF-DA207C471A0B@sosiologi.uio.no> <0086D6EA-D5C4-4717-A884-4835679F5C6A@elloco.com> <6790DDCA-348F-498E-8559-07F78F671D04@sosiologi.uio.no> <6A78C220-9FFD-4E4A-B2D0-0EE1D3A5063C@elloco.com> Message-ID: Thank you, Kee > 1. des. 2018 kl. 15.47 skrev Kee Nethery via use-livecode : > > Great clarification. Thank you. Your question now makes perfect sense to me, and I don?t have the answer for you. Hopefully someone else does. > > Kee Nethery > >> On Dec 1, 2018, at 1:42 AM, Ingar Roggen wrote: >> >> I recognize the importance of asking adequate questions. I don?t know if the one about MacPaint (MP) belongs to that group. But I use MP all the time with SheepShaver and believe that the partial scriptability of MP perhaps was HC?s greatest contribution to interactive use of words and images in thinking. It?s a question of coordinating logic and imagination. Ingar >> >> Sendt fra min iPhone >> >>> 1. des. 2018 kl. 06:36 skrev kee nethery via use-livecode : >>> >>> Livecode is a program for creating programs. >>> MacPaint is a program for creating images that as far as I know ran on 68K macs. Not sure it ever ran on PPC Macs. Not sure if MacPaint images can import into Livecode. >>> Asking if MacPaint works in LC doesn?t make sense to me. >>> Kee >>> >>>> On Nov 30, 2018, at 2:02 PM, Ingar Roggen via use-livecode wrote: >>>> >>>> But before that I would like to know if MacPaint works in LC. Anybody know that? >>>> >>>> Sendt fra min iPhone >>> >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Sat Dec 1 13:23:24 2018 From: tom at makeshyft.com (Tom Glod) Date: Sat, 1 Dec 2018 13:23:24 -0500 Subject: Setting hidden of lines very slow In-Reply-To: References: Message-ID: Can someone explain the seemingly extraordinary performance improvement in using apparently its "split second" vs "over a minute" set the hidden of line 1 to - 1 of field 1 to false vs. repeat with i = 1 the number of lines of fld 1 set the hidden of line i of fld 1 to false end repeat it doesn't seem like the loop would be the bottleneck here, but rather the work on the field itself....but obviously, I know nothing about this engine :D Thanks, On Sat, Dec 1, 2018 at 9:40 AM hh via use-livecode < use-livecode at lists.runrev.com> wrote: > > Kaveh wrote: > > I can confirm that the htmltext method works beautifully and blindingly > fast. > > So we have here two methods: > The htmlText-method and the styledText-method. > > There is an interesting result in the speed comparison of the two methods. > > Here the htmlText-method is significantly faster with less than at about > 1500 short lines, between 1500 and 2500 short lines speed is at about the > same, for more than at about 2500 short lines the styledText-method becomes > significantly faster. > > As LC flattens any nested arrays the styledText-method is probably > adjustable > and worth the loop through the runs: styledText experts please come in. > > ## HtmlText-method for any colored text chunk in the line. > on mouseUp > put the millisecs into m1 > lock screen; lock messages > set linedelimiter to " put the htmltext of fld 1 into ht > replace " hidden" with empty in ht > repeat for each line L in ht > if offset("color=",L)>0 then put " else put "

end repeat > set htmltext of fld 1 to s > put the millisecs-m1 into fld "timing" > end mouseUp > > ## StyledText-method for a whole colorized line. > put the styledText of field "text" into tTextA > # loop through paragraphs > repeat with i = 1 to the number of elements of tTextA > # Check if first run has textcolor set > put (tTextA[i]["runs"][1]["style"]["textcolor"] is empty) \ > into tTextA[i]["style"]["hidden"] > end if > end repeat > set the styledText of fld "text" to tTextA``` > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Sat Dec 1 19:37:37 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 1 Dec 2018 16:37:37 -0800 Subject: LC-apps for HC In-Reply-To: <6790DDCA-348F-498E-8559-07F78F671D04@sosiologi.uio.no> References: <6790DDCA-348F-498E-8559-07F78F671D04@sosiologi.uio.no> Message-ID: <18517c1b-3588-96b2-8498-597379c044cf@fourthworld.com> Ingar Roggen wrote: > I recognize the importance of asking adequate questions. I don?t know > if the one about MacPaint (MP) belongs to that group. But I use MP all > the time with SheepShaver and believe that the partial scriptability > of MP perhaps was HC?s greatest contribution to interactive use of > words and images in thinking. It?s a question of coordinating logic > and imagination. Ingar MacPaint's feature set was pretty limited, by design. It shipped with Macs as a way to show off bitmap graphics, but simple enough that it wouldn't compete with third-party offerings. Is there anything in MacPaint that can't be done with LC's bitmap 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 ambassador at fourthworld.com Sat Dec 1 19:45:59 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 1 Dec 2018 16:45:59 -0800 Subject: Setting hidden of lines very slow In-Reply-To: References: Message-ID: <1fc80036-1eca-c611-2067-5287478992b0@fourthworld.com> Tom Glod wrote: > Can someone explain the seemingly extraordinary performance > improvement in using apparently its "split second" vs "over a minute" > > set the hidden of line 1 to - 1 of field 1 to false > > vs. > > repeat with i = 1 the number of lines of fld 1 > set the hidden of line i of fld 1 to false > end repeat > > it doesn't seem like the loop would be the bottleneck here, but rather > the work on the field itself....but obviously, I know nothing about > this engine Think about all the steps a computer needs to take to render text in a field. Multiply that by the number of lines... -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From hh at hyperhh.de Sat Dec 1 20:24:11 2018 From: hh at hyperhh.de (hh) Date: Sun, 2 Dec 2018 02:24:11 +0100 Subject: Magic "Integer" Circles Message-ID: Some of you may be interested in the following "mathy beauty". Under all circles with integer radius 0 < r <= 10000 there are four "magic" ones with radius 5, 25, 65 and 325. These four have relatively many points of *integers* (x,y) such that x^2 + y^2 = r^2. (These points are NOT rounded values that only approximate the circle value but integer values that are *on* the circle). Clearly there are at least four such points: (-r,0),(0,r),(r,0),(0,-r) -- if the origin is (0,0). Now the relation of radius and number of such points may be such that we can visually accept a polygon of these points as circles. To comfort you (script for an option button): on mouseDown put 5 &cr& 25 &cr& 65 &cr& 325 into me end mouseDown on mouseUp put the label of me into R -- the radius = one of 5, 25, 65, 325 if there is no grc "poly" then create grc "poly" set style of grc "poly" to "polygon" set opaque of grc "poly" to "true" set backColor of grc "poly" to "255,128,0" set markerDrawn of grc "poly" to "true" set markerPoints of grc "poly" to "0,0" set markerLineSize of grc "poly" to "3" set points of grc "poly" to integerPoints(R) set loc of grc "poly" to the loc of this card end mouseUp -- the circle origin is (0,0), so set the loc of the polygon later on! function integerPoints rds switch rds case 5 -- a circle with radius r=5 contains these 12 points of integers: put (4,-3)&cr&(3,-4)&cr&(0,-5)&cr&(-3,-4)&cr&(-4,-3)&cr&(-5,0)&cr& \ (-4,3)&cr&(-3,4)&cr&(0,5)&cr&(3,4)&cr&(4,3)&cr&(5,0) into p break case 25 -- a circle with radius r=25 contains these 20 points of integers: put (24,-7)&cr&(20,-15)&cr&(15,-20)&cr&(7,-24)&cr&(0,-25)&cr& \ (-7,-24)&cr&(-15,-20)&cr&(-20,-15)&cr&(-24,-7)&cr&(-25,0)&cr& \ (-24,7)&cr&(-20,15)&cr&(-15,20)&cr&(-7,24)&cr&(0,25)&cr& \ (7,24)&cr&(15,20)&cr&(20,15)&cr&(24,7)&cr&(25,0) into p break case 65 -- a circle with radius r=65 contains these 36 points of integers: put (63,-16)&cr&(60,-25)&cr&(56,-33)&cr&(52,-39)&cr&(39,-52)&cr& \ (33,-56)&cr&(25,-60)&cr&(16,-63)&cr&(0,-65)&cr&(-16,-63)&cr& \ (-25,-60)&cr&(-33,-56)&cr&(-39,-52)&cr&(-52,-39)&cr& \ (-56,-33)&cr&(-60,-25)&cr&(-63,-16)&cr&(-65,0)&cr&(-63,16)&cr& \ (-60,25)&cr&(-56,33)&cr&(-52,39)&cr&(-39,52)&cr&(-33,56)&cr& \ (-25,60)&cr&(-16,63)&cr&(0,65)&cr&(16,63)&cr&(25,60)&cr& \ (33,56)&cr&(39,52)&cr&(52,39)&cr&(56,33)&cr&(60,25)&cr& \ (63,16)&cr&(65,0) into p break case 325 -- a circle with radius r=325 contains these 60 points of integers: put (323,-36)&cr&(315,-80)&cr&(312,-91)&cr&(300,-125)&cr& \ (280,-165)&cr&(260,-195)&cr&(253,-204)&cr&(204,-253)&cr& \ (195,-260)&cr&(165,-280)&cr&(125,-300)&cr&(91,-312)&cr& \ (80,-315)&cr&(36,-323)&cr&(0,-325)&cr&(-36,-323)&cr& \ (-80,-315)&cr&(-91,-312)&cr&(-125,-300)&cr&(-165,-280)&cr& \ (-195,-260)&cr&(-204,-253)&cr&(-253,-204)&cr&(-260,-195)&cr& \ (-280,-165)&cr&(-300,-125)&cr&(-312,-91)&cr&(-315,-80)&cr& \ (-323,-36)&cr&(-325,0)&cr&(-323,36)&cr&(-315,80)&cr& \ (-312,91)&cr&(-300,125)&cr&(-280,165)&cr&(-260,195)&cr& \ (-253,204)&cr&(-204,253)&cr&(-195,260)&cr&(-165,280)&cr& \ (-125,300)&cr&(-91,312)&cr&(-80,315)&cr&(-36,323)&cr& \ (0,325)&cr&(36,323)&cr&(80,315)&cr&(91,312)&cr&(125,300)&cr& \ (165,280)&cr&(195,260)&cr&(204,253)&cr&(253,204)&cr& \ (260,195)&cr&(280,165)&cr&(300,125)&cr&(312,91)&cr& \ (315,80)&cr&(323,36)&cr&(325,0) into p break end switch return p &cr& line 1 of p -- close polygon end integerPoints Below are the possible number of integer points for all integers radius values r with 0 < r <= 10000. Each of these numbers is followed by the two smallest radii where these numbers occur. TMHO, of these the 12:5, 20:25, 36:65 and 60:325 are acceptable to serve alone as points of a polygon approximating a circle of radius r (see above). [number of integer points:radius1,radius2] 4:1,2 12:5,10 20:25,50 28:125,250 36:65,85 44:3125,6250 60:325,425 84:1625,2125 100:4225,7225 108:1105,1885 180:5525,9425 For the math behind that last computation see http://oeis.org/A046109 From hh at hyperhh.de Sat Dec 1 20:51:15 2018 From: hh at hyperhh.de (hh) Date: Sun, 2 Dec 2018 02:51:15 +0100 Subject: LC-apps for HC Message-ID: > Richard G. wrote: > ... Is there anything in MacPaint that can't be done with LC's bitmap objects? "That can't be done" wins always, because the only limit for LC is the sky (more exactly, sadly, the sky below the 65535-limit for all coordinates). But there's a lot of features that are not done with LC's bitmap objects. Even in a comparison with the paint features of HC some are missing (which of course can be done, because the limit ...). From tom at makeshyft.com Sat Dec 1 21:16:49 2018 From: tom at makeshyft.com (Tom Glod) Date: Sat, 1 Dec 2018 21:16:49 -0500 Subject: Setting hidden of lines very slow In-Reply-To: <1fc80036-1eca-c611-2067-5287478992b0@fourthworld.com> References: <1fc80036-1eca-c611-2067-5287478992b0@fourthworld.com> Message-ID: So the first form populates the field only once....since its a single command so no other states of the field will exist. Makes perfect sense. Thanks On Sat, Dec 1, 2018 at 7:45 PM Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Tom Glod wrote: > > > Can someone explain the seemingly extraordinary performance > > improvement in using apparently its "split second" vs "over a minute" > > > > set the hidden of line 1 to - 1 of field 1 to false > > > > vs. > > > > repeat with i = 1 the number of lines of fld 1 > > set the hidden of line i of fld 1 to false > > end repeat > > > > it doesn't seem like the loop would be the bottleneck here, but rather > > the work on the field itself....but obviously, I know nothing about > > this engine > > Think about all the steps a computer needs to take to render text in a > field. > > Multiply that by the number of lines... > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Sat Dec 1 22:26:36 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 01 Dec 2018 21:26:36 -0600 Subject: Setting hidden of lines very slow In-Reply-To: References: <1fc80036-1eca-c611-2067-5287478992b0@fourthworld.com> Message-ID: <1676cf419e0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Right, and accessing a field is one of the most expensive operations in LC. Maybe Richard will post his analogy to the maintenance worker again. I found it both amusing and informative. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On December 1, 2018 8:18:52 PM Tom Glod via use-livecode wrote: > So the first form populates the field only once....since its a single > command so no other states of the field will exist. > > Makes perfect sense. > > Thanks > > On Sat, Dec 1, 2018 at 7:45 PM Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Tom Glod wrote: >> >> > Can someone explain the seemingly extraordinary performance >> > improvement in using apparently its "split second" vs "over a minute" >> > >> > set the hidden of line 1 to - 1 of field 1 to false >> > >> > vs. >> > >> > repeat with i = 1 the number of lines of fld 1 >> > set the hidden of line i of fld 1 to false >> > end repeat >> > >> > it doesn't seem like the loop would be the bottleneck here, but rather >> > the work on the field itself....but obviously, I know nothing about >> > this engine >> >> Think about all the steps a computer needs to take to render text in a >> field. >> >> Multiply that by the number of lines... >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sat Dec 1 22:38:38 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 01 Dec 2018 21:38:38 -0600 Subject: LC-apps for HC In-Reply-To: References: Message-ID: <1676cff1e30.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> As far as I know, LC includes all the scripted paint commands that HC had, and adds native color besides. The stacks I've imported that used painting commands worked with few changes, mostly only needing to slow them down due to LC's faster engine and more modern CPUs. The OP wants to emulate MacPaint, so image size limitations probably won't be an issue. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On December 1, 2018 7:53:03 PM hh via use-livecode wrote: >> Richard G. wrote: >> ... Is there anything in MacPaint that can't be done with LC's bitmap objects? > > "That can't be done" wins always, because the only limit for LC is the sky > (more exactly, sadly, the sky below the 65535-limit for all coordinates). > > But there's a lot of features that are not done with LC's bitmap objects. > Even in a comparison with the paint features of HC some are missing (which > of course can be done, because the limit ...). > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kee.nethery at elloco.com Sat Dec 1 22:55:57 2018 From: kee.nethery at elloco.com (kee nethery) Date: Sat, 1 Dec 2018 19:55:57 -0800 Subject: uploading new app to mac app store Message-ID: I?m uploading a new app to the Mac App Store and at the same time, revising my LiveCode Lesson on the same. Stuff has changed OR I?m just really missing something obvious. I?ve got the app built, signed, all that good stuff. I?ve added it into developer.apple.com with it?s bundle ID of com.elloco.ellocotools and now I?m attempting to upload using the Application Loader accessed within Xcode. The error I?m getting is: Application Loader is unable to upload your package. No suitable application records were found. Verify your bundle identifier ?com.elloco.ellocotools? is correct. Has anyone uploaded a new macOS app with Xcode 10 (or would be willing to look over what I?ve done) who could help me figure out what I?ve done incorrectly? Happy to do a screen share and show you what steps I?ve taken. Thanks in advance. Kee Nethery From ambassador at fourthworld.com Sun Dec 2 02:32:32 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 1 Dec 2018 23:32:32 -0800 Subject: Setting hidden of lines very slow In-Reply-To: <1676cf419e0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <1676cf419e0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <58c083dd-9369-73c3-45b5-4b3d38e55c9b@fourthworld.com> J. Landman Gay wrote: > Right, and accessing a field is one of the most expensive operations > in LC. > > Maybe Richard will post his analogy to the maintenance worker again. I > found it both amusing and informative. http://lists.runrev.com/pipermail/use-livecode/2005-May/057144.html :) -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From harrison at all-auctions.com Sun Dec 2 10:57:09 2018 From: harrison at all-auctions.com (Rick Harrison) Date: Sun, 2 Dec 2018 10:57:09 -0500 Subject: uploading new app to mac app store In-Reply-To: References: Message-ID: <418FD58F-90F7-4A1E-9EC6-323D5E6F6115@all-auctions.com> Hi Kee, I ran into a few more errors too. I looked into appWrapper3 and found it had a 7 day free trial. I used your code signing method and appWrapper3 to do the final packaging. When I tried it out it was telling me I had some errors. I fixed those, and then tried to upload my app with Application Loader. It still didn?t make it! It was still complaining. I did some more research on the internet and found that some people found that setting the certificates from "trust all" to "system default? made the problem go away. Once I did that, Application Loader finally successfully uploaded my app to the Apple App Store. Whew! The status of it is now in review. I will keep my fingers crossed that they approve it and that nothing is wrong with it. Good luck! Rick > On Dec 1, 2018, at 10:55 PM, kee nethery via use-livecode wrote: > > I?m uploading a new app to the Mac App Store and at the same time, revising my LiveCode Lesson on the same. > > Stuff has changed OR I?m just really missing something obvious. > > I?ve got the app built, signed, all that good stuff. I?ve added it into developer.apple.com with it?s bundle ID of com.elloco.ellocotools and now I?m attempting to upload using the Application Loader accessed within Xcode. The error I?m getting is: > > Application Loader is unable to upload your package. > No suitable application records were found. Verify your bundle identifier ?com.elloco.ellocotools? is correct. > > Has anyone uploaded a new macOS app with Xcode 10 (or would be willing to look over what I?ve done) who could help me figure out what I?ve done incorrectly? Happy to do a screen share and show you what steps I?ve taken. > > Thanks in advance. > > Kee Nethery > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ingar.roggen at sosiologi.uio.no Sun Dec 2 17:25:21 2018 From: ingar.roggen at sosiologi.uio.no (Ingar Roggen) Date: Sun, 2 Dec 2018 22:25:21 +0000 Subject: LC-apps for HC In-Reply-To: <266E0970-4DE7-4C97-82DF-DA207C471A0B@sosiologi.uio.no> References: <49BEFBF9-44AC-4D74-AB1F-DFFC1859C264@major-k.de> <5018472d-31d3-9f71-7ba4-951a1cb5c68c@andregarzia.com> <9e0cbdb7-0725-9c66-ac54-5ed5be666639@andregarzia.com> <695072A1-1388-4A41-B10A-07237CC57C37@sosiologi.uio.no> <9F3F1C23-C94D-4F9E-A694-875D962AAFE9@sosgeo.uio.no> <266E0970-4DE7-4C97-82DF-DA207C471A0B@sosiologi.uio.no> Message-ID: <3EF3732E-8E09-4DC5-B039-E599FCB3C9EE@sosgeo.uio.no> http://lowendmac.com/2014/apples-revolutionary-hypercard/ <<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>> In 2002, the International HyperCard Users Group estimated there were 10,000 active HyperCard users worldwide. <<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>> Hello, Devin! As confirmed above the International HyperCard Users Group estimated there were 10,000 active HyperCard users worldwide in 2002. Is LC anywhere near that number? Maybe. And if maybe not, why not? A truly successful LC should have been able to attract the 10,000 HC users worldwide and additionally the group of dedicated LC users. Maybe 10,000 of those too? Then we are 20,000? And if not, why not? What magic was lost along the road? HC was the winner. Where is it now? My one is in my Mac, always at hand. 10,000-1=9,999. Im still here, asking for an easier access to LC. If the authoritative guide for converting HyperCard stacks to LiveCode still is Jacque?s tutorial at https://www.hyperactivesw.com/mctutorial/rrtutorialtoc.html, why not elaborate it to the tool, the app needed to make HC accessible "to the rest of us" again? Anybody takes the challenge? Ingar 30. nov. 2018 kl. 23.02 skrev Ingar Roggen >: But before that I would like to know if MacPaint works in LC. Anybody know that? Sendt fra min iPhone 30. nov. 2018 kl. 22:50 skrev Ingar Roggen via use-livecode >: I?ll look into it again, Devin. 30. nov. 2018 kl. 20.10 skrev Devin Asay via use-livecode >: The authoritative guide for converting HyperCard stacks to LiveCode is still Jacque?s tutorial at https://www.hyperactivesw.com/mctutorial/rrtutorialtoc.html Devin On Nov 30, 2018, at 10:02 AM, Ingar Roggen via use-livecode > wrote: Hello, Andr?, I hope you still remember that we met in Las Vegas. I still use HyperCard and wonder if it has become easier to port HC-stacks to LiveCode? Do you know if there are any apps for that? And if not, would it be difficult to write them? Regards Ingar Sendt fra min iPhone 30. nov. 2018 kl. 14:41 skrev Andre Alves Garzia via use-livecode >: Kaveh, I would work which lines should be shown and hidden inside a variable and then replace the whole field... On 30/11/2018 13:07, Kaveh Bazargan wrote: Yes Andre, that is the line that fixed it, in a split second :-) But here is a follow-up: Now I want to hide all lines that have no text style and only show lines with colored text. I use: repeat with i = 1 to the number of lines of fld 1 if the textcolor of line i of fld "text" is not empty then set the hidden of line i of fld "text" to false end if end repeat This is taking time too. Any suggestions how to speed this up? On Fri, 30 Nov 2018 at 12:12, Andre Alves Garzia via use-livecode > wrote: There is another tip here in this thread about set the hidden of line 1 to -1 of field "the field" to false As a single command, it might be better. On 30/11/2018 12:07, Kaveh Bazargan via use-livecode wrote: Thank you guys. I am always embarrassed to ask here as I know the answer is a one liner!! And Andre the screen was locked already. :-) On Fri, 30 Nov 2018 at 11:56, Klaus major-k via use-livecode < use-livecode at lists.runrev.com > wrote: Hi Andre, Am 30.11.2018 um 12:48 schrieb Andre Alves Garzia via use-livecode < use-livecode at lists.runrev.com >: tied locking the screen first? tied AND locked? Andre, you are hardcore! :-D On 30/11/2018 10:33, Kaveh Bazargan via use-livecode wrote: I have a text field with some 3500 lines of text. I want to ensure all lines are visible, as I have hidden some before. I use: repeat with i = 1 the number of lines of fld 1 set the hidden of line i of fld 1 to false end repeat This is taking over 1 minute to complete. I have tried removing all styling from the text so e.g. backgroundcolor is empty, etc. Same result. Any suggestions pls? Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Kaveh Bazargan Director River Valley Technologies ? Twitter ? LinkedIn _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Director Office of Digital Humanities Brigham Young University _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From ingar.roggen at sosiologi.uio.no Sun Dec 2 17:27:56 2018 From: ingar.roggen at sosiologi.uio.no (Ingar Roggen) Date: Sun, 2 Dec 2018 22:27:56 +0000 Subject: LC-apps for HC In-Reply-To: <1676cff1e30.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <1676cff1e30.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <63A9CF41-B827-491F-B37C-C2EE04F16937@sosgeo.uio.no> > 2. des. 2018 kl. 04.38 skrev J. Landman Gay via use-livecode : > > As far as I know, LC includes all the scripted paint commands that HC had, and adds native color besides. The stacks I've imported that used painting commands worked with few changes, mostly only needing to slow them down due to LC's faster engine and more modern CPUs. > > The OP wants to emulate MacPaint, so image size limitations probably won't be an issue. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On December 1, 2018 7:53:03 PM hh via use-livecode wrote: > >>> Richard G. wrote: >>> ... Is there anything in MacPaint that can't be done with LC's bitmap objects? >> >> "That can't be done" wins always, because the only limit for LC is the sky >> (more exactly, sadly, the sky below the 65535-limit for all coordinates). >> >> But there's a lot of features that are not done with LC's bitmap objects. >> Even in a comparison with the paint features of HC some are missing (which >> of course can be done, because the limit ...). >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kee.nethery at elloco.com Sun Dec 2 18:08:01 2018 From: kee.nethery at elloco.com (kee nethery) Date: Sun, 2 Dec 2018 15:08:01 -0800 Subject: uploading new app to mac app store In-Reply-To: <418FD58F-90F7-4A1E-9EC6-323D5E6F6115@all-auctions.com> References: <418FD58F-90F7-4A1E-9EC6-323D5E6F6115@all-auctions.com> Message-ID: <4DC52A00-5B55-4C4F-92BE-E6D4304C325F@elloco.com> Went into KeyChain, opened both Installer and Application Certs and clicked on Trust to see that indeed, both are already set to ?Use System Defaults?. Bummer. Much appreciate the suggestion. Wish that was the issue for me. Kee > On Dec 2, 2018, at 7:57 AM, Rick Harrison via use-livecode wrote: > > Hi Kee, > > I ran into a few more errors too. > > I looked into appWrapper3 and found it had a 7 day > free trial. I used your code signing method and > appWrapper3 to do the final packaging. > When I tried it out it was telling me I had > some errors. I fixed those, and then tried to > upload my app with Application Loader. > It still didn?t make it! It was still complaining. > > I did some more research on the internet and > found that some people found that setting the > certificates from "trust all" to "system default? > made the problem go away. > > Once I did that, Application Loader finally > successfully uploaded my app to the > Apple App Store. Whew! > > The status of it is now in review. I will keep > my fingers crossed that they approve it and > that nothing is wrong with it. > > Good luck! > > Rick > >> On Dec 1, 2018, at 10:55 PM, kee nethery via use-livecode wrote: >> >> I?m uploading a new app to the Mac App Store and at the same time, revising my LiveCode Lesson on the same. >> >> Stuff has changed OR I?m just really missing something obvious. >> >> I?ve got the app built, signed, all that good stuff. I?ve added it into developer.apple.com with it?s bundle ID of com.elloco.ellocotools and now I?m attempting to upload using the Application Loader accessed within Xcode. The error I?m getting is: >> >> Application Loader is unable to upload your package. >> No suitable application records were found. Verify your bundle identifier ?com.elloco.ellocotools? is correct. >> >> Has anyone uploaded a new macOS app with Xcode 10 (or would be willing to look over what I?ve done) who could help me figure out what I?ve done incorrectly? Happy to do a screen share and show you what steps I?ve taken. >> >> Thanks in advance. >> >> Kee Nethery >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ingar.roggen at sosiologi.uio.no Sun Dec 2 18:10:17 2018 From: ingar.roggen at sosiologi.uio.no (Ingar Roggen) Date: Sun, 2 Dec 2018 23:10:17 +0000 Subject: LC-apps for HC In-Reply-To: <63A9CF41-B827-491F-B37C-C2EE04F16937@sosgeo.uio.no> References: <1676cff1e30.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com>, <63A9CF41-B827-491F-B37C-C2EE04F16937@sosgeo.uio.no> Message-ID: http://lowendmac.com/2014/apples-revolutionary-hypercard/ <<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>> In 2002, the International HyperCard Users Group estimated there were 10,000 active HyperCard users worldwide. <<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>> Hello, Devin! As confirmed above the International HyperCard Users Group estimated there were 10,000 active HyperCard users worldwide in 2002. Is LC anywhere near that number? Maybe. And if maybe not, why not? A truly successful LC should have been able to attract the 10,000 HC users worldwide and additionally the group of dedicated LC users. Maybe 10,000 of those too? Then we are 20,000? And if not, why not? What magic was lost along the road? HC was the winner. Where is it now? My one is in my Mac, always at hand. 10,000-1=9,999. Im still here, asking for an easier access to LC. If the authoritative guide for converting HyperCard stacks to LiveCode still is Jacque?s tutorial at https://www.hyperactivesw.com/mctutorial/rrtutorialtoc.html, why not elaborate it to the tool, the app needed to make HC easily portable to LC and thereby accessible "to the rest of us" again? Anybody takes the challenge? Ingar 30. nov. 2018 kl. 20.10 wrote Devin Asay via use-livecode: The authoritative guide for converting HyperCard stacks to LiveCode is still Jacque?s tutorial at https://www.hyperactivesw.com/mctutorial/rrtutorialtoc.html Devin Sendt fra min iPhone 2. des. 2018 kl. 23:27 skrev Ingar Roggen >: 2. des. 2018 kl. 04.38 skrev J. Landman Gay via use-livecode >: As far as I know, LC includes all the scripted paint commands that HC had, and adds native color besides. The stacks I've imported that used painting commands worked with few changes, mostly only needing to slow them down due to LC's faster engine and more modern CPUs. The OP wants to emulate MacPaint, so image size limitations probably won't be an issue. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On December 1, 2018 7:53:03 PM hh via use-livecode > wrote: Richard G. wrote: ... Is there anything in MacPaint that can't be done with LC's bitmap objects? "That can't be done" wins always, because the only limit for LC is the sky (more exactly, sadly, the sky below the 65535-limit for all coordinates). But there's a lot of features that are not done with LC's bitmap objects. Even in a comparison with the paint features of HC some are missing (which of course can be done, because the limit ...). _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Sun Dec 2 20:55:52 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 2 Dec 2018 17:55:52 -0800 Subject: LC-apps for HC In-Reply-To: References: Message-ID: Ingar Roggen: > ...why not elaborate it to the tool, the app needed to make HC easily > portable to LC and thereby accessible "to the rest of us" again? > Anybody takes the challenge? One could make HC's interface in LC. Anyone game? I once thought about doing it myself... http://livecodejournal.com/features/the-true-power-of-hypercard.html -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From harrison at all-auctions.com Sun Dec 2 23:16:40 2018 From: harrison at all-auctions.com (Rick Harrison) Date: Sun, 2 Dec 2018 23:16:40 -0500 Subject: uploading new app to mac app store In-Reply-To: <4DC52A00-5B55-4C4F-92BE-E6D4304C325F@elloco.com> References: <418FD58F-90F7-4A1E-9EC6-323D5E6F6115@all-auctions.com> <4DC52A00-5B55-4C4F-92BE-E6D4304C325F@elloco.com> Message-ID: <08A09A95-6B3B-432C-94AE-336A6E3C6716@all-auctions.com> Hi Kee, Sorry to hear that wasn?t the problem for you. I hope you get it straightened out! Rick > On Dec 2, 2018, at 6:08 PM, kee nethery via use-livecode wrote: > > Went into KeyChain, opened both Installer and Application Certs and clicked on Trust to see that indeed, both are already set to ?Use System Defaults?. Bummer. Much appreciate the suggestion. Wish that was the issue for me. > > Kee > From jacque at hyperactivesw.com Sun Dec 2 23:40:43 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 02 Dec 2018 22:40:43 -0600 Subject: uploading new app to mac app store In-Reply-To: <08A09A95-6B3B-432C-94AE-336A6E3C6716@all-auctions.com> References: <418FD58F-90F7-4A1E-9EC6-323D5E6F6115@all-auctions.com> <4DC52A00-5B55-4C4F-92BE-E6D4304C325F@elloco.com> <08A09A95-6B3B-432C-94AE-336A6E3C6716@all-auctions.com> Message-ID: <167725e50f8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> This is why I stopped doing iOS apps, it's a moving target. I'm going to have to do one next year and I'm dreading it. Hopefully the team can make it easier for us by then. Getting an app ready for the App Store takes almost as much effort as writing it. It shouldn't be this hard. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On December 2, 2018 10:18:30 PM Rick Harrison via use-livecode wrote: > Hi Kee, > > Sorry to hear that wasn?t the problem for you. > I hope you get it straightened out! > > Rick > >> On Dec 2, 2018, at 6:08 PM, kee nethery via use-livecode >> wrote: >> >> Went into KeyChain, opened both Installer and Application Certs and clicked >> on Trust to see that indeed, both are already set to ?Use System Defaults?. >> Bummer. Much appreciate the suggestion. Wish that was the issue for me. >> >> Kee >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sun Dec 2 23:45:20 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 02 Dec 2018 22:45:20 -0600 Subject: LC-apps for HC In-Reply-To: References: Message-ID: <16772628b00.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Someone on the HC list did just that many years ago using MC. I don't think he ever finished it though, it turned out to be a lot of work and there was little interest by then. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On December 2, 2018 7:56:52 PM Richard Gaskin via use-livecode wrote: > Ingar Roggen: > > > ...why not elaborate it to the tool, the app needed to make HC easily > > portable to LC and thereby accessible "to the rest of us" again? > > Anybody takes the challenge? > > One could make HC's interface in LC. Anyone game? > > I once thought about doing it myself... > http://livecodejournal.com/features/the-true-power-of-hypercard.html > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 3 04:15:56 2018 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 3 Dec 2018 11:15:56 +0200 Subject: LC-apps for HC In-Reply-To: References: Message-ID: <7fe60dc8-3761-93db-38b5-c55f07df0207@gmail.com> Did exactly that a couple of years ago . . . . No takers at the time. Richmond. On 3.12.18 ?. 3:55 ?., Richard Gaskin via use-livecode wrote: > Ingar Roggen: > > > ...why not elaborate it to the tool, the app needed to make HC easily > > portable to LC and thereby accessible "to the rest of us" again? > > Anybody takes the challenge? > > One could make HC's interface in LC. Anyone game? > > I once thought about doing it myself... > http://livecodejournal.com/features/the-true-power-of-hypercard.html > From panos.merakos at livecode.com Mon Dec 3 08:57:46 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 3 Dec 2018 13:57:46 +0000 Subject: [ANN] This Week in LiveCode 157 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 #157 here: https://goo.gl/2s1Zu6 This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From kaveh at rivervalleytechnologies.com Mon Dec 3 09:18:56 2018 From: kaveh at rivervalleytechnologies.com (Kaveh Bazargan) Date: Mon, 3 Dec 2018 14:18:56 +0000 Subject: hhPDFViewer v0.8.0 In-Reply-To: References: Message-ID: Hi Hermann Thanks for this. Any way of selecting or copying text from the PDF file? Any way of finding a particular text in the PDF? On Wed, 28 Nov 2018 at 14:47, Lagi Pittas via use-livecode < use-livecode at lists.runrev.com> wrote: > Brilliant stuff Hermann > > Thanks, > > Lagi > > On Mon, 26 Nov 2018 at 19:44, hh via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Sometimes one wishes to have a unique PDF display, independent of the > > user's current internet-plugin. Or one wishes to have a feature that > > these plugins don't have (for example rotation). Then pdf.js comes in. > > > > hhPDFViewer is a basic GUI to the JavaScript pdf library "pdf.js" > > ( https://mozilla.github.io/pdf.js/ (watch the license)). > > > > My current solution can display both local and remote pdfs. > > And it does NOT need a (local) server. > > > > The widget uses pdf.js to display (and load) one single page of any > > multipage pdf. It needs 2.3 MByte of space in the temporary folder > > + 1.3*the size of the displayed pdf. > > > > You can > > [*]Switch to prev/next/any page of the PDF. > > [*]Zoom in, zoom out or fit the PDF to width or height of the browser > > widget's width or height. > > [*]Fit the browser widget's rect to the page container's rect > > (hold down the shiftkey when using the controls for that). > > [*]Rotate the PDF to 0, 90, 180, 270 degrees. > > [*]Grab the PDF to scroll the PDF left/up/right/down. > > > > Download hhPDFViewer from "Sample Stacks" or > > http://livecodeshare.runrev.com/stack/916/ > > > > The library is included in the stack, so that also an offline usage > > (with local PDFs) is possible. > > I didn't already test it but the stack should run on any platform where > > the browser widget works. For mobile you still have do some work for > > resizing the browser widget and the controls group (and changing some > > triggers). If there is enough interest I'll implement more features. > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Kaveh Bazargan Director River Valley Technologies ? Twitter ? LinkedIn From hakan at exformedia.se Mon Dec 3 09:51:00 2018 From: hakan at exformedia.se (hakan at exformedia.se) Date: Mon, 3 Dec 2018 15:51:00 +0100 Subject: Setting hidden of lines very slow In-Reply-To: References: Message-ID: The code will not work if you have htmltext containing the text "color=" like:

To set the color you can use color="#fa3b42"

and you can also shave off some milliseconds in the styledText version by using foreach: ? repeat for each key aKey in tTextA ? ? ? # Check if first run has textcolor set ? ? ? put (tTextA[aKey]["runs"][1]["style"]["textcolor"] is empty) \ ? ? ? ? ? ? into tTextA[aKey]["style"]["hidden"] ?end repeat ? For me that is always faster than your clever 'offset("color="?' version. It is a bit strange though that the foreach always seams to be faster. If we try to sum an array with 100 000 element like: ? ?put 100000 into tNum ? ?# Create array with random numbers ? ?repeat with i = 1 to tNum ? ? ? put random(100) into tData[i] ? ?end repeat ? ?# Sum array by looping with index ? ?put the long seconds into tStart ? ?repeat with i = 1 to tNum ? ? ? add tData[i] to tSum ? ?end repeat ? ?put the long seconds - tStart into tTime1 ? ?#Sum array by using foreach ? ?put the long seconds into tStart ? ?repeat for each key aKey in tData ? ? ? add tData[aKey] to tSum2 ? ?end repeat ? ?put the long seconds - tStart into tTime2 ? ?put tTime1 , tTime2, " ratio : " & tTime1 / tTime2 You will see that the second code is almost three times faster than the first one. If it isn?t important that you process an indexed array in order foreach is always faster! Happy coding! :-H?kan On 1 Dec 2018, 15:40 +0100, How to use LiveCode , wrote: > > if offset("color=",L)>0 then put " else put "

I see that gitkraken's glo boards now support webhooks who's using gitkraken, and is anyone thinking about implementing webhook handling for glo? -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From livfoss at mac.com Mon Dec 3 10:46:13 2018 From: livfoss at mac.com (Graham Samuel) Date: Mon, 3 Dec 2018 15:46:13 +0000 Subject: glo webhooks In-Reply-To: References: Message-ID: It is sad, after more than half a century in the business, to read something about software development that means absolutely nothing to me? OK, Google will come to the rescue, but I am seriously thinking that maybe it's time to give up. (Sigh) Graham > On 3 Dec 2018, at 14:51, Mike Kerner via use-livecode wrote: > > I see that gitkraken's glo boards now support webhooks > who's using gitkraken, and is anyone thinking about implementing webhook > handling for glo? > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Mon Dec 3 11:23:49 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 3 Dec 2018 11:23:49 -0500 Subject: glo webhooks In-Reply-To: References: Message-ID: gitkraken is a git client glo is a visual tool for issue management. boards can be synced with github projects or standalone. On Mon, Dec 3, 2018 at 10:46 AM Graham Samuel via use-livecode < use-livecode at lists.runrev.com> wrote: > It is sad, after more than half a century in the business, to read > something about software development that means absolutely nothing to me? > OK, Google will come to the rescue, but I am seriously thinking that maybe > it's time to give up. > > (Sigh) > > Graham > > > On 3 Dec 2018, at 14:51, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I see that gitkraken's glo boards now support webhooks > > who's using gitkraken, and is anyone thinking about implementing webhook > > handling for glo? > > > > -- > > On the first day, God created the heavens and the Earth > > On the second day, God created the oceans. > > On the third day, God put the animals on hold for a few hours, > > and did a little diving. > > And God said, "This is good." > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From hh at hyperhh.de Mon Dec 3 11:45:45 2018 From: hh at hyperhh.de (hh) Date: Mon, 3 Dec 2018 17:45:45 +0100 Subject: Setting hidden of lines very slow Message-ID: <972BE372-4094-49BE-8D84-CE2C72A611CD@hyperhh.de> > Hakan wrote: > The code will not work if you have htmltext containing the text "color=" like: >

To set the color you can use color="#fa3b42"

Oh yes, was rather silly of me not to keep this in mind. There is a simple remedy: put ("color=" is in fld 1) into isInField if isInField then replace "color=" with numToChar(5) in fld 1 preserving styles .. do the htmltext-method .. if isInField replace numToChar(5) with "color=" in fld 1 preserving styles what doesn't slow down if "color=" is in only a few lines. > and you can also shave off some milliseconds in the styledText version by using foreach: > ? > repeat for each key aKey in tTextA > # Check if first run has textcolor set > put (tTextA[aKey]["runs"][1]["style"]["textcolor"] is empty) \ > into tTextA[aKey]["style"]["hidden"] > end repeat > ? > For me that is always faster than your clever 'offset("color="?' version. This may be true but the above doesn't work for the OP's question: To hide lines with *any* textcolor property set, not only the textcolor for the whole line. The styledText method is still very fast with the adjusted version below (make it better!). For up to at about 2500 short lines the htmlText method is here still faster. For more than 2500 short lines or if many text lines contain "color=" the styledText method is faster. The OP will simply take the version that is faster/better suited for his use case. Here the two working methods that hide *exactly* the lines (more exactly: paragraphs) of a field that contain no colored chunk. -- styledText method on mouseUp put the millisecs into m1 lock screen; lock messages put the styledText of field "text" into st put st into tTextA repeat for each key aKey in tTextA put tTextA[aKey]["runs"] into T repeat for each key I in T put (T[I]["style"]["textcolor"] is empty) into tTextA[aKey]["style"]["hidden"] end repeat end repeat set the styledText of fld "text" to tTextA put the millisecs - m1 into fld "timing" end mouseUp -- htmlText method on mouseUp put the millisecs into m1 lock screen; lock messages put ("color=" is in fld 1) into isInField if isInField then replace "color=" with numTochar(1) in fld 1 preserving styles end if put the htmltext of fld 1 into ht set linedel to " References: Message-ID: Thanks - since it has at least one client, git then must be a server system: maybe I had already guessed that. Not sure what kind of issues can be managed visually, nor what a board is nor why or how it can be synced? but don?t waste your time to answer fogies like me. Either I will set myself to study github properly or sink back into the shadows. Underlyingly I have been worried for some time that in order to be used with modern version management tools, LC has had to be either altered or perhaps just used in a way which is very alien to its Hypercard ?software development for the rest of us? origins. For this reason it is becoming hard to be productive in LC just using common sense and programming experience. But I guess this is a rant, so I will stop. Graham > On 3 Dec 2018, at 16:23, Mike Kerner via use-livecode wrote: > > gitkraken is a git client > glo is a visual tool for issue management. boards can be synced with > github projects or standalone. > > On Mon, Dec 3, 2018 at 10:46 AM Graham Samuel via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> It is sad, after more than half a century in the business, to read >> something about software development that means absolutely nothing to me? >> OK, Google will come to the rescue, but I am seriously thinking that maybe >> it's time to give up. >> >> (Sigh) >> >> Graham >> >>> On 3 Dec 2018, at 14:51, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> I see that gitkraken's glo boards now support webhooks >>> who's using gitkraken, and is anyone thinking about implementing webhook >>> handling for glo? >>> >>> -- >>> On the first day, God created the heavens and the Earth >>> On the second day, God created the oceans. >>> On the third day, God put the animals on hold for a few hours, >>> and did a little diving. >>> And God said, "This is good." >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Mon Dec 3 12:05:21 2018 From: hh at hyperhh.de (hh) Date: Mon, 3 Dec 2018 18:05:21 +0100 Subject: Setting hidden of lines very slow Message-ID: Sorry, the styledText method of my last post had a logic fault (style-runs without textcolor are ignored). The following works now for me. -- styledText method on mouseUp put the millisecs into m1 lock screen; lock messages put the styledText of field "text" into tTextA repeat for each key aKey in tTextA put tTextA[aKey]["runs"] into T put true into isEmpty repeat for each key I in T put isEmpty and (T[I]["style"]["textcolor"] is empty) into isEmpty end repeat put isEmpty into tTextA[aKey]["style"]["hidden"] end repeat set the styledText of fld "text" to tTextA put the millisecs - m1 into fld "timing" end mouseUp -- htmlText method on mouseUp put the millisecs into m1 lock screen; lock messages put ("color=" is in fld 1) into isInField if isInField then replace "color=" with numTochar(1) in fld 1 preserving styles end if set linedel to " > Kaveh wrote: > Any way of selecting or copying text from the PDF file? > Any way of finding a particular text in the PDF? The problem is: The viewer template of pdfJS cannot be used if one would like to load PDFs from anywhere, not only from a server where the script resides. So I had to use the "atomic" features of pdfJS for the current viewer. But there is some "text-layer" code one can use for one's own project. There is no documentation about that, one has to dive deep into the code. It is a lot of code and it will need at least 2-3 full days to implement. I will do it, hopefully this year, especially as printing to pdf from the browser widget is probably coming next year, in LC 9.1 (read on github). From MikeKerner at roadrunner.com Mon Dec 3 12:38:08 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 3 Dec 2018 12:38:08 -0500 Subject: glo webhooks In-Reply-To: References: Message-ID: git is a version control system. At this time it is the most common/popular one. Since it is command-line based, there are many visual tools for dealing with it. On Mon, Dec 3, 2018 at 12:03 PM Graham Samuel via use-livecode < use-livecode at lists.runrev.com> wrote: > Thanks - since it has at least one client, git then must be a server > system: maybe I had already guessed that. Not sure what kind of issues can > be managed visually, nor what a board is nor why or how it can be synced? > but don?t waste your time to answer fogies like me. Either I will set > myself to study github properly or sink back into the shadows. Underlyingly > I have been worried for some time that in order to be used with modern > version management tools, LC has had to be either altered or perhaps just > used in a way which is very alien to its Hypercard ?software development > for the rest of us? origins. For this reason it is becoming hard to be > productive in LC just using common sense and programming experience. > > But I guess this is a rant, so I will stop. > > Graham > > > On 3 Dec 2018, at 16:23, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > gitkraken is a git client > > glo is a visual tool for issue management. boards can be synced with > > github projects or standalone. > > > > On Mon, Dec 3, 2018 at 10:46 AM Graham Samuel via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> It is sad, after more than half a century in the business, to read > >> something about software development that means absolutely nothing to > me? > >> OK, Google will come to the rescue, but I am seriously thinking that > maybe > >> it's time to give up. > >> > >> (Sigh) > >> > >> Graham > >> > >>> On 3 Dec 2018, at 14:51, Mike Kerner via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> I see that gitkraken's glo boards now support webhooks > >>> who's using gitkraken, and is anyone thinking about implementing > webhook > >>> handling for glo? > >>> > >>> -- > >>> On the first day, God created the heavens and the Earth > >>> On the second day, God created the oceans. > >>> On the third day, God put the animals on hold for a few hours, > >>> and did a little diving. > >>> And God said, "This is good." > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > -- > > On the first day, God created the heavens and the Earth > > On the second day, God created the oceans. > > On the third day, God put the animals on hold for a few hours, > > and did a little diving. > > And God said, "This is good." > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From brian at milby7.com Mon Dec 3 12:53:15 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 3 Dec 2018 11:53:15 -0600 Subject: glo webhooks In-Reply-To: References: Message-ID: <05096614-eecb-4c87-838b-ba68cf2a420e@Spark> While GitHub is an example of a server based solution, git does not require a server. ?You can establish a repository on your computer and manage a project with version control. ?The visual tools do help. Binary files don?t benefit from change tracking, but a tool like Script Tracker can export the scripts of a stack so you can easily follow the changes to the code of a project without needing to move to script only stacks right away. Thanks, Brian On Dec 3, 2018, 11:39 AM -0600, Mike Kerner via use-livecode , wrote: > git is a version control system. At this time it is the most > common/popular one. Since it is command-line based, there are many visual > tools for dealing with it. > > On Mon, Dec 3, 2018 at 12:03 PM Graham Samuel via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Thanks - since it has at least one client, git then must be a server > > system: maybe I had already guessed that. Not sure what kind of issues can > > be managed visually, nor what a board is nor why or how it can be synced? > > but don?t waste your time to answer fogies like me. Either I will set > > myself to study github properly or sink back into the shadows. Underlyingly > > I have been worried for some time that in order to be used with modern > > version management tools, LC has had to be either altered or perhaps just > > used in a way which is very alien to its Hypercard ?software development > > for the rest of us? origins. For this reason it is becoming hard to be > > productive in LC just using common sense and programming experience. > > > > But I guess this is a rant, so I will stop. > > > > Graham > > > > > On 3 Dec 2018, at 16:23, Mike Kerner via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > > gitkraken is a git client > > > glo is a visual tool for issue management. boards can be synced with > > > github projects or standalone. > > > > > > On Mon, Dec 3, 2018 at 10:46 AM Graham Samuel via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > > > > > It is sad, after more than half a century in the business, to read > > > > something about software development that means absolutely nothing to > > me? > > > > OK, Google will come to the rescue, but I am seriously thinking that > > maybe > > > > it's time to give up. > > > > > > > > (Sigh) > > > > > > > > Graham > > > > > > > > > On 3 Dec 2018, at 14:51, Mike Kerner via use-livecode < > > > > use-livecode at lists.runrev.com> wrote: > > > > > > > > > > I see that gitkraken's glo boards now support webhooks > > > > > who's using gitkraken, and is anyone thinking about implementing > > webhook > > > > > handling for glo? > > > > > > > > > > -- > > > > > On the first day, God created the heavens and the Earth > > > > > On the second day, God created the oceans. > > > > > On the third day, God put the animals on hold for a few hours, > > > > > and did a little diving. > > > > > And God said, "This is good." > > > > > _______________________________________________ > > > > > use-livecode mailing list > > > > > use-livecode at lists.runrev.com > > > > > Please visit this url to subscribe, unsubscribe and manage your > > > > subscription preferences: > > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > > > > _______________________________________________ > > > > use-livecode mailing list > > > > use-livecode at lists.runrev.com > > > > Please visit this url to subscribe, unsubscribe and manage your > > > > subscription preferences: > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > > > > -- > > > On the first day, God created the heavens and the Earth > > > On the second day, God created the oceans. > > > On the third day, God put the animals on hold for a few hours, > > > and did a little diving. > > > And God said, "This is good." > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kee.nethery at elloco.com Mon Dec 3 13:58:44 2018 From: kee.nethery at elloco.com (kee nethery) Date: Mon, 3 Dec 2018 10:58:44 -0800 Subject: Issues with app delivery! In-Reply-To: References: <5D75FFAC-ED93-4B0F-A9CD-E23E7D8B95E6@me.com> <3bb2546a-735a-4d04-1d70-3da3e4903de8@researchware.com> <6C91F776-8394-474A-895A-084F70209AF8@me.com> <03C32DB9-CF6B-473F-A5DD-7F6C0AEE6288@all-auctions.com> <09E8DC67-F4D1-4692-93A1-4E99A6FF0940@elloco.com> <046FA5A1-777F-4D09-A3D0-1155DE048044@all-auctions.com> <83EB451E-9EBF-4A90-B2A0-2006ABB70428@all-auctions.com> <158EA141-CCED-47AF-91A5-EBE4B188BB6C@all-auctions.com> <5AB8A1B3-012F-44C7-81AF-3C1F87FEFBEE@pacifier.com> <6A66B305-35B6-4FCA-B9DA-250AC94C786D@pacifier.com> <6E4C1218-E667-41EF-992E-76D879345FEC@all-auctions.com> Message-ID: <5C732A8B-9A70-4F2E-9C0E-0181359152D5@elloco.com> > On Nov 28, 2018, at 1:51 PM, Rick Harrison via use-livecode wrote: > > Brian, > > Do you mean: > > sudo codesign --verbose --deep --force --sign "3rd Party Mac Developer Application: MYCOMPANY NAME (KDSK9SJUNK)? --entitlements assuming you meant --entitlements Kee > > If so, yes I did that. > > Rick > >> On Nov 28, 2018, at 3:13 PM, Brian Milby via use-livecode wrote: >> >> When you did the codesign, did you use the "--entitlements" option? (I saw >> this in a semi-related post on rejections) From brian at milby7.com Mon Dec 3 14:29:27 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 3 Dec 2018 13:29:27 -0600 Subject: Issues with app delivery! In-Reply-To: <5C732A8B-9A70-4F2E-9C0E-0181359152D5@elloco.com> References: <5D75FFAC-ED93-4B0F-A9CD-E23E7D8B95E6@me.com> <3bb2546a-735a-4d04-1d70-3da3e4903de8@researchware.com> <6C91F776-8394-474A-895A-084F70209AF8@me.com> <03C32DB9-CF6B-473F-A5DD-7F6C0AEE6288@all-auctions.com> <09E8DC67-F4D1-4692-93A1-4E99A6FF0940@elloco.com> <046FA5A1-777F-4D09-A3D0-1155DE048044@all-auctions.com> <83EB451E-9EBF-4A90-B2A0-2006ABB70428@all-auctions.com> <158EA141-CCED-47AF-91A5-EBE4B188BB6C@all-auctions.com> <5AB8A1B3-012F-44C7-81AF-3C1F87FEFBEE@pacifier.com> <6A66B305-35B6-4FCA-B9DA-250AC94C786D@pacifier.com> <6E4C1218-E667-41EF-992E-76D879345FEC@all-auctions.com> <5C732A8B-9A70-4F2E-9C0E-0181359152D5@elloco.com> Message-ID: <7315eb98-582c-4fdc-9284-1c30be2b81f3@Spark> Yes, that is what I meant. Thanks, Brian On Dec 3, 2018, 12:59 PM -0600, kee nethery via use-livecode , wrote: > > > > On Nov 28, 2018, at 1:51 PM, Rick Harrison via use-livecode wrote: > > > > Brian, > > > > Do you mean: > > > > sudo codesign --verbose --deep --force --sign "3rd Party Mac Developer Application: MYCOMPANY NAME (KDSK9SJUNK)? --entitlements > > assuming you meant --entitlements > > Kee > > > > > If so, yes I did that. > > > > Rick > > > > > On Nov 28, 2018, at 3:13 PM, Brian Milby via use-livecode wrote: > > > > > > When you did the codesign, did you use the "--entitlements" option? (I saw > > > this in a semi-related post on rejections) > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Mon Dec 3 15:27:52 2018 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 3 Dec 2018 20:27:52 +0000 Subject: Setting hidden of lines very slow In-Reply-To: References: Message-ID: On 03/12/2018 14:51, H?kan Liljegren via use-livecode wrote: > and you can also shave off some milliseconds in the styledText version by using foreach: > > ? > > > It is a bit strange though that the foreach always seams to be faster. If we try to sum an array with 100 000 element like: > > I know you were demonstrating the difference between "repeat for each key" and "repeat with i=", and using 'sum' to do so (very effectively). But for completeness, just in case someone wanted to sum an array, I would point out that? you could also do > put the long seconds into tStart > put sum(tData) into tSum3 > put the long seconds - tStart into tTime3 and that would another 4x faster again :-) Alex From kee.nethery at elloco.com Mon Dec 3 16:42:28 2018 From: kee.nethery at elloco.com (kee nethery) Date: Mon, 3 Dec 2018 13:42:28 -0800 Subject: revsecurity.dylib is not 64-bit on macOS Message-ID: Trying to upload to the Mac App Store and I get this error. ?Unsupported Architectures. Your executable contained the following disallowed architectures: ?[i386 (in com.elloco.ellocotools.pkg/Payload/El Loco Tools.app/Contents/MacOS/revsecurity.dylib)]?. New apps submitted to the Mac App Store must support 64-bit starting January 2018, and Mac app updates and existing apps must support 64-bit starting June 2018.? Is there a 64-bit revsecurity.dylib I can download and swap in to replace the 32-bit version installed by LiveCode Standalone App Builder? Alternatively, what functionality must I remove from my app so that revsecurity.dylib does not get installed (or can be safely removed manually)? Kee Nethery From brian at milby7.com Mon Dec 3 16:56:01 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 3 Dec 2018 15:56:01 -0600 Subject: revsecurity.dylib is not 64-bit on macOS In-Reply-To: References: Message-ID: Just need to de-fat the file. Need to change to the location within the app package in the terminal and use the following command: lipo revsecurity.dylib -remove i386 -output revsecurity.dylib May need to use "sudo". Also, will need to resign the app after doing so. On Mon, Dec 3, 2018 at 3:43 PM kee nethery via use-livecode < use-livecode at lists.runrev.com> wrote: > Trying to upload to the Mac App Store and I get this error. > > ?Unsupported Architectures. Your executable contained the following > disallowed architectures: ?[i386 (in com.elloco.ellocotools.pkg/Payload/El > Loco Tools.app/Contents/MacOS/revsecurity.dylib)]?. New apps submitted to > the Mac App Store must support 64-bit starting January 2018, and Mac app > updates and existing apps must support 64-bit starting June 2018.? > > Is there a 64-bit revsecurity.dylib I can download and swap in to replace > the 32-bit version installed by LiveCode Standalone App Builder? > > Alternatively, what functionality must I remove from my app so that > revsecurity.dylib does not get installed (or can be safely removed > manually)? > > Kee Nethery > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From merakosp at gmail.com Mon Dec 3 17:23:52 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Mon, 3 Dec 2018 22:23:52 +0000 Subject: revsecurity.dylib is not 64-bit on macOS In-Reply-To: References: Message-ID: Hello all, This will be fixed in the next LiveCode release. If you can't wait, you can apply the fix locally: https://github.com/livecode/livecode/pull/6806 Best, Panos On Mon, Dec 3, 2018, 21:56 Brian Milby via use-livecode < use-livecode at lists.runrev.com wrote: > Just need to de-fat the file. Need to change to the location within the > app package in the terminal and use the following command: > > lipo revsecurity.dylib -remove i386 -output revsecurity.dylib > > May need to use "sudo". Also, will need to resign the app after doing so. > > On Mon, Dec 3, 2018 at 3:43 PM kee nethery via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Trying to upload to the Mac App Store and I get this error. > > > > ?Unsupported Architectures. Your executable contained the following > > disallowed architectures: ?[i386 (in > com.elloco.ellocotools.pkg/Payload/El > > Loco Tools.app/Contents/MacOS/revsecurity.dylib)]?. New apps submitted to > > the Mac App Store must support 64-bit starting January 2018, and Mac app > > updates and existing apps must support 64-bit starting June 2018.? > > > > Is there a 64-bit revsecurity.dylib I can download and swap in to replace > > the 32-bit version installed by LiveCode Standalone App Builder? > > > > Alternatively, what functionality must I remove from my app so that > > revsecurity.dylib does not get installed (or can be safely removed > > manually)? > > > > Kee Nethery > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From smudge.andy at googlemail.com Tue Dec 4 02:30:51 2018 From: smudge.andy at googlemail.com (AndyP) Date: Tue, 4 Dec 2018 01:30:51 -0600 (CST) Subject: glo webhooks In-Reply-To: <05096614-eecb-4c87-838b-ba68cf2a420e@Spark> References: <05096614-eecb-4c87-838b-ba68cf2a420e@Spark> Message-ID: <1543908651563-0.post@n4.nabble.com> Glo boards and GitKracken are great pieces of software, Ive been using both for a while now and find them both very intuitive and easy to use, I especially like the Globoards intigration with GitHub issues. I somehow managed to miss the webhooks announcement, exciting!...lets see what we can come up with. ----- Andy Piddock My software never has bugs. It just develops random features. TinyIDE a Free alternative minimalist IDE Plugin for LiveCode Script editor Themer for LC http://2108.co.uk PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From matthias_livecode_150811 at m-r-d.de Tue Dec 4 06:15:46 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Tue, 4 Dec 2018 12:15:46 +0100 Subject: revsecurity.dylib is not 64-bit on macOS In-Reply-To: References: Message-ID: Has anyone on the list already applied the fix locally and would like to share the modified file? Regards, Matthias Matthias Rebbe free tools for Livecoders: https://instamaker.dermattes.de https://winsignhelper.dermattes.de > Am 03.12.2018 um 23:23 schrieb panagiotis merakos via use-livecode : > > Hello all, > > This will be fixed in the next LiveCode release. If you can't wait, you can > apply the fix locally: > > https://github.com/livecode/livecode/pull/6806 > > Best, > Panos > > On Mon, Dec 3, 2018, 21:56 Brian Milby via use-livecode < > use-livecode at lists.runrev.com wrote: > >> Just need to de-fat the file. Need to change to the location within the >> app package in the terminal and use the following command: >> >> lipo revsecurity.dylib -remove i386 -output revsecurity.dylib >> >> May need to use "sudo". Also, will need to resign the app after doing so. >> >> On Mon, Dec 3, 2018 at 3:43 PM kee nethery via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Trying to upload to the Mac App Store and I get this error. >>> >>> ?Unsupported Architectures. Your executable contained the following >>> disallowed architectures: ?[i386 (in >> com.elloco.ellocotools.pkg/Payload/El >>> Loco Tools.app/Contents/MacOS/revsecurity.dylib)]?. New apps submitted to >>> the Mac App Store must support 64-bit starting January 2018, and Mac app >>> updates and existing apps must support 64-bit starting June 2018.? >>> >>> Is there a 64-bit revsecurity.dylib I can download and swap in to replace >>> the 32-bit version installed by LiveCode Standalone App Builder? >>> >>> Alternatively, what functionality must I remove from my app so that >>> revsecurity.dylib does not get installed (or can be safely removed >>> manually)? >>> >>> Kee Nethery >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Tue Dec 4 08:43:57 2018 From: brian at milby7.com (Brian Milby) Date: Tue, 4 Dec 2018 07:43:57 -0600 Subject: revsecurity.dylib is not 64-bit on macOS In-Reply-To: References: Message-ID: Two files to update: https://raw.githubusercontent.com/livecodepanos/livecode/78435e7a4e36ed0a0892262e88310adff2efc897/ide-support/revsaveasstandalone.livecodescript https://raw.githubusercontent.com/livecodepanos/livecode/78435e7a4e36ed0a0892262e88310adff2efc897/ide-support/revsblibrary.livecodescript On Tue, Dec 4, 2018 at 5:16 AM Matthias Rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Has anyone on the list already applied the fix locally and would like to > share the modified file? > > Regards, > Matthias > > > Matthias Rebbe > > free tools for Livecoders: > https://instamaker.dermattes.de > https://winsignhelper.dermattes.de > > > Am 03.12.2018 um 23:23 schrieb panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com>: > > > > Hello all, > > > > This will be fixed in the next LiveCode release. If you can't wait, you > can > > apply the fix locally: > > > > https://github.com/livecode/livecode/pull/6806 > > > > Best, > > Panos > > > > On Mon, Dec 3, 2018, 21:56 Brian Milby via use-livecode < > > use-livecode at lists.runrev.com wrote: > > > >> Just need to de-fat the file. Need to change to the location within the > >> app package in the terminal and use the following command: > >> > >> lipo revsecurity.dylib -remove i386 -output revsecurity.dylib > >> > >> May need to use "sudo". Also, will need to resign the app after doing > so. > >> > >> On Mon, Dec 3, 2018 at 3:43 PM kee nethery via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >>> Trying to upload to the Mac App Store and I get this error. > >>> > >>> ?Unsupported Architectures. Your executable contained the following > >>> disallowed architectures: ?[i386 (in > >> com.elloco.ellocotools.pkg/Payload/El > >>> Loco Tools.app/Contents/MacOS/revsecurity.dylib)]?. New apps submitted > to > >>> the Mac App Store must support 64-bit starting January 2018, and Mac > app > >>> updates and existing apps must support 64-bit starting June 2018.? > >>> > >>> Is there a 64-bit revsecurity.dylib I can download and swap in to > replace > >>> the 32-bit version installed by LiveCode Standalone App Builder? > >>> > >>> Alternatively, what functionality must I remove from my app so that > >>> revsecurity.dylib does not get installed (or can be safely removed > >>> manually)? > >>> > >>> Kee Nethery > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >>> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From waprothero at gmail.com Tue Dec 4 14:14:34 2018 From: waprothero at gmail.com (William Prothero) Date: Tue, 4 Dec 2018 11:14:34 -0800 Subject: OT-Reading Old Quicken Files In-Reply-To: References: Message-ID: Folks: I?m just curious if anybody has tried to use Livecode to read pre-2004 Quicken files. They are in binary, and the current Quicken, and Quicken2007 (which I have) will no longer read them. I?m trying to recover archives of old transactions and checking whether it?s even feasible. Best, Bill William A. Prothero http://earthlearningsolutions.org From richmondmathewson at gmail.com Tue Dec 4 14:25:06 2018 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 4 Dec 2018 21:25:06 +0200 Subject: OT-Reading Old Quicken Files In-Reply-To: References: Message-ID: <151937ef-306a-1191-9422-a4ab923f367d@gmail.com> Dunno anything about this at all: but, as it says in the Gospel of Thomas, "If you have eyes you should look", so . . . poking about on the internet I found that "The /old format/ was called QIF (/Quicken/ Interchange Format). The new format, called OFX (Open Financial Exchange), makes it much easier to activate accounts?... " and further along, so to speak, I found out 2 interesting things: "A QIF file is an ASCII text file generated by Quicken financial software. It contains a user's financial liability and cash accounts in a text format that can easily be read by other programs, including text editors. QIF files are used to transfer data between different Quicken data files or from a financial institution's website to Quicken software." and " The QIF format was originally developed by Intuit, but it is now supported by several financial and accounting programs. Some of these programs include *Microsoft Money*, *Corel Quattro Pro*, and *GnuCash*. *You can import a QIF file in Quicken by selecting* File ? Import ? QIF file, navigate to the location of the file, and choose the account to which you want to import the QIF file." I wonder if you have tried File ? Import ? QIF, that might be all that is required. Best, Richmond. On 4.12.18 ?. 21:14 ?., William Prothero via use-livecode wrote: > Folks: > I?m just curious if anybody has tried to use Livecode to read pre-2004 Quicken files. They are in binary, and the current Quicken, and Quicken2007 (which I have) will no longer read them. > > I?m trying to recover archives of old transactions and checking whether it?s even feasible. > > Best, > Bill > > William A. Prothero > http://earthlearningsolutions.org > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Tue Dec 4 15:01:40 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 4 Dec 2018 20:01:40 +0000 Subject: Can We Position the Label/Name of a Button Message-ID: <58DBC5E4-CBC2-44A2-B795-41D1D6D4C5CA@hindu.org> See: http://wiki.hindu.org/screenshots/button-label-center.png Syntax set the iconGravity of button to position Summary Specifies wether the icon of a button is placed independently of the label. [#type in the entry: wether} True, setting iconGravity does place the loc of the icon within the boundaries+ margins of the button. But also implied it discretionary placement of the label/name (if showName is true) . But I can't find any way but "centered".. What am I missing? This is such a basic feature I would thought it was introduced in LC 2.0 From matthias_livecode_150811 at m-r-d.de Tue Dec 4 15:08:28 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Tue, 4 Dec 2018 21:08:28 +0100 Subject: OT-Reading Old Quicken Files In-Reply-To: References: Message-ID: Here?s a page which explains the structure of a qif file http://linuxfinances.info/info/financeformats.html Regards, Matthias Matthias Rebbe free tools for Livecoders: https://instamaker.dermattes.de https://winsignhelper.dermattes.de > Am 04.12.2018 um 20:14 schrieb William Prothero via use-livecode : > > Folks: > I?m just curious if anybody has tried to use Livecode to read pre-2004 Quicken files. They are in binary, and the current Quicken, and Quicken2007 (which I have) will no longer read them. > > I?m trying to recover archives of old transactions and checking whether it?s even feasible. > > Best, > Bill > > William A. Prothero > http://earthlearningsolutions.org > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Tue Dec 4 15:34:28 2018 From: klaus at major-k.de (Klaus major-k) Date: Tue, 4 Dec 2018 21:34:28 +0100 Subject: Can We Position the Label/Name of a Button In-Reply-To: <58DBC5E4-CBC2-44A2-B795-41D1D6D4C5CA@hindu.org> References: <58DBC5E4-CBC2-44A2-B795-41D1D6D4C5CA@hindu.org> Message-ID: <6BAE51E9-34A4-4A97-BD62-04F353F3C128@major-k.de> Hi Swami > Am 04.12.2018 um 21:01 schrieb Sannyasin Brahmanathaswami via use-livecode : > > See: http://wiki.hindu.org/screenshots/button-label-center.png > Syntax > set the iconGravity of button to position > Summary > Specifies wether the icon of a button is placed independently of the > label. > [#type in the entry: wether} > True, setting iconGravity does place the loc of the icon within the boundaries+ margins of the button. > > But also implied it discretionary placement of the label/name (if showName is true) . But I can't find any way but "centered".. What am I missing? This is such a basic feature I would thought it was introduced in LC 2.0 did you take a look at the "Text" tab in the inspector for your button and set the textalign to something else than "center" (default)? :-) Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From richmondmathewson at gmail.com Tue Dec 4 15:36:11 2018 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 4 Dec 2018 22:36:11 +0200 Subject: Can We Position the Label/Name of a Button In-Reply-To: <58DBC5E4-CBC2-44A2-B795-41D1D6D4C5CA@hindu.org> References: <58DBC5E4-CBC2-44A2-B795-41D1D6D4C5CA@hindu.org> Message-ID: Well, you can fiddle around with topMargin and bottomMargin, but that also affects icon positions. Richmond. On 4.12.18 ?. 22:01 ?., Sannyasin Brahmanathaswami via use-livecode wrote: > See: > > http://wiki.hindu.org/screenshots/button-label-center.png > > Syntax > set the iconGravity of button to position > Summary > Specifies wether the icon of a button is placed independently of the > label. > > [#type in the entry: wether} > > True, setting iconGravity does place the loc of the icon within the boundaries+ margins of the button. > > But also implied it discretionary placement of the label/name (if showName is true) . But I can't find any way but "centered".. What am I missing? This is such a basic feature I would thought it was introduced in LC 2.0 > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Tue Dec 4 15:35:57 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 4 Dec 2018 15:35:57 -0500 Subject: Can We Position the Label/Name of a Button In-Reply-To: <58DBC5E4-CBC2-44A2-B795-41D1D6D4C5CA@hindu.org> References: <58DBC5E4-CBC2-44A2-B795-41D1D6D4C5CA@hindu.org> Message-ID: have you tried setting the textAlign? On Tue, Dec 4, 2018 at 3:02 PM Sannyasin Brahmanathaswami via use-livecode < use-livecode at lists.runrev.com> wrote: > See: > > http://wiki.hindu.org/screenshots/button-label-center.png > > Syntax > set the iconGravity of button to position > Summary > Specifies wether the icon of a button is placed independently of > the > label. > > [#type in the entry: wether} > > True, setting iconGravity does place the loc of the icon within the > boundaries+ margins of the button. > > But also implied it discretionary placement of the label/name (if > showName is true) . But I can't find any way but "centered".. What am I > missing? This is such a basic feature I would thought it was introduced in > LC 2.0 > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From richmondmathewson at gmail.com Tue Dec 4 15:37:53 2018 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 4 Dec 2018 22:37:53 +0200 Subject: Can We Position the Label/Name of a Button In-Reply-To: <6BAE51E9-34A4-4A97-BD62-04F353F3C128@major-k.de> References: <58DBC5E4-CBC2-44A2-B795-41D1D6D4C5CA@hindu.org> <6BAE51E9-34A4-4A97-BD62-04F353F3C128@major-k.de> Message-ID: <785b9fb2-d874-8cce-5296-a5a27b514614@gmail.com> Well, that'll push your button name/label right or left, but ti won't allow you to place it in all the places where you can position an icon. Richmond. On 4.12.18 ?. 22:34 ?., Klaus major-k via use-livecode wrote: > Hi Swami > >> Am 04.12.2018 um 21:01 schrieb Sannyasin Brahmanathaswami via use-livecode : >> >> See: http://wiki.hindu.org/screenshots/button-label-center.png >> Syntax >> set the iconGravity of button to position >> Summary >> Specifies wether the icon of a button is placed independently of the >> label. >> [#type in the entry: wether} >> True, setting iconGravity does place the loc of the icon within the boundaries+ margins of the button. >> >> But also implied it discretionary placement of the label/name (if showName is true) . But I can't find any way but "centered".. What am I missing? This is such a basic feature I would thought it was introduced in LC 2.0 > did you take a look at the "Text" tab in the inspector for your button and set the textalign to something else than "center" (default)? :-) > > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Tue Dec 4 16:36:24 2018 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 4 Dec 2018 23:36:24 +0200 Subject: Position the Label/Name of a Button In-Reply-To: <58DBC5E4-CBC2-44A2-B795-41D1D6D4C5CA@hindu.org> References: <58DBC5E4-CBC2-44A2-B795-41D1D6D4C5CA@hindu.org> Message-ID: "This is such a basic feature I would thought it was introduced in LC 2." Well, um, yes . . . I suspect that quite a lot of us have things that we think of as basic features, and I suspect they are all different. I'm not sure how essential being able to put a button's label in the bottom right-hand corner is, especially as that can easily be faked by using an image as a button. Richmond. On 4.12.18 ?. 22:01 ?., Sannyasin Brahmanathaswami via use-livecode wrote: > See: > > http://wiki.hindu.org/screenshots/button-label-center.png > > Syntax > set the iconGravity of button to position > Summary > Specifies wether the icon of a button is placed independently of the > label. > > [#type in the entry: wether} > > True, setting iconGravity does place the loc of the icon within the boundaries+ margins of the button. > > But also implied it discretionary placement of the label/name (if showName is true) . But I can't find any way but "centered".. What am I missing? This is such a basic feature I would thought it was introduced in LC 2.0 > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at livecode.org Tue Dec 4 18:32:43 2018 From: paul at livecode.org (Paul Hibbert) Date: Tue, 4 Dec 2018 15:32:43 -0800 Subject: Position the Label/Name of a Button In-Reply-To: References: <58DBC5E4-CBC2-44A2-B795-41D1D6D4C5CA@hindu.org> Message-ID: > On Dec 4, 2018, at 13:36, Richmond via use-livecode > wrote: > > especially as that can easily be faked by using an image as a button. But if you do need text for any reason, you can fudge it by putting returns before the text label to move it down, or after to move it up, and of course as already pointed out, use textAlign for Left, Centre or right. Tested on a Mac (IDE & SA) only, no idea if this works on Win or Linux, not expected to work on Mobile and I doubt that it works with HTML5. Paul https://www.dropbox.com/s/2apq5km628oa43q/Buttons.png?dl=0 From brahma at hindu.org Wed Dec 5 09:37:24 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Wed, 5 Dec 2018 14:37:24 +0000 Subject: Position the Label/Name of a Button In-Reply-To: References: <58DBC5E4-CBC2-44A2-B795-41D1D6D4C5CA@hindu.org> Message-ID: Paul wrote: "you can fudge it by putting returns before the text label to move it down" Paul wins! Sheesh, why didn't I think of that. Change backgroundcolor of the button, iconGravity to top, adjust bottom margin accordingly, text-align center You get http://wiki.hindu.org/screenshots/2018-12-05_04-12-23.png Wow, I was using three objects before this, rectangle graphic|image|field with text and grouping them, are getting the parent of the target.... BR ? From hh at hyperhh.de Wed Dec 5 14:43:08 2018 From: hh at hyperhh.de (hh) Date: Wed, 5 Dec 2018 20:43:08 +0100 Subject: Safari vs Browser Widget Message-ID: <03352E86-B3AE-433D-8831-EF4566515AFC@hyperhh.de> >> Dan F. wrote: >> I am working on a HTML5 web page that accesses the device's camera. >> When I open the url in Safari (on my Mac or iOS device), I am asked >> if it's ok to use the camera and everything works perfectly! >> However, if I load this same url in the Browser Widget (or a plain >> native browser), it doesn?t ask to use the camera and it all fails. >> Is this a limitation of the implementation of the browser in LiveCode, >> or is there a setting I have to set? > > hh wrote: > The getUserMedia() dialog doesn't work in the browser widget. > You could try to do that "as javascript" in your HTML5 app. We meanwhile know that Dan needs it for mobile onl, so a HTML5 standalone will not work for that. To demonstrate this works on desktop with a HTML5 standalone try this with Chrome, Firefox or Safari (use newest): http://hyperhh.de/TEST/GUM/GUMX.html This is *very* basic, a first step into WebRTC. Your webcam is started from the standalone, the mediaDevice dialog and the video display is in the webpage. The display could be 'moved', with loosing some frames/second, to the standalone. From hh at hyperhh.de Wed Dec 5 20:48:38 2018 From: hh at hyperhh.de (hh) Date: Thu, 6 Dec 2018 02:48:38 +0100 Subject: Safari vs Browser Widget Message-ID: <09EE7A23-74FE-4B5E-962C-E5B0666C2944@hyperhh.de> Some of the newer browser versions need a https connection. So if http://hyperhh.de/TEST/GUM/GUMX.html doesn't work, then please try https://hyperhh.de/TEST/GUM/GUMX.html > >> Dan F. wrote: > >> I am working on a HTML5 web page that accesses the device's camera. > >> When I open the url in Safari (on my Mac or iOS device), I am asked > >> if it's ok to use the camera and everything works perfectly! > >> However, if I load this same url in the Browser Widget (or a plain > >> native browser), it doesn?t ask to use the camera and it all fails. > >> Is this a limitation of the implementation of the browser in LiveCode, > >> or is there a setting I have to set? > > > > hh wrote: > > > The getUserMedia() dialog doesn't work in the browser widget. > > You could try to do that "as javascript" in your HTML5 app. > > We meanwhile know that Dan needs it for mobile onl, so a HTML5 > standalone will not work for that. > > To demonstrate this works on desktop with a HTML5 standalone try this > with Chrome, Firefox or Safari (use newest): > > http://hyperhh.de/TEST/GUM/GUMX.html > > This is *very* basic, a first step into WebRTC. > > Your webcam is started from the standalone, the mediaDevice dialog > and the video display is in the webpage. The display could be 'moved', > with loosing some frames/second, to the standalone. From brian at milby7.com Wed Dec 5 21:44:41 2018 From: brian at milby7.com (Brian Milby) Date: Wed, 5 Dec 2018 20:44:41 -0600 Subject: Safari vs Browser Widget In-Reply-To: <09EE7A23-74FE-4B5E-962C-E5B0666C2944@hyperhh.de> References: <09EE7A23-74FE-4B5E-962C-E5B0666C2944@hyperhh.de> Message-ID: <0a77db82-b6f0-405e-b0f4-dc64b0c27c2a@Spark> This is pretty cool. ?It does work on my iPhone (https). Thanks, Brian On Dec 5, 2018, 7:49 PM -0600, hh via use-livecode , wrote: > Some of the newer browser versions need a https connection. So if > http://hyperhh.de/TEST/GUM/GUMX.html doesn't work, then please try > > https://hyperhh.de/TEST/GUM/GUMX.html > > > > > Dan F. wrote: > > > > I am working on a HTML5 web page that accesses the device's camera. > > > > When I open the url in Safari (on my Mac or iOS device), I am asked > > > > if it's ok to use the camera and everything works perfectly! > > > > However, if I load this same url in the Browser Widget (or a plain > > > > native browser), it doesn?t ask to use the camera and it all fails. > > > > Is this a limitation of the implementation of the browser in LiveCode, > > > > or is there a setting I have to set? > > > > > > hh wrote: > > > > > The getUserMedia() dialog doesn't work in the browser widget. > > > You could try to do that "as javascript" in your HTML5 app. > > > > We meanwhile know that Dan needs it for mobile onl, so a HTML5 > > standalone will not work for that. > > > > To demonstrate this works on desktop with a HTML5 standalone try this > > with Chrome, Firefox or Safari (use newest): > > > > http://hyperhh.de/TEST/GUM/GUMX.html > > > > This is *very* basic, a first step into WebRTC. > > > > Your webcam is started from the standalone, the mediaDevice dialog > > and the video display is in the webpage. The display could be 'moved', > > with loosing some frames/second, to the standalone. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Wed Dec 5 23:11:40 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 5 Dec 2018 20:11:40 -0800 Subject: Safari vs Browser Widget In-Reply-To: <0a77db82-b6f0-405e-b0f4-dc64b0c27c2a@Spark> References: <09EE7A23-74FE-4B5E-962C-E5B0666C2944@hyperhh.de> <0a77db82-b6f0-405e-b0f4-dc64b0c27c2a@Spark> Message-ID: On 12/5/18 6:44 PM, Brian Milby via use-livecode wrote: > This is pretty cool. ?It does work on my iPhone (https). It's *very* cool, especially since it works in Chrome on linux, where the browser widget doesn't work. -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Thu Dec 6 10:44:00 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 6 Dec 2018 15:44:00 +0000 Subject: Safari vs Browser Widget In-Reply-To: <0a77db82-b6f0-405e-b0f4-dc64b0c27c2a@Spark> References: <09EE7A23-74FE-4B5E-962C-E5B0666C2944@hyperhh.de> <0a77db82-b6f0-405e-b0f4-dc64b0c27c2a@Spark> Message-ID: <3D5444F8-6F3B-47C5-8B3E-0BD7A0F907D9@iotecdigital.com> Ditto. Bob S > On Dec 5, 2018, at 18:44 , Brian Milby via use-livecode wrote: > > This is pretty cool. It does work on my iPhone (https). > > Thanks, > Brian From panos.merakos at livecode.com Thu Dec 6 11:25:06 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Thu, 6 Dec 2018 16:25:06 +0000 Subject: [ANN] Release 9.0.2 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.0.2 STABLE. Getting the Release =================== You can get the release at https://downloads.livecode.com/livecode/ or via the automatic updater. Release Contents ================ LiveCode 9.0.2 STABLE contains more than 80 bugfixes and improvements compared to the previous (9.0.1) STABLE version. The full release notes are available from: https://downloads.livecode.com/livecode/9_0_2/LiveCodeNotes-9_0_2.pdf Known issues ================ - The use of the Browser widget is not supported on Ubuntu 18.04 64 bit LTS yet. Feedback ======== Please report any bugs encountered on our BugZilla at http://quality.livecode.com/ Have fun! The LiveCode Team -- From mike at golddogcoffee.com Thu Dec 6 18:55:58 2018 From: mike at golddogcoffee.com (Mike for GDC) Date: Thu, 6 Dec 2018 16:55:58 -0700 Subject: Map url in Browser Widget Message-ID: <001e01d48dbf$3c49b380$b4dd1a80$@golddogcoffee.com> I currently put the following URL into my browser widget and it works ok but does anyone know what needs to be added to the code in order to place a "marker" into the map location? I want the user to see the exact location of where they are located. I get the Lat / Long from the "mobilecurrentlocation" command. This is what I generate now: https://www.google.com/maps/@45.829321,-109.904418,10z Thanks. Mike From hh at hyperhh.de Fri Dec 7 09:28:30 2018 From: hh at hyperhh.de (hh) Date: Fri, 7 Dec 2018 15:28:30 +0100 Subject: Map url in Browser Widget Message-ID: <4B99BD96-D4AC-4452-A1BB-82071EADCA5A@hyperhh.de> > Mike wrote: > ... does anyone know what needs to be added to the code in order to place a > "marker" into the map location? ... > This is what I generate now: > https://www.google.com/maps/@45.829321,-109.904418,10z http://maps.google.com/maps?q=45.829321,-109.904418&z=10&t=h The t=h is for a hybrid view Another example, for a text query: https://www.google.com/maps?q=rm+kerner+company&z=10&t=h Most of this works (scroll the page halfway down): https://moz.com/ugc/everything-you-never-wanted-to-know-about-google-maps-parameters From jjs at krutt.org Fri Dec 7 14:16:04 2018 From: jjs at krutt.org (JJS) Date: Fri, 7 Dec 2018 20:16:04 +0100 Subject: remove empty lines in DG Message-ID: <37e91af7-b875-9e5f-8b84-589c2859d80d@krutt.org> Hi, i don't know why but with one stack i have when the DG is populated, empty lines at the top which i can't seem to remove. Data is being fetched from a DB, then base64decoded, then decrypted. In neither state i could find an empty line. Now it seems only with this stack on windows. The same trick i do on windows and mobile with other stacks and the DG and this seems to work ok. I tried to remove the empty lines but no luck. and also: *--set the dgProp["sort by column"] of group "DataGrid 1" of card 1 to "Nummer"* *dispatch*"SortByColumn"to*group*"DataGrid 1"ofcard1with"Nummer" Anyone has a trick? before i decide to delete the DG and replace with a new one. thanks! From paul at researchware.com Fri Dec 7 16:22:14 2018 From: paul at researchware.com (Paul Dupuis) Date: Fri, 7 Dec 2018 16:22:14 -0500 Subject: Xcode for El Capitan Message-ID: <4e0117c1-53b1-2ada-52c2-2ee327f7a2a7@researchware.com> Is there any way or place to download Xcode for El Capitan? I think this is Xcode 9? The MacOS app store only has Xcode 10.1 (or I can only find 10.1 which requires OSX 10.13+ (High Sierra) Any advice would be welcome. From brian at milby7.com Fri Dec 7 16:25:28 2018 From: brian at milby7.com (Brian Milby) Date: Fri, 7 Dec 2018 15:25:28 -0600 Subject: Xcode for El Capitan In-Reply-To: <4e0117c1-53b1-2ada-52c2-2ee327f7a2a7@researchware.com> References: <4e0117c1-53b1-2ada-52c2-2ee327f7a2a7@researchware.com> Message-ID: <31b27ab9-1049-48e1-8340-7ed42f3a2d2b@Spark> Generally it is better to download Xcode from the Apple developer site than the App Store since you frequently need to have multiple versions around. ?Older versions are found there. Thanks, Brian On Dec 7, 2018, 3:22 PM -0600, Paul Dupuis via use-livecode , wrote: > Is there any way or place to download Xcode for El Capitan? I think this > is Xcode 9? > > The MacOS app store only has Xcode 10.1 (or I can only find 10.1 which > requires OSX 10.13+ (High Sierra) > > Any advice would be welcome. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hlowe at me.com Fri Dec 7 16:26:20 2018 From: hlowe at me.com (hlowe) Date: Fri, 7 Dec 2018 15:26:20 -0600 (CST) Subject: Xcode for El Capitan In-Reply-To: <4e0117c1-53b1-2ada-52c2-2ee327f7a2a7@researchware.com> References: <4e0117c1-53b1-2ada-52c2-2ee327f7a2a7@researchware.com> Message-ID: <1544217980219-0.post@n4.nabble.com> Should be available at: https://developer.apple.com/download/more/ Henry -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From colinholgate at gmail.com Fri Dec 7 16:29:08 2018 From: colinholgate at gmail.com (Colin Holgate) Date: Fri, 7 Dec 2018 11:29:08 -1000 Subject: Xcode for El Capitan In-Reply-To: <31b27ab9-1049-48e1-8340-7ed42f3a2d2b@Spark> References: <4e0117c1-53b1-2ada-52c2-2ee327f7a2a7@researchware.com> <31b27ab9-1049-48e1-8340-7ed42f3a2d2b@Spark> Message-ID: If you have an Apple developer account you can log into you can get older versions of Xcode here: https://developer.apple.com/download/more/ It does have Xcode 9, as well as the later 9.x versions. > On Dec 7, 2018, at 11:25 AM, Brian Milby via use-livecode wrote: > > Generally it is better to download Xcode from the Apple developer site than the App Store since you frequently need to have multiple versions around. Older versions are found there. > > Thanks, > Brian > On Dec 7, 2018, 3:22 PM -0600, Paul Dupuis via use-livecode , wrote: >> Is there any way or place to download Xcode for El Capitan? I think this >> is Xcode 9? >> >> The MacOS app store only has Xcode 10.1 (or I can only find 10.1 which >> requires OSX 10.13+ (High Sierra) >> >> Any advice would be welcome. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sundown at pacifier.com Fri Dec 7 17:42:24 2018 From: sundown at pacifier.com (JB) Date: Fri, 7 Dec 2018 14:42:24 -0800 Subject: Xcode for El Capitan In-Reply-To: <4e0117c1-53b1-2ada-52c2-2ee327f7a2a7@researchware.com> References: <4e0117c1-53b1-2ada-52c2-2ee327f7a2a7@researchware.com> Message-ID: I am using El Capitan 10.11.6 and my Xcode is version 8.2.1. It is possible I missed a later version but if it was upgraded automatically then that is the latest version that will work on my El Capitan. JB > On Dec 7, 2018, at 1:22 PM, Paul Dupuis via use-livecode wrote: > > Is there any way or place to download Xcode for El Capitan? I think this is Xcode 9? > > The MacOS app store only has Xcode 10.1 (or I can only find 10.1 which requires OSX 10.13+ (High Sierra) > > Any advice would be welcome. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From colinholgate at gmail.com Fri Dec 7 18:16:52 2018 From: colinholgate at gmail.com (Colin Holgate) Date: Fri, 7 Dec 2018 13:16:52 -1000 Subject: Xcode for El Capitan In-Reply-To: References: <4e0117c1-53b1-2ada-52c2-2ee327f7a2a7@researchware.com> Message-ID: <69338149-E74B-4C1C-8634-6B6EC73B1703@gmail.com> The link we gave to the downloads page has a search field. I tried Xcode 8, and it seems they are all there. The latest v8 is 8.3.3, and it isn?t easy to tell which OS it needs. This Wikipedia article backs up your theory that 8.2.1 is the latest for El Capitan: https://en.wikipedia.org/wiki/Xcode > On Dec 7, 2018, at 12:42 PM, JB via use-livecode wrote: > > I am using El Capitan 10.11.6 and my Xcode is > version 8.2.1. It is possible I missed a later > version but if it was upgraded automatically > then that is the latest version that will work > on my El Capitan. > > JB > > >> On Dec 7, 2018, at 1:22 PM, Paul Dupuis via use-livecode wrote: >> >> Is there any way or place to download Xcode for El Capitan? I think this is Xcode 9? >> >> The MacOS app store only has Xcode 10.1 (or I can only find 10.1 which requires OSX 10.13+ (High Sierra) >> >> Any advice would be welcome. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kaveh at rivervalleytechnologies.com Fri Dec 7 18:44:47 2018 From: kaveh at rivervalleytechnologies.com (Kaveh Bazargan) Date: Fri, 7 Dec 2018 23:44:47 +0000 Subject: Show invisible characters (tab, space, return) in field Message-ID: Is there any way of seeing invisible characters in a text field, similar to the view in text editors and word processors? -- Kaveh Bazargan Director River Valley Technologies ? Twitter ? LinkedIn From bobsneidar at iotecdigital.com Fri Dec 7 19:18:32 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 8 Dec 2018 00:18:32 +0000 Subject: remove empty lines in DG In-Reply-To: <37e91af7-b875-9e5f-8b84-589c2859d80d@krutt.org> References: <37e91af7-b875-9e5f-8b84-589c2859d80d@krutt.org> Message-ID: <8079153D-7ADF-4964-A84F-08D4AD0FB203@iotecdigital.com> This can happen if there are keys in the data that are not numbered. Try getting the dgData of the datagrid and examining the array in the debugger. That should show you your keys. You can possibly do a repeat with i = 1 to and populate another array with the records from the original array, then set the dgData to the new array. Bob S > On Dec 7, 2018, at 11:16 , JJS via use-livecode wrote: > > Hi, > > > i don't know why but with one stack i have when the DG is populated, empty lines at the top which i can't seem to remove. > > Data is being fetched from a DB, then base64decoded, then decrypted. In neither state i could find an empty line. > > Now it seems only with this stack on windows. > > The same trick i do on windows and mobile with other stacks and the DG and this seems to work ok. > > I tried to remove the empty lines but no luck. and also: > > > *--set the dgProp["sort by column"] of group "DataGrid 1" of card 1 to "Nummer"* > > *dispatch*"SortByColumn"to*group*"DataGrid 1"ofcard1with"Nummer" > > Anyone has a trick? before i decide to delete the DG and replace with a new one. > > > thanks! > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Dec 7 19:21:23 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 8 Dec 2018 00:21:23 +0000 Subject: Show invisible characters (tab, space, return) in field In-Reply-To: References: Message-ID: Not natively. You would have to replace every non-printing character (that's what you mean by invisible I suppose) with a square digbat or something. If you want to filter for only printable characters, I have a function that dies that, and also there are regex strings for that sort of thing. Bob S > On Dec 7, 2018, at 15:44 , Kaveh Bazargan via use-livecode wrote: > > Is there any way of seeing invisible characters in a text field, similar to > the view in text editors and word processors? > > -- > Kaveh Bazargan From kaveh at rivervalleytechnologies.com Fri Dec 7 20:12:18 2018 From: kaveh at rivervalleytechnologies.com (Kaveh Bazargan) Date: Sat, 8 Dec 2018 01:12:18 +0000 Subject: Show invisible characters (tab, space, return) in field In-Reply-To: References: Message-ID: Thanks Bob. I did mean non-printing characters. I think just space, tab and return. The problem with replacing with with a character is that of course it is not a space any more, so text would not wrap as normal. I need the user to edit as normal and with normal functionality but see the normally invisible characters. So seems I would need a native solution. :-( On Sat, 8 Dec 2018 at 00:22, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Not natively. You would have to replace every non-printing character > (that's what you mean by invisible I suppose) with a square digbat or > something. If you want to filter for only printable characters, I have a > function that dies that, and also there are regex strings for that sort of > thing. > > Bob S > > > > On Dec 7, 2018, at 15:44 , Kaveh Bazargan via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Is there any way of seeing invisible characters in a text field, similar > to > > the view in text editors and word processors? > > > > -- > > Kaveh Bazargan > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Kaveh Bazargan Director River Valley Technologies ? Twitter ? LinkedIn From paul at researchware.com Fri Dec 7 20:25:30 2018 From: paul at researchware.com (Paul Dupuis) Date: Fri, 7 Dec 2018 20:25:30 -0500 Subject: Show invisible characters (tab, space, return) in field In-Reply-To: References: Message-ID: You can set the imageSource of the non-printing characters. They will remain spaces, tabs, and returns, but can have a small image (you will have to make or find) displayed in their place. See imageSource in the Dictionary. set the imageSource of character to {imageID |imageName |imageURL |empty} On 12/7/2018 8:12 PM, Kaveh Bazargan via use-livecode wrote: > Thanks Bob. I did mean non-printing characters. I think just space, tab and > return. > > The problem with replacing with with a character is that of course it is > not a space any more, so text would not wrap as normal. I need the user to > edit as normal and with normal functionality but see the normally invisible > characters. So seems I would need a native solution. :-( > > On Sat, 8 Dec 2018 at 00:22, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Not natively. You would have to replace every non-printing character >> (that's what you mean by invisible I suppose) with a square digbat or >> something. If you want to filter for only printable characters, I have a >> function that dies that, and also there are regex strings for that sort of >> thing. >> >> Bob S >> >> >>> On Dec 7, 2018, at 15:44 , Kaveh Bazargan via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> Is there any way of seeing invisible characters in a text field, similar >> to >>> the view in text editors and word processors? >>> >>> -- >>> Kaveh Bazargan >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From kaveh at rivervalleytechnologies.com Sat Dec 8 04:08:45 2018 From: kaveh at rivervalleytechnologies.com (Kaveh Bazargan) Date: Sat, 8 Dec 2018 09:08:45 +0000 Subject: Show invisible characters (tab, space, return) in field In-Reply-To: References: Message-ID: Thank you. Did not know about that. It works, but seems for a specific char or chars. I have tried: on mouseup lock screen repeat with i = 1 to the number of chars of fld "text" if char i of fld "text" is return then set the imagesource of char i of fld "text" to "myreturn" end if end repeat end mouseup but of course it is slow and would be slower if I want to replace spaces. Additionally, if I cut and pasted in the field I need to replace the chars in the pasted text again... What I am looking for is a native replacement of a return, say, with a visible characters wherever it appears. On Sat, 8 Dec 2018 at 01:26, Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > You can set the imageSource of the non-printing characters. They will > remain spaces, tabs, and returns, but can have a small image (you will > have to make or find) displayed in their place. See imageSource in the > Dictionary. > > set the imageSource of character to {imageID |imageName |imageURL |empty} > > > On 12/7/2018 8:12 PM, Kaveh Bazargan via use-livecode wrote: > > Thanks Bob. I did mean non-printing characters. I think just space, tab > and > > return. > > > > The problem with replacing with with a character is that of course it is > > not a space any more, so text would not wrap as normal. I need the user > to > > edit as normal and with normal functionality but see the normally > invisible > > characters. So seems I would need a native solution. :-( > > > > On Sat, 8 Dec 2018 at 00:22, Bob Sneidar via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Not natively. You would have to replace every non-printing character > >> (that's what you mean by invisible I suppose) with a square digbat or > >> something. If you want to filter for only printable characters, I have a > >> function that dies that, and also there are regex strings for that sort > of > >> thing. > >> > >> Bob S > >> > >> > >>> On Dec 7, 2018, at 15:44 , Kaveh Bazargan via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> Is there any way of seeing invisible characters in a text field, > similar > >> to > >>> the view in text editors and word processors? > >>> > >>> -- > >>> Kaveh Bazargan > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Kaveh Bazargan Director River Valley Technologies ? Twitter ? LinkedIn From dvglasgow at gmail.com Sat Dec 8 07:01:39 2018 From: dvglasgow at gmail.com (David V Glasgow) Date: Sat, 8 Dec 2018 12:01:39 +0000 Subject: LC Wildcard filter citation source? In-Reply-To: References: Message-ID: Hello folks, I am writing an academic paper on an analysis of internet predator messages undertaken using an LC app. A few of the filtered terms I used incorporated wildcards (I avoided regular expressions). I need to reference a published source for the implementation of wildcards within LC, if such a thing exists. Does it? Cheers, David Glasgow From hh at hyperhh.de Sat Dec 8 09:21:49 2018 From: hh at hyperhh.de (hh) Date: Sat, 8 Dec 2018 15:21:49 +0100 Subject: Show invisible characters (tab, space, return) in field Message-ID: <083C8EAF-FDCF-4658-91E4-DCD6EAA1BF89@hyperhh.de> > Kaveh wrote: > What I am looking for is a native replacement of a return, say, > with a visible characters wherever it appears. You have to replace return with &return if you wish to preserve the line breaks. Similarly ? have you to replace space with &space if you wish to preserve the word breaks, ? have you to replace tab with &tab if you wish to preserve the indents. You could use unicodeChars for such a making of "whitespace" visible. If you do it in a variable this is very fast, slower but still fast for making such "whitespace" (space, tab, return) again invisible. Of course this removes any styling from the variable. If you need to preserve styles then you could try "replace in field styles". But then it becomes very slow. Here the fast unicode-symbols-in-variable method. It has moreover the advantage that you can copy and paste such "visible-whitespace-text". on mouseUp b put the millisecs into m1 lock screen; lock messages put fld 1 into txt put numToCodePoint(0x00B7)&numToCodePoint(0x200A) into s0 put numToCodePoint(0x23CE)&cr into c0 put numToCodePoint(0x21E5)&tab into t0 if b=3 then replace tab with t0 in txt replace cr with c0 in txt replace space with s0 in txt else replace s0 with space in txt replace c0 with cr in txt replace t0 with tab in txt end if put txt into fld 1 put the millisecs - m1 into fld "timing" end mouseUp Note. The above is *VERY* basic. Your text could also contain other variants of tabs (right, left ...), spaces (unicode spaces, e.g. non-breaking) and returns (mixed LF/CR, paragraph signs). From hh at hyperhh.de Sat Dec 8 10:06:07 2018 From: hh at hyperhh.de (hh) Date: Sat, 8 Dec 2018 16:06:07 +0100 Subject: Show invisible characters (tab, space, return) in field Message-ID: > Kaveh wrote: > I need the user to edit as normal and with normal functionality but see the normally > invisible characters. So seems I would need a native solution. :-( This works for me (TMHO, this demonstrates the beauty of LC). Script your field with the following. on rawkeyDown k switch k case 32 -- space put numToCodePoint(0x00B7)&numToCodePoint(0x200A) into the selection break case 65293 -- return put numToCodePoint(0x23CE)&cr into the selection break case 65289 -- tab -- put tab&numToCodePoint(0x21E5) into the selection -- alternate put numToCodePoint(0x21E5)&tab into the selection break default pass rawkeydown end switch end rawkeyDown For converting the whole field *or a visible part of it* (you could use a check button) use the replace-script of my last post. For a few lines (< 500), put into a temporary field, conversion preserving styles is still fast. From kaveh at rivervalleytechnologies.com Sat Dec 8 10:58:18 2018 From: kaveh at rivervalleytechnologies.com (Kaveh Bazargan) Date: Sat, 8 Dec 2018 15:58:18 +0000 Subject: Show invisible characters (tab, space, return) in field In-Reply-To: References: Message-ID: Thank you for spending the time on this. Like all your posts it is an education! Great idea to convert just a visible part of text! I am going to study well and work on this. On the live conversion, you are adding a unicode character before a space, say. That means two characters and therefore two character widths. Is there a way of making spaces zero width, or the new characters overlapping the space etc? Ideally I want the text widths of lines to be the same with and without the visible chars. On Sat, 8 Dec 2018 at 15:06, hh via use-livecode < use-livecode at lists.runrev.com> wrote: > > Kaveh wrote: > > I need the user to edit as normal and with normal functionality but see > the normally > > invisible characters. So seems I would need a native solution. :-( > > This works for me (TMHO, this demonstrates the beauty of LC). > Script your field with the following. > > on rawkeyDown k > switch k > case 32 -- space > put numToCodePoint(0x00B7)&numToCodePoint(0x200A) into the selection > break > case 65293 -- return > put numToCodePoint(0x23CE)&cr into the selection > break > case 65289 -- tab > -- put tab&numToCodePoint(0x21E5) into the selection -- alternate > put numToCodePoint(0x21E5)&tab into the selection > break > default > pass rawkeydown > end switch > end rawkeyDown > > For converting the whole field *or a visible part of it* (you could use a > check button) > use the replace-script of my last post. For a few lines (< 500), put into > a temporary > field, conversion preserving styles is still fast. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Kaveh Bazargan Director River Valley Technologies ? Twitter ? LinkedIn From hh at hyperhh.de Sat Dec 8 10:59:47 2018 From: hh at hyperhh.de (hh) Date: Sat, 8 Dec 2018 16:59:47 +0100 Subject: Show invisible characters (tab, space, return) in field Message-ID: <7702BB9E-B954-4EAB-A034-CF1C5E6EE907@hyperhh.de> You could moreover add the following to the field's script. on rawkeyup k switch k case 65288 -- backspace put word 4 of the selectedChunk into cx if char cx of me is among the items of \ (numToCodePoint(0x23CE),numToCodePoint(0x21E5),numToCodePoint(0x00B7)) then delete char cx of me break case 65535 -- forward delete put word 2 of the selectedChunk into cx if char cx of me is among the items of (numToCodePoint(0x200A),cr,tab) then delete char cx of me break default pass rawkeyup end switch end rawkeyUp There is still more to do, e.g. when typing after a return symbol... Hope you are (as I did) sharing your working edit code when done. > > Kaveh wrote: > > I need the user to edit as normal and with normal functionality but see the normally > > invisible characters. So seems I would need a native solution. :-( > > This works for me (TMHO, this demonstrates the beauty of LC). > Script your field with the following. > > on rawkeyDown k > switch k > case 32 -- space > put numToCodePoint(0x00B7)&numToCodePoint(0x200A) into the selection > break > case 65293 -- return > put numToCodePoint(0x23CE)&cr into the selection > break > case 65289 -- tab > -- put tab&numToCodePoint(0x21E5) into the selection -- alternate > put numToCodePoint(0x21E5)&tab into the selection > break > default > pass rawkeydown > end switch > end rawkeyDown From hh at hyperhh.de Sat Dec 8 11:23:42 2018 From: hh at hyperhh.de (hh) Date: Sat, 8 Dec 2018 17:23:42 +0100 Subject: Show invisible characters (tab, space, return) in field Message-ID: <0619277E-B332-4885-BEFF-2B8255B2AD01@hyperhh.de> > Kaveh wrote: > On the live conversion, you are adding a unicode character before > a space, say. That means two characters and therefore two character > widths. Is there a way of making spaces zero width, or the new characters > overlapping the space etc? Ideally I want the text widths of lines to be > the same with and without the visible chars. No. I don't replace a space with a unicode char and a space but with a unicode char and *the smallest word-breaking space in unicode (hair space)*. You could try to use an accent to a space but this isn't word breaking any more. The zero width space is non word-breaking in LC and an opportunity of word breaking elsewhere. What you should have also in mind with these solutions is that it must be clear for the user what he is selecting, so inserting zero width chars will make selecting random down to 2 chars. The only char with a negative space in unicode I know of is the MONGOLIAN VOWEL SEPARATOR, see http://jkorpela.fi/chars/spaces.html All these spaces are possible if someone copies text from a UTF-8 web page and pastes into your field!! As you don't have access to a word break table you have to write your own word-breaking algorithm ... From kaveh at rivervalleytechnologies.com Sat Dec 8 11:28:30 2018 From: kaveh at rivervalleytechnologies.com (Kaveh Bazargan) Date: Sat, 8 Dec 2018 16:28:30 +0000 Subject: Show invisible characters (tab, space, return) in field In-Reply-To: <7702BB9E-B954-4EAB-A034-CF1C5E6EE907@hyperhh.de> References: <7702BB9E-B954-4EAB-A034-CF1C5E6EE907@hyperhh.de> Message-ID: On Sat, 8 Dec 2018 at 16:00, hh via use-livecode < use-livecode at lists.runrev.com> wrote: > You could moreover add the following to the field's script. > > on rawkeyup k > switch k > case 65288 -- backspace > put word 4 of the selectedChunk into cx > if char cx of me is among the items of \ > > (numToCodePoint(0x23CE),numToCodePoint(0x21E5),numToCodePoint(0x00B7)) > then delete char cx of me > break > case 65535 -- forward delete > put word 2 of the selectedChunk into cx > if char cx of me is among the items of > (numToCodePoint(0x200A),cr,tab) > then delete char cx of me > break > default > pass rawkeyup > end switch > end rawkeyUp > > There is still more to do, e.g. when typing after a return symbol... > Hope you are (as I did) sharing your working edit code when done. > I have a long way to go before I have anything useful as I am still trying to grasp the excellent information. But of course I will share if I have anything to add to these. -- Kaveh Bazargan Director River Valley Technologies ? Twitter ? LinkedIn From jjs at krutt.org Sat Dec 8 13:05:17 2018 From: jjs at krutt.org (JJS) Date: Sat, 8 Dec 2018 19:05:17 +0100 Subject: remove empty lines in DG In-Reply-To: <8079153D-7ADF-4964-A84F-08D4AD0FB203@iotecdigital.com> References: <37e91af7-b875-9e5f-8b84-589c2859d80d@krutt.org> <8079153D-7ADF-4964-A84F-08D4AD0FB203@iotecdigital.com> Message-ID: <839bf63e-651d-b1a7-946a-d77bc9e5a699@krutt.org> Thanks Bob i will check out your suggestion. Jerry Op 8-12-2018 om 01:18 schreef Bob Sneidar via use-livecode: > This can happen if there are keys in the data that are not numbered. Try getting the dgData of the datagrid and examining the array in the debugger. That should show you your keys. You can possibly do a repeat with i = 1 to and populate another array with the records from the original array, then set the dgData to the new array. > > Bob S > > >> On Dec 7, 2018, at 11:16 , JJS via use-livecode wrote: >> >> Hi, >> >> >> i don't know why but with one stack i have when the DG is populated, empty lines at the top which i can't seem to remove. >> >> Data is being fetched from a DB, then base64decoded, then decrypted. In neither state i could find an empty line. >> >> Now it seems only with this stack on windows. >> >> The same trick i do on windows and mobile with other stacks and the DG and this seems to work ok. >> >> I tried to remove the empty lines but no luck. and also: >> >> >> *--set the dgProp["sort by column"] of group "DataGrid 1" of card 1 to "Nummer"* >> >> *dispatch*"SortByColumn"to*group*"DataGrid 1"ofcard1with"Nummer" >> >> Anyone has a trick? before i decide to delete the DG and replace with a new one. >> >> >> thanks! >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Sat Dec 8 15:09:58 2018 From: hh at hyperhh.de (hh) Date: Sat, 8 Dec 2018 21:09:58 +0100 Subject: Map url in Browser Widget Message-ID: <694267F6-0EBB-41DD-91CD-7C21DDA812B7@hyperhh.de> The examples of my last post show a marker but ignore the initial zoom. The following shows the marker and also respects the zoom (1-19). (Tested on desktop only). on mouseUp put 8 into z put 45.829321 into la put -109.904418 into lo set url of widget "browser" to \ merge("https://www.google.com/maps/place/[[la]],[[lo]]/@[[la]],[[lo]],[[z]]z") end mouseUp > (removed in examples zoom as it doesn't work): > > > Mike wrote: > > ... does anyone know what needs to be added to the code in order to place a > > "marker" into the map location? ... > > This is what I generate now: > > https://www.google.com/maps/@45.829321,-109.904418,10z > > http://maps.google.com/maps?q=45.829321,-109.904418&t=h > The t=h is for a hybrid view > > Another example, for a text query: > https://www.google.com/maps?q=livecode+edinburgh&t=h From jiml at netrin.com Sat Dec 8 15:41:27 2018 From: jiml at netrin.com (Jim Lambert) Date: Sat, 8 Dec 2018 12:41:27 -0800 Subject: Setting hidden of lines very slow In-Reply-To: References: Message-ID: <8EE478CA-D98C-4CC5-9E5F-98780F075BE0@netrin.com> > So I am looking to hide any line that contains no textcolor anywhere. You might save into a variable the HTMLTEXT of all the lines that contain the textcolor. Also save the HTMLTEXT of the whole field into another variable. Then in a blink of an eye you can instantly switch between the entire text and just the lines with colored characters - and back again. Jim Lambert From kaveh at rivervalleytechnologies.com Sat Dec 8 16:03:34 2018 From: kaveh at rivervalleytechnologies.com (Kaveh Bazargan) Date: Sat, 8 Dec 2018 21:03:34 +0000 Subject: Show invisible characters (tab, space, return) in field In-Reply-To: References: <7702BB9E-B954-4EAB-A034-CF1C5E6EE907@hyperhh.de> Message-ID: Hi Hermann There is a also a zero width character. :-) that is 200B. So using a monospace font all chars line up. And even more interesting, when I press the backspace key, it generally treats the composite pair as one character, so jumps back over both with one backspace!! On Sat, 8 Dec 2018 at 16:28, Kaveh Bazargan < kaveh at rivervalleytechnologies.com> wrote: > > > On Sat, 8 Dec 2018 at 16:00, hh via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> You could moreover add the following to the field's script. >> >> on rawkeyup k >> switch k >> case 65288 -- backspace >> put word 4 of the selectedChunk into cx >> if char cx of me is among the items of \ >> >> (numToCodePoint(0x23CE),numToCodePoint(0x21E5),numToCodePoint(0x00B7)) >> then delete char cx of me >> break >> case 65535 -- forward delete >> put word 2 of the selectedChunk into cx >> if char cx of me is among the items of >> (numToCodePoint(0x200A),cr,tab) >> then delete char cx of me >> break >> default >> pass rawkeyup >> end switch >> end rawkeyUp >> >> There is still more to do, e.g. when typing after a return symbol... >> Hope you are (as I did) sharing your working edit code when done. >> > > I have a long way to go before I have anything useful as I am still trying > to grasp the excellent information. But of course I will share if I have > anything to add to these. > > -- > Kaveh Bazargan > Director > River Valley Technologies ? Twitter > ? LinkedIn > > -- Kaveh Bazargan Director River Valley Technologies ? Twitter ? LinkedIn From hh at hyperhh.de Sat Dec 8 16:25:57 2018 From: hh at hyperhh.de (hh) Date: Sat, 8 Dec 2018 22:25:57 +0100 Subject: Show invisible characters (tab, space, return) in field Message-ID: <4CC8B257-509A-4920-8A05-7E1BC01D2AC6@hyperhh.de> > Kaveh wrote: > There is a also a zero width character. :-) that is 200B. > So using a monospace font all chars line up. This works if and only if your field has dontWrap true, else your line will not (soft-)break at the new "spaces" between the words. But then (if dontWrap is true) you don't need any additional word-break char, you could then simply use the middot numToCodePoint(0x00B7) instead of space. > hh wrote: > ... The zero width space is non word-breaking in LC and an opportunity of word > breaking elsewhere... From brahma at hindu.org Sat Dec 8 22:01:00 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 9 Dec 2018 03:01:00 +0000 Subject: Dynamically Set the height of DataGrid Message-ID: I am slowly getting into datagrids. Doing my homework at lessons.livecode.com. I can't find a reference for doing the following: How to you get a datagrid with 2 to 12 rows to "dynamically" resize itself depend on how many rows it has? And, if has more then 12, don't resize and turn vertical scroll on. (both mobile and desktop) ? the idea is to hide the datagrid, set its dgtext array, resize it and have to appear as a kind of contextual window. BR From kaveh at rivervalleytechnologies.com Sun Dec 9 06:13:14 2018 From: kaveh at rivervalleytechnologies.com (Kaveh Bazargan) Date: Sun, 9 Dec 2018 11:13:14 +0000 Subject: Setting hidden of lines very slow In-Reply-To: <8EE478CA-D98C-4CC5-9E5F-98780F075BE0@netrin.com> References: <8EE478CA-D98C-4CC5-9E5F-98780F075BE0@netrin.com> Message-ID: Hi Jim Normally I want the text to be editable most of the time, so it needs to be in the field, but just hidden. But i can definitely see uses for your suggestion of having different "views" instantly available. Regards Kaveh On Sat, 8 Dec 2018 at 20:42, Jim Lambert via use-livecode < use-livecode at lists.runrev.com> wrote: > > So I am looking to hide any line that contains no textcolor anywhere. > > You might save into a variable the HTMLTEXT of all the lines that contain > the textcolor. > Also save the HTMLTEXT of the whole field into another variable. > Then in a blink of an eye you can instantly switch between the entire text > and just the lines with colored characters - and back again. > > Jim Lambert > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Kaveh Bazargan Director River Valley Technologies ? Twitter ? LinkedIn From kaveh at rivervalleytechnologies.com Sun Dec 9 07:08:12 2018 From: kaveh at rivervalleytechnologies.com (Kaveh Bazargan) Date: Sun, 9 Dec 2018 12:08:12 +0000 Subject: Show invisible characters (tab, space, return) in field In-Reply-To: <4CC8B257-509A-4920-8A05-7E1BC01D2AC6@hyperhh.de> References: <4CC8B257-509A-4920-8A05-7E1BC01D2AC6@hyperhh.de> Message-ID: On Sat, 8 Dec 2018 at 21:26, hh via use-livecode < use-livecode at lists.runrev.com> wrote: > > Kaveh wrote: > > There is a also a zero width character. :-) that is 200B. > > So using a monospace font all chars line up. > > This works if and only if your field has dontWrap true, else your > line will not (soft-)break at the new "spaces" between the words. > > You are right. It's getting complicated :-) So why does 200A allow wrapping and 200B does not? > But then (if dontWrap is true) you don't need any additional word-break > char, you could then simply use the middot numToCodePoint(0x00B7) instead > of space. > > > hh wrote: > > ... The zero width space is non word-breaking in LC and an opportunity > of word > > breaking elsewhere... > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Kaveh Bazargan Director River Valley Technologies ? Twitter ? LinkedIn From brahma at hindu.org Sun Dec 9 09:08:33 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 9 Dec 2018 14:08:33 +0000 Subject: Datagrid Refresh Message-ID: <4B8E8109-C0F6-476E-9F18-B9FE0D8A6C15@hindu.org> Continuing to work on Datagrid I can't figure out refresh. (9.2 stable) 1) I click on the inspector for the datagrid 2) Click on row template 3) Select to group 4) Edit the group, 5) Make my field "rowName" non-opaque with a few light text color. 6) A linear gradient to background. It is opaque and visible 7) Save the group rowTemple 8) Hit refresh on the inspector for the datagrid Result: I see the nearly white text of the fld "rowName" but the background is white and does not show the gradient. Thinking "hmm, datagrid does not support gradient.." switch the background color to simple black, visible, opaque --*still* it does not appear refresh? What do I do to refresh to datagrid? see http://wiki.hindu.org/screenshots/datagrid-refresh.png Also, secondary question: where does the rect of pControlRect and pWorkingrect come from? If I put on LayoutControl pControlRect, pWorkingRect put pControlrect&CR&pWorkingRect I get the same result. It seems we don't have control over these rects? 81,532,341,577 81,532,341,577 From paul at researchware.com Sun Dec 9 10:30:02 2018 From: paul at researchware.com (Paul Dupuis) Date: Sun, 9 Dec 2018 10:30:02 -0500 Subject: Xcode for El Capitan In-Reply-To: <4e0117c1-53b1-2ada-52c2-2ee327f7a2a7@researchware.com> References: <4e0117c1-53b1-2ada-52c2-2ee327f7a2a7@researchware.com> Message-ID: <329d48f8-5141-ac6c-503c-b0e3f759d807@researchware.com> Thank you everyone for the tips. Some background explanation: For better or worse, we do our LiveCode development on Windows and we only use OSX for (1) Code signing (AppWrapper) and packaging in a DMG (DropDMG) and (2) QA testing of the app for OSX (done by others in our company). We have a OSX 10.9.5 (Mavericks) system set up with out Certificates in out Keychain, the appropriate version of Xcode, AppWrapper 2.x, and DropDMG and everything was working very nicely. We only do a couple applications for OSX available on our website, not via the App store and no iOS apps. Then, the Mavericks box crashed really really hard - completely unrecoverable. So we moved on to another available OSX box with El Capitan and are trying to reconstruct a signing environment. We now have XCode 8.2.1 and AppWrapper 3 and DropDMG, but we're having problems getting our Certificates (downloaded from the Apple Developer site) into the KeyChain in a way where they are recognized by AppWrapper. It has been so long since this was last setup, everything has changed. Can folks point me to any documentation or guidance that simplifies this? I have found the Apple Developer site to be far far too "apple developer speak" for me to get any meaningful guidance from. Thank you in advance. From harrison at all-auctions.com Sun Dec 9 10:49:53 2018 From: harrison at all-auctions.com (Rick Harrison) Date: Sun, 9 Dec 2018 10:49:53 -0500 Subject: Xcode for El Capitan In-Reply-To: <329d48f8-5141-ac6c-503c-b0e3f759d807@researchware.com> References: <4e0117c1-53b1-2ada-52c2-2ee327f7a2a7@researchware.com> <329d48f8-5141-ac6c-503c-b0e3f759d807@researchware.com> Message-ID: <8C196B47-E93C-4FD6-9B88-4C7D944607F5@all-auctions.com> Hi Paul, If your company had been doing at least a Time Machine backup you wouldn?t have had "the Mavericks box crashed really really hard - completely unrecoverable.? Make sure you are backing up all of your computers from now on so you don?t have that experience again. The Apple Developer site is pretty inadequate even for Apple Developers. I think the problem is that they write from the standpoint as they understand things, and they fail to write it for someone who might be encountering the information for the first time. They should have new people evaluate their site whenever possible, but they don?t do that for some reason. They should also provide videos on their various subjects, but they don?t do that either. Fortunately, there are some nice youtube.com videos that others have made that can help out. Unfortunately some of them are outdated or are not of sufficient screen quality that one can determine what they are doing. You will have to wade through the mess like the rest of us. It takes a lot of extra patience and too much extra time before success happens. Hopefully someone will come up with some better instructions and videos some day. Good luck, and hopefully some others on this list can point you to some better resources. Rick > On Dec 9, 2018, at 10:30 AM, Paul Dupuis via use-livecode wrote: > > Thank you everyone for the tips. > > Some background explanation: For better or worse, we do our LiveCode development on Windows and we only use OSX for (1) Code signing (AppWrapper) and packaging in a DMG (DropDMG) and (2) QA testing of the app for OSX (done by others in our company). We have a OSX 10.9.5 (Mavericks) system set up with out Certificates in out Keychain, the appropriate version of Xcode, AppWrapper 2.x, and DropDMG and everything was working very nicely. We only do a couple applications for OSX available on our website, not via the App store and no iOS apps. > > Then, the Mavericks box crashed really really hard - completely unrecoverable. So we moved on to another available OSX box with El Capitan and are trying to reconstruct a signing environment. We now have XCode 8.2.1 and AppWrapper 3 and DropDMG, but we're having problems getting our Certificates (downloaded from the Apple Developer site) into the KeyChain in a way where they are recognized by AppWrapper. > > It has been so long since this was last setup, everything has changed. Can folks point me to any documentation or guidance that simplifies this? I have found the Apple Developer site to be far far too "apple developer speak" for me to get any meaningful guidance from. > > Thank you in advance. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Sun Dec 9 11:35:18 2018 From: hh at hyperhh.de (hh) Date: Sun, 9 Dec 2018 17:35:18 +0100 Subject: Show invisible characters (tab, space, return) in field Message-ID: <918B0FE3-5EA6-4A54-A44D-63AD22417CEA@hyperhh.de> > Kaveh wrote: > You are right. It's getting complicated :-) So why does 200A allow > wrapping and 200B does not? Perhaps a team member can come in? And corrects this/explains this better: 0x200B is probably not in LC's word-break table (for word wrapping) because it is usually used to indicate optional hyphenation locations. And there is no hyphenation in LC's field implementation. So it would be wrong to add this to the (full-)word-break table. And the hair space (0x200A) is, of course, of advantage against a space only if you don't use a fixed-width font. > > > Kaveh wrote: > > > There is a also a zero width character. :-) that is 200B. > > > So using a monospace font all chars line up. > > > > This works if and only if your field has dontWrap true, else your > > line will not (soft-)break at the new "spaces" between the words. From bdrunrev at gmail.com Mon Dec 10 02:55:52 2018 From: bdrunrev at gmail.com (Bernard Devlin) Date: Mon, 10 Dec 2018 07:55:52 +0000 Subject: WordReport Registration Message-ID: Hi all I've got a copy of this as part of one of my previous Livecode purchases. How does one go about using the registration code? The "Try WordReport" stack says either to buy a registration code *or* to simply use the code if one has it. Neither of the PDF files which come with the stack explains how to use the registration code. I'd contact the provider of the software but I've seen numerous messages saying he doesn't respond to emails that I thought I'd ask an existing user. Regards Bernard From matthias_livecode_150811 at m-r-d.de Mon Dec 10 04:16:46 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Mon, 10 Dec 2018 10:16:46 +0100 Subject: WordReport Registration In-Reply-To: References: Message-ID: <4C109BA1-8314-463B-B06D-6599B0117513@m-r-d.de> Bernard, this is done with registerWordReport. The following is an excerpt from the file "WordReport Registered Uses.pdf" which was included in the download file, at least when i downloaded it. Unlocking the library: To unlock WordReport (letting the library know you're a paying customer and need the full feature set) is by using the registerWordReport command. Just give it your serial code (in quotes) as a parameter: registerWordReport "123456B" You only need to issue this command once in your project code, and after that, you can use any commands and functions with the same syntax you see listed in the WordReport User Guide. No other modifications to your scripts are needed. One call and you're done! A good place to put the registerWordReport statement in your script is right after you "start using" the library. Here's an example: on preOpenStack start using "wordreport.rev" registerWordReport "123456B" end preOpenStack Regards, Matthias Matthias Rebbe free tools for Livecoders: https://instamaker.dermattes.de https://winsignhelper.dermattes.de > Am 10.12.2018 um 08:55 schrieb Bernard Devlin via use-livecode : > > Hi all > > I've got a copy of this as part of one of my previous Livecode purchases. > How does one go about using the registration code? > > The "Try WordReport" stack says either to buy a registration code *or* to > simply use the code if one has it. Neither of the PDF files which come with > the stack explains how to use the registration code. > > I'd contact the provider of the software but I've seen numerous messages > saying he doesn't respond to emails that I thought I'd ask an existing user. > > Regards > Bernard > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From terry.judd at unimelb.edu.au Mon Dec 10 05:18:58 2018 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Mon, 10 Dec 2018 10:18:58 +0000 Subject: .app to .ipa converter and Xcode version for Mojave? In-Reply-To: References: Message-ID: <4F36B311-15DD-4653-8D41-466D4A3D98A6@unimelb.edu.au> I?ve just (perhaps prematurely) upgraded a fairly new Macbook Pro to OS X Mojave and it seems that iTunes 12.6.3 (the last version that let you manage apps) is no longer supported. I have other ways of installing apps onto devices and extracting files from apps on devices but I still need a simple way of converting .app files to .ipa. Any ideas? And while I?m here, will Xcode 10 work with Mojave 10.14.1 and LC 9.02 or do I need Xcode 10.1 (wasn?t at all clear from the 9.0.2 release notes)? Terry? From bdrunrev at gmail.com Mon Dec 10 06:10:32 2018 From: bdrunrev at gmail.com (Bernard Devlin) Date: Mon, 10 Dec 2018 11:10:32 +0000 Subject: WordReport Registration In-Reply-To: <4C109BA1-8314-463B-B06D-6599B0117513@m-r-d.de> References: <4C109BA1-8314-463B-B06D-6599B0117513@m-r-d.de> Message-ID: Thanks Matthias. I did try variations of what I thought were a likely names for the registration handler (but that wasn't one of my guesses for the likely handler name). The file "WordReport Registered Uses.pdf" is not included in the zip file that is downloaded from within our user area on livecode.com. I saw it mentioned somewhere in the stacks/pdfs. If you could email me a copy of that file to bdrunrev at gmail, that might help too. The beauty of the WordReport concept is that it puts report-writing in the hands of the user. Regards Bernard On Mon, Dec 10, 2018 at 9:17 AM Matthias Rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Bernard, > > this is done with registerWordReport. > > The following is an excerpt from the file "WordReport Registered Uses.pdf" > which was included in the download file, at least when i downloaded it. > > From matthias_livecode_150811 at m-r-d.de Mon Dec 10 06:49:39 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Mon, 10 Dec 2018 12:49:39 +0100 Subject: WordReport Registration In-Reply-To: References: <4C109BA1-8314-463B-B06D-6599B0117513@m-r-d.de> Message-ID: Bernard, i?ve just sent it to you by email. Regards, Matthias Matthias Rebbe free tools for Livecoders: https://instamaker.dermattes.de https://winsignhelper.dermattes.de > Am 10.12.2018 um 12:10 schrieb Bernard Devlin via use-livecode >: > > Thanks Matthias. I did try variations of what I thought were a likely > names for the registration handler (but that wasn't one of my guesses for > the likely handler name). > > The file "WordReport Registered Uses.pdf" is not included in the zip file > that is downloaded from within our user area on livecode.com . I saw it > mentioned somewhere in the stacks/pdfs. If you could email me a copy of > that file to bdrunrev at gmail, that might help too. > > The beauty of the WordReport concept is that it puts report-writing in the > hands of the user. > > Regards > Bernard > > On Mon, Dec 10, 2018 at 9:17 AM Matthias Rebbe via use-livecode < > use-livecode at lists.runrev.com > wrote: > >> Bernard, >> >> this is done with registerWordReport. >> >> The following is an excerpt from the file "WordReport Registered Uses.pdf" >> which was included in the download file, at least when i downloaded it. >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode Matthias Rebbe free tools for Livecoders: https://instamaker.dermattes.de https://winsignhelper.dermattes.de From iowahengst at mac.com Mon Dec 10 07:05:20 2018 From: iowahengst at mac.com (Randy Hengst) Date: Mon, 10 Dec 2018 06:05:20 -0600 Subject: .app to .ipa converter and Xcode version for Mojave? In-Reply-To: <4F36B311-15DD-4653-8D41-466D4A3D98A6@unimelb.edu.au> References: <4F36B311-15DD-4653-8D41-466D4A3D98A6@unimelb.edu.au> Message-ID: <750E562A-F383-4AB0-AEE4-3381BDCCB5A5@mac.com> Hi Terry, I?ve been using Sean Cole?s wonderful plugin: IPA_Builder? he announced it in an email September 27? I?ve pasted it below in case you don?t have access to emails from then? ################################################################################ Hi LC Community, I needed to create IPAs of my iOS software so that I could upload them to my website for Enterprise distribution but all the old tools for doing this have been deprecated by Apple. So I've created this simple one to meet Apple's new standard way to produce them. Simply extract it into your LiveCode plugins folder and you will be able to open it from the LC menu, Development>Plugins>IPA_Builder. Let me know if you have any problems with it. https://livecode.pidigital.co.uk/IPA_Builder.zip Sean Cole *Pi Digital Productions Ltd* www.pidigital.co.uk 'Don't try to think outside the box. Just remember the truth: There is no box!' 'For then you realise it is not the box you are trying to look outside of, but it is yourself!' eMail Ts & Cs > Pi Digital Productions Ltd is a UK registered limited company, no. 5255609 _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ################################################################################ be well, randy www.classroomFocusedSoftware.com > On Dec 10, 2018, at 4:18 AM, Terry Judd via use-livecode wrote: > > I?ve just (perhaps prematurely) upgraded a fairly new Macbook Pro to OS X Mojave and it seems that iTunes 12.6.3 (the last version that let you manage apps) is no longer supported. I have other ways of installing apps onto devices and extracting files from apps on devices but I still need a simple way of converting .app files to .ipa. Any ideas? > > And while I?m here, will Xcode 10 work with Mojave 10.14.1 and LC 9.02 or do I need Xcode 10.1 (wasn?t at all clear from the 9.0.2 release notes)? > > Terry? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From curry at pair.com Mon Dec 10 07:46:42 2018 From: curry at pair.com (Curry Kenworthy) Date: Mon, 10 Dec 2018 07:46:42 -0500 Subject: WordReport Registration In-Reply-To: References: Message-ID: Bernard: > I'd contact the provider of the software but I've seen > numerous messages saying he doesn't respond to emails that > I thought I'd ask an existing user. Hi Bernard. Hmmm...it sounds like someone out there in message-land is suffering from a severe allergy to facts or insufficient information, because reality is 180 degrees in the opposite direction. That is utterly false and could confuse other users! So I feel compelled to emphasize: sending DIRECT EMAIL to me is usually the BEST and surest way to get a RESPONSE from myself if that's what is desired. I do NOT monitor every thread on lists and forums, and a response here from myself is considerably LESS likely. As I say, the exact opposite. I aim to respond initially within 48 hours, assuming I receive the message and the subject line has something to do with the product name or LiveCode. It's possible that someone has emailed me and it was caught by my ISP or their ISP or a filter - that should be rare if ever, but from faceless rumors there's just no way to know. I've always maintained two email addresses, at pair and curryk, just in case any situations like that ever come up. Feel free to ask questions here from amazing people here like Matthias, and it worked out extremely well this time, so all is good. My only request is this: please just don't pass along unverified information from unknown messages in the process of asking questions. That could confuse someone else and make it more difficult for THEM to get help. Plus it takes time writing up an extra explanation about the fake info, which takes time away from assisting people and finishing updates and fixes. I'm slow enough at times without needing any drag parachutes and side detours to hold me back from the work! :) > The file "WordReport Registered Uses.pdf" is not included in the > zip file that is downloaded from within our user area on livecode.com That file and a brief reg command summary are usually in an order confirmation email along with the license key. Remember, WordReport itself is a product, not a store. It's sold on multiple stores and only one store (my own) is under my direct control. Depending on where and when you bought the product, such as a bundle, it's possible that the store's product delivery might not have been set up to include those resources in an email. Or if you've lost that email and come back later for the download, similar situation. In such a case all you would need to do is ask LC Support or myself and it would be provided. > The beauty of the WordReport concept is that it puts report- > writing in the hands of the user. Thanks Bernard, very much appreciated! And it's getting even better; an update is coming pretty soon. Good luck on your project. And thanks Matthias for doing a perfect job of fielding this inquiry! Hope you are doing well. Best wishes, Curry Kenworthy WordLib: Take charge of MS Word and OpenOffice documents SpreadLib: "Excel-lent" spreadsheet import/export for LC http://livecodeaddons.com/ From brahma at hindu.org Mon Dec 10 08:16:58 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 10 Dec 2018 13:16:58 +0000 Subject: .app to .ipa converter and Xcode version for Mojave? In-Reply-To: <4F36B311-15DD-4653-8D41-466D4A3D98A6@unimelb.edu.au> References: <4F36B311-15DD-4653-8D41-466D4A3D98A6@unimelb.edu.au> Message-ID: <07A7A26A-ACB9-4622-A5A2-C14637C20CF2@hindu.org> I use Jacque's "AirLaunch" So simple... create the HTML files necessary for others to download. Works fine under Mojave. BR ?On 12/10/18, 12:19 AM, "use-livecode on behalf of Terry Judd via use-livecode" wrote: . I have other ways of installing apps onto devices and extracting files from apps on devices but I still need a simple way of converting .app files to .ipa. Any ideas? From panos.merakos at livecode.com Mon Dec 10 08:42:10 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 10 Dec 2018 15:42:10 +0200 Subject: [ANN] This Week in LiveCode 158 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 #158 here: https://goo.gl/F3Kqr4 This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From merakosp at gmail.com Mon Dec 10 08:43:31 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Mon, 10 Dec 2018 15:43:31 +0200 Subject: .app to .ipa converter and Xcode version for Mojave? In-Reply-To: <07A7A26A-ACB9-4622-A5A2-C14637C20CF2@hindu.org> References: <4F36B311-15DD-4653-8D41-466D4A3D98A6@unimelb.edu.au> <07A7A26A-ACB9-4622-A5A2-C14637C20CF2@hindu.org> Message-ID: Hello Terry, Yes you'll need Xcode 10.0 (NOT Xcode 10.1) with LC 9.0.2 on Mojave. Kind regards, Panos -- On Mon, Dec 10, 2018 at 3:17 PM Sannyasin Brahmanathaswami via use-livecode wrote: > I use Jacque's "AirLaunch" > > So simple... create the HTML files necessary for others to download. > > Works fine under Mojave. > > BR > > ?On 12/10/18, 12:19 AM, "use-livecode on behalf of Terry Judd via > use-livecode" use-livecode at lists.runrev.com> wrote: > > . I have other ways of installing apps onto devices and extracting > files from apps on devices but I still need a simple way of converting .app > files to .ipa. 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 bobsneidar at iotecdigital.com Mon Dec 10 10:43:41 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 10 Dec 2018 15:43:41 +0000 Subject: Dynamically Set the height of DataGrid In-Reply-To: References: Message-ID: dgNumberOfRecords get the dgNumberOfRecords set the dgNumberOfRecords of group "DataGrid" to 20 Getting the dgNumberOfRecords is the same as getting the dgNumberOfLines. Setting the dgNumberOfRecords has a special significance however. If you set the dgNumberOfRecords then you are telling the data grid that you know how many total records there are and you are going to supply the data for each record on an as-needed basis. This is useful when you have data in a database cursor that you would like to feed into the data grid. row height - For tables and forms whose 'fixed row height' property is true this represents the height that your rows will be drawn at. If this property is not set for a form whose 'fixed control height' is true then the record template group height is used. For forms whose 'fixed control height' is false this represents the height that alternating rows that contain no data will be drawn at. So something like: put the dgNumberOfRecords of group "DataGrid" into tNumberOfRecords put the dgProp ["row height"] of group "DataGrid" into tRowHeight Set the height of group "DataGrid" to min(12, tNumberOfRecords) * (tRowHeight) + 36 -- account for header and scrollbar Bob S http://lessons.livecode.com/m/datagrid/l/7343-data-grid-properties http://lessons.livecode.com/m/datagrid/l/7344-data-grid-api From jjs at krutt.org Mon Dec 10 11:53:25 2018 From: jjs at krutt.org (JJS) Date: Mon, 10 Dec 2018 17:53:25 +0100 Subject: .app to .ipa converter and Xcode version for Mojave? In-Reply-To: <750E562A-F383-4AB0-AEE4-3381BDCCB5A5@mac.com> References: <4F36B311-15DD-4653-8D41-466D4A3D98A6@unimelb.edu.au> <750E562A-F383-4AB0-AEE4-3381BDCCB5A5@mac.com> Message-ID: <5f225d49-c410-e4de-e4c9-12e13bbf2f7f@krutt.org> Hi, can i put this ipa on any iOs mobile corresponding to the set iOs version? Or do i need to have some code from the phone and register it somewhere at apple? I know that via apple you can distribute up to 100 phones or something. But for an non-profit veterans association this is not affordable. Thanks for any explanation. Jerry Op 10-12-2018 om 13:05 schreef Randy Hengst via use-livecode: > Hi Terry, > > I?ve been using Sean Cole?s wonderful plugin: IPA_Builder? he announced it in an email September 27? I?ve pasted it below in case you don?t have access to emails from then? > ################################################################################ > Hi LC Community, > > I needed to create IPAs of my iOS software so that I could upload them to > my website for Enterprise distribution but all the old tools for doing this > have been deprecated by Apple. So I've created this simple one to meet > Apple's new standard way to produce them. Simply extract it into your > LiveCode plugins folder and you will be able to open it from the LC menu, > Development>Plugins>IPA_Builder. Let me know if you have any problems with > it. > > https://livecode.pidigital.co.uk/IPA_Builder.zip > > Sean Cole > *Pi Digital Productions Ltd* > www.pidigital.co.uk > 'Don't try to think outside the box. Just remember the truth: There is no > box!' > 'For then you realise it is not the box you are trying to look outside of, > but it is yourself!' > > eMail Ts & Cs > Pi Digital > Productions Ltd is a UK registered limited company, no. 5255609 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > ################################################################################ > > be well, > randy > www.classroomFocusedSoftware.com > > >> On Dec 10, 2018, at 4:18 AM, Terry Judd via use-livecode wrote: >> >> I?ve just (perhaps prematurely) upgraded a fairly new Macbook Pro to OS X Mojave and it seems that iTunes 12.6.3 (the last version that let you manage apps) is no longer supported. I have other ways of installing apps onto devices and extracting files from apps on devices but I still need a simple way of converting .app files to .ipa. Any ideas? >> >> And while I?m here, will Xcode 10 work with Mojave 10.14.1 and LC 9.02 or do I need Xcode 10.1 (wasn?t at all clear from the 9.0.2 release notes)? >> >> Terry? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Mon Dec 10 12:59:39 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 10 Dec 2018 17:59:39 +0000 Subject: Dynamically Set the height of DataGrid In-Reply-To: References: Message-ID: <93B3692C-A109-4E87-B2EB-93F3D416CA14@hindu.org> Well I got as far as On mouseup # get data need for the datagrid then ... put sMap[portalData][tTarget][rowdata] into tRowdataA reSizeDataGrid (item 2 of extents(tRowdataA) ) set dgData of grp "navMap" to tRowdataA .... End mouseups command reSizeDataGrid pNumOfRows #dgText array is set the datagrid set the height of group "navMap" of me to ( (67*pNumOfRows) ) set top of group "navMap" of me to 100 end reSizeDataGrid But I have to hard card it...you methods are better. 1) question a hierarchy? The command that we want to use to customize (dgprops gives everything!). are they better "externalized" the Datagrid before showing it...OR in better to encapsulate in the behavior script of the DG itself. Say, in the "LayoutControl" handler. Of course you are going to say. "Depends on your context, if you want new one to have the same customization... better make it external." But then those of you have done this a while have a preferred "best" practice.. What is it? 2) Now, if I could just do a proper "Refresh" ...nothing I will do in the current RowTemplate affects the datagrid...."argh". which take all it color from Item Inspector of the datagrid as a whole... it as if the "mask" that the rowtemplate is not being rendering. Just the "elements" but not the colors and size Brahmanathaswami ?On 12/10/18, 5:45 AM, "use-livecode on behalf of Bob Sneidar via use-livecode" wrote: dgNumberOfRecords get the dgNumberOfRecords set the dgNumberOfRecords of group "DataGrid" to 20 Getting the dgNumberOfRecords is the same as getting the dgNumberOfLines. Setting the dgNumberOfRecords has a special significance however. If you set the dgNumberOfRecords then you are telling the data grid that you know how many total records there are and you are going to supply the data for each record on an as-needed basis. This is useful when you have data in a database cursor that you would like to feed into the data grid. row height - For tables and forms whose 'fixed row height' property is true this represents the height that your rows will be drawn at. If this property is not set for a form whose 'fixed control height' is true then the record template group height is used. For forms whose 'fixed control height' is false this represents the height that alternating rows that contain no data will be drawn at. So something like: put the dgNumberOfRecords of group "DataGrid" into tNumberOfRecords put the dgProp ["row height"] of group "DataGrid" into tRowHeight Set the height of group "DataGrid" to min(12, tNumberOfRecords) * (tRowHeight) + 36 -- account for header and scrollbar Bob S http://lessons.livecode.com/m/datagrid/l/7343-data-grid-properties http://lessons.livecode.com/m/datagrid/l/7344-data-grid-api From jjs at krutt.org Mon Dec 10 12:11:11 2018 From: jjs at krutt.org (JJS) Date: Mon, 10 Dec 2018 18:11:11 +0100 Subject: remove empty lines in DG In-Reply-To: <839bf63e-651d-b1a7-946a-d77bc9e5a699@krutt.org> References: <37e91af7-b875-9e5f-8b84-589c2859d80d@krutt.org> <8079153D-7ADF-4964-A84F-08D4AD0FB203@iotecdigital.com> <839bf63e-651d-b1a7-946a-d77bc9e5a699@krutt.org> Message-ID: <8b586bc1-cb75-cad2-ee8d-880d4aed86f8@krutt.org> I could delete the empty lines by dispatching delete to the DG. But this was not a solution to the cause. Now it seems it happens when fetching from the DB. Now as everything is encrypted, i can't see which line in the DB is empty. So have to check if i can find the exact lines causing it, which is really strange. Because when they finally arrive in the DG they have no no corresponding to the db. So it looks like it is no fault somewhere in LC. At least i can find empty line in the fetched results and delete them, causing the data nicely to appear at the top in the DG. Thanks! Jerry Op 8-12-2018 om 19:05 schreef JJS via use-livecode: > Thanks Bob > > i will check out your suggestion. > > Jerry > > Op 8-12-2018 om 01:18 schreef Bob Sneidar via use-livecode: >> This can happen if there are keys in the data that are not numbered. >> Try getting the dgData of the datagrid and examining the array in the >> debugger. That should show you your keys. You can possibly do a >> repeat with i = 1 to and >> populate another array with the records from the original array, then >> set the dgData to the new array. >> >> Bob S >> >> >>> On Dec 7, 2018, at 11:16 , JJS via use-livecode >>> wrote: >>> >>> Hi, >>> >>> >>> i don't know why but with one stack i have when the DG is populated, >>> empty lines at the top which i can't seem to remove. >>> >>> Data is being fetched from a DB, then base64decoded, then decrypted. >>> In neither state i could find an empty line. >>> >>> Now it seems only with this stack on windows. >>> >>> The same trick i do on windows and mobile with other stacks and the >>> DG and this seems to work ok. >>> >>> I tried to remove the empty lines but no luck. and also: >>> >>> >>> *--set the dgProp["sort by column"] of group "DataGrid 1" of card 1 >>> to "Nummer"* >>> >>> *dispatch*"SortByColumn"to*group*"DataGrid 1"ofcard1with"Nummer" >>> >>> Anyone has a trick? before i decide to delete the DG and replace >>> with a new one. >>> >>> >>> thanks! >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 10 14:30:53 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 10 Dec 2018 19:30:53 +0000 Subject: .app to .ipa converter and Xcode version for Mojave? In-Reply-To: <5f225d49-c410-e4de-e4c9-12e13bbf2f7f@krutt.org> References: <4F36B311-15DD-4653-8D41-466D4A3D98A6@unimelb.edu.au> <750E562A-F383-4AB0-AEE4-3381BDCCB5A5@mac.com> <5f225d49-c410-e4de-e4c9-12e13bbf2f7f@krutt.org> Message-ID: <509D8950-A7E2-4FF7-8671-205301F0C00D@hindu.org> Aloha Jerry, http://lessons.livecode.com/m/2571/l/23275-how-do-i-become-an-ios-developer unfortunately its too lean.... Get ready for the nightmare to come. You will need: 1) We assume that you have a developer license. $103.95 cents year. https://developer.apple.com/ # get an account Apples doesn?t care about your Veterans Association budget. They are intent on being the richest company to world. Greed incarnate. 2) You need to install an SSL security certificate on you Mac. Keychain Access.app, via the developer portal (it gives you instructions) 3) now you can assign 100 devices for one year by giving the portal the UUIC for each device. I have a memo describing how to get that from users, if want that, send me email off list. 4) next you create a provisioning profile. It is tied to security certificate that is registered at the portal/on you mac. And it has the number of devices that you want to use for testing (you can pick them from the portal) 5) You download the provisioning profile ... it will be automatically installed /Users/*user*/Library/MobileDevice/Provisioning Profiles/124312341234.mobileprovision 6) Now you can choose the profile in the Standalone Builder! 7) *now* you can make the IPA. Yay! Put it on a web server and those devices which are registered with the profile, can open it It most complicated than that. I would help you off list. But you need to be an official Apple developer first. BR Hi, can i put this ipa on any iOs mobile corresponding to the set iOs version? Or do i need to have some code from the phone and register it somewhere at apple? I know that via apple you can distribute up to 100 phones or something. But for an non-profit veterans association this is not affordable. Thanks for any explanation. Jerry From jjs at krutt.org Mon Dec 10 14:05:28 2018 From: jjs at krutt.org (JJS) Date: Mon, 10 Dec 2018 20:05:28 +0100 Subject: .app to .ipa converter and Xcode version for Mojave? In-Reply-To: <509D8950-A7E2-4FF7-8671-205301F0C00D@hindu.org> References: <4F36B311-15DD-4653-8D41-466D4A3D98A6@unimelb.edu.au> <750E562A-F383-4AB0-AEE4-3381BDCCB5A5@mac.com> <5f225d49-c410-e4de-e4c9-12e13bbf2f7f@krutt.org> <509D8950-A7E2-4FF7-8671-205301F0C00D@hindu.org> Message-ID: <2b992239-54c7-1e5f-293b-09ecc8eaa66e@krutt.org> Hi Sannyasin, thanks for your well put explanation. I thought that it would be like this. We'll stick at Android for the Assocation then, a one time fee of 25$ is perfect for a free app. So to pay 100$ each year for a free app and also for the LC Community Plus edition is too much for the nr of users who would use it, since the app is only accessible via a password. I don't have a paid dev account yet. I can only play with Xcode and the iOs emulator. I can create provisioning profiles within Xcode. If i make enough money and would have the indy and paid dev account i would put it on for free for them. But until then, it will be Android only. I hoped the ipa builder would provide something to get it on their devices without the iOs store. Thanks anyway! Jerry Op 10-12-2018 om 20:30 schreef Sannyasin Brahmanathaswami via use-livecode: > Aloha Jerry, > > http://lessons.livecode.com/m/2571/l/23275-how-do-i-become-an-ios-developer > > unfortunately its too lean.... > > Get ready for the nightmare to come. > > You will need: > > 1) We assume that you have a developer license. $103.95 cents year. > > https://developer.apple.com/ > # get an account > > Apples doesn?t care about your Veterans Association budget. They are intent on being the richest company to world. Greed incarnate. > > 2) You need to install an SSL security certificate on you Mac. > Keychain Access.app, via the developer portal (it gives you instructions) > > 3) now you can assign 100 devices for one year by giving the portal the UUIC for each device. I have a memo describing how to get that from users, if want that, send me email off list. > > 4) next you create a provisioning profile. It is tied to security certificate that is registered at the portal/on you mac. And it has the number of devices that you want to use for testing (you can pick them from the portal) > > 5) You download the provisioning profile ... it will be automatically installed > > /Users/*user*/Library/MobileDevice/Provisioning Profiles/124312341234.mobileprovision > > 6) Now you can choose the profile in the Standalone Builder! > > 7) *now* you can make the IPA. Yay! Put it on a web server and those devices which are registered with the profile, can open it > > It most complicated than that. I would help you off list. > > But you need to be an official Apple developer first. > > BR > > > Hi, > > can i put this ipa on any iOs mobile corresponding to the set iOs version? > > Or do i need to have some code from the phone and register it somewhere > at apple? > > I know that via apple you can distribute up to 100 phones or something. > But for an non-profit veterans association this is not affordable. > > > Thanks for any explanation. > > Jerry > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Mon Dec 10 15:06:25 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 10 Dec 2018 14:06:25 -0600 Subject: Screen readers Message-ID: <0f524ca6-e9ac-dff0-6970-2b6146662144@hyperactivesw.com> Does screen reader software (for visually limited users) work with LC fields? Anyone know? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Mon Dec 10 15:22:13 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 10 Dec 2018 14:22:13 -0600 Subject: .app to .ipa converter and Xcode version for Mojave? In-Reply-To: <2b992239-54c7-1e5f-293b-09ecc8eaa66e@krutt.org> References: <4F36B311-15DD-4653-8D41-466D4A3D98A6@unimelb.edu.au> <750E562A-F383-4AB0-AEE4-3381BDCCB5A5@mac.com> <5f225d49-c410-e4de-e4c9-12e13bbf2f7f@krutt.org> <509D8950-A7E2-4FF7-8671-205301F0C00D@hindu.org> <2b992239-54c7-1e5f-293b-09ecc8eaa66e@krutt.org> Message-ID: <9f763380-99c1-ecfd-3294-7e4c2dcbc7b1@hyperactivesw.com> On 12/10/18 1:05 PM, JJS via use-livecode wrote: > I hoped the ipa builder would provide something to get it on their > devices without the iOs store. Nothing can bypass the App Store. IOS devices will only install apps deleviered from the store, with the single exception being developer testers, which can accomodate up to 100 verified devices whose UUIDs are embedded into the development certificate. Apple does offer an Enterprise account that allows a company to host the app on their own servers, but it is much more expensive and last I heard, only accomodates up to 500 devices. That number may have changed since I last checked, but if $100 is out of range then Enterprise certainly would be unaffordable. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Mon Dec 10 15:22:49 2018 From: paul at researchware.com (Paul Dupuis) Date: Mon, 10 Dec 2018 15:22:49 -0500 Subject: Screen readers In-Reply-To: <0f524ca6-e9ac-dff0-6970-2b6146662144@hyperactivesw.com> References: <0f524ca6-e9ac-dff0-6970-2b6146662144@hyperactivesw.com> Message-ID: <27e5d5be-6167-1064-e29d-d5318fa0f381@researchware.com> On 12/10/2018 3:06 PM, J. Landman Gay via use-livecode wrote: > Does screen reader software (for visually limited users) work with LC > fields? Anyone know? > Not in our experience. Have not checked LC9. We get requests periodically for versions of our products (both made using LiveCode) that support populate screen reader systems for the visually impaired. I am very sad to say, we simply can't afford to develop and test how to integrate LC for even the most popular system. This is an area where I really wish LiveCode Ltd. would do some research and open a Feature Exchange to add whatever is needed to make LC apps compliant. We'd contribute, but just can't take it on all by ourselves. From paul at researchware.com Mon Dec 10 15:32:05 2018 From: paul at researchware.com (Paul Dupuis) Date: Mon, 10 Dec 2018 15:32:05 -0500 Subject: Seeking OSX Code signing consultant... Message-ID: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> I have a Macbook Pro with El Capitn (10.11) and XCode 8.2.1. I also have AppWrapper 3 by Ohanaware. I need help setting up to be able to code sign OSX applications for distribution from our web site (NOT via the MacOS App Store). I am willing to pay some one who knows how to do this for their time on an online meeting? to walk me through: 1) Generating the correct certificates under our Apple Developer Account (we have now generated so many we're not sure what is what) 2) Getting the correct Certificate(s) into our KeyChain on the MacBook Pro 3) Either successful code signing via the Terminal and codesign command line tool OR successful code signing via AppWrapper. In our latest attempt at command line code signing we got the error: /Users/paul/Desktop/MacOSX/HyperRESEARCH.app: code object is not signed at all In subcomponent: /Users/Paul/Desktop/MacOSX/HyperRESEARCH.app/Contents/Frameworks/Chromium Embedded Framework.framework In older Xcode, you could use the option -deep to recursively sign all code objects in a .app bundle, but that does not appear to work with the Xcode 8.2.1 version of codesign. Email me off list if you know how to setup code signing on El Capitan and Xcode 8.2.1 with a hourly price. From terry.judd at unimelb.edu.au Mon Dec 10 16:00:02 2018 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Mon, 10 Dec 2018 21:00:02 +0000 Subject: .app to .ipa converter and Xcode version for Mojave? In-Reply-To: <750E562A-F383-4AB0-AEE4-3381BDCCB5A5@mac.com> References: <4F36B311-15DD-4653-8D41-466D4A3D98A6@unimelb.edu.au>, <750E562A-F383-4AB0-AEE4-3381BDCCB5A5@mac.com> Message-ID: <1B8E7E0B-4636-41EE-B790-6848B22E6FBE@unimelb.edu.au> Thanks Randy - I?ll give that a whirl. Terry Sent from my iPad > On 10 Dec 2018, at 11:06 pm, Randy Hengst via use-livecode wrote: > > Hi Terry, > > I?ve been using Sean Cole?s wonderful plugin: IPA_Builder? he announced it in an email September 27? I?ve pasted it below in case you don?t have access to emails from then? > ################################################################################ > Hi LC Community, > > I needed to create IPAs of my iOS software so that I could upload them to > my website for Enterprise distribution but all the old tools for doing this > have been deprecated by Apple. So I've created this simple one to meet > Apple's new standard way to produce them. Simply extract it into your > LiveCode plugins folder and you will be able to open it from the LC menu, > Development>Plugins>IPA_Builder. Let me know if you have any problems with > it. > > https://livecode.pidigital.co.uk/IPA_Builder.zip > > Sean Cole > *Pi Digital Productions Ltd* > www.pidigital.co.uk > 'Don't try to think outside the box. Just remember the truth: There is no > box!' > 'For then you realise it is not the box you are trying to look outside of, > but it is yourself!' > > eMail Ts & Cs > Pi Digital > Productions Ltd is a UK registered limited company, no. 5255609 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > ################################################################################ > > be well, > randy > www.classroomFocusedSoftware.com > > >> On Dec 10, 2018, at 4:18 AM, Terry Judd via use-livecode wrote: >> >> I?ve just (perhaps prematurely) upgraded a fairly new Macbook Pro to OS X Mojave and it seems that iTunes 12.6.3 (the last version that let you manage apps) is no longer supported. I have other ways of installing apps onto devices and extracting files from apps on devices but I still need a simple way of converting .app files to .ipa. Any ideas? >> >> And while I?m here, will Xcode 10 work with Mojave 10.14.1 and LC 9.02 or do I need Xcode 10.1 (wasn?t at all clear from the 9.0.2 release notes)? >> >> Terry? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From terry.judd at unimelb.edu.au Mon Dec 10 16:00:50 2018 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Mon, 10 Dec 2018 21:00:50 +0000 Subject: .app to .ipa converter and Xcode version for Mojave? In-Reply-To: References: <4F36B311-15DD-4653-8D41-466D4A3D98A6@unimelb.edu.au> <07A7A26A-ACB9-4622-A5A2-C14637C20CF2@hindu.org>, Message-ID: Thanks for the confirmation Panos. Terry Sent from my iPad > On 11 Dec 2018, at 12:44 am, panagiotis merakos via use-livecode wrote: > > Hello Terry, > > Yes you'll need Xcode 10.0 (NOT Xcode 10.1) with LC 9.0.2 on Mojave. > > Kind regards, > Panos > -- > > On Mon, Dec 10, 2018 at 3:17 PM Sannyasin Brahmanathaswami via use-livecode > wrote: > >> I use Jacque's "AirLaunch" >> >> So simple... create the HTML files necessary for others to download. >> >> Works fine under Mojave. >> >> BR >> >> ?On 12/10/18, 12:19 AM, "use-livecode on behalf of Terry Judd via >> use-livecode" > use-livecode at lists.runrev.com> wrote: >> >> . I have other ways of installing apps onto devices and extracting >> files from apps on devices but I still need a simple way of converting .app >> files to .ipa. 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 10 16:03:09 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 10 Dec 2018 15:03:09 -0600 Subject: Screen readers In-Reply-To: <27e5d5be-6167-1064-e29d-d5318fa0f381@researchware.com> References: <0f524ca6-e9ac-dff0-6970-2b6146662144@hyperactivesw.com> <27e5d5be-6167-1064-e29d-d5318fa0f381@researchware.com> Message-ID: On 12/10/18 2:22 PM, Paul Dupuis via use-livecode wrote: > On 12/10/2018 3:06 PM, J. Landman Gay via use-livecode wrote: >> Does screen reader software (for visually limited users) work with LC >> fields? Anyone know? >> > > Not in our experience. Have not checked LC9. > > We get requests periodically for versions of our products (both made > using LiveCode) that support populate screen reader systems for the > visually impaired. I am very sad to say, we simply can't afford to > develop and test how to integrate LC for even the most popular system. > This is an area where I really wish LiveCode Ltd. would do some research > and open a Feature Exchange to add whatever is needed to make LC apps > compliant. We'd contribute, but just can't take it on all by ourselves. Thanks, that saves me some trouble. It sounds like adding keyboard shortcuts for some of the buttons is about all I can do. Unfortunate. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jjs at krutt.org Mon Dec 10 16:26:25 2018 From: jjs at krutt.org (JJS) Date: Mon, 10 Dec 2018 22:26:25 +0100 Subject: .app to .ipa converter and Xcode version for Mojave? In-Reply-To: <9f763380-99c1-ecfd-3294-7e4c2dcbc7b1@hyperactivesw.com> References: <4F36B311-15DD-4653-8D41-466D4A3D98A6@unimelb.edu.au> <750E562A-F383-4AB0-AEE4-3381BDCCB5A5@mac.com> <5f225d49-c410-e4de-e4c9-12e13bbf2f7f@krutt.org> <509D8950-A7E2-4FF7-8671-205301F0C00D@hindu.org> <2b992239-54c7-1e5f-293b-09ecc8eaa66e@krutt.org> <9f763380-99c1-ecfd-3294-7e4c2dcbc7b1@hyperactivesw.com> Message-ID: <8c94e696-3264-9f40-9c1f-f94161320122@krutt.org> Thanks Jacque, well yes i think so. Totall would be under 200$ yearly together with the Community Plus else you can't put it on the app store. I also think the nr of iOs users would not match up to the Android users. Members (around 2100 and decreasing due to natural causes) donate voluntarly max 10 euro yearly to the association. The association does also get funds from the Dutch government but that's related to reunions and thelike. The nr of members will never increase because it's only for them who served with that batallion. I don't think i could get an OK for this. Thanks anyway :) Op 10-12-2018 om 21:22 schreef J. Landman Gay via use-livecode: > On 12/10/18 1:05 PM, JJS via use-livecode wrote: >> I hoped the ipa builder would provide something to get it on their >> devices without the iOs store. > > Nothing can bypass the App Store. IOS devices will only install apps > deleviered from the store, with the single exception being developer > testers, which can accomodate up to 100 verified devices whose UUIDs > are embedded into the development certificate. > > Apple does offer an Enterprise account that allows a company to host > the app on their own servers, but it is much more expensive and last I > heard, only accomodates up to 500 devices. That number may have > changed since I last checked, but if $100 is out of range then > Enterprise certainly would be unaffordable. > From bobsneidar at iotecdigital.com Mon Dec 10 16:57:48 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 10 Dec 2018 21:57:48 +0000 Subject: Dynamically Set the height of DataGrid In-Reply-To: <93B3692C-A109-4E87-B2EB-93F3D416CA14@hindu.org> References: <93B3692C-A109-4E87-B2EB-93F3D416CA14@hindu.org> Message-ID: <74D6A69E-4942-43C2-91BC-285207E927A4@iotecdigital.com> The trouble with modigying the datagrid behavior itself is that you have to do that everytime you install a new version! It used to be you could copy the code in the script of the behavior button, paste it into a new button in your app then set the dg behavior to the new button ID, but that does not work anymore, on account of the way they are using script only stacks now. I have inserted a custom behavior before the default behavior, but I have to make a couple mods in the script only behaviors to get them to work. This was discussed a while back, and someone figured out a way to get nested behaviors to work. I think they said that the hotfix will be bundled into 9.1, so then I won't have to customize the behaviors after that. There is no "best practice" when it comes to these things. At best they are hacks, but the benifit outweighs the hazards, so we go for it. As far as your dg not refreshing, if you already set the dgNumberOfRecords/lines, then the auto refresh of the datagrid will be turned off, and it won't refresh on it's own. (Someone may correct me on this). RefreshIndex RefreshIndex pIndexes Redraws row associated with pIndexes using latest data. Use this command in conjunction with SetDataOfIndex. pIndexes can be a comma delimited list of indexes. RefreshLine RefreshLine pLines Redraws row using latest data. Use this command in conjunction with SetDataOfLine. pLines can be a comma delimited list of lines. Bob S > On Dec 10, 2018, at 09:59 , Sannyasin Brahmanathaswami via use-livecode wrote: > > 1) question a hierarchy? The command that we want to use to customize (dgprops gives everything!). are they better "externalized" the Datagrid before showing it...OR in better to encapsulate in the behavior script of the DG itself. Say, in the "LayoutControl" handler. > > Of course you are going to say. "Depends on your context, if you want new one to have the same customization... better make it external." > > But then those of you have done this a while have a preferred "best" practice.. What is it? > > 2) Now, if I could just do a proper "Refresh" > ...nothing I will do in the current RowTemplate affects the datagrid...."argh". which take all it color from Item Inspector of the datagrid as a whole... it as if the "mask" that the rowtemplate is not being rendering. Just the "elements" but not the colors and size > > Brahmanathaswami From bobsneidar at iotecdigital.com Mon Dec 10 17:01:39 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 10 Dec 2018 22:01:39 +0000 Subject: remove empty lines in DG In-Reply-To: <8b586bc1-cb75-cad2-ee8d-880d4aed86f8@krutt.org> References: <37e91af7-b875-9e5f-8b84-589c2859d80d@krutt.org> <8079153D-7ADF-4964-A84F-08D4AD0FB203@iotecdigital.com> <839bf63e-651d-b1a7-946a-d77bc9e5a699@krutt.org> <8b586bc1-cb75-cad2-ee8d-880d4aed86f8@krutt.org> Message-ID: <859DD8A9-EC7C-447B-9BA4-B1733C42043F@iotecdigital.com> You would be better off gettign the data as a cursor then looping through the cursor data to produce a dg compatible array, then setting the dgData. dgText is ok if all you have to work with is delimited text data, but if you can get an array, then you should use dgData. Fortunately for you, I have a cursorToArray function already written:-) function cursorToArray pCursorID put revDatabaseColumnCount(pCursorID) into tColumnCount put revDatabaseColumnNames(pCursorID) into tColumnNames repeat forever add 1 to tRecordCount repeat with i = 1 to tColumnCount put revDatabaseColumnNumbered(pCursorID, i) into aCursorArray [tRecordCount] [item i of tColumnNames] end repeat revMoveToNextRecord pCursorID if not the result then exit repeat end repeat return aCursorArray end cursorToArray > On Dec 10, 2018, at 09:11 , JJS via use-livecode wrote: > > I could delete the empty lines by dispatching delete to the DG. > > But this was not a solution to the cause. > > Now it seems it happens when fetching from the DB. Now as everything is encrypted, i can't see which line in the DB is empty. > > So have to check if i can find the exact lines causing it, which is really strange. Because when they finally arrive in the DG they have no no corresponding to the db. > > So it looks like it is no fault somewhere in LC. > > At least i can find empty line in the fetched results and delete them, causing the data nicely to appear at the top in the DG. > > Thanks! > > Jerry From harrison at all-auctions.com Mon Dec 10 17:46:17 2018 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 10 Dec 2018 17:46:17 -0500 Subject: Screen readers In-Reply-To: References: <0f524ca6-e9ac-dff0-6970-2b6146662144@hyperactivesw.com> <27e5d5be-6167-1064-e29d-d5318fa0f381@researchware.com> Message-ID: This is something that should be handled at the operating system level inside of macOS or Windows etc. Just my 2 cents. Rick > On Dec 10, 2018, at 4:03 PM, J. Landman Gay via use-livecode wrote: > > On 12/10/18 2:22 PM, Paul Dupuis via use-livecode wrote: >> On 12/10/2018 3:06 PM, J. Landman Gay via use-livecode wrote: >>> Does screen reader software (for visually limited users) work with LC fields? Anyone know? >>> >> Not in our experience. Have not checked LC9. >> We get requests periodically for versions of our products (both made using LiveCode) that support populate screen reader systems for the visually impaired. I am very sad to say, we simply can't afford to develop and test how to integrate LC for even the most popular system. This is an area where I really wish LiveCode Ltd. would do some research and open a Feature Exchange to add whatever is needed to make LC apps compliant. We'd contribute, but just can't take it on all by ourselves. > > Thanks, that saves me some trouble. It sounds like adding keyboard shortcuts for some of the buttons is about all I can do. Unfortunate. > > -- > 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 lists at mangomultimedia.com Mon Dec 10 18:18:23 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 10 Dec 2018 17:18:23 -0600 Subject: Screen readers In-Reply-To: References: <0f524ca6-e9ac-dff0-6970-2b6146662144@hyperactivesw.com> <27e5d5be-6167-1064-e29d-d5318fa0f381@researchware.com> Message-ID: On Mon, Dec 10, 2018 at 4:46 PM Rick Harrison via use-livecode < use-livecode at lists.runrev.com> wrote: > This is something that should be handled at the operating system level > inside of macOS or Windows etc. A screen reader only works if the web page or application provides information to the system describing the content. LiveCode does not make any of that information available to the operating system. That isn?t the operating systems fault. -- Trevor DeVore ScreenSteps > From paul at researchware.com Mon Dec 10 18:38:23 2018 From: paul at researchware.com (Paul Dupuis) Date: Mon, 10 Dec 2018 18:38:23 -0500 Subject: Screen readers In-Reply-To: <0f524ca6-e9ac-dff0-6970-2b6146662144@hyperactivesw.com> References: <0f524ca6-e9ac-dff0-6970-2b6146662144@hyperactivesw.com> Message-ID: <27374db6-38c7-bdaa-260e-5a05e8192491@researchware.com> Both Windows and OSX include screen reader libraries: Microsoft Windows includes Microsoft Narrator. Mac OS X includes VoiceOver. However, most visually impaired Windows users who have contacted us, use JAWS from Freedom Scientific. I have also seen some evidence that NVDA, and open source screen reader, is improving and gaining in use. I expect that the LC engine would need to be modified to hook all the LC UI objects into such libraries. From prothero at earthlearningsolutions.org Mon Dec 10 21:39:56 2018 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Mon, 10 Dec 2018 16:39:56 -1000 Subject: Seeking OSX Code signing consultant... In-Reply-To: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> Message-ID: Folks, This is sooo needed. I had to shake my head at the situation where so many certificates have been downloaded that you (me too) lose track of what?s what. My best strategy was to delete them all and start over. But, they seem to be stored in multiple locations, so it wasn?t easy to find them all. I don?t do this often, but when I do, I allow at least a day to pull my hair and curse at the opaqueness of the task. This is complicated further by Apple?s regular ?improvements? that require more hair pulling to respond to. It would be wonderful if there was more help for this, written to address the hurdles faced by those of us who don?t do this very often. ?End of rant?? Best, Bill William Prothero http://es.earthednet.org > On Dec 10, 2018, at 10:32 AM, Paul Dupuis via use-livecode wrote: > > I have a Macbook Pro with El Capitn (10.11) and XCode 8.2.1. I also have AppWrapper 3 by Ohanaware. > > I need help setting up to be able to code sign OSX applications for distribution from our web site (NOT via the MacOS App Store). I am willing to pay some one who knows how to do this for their time on an online meeting to walk me through: > > 1) Generating the correct certificates under our Apple Developer Account (we have now generated so many we're not sure what is what) > > 2) Getting the correct Certificate(s) into our KeyChain on the MacBook Pro > > 3) Either successful code signing via the Terminal and codesign command line tool OR successful code signing via AppWrapper. > > In our latest attempt at command line code signing we got the error: > > /Users/paul/Desktop/MacOSX/HyperRESEARCH.app: code object is not signed at all > In subcomponent: /Users/Paul/Desktop/MacOSX/HyperRESEARCH.app/Contents/Frameworks/Chromium Embedded Framework.framework > > In older Xcode, you could use the option -deep to recursively sign all code objects in a .app bundle, but that does not appear to work with the Xcode 8.2.1 version of codesign. > > Email me off list if you know how to setup code signing on El Capitan and Xcode 8.2.1 with a hourly price. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Mon Dec 10 21:57:10 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 10 Dec 2018 20:57:10 -0600 Subject: Seeking OSX Code signing consultant... In-Reply-To: References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> Message-ID: <63137c23-1896-4d6a-88ba-d199e2950dd6@Spark> Does the Xcode option for it to manage certificates help? ?So far I just compile for iOS testing (don?t have a paid dev account yet), but it automatically updates the cert when needed. Thanks, Brian On Dec 10, 2018, 8:40 PM -0600, prothero--- via use-livecode , wrote: > Folks, > This is sooo needed. I had to shake my head at the situation where so many certificates have been downloaded that you (me too) lose track of what?s what. My best strategy was to delete them all and start over. But, they seem to be stored in multiple locations, so it wasn?t easy to find them all. I don?t do this often, but when I do, I allow at least a day to pull my hair and curse at the opaqueness of the task. > > This is complicated further by Apple?s regular ?improvements? that require more hair pulling to respond to. > > It would be wonderful if there was more help for this, written to address the hurdles faced by those of us who don?t do this very often. > > ?End of rant?? > > Best, > Bill > > William Prothero > http://es.earthednet.org > > > On Dec 10, 2018, at 10:32 AM, Paul Dupuis via use-livecode wrote: > > > > I have a Macbook Pro with El Capitn (10.11) and XCode 8.2.1. I also have AppWrapper 3 by Ohanaware. > > > > I need help setting up to be able to code sign OSX applications for distribution from our web site (NOT via the MacOS App Store). I am willing to pay some one who knows how to do this for their time on an online meeting to walk me through: > > > > 1) Generating the correct certificates under our Apple Developer Account (we have now generated so many we're not sure what is what) > > > > 2) Getting the correct Certificate(s) into our KeyChain on the MacBook Pro > > > > 3) Either successful code signing via the Terminal and codesign command line tool OR successful code signing via AppWrapper. > > > > In our latest attempt at command line code signing we got the error: > > > > /Users/paul/Desktop/MacOSX/HyperRESEARCH.app: code object is not signed at all > > In subcomponent: /Users/Paul/Desktop/MacOSX/HyperRESEARCH.app/Contents/Frameworks/Chromium Embedded Framework.framework > > > > In older Xcode, you could use the option -deep to recursively sign all code objects in a .app bundle, but that does not appear to work with the Xcode 8.2.1 version of codesign. > > > > Email me off list if you know how to setup code signing on El Capitan and Xcode 8.2.1 with a hourly price. > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Tue Dec 11 00:23:00 2018 From: tom at makeshyft.com (Tom Glod) Date: Tue, 11 Dec 2018 00:23:00 -0500 Subject: Datagrid Refresh In-Reply-To: <4B8E8109-C0F6-476E-9F18-B9FE0D8A6C15@hindu.org> References: <4B8E8109-C0F6-476E-9F18-B9FE0D8A6C15@hindu.org> Message-ID: the best way to refresh your grid is to "set its dgdata" property to the array you want. i've used the grid extensively and over the years have gone through all sorts of anomalies. Hitting refresh on inspector seems like it should work..... but with v9 and other possible issues...i wouldn't trust it ........, setting the dgdata is the only way to reset. if it still doesn't work then there is something wrong with the code on your templates. Good luck On Sun, Dec 9, 2018 at 9:08 AM Sannyasin Brahmanathaswami via use-livecode < use-livecode at lists.runrev.com> wrote: > Continuing to work on Datagrid > > I can't figure out refresh. (9.2 stable) > > 1) I click on the inspector for the datagrid > 2) Click on row template > 3) Select to group > 4) Edit the group, > 5) Make my field "rowName" non-opaque with a few light text color. > 6) A linear gradient to background. It is opaque and visible > 7) Save the group rowTemple > 8) Hit refresh on the inspector for the datagrid > Result: I see the nearly white text of the fld "rowName" but the > background is white and does not show the gradient. Thinking "hmm, datagrid > does not support gradient.." switch the background color to simple black, > visible, opaque --*still* it does not appear refresh? > > What do I do to refresh to datagrid? see > > http://wiki.hindu.org/screenshots/datagrid-refresh.png > > > Also, secondary question: where does the rect of pControlRect and > pWorkingrect come from? > > If I put > > on LayoutControl pControlRect, pWorkingRect > put pControlrect&CR&pWorkingRect > > I get the same result. It seems we don't have control over these rects? > > 81,532,341,577 > 81,532,341,577 > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul at researchware.com Tue Dec 11 07:34:42 2018 From: paul at researchware.com (Paul Dupuis) Date: Tue, 11 Dec 2018 07:34:42 -0500 Subject: Seeking OSX Code signing consultant... In-Reply-To: <63137c23-1896-4d6a-88ba-d199e2950dd6@Spark> References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> <63137c23-1896-4d6a-88ba-d199e2950dd6@Spark> Message-ID: <85e07f6f-c177-59bd-2360-aadf58de88a5@researchware.com> On 12/10/2018 9:57 PM, Brian Milby via use-livecode wrote: > Does the Xcode option for it to manage certificates help? ?So far I just compile for iOS testing (don?t have a paid dev account yet), but it automatically updates the cert when needed. > > Thanks, > Brian > On Dec 10, 2018, 8:40 PM -0600, prothero--- via use-livecode , wrote: Brian, With respect, I don't know about the "XCode option for ... well anything" and I don't want to invest the time to learn which is why I am trying to hire a consultant who already knows this stuff. A few hours of an experts time is a better investment than many hours of my time for the degree of use that we? we have for OSX code signing. From andrew at midwestcoastmedia.com Tue Dec 11 08:01:12 2018 From: andrew at midwestcoastmedia.com (andrew at midwestcoastmedia.com) Date: Tue, 11 Dec 2018 13:01:12 +0000 Subject: remove empty lines in DG In-Reply-To: Message-ID: <20181211130112.Horde.PosKCFVQznIBzXBn74qfum1@ua850258.serversignin.com> > From: Bob Sneidar > To: How to use LiveCode > Subject: Re: remove empty lines in DG > > > Fortunately for you, I have a cursorToArray function already written:-) > YOU wrote that? Thank you thank you thank you! When I discovered that script it completely changed my workflow by allowing me the ability to create more robust dataGrids since I could change the database schema around without messing up all my tabs! --Andrew Bell From brahma at hindu.org Tue Dec 11 10:31:40 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 11 Dec 2018 15:31:40 +0000 Subject: Datagrid Refresh In-Reply-To: References: <4B8E8109-C0F6-476E-9F18-B9FE0D8A6C15@hindu.org> Message-ID: <1004E118-8D2A-40DB-9BF8-9C95632E4F61@hindu.org> Tom... did you mean "set its dgprop"? I think I figured it out.. First I needed to follow procedure: --In project inspector for the datagrip --Pick Row Template --Make sure not to have "SelectGroupedControls" on --Set the Row Template group -- Choose Edit. Now the interesting part.. the "background" is "special object" You can set it color and gradient... you will see them Row Template card. Click stop editing group, save the card Quit the row template card and refresh in the PI of the map. I think it did refresh, because you don't see the color and gradient of the background What happens is if the background of opaque, the row color as sent on datagrid inspector shows through! It does not matter what the color or gradient of the "background" graphic.... what matters is that is either opaque or not. If does show round corners if want you those and you set it opaque. So if you do want a real "backdrop" you have the make an graphic rectangle, set its layer to 2 (just above Background) and if you give a color/gradient, stop editing the group, save the care and refresh it works. So it seems that the background serves as a mask with transparency or no transparency And this give you the ability to add visual space between the rows (to the users, in reality the background of ever row touches the next one).. Anyway, that as far I got with datagrid the mysteries as of today. BR ?On 12/10/18, 7:23 PM, "Tom Glod via use-livecode" wrote: the best way to refresh your grid is to "set its dgdata" property to the array you want. i've used the grid extensively and over the years have gone through all sorts of anomalies. Hitting refresh on inspector seems like it should work..... but with v9 and other possible issues...i wouldn't trust it ........, setting the dgdata is the only way to reset. if it still doesn't work then there is something wrong with the code on your templates. From bobsneidar at iotecdigital.com Tue Dec 11 10:31:40 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 11 Dec 2018 15:31:40 +0000 Subject: remove empty lines in DG In-Reply-To: <20181211130112.Horde.PosKCFVQznIBzXBn74qfum1@ua850258.serversignin.com> References: <20181211130112.Horde.PosKCFVQznIBzXBn74qfum1@ua850258.serversignin.com> Message-ID: <1FB3EFAB-6948-4F61-804C-9F60BB51B47E@iotecdigital.com> If you think that is awesome, have a look at sqlYoga, or any of the database APIs by other devs in this group. Bob S > On Dec 11, 2018, at 05:01 , Andrew Bell via use-livecode wrote: > >> From: Bob Sneidar >> To: How to use LiveCode >> Subject: Re: remove empty lines in DG >> >> >> Fortunately for you, I have a cursorToArray function already written:-) >> > > YOU wrote that? Thank you thank you thank you! When I discovered that script it completely changed my workflow by allowing me the ability to create more robust dataGrids since I could change the database schema around without messing up all my tabs! > > --Andrew Bell From bobsneidar at iotecdigital.com Tue Dec 11 11:03:39 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 11 Dec 2018 16:03:39 +0000 Subject: Drag/Drop unresponsive bug fixed! Message-ID: <3E9473A0-001B-4EF0-83E4-43137739BD54@iotecdigital.com> Hi all. I just wanted to confirm that the drag and drop unresponsive window bug is fixed. That is huge for me because I populate the data in my app by dragging and dropping data from a searchable PDF I get every morning. It's one of the features I want to showcase when I present the app to the company, but it wouldn't do to have the app go unresponsive in the middle of a demo! Thanks all on the dev team for your hard work on this and other issues. Bob S From jjs at krutt.org Tue Dec 11 13:20:07 2018 From: jjs at krutt.org (JJS) Date: Tue, 11 Dec 2018 19:20:07 +0100 Subject: remove empty lines in DG In-Reply-To: <859DD8A9-EC7C-447B-9BA4-B1733C42043F@iotecdigital.com> References: <37e91af7-b875-9e5f-8b84-589c2859d80d@krutt.org> <8079153D-7ADF-4964-A84F-08D4AD0FB203@iotecdigital.com> <839bf63e-651d-b1a7-946a-d77bc9e5a699@krutt.org> <8b586bc1-cb75-cad2-ee8d-880d4aed86f8@krutt.org> <859DD8A9-EC7C-447B-9BA4-B1733C42043F@iotecdigital.com> Message-ID: Thanks Bob, will come in handy when needed. I use PHP as middleware, as others have to use it too and need access to the DB. If i would use RevDB then they would not be granted access. And the webspace provider is not allowing LC server on it's shared hosting. So the data is coming in as delimited data, encrypted that is. For now this works, as at the moment i can't figure out which lines in the DB are causing this as these lines do not seem to have an id, and i do not see an id with empty data in the db: *repeat*foreachlinetLine invarResults *if* item1oftLine isempty*then* *delete*linetLine ofvarResults *next* *repeat* *end* *if* So for me it is still a bit strange where its coming from. * * Op 10-12-2018 om 23:01 schreef Bob Sneidar via use-livecode: > You would be better off gettign the data as a cursor then looping through the cursor data to produce a dg compatible array, then setting the dgData. dgText is ok if all you have to work with is delimited text data, but if you can get an array, then you should use dgData. > > Fortunately for you, I have a cursorToArray function already written:-) > > function cursorToArray pCursorID > put revDatabaseColumnCount(pCursorID) into tColumnCount > put revDatabaseColumnNames(pCursorID) into tColumnNames > > repeat forever > add 1 to tRecordCount > repeat with i = 1 to tColumnCount > put revDatabaseColumnNumbered(pCursorID, i) into aCursorArray [tRecordCount] [item i of tColumnNames] > end repeat > > revMoveToNextRecord pCursorID > if not the result then exit repeat > end repeat > > return aCursorArray > end cursorToArray > > > >> On Dec 10, 2018, at 09:11 , JJS via use-livecode wrote: >> >> I could delete the empty lines by dispatching delete to the DG. >> >> But this was not a solution to the cause. >> >> Now it seems it happens when fetching from the DB. Now as everything is encrypted, i can't see which line in the DB is empty. >> >> So have to check if i can find the exact lines causing it, which is really strange. Because when they finally arrive in the DG they have no no corresponding to the db. >> >> So it looks like it is no fault somewhere in LC. >> >> At least i can find empty line in the fetched results and delete them, causing the data nicely to appear at the top in the DG. >> >> Thanks! >> >> Jerry > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Tue Dec 11 13:55:54 2018 From: paul at researchware.com (Paul Dupuis) Date: Tue, 11 Dec 2018 13:55:54 -0500 Subject: Seeking OSX Code signing consultant... In-Reply-To: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> Message-ID: On 12/10/2018 3:32 PM, Paul Dupuis via use-livecode wrote: > I have a Macbook Pro with El Capitn (10.11) and XCode 8.2.1. I also > have AppWrapper 3 by Ohanaware. > > I need help setting up to be able to code sign OSX applications for > distribution from our web site (NOT via the MacOS App Store). I am > willing to pay some one who knows how to do this for their time on an > online meeting? to walk me through: > > 1) Generating the correct certificates under our Apple Developer > Account (we have now generated so many we're not sure what is what) > > 2) Getting the correct Certificate(s) into our KeyChain on the MacBook > Pro > > 3) Either successful code signing via the Terminal and codesign > command line tool OR successful code signing via AppWrapper. > > In our latest attempt at command line code signing we got the error: > > /Users/paul/Desktop/MacOSX/HyperRESEARCH.app: code object is not > signed at all > In subcomponent: > /Users/Paul/Desktop/MacOSX/HyperRESEARCH.app/Contents/Frameworks/Chromium > Embedded Framework.framework > > In older Xcode, you could use the option -deep to recursively sign all > code objects in a .app bundle, but that does not appear to work with > the Xcode 8.2.1 version of codesign. > > Email me off list if you know how to setup code signing on El Capitan > and Xcode 8.2.1 with a hourly price. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ANY takers? $$$ for a little assistance for someone who's done this? From brahma at hindu.org Tue Dec 11 14:38:59 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 11 Dec 2018 19:38:59 +0000 Subject: Vote for : Screen Edges Deferred is iOS Message-ID: See this hibernated iOS enhancement request. https://quality.livecode.com/show_bug.cgi?id=21737 I have an "immersive" module in my app, I need to have following implemented. Maybe you would like to vote for it too? All my iOS user complains "Oh, gee, in the puzzle, can how can I keep the notifications from dropping down?" Well, there is a way if you are developing directly in xCode, but not from within LiveCode. Https://developer.apple.com/documentation/uikit/uiviewcontroller/2887512-preferredscreenedgesdeferringsys Declaration var preferredScreenEdgesDeferringSystemGestures: UIRectEdge { get } Discussion Normally, the screen-edge gestures defined by the system take precedence over any gesture recognizers that you define. The system uses its gestures to implement system level behaviors, such as to display Control Center. Whenever possible, you should allow the system gestures to take precedence. However, immersive apps can use this property to allow app-defined gestures to take precedence over the system gestures. You do that by overriding this property and returning the screen edges for which your gestures should take precedence. If you change the edges preferred by your view controller, update the value of this property and call the setNeedsUpdateOfScreenEdgesDeferringSystemGestures() method to notify the system that the edges have changed. BR From jjs at krutt.org Tue Dec 11 13:53:57 2018 From: jjs at krutt.org (JJS) Date: Tue, 11 Dec 2018 19:53:57 +0100 Subject: Seeking OSX Code signing consultant... In-Reply-To: References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> Message-ID: <0b2dcf75-d82d-195a-2462-3111fbe51c7d@krutt.org> Did you do these lessons on lessons.livecode.com ? http://lessons.livecode.com/m/4069/l/308242-how-do-i-create-a-development-profile-for-ios http://lessons.livecode.com/m/4069/l/1009412-how-to-create-a-free-ios-development-provisioning-profile http://lessons.livecode.com/m/4071/l/876834-signing-and-uploading-apps-to-the-mac-app-store http://lessons.livecode.com/m/2571/l/23275-how-do-i-become-an-ios-developer in a nutshell for iOs: - create an account at the apple dev portal https://idmsa.apple.com either payed or unpayed - then open Xcode, create a new project , choose game (if i'm correct out of my head, i'm on windows now, have to reboot to check) but do as told in the lesson - then at the creation you need to add the com.mycompany.myappname and enter the credentials of your apple dev portal login - now a Provisioning Profile is created by Xcode (for unpaid dev's this is valid for 6 days) -save the project in xcode - then in Livecode in your app standalone settings you? need to choose the correct Provisioning Profile > > ANY takers? > > $$$ for a little assistance for someone who's done this? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Tue Dec 11 15:11:17 2018 From: brian at milby7.com (Brian Milby) Date: Tue, 11 Dec 2018 14:11:17 -0600 Subject: Vote for : Screen Edges Deferred is iOS In-Reply-To: References: Message-ID: <13579c2d-2a08-4592-918a-cf04111fa88e@Spark> Subscribed. ?Wonder if an LCB library could handle this? Thanks, Brian On Dec 11, 2018, 1:39 PM -0600, Sannyasin Brahmanathaswami via use-livecode , wrote: > See this hibernated iOS enhancement request. > > https://quality.livecode.com/show_bug.cgi?id=21737 > > I have an "immersive" module in my app, I need to have following implemented. Maybe you would like to vote for it too? All my iOS user complains "Oh, gee, in the puzzle, can how can I keep the notifications from dropping down?" > > Well, there is a way if you are developing directly in xCode, but not from within LiveCode. > Https://developer.apple.com/documentation/uikit/uiviewcontroller/2887512-preferredscreenedgesdeferringsys > Declaration > > var preferredScreenEdgesDeferringSystemGestures: UIRectEdge { get } > Discussion > Normally, the screen-edge gestures defined by the system take precedence over any gesture recognizers that you define. The system uses its gestures to implement system level behaviors, such as to display Control Center. > Whenever possible, you should allow the system gestures to take precedence. However, immersive apps can use this property to allow app-defined gestures to take precedence over the system gestures. You do that by overriding this property and returning the screen edges for which your gestures should take precedence. > If you change the edges preferred by your view controller, update the value of this property and call the setNeedsUpdateOfScreenEdgesDeferringSystemGestures() method to notify the system that the edges have changed. > > BR > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Tue Dec 11 16:18:51 2018 From: paul at researchware.com (Paul Dupuis) Date: Tue, 11 Dec 2018 16:18:51 -0500 Subject: Seeking OSX Code signing consultant... In-Reply-To: <0b2dcf75-d82d-195a-2462-3111fbe51c7d@krutt.org> References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> <0b2dcf75-d82d-195a-2462-3111fbe51c7d@krutt.org> Message-ID: I do appreciate the tips. However, the reason we want to PAY someone who knows this is to avoid the learning time. Also, we do not develop for iOS nor do we deploy to the Mac App store, so hopefully none of the lessons pertaining to those apply to us. As stated in my initial email, we develop in LC under Windows. We build standalones for OSX and Window. We want to PAY someone to help us set up code signing under El Capitan (10.11.x) and XCode 8.2.1. I can't imagine that for someone who knows what they are doing it would take more than a couple hours on an online meeting (screen sharing ) with us. I am astonished there are no takers among the LC community. How about LiveCode Professional Services? On 12/11/2018 1:53 PM, JJS via use-livecode wrote: > Did you do these lessons on lessons.livecode.com ? > > http://lessons.livecode.com/m/4069/l/308242-how-do-i-create-a-development-profile-for-ios > > > http://lessons.livecode.com/m/4069/l/1009412-how-to-create-a-free-ios-development-provisioning-profile > > > http://lessons.livecode.com/m/4071/l/876834-signing-and-uploading-apps-to-the-mac-app-store > > > http://lessons.livecode.com/m/2571/l/23275-how-do-i-become-an-ios-developer > > > > > in a nutshell for iOs: > > - create an account at the apple dev portal https://idmsa.apple.com > either payed or unpayed > > - then open Xcode, create a new project , choose game (if i'm correct > out of my head, i'm on windows now, have to reboot to check) but do as > told in the lesson > > - then at the creation you need to add the com.mycompany.myappname and > enter the credentials of your apple dev portal login > > - now a Provisioning Profile is created by Xcode (for unpaid dev's > this is valid for 6 days) > > -save the project in xcode > > - then in Livecode in your app standalone settings you? need to choose > the correct Provisioning Profile > >> >> ANY takers? >> >> $$$ for a little assistance for someone who's done this? >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jjs at krutt.org Tue Dec 11 16:46:11 2018 From: jjs at krutt.org (JJS) Date: Tue, 11 Dec 2018 22:46:11 +0100 Subject: Seeking OSX Code signing consultant... In-Reply-To: References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> <0b2dcf75-d82d-195a-2462-3111fbe51c7d@krutt.org> Message-ID: <7cb57393-a8b3-94e3-57ba-1c7da65e64bf@krutt.org> Is it then needed to code sign it? (i'm not really sure but) Did you already try to run a macos standalone on a mac? And you mean the signature where ???? is set? I f i'm correct you can just run the standalone on mac. I also develop on windows, but i think i jump to macos for the android and ios, because always the locs and sizes are shifted when first created on windows. And the i only have to do it once. i have created a standalone for win, linux and macos. will test tomorrow and see how it reacts on mojave Op 11-12-2018 om 22:18 schreef Paul Dupuis via use-livecode: > I do appreciate the tips. > > However, the reason we want to PAY someone who knows this is to avoid > the learning time. Also, we do not develop for iOS nor do we deploy to > the Mac App store, so hopefully none of the lessons pertaining to > those apply to us. > > As stated in my initial email, we develop in LC under Windows. We > build standalones for OSX and Window. We want to PAY someone to help > us set up code signing under El Capitan (10.11.x) and XCode 8.2.1. I > can't imagine that for someone who knows what they are doing it would > take more than a couple hours on an online meeting (screen sharing ) > with us. > > I am astonished there are no takers among the LC community. How about > LiveCode Professional Services? > > > On 12/11/2018 1:53 PM, JJS via use-livecode wrote: >> Did you do these lessons on lessons.livecode.com ? >> >> http://lessons.livecode.com/m/4069/l/308242-how-do-i-create-a-development-profile-for-ios >> >> >> http://lessons.livecode.com/m/4069/l/1009412-how-to-create-a-free-ios-development-provisioning-profile >> >> >> http://lessons.livecode.com/m/4071/l/876834-signing-and-uploading-apps-to-the-mac-app-store >> >> >> http://lessons.livecode.com/m/2571/l/23275-how-do-i-become-an-ios-developer >> >> >> >> >> in a nutshell for iOs: >> >> - create an account at the apple dev portal https://idmsa.apple.com >> either payed or unpayed >> >> - then open Xcode, create a new project , choose game (if i'm correct >> out of my head, i'm on windows now, have to reboot to check) but do >> as told in the lesson >> >> - then at the creation you need to add the com.mycompany.myappname >> and enter the credentials of your apple dev portal login >> >> - now a Provisioning Profile is created by Xcode (for unpaid dev's >> this is valid for 6 days) >> >> -save the project in xcode >> >> - then in Livecode in your app standalone settings you? need to >> choose the correct Provisioning Profile >> >>> >>> ANY takers? >>> >>> $$$ for a little assistance for someone who's done this? >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jjs at krutt.org Tue Dec 11 15:51:46 2018 From: jjs at krutt.org (JJS) Date: Tue, 11 Dec 2018 21:51:46 +0100 Subject: Seeking OSX Code signing consultant... In-Reply-To: <7cb57393-a8b3-94e3-57ba-1c7da65e64bf@krutt.org> References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> <0b2dcf75-d82d-195a-2462-3111fbe51c7d@krutt.org> <7cb57393-a8b3-94e3-57ba-1c7da65e64bf@krutt.org> Message-ID: <940b5d8e-5e2f-20a3-bafd-24c7d02c8c7f@krutt.org> just made a quick test with the MacOsx standalone i just runs you don't need to code sign as far as i could see just try it, and if you don't have a MAC but have a fairly new PC then try to create a multiboot with hackintosh look on tonymacx86.com on how to do it Op 11-12-2018 om 22:46 schreef JJS via use-livecode: > Is it then needed to code sign it? (i'm not really sure but) > > Did you already try to run a macos standalone on a mac? > > And you mean the signature where ???? is set? > > I f i'm correct you can just run the standalone on mac. > > I also develop on windows, but i think i jump to macos for the android > and ios, because always the locs and sizes are shifted when first > created on windows. And the i only have to do it once. > > i have created a standalone for win, linux and macos. will test > tomorrow and see how it reacts on mojave > > > Op 11-12-2018 om 22:18 schreef Paul Dupuis via use-livecode: >> I do appreciate the tips. >> >> However, the reason we want to PAY someone who knows this is to avoid >> the learning time. Also, we do not develop for iOS nor do we deploy >> to the Mac App store, so hopefully none of the lessons pertaining to >> those apply to us. >> >> As stated in my initial email, we develop in LC under Windows. We >> build standalones for OSX and Window. We want to PAY someone to help >> us set up code signing under El Capitan (10.11.x) and XCode 8.2.1. I >> can't imagine that for someone who knows what they are doing it would >> take more than a couple hours on an online meeting (screen sharing ) >> with us. >> >> I am astonished there are no takers among the LC community. How about >> LiveCode Professional Services? >> >> >> On 12/11/2018 1:53 PM, JJS via use-livecode wrote: >>> Did you do these lessons on lessons.livecode.com ? >>> >>> http://lessons.livecode.com/m/4069/l/308242-how-do-i-create-a-development-profile-for-ios >>> >>> >>> http://lessons.livecode.com/m/4069/l/1009412-how-to-create-a-free-ios-development-provisioning-profile >>> >>> >>> http://lessons.livecode.com/m/4071/l/876834-signing-and-uploading-apps-to-the-mac-app-store >>> >>> >>> http://lessons.livecode.com/m/2571/l/23275-how-do-i-become-an-ios-developer >>> >>> >>> >>> >>> in a nutshell for iOs: >>> >>> - create an account at the apple dev portal https://idmsa.apple.com >>> either payed or unpayed >>> >>> - then open Xcode, create a new project , choose game (if i'm >>> correct out of my head, i'm on windows now, have to reboot to check) >>> but do as told in the lesson >>> >>> - then at the creation you need to add the com.mycompany.myappname >>> and enter the credentials of your apple dev portal login >>> >>> - now a Provisioning Profile is created by Xcode (for unpaid dev's >>> this is valid for 6 days) >>> >>> -save the project in xcode >>> >>> - then in Livecode in your app standalone settings you? need to >>> choose the correct Provisioning Profile >>> >>>> >>>> ANY takers? >>>> >>>> $$$ for a little assistance for someone who's done this? >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From martyknappster at gmail.com Tue Dec 11 16:58:41 2018 From: martyknappster at gmail.com (Knapp Martin) Date: Tue, 11 Dec 2018 13:58:41 -0800 Subject: Seeking OSX Code signing consultant... In-Reply-To: <940b5d8e-5e2f-20a3-bafd-24c7d02c8c7f@krutt.org> References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> <0b2dcf75-d82d-195a-2462-3111fbe51c7d@krutt.org> <7cb57393-a8b3-94e3-57ba-1c7da65e64bf@krutt.org> <940b5d8e-5e2f-20a3-bafd-24c7d02c8c7f@krutt.org> Message-ID: Maybe you can run unsigned apps downloaded on older Mac OSs but you cannot do it on either High Sierra or Mojave. The app has to be either from the "App Store" or from "Identified developers? (code signed). You can run an app you build on your own computer but to distribute and download they need to be code signed. Marty > On Dec 11, 2018, at 12:51 PM, JJS via use-livecode wrote: > > just made a quick test with the MacOsx standalone > > i just runs > > you don't need to code sign as far as i could see > > > just try it, and if you don't have a MAC but have a fairly new PC then try to create a multiboot with hackintosh look on tonymacx86.com on how to do it > > > Op 11-12-2018 om 22:46 schreef JJS via use-livecode: >> Is it then needed to code sign it? (i'm not really sure but) >> >> Did you already try to run a macos standalone on a mac? >> >> And you mean the signature where ???? is set? >> >> I f i'm correct you can just run the standalone on mac. >> >> I also develop on windows, but i think i jump to macos for the android and ios, because always the locs and sizes are shifted when first created on windows. And the i only have to do it once. >> >> i have created a standalone for win, linux and macos. will test tomorrow and see how it reacts on mojave >> >> >> Op 11-12-2018 om 22:18 schreef Paul Dupuis via use-livecode: >>> I do appreciate the tips. >>> >>> However, the reason we want to PAY someone who knows this is to avoid the learning time. Also, we do not develop for iOS nor do we deploy to the Mac App store, so hopefully none of the lessons pertaining to those apply to us. >>> >>> As stated in my initial email, we develop in LC under Windows. We build standalones for OSX and Window. We want to PAY someone to help us set up code signing under El Capitan (10.11.x) and XCode 8.2.1. I can't imagine that for someone who knows what they are doing it would take more than a couple hours on an online meeting (screen sharing ) with us. >>> >>> I am astonished there are no takers among the LC community. How about LiveCode Professional Services? >>> >>> >>> On 12/11/2018 1:53 PM, JJS via use-livecode wrote: >>>> Did you do these lessons on lessons.livecode.com ? >>>> >>>> http://lessons.livecode.com/m/4069/l/308242-how-do-i-create-a-development-profile-for-ios >>>> >>>> http://lessons.livecode.com/m/4069/l/1009412-how-to-create-a-free-ios-development-provisioning-profile >>>> >>>> http://lessons.livecode.com/m/4071/l/876834-signing-and-uploading-apps-to-the-mac-app-store >>>> >>>> http://lessons.livecode.com/m/2571/l/23275-how-do-i-become-an-ios-developer >>>> >>>> >>>> >>>> in a nutshell for iOs: >>>> >>>> - create an account at the apple dev portal https://idmsa.apple.com either payed or unpayed >>>> >>>> - then open Xcode, create a new project , choose game (if i'm correct out of my head, i'm on windows now, have to reboot to check) but do as told in the lesson >>>> >>>> - then at the creation you need to add the com.mycompany.myappname and enter the credentials of your apple dev portal login >>>> >>>> - now a Provisioning Profile is created by Xcode (for unpaid dev's this is valid for 6 days) >>>> >>>> -save the project in xcode >>>> >>>> - then in Livecode in your app standalone settings you need to choose the correct Provisioning Profile >>>> >>>>> >>>>> ANY takers? >>>>> >>>>> $$$ for a little assistance for someone who's done this? >>>>> From bobsneidar at iotecdigital.com Tue Dec 11 17:08:12 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 11 Dec 2018 22:08:12 +0000 Subject: Seeking OSX Code signing consultant... In-Reply-To: References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> <0b2dcf75-d82d-195a-2462-3111fbe51c7d@krutt.org> <7cb57393-a8b3-94e3-57ba-1c7da65e64bf@krutt.org> <940b5d8e-5e2f-20a3-bafd-24c7d02c8c7f@krutt.org> Message-ID: Can't you do a one time approval for an unsigned app? Also, I think you can turn that feature off in Security & Privacy. > On Dec 11, 2018, at 13:58 , Knapp Martin via use-livecode wrote: > > Maybe you can run unsigned apps downloaded on older Mac OSs but you cannot do it on either High Sierra or Mojave. The app has to be either from the "App Store" or from "Identified developers? (code signed). You can run an app you build on your own computer but to distribute and download they need to be code signed. > > Marty From tore.nilsen at me.com Tue Dec 11 17:24:50 2018 From: tore.nilsen at me.com (Tore Nilsen) Date: Tue, 11 Dec 2018 23:24:50 +0100 Subject: Seeking OSX Code signing consultant... In-Reply-To: References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> <0b2dcf75-d82d-195a-2462-3111fbe51c7d@krutt.org> <7cb57393-a8b3-94e3-57ba-1c7da65e64bf@krutt.org> <940b5d8e-5e2f-20a3-bafd-24c7d02c8c7f@krutt.org> Message-ID: You can easily run an unsigned app on High Sierra or Mojave. But you can not start the application by double clicking it the first time you run it. You need to open it from a contextual menu (right click or ctrl click) and then choose ?Open? in the resulting dialog window. Afterwards you can use the unsigned application just as a signed application. I do this all the time with apps I give to my students Best regards Tore Nilsen > 11. des. 2018 kl. 22:58 skrev Knapp Martin via use-livecode : > > Maybe you can run unsigned apps downloaded on older Mac OSs but you cannot do it on either High Sierra or Mojave. The app has to be either from the "App Store" or from "Identified developers? (code signed). You can run an app you build on your own computer but to distribute and download they need to be code signed. > > Marty > >> On Dec 11, 2018, at 12:51 PM, JJS via use-livecode wrote: >> >> just made a quick test with the MacOsx standalone >> >> i just runs >> >> you don't need to code sign as far as i could see >> >> >> just try it, and if you don't have a MAC but have a fairly new PC then try to create a multiboot with hackintosh look on tonymacx86.com on how to do it >> >> >> Op 11-12-2018 om 22:46 schreef JJS via use-livecode: >>> Is it then needed to code sign it? (i'm not really sure but) >>> >>> Did you already try to run a macos standalone on a mac? >>> >>> And you mean the signature where ???? is set? >>> >>> I f i'm correct you can just run the standalone on mac. >>> >>> I also develop on windows, but i think i jump to macos for the android and ios, because always the locs and sizes are shifted when first created on windows. And the i only have to do it once. >>> >>> i have created a standalone for win, linux and macos. will test tomorrow and see how it reacts on mojave >>> >>> >>> Op 11-12-2018 om 22:18 schreef Paul Dupuis via use-livecode: >>>> I do appreciate the tips. >>>> >>>> However, the reason we want to PAY someone who knows this is to avoid the learning time. Also, we do not develop for iOS nor do we deploy to the Mac App store, so hopefully none of the lessons pertaining to those apply to us. >>>> >>>> As stated in my initial email, we develop in LC under Windows. We build standalones for OSX and Window. We want to PAY someone to help us set up code signing under El Capitan (10.11.x) and XCode 8.2.1. I can't imagine that for someone who knows what they are doing it would take more than a couple hours on an online meeting (screen sharing ) with us. >>>> >>>> I am astonished there are no takers among the LC community. How about LiveCode Professional Services? >>>> >>>> >>>> On 12/11/2018 1:53 PM, JJS via use-livecode wrote: >>>>> Did you do these lessons on lessons.livecode.com ? >>>>> >>>>> http://lessons.livecode.com/m/4069/l/308242-how-do-i-create-a-development-profile-for-ios >>>>> >>>>> http://lessons.livecode.com/m/4069/l/1009412-how-to-create-a-free-ios-development-provisioning-profile >>>>> >>>>> http://lessons.livecode.com/m/4071/l/876834-signing-and-uploading-apps-to-the-mac-app-store >>>>> >>>>> http://lessons.livecode.com/m/2571/l/23275-how-do-i-become-an-ios-developer >>>>> >>>>> >>>>> >>>>> in a nutshell for iOs: >>>>> >>>>> - create an account at the apple dev portal https://idmsa.apple.com either payed or unpayed >>>>> >>>>> - then open Xcode, create a new project , choose game (if i'm correct out of my head, i'm on windows now, have to reboot to check) but do as told in the lesson >>>>> >>>>> - then at the creation you need to add the com.mycompany.myappname and enter the credentials of your apple dev portal login >>>>> >>>>> - now a Provisioning Profile is created by Xcode (for unpaid dev's this is valid for 6 days) >>>>> >>>>> -save the project in xcode >>>>> >>>>> - then in Livecode in your app standalone settings you need to choose the correct Provisioning Profile >>>>> >>>>>> >>>>>> ANY takers? >>>>>> >>>>>> $$$ for a little assistance for someone who's done this? >>>>>> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From martyknappster at gmail.com Tue Dec 11 17:26:54 2018 From: martyknappster at gmail.com (Knapp Martin) Date: Tue, 11 Dec 2018 14:26:54 -0800 Subject: Seeking OSX Code signing consultant... In-Reply-To: References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> <0b2dcf75-d82d-195a-2462-3111fbe51c7d@krutt.org> <7cb57393-a8b3-94e3-57ba-1c7da65e64bf@krutt.org> <940b5d8e-5e2f-20a3-bafd-24c7d02c8c7f@krutt.org> Message-ID: <34E74DD1-B570-48BA-8B26-9EED3366B185@gmail.com> I think on Sierra and older there was a 3rd option in the security section to choose from ?Anywhere? but that is gone in High Sierra and Mojave. There is a trick to get around this, outlined here: https://www.macworld.co.uk/how-to/mac-software/mac-app-unidentified-developer-3669596/ But you can?t really seriously (in my opinion) distribute apps this way. Code signing is a hassle but it?s only going to get worse. > On Dec 11, 2018, at 2:08 PM, Bob Sneidar via use-livecode wrote: > > Can't you do a one time approval for an unsigned app? Also, I think you can turn that feature off in Security & Privacy. > >> On Dec 11, 2018, at 13:58 , Knapp Martin via use-livecode wrote: >> >> Maybe you can run unsigned apps downloaded on older Mac OSs but you cannot do it on either High Sierra or Mojave. The app has to be either from the "App Store" or from "Identified developers? (code signed). You can run an app you build on your own computer but to distribute and download they need to be code signed. >> >> Marty > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Dec 11 17:28:00 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 11 Dec 2018 22:28:00 +0000 Subject: Seeking OSX Code signing consultant... In-Reply-To: References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> <0b2dcf75-d82d-195a-2462-3111fbe51c7d@krutt.org> <7cb57393-a8b3-94e3-57ba-1c7da65e64bf@krutt.org> <940b5d8e-5e2f-20a3-bafd-24c7d02c8c7f@krutt.org> Message-ID: I think if you double click it and get the unsafe app dialog, you can open Security & Privacy, and there should be a button to approve the most recent "unsafe" app. Bob S > On Dec 11, 2018, at 14:24 , Tore Nilsen via use-livecode wrote: > > You can easily run an unsigned app on High Sierra or Mojave. But you can not start the application by double clicking it the first time you run it. You need to open it from a contextual menu (right click or ctrl click) and then choose ?Open? in the resulting dialog window. Afterwards you can use the unsigned application just as a signed application. > > I do this all the time with apps I give to my students > > > Best regards > Tore Nilsen From tore.nilsen at me.com Tue Dec 11 17:29:23 2018 From: tore.nilsen at me.com (Tore Nilsen) Date: Tue, 11 Dec 2018 23:29:23 +0100 Subject: Seeking OSX Code signing consultant... In-Reply-To: <34E74DD1-B570-48BA-8B26-9EED3366B185@gmail.com> References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> <0b2dcf75-d82d-195a-2462-3111fbe51c7d@krutt.org> <7cb57393-a8b3-94e3-57ba-1c7da65e64bf@krutt.org> <940b5d8e-5e2f-20a3-bafd-24c7d02c8c7f@krutt.org> <34E74DD1-B570-48BA-8B26-9EED3366B185@gmail.com> Message-ID: <35C90107-F91F-4FA9-B34E-6E00A8FE9FD7@me.com> You are right, there was this third option prior to High Sierra. I agree that if you distribute an application as a professional developer, you need to code sign it. Tore Nilsen > 11. des. 2018 kl. 23:26 skrev Knapp Martin via use-livecode : > > I think on Sierra and older there was a 3rd option in the security section to choose from ?Anywhere? but that is gone in High Sierra and Mojave. There is a trick to get around this, outlined here: > https://www.macworld.co.uk/how-to/mac-software/mac-app-unidentified-developer-3669596/ > > But you can?t really seriously (in my opinion) distribute apps this way. Code signing is a hassle but it?s only going to get worse. > >> On Dec 11, 2018, at 2:08 PM, Bob Sneidar via use-livecode wrote: >> >> Can't you do a one time approval for an unsigned app? Also, I think you can turn that feature off in Security & Privacy. >> >>> On Dec 11, 2018, at 13:58 , Knapp Martin via use-livecode wrote: >>> >>> Maybe you can run unsigned apps downloaded on older Mac OSs but you cannot do it on either High Sierra or Mojave. The app has to be either from the "App Store" or from "Identified developers? (code signed). You can run an app you build on your own computer but to distribute and download they need to be code signed. >>> >>> Marty >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Dec 11 17:30:16 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 11 Dec 2018 22:30:16 +0000 Subject: Seeking OSX Code signing consultant... In-Reply-To: <34E74DD1-B570-48BA-8B26-9EED3366B185@gmail.com> References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> <0b2dcf75-d82d-195a-2462-3111fbe51c7d@krutt.org> <7cb57393-a8b3-94e3-57ba-1c7da65e64bf@krutt.org> <940b5d8e-5e2f-20a3-bafd-24c7d02c8c7f@krutt.org> <34E74DD1-B570-48BA-8B26-9EED3366B185@gmail.com> Message-ID: <98B07B3A-33C7-4EDC-B78C-81DCBFE4D5AE@iotecdigital.com> Agreed, but for a local deployment, like the company I work for, I should never be forced to sign my apps. That would be onerous in my opinion. Bob S > On Dec 11, 2018, at 14:26 , Knapp Martin via use-livecode wrote: > > I think on Sierra and older there was a 3rd option in the security section to choose from ?Anywhere? but that is gone in High Sierra and Mojave. There is a trick to get around this, outlined here: > https://www.macworld.co.uk/how-to/mac-software/mac-app-unidentified-developer-3669596/ > > But you can?t really seriously (in my opinion) distribute apps this way. Code signing is a hassle but it?s only going to get worse. From tore.nilsen at me.com Tue Dec 11 17:33:07 2018 From: tore.nilsen at me.com (Tore Nilsen) Date: Tue, 11 Dec 2018 23:33:07 +0100 Subject: Seeking OSX Code signing consultant... In-Reply-To: References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> <0b2dcf75-d82d-195a-2462-3111fbe51c7d@krutt.org> <7cb57393-a8b3-94e3-57ba-1c7da65e64bf@krutt.org> <940b5d8e-5e2f-20a3-bafd-24c7d02c8c7f@krutt.org> Message-ID: > 11. des. 2018 kl. 23:28 skrev Bob Sneidar via use-livecode : > > I think if you double click it and get the unsafe app dialog, you can open Security & Privacy, and there should be a button to approve the most recent "unsafe" app. Not in High Sierra or Mojave. The only options are Only App Store or App Store and identified developers. Tore From martyknappster at gmail.com Tue Dec 11 17:39:20 2018 From: martyknappster at gmail.com (Knapp Martin) Date: Tue, 11 Dec 2018 14:39:20 -0800 Subject: Seeking OSX Code signing consultant... In-Reply-To: <98B07B3A-33C7-4EDC-B78C-81DCBFE4D5AE@iotecdigital.com> References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> <0b2dcf75-d82d-195a-2462-3111fbe51c7d@krutt.org> <7cb57393-a8b3-94e3-57ba-1c7da65e64bf@krutt.org> <940b5d8e-5e2f-20a3-bafd-24c7d02c8c7f@krutt.org> <34E74DD1-B570-48BA-8B26-9EED3366B185@gmail.com> <98B07B3A-33C7-4EDC-B78C-81DCBFE4D5AE@iotecdigital.com> Message-ID: <0C4EE396-1A59-4FE2-AECD-D2C2F4D2A768@gmail.com> I agree Bob. But there really does need to be a basis of trust or you?re asking for trouble. I did that once and very much regretted it - downloaded a demo installer for an app I was interested in. What I got was a trojan horse that attempted to divert my internet connection in an ploy to send me to a PayPal phishing site. Fortunately I caught it in time and learned my lesson. Certainly code signing isn?t fool proof but it could be easier! > On Dec 11, 2018, at 2:30 PM, Bob Sneidar via use-livecode wrote: > > Agreed, but for a local deployment, like the company I work for, I should never be forced to sign my apps. That would be onerous in my opinion. > > Bob S > > >> On Dec 11, 2018, at 14:26 , Knapp Martin via use-livecode wrote: >> >> I think on Sierra and older there was a 3rd option in the security section to choose from ?Anywhere? but that is gone in High Sierra and Mojave. There is a trick to get around this, outlined here: >> https://www.macworld.co.uk/how-to/mac-software/mac-app-unidentified-developer-3669596/ >> >> But you can?t really seriously (in my opinion) distribute apps this way. Code signing is a hassle but it?s only going to get worse. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Dec 11 17:40:51 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 11 Dec 2018 22:40:51 +0000 Subject: Seeking OSX Code signing consultant... In-Reply-To: References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> <0b2dcf75-d82d-195a-2462-3111fbe51c7d@krutt.org> <7cb57393-a8b3-94e3-57ba-1c7da65e64bf@krutt.org> <940b5d8e-5e2f-20a3-bafd-24c7d02c8c7f@krutt.org> Message-ID: <992806AA-72B4-4920-9115-B311C60C76B1@iotecdigital.com> I'm on High Sierra, and that is how it works for me. Bob S > On Dec 11, 2018, at 14:33 , Tore Nilsen via use-livecode wrote: > >> 11. des. 2018 kl. 23:28 skrev Bob Sneidar via use-livecode : >> >> I think if you double click it and get the unsafe app dialog, you can open Security & Privacy, and there should be a button to approve the most recent "unsafe" app. > > Not in High Sierra or Mojave. The only options are Only App Store or App Store and identified developers. > > Tore From tore.nilsen at me.com Tue Dec 11 17:43:45 2018 From: tore.nilsen at me.com (Tore Nilsen) Date: Tue, 11 Dec 2018 23:43:45 +0100 Subject: Seeking OSX Code signing consultant... In-Reply-To: <992806AA-72B4-4920-9115-B311C60C76B1@iotecdigital.com> References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> <0b2dcf75-d82d-195a-2462-3111fbe51c7d@krutt.org> <7cb57393-a8b3-94e3-57ba-1c7da65e64bf@krutt.org> <940b5d8e-5e2f-20a3-bafd-24c7d02c8c7f@krutt.org> <992806AA-72B4-4920-9115-B311C60C76B1@iotecdigital.com> Message-ID: <641FC7FE-F948-43A8-A993-92C48E2C4A73@me.com> > 11. des. 2018 kl. 23:40 skrev Bob Sneidar via use-livecode : > > I'm on High Sierra, and that is how it works for me. > > Bob S I am on Mojave now, so I may remember wrongly about High Sierra, but the contextual menu method works on both of them anyhow. Tore From sean at pidigital.co.uk Tue Dec 11 17:57:06 2018 From: sean at pidigital.co.uk (Pi Digital) Date: Tue, 11 Dec 2018 22:57:06 +0000 Subject: Seeking OSX Code signing consultant... In-Reply-To: References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> <0b2dcf75-d82d-195a-2462-3111fbe51c7d@krutt.org> Message-ID: <5D9BB9B5-5692-4DC0-91E0-17912708E451@pidigital.co.uk> Hi Paul I was unable to look properly at your email earlier as I was working on something else but noted the subject as something to follow up on. I?m sorry that no one else seemed to be of help. It is unusual as I was sure that someone would have offered. If you are still in need I have some free time tomorrow. I am UK based but work all sorts of times into the very early hours. We can do a Skype or join.me screen share to walk you through it all. From experience it takes a good couple of hours if it?s gotten really messy but we should be able to getting you running again. Let me know. My direct email is sean at pidigital dot co.uk Sean Cole Pi Digital Prod Ltd > On 11 Dec 2018, at 21:18, Paul Dupuis via use-livecode wrote: > > I do appreciate the tips. > > However, the reason we want to PAY someone who knows this is to avoid the learning time. Also, we do not develop for iOS nor do we deploy to the Mac App store, so hopefully none of the lessons pertaining to those apply to us. > > As stated in my initial email, we develop in LC under Windows. We build standalones for OSX and Window. We want to PAY someone to help us set up code signing under El Capitan (10.11.x) and XCode 8.2.1. I can't imagine that for someone who knows what they are doing it would take more than a couple hours on an online meeting (screen sharing ) with us. > > I am astonished there are no takers among the LC community. How about LiveCode Professional Services? > > >> On 12/11/2018 1:53 PM, JJS via use-livecode wrote: >> Did you do these lessons on lessons.livecode.com ? >> >> http://lessons.livecode.com/m/4069/l/308242-how-do-i-create-a-development-profile-for-ios >> >> http://lessons.livecode.com/m/4069/l/1009412-how-to-create-a-free-ios-development-provisioning-profile >> >> http://lessons.livecode.com/m/4071/l/876834-signing-and-uploading-apps-to-the-mac-app-store >> >> http://lessons.livecode.com/m/2571/l/23275-how-do-i-become-an-ios-developer >> >> >> >> in a nutshell for iOs: >> >> - create an account at the apple dev portal https://idmsa.apple.com either payed or unpayed >> >> - then open Xcode, create a new project , choose game (if i'm correct out of my head, i'm on windows now, have to reboot to check) but do as told in the lesson >> >> - then at the creation you need to add the com.mycompany.myappname and enter the credentials of your apple dev portal login >> >> - now a Provisioning Profile is created by Xcode (for unpaid dev's this is valid for 6 days) >> >> -save the project in xcode >> >> - then in Livecode in your app standalone settings you need to choose the correct Provisioning Profile >> >>> >>> ANY takers? >>> >>> $$$ for a little assistance for someone who's done this? >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Tue Dec 11 23:29:52 2018 From: tom at makeshyft.com (Tom Glod) Date: Tue, 11 Dec 2018 23:29:52 -0500 Subject: Seeking OSX Code signing consultant... In-Reply-To: <5D9BB9B5-5692-4DC0-91E0-17912708E451@pidigital.co.uk> References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> <0b2dcf75-d82d-195a-2462-3111fbe51c7d@krutt.org> <5D9BB9B5-5692-4DC0-91E0-17912708E451@pidigital.co.uk> Message-ID: I would love to know if you accomplished your goal and what the price tag ended up being, I'm interested in the same service...or at least be taught how to do it. Lots of tips in this thread as well, but I too would rather save the research in the learning curve in this respect esp for mac. Thanks, Tom On Tue, Dec 11, 2018 at 5:57 PM Pi Digital via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Paul > > I was unable to look properly at your email earlier as I was working on > something else but noted the subject as something to follow up on. I?m > sorry that no one else seemed to be of help. It is unusual as I was sure > that someone would have offered. > > If you are still in need I have some free time tomorrow. I am UK based but > work all sorts of times into the very early hours. We can do a Skype or > join.me screen share to walk you through it all. From experience it takes > a good couple of hours if it?s gotten really messy but we should be able to > getting you running again. > > Let me know. My direct email is sean at pidigital dot co.uk > > Sean Cole > Pi Digital Prod Ltd > > > On 11 Dec 2018, at 21:18, Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I do appreciate the tips. > > > > However, the reason we want to PAY someone who knows this is to avoid > the learning time. Also, we do not develop for iOS nor do we deploy to the > Mac App store, so hopefully none of the lessons pertaining to those apply > to us. > > > > As stated in my initial email, we develop in LC under Windows. We build > standalones for OSX and Window. We want to PAY someone to help us set up > code signing under El Capitan (10.11.x) and XCode 8.2.1. I can't imagine > that for someone who knows what they are doing it would take more than a > couple hours on an online meeting (screen sharing ) with us. > > > > I am astonished there are no takers among the LC community. How about > LiveCode Professional Services? > > > > > >> On 12/11/2018 1:53 PM, JJS via use-livecode wrote: > >> Did you do these lessons on lessons.livecode.com ? > >> > >> > http://lessons.livecode.com/m/4069/l/308242-how-do-i-create-a-development-profile-for-ios > >> > >> > http://lessons.livecode.com/m/4069/l/1009412-how-to-create-a-free-ios-development-provisioning-profile > >> > >> > http://lessons.livecode.com/m/4071/l/876834-signing-and-uploading-apps-to-the-mac-app-store > >> > >> > http://lessons.livecode.com/m/2571/l/23275-how-do-i-become-an-ios-developer > >> > >> > >> > >> in a nutshell for iOs: > >> > >> - create an account at the apple dev portal https://idmsa.apple.com > either payed or unpayed > >> > >> - then open Xcode, create a new project , choose game (if i'm correct > out of my head, i'm on windows now, have to reboot to check) but do as told > in the lesson > >> > >> - then at the creation you need to add the com.mycompany.myappname and > enter the credentials of your apple dev portal login > >> > >> - now a Provisioning Profile is created by Xcode (for unpaid dev's this > is valid for 6 days) > >> > >> -save the project in xcode > >> > >> - then in Livecode in your app standalone settings you need to choose > the correct Provisioning Profile > >> > >>> > >>> ANY takers? > >>> > >>> $$$ for a little assistance for someone who's done this? > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jjs at krutt.org Wed Dec 12 11:26:23 2018 From: jjs at krutt.org (JJS) Date: Wed, 12 Dec 2018 17:26:23 +0100 Subject: Seeking OSX Code signing consultant... In-Reply-To: References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> <0b2dcf75-d82d-195a-2462-3111fbe51c7d@krutt.org> <5D9BB9B5-5692-4DC0-91E0-17912708E451@pidigital.co.uk> Message-ID: <3512691a-78e3-87d7-788e-bac586e60dea@krutt.org> Google kows how to find some interesting topics about this too. BTW i'm on mojave and it run with double clicking it, so i assumed it was not really neccessary. But for the store you need it, same as for windows store you need to sign it too. Maybe this can help some people too: https://developer.apple.com/library/archive/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html some nice links in this topic: https://stackoverflow.com/questions/5341755/how-to-sign-mac-os-x-application and http://osxdaily.com/2016/03/14/verify-code-sign-apps-mac-os-x/ Op 12-12-2018 om 05:29 schreef Tom Glod via use-livecode: > I would love to know if you accomplished your goal and what the price tag > ended up being, I'm interested in the same service...or at least be taught > how to do it. > > Lots of tips in this thread as well, but I too would rather save the > research in the learning curve in this respect esp for mac. > > Thanks, > > Tom > > On Tue, Dec 11, 2018 at 5:57 PM Pi Digital via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Paul >> >> I was unable to look properly at your email earlier as I was working on >> something else but noted the subject as something to follow up on. I?m >> sorry that no one else seemed to be of help. It is unusual as I was sure >> that someone would have offered. >> >> If you are still in need I have some free time tomorrow. I am UK based but >> work all sorts of times into the very early hours. We can do a Skype or >> join.me screen share to walk you through it all. From experience it takes >> a good couple of hours if it?s gotten really messy but we should be able to >> getting you running again. >> >> Let me know. My direct email is sean at pidigital dot co.uk >> >> Sean Cole >> Pi Digital Prod Ltd >> >>> On 11 Dec 2018, at 21:18, Paul Dupuis via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> I do appreciate the tips. >>> >>> However, the reason we want to PAY someone who knows this is to avoid >> the learning time. Also, we do not develop for iOS nor do we deploy to the >> Mac App store, so hopefully none of the lessons pertaining to those apply >> to us. >>> As stated in my initial email, we develop in LC under Windows. We build >> standalones for OSX and Window. We want to PAY someone to help us set up >> code signing under El Capitan (10.11.x) and XCode 8.2.1. I can't imagine >> that for someone who knows what they are doing it would take more than a >> couple hours on an online meeting (screen sharing ) with us. >>> I am astonished there are no takers among the LC community. How about >> LiveCode Professional Services? >>> >>>> On 12/11/2018 1:53 PM, JJS via use-livecode wrote: >>>> Did you do these lessons on lessons.livecode.com ? >>>> >>>> >> http://lessons.livecode.com/m/4069/l/308242-how-do-i-create-a-development-profile-for-ios >>>> >> http://lessons.livecode.com/m/4069/l/1009412-how-to-create-a-free-ios-development-provisioning-profile >>>> >> http://lessons.livecode.com/m/4071/l/876834-signing-and-uploading-apps-to-the-mac-app-store >>>> >> http://lessons.livecode.com/m/2571/l/23275-how-do-i-become-an-ios-developer >>>> >>>> >>>> in a nutshell for iOs: >>>> >>>> - create an account at the apple dev portal https://idmsa.apple.com >> either payed or unpayed >>>> - then open Xcode, create a new project , choose game (if i'm correct >> out of my head, i'm on windows now, have to reboot to check) but do as told >> in the lesson >>>> - then at the creation you need to add the com.mycompany.myappname and >> enter the credentials of your apple dev portal login >>>> - now a Provisioning Profile is created by Xcode (for unpaid dev's this >> is valid for 6 days) >>>> -save the project in xcode >>>> >>>> - then in Livecode in your app standalone settings you need to choose >> the correct Provisioning Profile >>>>> ANY takers? >>>>> >>>>> $$$ for a little assistance for someone who's done this? >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From martyknappster at gmail.com Wed Dec 12 12:56:05 2018 From: martyknappster at gmail.com (Knapp Martin) Date: Wed, 12 Dec 2018 09:56:05 -0800 Subject: Seeking OSX Code signing consultant... In-Reply-To: <3512691a-78e3-87d7-788e-bac586e60dea@krutt.org> References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> <0b2dcf75-d82d-195a-2462-3111fbe51c7d@krutt.org> <5D9BB9B5-5692-4DC0-91E0-17912708E451@pidigital.co.uk> <3512691a-78e3-87d7-788e-bac586e60dea@krutt.org> Message-ID: <7D27E7E4-320C-4E0B-B7C0-7783F34B391A@gmail.com> In my experience, it?s easy to make a mess of your certificates from Apple. Then, if you?re like me, you finally get it set up but when you need to renew them a few years later you?ve forgotten what you did the last time to get it right (or is that just me?). I?d like to give a plug here for Trevor?s ?Levure? framework. It has the ability to code sign your Mac apps. You just need to give it your certificate name. I had used Trevor?s GLX framework for many years and was a little concerned about switching to Levure. While I did have to unlearn a few things (assumptions from my GLX experience) it was easier to make the switch than I though it would be. Now that I've been using it for a while I will say that it?s absolutely great. And Trevor is wonderful about answering question (in the forums). My favorite feature is the incorporation of the Sparkle framework to give your apps a very professional means of updating your apps. And while it?s configured to handle version control/script only stacks that is not necessary if, like me, you don?t need those features. Plus, there is no cost! A big thank you to Trevor. Marty > On Dec 12, 2018, at 8:26 AM, JJS via use-livecode wrote: > > Google kows how to find some interesting topics about this too. > > BTW i'm on mojave and it run with double clicking it, so i assumed it was not really neccessary. But for the store you need it, same as for windows store you need to sign it too. > > > Maybe this can help some people too: > > https://developer.apple.com/library/archive/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html > > some nice links in this topic: > > https://stackoverflow.com/questions/5341755/how-to-sign-mac-os-x-application > > and > > http://osxdaily.com/2016/03/14/verify-code-sign-apps-mac-os-x/ > > > Op 12-12-2018 om 05:29 schreef Tom Glod via use-livecode: >> I would love to know if you accomplished your goal and what the price tag >> ended up being, I'm interested in the same service...or at least be taught >> how to do it. >> >> Lots of tips in this thread as well, but I too would rather save the >> research in the learning curve in this respect esp for mac. >> >> Thanks, >> >> Tom >> >> On Tue, Dec 11, 2018 at 5:57 PM Pi Digital via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Hi Paul >>> >>> I was unable to look properly at your email earlier as I was working on >>> something else but noted the subject as something to follow up on. I?m >>> sorry that no one else seemed to be of help. It is unusual as I was sure >>> that someone would have offered. >>> >>> If you are still in need I have some free time tomorrow. I am UK based but >>> work all sorts of times into the very early hours. We can do a Skype or >>> join.me screen share to walk you through it all. From experience it takes >>> a good couple of hours if it?s gotten really messy but we should be able to >>> getting you running again. >>> >>> Let me know. My direct email is sean at pidigital dot co.uk >>> >>> Sean Cole >>> Pi Digital Prod Ltd >>> >>>> On 11 Dec 2018, at 21:18, Paul Dupuis via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>>> I do appreciate the tips. >>>> >>>> However, the reason we want to PAY someone who knows this is to avoid >>> the learning time. Also, we do not develop for iOS nor do we deploy to the >>> Mac App store, so hopefully none of the lessons pertaining to those apply >>> to us. >>>> As stated in my initial email, we develop in LC under Windows. We build >>> standalones for OSX and Window. We want to PAY someone to help us set up >>> code signing under El Capitan (10.11.x) and XCode 8.2.1. I can't imagine >>> that for someone who knows what they are doing it would take more than a >>> couple hours on an online meeting (screen sharing ) with us. >>>> I am astonished there are no takers among the LC community. How about >>> LiveCode Professional Services? >>>> >>>>> On 12/11/2018 1:53 PM, JJS via use-livecode wrote: >>>>> Did you do these lessons on lessons.livecode.com ? >>>>> >>>>> >>> http://lessons.livecode.com/m/4069/l/308242-how-do-i-create-a-development-profile-for-ios >>>>> >>> http://lessons.livecode.com/m/4069/l/1009412-how-to-create-a-free-ios-development-provisioning-profile >>>>> >>> http://lessons.livecode.com/m/4071/l/876834-signing-and-uploading-apps-to-the-mac-app-store >>>>> >>> http://lessons.livecode.com/m/2571/l/23275-how-do-i-become-an-ios-developer >>>>> >>>>> >>>>> in a nutshell for iOs: >>>>> >>>>> - create an account at the apple dev portal https://idmsa.apple.com >>> either payed or unpayed >>>>> - then open Xcode, create a new project , choose game (if i'm correct >>> out of my head, i'm on windows now, have to reboot to check) but do as told >>> in the lesson >>>>> - then at the creation you need to add the com.mycompany.myappname and >>> enter the credentials of your apple dev portal login >>>>> - now a Provisioning Profile is created by Xcode (for unpaid dev's this >>> is valid for 6 days) >>>>> -save the project in xcode >>>>> >>>>> - then in Livecode in your app standalone settings you need to choose >>> the correct Provisioning Profile >>>>>> ANY takers? >>>>>> >>>>>> $$$ for a little assistance for someone who's done this? >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Dec 12 13:14:49 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 12 Dec 2018 18:14:49 +0000 Subject: Seeking OSX Code signing consultant... In-Reply-To: <7D27E7E4-320C-4E0B-B7C0-7783F34B391A@gmail.com> References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> <0b2dcf75-d82d-195a-2462-3111fbe51c7d@krutt.org> <5D9BB9B5-5692-4DC0-91E0-17912708E451@pidigital.co.uk> <3512691a-78e3-87d7-788e-bac586e60dea@krutt.org> <7D27E7E4-320C-4E0B-B7C0-7783F34B391A@gmail.com> Message-ID: I really want to switch to Levure too, but my main project is quite complicated, and it will take a goodly amount of time. Plus, since I implemented chained behaviors for my datagrids, I'm not sure I can incorporate that into Levure. Bob S > On Dec 12, 2018, at 09:56 , Knapp Martin via use-livecode wrote: > > In my experience, it?s easy to make a mess of your certificates from Apple. Then, if you?re like me, you finally get it set up but when you need to renew them a few years later you?ve forgotten what you did the last time to get it right (or is that just me?). > > I?d like to give a plug here for Trevor?s ?Levure? framework. It has the ability to code sign your Mac apps. You just need to give it your certificate name. I had used Trevor?s GLX framework for many years and was a little concerned about switching to Levure. While I did have to unlearn a few things (assumptions from my GLX experience) it was easier to make the switch than I though it would be. Now that I've been using it for a while I will say that it?s absolutely great. And Trevor is wonderful about answering question (in the forums). My favorite feature is the incorporation of the Sparkle framework to give your apps a very professional means of updating your apps. And while it?s configured to handle version control/script only stacks that is not necessary if, like me, you don?t need those features. Plus, there is no cost! A big thank you to Trevor. > > Marty From paul at researchware.com Wed Dec 12 14:20:29 2018 From: paul at researchware.com (Paul Dupuis) Date: Wed, 12 Dec 2018 14:20:29 -0500 Subject: Seeking OSX Code signing consultant... In-Reply-To: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> Message-ID: Tips from LiceCode.com or from Google searches or Apple articles or on 3rd party web sites (like Trevor's) are great ... for the people who want to setup code signing themselves. For LiveCode to be really considered an effective development environment for building commercial application, a population of "experts" that can be hired needs to be cultivated. For a number of areas this exists. When we wanted a External built, we didn't have to learn C++. We found several people in the LiveCode community who had the skills and would build an External for us to our specs - that effort became the XPDF external (later acquired by LiveCode) for displaying and extracting PDF content. When we wanted to provide graphs in our applications, we didn't have to follow lots of LiveCode Script tutorials on how to draw bar charts by sizing various rectangle graphic objects, we purchase a graphics library that did this for us. And so on .... with quite a few example. However, Code Signing seems to be stuck at the "you have to learn to do it yourself" level. That is not entirely true, as I did have one response to my inquiry for a paid consultation. But still, only 1? That in and of itself says something about the LiveCode market place. Either there are not enough people willing to pay for 3rd party developer services for 3rd party developers to make a living at it OR the market of people wanting LC related developer expertise is larger than the available number of "experts". Also, if you are making a commercial application in LiveCode for Windows, OSX, and probably Linux too, you pretty much have to code sign the app or your sales will suffer (if you get any at all). For Android and iOS code signing is required. I've currently narrowed our problem (I think) to an issue with our Certificates from the Apple Developer site. I've now spent probably 10 hours on this (and its still not working) in what would probably take an experienced person less than a couple hours. Tomorrow, I will work with a consultant? and hopefully discover the obvious thing I should have been doing that I have not been doing. From lists at mangomultimedia.com Wed Dec 12 14:23:43 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed, 12 Dec 2018 13:23:43 -0600 Subject: Seeking OSX Code signing consultant... In-Reply-To: References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> <0b2dcf75-d82d-195a-2462-3111fbe51c7d@krutt.org> <5D9BB9B5-5692-4DC0-91E0-17912708E451@pidigital.co.uk> <3512691a-78e3-87d7-788e-bac586e60dea@krutt.org> <7D27E7E4-320C-4E0B-B7C0-7783F34B391A@gmail.com> Message-ID: Thanks for the kind words Marty! I?m glad it has been a worthwhile transition for you. The Sparkle and WinSparkle helpers are great examples of what the Foreign Function Interface in LCB makes available to LiveCode. And by using the ?helper? component in Levure a developer can combine complex LCB and LCS code into a single folder that other developers can just drop into their Levure projects. Bob - I would be surprised if anything you have working in your current project didn?t work in Levure. While Levure provides lots of great ways to organize your application logic, it doesn?t require that you do. -- Trevor DeVore ScreenSteps On Wed, Dec 12, 2018 at 12:15 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > I really want to switch to Levure too, but my main project is quite > complicated, and it will take a goodly amount of time. Plus, since I > implemented chained behaviors for my datagrids, I'm not sure I can > incorporate that into Levure. > > Bob S > > > > On Dec 12, 2018, at 09:56 , Knapp Martin via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > In my experience, it?s easy to make a mess of your certificates from > Apple. Then, if you?re like me, you finally get it set up but when you need > to renew them a few years later you?ve forgotten what you did the last time > to get it right (or is that just me?). > > > > I?d like to give a plug here for Trevor?s ?Levure? framework. It has the > ability to code sign your Mac apps. You just need to give it your > certificate name. I had used Trevor?s GLX framework for many years and was > a little concerned about switching to Levure. While I did have to unlearn a > few things (assumptions from my GLX experience) it was easier to make the > switch than I though it would be. Now that I've been using it for a while I > will say that it?s absolutely great. And Trevor is wonderful about > answering question (in the forums). My favorite feature is the > incorporation of the Sparkle framework to give your apps a very > professional means of updating your apps. And while it?s configured to > handle version control/script only stacks that is not necessary if, like > me, you don?t need those features. Plus, there is no cost! A big thank you > to Trevor. > > > > Marty > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Thu Dec 13 01:33:29 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 12 Dec 2018 22:33:29 -0800 Subject: dgDragImageIndex in v9? Message-ID: The following relates to Windows only; things are working well on macOS. I have this code in a DataGrid in an older project: on dragstart if the dgDataControl of the target <> "" then put the dgIndex of the dgDataControl of the target into theIndex set the dgDragImageIndex of me to theIndex set the dragData["private"] to "FieldGrid" & cr & theIndex end if end dragstart In earlier versions the dragImage looks great. In v9 no dragImage shows at all. I do get the drag cursor, but no image of the record line. What has changed with the DG to account for this, and how do I restore the former excellent dragImage? -- 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 Thu Dec 13 16:19:55 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 13 Dec 2018 15:19:55 -0600 Subject: Seeking OSX Code signing consultant... In-Reply-To: References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> Message-ID: <0c06e006-d885-0dfb-8217-199461435e44@hyperactivesw.com> On 12/12/18 1:20 PM, Paul Dupuis via use-livecode wrote: > Either there are not enough people willing to pay for 3rd party > developer services for 3rd party developers to make a living at it OR > the market of people wanting LC related developer expertise is larger > than the available number of "experts". > > Also, if you are making a commercial application in LiveCode for > Windows, OSX, and probably Linux too, you pretty much have to code sign > the app or your sales will suffer (if you get any at all). For Android > and iOS code signing is required. I don't know about others, but I haven't built an iOS app for some years now. I did learn how to do it a long time ago, but a lot has changed since then so I'm no longer qualified to call myself an expert. The reason I haven't built for iOS lately is because of Apple's many restrictions which disqualify my clients' apps, so we release for Android instead where there is more flexibility to make apps that do what we need. (One example: Apple's unfathomable restriction on reading an NFC tag ID. We'd have an iOS app if it weren't for that.) Codesigning for Android is dead simple, and once you've created a signing key on your own hard drive you can continue to use it indefinitely. There are one-click tools for codesigning on Windows and OS X, which helps, but even OS X requires the certificate juggling game, and Windows requires a lengthy process (and some cost) to get developer verification. But in any case, if the problem is with your certificates, there's not much anyone else can do; as the developer you need to know how to create and manage those yourself, or allow someone else to access your account and do it. While it isn't strictly LC-related, a lesson on how to deal with Apple certificates wouldn't hurt. Apple is the only company that requires those. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Thu Dec 13 16:42:00 2018 From: paul at researchware.com (Paul Dupuis) Date: Thu, 13 Dec 2018 16:42:00 -0500 Subject: Seeking OSX Code signing consultant... [ANSWER] In-Reply-To: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> Message-ID: For anyone interested, my OSX Code Signing nightmare has been resolved. Only one person contacted me with an offer of consulting on an online meeting, Sean Cole of Pi Digital Products Ltd. A huge thank you to Sean. Our online meeting lasted 15 minutes. As I expected, in a few minutes he noticed that I was missing an Intermediate Certificate. Once that have been downloaded and installed in my Keychain, I could regenerate and reinstall my app and installer signing certificates from the Apple Developer site and XCode and was able to sign OSX apps again in about another hour of refreshing things after our online meeting was done. Should I have probably been able to discover the missing Intermediate Certificate on my own. Well sure, eventually. However, that is the difference between someone who sets up code signing perhaps every 4 years (or more as I noticed by regenerated certificates don't expire until 2023)! It probably would have taken me another couple of DAYS to solve on my own, or I might have figured it out in another few hours. However, some one who has the technical details of code signing fresh on their mind was able to help in minutes. Due to the quickness of the resolution Sean was kind enough to offer this aid gratis, but you can bet that the next time Researchware has need of for pay supplemental development assistance, we'll be talking to him again. Paul Dupuis Researchare From bogdanoff at me.com Thu Dec 13 17:03:46 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Thu, 13 Dec 2018 14:03:46 -0800 Subject: Seeking OSX Code signing consultant... In-Reply-To: <0c06e006-d885-0dfb-8217-199461435e44@hyperactivesw.com> References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> <0c06e006-d885-0dfb-8217-199461435e44@hyperactivesw.com> Message-ID: I, myself am right now trying to figure out Apple?s system so I can publish my (not-mobile, not-App Store) program which is distributed from my website, and not have the user see dire warnings. I?m in the Dev program, have the certificate, but am still having the issue. So I am very interested in being educated about this whole world. Peter Bogdanoff ArtsInteractiveInc.com > On Dec 13, 2018, at 1:19 PM, J. Landman Gay via use-livecode wrote: > > On 12/12/18 1:20 PM, Paul Dupuis via use-livecode wrote: >> Either there are not enough people willing to pay for 3rd party developer services for 3rd party developers to make a living at it OR the market of people wanting LC related developer expertise is larger than the available number of "experts". >> Also, if you are making a commercial application in LiveCode for Windows, OSX, and probably Linux too, you pretty much have to code sign the app or your sales will suffer (if you get any at all). For Android and iOS code signing is required. > > I don't know about others, but I haven't built an iOS app for some years now. I did learn how to do it a long time ago, but a lot has changed since then so I'm no longer qualified to call myself an expert. The reason I haven't built for iOS lately is because of Apple's many restrictions which disqualify my clients' apps, so we release for Android instead where there is more flexibility to make apps that do what we need. (One example: Apple's unfathomable restriction on reading an NFC tag ID. We'd have an iOS app if it weren't for that.) > > Codesigning for Android is dead simple, and once you've created a signing key on your own hard drive you can continue to use it indefinitely. There are one-click tools for codesigning on Windows and OS X, which helps, but even OS X requires the certificate juggling game, and Windows requires a lengthy process (and some cost) to get developer verification. But in any case, if the problem is with your certificates, there's not much anyone else can do; as the developer you need to know how to create and manage those yourself, or allow someone else to access your account and do it. > > While it isn't strictly LC-related, a lesson on how to deal with Apple certificates wouldn't hurt. Apple is the only company that requires those. > > -- > 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 sundown at pacifier.com Thu Dec 13 21:55:30 2018 From: sundown at pacifier.com (JB) Date: Thu, 13 Dec 2018 18:55:30 -0800 Subject: Seeking OSX Code signing consultant... [ANSWER] In-Reply-To: References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> Message-ID: That is good! So, what is the process of selling with Apple? 1. Pay for a developers license 2. Create standalone 3. Get a certificate 4. Strip out all of the 32-bit files 5. Code sign the app with terminal or another app 6. Place app on the app store or wherever JB > On Dec 13, 2018, at 1:42 PM, Paul Dupuis via use-livecode wrote: > > For anyone interested, my OSX Code Signing nightmare has been resolved. > > Only one person contacted me with an offer of consulting on an online meeting, Sean Cole of Pi Digital Products Ltd. > > A huge thank you to Sean. Our online meeting lasted 15 minutes. As I expected, in a few minutes he noticed that I was missing an Intermediate Certificate. Once that have been downloaded and installed in my Keychain, I could regenerate and reinstall my app and installer signing certificates from the Apple Developer site and XCode and was able to sign OSX apps again in about another hour of refreshing things after our online meeting was done. > > Should I have probably been able to discover the missing Intermediate Certificate on my own. Well sure, eventually. However, that is the difference between someone who sets up code signing perhaps every 4 years (or more as I noticed by regenerated certificates don't expire until 2023)! It probably would have taken me another couple of DAYS to solve on my own, or I might have figured it out in another few hours. However, some one who has the technical details of code signing fresh on their mind was able to help in minutes. > > Due to the quickness of the resolution Sean was kind enough to offer this aid gratis, but you can bet that the next time Researchware has need of for pay supplemental development assistance, we'll be talking to him again. > > Paul Dupuis > > Researchare > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alanstenhouse at hotmail.com Fri Dec 14 07:14:02 2018 From: alanstenhouse at hotmail.com (Alan) Date: Fri, 14 Dec 2018 12:14:02 +0000 Subject: preOpenCard not running on iPhoneX simulator Message-ID: I'm having a strange issue with a mobile app - on the 11.2 simulator a preOpenCard handler doesn't seem to run on the iPhoneX simulator but does with other devices. What might be stopping this handler from running on the X simulator but not on others? Any ideas? Strangely, when I make a barebones test stack with only a preOpenCard handler, it runs ok on the X simulator. So that points to something in my original stack... but what can stop the preOpenCard message from being sent?? cheers Alan From kaveh at rivervalleytechnologies.com Fri Dec 14 09:28:02 2018 From: kaveh at rivervalleytechnologies.com (Kaveh Bazargan) Date: Fri, 14 Dec 2018 14:28:02 +0000 Subject: get offset of current selection Message-ID: I am stuck on something that should be simple. User has selected a text, say a word in a field. How do I get the offset of the start and end of selection? (Not any matching text, but the particular chars selected.) I know I am going to be embarrassed at the reply. :-\ -- Kaveh Bazargan Director River Valley Technologies ? Twitter ? LinkedIn From tore.nilsen at me.com Fri Dec 14 09:29:57 2018 From: tore.nilsen at me.com (Tore Nilsen) Date: Fri, 14 Dec 2018 15:29:57 +0100 Subject: get offset of current selection In-Reply-To: References: Message-ID: <9A4BFEEF-0BF7-4AEB-94A0-E82470A2F7B3@me.com> The selectedChunk is probably what you are looking for. Regards Tore Nilsen > 14. des. 2018 kl. 15:28 skrev Kaveh Bazargan via use-livecode : > > I am stuck on something that should be simple. User has selected a text, > say a word in a field. How do I get the offset of the start and end of > selection? (Not any matching text, but the particular chars selected.) > > I know I am going to be embarrassed at the reply. :-\ > > -- > Kaveh Bazargan > Director > River Valley Technologies ? Twitter > ? LinkedIn > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Fri Dec 14 09:36:02 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 14 Dec 2018 09:36:02 -0500 Subject: Seeking OSX Code signing consultant... In-Reply-To: <0c06e006-d885-0dfb-8217-199461435e44@hyperactivesw.com> References: <78b76e6b-9dab-beec-fba7-39b1cf54737c@researchware.com> <0c06e006-d885-0dfb-8217-199461435e44@hyperactivesw.com> Message-ID: <001601d493ba$59332070$0b996150$@net> The only downside of Android signing is if you lose your local signing file(keystore) or forget any of the passwords(keystore master or app) you can never update the app again on the PlayStore. I have the iOS thingy under control. I run multiple Xcodes. If anyone needs any help just ask me. I can get you though setup and the signing process but can only make suggestions getting you though the Apple approval gauntlet. When deploying to external testers I suggest JLM's AirLaunch plug-in. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of J. Landman Gay via use-livecode Sent: Thursday, December 13, 2018 4:20 PM To: How to use LiveCode Cc: J. Landman Gay Subject: Re: Seeking OSX Code signing consultant... On 12/12/18 1:20 PM, Paul Dupuis via use-livecode wrote: > Either there are not enough people willing to pay for 3rd party > developer services for 3rd party developers to make a living at it OR > the market of people wanting LC related developer expertise is larger > than the available number of "experts". > > Also, if you are making a commercial application in LiveCode for > Windows, OSX, and probably Linux too, you pretty much have to code > sign the app or your sales will suffer (if you get any at all). For > Android and iOS code signing is required. I don't know about others, but I haven't built an iOS app for some years now. I did learn how to do it a long time ago, but a lot has changed since then so I'm no longer qualified to call myself an expert. The reason I haven't built for iOS lately is because of Apple's many restrictions which disqualify my clients' apps, so we release for Android instead where there is more flexibility to make apps that do what we need. (One example: Apple's unfathomable restriction on reading an NFC tag ID. We'd have an iOS app if it weren't for that.) Codesigning for Android is dead simple, and once you've created a signing key on your own hard drive you can continue to use it indefinitely. There are one-click tools for codesigning on Windows and OS X, which helps, but even OS X requires the certificate juggling game, and Windows requires a lengthy process (and some cost) to get developer verification. But in any case, if the problem is with your certificates, there's not much anyone else can do; as the developer you need to know how to create and manage those yourself, or allow someone else to access your account and do it. While it isn't strictly LC-related, a lesson on how to deal with Apple certificates wouldn't hurt. Apple is the only company that requires those. -- 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 kaveh at rivervalleytechnologies.com Fri Dec 14 11:25:24 2018 From: kaveh at rivervalleytechnologies.com (Kaveh Bazargan) Date: Fri, 14 Dec 2018 16:25:24 +0000 Subject: get offset of current selection In-Reply-To: <9A4BFEEF-0BF7-4AEB-94A0-E82470A2F7B3@me.com> References: <9A4BFEEF-0BF7-4AEB-94A0-E82470A2F7B3@me.com> Message-ID: Correct. Thank you. :-) On Fri, 14 Dec 2018 at 14:30, Tore Nilsen via use-livecode < use-livecode at lists.runrev.com> wrote: > The selectedChunk is probably what you are looking for. > > Regards > Tore Nilsen > > > > > > > > 14. des. 2018 kl. 15:28 skrev Kaveh Bazargan via use-livecode < > use-livecode at lists.runrev.com>: > > > > I am stuck on something that should be simple. User has selected a text, > > say a word in a field. How do I get the offset of the start and end of > > selection? (Not any matching text, but the particular chars selected.) > > > > I know I am going to be embarrassed at the reply. :-\ > > > > -- > > Kaveh Bazargan > > Director > > River Valley Technologies ? > Twitter > > ? LinkedIn > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Kaveh Bazargan Director River Valley Technologies ? Twitter ? LinkedIn From tom at makeshyft.com Fri Dec 14 17:10:59 2018 From: tom at makeshyft.com (Tom Glod) Date: Fri, 14 Dec 2018 17:10:59 -0500 Subject: Stumped on Datagrid Problem Message-ID: I am using the "dgNumberOfRecords" mechanism to populate a grid. Everything works as expected. except .....I need the last (new) element to show up first and the first element to show up last. this is normally achieved by sorting the column, but I cannot sort using the "large dataset method". I really don't want to rewrite the array to reverse the sequence every time a new record is added..... that will degrade performance as time goes on big time......which is the very reason why i used this method for populating the grid in the first place..... this grid can have 10,000 items in it after a months use. the other problem is that elements can also be deleted from the array so the array indexes are not always perfectly sequential hmmm.... any ideas are welcome. thank you. From bobsneidar at iotecdigital.com Fri Dec 14 21:31:12 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 15 Dec 2018 02:31:12 +0000 Subject: Stumped on Datagrid Problem In-Reply-To: References: Message-ID: You need to sort the keys of the array and populate accordingly. put the keys of aData into tKeyList sort tKeyList numeric descending repeat for each line tKey in tKeyList ... Bob S > On Dec 14, 2018, at 14:10 , Tom Glod via use-livecode wrote: > > I am using the "dgNumberOfRecords" mechanism to populate a grid. > Everything works as expected. > > except .....I need the last (new) element to show up first and the first > element to show up last. > > this is normally achieved by sorting the column, but I cannot sort using > the "large dataset method". > > I really don't want to rewrite the array to reverse the sequence every time > a new record is added..... that will degrade performance as time goes on > big time......which is the very reason why i used this method for > populating the grid in the first place..... this grid can have 10,000 items > in it after a months use. > > the other problem is that elements can also be deleted from the array so > the array indexes are not always perfectly sequential > > hmmm.... > > any ideas are welcome. thank you. From tom at makeshyft.com Sat Dec 15 11:14:46 2018 From: tom at makeshyft.com (Tom Glod) Date: Sat, 15 Dec 2018 11:14:46 -0500 Subject: Stumped on Datagrid Problem In-Reply-To: References: Message-ID: Hi Bob, Thanks, yes thats what I ended up doing as part of the solution .... it also helped to read this massive but genius thread :) http://forums.livecode.com/viewtopic.php?f=8&t=24945 On Fri, Dec 14, 2018 at 9:31 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > You need to sort the keys of the array and populate accordingly. > > put the keys of aData into tKeyList > sort tKeyList numeric descending > > repeat for each line tKey in tKeyList > ... > > Bob S > > > > On Dec 14, 2018, at 14:10 , Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I am using the "dgNumberOfRecords" mechanism to populate a grid. > > Everything works as expected. > > > > except .....I need the last (new) element to show up first and the first > > element to show up last. > > > > this is normally achieved by sorting the column, but I cannot sort using > > the "large dataset method". > > > > I really don't want to rewrite the array to reverse the sequence every > time > > a new record is added..... that will degrade performance as time goes on > > big time......which is the very reason why i used this method for > > populating the grid in the first place..... this grid can have 10,000 > items > > in it after a months use. > > > > the other problem is that elements can also be deleted from the array so > > the array indexes are not always perfectly sequential > > > > hmmm.... > > > > any ideas are welcome. thank you. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mkoob at rogers.com Sat Dec 15 18:02:17 2018 From: mkoob at rogers.com (Martin Koob) Date: Sat, 15 Dec 2018 17:02:17 -0600 (CST) Subject: Editing fields in a data grid form. Message-ID: <1544914937304-0.post@n4.nabble.com> I was experimenting with a Data Grid form to see if I could edit the text in the fields of the form. I used the sample stack from the LiveCode Lesson "Example: Creating a List of People" http://lessons.livecode.com/m/datagrid/l/7305-example-creating-a-list-of-people I found I could get the fields to open for editing if I revised the script of the mouseDoubleUp script in the example stack to use the correct names for the fields being edited. Then I used the following lesson to see how to edit field content in a form. How Can The User Edit Field Content in a Data Grid Form? http://lessons.livecode.com/m/datagrid/l/7336-how-can-the-user-edit-field-content-in-a-data-grid-form I added the handler CloseFieldEditor from this lesson to the DataGrid behaviour. First thing I found was there was an error generated in the script editor by one line in the script. That original script is commented out below with the line with the error indicated. I revised the CloseFieldEditor so that the new contents of the edited field were in the theDataA variable. However one the CloseFieldEditor handler was finished the the revised contents of the field were not actually saved to the Data Grid. Is there something I am missing here. Below is the relevant handlers from the Data Grid's behaviour script. Thanks for any suggestions on this. Martin -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From MikeKerner at roadrunner.com Sun Dec 16 16:12:48 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 16 Dec 2018 16:12:48 -0500 Subject: preOpenCard not running on iPhoneX simulator In-Reply-To: References: Message-ID: Trap inside the preopencard handler. LC fails silently in built applications, so if some code or routine that is either directly or indirectly triggered by the preopencard handler fails, the handler will just stop executing. You might be able to find out what's going on with the mobile debugger, too. Do do it with code, try on preopencard answer "poc" answer "pre doSomething" doSomething answer "dosomething achieved" answer "preDoSomethingElse doSomethingElse" answer "doSomethingElse achieved" answer "end poc" end preopencard On Fri, Dec 14, 2018 at 7:14 AM Alan via use-livecode < use-livecode at lists.runrev.com> wrote: > I'm having a strange issue with a mobile app - on the 11.2 simulator a > preOpenCard handler doesn't seem to run on the iPhoneX simulator but does > with other devices. > > What might be stopping this handler from running on the X simulator but > not on others? Any ideas? > > Strangely, when I make a barebones test stack with only a preOpenCard > handler, it runs ok on the X simulator. So that points to something in my > original stack... but what can stop the preOpenCard message from being > sent?? > > cheers > > Alan > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From rdimola at evergreeninfo.net Sun Dec 16 20:50:43 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sun, 16 Dec 2018 20:50:43 -0500 Subject: preOpenCard not running on iPhoneX simulator In-Reply-To: References: Message-ID: <002401d495aa$eefb90f0$ccf2b2d0$@net> Alan, This is usually caused by a failure in the preopenstack script. Try some answer's in the preopenstack handler. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Alan via use-livecode Sent: Friday, December 14, 2018 7:14 AM To: use-livecode at lists.runrev.com Cc: Alan Subject: preOpenCard not running on iPhoneX simulator I'm having a strange issue with a mobile app - on the 11.2 simulator a preOpenCard handler doesn't seem to run on the iPhoneX simulator but does with other devices. What might be stopping this handler from running on the X simulator but not on others? Any ideas? Strangely, when I make a barebones test stack with only a preOpenCard handler, it runs ok on the X simulator. So that points to something in my original stack... but what can stop the preOpenCard message from being sent?? cheers Alan _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From alanstenhouse at hotmail.com Sun Dec 16 23:05:48 2018 From: alanstenhouse at hotmail.com (Alan) Date: Mon, 17 Dec 2018 04:05:48 +0000 Subject: preOpenCard not running on iPhoneX simulator In-Reply-To: <002401d495aa$eefb90f0$ccf2b2d0$@net> References: <002401d495aa$eefb90f0$ccf2b2d0$@net> Message-ID: Hi Ralph Thanks for the suggestion, and yes, you were right. Somehow I was still expecting openCard messages etc to be sent through - perhaps I was just getting confused as to why it runs ok on all phone simulators except for the iPhoneX sim. Anyway, thanks for the response, it's always good to have someone else suggest the obvious thing that we're missing! :-) cheers Alan :-) > On 17 Dec 2018, at 12:20 pm, Ralph DiMola wrote: > > Alan, > > This is usually caused by a failure in the preopenstack script. Try some > answer's in the preopenstack handler. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of Alan via use-livecode > Sent: Friday, December 14, 2018 7:14 AM > To: use-livecode at lists.runrev.com > Cc: Alan > Subject: preOpenCard not running on iPhoneX simulator > > I'm having a strange issue with a mobile app - on the 11.2 simulator a > preOpenCard handler doesn't seem to run on the iPhoneX simulator but does > with other devices. > > What might be stopping this handler from running on the X simulator but not > on others? Any ideas? > > Strangely, when I make a barebones test stack with only a preOpenCard > handler, it runs ok on the X simulator. So that points to something in my > original stack... but what can stop the preOpenCard message from being > sent?? > > cheers > > Alan > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From panos.merakos at livecode.com Mon Dec 17 09:59:13 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 17 Dec 2018 16:59:13 +0200 Subject: [ANN] This Week in LiveCode 159 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 #159 here: https://goo.gl/wPtCgK This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From bobsneidar at iotecdigital.com Mon Dec 17 11:04:44 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 17 Dec 2018 16:04:44 +0000 Subject: Stumped on Datagrid Problem In-Reply-To: References: Message-ID: Also, I am finding that pushing my data into a memory sqlite database gives me the ability to easily get just the data I want and sorted just the way I want (by multiple keys or by calculated results for example). There are two functions I wrote: arrayToMemoryDB and cursorToArray. Another great use for this is for data filtering. Once the data is in a database, you can query using WHERE... LIKE... clauses, then convert the resulting cursor to an array and set your dgData accordingly. The upside to using a memory database is speed. The downside is that there can only be one memory database. If you need more than one, just use file databases instead. Bob S > On Dec 15, 2018, at 08:14 , Tom Glod via use-livecode wrote: > > Hi Bob, Thanks, yes thats what I ended up doing as part of the solution > .... it also helped to read this massive but genius thread :) From hh at hyperhh.de Mon Dec 17 11:19:38 2018 From: hh at hyperhh.de (hh) Date: Mon, 17 Dec 2018 17:19:38 +0100 Subject: HTMLtoIMAGE_v100 Message-ID: <9C6DB43E-2A55-46CB-A836-16965861A28D@hyperhh.de> HTMLtoIMAGE makes an image of the *whole* HTML content of a browser widget (while waiting for printToPdf from the browser widget in 9.x). The image may have a height of several thousands pixels. Download from "Sample Stacks" or http://livecodeshare.runrev.com/stack/919/ The stack is based on the library from https://html2canvas.hertzen.com (MIT licensed). This javaScript library takes "screenshots" of webpages based on the DOM, and as such may not be 100% accurate to the real representation as it does not make an actual screenshot, but builds the screenshot based on the information available on the page. Then it saves the data to a canvas. [(With movies) "Overlayed" pages as livecode.com are only partially saved, just try.] We don't display this HTML5-canvas in a browser but catch with a javascriptHandler the imagedata and save it to a local image. You can set options: ? the image format: JPEG with quality level or PNG, ? an image scale (percentage). The javaScript library is included in the stack (please watch its license). From bobsneidar at iotecdigital.com Mon Dec 17 11:30:35 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 17 Dec 2018 16:30:35 +0000 Subject: HTMLtoIMAGE_v100 In-Reply-To: <9C6DB43E-2A55-46CB-A836-16965861A28D@hyperhh.de> References: <9C6DB43E-2A55-46CB-A836-16965861A28D@hyperhh.de> Message-ID: I tried this on a copier web portal. It produced a 0kbyte file with no image. Bob S > On Dec 17, 2018, at 08:19 , hh via use-livecode wrote: > > HTMLtoIMAGE > makes an image of the *whole* HTML content of a browser widget > (while waiting for printToPdf from the browser widget in 9.x). > The image may have a height of several thousands pixels. > > Download from "Sample Stacks" or > http://livecodeshare.runrev.com/stack/919/ > > The stack is based on the library from > https://html2canvas.hertzen.com (MIT licensed). > > This javaScript library takes "screenshots" of webpages based on > the DOM, and as such may not be 100% accurate to the real > representation as it does not make an actual screenshot, but > builds the screenshot based on the information available on the > page. > Then it saves the data to a canvas. [(With movies) "Overlayed" > pages as livecode.com are only partially saved, just try.] > > We don't display this HTML5-canvas in a browser but catch with > a javascriptHandler the imagedata and save it to a local image. > You can set options: > ? the image format: JPEG with quality level or PNG, > ? an image scale (percentage). > > The javaScript library is included in the stack (please watch > its license). > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Mon Dec 17 13:13:13 2018 From: hh at hyperhh.de (hh) Date: Mon, 17 Dec 2018 19:13:13 +0100 Subject: HTMLtoIMAGE_v100 Message-ID: <4C214FA7-F117-425E-82AD-41F16E3BFCC9@hyperhh.de> > Bob S. wrote: > I tried this on a copier web portal. It produced a 0 kbyte file with no image. So the imagedata of the canvas was empty. Thus a pdf created from the DOM will also not work with such pages. It will have to rely on the print-layout of the portal: Can you print it correctly from a desktop browser? What we could try is to scroll the widget down in appropriate pieces and make ordinary LC-snapshots from it. This is from the html2canvas library docs: Limitations All the images that the script uses need to reside under the same origin for it to be able to read them without the assistance of a proxy. Similarly, if you have other canvas elements on the page, which have been tainted with cross-origin content, they will become dirty and no longer readable by html2canvas. The script doesn't render plugin content such as Flash or Java applets. Portals (and livecode.com) use often WordPress or similar with lots of plugins... From bobsneidar at iotecdigital.com Mon Dec 17 13:16:48 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 17 Dec 2018 18:16:48 +0000 Subject: HTMLtoIMAGE_v100 In-Reply-To: <4C214FA7-F117-425E-82AD-41F16E3BFCC9@hyperhh.de> References: <4C214FA7-F117-425E-82AD-41F16E3BFCC9@hyperhh.de> Message-ID: Yeah the whole page is generated by Java. I guess I was expecting too much. Bob S > On Dec 17, 2018, at 10:13 , hh via use-livecode wrote: > >> Bob S. wrote: >> I tried this on a copier web portal. It produced a 0 kbyte file with no image. > > So the imagedata of the canvas was empty. > Thus a pdf created from the DOM will also not work with such pages. > It will have to rely on the print-layout of the portal: Can you print it > correctly from a desktop browser? > > What we could try is to scroll the widget down in appropriate pieces and make > ordinary LC-snapshots from it. > > This is from the html2canvas library docs: > > Limitations > All the images that the script uses need to reside under the same origin for > it to be able to read them without the assistance of a proxy. Similarly, if > you have other canvas elements on the page, which have been tainted with > cross-origin content, they will become dirty and no longer readable by > html2canvas. > The script doesn't render plugin content such as Flash or Java applets. > > Portals (and livecode.com) use often WordPress or similar with lots of plugins... > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 17 14:47:25 2018 From: paul at researchware.com (Paul Dupuis) Date: Mon, 17 Dec 2018 14:47:25 -0500 Subject: Datagrid error... Message-ID: I have a a few customers reporting the error below, and yet, none of them have provided information on what exactly they were doing that resulted in the error below. I have no recipe to reproduce it. These are just busy researchers who just don't have the time nor technical know-how to spend any time troubleshooting. I am hoping someone on this list with detailed knowledge of the inner working of the Datagrid might be able to suggest what might be causing the error based on the ExcutionContexts (below) Chunk: error in object expression:? (Line 3919, column 33) Chunk: can't find object:? (Line 3919, column 33) Object: does not have this property:? (Line 3919, column 21) put: error in expression:? (Line 3919, column 1) repeat: error in statement:? (Line 3909, column 1) repeat: error in statement:? (Line 3899, column 1) if-then: error in statement:? (Line 3874, column 1) Handler: error in statement: _table.DrawColumns (Line 3874, column 1) Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" Object ID: button id 1005 of group id 1004 of card id 1002 of stack "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH 4.0.1/HyperRESEARCH.exe" - if-then: error in statement:? (Line 3821, column 1) if-then: error in statement:? (Line 3820, column 1) Handler: error in statement: _table.DrawControlsInRealTime (Line 3820, column 1) Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" Object ID: button id 1005 of group id 1004 of card id 1002 of stack "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH 4.0.1/HyperRESEARCH.exe" - Handler: error in statement: _table.DrawWithProperties (Line 3500, column 1) Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" Object ID: button id 1005 of group id 1004 of card id 1002 of stack "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH 4.0.1/HyperRESEARCH.exe" - switch: error in statement:? (Line 2319, column 1) Handler: error in statement: _DrawListWithProperties (Line 2319, column 1) Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" Object ID: button id 1005 of group id 1004 of card id 1002 of stack "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH 4.0.1/HyperRESEARCH.exe" From jjs at krutt.org Mon Dec 17 15:01:13 2018 From: jjs at krutt.org (JJS) Date: Mon, 17 Dec 2018 21:01:13 +0100 Subject: Datagrid error... In-Reply-To: References: Message-ID: This looks a bit like the error i had, It's written here and what caused it. https://forums.livecode.com/viewtopic.php?f=104&p=172021#p172021 With me it was setting 'Show vScroll" to Auto. I also update the Bug Quality report but no response yet, the link to the bugreport is also in that thread. Please try, what i tried and let me/others know too if it helped. Maybe we need to create a new bug report Op 17-12-2018 om 20:47 schreef Paul Dupuis via use-livecode: > I have a a few customers reporting the error below, and yet, none of > them have provided information on what exactly they were doing that > resulted in the error below. I have no recipe to reproduce it. These > are just busy researchers who just don't have the time nor technical > know-how to spend any time troubleshooting. I am hoping someone on > this list with detailed knowledge of the inner working of the Datagrid > might be able to suggest what might be causing the error based on the > ExcutionContexts (below) > > Chunk: error in object expression:? (Line 3919, column 33) > Chunk: can't find object:? (Line 3919, column 33) > Object: does not have this property:? (Line 3919, column 21) > put: error in expression:? (Line 3919, column 1) > repeat: error in statement:? (Line 3909, column 1) > repeat: error in statement:? (Line 3899, column 1) > if-then: error in statement:? (Line 3874, column 1) > Handler: error in statement: _table.DrawColumns (Line 3874, column 1) > Object: button "Data Grid" of group "Behaviors" of card "card id 1002" > of stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" > > Object ID: button id 1005 of group id 1004 of card id 1002 of stack > "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH > 4.0.1/HyperRESEARCH.exe" > > - > if-then: error in statement:? (Line 3821, column 1) > if-then: error in statement:? (Line 3820, column 1) > Handler: error in statement: _table.DrawControlsInRealTime (Line 3820, > column 1) > Object: button "Data Grid" of group "Behaviors" of card "card id 1002" > of stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" > > Object ID: button id 1005 of group id 1004 of card id 1002 of stack > "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH > 4.0.1/HyperRESEARCH.exe" > > - > Handler: error in statement: _table.DrawWithProperties (Line 3500, > column 1) > Object: button "Data Grid" of group "Behaviors" of card "card id 1002" > of stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" > > Object ID: button id 1005 of group id 1004 of card id 1002 of stack > "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH > 4.0.1/HyperRESEARCH.exe" > > - > switch: error in statement:? (Line 2319, column 1) > Handler: error in statement: _DrawListWithProperties (Line 2319, > column 1) > Object: button "Data Grid" of group "Behaviors" of card "card id 1002" > of stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" > > Object ID: button id 1005 of group id 1004 of card id 1002 of stack > "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH > 4.0.1/HyperRESEARCH.exe" > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Mon Dec 17 18:59:29 2018 From: hh at hyperhh.de (hh) Date: Tue, 18 Dec 2018 00:59:29 +0100 Subject: BrowserSnapshot_v001 Message-ID: <73F7A04B-13DB-482C-A072-34E50F4D9937@hyperhh.de> BrowserSnapshot makes an image of the *whole* HTML content of a browser widget (while waiting for printToPdf from the browser widget in 9.x). The image may get a height of several thousands pixels. ** It works currently only for (horizontally) responsive HTML pages, that is if the widget doesn't need a horizontal scrollbar. ** This is a pure LC Script solution: The widget is scrolled down appropriate portions of the whole HTML page and a snapshot is made. Then the snapshots are merged into ONE image of format PNG. Download BrowserSnapshot from "Sample Stacks" or http://livecodeshare.runrev.com/stack/920/ Probably this pure LC Script version is doing better than creating a "snapshot" from the DOM using a HTML5 canvas (HTMLtoIMAGE_v100) From bobsneidar at iotecdigital.com Mon Dec 17 19:06:12 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 18 Dec 2018 00:06:12 +0000 Subject: Stumped on Datagrid Problem In-Reply-To: References: Message-ID: I take that back. I updated the arrayToMemoryDB to allow the passing of a table name, so you can have multiple tables in the memory database. Bob S > On Dec 17, 2018, at 08:04 , Bob Sneidar via use-livecode wrote: > > The upside to using a memory database is speed. The downside is that there can only be one memory database. If you need more than one, just use file databases instead. > > Bob S From tom at makeshyft.com Mon Dec 17 21:09:12 2018 From: tom at makeshyft.com (Tom Glod) Date: Mon, 17 Dec 2018 21:09:12 -0500 Subject: Stumped on Datagrid Problem In-Reply-To: References: Message-ID: Hi Bob, Gotta love making custom solutions. Yes, adding tables. In memory database is pretty genius bob.... currently I feed my datagrid from an array. I am not sure of the line at which a database becomes faster than repeat with & LiveCode array and a sort function. maybe thats a good test to run someday. If my users complain that it is too slow then i will work to improve that. but for now with 10,000 records...... smooth as butter...and great performance even on my rather slow pc. i also use other tricks to really minimize rendering of text....to only what is visible.......(large text field rendering = slow asf) I look forward to putting this up on Github for everyone. Thanks Bob for engaging this On Mon, Dec 17, 2018 at 7:06 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > I take that back. I updated the arrayToMemoryDB to allow the passing of a > table name, so you can have multiple tables in the memory database. > > Bob S > > > > On Dec 17, 2018, at 08:04 , Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > The upside to using a memory database is speed. The downside is that > there can only be one memory database. If you need more than one, just use > file databases instead. > > > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From tom at makeshyft.com Mon Dec 17 22:39:03 2018 From: tom at makeshyft.com (Tom Glod) Date: Mon, 17 Dec 2018 22:39:03 -0500 Subject: BrowserSnapshot_v001 In-Reply-To: <73F7A04B-13DB-482C-A072-34E50F4D9937@hyperhh.de> References: <73F7A04B-13DB-482C-A072-34E50F4D9937@hyperhh.de> Message-ID: HH....you are a rockstar!!!!. I literally had this functionality on my to do list for a GPL project (going up on github soon). I am assuming that is the license of your code? Thank you for saving me the time of doing that x 10 On Mon, Dec 17, 2018 at 6:59 PM hh via use-livecode < use-livecode at lists.runrev.com> wrote: > BrowserSnapshot makes an image of the *whole* HTML content of a browser > widget > (while waiting for printToPdf from the browser widget in 9.x). > The image may get a height of several thousands pixels. > > ** It works currently only for (horizontally) responsive HTML pages, that > is if > the widget doesn't need a horizontal scrollbar. ** > > This is a pure LC Script solution: The widget is scrolled down appropriate > portions of the whole HTML page and a snapshot is made. Then the snapshots > are merged into ONE image of format PNG. > > Download BrowserSnapshot from "Sample Stacks" or > http://livecodeshare.runrev.com/stack/920/ > > Probably this pure LC Script version is doing better than creating a > "snapshot" > from the DOM using a HTML5 canvas (HTMLtoIMAGE_v100) > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Mon Dec 17 23:10:52 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 17 Dec 2018 20:10:52 -0800 Subject: Recipe for LC Server on Ubuntu 18.04? Message-ID: <88ae09df-7f3e-5179-a3c4-c5dae5d58bc0@fourthworld.com> This is where we send noobs, and that makes me sad: http://lessons.livecode.com/m/4070/l/36652-how-do-i-install-livecode-server-on-linux-with-apache It's poorly formatted and incomplete. I'll fix it when I catch up on some things, but in the meantime: Have any of you successfully installed LC Server on an Ubuntu 18.04 VPS? I've had good luck on Ubuntu 12, 14, and 16, but for some reason I can't seem to get the CGI enabling happening as it should. While I'm reading up on that, maybe someone out there has already found the gotcha and can lead me on the path to enlightenment.... -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Tue Dec 18 01:07:38 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 17 Dec 2018 22:07:38 -0800 Subject: Recipe for LC Server on Ubuntu 18.04? In-Reply-To: <88ae09df-7f3e-5179-a3c4-c5dae5d58bc0@fourthworld.com> References: <88ae09df-7f3e-5179-a3c4-c5dae5d58bc0@fourthworld.com> Message-ID: Earlier I wrote some annoyance here: http://lists.runrev.com/pipermail/use-livecode/2018-December/251989.html Nevermind: I had thought I'd enabled mod_actions, but apparently not. Now everything makes sense again... (still would like to update and cleanup the LC Lesson on installing LC Server on Linux...) -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From iphonelagi at gmail.com Tue Dec 18 04:56:43 2018 From: iphonelagi at gmail.com (Lagi Pittas) Date: Tue, 18 Dec 2018 09:56:43 +0000 Subject: BrowserSnapshot_v001 In-Reply-To: <73F7A04B-13DB-482C-A072-34E50F4D9937@hyperhh.de> References: <73F7A04B-13DB-482C-A072-34E50F4D9937@hyperhh.de> Message-ID: Hermann, I have no use for this presently but I KINOW I will learn a lot just by looking at your code. Thanks for all your brilliant stuff - oh and if I don't thank you for future stuff (life gets in the way of living) take that as a thank you as well - I'll be the first to tell you when your stuff is rubbish - time or no time ;-) Lagi On Mon, 17 Dec 2018 at 23:59, hh via use-livecode < use-livecode at lists.runrev.com> wrote: > BrowserSnapshot makes an image of the *whole* HTML content of a browser > widget > (while waiting for printToPdf from the browser widget in 9.x). > The image may get a height of several thousands pixels. > > ** It works currently only for (horizontally) responsive HTML pages, that > is if > the widget doesn't need a horizontal scrollbar. ** > > This is a pure LC Script solution: The widget is scrolled down appropriate > portions of the whole HTML page and a snapshot is made. Then the snapshots > are merged into ONE image of format PNG. > > Download BrowserSnapshot from "Sample Stacks" or > http://livecodeshare.runrev.com/stack/920/ > > Probably this pure LC Script version is doing better than creating a > "snapshot" > from the DOM using a HTML5 canvas (HTMLtoIMAGE_v100) > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From curry at pair.com Tue Dec 18 08:03:10 2018 From: curry at pair.com (Curry Kenworthy) Date: Tue, 18 Dec 2018 08:03:10 -0500 Subject: Datagrid error... In-Reply-To: References: Message-ID: A lot of pain can be avoided, and more responsive interfaces achieved, by using data grids ONLY when necessary. Sometimes they are necessary...but usually not. Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ From paul at researchware.com Tue Dec 18 08:48:29 2018 From: paul at researchware.com (Paul Dupuis) Date: Tue, 18 Dec 2018 08:48:29 -0500 Subject: Datagrid error... In-Reply-To: References: Message-ID: On 12/18/2018 8:03 AM, Curry Kenworthy via use-livecode wrote: > > A lot of pain can be avoided, and more responsive interfaces achieved, > by using data grids ONLY when necessary. > > Sometimes they are necessary...but usually not. True. In this case, I need a table view of a bunch of data. The columns must be sortable and resizable (a datagrid does this for me) and the textual content of the cells must wrap (so that rules out a single field object set as a table field) and at least 1 column may contain text (wrapped in the columns field) or an image or? even html text with embedded images. Thus the only existing LiveCode widget or object that does this is a Datagrid. I really do wish someone would deliver a really reliable table object for LiveCode that supported an htmlText property for each cell and each cell could be wrapped or not that also handled sorting and resizing, including auto-sizing column widths and row heights to fit the content! From curry at pair.com Tue Dec 18 09:37:47 2018 From: curry at pair.com (Curry Kenworthy) Date: Tue, 18 Dec 2018 09:37:47 -0500 Subject: Datagrid error... In-Reply-To: References: Message-ID: > I really do wish someone would deliver a really reliable table object I'm always game as you know, and would enjoy such a project. Reliable is not a problem - simply proper methods to ensure proper results. :) But when it comes to efficiency, LiveCode itself is lately a getting bit portly and sluggish, surely due for a little optimization now. With custom controls, no matter which code route is taken, it's encouraging to have a lean mean foundation to build upon! Best wishes, Curry K. From preid at reidit.co.uk Tue Dec 18 09:57:37 2018 From: preid at reidit.co.uk (Peter Reid) Date: Tue, 18 Dec 2018 14:57:37 +0000 Subject: Android Text-To-Speech? Message-ID: Has anyone got a way of doing text-to-speech for Android? We have revSpeak for desktop/laptop but not for Android deployment. Any solutions please? Peter -- Peter Reid Loughborough, UK From lists at mangomultimedia.com Tue Dec 18 10:19:52 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 18 Dec 2018 09:19:52 -0600 Subject: Datagrid error... In-Reply-To: References: Message-ID: On Mon, Dec 17, 2018 at 1:47 PM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > I have a a few customers reporting the error below, and yet, none of > them have provided information on what exactly they were doing that > resulted in the error below. I have no recipe to reproduce it. These are > just busy researchers who just don't have the time nor technical > know-how to spend any time troubleshooting. I am hoping someone on this > list with detailed knowledge of the inner working of the Datagrid might > be able to suggest what might be causing the error based on the > ExcutionContexts (below) Which version of LiveCode was the app built with? The error contains line numbers and it is important to look at the exact version of the Data Grid library you are using in order to determine the code that triggered the error. -- Trevor DeVore CTO - ScreenSteps www.screensteps.com From paul at researchware.com Tue Dec 18 10:31:18 2018 From: paul at researchware.com (Paul Dupuis) Date: Tue, 18 Dec 2018 10:31:18 -0500 Subject: Datagrid error... In-Reply-To: References: Message-ID: On 12/18/2018 10:19 AM, Trevor DeVore via use-livecode wrote: > On Mon, Dec 17, 2018 at 1:47 PM Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I have a a few customers reporting the error below, and yet, none of >> them have provided information on what exactly they were doing that >> resulted in the error below. I have no recipe to reproduce it. These are >> just busy researchers who just don't have the time nor technical >> know-how to spend any time troubleshooting. I am hoping someone on this >> list with detailed knowledge of the inner working of the Datagrid might >> be able to suggest what might be causing the error based on the >> ExcutionContexts (below) > > Which version of LiveCode was the app built with? The error contains line > numbers and it is important to look at the exact version of the Data Grid > library you are using in order to determine the code that triggered the > error. > Hi Trevor, Thanks for chiming in. I am sorry to say that this is a very old app, built under LiveCode 6.7.11. We are readying a new version built under LC9.0.1, but without a recipe for the error, I have no way of testing whether the new engine (and newer Datagrid) fixes this issue. I was hoping the executionCotexts might provide some insight as to a suggested recipe to reproduce the error. From Bernd.Niggemann at uni-wh.de Tue Dec 18 10:44:03 2018 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Tue, 18 Dec 2018 15:44:03 +0000 Subject: [ANN] bnGuides alignment tool on ivecodeshare In-Reply-To: References: Message-ID: <054103E4-E705-4402-BC0F-65CB1ABB5C77@uni-wh.de> I have put a stack "bnGuides" on livecodeshare (or access it from "Sample Stacks" from within LC). It is best used as a plugin. http://livecodeshare.runrev.com/stack/918/BnGuides It helps with visual guides to align objects. It complements the build-in alignment tool. Feedback welcome. Kind regards Bernd From lists at mangomultimedia.com Tue Dec 18 11:16:41 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 18 Dec 2018 10:16:41 -0600 Subject: Datagrid error... In-Reply-To: References: Message-ID: On Tue, Dec 18, 2018 at 9:31 AM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > > built under LiveCode 6.7.11. We are readying a new version built under > LC9.0.1, but without a recipe for the error, I have no way of testing > whether the new engine (and newer Datagrid) fixes this issue. I was > hoping the executionCotexts might provide some insight as to a suggested > recipe to reproduce the error. > I just checked the Data Grid script in 6.7.11 by executing the following code in the Message Box: ``` edit script of button id 1005 of stack "revDataGridLibrary" ``` If we piece together what we know from the error we get the following: 1) `_DrawListWithProperties` is called 2) `_table.DrawWithProperties` is called 3) `_table.DrawControlsInRealTime` is called 4) `_table.DrawColumns` is called 5) An object that doesn't exist is referenced and triggers the "can't find object". The line that triggers the "can't find object" error is line 3919. Line 3919 is part of the `_table.DrawColumns` private command which draws columns in a table. It reads as follows: ``` put the dgIndex of theControl into theCurrentIndex ``` This tells us that `theControl` doesn't exist. `theControl` comes from line 3910: ``` put line theControlIndex of theMasterControlList[theColumn] into theControl ``` `theMasterControlList` is a list of existing controls that can be used to render the data for a particular row and column in the table. What is interesting here is that `_DrawListWithProperties` is the entry point. `_DrawListWithProperties` is a private command and the error report isn't telling us who is calling `_DrawListWithProperties`. That complicates things a bit since we don't know if it is being called when you set the `dgData`, when the user is scrolling, when the user clicks on a row, etc. One potentially important piece of information is that `_DrawListWithProperties` can be called by `_ScrollListV`, Because scrolling can happen very quickly `_ScrollListV` will throttle itself meaning that if it is currently running when it is called (e.g. the user is scrolling quickly and `_ScrollListV` hasn't finished rendering the last scroll request) then it will call itself in time so that the new scroll request can be processed after the current scroll request finishes rendering. If `_DrawListWithProperties` was called from a scrolling action then the theory I propose below might be possible. Given what we know my best guess is that the columns property is being set and in the process a column is being removed. At the same time, `_DrawListWithProperties` is being triggered which is trying to draw the column that was removed. A `_ScrollListV` request sent in time might be able to create such a scenario. Now, all of this leads me to the following questions ? 1) Are you modifying the columns displayed in this Data Grid through code? 2) If so, is it possible that you are updating the columns in the Data Grid while the user is interacting with it? -- Trevor DeVore CTO - ScreenSteps www.screensteps.com From bobsneidar at iotecdigital.com Tue Dec 18 11:42:06 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 18 Dec 2018 16:42:06 +0000 Subject: Stumped on Datagrid Problem In-Reply-To: References: Message-ID: I think we already did test this, and the upshot if I recall was that once you get beyond 2 or 3 recursive queries, the memory DB is much faster. I think I put up a demo stack demonstrating this on Livecode Share if you want to have a look. Bob S > On Dec 17, 2018, at 18:09 , Tom Glod via use-livecode wrote: > > Hi Bob, > > Gotta love making custom solutions. Yes, adding tables. In memory > database is pretty genius bob.... currently I feed my datagrid from an > array. > > I am not sure of the line at which a database becomes faster than repeat > with & LiveCode array and a sort function. > > maybe thats a good test to run someday. From jjs at krutt.org Tue Dec 18 13:16:10 2018 From: jjs at krutt.org (JJS) Date: Tue, 18 Dec 2018 19:16:10 +0100 Subject: Datagrid error... In-Reply-To: References: Message-ID: quote" A `_ScrollListV` request sent in time might be able to create such a scenario." end quote Trevore is what you say not the same as what is written here: https://forums.livecode.com/viewtopic.php?f=104&p=172021&sid=73fc5b60aaa154dfddc7c723b563a370#p172019 although you figured it out technically. Op 18-12-2018 om 17:16 schreef Trevor DeVore via use-livecode: > A `_ScrollListV` request sent in time might be > able to create such a scenario. From curt at sonasoftware.com Tue Dec 18 13:59:42 2018 From: curt at sonasoftware.com (Curt Ford) Date: Tue, 18 Dec 2018 10:59:42 -0800 Subject: problem with revZipOpenArchive in a Mac app bundle? Message-ID: <5C19439E.7050308@sonasoftware.com> I'm working on updating a client's project for 64bit compatibility on the Mac side. The project is a menu app that downloads and unzips a number of modules from a server. The previous version, done in LiveCode 7, saved & unzipped the modules in the app bundle, at /Contents/Resources/_MacOS/Modules (that last item is a folder created by the app). This wasn't working when I opened it in LiveCode 9, so I tweaked the code to use specialFolderPath("resources") & slash & "Modules/" The folder is created and downloaded zip files are saved there as expected, but there seems to be a problem extracting it. I'm trying to follow the steps at http://lessons.livecode.com/m/2592/l/126625-zip-tool . It gets as far as starting the listZipContents handler, then gives a blank window "Execution Error" with a close button. Immediately after revZipOpenArchive I have "answer the result" which never shows, so it seems to be a problem with revZipOpenArchive? I'm just feeling my way here... any thoughts on what's going wrong? In case it matters: each zipped file is a folder that contains a LiveCode stack and a subfolder "media" containing some mp3 files. My clumsy debugging code: -- lists the content of an archive pArchive on listZipContents pArchive if the controlKey is down then answer "starting listZipContents, pArchive is" && pArchive end if --IT SEEMS TO FAIL HERE revZipOpenArchive pArchive, "read" if the controlKey is down then answer the result end if if the controlKey is down then answer "just did revZipOpenArchive" end if local tZipContents put revZipEnumerateItems(pArchive) into tZipContents put tZipContents into field "FileList" if the controlKey is down then answer "about to do revZipCloseArchive" end if revZipCloseArchive pArchive if the controlKey is down then answer "just did revZipCloseArchive" end if end listZipContents -Curt -- Sent from Postbox From lists at mangomultimedia.com Tue Dec 18 14:33:52 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 18 Dec 2018 13:33:52 -0600 Subject: Datagrid error... In-Reply-To: References: Message-ID: On Tue, Dec 18, 2018 at 12:16 PM JJS via use-livecode < use-livecode at lists.runrev.com> wrote: > quote" > > A `_ScrollListV` request sent in time might be > able to create such a scenario." end quote > > Trevore is what you say not the same as what is written here: > > https://forums.livecode.com/viewtopic.php?f=104&p=172021&sid=73fc5b60aaa154dfddc7c723b563a370#p172019 > > although you figured it out technically. > Not necessarily. `_ScrollListV` is used regardless of the setting so it can be called from a number of different code paths. -- Trevor DeVore CTO - ScreenSteps www.screensteps.com From ambassador at fourthworld.com Tue Dec 18 15:20:44 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 18 Dec 2018 12:20:44 -0800 Subject: DataGrid in v9: DragImage broken on Windows? In-Reply-To: References: Message-ID: <7f1ef0dd-b212-631d-6fc0-72321d9d78a7@fourthworld.com> The following relates to Windows only; things are working well on macOS. I have this code in a DataGrid in an older project: on dragstart if the dgDataControl of the target <> "" then put the dgIndex of the dgDataControl of the target into theIndex set the dgDragImageIndex of me to theIndex set the dragData["private"] to "FieldGrid" & cr & theIndex end if end dragstart In earlier versions the dragImage looks great. In v9 no dragImage shows at all. I do get the drag cursor, but no image of the record line. What has changed with the DG to account for this, and how do I restore the former excellent dragImage? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From merakosp at gmail.com Tue Dec 18 15:31:11 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 18 Dec 2018 22:31:11 +0200 Subject: DataGrid in v9: DragImage broken on Windows? In-Reply-To: <7f1ef0dd-b212-631d-6fc0-72321d9d78a7@fourthworld.com> References: <7f1ef0dd-b212-631d-6fc0-72321d9d78a7@fourthworld.com> Message-ID: Hello Richard, This looks like this bug: https://quality.livecode.com/show_bug.cgi?id=21562 Kind regards, Panos -- On Tue, Dec 18, 2018 at 10:21 PM Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > The following relates to Windows only; things are working well on macOS. > > I have this code in a DataGrid in an older project: > > on dragstart > if the dgDataControl of the target <> "" then > put the dgIndex of the dgDataControl of the target into theIndex > set the dgDragImageIndex of me to theIndex > set the dragData["private"] to "FieldGrid" & cr & theIndex > end if > end dragstart > > In earlier versions the dragImage looks great. > > In v9 no dragImage shows at all. > > I do get the drag cursor, but no image of the record line. > > What has changed with the DG to account for this, and how do I restore > the former excellent dragImage? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dan at clearvisiontech.com Tue Dec 18 15:41:17 2018 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 18 Dec 2018 20:41:17 +0000 Subject: Can't Submit App to iTunes Message-ID: <13956E05-D098-4443-BAEC-6EDBDCBCD3AA@clearvisiontech.com> Greetings! I've never had this problem before? When I attempt to upload my app via the Application Loader, I get a number of errors: ERROR ITMS-90096: "Your binary is not optimized for iPhone 5 - New iPhone apps and app updates submitted must support the 4-inch display on iPhone 5 and must include a launch image referenced in the Info.plist under UILaunchImages with a UILaunchImageSize value set to {320, 568}. Launch images must be PNG files and located at the top-level of your bundle, or provided within each .lproj folder if you localize your launch images. Learn more about iPhone 5 support and app launch images by reviewing the 'iOS Human Interface Guidelines' at https://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen." ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons': 'AppIcon60x60'" ERROR ITMS-90022: "Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format for iOS versions >= 10.0." ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an app icon for iPad of exactly '152x152' pixels, in .png format for iOS versions >= 10.0." All icons are included in the App Settings (and they are correct, I triple checked!). Also, all Splash screens are included. I did not include the Portrait splash screens as the app does not use portrait display. Any thoughts? LC Indy 9.0.2 iOS SDK 11.2 MacOS 10.12.6 -Dan From merakosp at gmail.com Tue Dec 18 15:54:13 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 18 Dec 2018 22:54:13 +0200 Subject: Can't Submit App to iTunes In-Reply-To: <13956E05-D098-4443-BAEC-6EDBDCBCD3AA@clearvisiontech.com> References: <13956E05-D098-4443-BAEC-6EDBDCBCD3AA@clearvisiontech.com> Message-ID: Hello Dan, If you right click on the .app bundle and choose "Show Package Contents", are the image files there? Best Regards Panos -- On Tue, Dec 18, 2018 at 10:41 PM Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > Greetings! > > I've never had this problem before? When I attempt to upload my app via > the Application Loader, I get a number of errors: > > ERROR ITMS-90096: "Your binary is not optimized for iPhone 5 - New iPhone > apps and app updates submitted must support the 4-inch display on iPhone 5 > and must include a launch image referenced in the Info.plist under > UILaunchImages with a UILaunchImageSize value set to {320, 568}. Launch > images must be PNG files and located at the top-level of your bundle, or > provided within each .lproj folder if you localize your launch images. > Learn more about iPhone 5 support and app launch images by reviewing the > 'iOS Human Interface Guidelines' at > https://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen > ." > > ERROR ITMS-90032: "Invalid Image Path - No image found at the path > referenced under key 'CFBundleIcons': 'AppIcon60x60'" > > ERROR ITMS-90022: "Missing required icon file. The bundle does not contain > an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png > format for iOS versions >= 10.0." > > ERROR ITMS-90023: "Missing required icon file. The bundle does not contain > an app icon for iPad of exactly '152x152' pixels, in .png format for iOS > versions >= 10.0." > > All icons are included in the App Settings (and they are correct, I triple > checked!). Also, all Splash screens are included. I did not include the > Portrait splash screens as the app does not use portrait display. > > Any thoughts? > > LC Indy 9.0.2 > iOS SDK 11.2 > MacOS 10.12.6 > > -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 dan at clearvisiontech.com Tue Dec 18 15:58:25 2018 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 18 Dec 2018 20:58:25 +0000 Subject: Can't Submit App to iTunes In-Reply-To: References: <13956E05-D098-4443-BAEC-6EDBDCBCD3AA@clearvisiontech.com> Message-ID: <4584EBCF-E406-4446-9BB3-A5224B1716D7@clearvisiontech.com> Panos, Yes, but I don't think it's all of them. Here's what's there: _CodeSignature AppIcon60x60 at 3x.png AppIcon83.5x83.5 at 2x~ipad.png Assets.car ca-bundle.crt Default-375h at 3x.png Default-414h at 3x.png Default-iPadProLandscape at 2x.png Default-Landscape.png myApp embedded.mobileprovision Info.plist PkgInfo Sounds //my included folder -Dan From: panagiotis merakos Date: Tuesday, December 18, 2018 at 12:54 PM To: How to use LiveCode Cc: Dan Friedman Subject: Re: Can't Submit App to iTunes Hello Dan, If you right click on the .app bundle and choose "Show Package Contents", are the image files there? Best Regards Panos -- On Tue, Dec 18, 2018 at 10:41 PM Dan Friedman via use-livecode > wrote: Greetings! I've never had this problem before? When I attempt to upload my app via the Application Loader, I get a number of errors: ERROR ITMS-90096: "Your binary is not optimized for iPhone 5 - New iPhone apps and app updates submitted must support the 4-inch display on iPhone 5 and must include a launch image referenced in the Info.plist under UILaunchImages with a UILaunchImageSize value set to {320, 568}. Launch images must be PNG files and located at the top-level of your bundle, or provided within each .lproj folder if you localize your launch images. Learn more about iPhone 5 support and app launch images by reviewing the 'iOS Human Interface Guidelines' at https://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen." ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons': 'AppIcon60x60'" ERROR ITMS-90022: "Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format for iOS versions >= 10.0." ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an app icon for iPad of exactly '152x152' pixels, in .png format for iOS versions >= 10.0." All icons are included in the App Settings (and they are correct, I triple checked!). Also, all Splash screens are included. I did not include the Portrait splash screens as the app does not use portrait display. Any thoughts? LC Indy 9.0.2 iOS SDK 11.2 MacOS 10.12.6 -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 jjs at krutt.org Tue Dec 18 16:00:33 2018 From: jjs at krutt.org (JJS) Date: Tue, 18 Dec 2018 22:00:33 +0100 Subject: Datagrid error... In-Reply-To: References: Message-ID: <62abe5d7-84fd-a57a-a090-3f4eeed7715c@krutt.org> ok thanks. Op 18-12-2018 om 20:33 schreef Trevor DeVore via use-livecode: > On Tue, Dec 18, 2018 at 12:16 PM JJS via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> quote" >> >> A `_ScrollListV` request sent in time might be >> able to create such a scenario." end quote >> >> Trevore is what you say not the same as what is written here: >> >> https://forums.livecode.com/viewtopic.php?f=104&p=172021&sid=73fc5b60aaa154dfddc7c723b563a370#p172019 >> >> although you figured it out technically. >> > Not necessarily. `_ScrollListV` is used regardless of the setting so it can > be called from a number of different code paths. > From paul at researchware.com Tue Dec 18 16:11:30 2018 From: paul at researchware.com (Paul Dupuis) Date: Tue, 18 Dec 2018 16:11:30 -0500 Subject: Datagrid error... In-Reply-To: References: Message-ID: <75adafc9-d9da-dd45-8542-156c1c939c21@researchware.com> On 12/18/2018 11:16 AM, Trevor DeVore via use-livecode wrote: > Now, all of this leads me to the following questions ? > > 1) Are you modifying the columns displayed in this Data Grid through code? > 2) If so, is it possible that you are updating the columns in the Data Grid > while the user is interacting with it? > Wow. Seriously Trevor. Thank you! It is possible the user could be interacting with the datagrid while a script is trying to update it. A report setting window allows the user to configure many many options for a "report". They then click Display and the report appears in another window in a datagrid (if 'Table' view is selected). They could change settings, click "Display" again and start scrolling or otherwise interacting with the previously displayed results when the script . Some reports are instantaneous, but some, depending on how much data the user has can take seconds to even many tens of minutes for our biggest data customers. So, I gather it may be better to have the Report settings "Display" script close the report display window while updating it (if it is open) and then reopen it once the results are populated. We have seen another behavior in our app where a user can start an operation (a script) that takes a while to run, switch to another 3rd party applications, and then back to a different Window in our App and we can get an execution error with the "object not found" because the previous script - still executing - was referencing objects in its window without using explicit object references and now the default window has changed. I thought we have weeded any such relative object references out, but now I am wondering it one or more may still be present in our reporting code. Does the idea to close the report display window if and when the datagrid is being updated make sense as a precaution? We can always lock the screen, close the window, update the datagrid contents, reopen the window and unlock the screen to minimize visible changes to the user. From hh at hyperhh.de Tue Dec 18 16:42:01 2018 From: hh at hyperhh.de (hh) Date: Tue, 18 Dec 2018 22:42:01 +0100 Subject: BrowserSnapshot_v015 Message-ID: <3163BB9F-79B0-4ACE-BA61-1063D60CA30B@hyperhh.de> BrowserSnapshot updated to v015: ? Removed a bug. ? Added also scrolling snapshots when the viewport is horizontally clipping. ? There is also an example for how to hide overlays (menu, chat, campaign) in pages like livecode.com (test livecode.com after the page is fully loaded). **This is now with all my tests better than using the javascript library.** > BrowserSnapshot makes an image of the *whole* HTML content of a browser widget > (while waiting for printToPdf from the browser widget in 9.x). > The image may get a height of several thousands pixels. > > This is a pure LC Script solution: > The widget is scrolled appropriate portions of the whole HTML page down and right > and a snapshot is made from these portions. Then the snapshots are merged into ONE > image of format PNG. > > Download BrowserSnapshot from "Sample Stacks" or > http://livecodeshare.runrev.com/stack/920/ From netdzynr at gmail.com Tue Dec 18 16:51:50 2018 From: netdzynr at gmail.com (Scott Rossi) Date: Tue, 18 Dec 2018 13:51:50 -0800 Subject: Map Widget with Custom Marker Message-ID: Hi All: Wondering if it's possible to use a custom marker with the map widget. I want to continuously track and show the user's location with a custom icon, but can't find any way to overlay an image on the widget, as it seems to be the equivalent of a web view. Thanks for any suggestions. From brian at milby7.com Tue Dec 18 17:07:56 2018 From: brian at milby7.com (Brian Milby) Date: Tue, 18 Dec 2018 16:07:56 -0600 Subject: Map Widget with Custom Marker In-Reply-To: References: Message-ID: It is a native layer so it the only LC object that would work would be another browser widget. ?There was a demo a while back of doing that. http://forums.livecode.com/viewtopic.php?p=172729#p172729 Thanks, Brian On Dec 18, 2018, 3:52 PM -0600, Scott Rossi via use-livecode , wrote: > Hi All: > > Wondering if it's possible to use a custom marker with the map widget. I > want to continuously track and show the user's location with a custom icon, > but can't find any way to overlay an image on the widget, as it seems to be > the equivalent of a web view. > > Thanks for any suggestions. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lists at mangomultimedia.com Tue Dec 18 17:11:43 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 18 Dec 2018 16:11:43 -0600 Subject: Datagrid error... In-Reply-To: <75adafc9-d9da-dd45-8542-156c1c939c21@researchware.com> References: <75adafc9-d9da-dd45-8542-156c1c939c21@researchware.com> Message-ID: On Tue, Dec 18, 2018 at 3:11 PM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > > Does the idea to close the report display window if and when the > datagrid is being updated make sense as a precaution? We can always lock > the screen, close the window, update the datagrid contents, reopen the > window and unlock the screen to minimize visible changes to the user. > I don't know that you need to close down the window. What about setting the dgData and dgColumns to empty so that the user can't interact with it while updating? Or overlay a semi-transparent graphic over the top that eats mouse events? Since you are upgrading to 9.0.2 you could also use the Spinner widget placed in the middle of the Data Grid to show that you are crunching some data. -- Trevor DeVore CTO - ScreenSteps www.screensteps.com From netdzynr at gmail.com Tue Dec 18 17:14:52 2018 From: netdzynr at gmail.com (Scott Rossi) Date: Tue, 18 Dec 2018 14:14:52 -0800 Subject: Map Widget with Custom Marker In-Reply-To: References: Message-ID: Thank you for the response, but getting a forum error 172729 doesn't exist(?). On Tue, Dec 18, 2018 at 2:09 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > It is a native layer so it the only LC object that would work would be > another browser widget. There was a demo a while back of doing that. > > http://forums.livecode.com/viewtopic.php?p=172729#p172729 > > Thanks, > Brian > On Dec 18, 2018, 3:52 PM -0600, Scott Rossi via use-livecode < > use-livecode at lists.runrev.com>, wrote: > > Hi All: > > > > Wondering if it's possible to use a custom marker with the map widget. I > > want to continuously track and show the user's location with a custom > icon, > > but can't find any way to overlay an image on the widget, as it seems to > be > > the equivalent of a web view. > > > > Thanks for any suggestions. > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Tue Dec 18 17:16:57 2018 From: paul at researchware.com (Paul Dupuis) Date: Tue, 18 Dec 2018 17:16:57 -0500 Subject: Datagrid error... In-Reply-To: References: <75adafc9-d9da-dd45-8542-156c1c939c21@researchware.com> Message-ID: <851ec4d1-e2e3-358e-1041-edd55ac9a7fe@researchware.com> On 12/18/2018 5:11 PM, Trevor DeVore via use-livecode wrote: > On Tue, Dec 18, 2018 at 3:11 PM Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Does the idea to close the report display window if and when the >> datagrid is being updated make sense as a precaution? We can always lock >> the screen, close the window, update the datagrid contents, reopen the >> window and unlock the screen to minimize visible changes to the user. >> > I don't know that you need to close down the window. What about setting the > dgData and dgColumns to empty so that the user can't interact with it while > updating? Or overlay a semi-transparent graphic over the top that eats > mouse events? Since you are upgrading to 9.0.2 you could also use the > Spinner widget placed in the middle of the Data Grid to show that you are > crunching some data. > Great suggestions. Thank you! From brian at milby7.com Tue Dec 18 17:18:24 2018 From: brian at milby7.com (Brian Milby) Date: Tue, 18 Dec 2018 16:18:24 -0600 Subject: Map Widget with Custom Marker In-Reply-To: References: Message-ID: <8e19ea43-180d-4a19-9c90-95b47b59cca5@Spark> Strange. ?Try this one (similar concept) http://forums.livecode.com/viewtopic.php?p=173867#p173867 Thanks, Brian On Dec 18, 2018, 4:15 PM -0600, Scott Rossi via use-livecode , wrote: > Thank you for the response, but getting a forum error 172729 doesn't > exist(?). > > On Tue, Dec 18, 2018 at 2:09 PM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > It is a native layer so it the only LC object that would work would be > > another browser widget. There was a demo a while back of doing that. > > > > http://forums.livecode.com/viewtopic.php?p=172729#p172729 > > > > Thanks, > > Brian > > On Dec 18, 2018, 3:52 PM -0600, Scott Rossi via use-livecode < > > use-livecode at lists.runrev.com>, wrote: > > > Hi All: > > > > > > Wondering if it's possible to use a custom marker with the map widget. I > > > want to continuously track and show the user's location with a custom > > icon, > > > but can't find any way to overlay an image on the widget, as it seems to > > be > > > the equivalent of a web view. > > > > > > Thanks for any suggestions. > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Tue Dec 18 17:38:36 2018 From: hh at hyperhh.de (hh) Date: Tue, 18 Dec 2018 23:38:36 +0100 Subject: Map Widget with Custom Marker Message-ID: <5C265EC3-4F9A-483D-9F71-591FDCCB8950@hyperhh.de> > Brian M. wrote: > Try this one (similar concept) > http://forums.livecode.com/viewtopic.php?p=173867#p173867 This will not work. I just tried: The map widget updates in short intervals like a movie. Even a native button disappears. So the overlaying native object should also use a fast update like http://forums.livecode.com/viewtopic.php?p=172789#p172789 which forces a fast update by playing a *non-existent movie. Another possibility with the map widget itself is to make the custom marker using polylines. (See property polylines of dictionary/map widget). Polylines[i]["ccordinates"] are a simple list of coordinate points, separated by comma (not by cr). So one could try to exercise that with an ordinary polygon graphic over a static map (an image). From colinholgate at gmail.com Tue Dec 18 18:33:41 2018 From: colinholgate at gmail.com (Colin Holgate) Date: Tue, 18 Dec 2018 23:33:41 +0000 Subject: Can't Submit App to iTunes In-Reply-To: <4584EBCF-E406-4446-9BB3-A5224B1716D7@clearvisiontech.com> References: <13956E05-D098-4443-BAEC-6EDBDCBCD3AA@clearvisiontech.com> <4584EBCF-E406-4446-9BB3-A5224B1716D7@clearvisiontech.com> Message-ID: <0F0E4D07-E553-4449-B341-82274B068787@gmail.com> iPhone 5 support requires Default-568h at 2x.png. It is a portrait image (640x1136), but it?s needed for landscape apps too. It?s what Apple uses to decide that you want to use the extra space, as opposed to having an iPhone 4 app that is centered with black borders. For a landscape app it would be your 16:9 splash screen image rotated clockwise 90 degrees. From bobsneidar at iotecdigital.com Tue Dec 18 19:34:09 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 19 Dec 2018 00:34:09 +0000 Subject: Datagrid error... In-Reply-To: References: <75adafc9-d9da-dd45-8542-156c1c939c21@researchware.com> Message-ID: <2046124A-765D-412B-A5B3-AB27FB19B841@iotecdigital.com> There is a dgProp to disable interaction with the datagrid. Bob S > On Dec 18, 2018, at 14:11 , Trevor DeVore via use-livecode wrote: > > On Tue, Dec 18, 2018 at 3:11 PM Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> >> Does the idea to close the report display window if and when the >> datagrid is being updated make sense as a precaution? We can always lock >> the screen, close the window, update the datagrid contents, reopen the >> window and unlock the screen to minimize visible changes to the user. >> > > I don't know that you need to close down the window. What about setting the > dgData and dgColumns to empty so that the user can't interact with it while > updating? Or overlay a semi-transparent graphic over the top that eats > mouse events? Since you are upgrading to 9.0.2 you could also use the > Spinner widget placed in the middle of the Data Grid to show that you are > crunching some data. > > -- > Trevor DeVore From bobsneidar at iotecdigital.com Tue Dec 18 19:51:49 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 19 Dec 2018 00:51:49 +0000 Subject: Datagrid error... In-Reply-To: <2046124A-765D-412B-A5B3-AB27FB19B841@iotecdigital.com> References: <75adafc9-d9da-dd45-8542-156c1c939c21@researchware.com> <2046124A-765D-412B-A5B3-AB27FB19B841@iotecdigital.com> Message-ID: Whoops! Not true. Just disable the datagrid group. Bob S > On Dec 18, 2018, at 16:34 , Bob Sneidar via use-livecode wrote: > > There is a dgProp to disable interaction with the datagrid. > > Bob S > > >> On Dec 18, 2018, at 14:11 , Trevor DeVore via use-livecode wrote: >> >> On Tue, Dec 18, 2018 at 3:11 PM Paul Dupuis via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> >>> Does the idea to close the report display window if and when the >>> datagrid is being updated make sense as a precaution? We can always lock >>> the screen, close the window, update the datagrid contents, reopen the >>> window and unlock the screen to minimize visible changes to the user. >>> >> >> I don't know that you need to close down the window. What about setting the >> dgData and dgColumns to empty so that the user can't interact with it while >> updating? Or overlay a semi-transparent graphic over the top that eats >> mouse events? Since you are upgrading to 9.0.2 you could also use the >> Spinner widget placed in the middle of the Data Grid to show that you are >> crunching some data. >> >> -- >> Trevor DeVore > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From preid at reidit.co.uk Wed Dec 19 06:37:16 2018 From: preid at reidit.co.uk (Peter Reid) Date: Wed, 19 Dec 2018 11:37:16 +0000 Subject: FYI: How to reliably identify an Android Tablet microSD Card In-Reply-To: <259BB5C1-3234-4773-8987-6A60678051D0@reidit.co.uk> References: <259BB5C1-3234-4773-8987-6A60678051D0@reidit.co.uk> Message-ID: <19CD9708-BE88-4AEE-A0CA-0807610C48BE@reidit.co.uk> FYI I've managed to put together some code that reliably locates the microSD card in 4 very different Android-based tablets. The approach involves 3 different methods: 1. Search for a known folder on the SD card starting in the standard "/mnt" folder using a breadth-first search strategy. 2. Search for a known folder on the SD card starting in the less standard "/storage" folder using a breadth-first search strategy. 3. Search for a known folder using full paths that are used by specific manufacturers. These look as though they should be located by method 1. (they are all paths from "/mnt") but sometimes fail 1. however they work if the full path is specified! Here's my code for "findSDcard"... ---------------- on findSDcard constant \ cSDcardRoot1 = "/mnt/ext_sdcard/Android/data/com.myorg.myapp/files", \ cSDcardRoot2 = "/mnt/sdcard2/Android/data/com.myorg.myapp/files", \ cSDcardRoot3 = "/mnt/m_external_sd/Android/data/com.myorg.myapp/files", \ cSDcardRoot4 = "/mnt/sdcard/Android/data/com.myorg.myapp/files", \ cSDcardRoot5 = "/mnt/extSdCard/Android/data/com.myorg.myapp/files", \ cSDcardRoot6 = "/mnt/external_sd/Android/data/com.myorg.myapp/files", \ cSDcardRoot7 = "/mnt/SDCard/Android/data/com.myorg.myapp/files" global gDataPath -- /myapp-data global gSDcard -- path to app's data folder set wholeMatches to true put empty into gSDcard put (char 2 to -1 of gDataPath) into tTargetFolderName if the platform is "android" then put "/mnt" into tDeviceRoot if there is a folder tDeviceRoot then -- search in standard /mnt folders: put empty into tFoundPath folderExists tTargetFolderName, tDeviceRoot, tFoundPath if tFoundPath is not empty then put tFoundPath into gSDcard end if end if if gSDcard is empty then -- try non-standard /storage folders: if there is a folder "/storage" then -- search in non-standard /storage folders: put "/storage" into tDeviceRoot put empty into tFoundPath folderExists tTargetFolderName, tDeviceRoot, tFoundPath if tFoundPath is not empty then put tFoundPath into gSDcard end if end if end if if gSDcard is empty then -- try bespoke SD locations: if there is a folder cSDcardRoot1 then put cSDcardRoot1 into gSDcard -- Huawei else if there is a folder cSDcardRoot2 then put cSDcardRoot2 into gSDcard -- Amazon else if there is a folder cSDcardRoot3 then put cSDcardRoot3 into gSDcard -- Lenovo else if there is a folder cSDcardRoot4 then put cSDcardRoot4 into gSDcard -- Fusion else if there is a folder cSDcardRoot5 then put cSDcardRoot5 into gSDcard -- ?? else if there is a folder cSDcardRoot6 then put cSDcardRoot6 into gSDcard -- ?? else if there is a folder cSDcardRoot7 then put cSDcardRoot7 into gSDcard -- Hudl? end if end if end if end findSDcard on folderExists pFolderName, pRootPath, @pFoundPath constant cNoDotsRegex = "^\..*" -- breadth-first search for a given folder put empty into pPath if there is a folder pRootPath then put empty into tSubFolders put folders(pRootPath) into tFolderList filter lines of tFolderList without regex cNoDotsRegex repeat for each line tFolder in tFolderList if tFolder = pFolderName then -- found it: put pRootPath into pFoundPath exit folderExists else -- add sub-folder to list for checking: put pRootPath & "/" & tFolder & return after tSubFolders end if end repeat if tSubFolders is empty then exit folderExists end if repeat for each line tSubFolder in tSubFolders folderExists pFolderName, tSubFolder, pFoundPath if pFoundPath is not empty then exit folderExists end if end repeat end if end folderExists ---------------- Note that the above was necessary because specialFolderPath("external documents") doesn't work reliably across the 4 Android-based tablets I'm trying to support. If anyone has a more elegant or succinct method, please let me know. In the meantime you're welcome to use the above code. Peter -- Peter Reid Loughborough, UK > On 28 Nov 2018, at 11:49am, Peter Reid wrote: > > I've got an app running on an Android 8.1 7in tablet which uses a microSD card for its RW data storage. I've tried using: > > specialFolderPath("external documents") > > which the docs describe as follows: > > ? "external documents": The folder on the primary shared/external storage device where application-specific data can be placed > but this doesn't point to the microSD. > > Instead I'm having to try to pause the app and then search around for the microSD. So far I've found 7 different locations for the microSD, depending on the model of tablet: > > 1. /mnt/ext_sdcard/Android/data/com.reidit.myapp/files > > 2. /mnt/sdcard2/Android/data/com.reidit.myapp/files > > 3. /mnt/m_external_sd/Android/data/com.reidit.myapp/files > > 4. /mnt/sdcard/Android/data/com.reidit.myapp/files > > 5. /mnt/extSdCard/Android/data/com.reidit.myapp/files > > 6. /mnt/external_sd/Android/data/com.reidit.myapp/files > > 7. /mnt/SDCard/Android/data/com.reidit.myapp/files > > where the ../files folder is located in the microSD filing system as follows: > > /Android > /data > /com.reidit.myapp > /files > > Whenever I try to install my app on a different Android tablet, I have to go hunting for the exact filing system for the 1st part of the microSD: > > /mnt// > > The tail of /Android/data/com.reidit.myapp/files seems to be consistent. It seems that the only variable is the part. > > However, I have 2 tablets (Android 5.1 and Android 8.1) where I haven't been able to locate the microSD card at all! > > Any suggestions about how to reliably locate the microSD card in an Android tablet? > > Peter > -- > Peter Reid > Loughborough, UK > From dan at clearvisiontech.com Wed Dec 19 10:52:25 2018 From: dan at clearvisiontech.com (Dan Friedman) Date: Wed, 19 Dec 2018 15:52:25 +0000 Subject: Can't Submit App to iTunes In-Reply-To: References: <13956E05-D098-4443-BAEC-6EDBDCBCD3AA@clearvisiontech.com> Message-ID: Panos, Any word on this issue? Colin Holgate suggested that I add all the portrait splash screen images even thou my app doesn't display in portrait. I did that, and I got the exact same errors from Application Loader. -Dan From: panagiotis merakos Date: Tuesday, December 18, 2018 at 12:54 PM To: How to use LiveCode Cc: Dan Friedman Subject: Re: Can't Submit App to iTunes Hello Dan, If you right click on the .app bundle and choose "Show Package Contents", are the image files there? Best Regards Panos -- On Tue, Dec 18, 2018 at 10:41 PM Dan Friedman via use-livecode wrote: Greetings! I've never had this problem before? When I attempt to upload my app via the Application Loader, I get a number of errors: ERROR ITMS-90096: "Your binary is not optimized for iPhone 5 - New iPhone apps and app updates submitted must support the 4-inch display on iPhone 5 and must include a launch image referenced in the Info.plist under UILaunchImages with a UILaunchImageSize value set to {320, 568}. Launch images must be PNG files and located at the top-level of your bundle, or provided within each .lproj folder if you localize your launch images. Learn more about iPhone 5 support and app launch images by reviewing the 'iOS Human Interface Guidelines' at https://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen." ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons': 'AppIcon60x60'" ERROR ITMS-90022: "Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format for iOS versions >= 10.0." ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an app icon for iPad of exactly '152x152' pixels, in .png format for iOS versions >= 10.0." All icons are included in the App Settings (and they are correct, I triple checked!).? Also, all Splash screens are included.? I did not include the Portrait splash screens as the app does not use portrait display. Any thoughts? LC Indy 9.0.2 iOS SDK 11.2 MacOS 10.12.6 -Dan _______________________________________________ use-livecode mailing list mailto:use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From merakosp at gmail.com Wed Dec 19 11:01:20 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Wed, 19 Dec 2018 18:01:20 +0200 Subject: Can't Submit App to iTunes In-Reply-To: References: <13956E05-D098-4443-BAEC-6EDBDCBCD3AA@clearvisiontech.com> Message-ID: Hello Dan, Indeed, Default-568h at 2x.png is required. In fact the standalone builder puts a default image in the app bundle named "Default-568h at 2x.png" in case the user does not provide any. Since you have provided all the necessary icons and splash screens, I do not see any reason why they don't appear (all of them) in the app bundle. I take it that all the icons and splash screens you have provided are all of the required dimensions, as specified in the tooltips of the icon/splash fields, is that correct? If you think it is a bug, then I suggest you file a report at quality.livecode.com and send us (either to panos.merakos at livecode.com or to support at livecode.com) you full stack and the set of images and icons you use. BTW what is the minimum target iOS version in the iOS standalone settings? It might be worth changing it to "8.0 or later" and see if you still get these errors. Kind regards, Panos -- On Wed, Dec 19, 2018 at 5:52 PM Dan Friedman wrote: > Panos, > > Any word on this issue? Colin Holgate suggested that I add all the > portrait splash screen images even thou my app doesn't display in > portrait. I did that, and I got the exact same errors from Application > Loader. > > -Dan > > > From: panagiotis merakos > Date: Tuesday, December 18, 2018 at 12:54 PM > To: How to use LiveCode > Cc: Dan Friedman > Subject: Re: Can't Submit App to iTunes > > Hello Dan, > > If you right click on the .app bundle and choose "Show Package Contents", > are the image files there? > > Best Regards > Panos > -- > > On Tue, Dec 18, 2018 at 10:41 PM Dan Friedman via use-livecode use-livecode at lists.runrev.com> wrote: > Greetings! > > I've never had this problem before? When I attempt to upload my app via > the Application Loader, I get a number of errors: > > ERROR ITMS-90096: "Your binary is not optimized for iPhone 5 - New iPhone > apps and app updates submitted must support the 4-inch display on iPhone 5 > and must include a launch image referenced in the Info.plist under > UILaunchImages with a UILaunchImageSize value set to {320, 568}. Launch > images must be PNG files and located at the top-level of your bundle, or > provided within each .lproj folder if you localize your launch images. > Learn more about iPhone 5 support and app launch images by reviewing the > 'iOS Human Interface Guidelines' at > https://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen > ." > > ERROR ITMS-90032: "Invalid Image Path - No image found at the path > referenced under key 'CFBundleIcons': 'AppIcon60x60'" > > ERROR ITMS-90022: "Missing required icon file. The bundle does not contain > an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png > format for iOS versions >= 10.0." > > ERROR ITMS-90023: "Missing required icon file. The bundle does not contain > an app icon for iPad of exactly '152x152' pixels, in .png format for iOS > versions >= 10.0." > > All icons are included in the App Settings (and they are correct, I triple > checked!). Also, all Splash screens are included. I did not include the > Portrait splash screens as the app does not use portrait display. > > Any thoughts? > > LC Indy 9.0.2 > iOS SDK 11.2 > MacOS 10.12.6 > > -Dan > _______________________________________________ > use-livecode mailing list > mailto:use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > From dan at clearvisiontech.com Wed Dec 19 11:38:25 2018 From: dan at clearvisiontech.com (Dan Friedman) Date: Wed, 19 Dec 2018 16:38:25 +0000 Subject: Can't Submit App to iTunes In-Reply-To: References: <13956E05-D098-4443-BAEC-6EDBDCBCD3AA@clearvisiontech.com> Message-ID: <4DABAD85-0926-4B4C-95CB-3BC50DD47EDC@clearvisiontech.com> Panos, This an update to an older project. LC is finding the icons and splash screens because it's not throwing an error or warning at build. But, I cleared all the icons and splash screens in the Standalone Application Settings and re-selected them. That seemd to resolve the issue! Wheew! I'll make it a habit to re-select these files when updating older projects. Something must have changed with these paths between versions of LC. Thanks for the help! -Dan From: panagiotis merakos Date: Wednesday, December 19, 2018 at 8:01 AM To: Dan Friedman Cc: How to use LiveCode Subject: Re: Can't Submit App to iTunes Hello Dan, Indeed, Default-568h at 2x.png is required. In fact the standalone builder puts a default image in the app bundle named "Default-568h at 2x.png" in case the user does not provide any. Since you have provided all the necessary icons and splash screens, I do not see any reason why they don't appear (all of them) in the app bundle. I take it that all the icons and splash screens you have provided are all of the required dimensions, as specified in the tooltips of the icon/splash fields, is that correct? If you think it is a bug, then I suggest you file a report at quality.livecode.com and send us (either to panos.merakos at livecode.com or to support at livecode.com) you full stack and the set of images and icons you use. BTW what is the minimum target iOS version in the iOS standalone settings? It might be worth changing it to "8.0 or later" and see if you still get these errors. Kind regards, Panos -- On Wed, Dec 19, 2018 at 5:52 PM Dan Friedman > wrote: Panos, Any word on this issue? Colin Holgate suggested that I add all the portrait splash screen images even thou my app doesn't display in portrait. I did that, and I got the exact same errors from Application Loader. -Dan From: panagiotis merakos > Date: Tuesday, December 18, 2018 at 12:54 PM To: How to use LiveCode > Cc: Dan Friedman > Subject: Re: Can't Submit App to iTunes Hello Dan, If you right click on the .app bundle and choose "Show Package Contents", are the image files there? Best Regards Panos -- On Tue, Dec 18, 2018 at 10:41 PM Dan Friedman via use-livecode > wrote: Greetings! I've never had this problem before? When I attempt to upload my app via the Application Loader, I get a number of errors: ERROR ITMS-90096: "Your binary is not optimized for iPhone 5 - New iPhone apps and app updates submitted must support the 4-inch display on iPhone 5 and must include a launch image referenced in the Info.plist under UILaunchImages with a UILaunchImageSize value set to {320, 568}. Launch images must be PNG files and located at the top-level of your bundle, or provided within each .lproj folder if you localize your launch images. Learn more about iPhone 5 support and app launch images by reviewing the 'iOS Human Interface Guidelines' at https://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen." ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons': 'AppIcon60x60'" ERROR ITMS-90022: "Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format for iOS versions >= 10.0." ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an app icon for iPad of exactly '152x152' pixels, in .png format for iOS versions >= 10.0." All icons are included in the App Settings (and they are correct, I triple checked!). Also, all Splash screens are included. I did not include the Portrait splash screens as the app does not use portrait display. Any thoughts? LC Indy 9.0.2 iOS SDK 11.2 MacOS 10.12.6 -Dan _______________________________________________ use-livecode mailing list mailto:use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Wed Dec 19 18:57:17 2018 From: tom at makeshyft.com (Tom Glod) Date: Wed, 19 Dec 2018 18:57:17 -0500 Subject: [ANN] bnGuides alignment tool on ivecodeshare In-Reply-To: <054103E4-E705-4402-BC0F-65CB1ABB5C77@uni-wh.de> References: <054103E4-E705-4402-BC0F-65CB1ABB5C77@uni-wh.de> Message-ID: This is a cool little plugin for the community PS > I can't wait for the new stack share center. On Tue, Dec 18, 2018 at 10:44 AM Niggemann, Bernd via use-livecode < use-livecode at lists.runrev.com> wrote: > I have put a stack "bnGuides" on livecodeshare (or access it from "Sample > Stacks" from within LC). > It is best used as a plugin. > > http://livecodeshare.runrev.com/stack/918/BnGuides > > It helps with visual guides to align objects. It complements the build-in > alignment tool. > Feedback welcome. > > Kind regards > Bernd > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From matthias_livecode_150811 at m-r-d.de Wed Dec 19 19:40:53 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 20 Dec 2018 01:40:53 +0100 Subject: [ANN] bnGuides alignment tool on ivecodeshare In-Reply-To: <054103E4-E705-4402-BC0F-65CB1ABB5C77@uni-wh.de> References: <054103E4-E705-4402-BC0F-65CB1ABB5C77@uni-wh.de> Message-ID: <9305358C-5EE2-4673-BB58-C0614E09F92B@m-r-d.de> Bernd, thank you very much for useful plugin. Matthias Rebbe free tools for Livecoders: https://instamaker.dermattes.de https://winsignhelper.dermattes.de > Am 18.12.2018 um 16:44 schrieb Niggemann, Bernd via use-livecode : > > I have put a stack "bnGuides" on livecodeshare (or access it from "Sample Stacks" from within LC). > It is best used as a plugin. > > http://livecodeshare.runrev.com/stack/918/BnGuides > > It helps with visual guides to align objects. It complements the build-in alignment tool. > Feedback welcome. > > Kind regards > Bernd > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From terry.judd at unimelb.edu.au Wed Dec 19 19:58:15 2018 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Thu, 20 Dec 2018 00:58:15 +0000 Subject: How to give swiping precedence over scrolling on mobile? Message-ID: <4E1CE32B-2F59-4ACF-9796-3C93E4E0682C@unimelb.edu.au> This is a problem that I have run into before and have never been able to solve satisfactorily. I?m using touchStart and touchEnd handlers to detect the direction and speed of a finger movement and if it is within certain bounds (large enough x, small enough y, and fast enough) then the user can swipe back and forwards through a series of cards. Good so far except when the area they are swiping on also includes a mobile scroller (to scroll a list selection widget/thingy). In that situation the swiping becomes a bit of a hit and miss thing ? works sometimes but not others. On iOS there are a few scroller parameters look potentially useful (canCancelTouches, delayTouches, and lockDirection) but it?s not really clear (to me at least) which of these might help and if so whether I should be setting them to true or false. Any ideas? Terry... From brahma at hindu.org Thu Dec 20 07:52:23 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 20 Dec 2018 12:52:23 +0000 Subject: How to give swiping precedence over scrolling on mobile? In-Reply-To: <4E1CE32B-2F59-4ACF-9796-3C93E4E0682C@unimelb.edu.au> References: <4E1CE32B-2F59-4ACF-9796-3C93E4E0682C@unimelb.edu.au> Message-ID: Terry, I'm interested in this also. Get the SivaSiva app ( no space... from iOS and Google Play) In the Listen Module, with Elanor's help, I tried to set up a "Spotify" UX with categories of audio scroll and up and down, and within on categories, left to right. I also get, what is a probably the same as you get, a "conflict" between Elanor touch events -- from scrolling left with right and up and down. In this case we don?t use the mobileScroller at all in mobile, both up and down, left and right, are implement with touch. But I think it is the same thing as you have... What I am seeing is: when the up and down in active, the left to right touch is disabled. It "kinda" works for the user but is very "clunky". I tried playing with touch startx and y numbers. It gets "worse" as you go down in size. The script is small enough to put here. Would be nice of this were fixed but I don?t seeing how the engine would do it. It would seem that the pTouchX and pTouchY are managing the scroll independently. So you try a "swipe" gesture with your thumb that goes "diagonally" that is, changes is location on the both "x" and "y" axes ... the engine is going to focus on say just the "y" cords -- you get an up to down scroll or vice-versa-- but "x" coord are not "seen" and you don't get any left of right behavior -- in you case, a card swipe, in my case a group swipe left to right fails. Until you stop and "focus" carefully on "x" axes gesture (left to right, or vice versa). then you get you Card/Group swipe horizontally... on touchStart pTouchID put empty into sStartX put empty into sStartY put the vScroll of grp "all-collections" into sStartYScroll put the long owner of the target into tHGroup put the hScroll of tHGroup into sStartHScroll end touchStart on touchMove pTouchID, pTouchX, pTouchY if sStartY is empty then put pTouchY into sStartY end if if sStartX is empty then put pTouchX into sStartX end if // Check for vertical scroll if pTouchY > (sStartY + 20) or pTouchY < (sStartY - 20) then set the vScroll of group "all-collections" to sStartYScroll + (sStartY-pTouchY) else if pTouchX > (sStartX + 10) or pTouchX < (sStartX - 10) then // Check for horizontal scroll put the long owner of the target into tHGroup set the hScroll of tHGroup to sStartHScroll + (sStartX-pTouchX) end if end if end touchMove on touchEnd pTouchID -- code end touchEnd on touchRelease pTouchID -- code end touchRelease I wish there was are easy fix...but I suspect "not" Brahmanathaswami ?On 12/19/18, 2:58 PM, "use-livecode on behalf of Terry Judd via use-livecode" wrote: This is a problem that I have run into before and have never been able to solve satisfactorily. I?m using touchStart and touchEnd handlers to detect the direction and speed of a finger movement and if it is within certain bounds (large enough x, small enough y, and fast enough) then the user can swipe back and forwards through a series of cards. Good so far except when the area they are swiping on also includes a mobile scroller (to scroll a list selection widget/thingy). In that situation the swiping becomes a bit of a hit and miss thing ? works sometimes but not others. On iOS there are a few scroller parameters look potentially useful (canCancelTouches, delayTouches, and lockDirection) but it?s not really clear (to me at least) which of these might help and if so whether I should be setting them to true or false. Any ideas? Terry... From bobsneidar at iotecdigital.com Thu Dec 20 10:47:40 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 20 Dec 2018 15:47:40 +0000 Subject: FYI: How to reliably identify an Android Tablet microSD Card In-Reply-To: <19CD9708-BE88-4AEE-A0CA-0807610C48BE@reidit.co.uk> References: <259BB5C1-3234-4773-8987-6A60678051D0@reidit.co.uk> <19CD9708-BE88-4AEE-A0CA-0807610C48BE@reidit.co.uk> Message-ID: Interesting approach. Of course, the downside is that if anything changes, the method becomes ineffective for that new device or for all andriods if the change is fundamental enough. Bob S > On Dec 19, 2018, at 03:37 , Peter Reid via use-livecode wrote: > > FYI > > I've managed to put together some code that reliably locates the microSD card in 4 very different Android-based tablets. The approach involves 3 different methods: > > 1. Search for a known folder on the SD card starting in the standard "/mnt" folder using a breadth-first search strategy. > > 2. Search for a known folder on the SD card starting in the less standard "/storage" folder using a breadth-first search strategy. > > 3. Search for a known folder using full paths that are used by specific manufacturers. These look as though they should be located by method 1. (they are all paths from "/mnt") but sometimes fail 1. however they work if the full path is specified! > > Here's my code for "findSDcard"... > > ---------------- > > on findSDcard > constant \ > cSDcardRoot1 = "/mnt/ext_sdcard/Android/data/com.myorg.myapp/files", \ > cSDcardRoot2 = "/mnt/sdcard2/Android/data/com.myorg.myapp/files", \ > cSDcardRoot3 = "/mnt/m_external_sd/Android/data/com.myorg.myapp/files", \ > cSDcardRoot4 = "/mnt/sdcard/Android/data/com.myorg.myapp/files", \ > cSDcardRoot5 = "/mnt/extSdCard/Android/data/com.myorg.myapp/files", \ > cSDcardRoot6 = "/mnt/external_sd/Android/data/com.myorg.myapp/files", \ > cSDcardRoot7 = "/mnt/SDCard/Android/data/com.myorg.myapp/files" > > global gDataPath -- /myapp-data > global gSDcard -- path to app's data folder > > set wholeMatches to true > put empty into gSDcard > put (char 2 to -1 of gDataPath) into tTargetFolderName > if the platform is "android" then > put "/mnt" into tDeviceRoot > if there is a folder tDeviceRoot then > -- search in standard /mnt folders: > put empty into tFoundPath > folderExists tTargetFolderName, tDeviceRoot, tFoundPath > if tFoundPath is not empty then > put tFoundPath into gSDcard > end if > end if > if gSDcard is empty then > -- try non-standard /storage folders: > if there is a folder "/storage" then > -- search in non-standard /storage folders: > put "/storage" into tDeviceRoot > put empty into tFoundPath > folderExists tTargetFolderName, tDeviceRoot, tFoundPath > if tFoundPath is not empty then > put tFoundPath into gSDcard > end if > end if > end if > if gSDcard is empty then > -- try bespoke SD locations: > if there is a folder cSDcardRoot1 then > put cSDcardRoot1 into gSDcard -- Huawei > else if there is a folder cSDcardRoot2 then > put cSDcardRoot2 into gSDcard -- Amazon > else if there is a folder cSDcardRoot3 then > put cSDcardRoot3 into gSDcard -- Lenovo > else if there is a folder cSDcardRoot4 then > put cSDcardRoot4 into gSDcard -- Fusion > else if there is a folder cSDcardRoot5 then > put cSDcardRoot5 into gSDcard -- ?? > else if there is a folder cSDcardRoot6 then > put cSDcardRoot6 into gSDcard -- ?? > else if there is a folder cSDcardRoot7 then > put cSDcardRoot7 into gSDcard -- Hudl? > end if > end if > end if > end findSDcard > > on folderExists pFolderName, pRootPath, @pFoundPath > constant cNoDotsRegex = "^\..*" > > -- breadth-first search for a given folder > put empty into pPath > if there is a folder pRootPath then > put empty into tSubFolders > put folders(pRootPath) into tFolderList > filter lines of tFolderList without regex cNoDotsRegex > repeat for each line tFolder in tFolderList > if tFolder = pFolderName then > -- found it: > put pRootPath into pFoundPath > exit folderExists > else > -- add sub-folder to list for checking: > put pRootPath & "/" & tFolder & return after tSubFolders > end if > end repeat > if tSubFolders is empty then > exit folderExists > end if > repeat for each line tSubFolder in tSubFolders > folderExists pFolderName, tSubFolder, pFoundPath > if pFoundPath is not empty then > exit folderExists > end if > end repeat > end if > end folderExists > > ---------------- > > Note that the above was necessary because specialFolderPath("external documents") doesn't work reliably across the 4 Android-based tablets I'm trying to support. > > If anyone has a more elegant or succinct method, please let me know. In the meantime you're welcome to use the above code. > > Peter > -- > Peter Reid > Loughborough, UK > >> On 28 Nov 2018, at 11:49am, Peter Reid wrote: >> >> I've got an app running on an Android 8.1 7in tablet which uses a microSD card for its RW data storage. I've tried using: >> >> specialFolderPath("external documents") >> >> which the docs describe as follows: >> >> ? "external documents": The folder on the primary shared/external storage device where application-specific data can be placed >> but this doesn't point to the microSD. >> >> Instead I'm having to try to pause the app and then search around for the microSD. So far I've found 7 different locations for the microSD, depending on the model of tablet: >> >> 1. /mnt/ext_sdcard/Android/data/com.reidit.myapp/files >> >> 2. /mnt/sdcard2/Android/data/com.reidit.myapp/files >> >> 3. /mnt/m_external_sd/Android/data/com.reidit.myapp/files >> >> 4. /mnt/sdcard/Android/data/com.reidit.myapp/files >> >> 5. /mnt/extSdCard/Android/data/com.reidit.myapp/files >> >> 6. /mnt/external_sd/Android/data/com.reidit.myapp/files >> >> 7. /mnt/SDCard/Android/data/com.reidit.myapp/files >> >> where the ../files folder is located in the microSD filing system as follows: >> >> /Android >> /data >> /com.reidit.myapp >> /files >> >> Whenever I try to install my app on a different Android tablet, I have to go hunting for the exact filing system for the 1st part of the microSD: >> >> /mnt// >> >> The tail of /Android/data/com.reidit.myapp/files seems to be consistent. It seems that the only variable is the part. >> >> However, I have 2 tablets (Android 5.1 and Android 8.1) where I haven't been able to locate the microSD card at all! >> >> Any suggestions about how to reliably locate the microSD card in an Android tablet? >> >> Peter >> -- >> Peter Reid >> Loughborough, UK >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Dec 20 10:52:18 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 20 Dec 2018 15:52:18 +0000 Subject: [ANN] bnGuides alignment tool on ivecodeshare In-Reply-To: References: <054103E4-E705-4402-BC0F-65CB1ABB5C77@uni-wh.de> Message-ID: <1D068AD4-2FFD-451A-BA45-D3B75B04D960@iotecdigital.com> Cool. Now I haven't tried it yet, but what would REALLY be cool is if it aligned a group based upon the contents of another group. That may be asking too much though. The way Illustrator goes about it is it tracks all points, then indicates whenever points align. Not sure how you did it though. Bob S > On Dec 19, 2018, at 15:57 , Tom Glod via use-livecode wrote: > > This is a cool little plugin for the community > > PS > I can't wait for the new stack share center. From Bernd.Niggemann at uni-wh.de Thu Dec 20 13:10:44 2018 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Thu, 20 Dec 2018 18:10:44 +0000 Subject: [ANN] bnGuides alignment tool on ivecodeshare In-Reply-To: References: Message-ID: <3F64CBAD-294C-48DD-AF94-B38B08EDCE29@uni-wh.de> Thanks Tom, Matthias, glad you like "bnGuides" >Bob Sneidar via use-livecode Thu, 20 Dec 2018 07:53:51 -0800 >Cool. Now I haven't tried it yet, but what would REALLY be cool is if it >aligned a group based upon the contents of another group. That may be asking >too much though. >The way Illustrator goes about it is it tracks all points, then indicates >whenever points align. Not sure how you did it though. Thanks Bob, Actually coming to think of it it would be easiest for you to just try "bnGuides". When dealing with groups try with "Select Grouped" turned on and off. When turned on select the members of the group and click one control as the leading control. When "Select Grouped" is turned off just select the group and drag it around and see how it deals with the members of the other group. Note, the datagrid is just one group, the elements of the datagrid are not scanned. for your convenience http://livecodeshare.runrev.com/stack/918/BnGuides or from "user samples" from within LC Kind regards Bernd From jhurley0305 at sbcglobal.net Thu Dec 20 15:22:17 2018 From: jhurley0305 at sbcglobal.net (James Hurley) Date: Thu, 20 Dec 2018 12:22:17 -0800 Subject: Versions 7.1.1 and 8.1.3 no long working properly In-Reply-To: References: Message-ID: I am having trouble running a stack on 7.1.1, Community I have had no problem with it in the past. But now it will not display the Tools Palette. Closing any window I get the message ?Do you want to save?.? I have to click ?Cancel? to proceed The stack runs, but erratically. So I thought I would try 8.1.3 and have similar problems. Still the message ?Do yo want to save?? when I close any window. Is it me? Jim Hurley From harrison at all-auctions.com Thu Dec 20 15:43:18 2018 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 20 Dec 2018 15:43:18 -0500 Subject: Versions 7.1.1 and 8.1.3 no long working properly In-Reply-To: References: Message-ID: Hi Jim, Those are older versions. Try version 7.1.4 and 8.1.10 to see if you still have the same problem. Hope it works! Rick > On Dec 20, 2018, at 3:22 PM, James Hurley via use-livecode wrote: > > I am having trouble running a stack on 7.1.1, Community > > I have had no problem with it in the past. > > But now it will not display the Tools Palette. > > Closing any window I get the message ?Do you want to save?.? I have to click ?Cancel? to proceed > > The stack runs, but erratically. > > So I thought I would try 8.1.3 and have similar problems. Still the message ?Do yo want to save?? when I close any window. > > Is it me? > > Jim Hurley From terry.judd at unimelb.edu.au Thu Dec 20 17:18:05 2018 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Thu, 20 Dec 2018 22:18:05 +0000 Subject: How to give swiping precedence over scrolling on mobile? In-Reply-To: References: <4E1CE32B-2F59-4ACF-9796-3C93E4E0682C@unimelb.edu.au> Message-ID: <61D6A287-BD5D-45CB-A18A-B862B93DFD18@unimelb.edu.au> Thanks Brahmanathaswami - was thinking about this again last night and in my case I think I might be able to get it to work for me if I just use touchmove (and only track the y delta) for the vertical scrolling and touchend for the swiping, which is for card to card navigation rather than horizontal scrolling. Regards, Terry... ?On 20/12/2018 11:53 pm, "use-livecode on behalf of Sannyasin Brahmanathaswami via use-livecode" wrote: Terry, I'm interested in this also. Get the SivaSiva app ( no space... from iOS and Google Play) In the Listen Module, with Elanor's help, I tried to set up a "Spotify" UX with categories of audio scroll and up and down, and within on categories, left to right. I also get, what is a probably the same as you get, a "conflict" between Elanor touch events -- from scrolling left with right and up and down. In this case we don?t use the mobileScroller at all in mobile, both up and down, left and right, are implement with touch. But I think it is the same thing as you have... What I am seeing is: when the up and down in active, the left to right touch is disabled. It "kinda" works for the user but is very "clunky". I tried playing with touch startx and y numbers. It gets "worse" as you go down in size. The script is small enough to put here. Would be nice of this were fixed but I don?t seeing how the engine would do it. It would seem that the pTouchX and pTouchY are managing the scroll independently. So you try a "swipe" gesture with your thumb that goes "diagonally" that is, changes is location on the both "x" and "y" axes ... the engine is going to focus on say just the "y" cords -- you get an up to down scroll or vice-versa-- but "x" coord are not "seen" and you don't get any left of right behavior -- in you case, a card swipe, in my case a group swipe left to right fails. Until you stop and "focus" carefully on "x" axes gesture (left to right, or vice versa). then you get you Card/Group swipe horizontally... on touchStart pTouchID put empty into sStartX put empty into sStartY put the vScroll of grp "all-collections" into sStartYScroll put the long owner of the target into tHGroup put the hScroll of tHGroup into sStartHScroll end touchStart on touchMove pTouchID, pTouchX, pTouchY if sStartY is empty then put pTouchY into sStartY end if if sStartX is empty then put pTouchX into sStartX end if // Check for vertical scroll if pTouchY > (sStartY + 20) or pTouchY < (sStartY - 20) then set the vScroll of group "all-collections" to sStartYScroll + (sStartY-pTouchY) else if pTouchX > (sStartX + 10) or pTouchX < (sStartX - 10) then // Check for horizontal scroll put the long owner of the target into tHGroup set the hScroll of tHGroup to sStartHScroll + (sStartX-pTouchX) end if end if end touchMove on touchEnd pTouchID -- code end touchEnd on touchRelease pTouchID -- code end touchRelease I wish there was are easy fix...but I suspect "not" Brahmanathaswami On 12/19/18, 2:58 PM, "use-livecode on behalf of Terry Judd via use-livecode" wrote: This is a problem that I have run into before and have never been able to solve satisfactorily. I?m using touchStart and touchEnd handlers to detect the direction and speed of a finger movement and if it is within certain bounds (large enough x, small enough y, and fast enough) then the user can swipe back and forwards through a series of cards. Good so far except when the area they are swiping on also includes a mobile scroller (to scroll a list selection widget/thingy). In that situation the swiping becomes a bit of a hit and miss thing ? works sometimes but not others. On iOS there are a few scroller parameters look potentially useful (canCancelTouches, delayTouches, and lockDirection) but it?s not really clear (to me at least) which of these might help and if so whether I should be setting them to true or false. Any ideas? Terry... _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From mike at golddogcoffee.com Thu Dec 20 17:29:51 2018 From: mike at golddogcoffee.com (Mike for GDC) Date: Thu, 20 Dec 2018 15:29:51 -0700 Subject: Using the Compass / GPS features of LC Message-ID: <007a01d498b3$865e1e30$931a5a90$@golddogcoffee.com> Is anyone familiar with using LC to "guide" the user to a specific location. For instance, if I have a marked and saved lat/long location, I want to have the app show directions of how to return to the location after walking away from it. Not using google maps but instead using something like a "compass" app to direct the user to the location while always pointing to the destination. Thanks. From harrison at all-auctions.com Thu Dec 20 18:23:15 2018 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 20 Dec 2018 18:23:15 -0500 Subject: Using the Compass / GPS features of LC In-Reply-To: <007a01d498b3$865e1e30$931a5a90$@golddogcoffee.com> References: <007a01d498b3$865e1e30$931a5a90$@golddogcoffee.com> Message-ID: <809BCD21-C1E8-4083-9335-3D07CFE3AD58@all-auctions.com> Hi Mike, Did you work your way through the following lesson? http://lessons.livecode.com/m/4069/l/30379-how-do-i-get-the-location-and-use-the-digital-compass Good luck! Rick > On Dec 20, 2018, at 5:29 PM, Mike for GDC via use-livecode wrote: > > Is anyone familiar with using LC to "guide" the user to a specific location. > For instance, if I have a marked and saved lat/long location, I want to have > the app show directions of how to return to the location after walking away > from it. Not using google maps but instead using something like a "compass" > app to direct the user to the location while always pointing to the > destination. Thanks. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From terry.judd at unimelb.edu.au Thu Dec 20 22:05:29 2018 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Fri, 21 Dec 2018 03:05:29 +0000 Subject: How to give swiping precedence over scrolling on mobile? In-Reply-To: <61D6A287-BD5D-45CB-A18A-B862B93DFD18@unimelb.edu.au> References: <4E1CE32B-2F59-4ACF-9796-3C93E4E0682C@unimelb.edu.au> <61D6A287-BD5D-45CB-A18A-B862B93DFD18@unimelb.edu.au> Message-ID: So, it seems like this approach works ok. Turned out there was an addition complication in that the items in my scrolling list are also selectable and I needed to prevent them being toggled on or off during a left/right swipe action. Anyway, this is what I ended up doing... In the card script... local pLoc, pTime, pV, pScroll on touchStart pTouchID put the mouseLoc into pLoc put the millisecs into pTime put the scroll of grp "checkList" into pScroll put the mouseV into pV end touchStart on touchMove pTouchID, pTouchX, pTouchY put pV-pTouchY into tY put pScroll+tY into tScroll set the scroll of grp "checkList" to tScroll end touchMove on touchEnd pTouchID put the mouseLoc into pLoc1 put (item 1 of pLoc)-(item 1 of pLoc1) into tX put (item 2 of pLoc)-(item 2 of pLoc1) into tY put the millisecs - pTime into tElapsed if abs(tX)>100 then # horizontal swipe if abs(tY)< 50 then # small vertical movement if tElapsed < 500 then # not too slow if tX > 0 then send "mouseUp" to grp "nextBtn" else send "mouseUp" to grp "backBtn" end if end if end if end if end touchEnd And in the "checklist" script... local pX on mouseDown put the mouseH into pX end mouseDown on mouseUp if abs((the mouseH)-pX) > 50 then exit mouseUp # list selection code end mouseUp ?On 21/12/2018 9:18 am, "use-livecode on behalf of Terry Judd via use-livecode" wrote: Thanks Brahmanathaswami - was thinking about this again last night and in my case I think I might be able to get it to work for me if I just use touchmove (and only track the y delta) for the vertical scrolling and touchend for the swiping, which is for card to card navigation rather than horizontal scrolling. Regards, Terry... On 20/12/2018 11:53 pm, "use-livecode on behalf of Sannyasin Brahmanathaswami via use-livecode" wrote: Terry, I'm interested in this also. Get the SivaSiva app ( no space... from iOS and Google Play) In the Listen Module, with Elanor's help, I tried to set up a "Spotify" UX with categories of audio scroll and up and down, and within on categories, left to right. I also get, what is a probably the same as you get, a "conflict" between Elanor touch events -- from scrolling left with right and up and down. In this case we don?t use the mobileScroller at all in mobile, both up and down, left and right, are implement with touch. But I think it is the same thing as you have... What I am seeing is: when the up and down in active, the left to right touch is disabled. It "kinda" works for the user but is very "clunky". I tried playing with touch startx and y numbers. It gets "worse" as you go down in size. The script is small enough to put here. Would be nice of this were fixed but I don?t seeing how the engine would do it. It would seem that the pTouchX and pTouchY are managing the scroll independently. So you try a "swipe" gesture with your thumb that goes "diagonally" that is, changes is location on the both "x" and "y" axes ... the engine is going to focus on say just the "y" cords -- you get an up to down scroll or vice-versa-- but "x" coord are not "seen" and you don't get any left of right behavior -- in you case, a card swipe, in my case a group swipe left to right fails. Until you stop and "focus" carefully on "x" axes gesture (left to right, or vice versa). then you get you Card/Group swipe horizontally... on touchStart pTouchID put empty into sStartX put empty into sStartY put the vScroll of grp "all-collections" into sStartYScroll put the long owner of the target into tHGroup put the hScroll of tHGroup into sStartHScroll end touchStart on touchMove pTouchID, pTouchX, pTouchY if sStartY is empty then put pTouchY into sStartY end if if sStartX is empty then put pTouchX into sStartX end if // Check for vertical scroll if pTouchY > (sStartY + 20) or pTouchY < (sStartY - 20) then set the vScroll of group "all-collections" to sStartYScroll + (sStartY-pTouchY) else if pTouchX > (sStartX + 10) or pTouchX < (sStartX - 10) then // Check for horizontal scroll put the long owner of the target into tHGroup set the hScroll of tHGroup to sStartHScroll + (sStartX-pTouchX) end if end if end touchMove on touchEnd pTouchID -- code end touchEnd on touchRelease pTouchID -- code end touchRelease I wish there was are easy fix...but I suspect "not" Brahmanathaswami On 12/19/18, 2:58 PM, "use-livecode on behalf of Terry Judd via use-livecode" wrote: This is a problem that I have run into before and have never been able to solve satisfactorily. I?m using touchStart and touchEnd handlers to detect the direction and speed of a finger movement and if it is within certain bounds (large enough x, small enough y, and fast enough) then the user can swipe back and forwards through a series of cards. Good so far except when the area they are swiping on also includes a mobile scroller (to scroll a list selection widget/thingy). In that situation the swiping becomes a bit of a hit and miss thing ? works sometimes but not others. On iOS there are a few scroller parameters look potentially useful (canCancelTouches, delayTouches, and lockDirection) but it?s not really clear (to me at least) which of these might help and if so whether I should be setting them to true or false. Any ideas? Terry... _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From Bernd.Niggemann at uni-wh.de Fri Dec 21 05:34:24 2018 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Fri, 21 Dec 2018 10:34:24 +0000 Subject: Using the Compass / GPS features of LC In-Reply-To: References: Message-ID: <1B5B4408-485A-4700-9D35-41EBB0607944@uni-wh.de> Am 21.12.2018 um 11:25 schrieb Niggemann, Bernd >: Hi Mike, >Mike for GDC via use-livecode Thu, 20 Dec 2018 14:31:57 -0800 >I want to have the app show directions of how to return to the location after walking away >from it. Not using google maps but instead using something like a "compass" >app to direct the user to the location while always pointing to the >destination If I understand correctly what you want to do you might want to have a look a my "North" widget that you can use to indicate a direction. I just updated it, look at the attachment in the third post. http://forums.livecode.com/viewtopic.php?f=93&t=29486 Kind regards Bernd From jhurley0305 at sbcglobal.net Fri Dec 21 10:46:12 2018 From: jhurley0305 at sbcglobal.net (James Hurley) Date: Fri, 21 Dec 2018 07:46:12 -0800 Subject: Versions 7.1.1 and 8.1.3 no long working properly Message-ID: Thanks Rick. I have found the url for downloading commercial versions of LIveCode. Do you know the url for downloading the community versions? Thanks, Jim > Hi Jim, > > Those are older versions. > > Try version 7.1.4 and 8.1.10 to see > if you still have the same problem. > > Hope it works! > > Rick > >> On Dec 20, 2018, at 3:22 PM, James Hurley via use-livecode wrote: >> >> I am having trouble running a stack on 7.1.1, Community >> >> I have had no problem with it in the past. >> >> But now it will not display the Tools Palette. >> >> Closing any window I get the message ?Do you want to save?.? I have to click ?Cancel? to proceed >> >> The stack runs, but erratically. >> >> So I thought I would try 8.1.3 and have similar problems. Still the message ?Do yo want to save?? when I close any window. >> >> Is it me? >> >> Jim Hurley > > ********************************************* From iowahengst at mac.com Fri Dec 21 11:02:05 2018 From: iowahengst at mac.com (Randy Hengst) Date: Fri, 21 Dec 2018 10:02:05 -0600 Subject: Versions 7.1.1 and 8.1.3 no long working properly In-Reply-To: References: Message-ID: You?ll find all of them here: https://downloads.livecode.com/livecode/ be well, randy www.classroomFocusedSoftware.com > On Dec 21, 2018, at 9:46 AM, James Hurley via use-livecode wrote: > > Thanks Rick. > > I have found the url for downloading commercial versions of LIveCode. > > Do you know the url for downloading the community versions? > > Thanks, > > Jim > > > >> Hi Jim, >> >> Those are older versions. >> >> Try version 7.1.4 and 8.1.10 to see >> if you still have the same problem. >> >> Hope it works! >> >> Rick >> >>> On Dec 20, 2018, at 3:22 PM, James Hurley via use-livecode wrote: >>> >>> I am having trouble running a stack on 7.1.1, Community >>> >>> I have had no problem with it in the past. >>> >>> But now it will not display the Tools Palette. >>> >>> Closing any window I get the message ?Do you want to save?.? I have to click ?Cancel? to proceed >>> >>> The stack runs, but erratically. >>> >>> So I thought I would try 8.1.3 and have similar problems. Still the message ?Do yo want to save?? when I close any window. >>> >>> Is it me? >>> >>> Jim Hurley >> >> ********************************************* > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kee.nethery at elloco.com Fri Dec 21 13:45:50 2018 From: kee.nethery at elloco.com (kee nethery) Date: Fri, 21 Dec 2018 10:45:50 -0800 Subject: Anyone using the HTML 5 LiveCode tool? In-Reply-To: References: <4E1CE32B-2F59-4ACF-9796-3C93E4E0682C@unimelb.edu.au> <61D6A287-BD5D-45CB-A18A-B862B93DFD18@unimelb.edu.au> Message-ID: Was thinking of trying it out but the details indicate that it is not yet ready for production. Kee From bobsneidar at iotecdigital.com Fri Dec 21 13:47:40 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 21 Dec 2018 18:47:40 +0000 Subject: Versions 7.1.1 and 8.1.3 no long working properly In-Reply-To: References: Message-ID: <92090498-A46A-4939-828B-0D52F401BC8E@iotecdigital.com> It's possible the tools pallette is off screen. Try: set the loc of stack "revTools" to the screenLoc;set the visible of stack "revTools" to true Bob S > On Dec 20, 2018, at 12:22 , James Hurley via use-livecode wrote: > > I am having trouble running a stack on 7.1.1, Community > > I have had no problem with it in the past. > > But now it will not display the Tools Palette. > > Closing any window I get the message ?Do you want to save?.? I have to click ?Cancel? to proceed > > The stack runs, but erratically. > > So I thought I would try 8.1.3 and have similar problems. Still the message ?Do yo want to save?? when I close any window. > > Is it me? > > Jim Hurley > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Fri Dec 21 14:13:39 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 21 Dec 2018 14:13:39 -0500 Subject: Versions 7.1.1 and 8.1.3 no long working properly In-Reply-To: <92090498-A46A-4939-828B-0D52F401BC8E@iotecdigital.com> References: <92090498-A46A-4939-828B-0D52F401BC8E@iotecdigital.com> Message-ID: <008301d49961$4a853bb0$df8fb310$@net> When all else fails delete the prefs... Win10==> C:\Users\USERNAME\AppData\Roaming\RunRev\Preferences Mac High S==>Users/USERNAME/Library/Preferences/RunRev Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Bob Sneidar via use-livecode Sent: Friday, December 21, 2018 1:48 PM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: Versions 7.1.1 and 8.1.3 no long working properly It's possible the tools pallette is off screen. Try: set the loc of stack "revTools" to the screenLoc;set the visible of stack "revTools" to true Bob S > On Dec 20, 2018, at 12:22 , James Hurley via use-livecode wrote: > > I am having trouble running a stack on 7.1.1, Community > > I have had no problem with it in the past. > > But now it will not display the Tools Palette. > > Closing any window I get the message ?Do you want to save?.? I have to click ?Cancel? to proceed > > The stack runs, but erratically. > > So I thought I would try 8.1.3 and have similar problems. Still the message ?Do yo want to save?? when I close any window. > > Is it me? > > Jim Hurley > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From alain.vezina at logilangue.com Fri Dec 21 17:19:11 2018 From: alain.vezina at logilangue.com (Alain Vezina) Date: Fri, 21 Dec 2018 17:19:11 -0500 Subject: Anyone using the HTML 5 LiveCode tool? In-Reply-To: References: <4E1CE32B-2F59-4ACF-9796-3C93E4E0682C@unimelb.edu.au> <61D6A287-BD5D-45CB-A18A-B862B93DFD18@unimelb.edu.au> Message-ID: <4134C0BC-AC78-4601-A8AF-D7CADDB6D4A7@logilangue.com> Hi Kee, I just started using HTML5 for one of my applications. I observed that it takes a little while before we see the first map. Also, it takes some time to get an answer when you have a search done on a list of about 3000 words. The best performance was achieved with FireFox in a device with iOS 12. In 10.3.3 it's very, very slow. In a device with Android, it's in between. I think the problem is the size of the.js file even if it is compressed. The LiveCode group should be pressured to fix this problem. There is a future on this side because I believe that many developers, like me, will want to get out of Apple's clutches, which is always asking for more. Translated with www.DeepL.com/Translator Alain Vezina Dir, Logilangue Montreal, Canada > Le 21 d?c. 2018 ? 13:45, kee nethery via use-livecode a ?crit : > > Was thinking of trying it out but the details indicate that it is not yet ready for production. > Kee > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kee.nethery at elloco.com Fri Dec 21 17:39:23 2018 From: kee.nethery at elloco.com (kee nethery) Date: Fri, 21 Dec 2018 14:39:23 -0800 Subject: Anyone using the HTML 5 LiveCode tool? In-Reply-To: <4134C0BC-AC78-4601-A8AF-D7CADDB6D4A7@logilangue.com> References: <4E1CE32B-2F59-4ACF-9796-3C93E4E0682C@unimelb.edu.au> <61D6A287-BD5D-45CB-A18A-B862B93DFD18@unimelb.edu.au> <4134C0BC-AC78-4601-A8AF-D7CADDB6D4A7@logilangue.com> Message-ID: <9DB59F17-7515-4E4B-A39C-272D50B00595@elloco.com> Alain, Thanks for your review. It?s very helpful to know how close to production it is. Sounds like it needs some optimizations. Kee > On Dec 21, 2018, at 2:19 PM, Alain Vezina via use-livecode wrote: > > Hi Kee, > > I just started using HTML5 for one of my applications. I observed that it takes a little while before we see the first map. Also, it takes some time to get an answer when you have a search done on a list of about 3000 words. > > The best performance was achieved with FireFox in a device with iOS 12. In 10.3.3 it's very, very slow. > > In a device with Android, it's in between. > > I think the problem is the size of the.js file even if it is compressed. > > The LiveCode group should be pressured to fix this problem. There is a future on this side because I believe that many developers, like me, will want to get out of Apple's clutches, which is always asking for more. > > Translated with www.DeepL.com/Translator > > Alain Vezina > Dir, Logilangue > Montreal, Canada > >> Le 21 d?c. 2018 ? 13:45, kee nethery via use-livecode a ?crit : >> >> Was thinking of trying it out but the details indicate that it is not yet ready for production. >> Kee >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 21 17:40:59 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 21 Dec 2018 14:40:59 -0800 Subject: Versions 7.1.1 and 8.1.3 no long working properly In-Reply-To: References: Message-ID: <492bf6df-d318-752b-e200-668b6b46510f@fourthworld.com> Good to see you here, Jim. James Hurley wrote: > I have found the url for downloading commercial versions of LIveCode. > > Do you know the url for downloading the community versions? https://downloads.livecode.com/livecode/ -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From richmondmathewson at gmail.com Sat Dec 22 05:32:41 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 22 Dec 2018 12:32:41 +0200 Subject: Versions 7.1.1 and 8.1.3 no long working properly In-Reply-To: <492bf6df-d318-752b-e200-668b6b46510f@fourthworld.com> References: <492bf6df-d318-752b-e200-668b6b46510f@fourthworld.com> Message-ID: I found 7.1.4 crashes on macOS 10.14.... Not good. Richmond. On Sat, Dec 22, 2018, 12:41 AM Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Good to see you here, Jim. > > James Hurley wrote: > > I have found the url for downloading commercial versions of LIveCode. > > > > Do you know the url for downloading the community versions? > > https://downloads.livecode.com/livecode/ > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jjs at krutt.org Sat Dec 22 06:19:45 2018 From: jjs at krutt.org (JJS) Date: Sat, 22 Dec 2018 12:19:45 +0100 Subject: Versions 7.1.1 and 8.1.3 no long working properly In-Reply-To: References: <492bf6df-d318-752b-e200-668b6b46510f@fourthworld.com> Message-ID: I've read that 10.14.3 will come in Januray or february. Mojave 10.14 did strange thing on my hackintosh too, so i downgraded to High sierra latest version 10.13.6 From corrupted downloads to other strange things. Now there is an update to 10.14.2, but it also did not work to update correct to that version from 10.14. Op 22-12-2018 om 11:32 schreef Richmond Mathewson via use-livecode: > I found 7.1.4 crashes on macOS 10.14.... > Not good. > > Richmond. > > On Sat, Dec 22, 2018, 12:41 AM Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Good to see you here, Jim. >> >> James Hurley wrote: >> > I have found the url for downloading commercial versions of LIveCode. >> > >> > Do you know the url for downloading the community versions? >> >> https://downloads.livecode.com/livecode/ >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Sat Dec 22 11:43:13 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sat, 22 Dec 2018 17:43:13 +0100 Subject: Anyone using the HTML 5 LiveCode tool? In-Reply-To: <4134C0BC-AC78-4601-A8AF-D7CADDB6D4A7@logilangue.com> References: <4E1CE32B-2F59-4ACF-9796-3C93E4E0682C@unimelb.edu.au> <61D6A287-BD5D-45CB-A18A-B862B93DFD18@unimelb.edu.au> <4134C0BC-AC78-4601-A8AF-D7CADDB6D4A7@logilangue.com> Message-ID: > Am 21.12.2018 um 23:19 schrieb Alain Vezina via use-livecode : > The LiveCode group should be pressured to fix this problem. There is a future on this side because I believe that many developers, like me, will want to get out of Apple's clutches, which is always asking for more. Correct me if i am wrong, but i think that in HTML5 "standalones" you?ll never be able to use all the features Livecode supports in iOS/Android/Desktop standalones. And that is not a problem of LC, but a general "problem" of HTML5. Matthias From brahma at hindu.org Sat Dec 22 19:14:11 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 23 Dec 2018 00:14:11 +0000 Subject: Understanding Image Sizes, Before And Display Message-ID: Well after all these years, I want to know the original width and height of reference image by it "content" and not as it "image data" which will change if the image was resize. So let say it reference brand new image answer file "Select the image you wish to view:" with type "JPEG Images|jpg|JPEG" # the filename of an image to that. Let say its 250 X 150 pixels # resize this image to something "stupid" like 100 x100 How does one query, at time point, the original height and width? I looked through to dictionary, and don't see a way. I course of the mini-study I found "prepare" on mouseup answer file "Select the image you wish to view:" with type "JPEG Images|jpg|JPEG" if it is "Cancel" then exit to top else put it into tFileName end if prepare image file tFileName put the width of image file tFilename # error here end mouseup This entry seems a little lean.... prepare "...Then access the image and display it as needed on your stack. Since the image is already cached into memory, it displays instantly." One would think that since it is cached, you can get its rect? What am missing? Do have to create a new image to get it original size? =========== The location and name of the image file you want to load and decompress into the image data cache. Since the image data cache is keyed on the absolute filename, any images which reference that file are able to use the data from the cache. This assumes that the cache has not been flushed. Description Use the prepare image command to speed up execution when showing image data. Use the prepare image command to preload an image at some time before it is needed. Then access the image and display it as needed on your stack. Since the image is already cached into memory, it displays instantly. From brahma at hindu.org Sat Dec 22 19:55:43 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 23 Dec 2018 00:55:43 +0000 Subject: Understanding Image Sizes, Before And Display In-Reply-To: References: Message-ID: <6571C05A-4D20-4122-A906-74F2B40D0965@hindu.org> I found way; it seems convoluted to me. I create an image, store in width/height to a field.... on mouseup. # on palette/ utilities stack/ for some reason selectedImage() won't work try put the long id of the selectedObject into sImage end try if sImage is empty then Answer "You need to select an image" with "OK" exit to top end if put the long id of the selectedObject into sImage if fld "DefaultImagePath" is empty then put the long id of the selectedObject into sImage if fld "DefaultImagePath" is empty then answer file "Select the image you wish to view:" with type "JPEG Images|jpg|JPEG" if it is "Cancel" then exit to top else put it into tFilename put tFilename into fld "DefaultImagePath" create image put it into tNewImage set the loc of tnewImage to -1000,-1000 set the filename tnewImage to tFileName set the filename of sImage to fld "DefaultImagePath" put (the width of tnewImage)& comma & (the height of tnewImage)into field "originalSize" delete tNewImage end if else set width of sImage to item 1 of field "originalSize" set height of sImage to item 2 of field "originalSize" end if end mouseup Brahmanathaswami BS wrote: Well after all these years, I want to know the original width and height of a referenced image by its "content" and not by its "image data" which will change if the image was resized. So let's say it is referenced brand new image: answer file "Select the image you wish to view:" with type "JPEG Images|jpg|JPEG" # the filename of an image to that. Let say its 250 X 150 pixels # resize this image to something "stupid" like 100 x100 How does one query, at that point in time, the original height and width? I looked through to dictionary, and don't see a way. In course of the mini-study I found "prepare" on mouseup answer file "Select the image you wish to view:" with type "JPEG Images|jpg|JPEG" if it is "Cancel" then exit to top else put it into tFileName end if prepare image file tFileName put the width of image file tFilename # error here end mouseup This entry seems a little lean.... prepare "...Then access the image and display it as needed on your stack. Since the image is already cached into memory, it displays instantly." One would think that since it is cached, you can get its rect? What am missing? Do have to create a new image to get its original size? =========== The location and name of the image file you want to load and decompress into the image data cache. Since the image data cache is keyed on the absolute filename, any images which reference that file are able to use the data from the cache. This assumes that the cache has not been flushed. Description Use the prepare image command to speed up execution when showing image data. Use the prepare image command to preload an image at some time before it is needed. Then access the image and display it as needed on your stack. Since the image is already cached into memory, it displays instantly. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Sat Dec 22 21:50:27 2018 From: hh at hyperhh.de (hh) Date: Sun, 23 Dec 2018 03:50:27 +0100 Subject: Understanding Image Sizes, Before And Display Message-ID: > BR wrote: > Well after all these years, I want to know the original width > and height of reference image ... You could use the formattedWidth and the formattedHeight. From hh at hyperhh.de Sat Dec 22 22:01:19 2018 From: hh at hyperhh.de (hh) Date: Sun, 23 Dec 2018 04:01:19 +0100 Subject: Anyone using the HTML 5 LiveCode tool? Message-ID: <3C8480FC-DA3C-4D4D-BCC2-CF11754BD824@hyperhh.de> > Kee N. wrote: > Was thinking of trying it out but the details indicate that > it is not yet ready for production. HTML5 standalones are not made for mobile. As Matthias said, for desktop you will always miss important features. But there is one very important feature you can use: the HTML5/javascript engine of the user's browser. For a lot of still valid discussions and links to a lot of working examples see the HTML5 subforum http://forums.livecode.com/viewforum.php?f=120 From brahma at hindu.org Sat Dec 22 23:11:39 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 23 Dec 2018 04:11:39 +0000 Subject: Understanding Image Sizes, Before And Display In-Reply-To: References: Message-ID: <35CA2BDC-780C-4D73-92A7-9A353E96E6C3@hindu.org> That only works if no cropping of the original occur. I just discovered today that 1) crop does not work on a referenced image. 2) But hold the cmd key down will crop the image (we know that) AND/BUT ? 3) Cropping in the image in the IDE using the cmd key "wipes" the file reference. It is an "embedded" image. 4) I think I had booby trapped myself because I had the image lockLoc set to the true and didn't realize it. But it is not on, setting the filename bring back the formatted size. 5) Now, what is missing is cropping the image by script.... you can do it in the IDE. So if you had 8 images sized and cropped on the bottom, then you played with the design. Then a "stackholder" says "Nah, can you make them 6 px smaller from bottom." You have no choice but to set the filenames again and manually crop each one. BR >Well after all these years, I want to know the original width >and height of reference image ... HH You could use the formattedWidth and the formattedHeight. From jacque at hyperactivesw.com Sun Dec 23 02:11:12 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 23 Dec 2018 01:11:12 -0600 Subject: Understanding Image Sizes, Before And Display In-Reply-To: <35CA2BDC-780C-4D73-92A7-9A353E96E6C3@hindu.org> References: <35CA2BDC-780C-4D73-92A7-9A353E96E6C3@hindu.org> Message-ID: <167d9e74680.2783.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> There's a crop command to allow you to do it in a script. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On December 22, 2018 10:13:34 PM Sannyasin Brahmanathaswami via use-livecode wrote: > That only works if no cropping of the original occur. > > I just discovered today that > > 1) crop does not work on a referenced image. > 2) But hold the cmd key down will crop the image (we know that) > > AND/BUT > ? > 3) Cropping in the image in the IDE using the cmd key "wipes" the file > reference. It is an "embedded" image. > > 4) I think I had booby trapped myself because I had the image lockLoc set > to the true and didn't realize it. But it is not on, setting the filename > bring back the formatted size. > > 5) Now, what is missing is cropping the image by script.... you can do it > in the IDE. > > So if you had 8 images sized and cropped on the bottom, then you played > with the design. Then a "stackholder" says "Nah, can you make them 6 px > smaller from bottom." > > You have no choice but to set the filenames again and manually crop each one. > > BR > > >Well after all these years, I want to know the original width > >and height of reference image ... > HH > You could use the formattedWidth and the formattedHeight. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Sun Dec 23 11:19:07 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 23 Dec 2018 16:19:07 +0000 Subject: Understanding Image Sizes, Before And After Display Message-ID: <4D810CC5-C748-40B5-929B-C0DE711FFB11@hindu.org> From the dictionary and confirmed here: -------- *Important:* The crop command cannot be used on a referenced image. Doing so will cause an execution error. --------- Also, today, I can't copy a referenced image? Again missing something simple... command createEmbedAndCrop Create image "gems" set the loc of img "gems" to the loc of img "theImage" # img "theImage" is referenced, now displayed in original format/rect -- set the imagedata of img "gems" to the imagedata of image "theImage" # doesn?t work -- set the text of img "gems" to the imagedata of image "theImage" # also doesn't work # from the dictionary. Also doesn?t work: put image "theImage" into image "gems" # this works, but have no data in the image "gems" : crop image "gems" to rect of grc "newCrop" end createEmbedAndCrop Hmm.... why does this fail: put image "theImage" into image "gems" Dictionary. --------- Imagedata: *Tip:* To copy the information in an image at full resolution, regardless of whether its height and width have been changed, use a statement like the following: put image "Full Resolution" into image "Copied Image" ------------ Well I discovered it's because image "fullResolution" is referenced? I scanned thru the IDE stacks in project Browser, looking for the "Import as Control --> image file" Which should have the method for imported an embedded image.... But I could not find it ? J. Landman Gay wrote: There's a crop command to allow you to do it in a script. From klaus at major-k.de Sun Dec 23 11:26:10 2018 From: klaus at major-k.de (Klaus major-k) Date: Sun, 23 Dec 2018 17:26:10 +0100 Subject: Understanding Image Sizes, Before And After Display In-Reply-To: <4D810CC5-C748-40B5-929B-C0DE711FFB11@hindu.org> References: <4D810CC5-C748-40B5-929B-C0DE711FFB11@hindu.org> Message-ID: <7152BCBE-FF02-4A76-A661-3F8B89ED3F38@major-k.de> Hi Swami, > Am 23.12.2018 um 17:19 schrieb Sannyasin Brahmanathaswami via use-livecode : > > From the dictionary and confirmed here: > -------- > *Important:* The crop command cannot be used on a > referenced image. Doing so will cause an > execution error. > --------- > > Also, today, I can't copy a referenced image? > > Again missing something simple... > > command createEmbedAndCrop Create image "gems" ## what about: put url("binfile:" & the filename of img "theImage") into img "gems" ## Or: ## Create image "gems" import paint from file (the filename of img "theImage") set the name of last img to "gems" > # set the loc of img "gems" to the loc of img "theImage" > # img "theImage" is referenced, now displayed in original format/rect > -- set the imagedata of img "gems" to the imagedata of image "theImage" > # doesn?t work > # -- set the text of img "gems" to the imagedata of image "theImage" > # also doesn't work > # from the dictionary. Also doesn?t work: > # put image "theImage" into image "gems" > # this works, but have no data in the image "gems" : > crop image "gems" to rect of grc "newCrop" > end createEmbedAndCrop Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From brahma at hindu.org Sun Dec 23 13:32:18 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 23 Dec 2018 18:32:18 +0000 Subject: Understanding Image Sizes, Before And After Display In-Reply-To: <7152BCBE-FF02-4A76-A661-3F8B89ED3F38@major-k.de> References: <4D810CC5-C748-40B5-929B-C0DE711FFB11@hindu.org> <7152BCBE-FF02-4A76-A661-3F8B89ED3F38@major-k.de> Message-ID: <80E43F35-4215-4DC0-8D7A-C90584B75FE4@hindu.org> Ha! Klaus... Yes! You did it again...Merry Christmas! And thanks for the gift... This works, for example, (real use case) # I want to get to the original size for a button icon named img "gems" # are re-crop it...(actual a whole layout of buttons the same size) on Mouseup # find the original "diamond-sparkle-small.jpg" answer file "Select the image you wish to view:" with type "JPEG Images|jpg|JPEG" put it into tFilename set the filename of image tempImage to tFilename createEmbedAndCrop end mouseUp command createEmbedAndCrop Create image "gems" set the loc of grc "newCrop" to the loc of img "tempImage" put url("binfile:" & the filename of img "tempImage") into img "gems" set the loc of img "gems" to the loc of img "tempImage" crop image "gems" to the rect of grc "newCrop" end createEmbedAndCrop # Fantastic, I can put this on a repeat loop for a design change for a whole group of buttons and simple change the grc "newCrop" BR ? Klaus major-k wrote: ## what about: put url("binfile:" & the filename of img "theImage") into img "gems" From mark at canelasoftware.com Sun Dec 23 14:36:44 2018 From: mark at canelasoftware.com (Mark Talluto) Date: Sun, 23 Dec 2018 11:36:44 -0800 Subject: Understanding Image Sizes, Before And Display In-Reply-To: References: Message-ID: You may use: the formattedWidth and formattedHeight of the image to get the native sizes. Best regards, Mark Talluto livecloud.io nursenotes.net canelasoftware.com > On Dec 22, 2018, at 4:14 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > > How does one query, at time point, the original height and width? From capellan2000 at gmail.com Sun Dec 23 23:05:21 2018 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sun, 23 Dec 2018 23:05:21 -0500 Subject: Understanding Image Sizes, Before And After Display In-Reply-To: References: Message-ID: Hi All, In this moment that I could not sleep because the fever, the mail list is a good reading to keep me awake. There is another way to read the width and height of a jpg image. Read the binary data for the Start of Frame tag within the jpg image. Please test and improve this script: on mouseUp local temp answer file "Select JPEG image" put it into temp open file temp for binary read read from file temp for 100000 put it into temp1 close file temp put numtobyte(255) & numtobyte(192) into tBaselineJPGFrame0 -- in Hexadecimal: FFC0 = JPEG Start-Of-Frame (SOF) marker FFC0 put numtobyte(255) & numtobyte(194) into tProgressiveJPGFrame0 -- in Hexadecimal: FFC2 = JPEG Start-Of-Frame (SOF) marker FFC2 set the casesensitive to true put offset(tBaselineJPGFrame0,temp1) into tStartOFrame if tStartOFrame is 0 then put offset(tProgressiveJPGFrame0,temp1) into tStartOFrame if tStartOFrame is not empty then put byte (tStartOFrame + 5) of temp1 & byte (tStartOFrame + 6) of temp1 into tJPGHeight put byte (tStartOFrame + 7) of temp1 & byte (tStartOFrame + 8) of temp1 into tJPGWidth -- put baseConvert(baseConvert(bytetonum(byte 1 of tJPGHeight),10,16) & baseConvert(bytetonum(byte 2 of tJPGHeight),10,16),16,10) into tJPGHeight put bytetonum(byte 1 of tJPGHeight) into q put bytetonum(byte 2 of tJPGHeight) into w put baseConvert(q,10,16) into r if the number of bytes of r = 1 then put "0" & r into r put baseConvert(w,10,16) into t if the number of bytes of t = 1 then put "0" & t into t put r & t into y put baseConvert(y,16,10) into tJPGHeight -- put baseConvert(baseConvert(bytetonum(byte 1 of tJPGWidth),10,16) & baseConvert(bytetonum(byte 2 of tJPGWidth),10,16),16,10) into tJPGWidth put bytetonum(byte 1 of tJPGWidth) into q put bytetonum(byte 2 of tJPGWidth) into w put baseConvert(q,10,16) into r if the number of bytes of r = 1 then put "0" & r into r put baseConvert(w,10,16) into t if the number of bytes of t = 1 then put "0" & t into t put r & t into y put baseConvert(y,16,10) into tJPGWidth answer "JPG Width" && tJPGWidth & cr & "JPG Height" && tJPGHeight & cr & temp else answer "Could not find Start of Frame information in this JPEG image" & cr & temp end if end mouseUp /* Information from https://stackoverflow.com/questions/35427283/get-width-and-height-from-jpeg-without-0xff-0xc0 The JPEG Start-Of-Frame (SOF) marker has 4 possible values: FFC0 (baseline) - This is the usual mode chosen for photos and encodes fully specified DCT blocks in groupings depending on the color/subsample options chosen FFC1 (extended) - This is similar to baseline, but has more than 8-bits per color stimulus FFC2 (progressive) - This mode is often found on web pages to allow the image to load progressively as the data is received. Each "scan" of the image progressively defines more coefficients of the DCT blocks until they're fully defined. This effectively provides more and more detail as more scans are decoded FFC3 (lossless) - This mode uses a simple Huffman encoding to losslessly encode the image. The only place I've seen this used is on 16-bit grayscale DICOM medical images */ From mike at golddogcoffee.com Sun Dec 23 23:33:32 2018 From: mike at golddogcoffee.com (Mike for GDC) Date: Sun, 23 Dec 2018 21:33:32 -0700 Subject: Accuracy of Current Location in LC Message-ID: <002501d49b41$d4067700$7c136500$@golddogcoffee.com> I am using the "mobileCurrentLocation" command to capture my current location on a mobile unit (android). I have used the command, 'startTrackingSensor, "Location", false' command to start the sensor. What I have found is that the lat/long that is being captured is not accurate. I have tested it against my Garmin GPS and a few other apps (on the same mobile device) that capture the location. They are basically all the same and my LC version is off. If I capture my location several times without moving at all, it reads a different lat/long, not by much but it seems it should not fluctuate at all. Does anyone know a technique or something that would make the reading more accurate? Thanks. From bdrunrev at gmail.com Mon Dec 24 03:05:48 2018 From: bdrunrev at gmail.com (Bernard Devlin) Date: Mon, 24 Dec 2018 08:05:48 +0000 Subject: Datagrids in HTML5 Message-ID: Hi folks Am I mistaken in thinking datagrids are now supposed to work in HTML5? My datagrid and its contents display, but clicking on column headers has no effect. I ensured that the datagrid library was being included in the standalone settings. The datagrid template substack of the mainstack is listed in the HTML5 app as a substack. However, when a pertinent "do" command e.g. set the dgProps["show header"] of grp "datagrid 1" to false is issued in the HTML5 app, it has no effect. I built the same stack for Windows and HTML5, and the datagrid works as expected in the Windows executable. If datagrids don't work for HTML5, then I'm surprised they display at all. Is there a list somewhere of what is supposed to work in HTML5 and what does not work? Regards Bernard From panos.merakos at livecode.com Mon Dec 24 08:18:14 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 24 Dec 2018 15:18:14 +0200 Subject: [ANN] This Week in LiveCode 160 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 #160 here: https://goo.gl/v9ypXL This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From brahma at hindu.org Mon Dec 24 09:37:29 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 24 Dec 2018 14:37:29 +0000 Subject: 9.0.2 Stable Gradient Tool Frequently Fails Message-ID: <73F39325-3BA3-4599-97D5-E833EF14A4EB@hindu.org> In 9.0.2 the gradients tools fail to open. I create graphic set gradient, double click on the dialog doesn't appear Is there a work around for this? Can you open to model Dialog for working to gradients "by hand" from the msg box? Frankly working with gradients is a "pain" because I often need to move the location bars far outside the object. I believe someone create tool for editing gradients. What is that? BR From bdrunrev at gmail.com Mon Dec 24 10:11:57 2018 From: bdrunrev at gmail.com (Bernard Devlin) Date: Mon, 24 Dec 2018 15:11:57 +0000 Subject: HTML5 severely undocumented Message-ID: As I'm trying to work out why it is that the datagrid does not work in HTML5, I've realised that there are many really basic features of Livecode that do not work in HTML5. For instance, in a field the backspace key does not work. Moreover, it appears that the rawKeyDown message is not implemented, so I can't implement my own backspacekey handler. Surely the Dictionary should at least indicate which features are not implemented? When I start to go through the Dictionary, I can'd even discover if something is implemented without building an HTML5 app and then seeing if that command works. We can't even rely on the Dictionary NOT mentioning HTML5 in the Platform/OS category of the Dictionary entry as being indicative of whether or not something is supported. For example, the Dictionary entry for "Create [button]" does not say that this is implemented in HTML5 but it works (I found out through trial and error). So a command that's been in xCard for some decades is not indicated as being implemented for HTML5. But rawKeyDown has probably been in Livecode/Metacard for 20 years, but that too is not listed as being implemented in the HTML5 engine. This vagueness about what should work and what doesn't is woefully inadequate. It is over 4 years since the HTML5 standalone was first funded, and I think 3 years since it was first working (for some definition of working). Surely it should by now at least be documented what works and what does not? Considering that Runrev expects most customers to pay an additional license for HTML5 deployment this is very disappointing. Here's what Kevin said in 2014. "Anywhere you can run an HTML5 capable browser, you will be able to run your app." Now I'm sure that there are limitations imposed by the emscripten engine that Livecode over which Livecode have no control. But at the very least, there should have been a list of Livecode features that don't work in HMTL5. I'm not expecting any reply to this until after christmas. But I need to get it off my chest. After being away from Livecode for some years, I am disappointed to find I can't even work out if I can use HTML5 except through trial and error. Regards Bernard From brahma at hindu.org Tue Dec 25 14:15:11 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 25 Dec 2018 19:15:11 +0000 Subject: Datagrid: pControlRect, pWorkingRect, theFieldRect Message-ID: I have been through the lesson on datagrids. I have search for "pControlRect" and "pWorkingRect" and theFieldRect and get a few hits, but clicking on "5 results found" takes to you to an index with no further information. Perhaps someone can succinctly question these ?'s 1) What is the relationship between the size of the datagrid and the card rect? I assume this is obvious, but it the first in the "hierarchy" so I thought ask. 2) What it relationship between the pWorkingRect and * The card rect? * The datagrid rect? * And the pControlRect? 3) What it relationship between the pControlRect and * The card rect? * The datagrid rect? * And the pWorkingRect? You might ask me, what I am trying to do? Well, it seems "hard" to get the form rowTemplate to appear exactly where I want it on the card. Which is 414 pixels wide. But we get strange results in a log. pWorkRect = -1,104,433,135 pControlRect = -1,89,438,155 The background of the rowTemplate is only 400 px? (which contains a graphic and field) So... where is the "layout hierarchy" in all of that? One has no "params" to work with that make sense to me (today anyway?) BR From curry at pair.com Tue Dec 25 19:08:13 2018 From: curry at pair.com (Curry Kenworthy) Date: Tue, 25 Dec 2018 19:08:13 -0500 Subject: Have (or had) a Blessed Christmas Message-ID: <701b1188-0d2b-1e5e-5b9a-4555a75f5553@pair.com> Hope your Christmas day was merry and/or meritorious, fellow LiveCoders. I didn't have the opportunity to spend as much time here on-list this year as I would have loved to do, but greatly enjoyed working with many of you, and wish each of you a holiday/holy day season filled with goodness. For those of you that I haven't communed with this year, rest assured you haven't been absent from my mind! Greetings also to LiveCode Ltd after another lively year. And most importantly, certain other thanks and appreciation especially relevant to this particular season. My wishes for health, strength of mind, peace and economic stability, and quality of code for those engaged in the pursuit of excellent software for many worthy pursuits. Best wishes, Curry Kenworthy Pompano Beach, FL From paul at researchware.com Tue Dec 25 19:23:46 2018 From: paul at researchware.com (Paul Dupuis) Date: Tue, 25 Dec 2018 19:23:46 -0500 Subject: Have (or had) a Blessed Christmas In-Reply-To: <701b1188-0d2b-1e5e-5b9a-4555a75f5553@pair.com> References: <701b1188-0d2b-1e5e-5b9a-4555a75f5553@pair.com> Message-ID: +1 On 12/25/2018 7:08 PM, Curry Kenworthy via use-livecode wrote: > > Hope your Christmas day was merry and/or meritorious, fellow LiveCoders. > > I didn't have the opportunity to spend as much time here on-list this > year as I would have loved to do, but greatly enjoyed working with > many of you, and wish each of you a holiday/holy day season filled > with goodness. > > For those of you that I haven't communed with this year, rest assured > you haven't been absent from my mind! Greetings also to LiveCode Ltd > after another lively year. > > And most importantly, certain other thanks and appreciation especially > relevant to this particular season. My wishes for health, strength of > mind, peace and economic stability, and quality of code for those > engaged in the pursuit of excellent software for many worthy pursuits. > > Best wishes, > > Curry Kenworthy > Pompano Beach, FL > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gcanyon at gmail.com Tue Dec 25 21:53:58 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 25 Dec 2018 18:53:58 -0800 Subject: 9.0.2 Stable Gradient Tool Frequently Fails In-Reply-To: <73F39325-3BA3-4599-97D5-E833EF14A4EB@hindu.org> References: <73F39325-3BA3-4599-97D5-E833EF14A4EB@hindu.org> Message-ID: It's not an editor, per se, but all the fill gradient properties are accessible and editable in Navigator's property editor. I realized while checking this that there can be stroke gradients as well. I didn't know that, and they're not editable yet. I'll update Navigator and post when they're done. gc On Mon, Dec 24, 2018 at 6:37 AM Sannyasin Brahmanathaswami via use-livecode wrote: > In 9.0.2 the gradients tools fail to open. > > I create graphic set gradient, double click on the dialog doesn't appear > > Is there a work around for this? Can you open to model Dialog for working > to gradients "by hand" from the msg box? > > Frankly working with gradients is a "pain" because I often need to move > the location bars far outside the object. > > I believe someone create tool for editing gradients. What is that? > > 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 gcanyon at gmail.com Tue Dec 25 23:55:04 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 25 Dec 2018 20:55:04 -0800 Subject: 9.0.2 Stable Gradient Tool Frequently Fails In-Reply-To: References: <73F39325-3BA3-4599-97D5-E833EF14A4EB@hindu.org> Message-ID: Okay, I updated Navigator to 6.7rc1. I'll post to the list separately with the changes. From gcanyon at gmail.com Tue Dec 25 23:56:15 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 25 Dec 2018 20:56:15 -0800 Subject: Navigator 6.7rc1 is available Message-ID: I found out about strokeGradient, so I updated: 1. Added strokeGradient property editing, similar to fillGradient editing. 2. Added popups for fillGradient["type"] and strokeGradient["type"], and fillGradient["quality"] and strokeGradient["quality"]. 3. Modified the property editor so start, end, via, and repeat edit inline instead of opening the editor. 4. Fixed a bug where setting the fillGradient or strokeGradient types to "No Gradient" failed (because that's actually an invalid value). It now clears the gradient properly. As usual, you can get Navigator here . Or grab it from GitHub . From tom at makeshyft.com Wed Dec 26 00:01:58 2018 From: tom at makeshyft.com (Tom Glod) Date: Wed, 26 Dec 2018 00:01:58 -0500 Subject: Have (or had) a Blessed Christmas In-Reply-To: References: <701b1188-0d2b-1e5e-5b9a-4555a75f5553@pair.com> Message-ID: +1 Thanks & same to you On Tue, Dec 25, 2018 at 7:24 PM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > +1 > > On 12/25/2018 7:08 PM, Curry Kenworthy via use-livecode wrote: > > > > Hope your Christmas day was merry and/or meritorious, fellow LiveCoders. > > > > I didn't have the opportunity to spend as much time here on-list this > > year as I would have loved to do, but greatly enjoyed working with > > many of you, and wish each of you a holiday/holy day season filled > > with goodness. > > > > For those of you that I haven't communed with this year, rest assured > > you haven't been absent from my mind! Greetings also to LiveCode Ltd > > after another lively year. > > > > And most importantly, certain other thanks and appreciation especially > > relevant to this particular season. My wishes for health, strength of > > mind, peace and economic stability, and quality of code for those > > engaged in the pursuit of excellent software for many worthy pursuits. > > > > Best wishes, > > > > Curry Kenworthy > > Pompano Beach, FL > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From andre at andregarzia.com Wed Dec 26 04:02:31 2018 From: andre at andregarzia.com (Andre Alves Garzia) Date: Wed, 26 Dec 2018 09:02:31 +0000 Subject: [ANN] 30% End of Year discount on my new book and tools Message-ID: Hi Friends, Following LiveCode fantastic end of year promotions of 30% discount on a ton of stuff and since it is boxing day here in the UK, I decided to create a end of year promotion of my own. Starting today and going until the end of the year, there is a 30% discount on the following items by using the coupon code ENDOFYEAR2018: # Bundle of "The Book + Network Tracer + DB Lib + AAG Tools" - Usually GBP 100 (which already is 30% discount on the sum of the products) will go for GBP 70. - Direct Purchase link: https://sowl.co/BAAZl # LiveCode Advanced Application Architecture Book - Normally a GBP 15 value, goes for GBP 10.50. - Direct Purchase link: https://sowl.co/cqnKW # Network Tracer - Normally GBP 40, with discount GBP 28. - Direct Purchase link: https://sowl.co/tqAlD # DB Lib - Normally GBP 60, with discount GBP 42. - Direct Purchase link: https://sowl.co/YpT7k To get the discount you need to apply a coupon code at the payment screen, the coupon code is: ENDOFYEAR2018 More information about all those items is available from my site: http://andregarzia.com/livecode Cheers andre From ingar.roggen at sosiologi.uio.no Wed Dec 26 07:26:33 2018 From: ingar.roggen at sosiologi.uio.no (Ingar Roggen) Date: Wed, 26 Dec 2018 12:26:33 +0000 Subject: LC-apps for HC In-Reply-To: <7fe60dc8-3761-93db-38b5-c55f07df0207@gmail.com> References: <7fe60dc8-3761-93db-38b5-c55f07df0207@gmail.com> Message-ID: Richmond I must have been sleeping at the time of your offer. Sorry! ? When Andy right now offers his whole bundle at Xmas prices I would gladly buy it all. I hope he reads this. BUT ONLY IF it helps to bridge and bond HC with LC! Including the complete original MacPaint. ? In order not to clutter up this list I stop here and refer you here to a pdf with a sketch of my own solution: roggen.no/HC+LC.pdf and a pdf with my mind-hologram for a CyberMentat:roggen.no/inner. Merry Xmas to all of you! Ingar 3. des. 2018 kl. 10.15 skrev Richmond via use-livecode >: Did exactly that a couple of years ago . . . . No takers at the time. Richmond. On 3.12.18 ?. 3:55 ?., Richard Gaskin via use-livecode wrote: Ingar Roggen: > ...why not elaborate it to the tool, the app needed to make HC easily > portable to LC and thereby accessible "to the rest of us" again? > Anybody takes the challenge? One could make HC's interface in LC. Anyone game? I once thought about doing it myself... http://livecodejournal.com/features/the-true-power-of-hypercard.html _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Wed Dec 26 09:43:32 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Wed, 26 Dec 2018 14:43:32 +0000 Subject: Musings on Architect, MVC, Nested Behaviors Message-ID: <50C8C268-8C0D-4825-A4C0-61C54DD06300@hindu.org> Always interest in improving (often terrifying beginning) my architecture, having read Andre's book on MVC. It comes to mind that we could use a standard structure, like 1) Card or Group 2) Assigned in a unique view e.g. "behavior_viewHomeStory" * handles the controls on the card and group 3) Assigned to that a Parent Behavios (nested) general model e.g. "behavior_modelNarrative" * handles getting quotes from database; XML/JSON from servers, and it this case --any "style" sheet assigned to the "stories" with should be used everywhere -- might consider a "view" component, but the style "brief" should be followed (mostly) everywhere app.. for things like quotes, pull Quote, headline, type faces.. it seems to be a "model" ... which could be over ridden with handlers in the view script #2, as needed # 3 can to generalized and used everywhere. Anyone doing "Levure"? How does Levure handle this? BR From bobsneidar at iotecdigital.com Wed Dec 26 10:53:18 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Dec 2018 15:53:18 +0000 Subject: Versions 7.1.1 and 8.1.3 no long working properly In-Reply-To: References: <492bf6df-d318-752b-e200-668b6b46510f@fourthworld.com> Message-ID: <379D38F1-2D71-4952-988D-8DF8F4BCFD81@iotecdigital.com> Curious. I woke up my Mac with 10.14.2 with an external monitor plugged in. The laptop monitor backlight lit, but no image was displayed. Rebooting resolved the issue. Bob S > On Dec 22, 2018, at 03:19 , JJS via use-livecode wrote: > > I've read that 10.14.3 will come in Januray or february. > > Mojave 10.14 did strange thing on my hackintosh too, so i downgraded to High sierra latest version 10.13.6 > > From corrupted downloads to other strange things. > > Now there is an update to 10.14.2, but it also did not work to update correct to that version from 10.14. From richmondmathewson at gmail.com Wed Dec 26 11:47:57 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 26 Dec 2018 18:47:57 +0200 Subject: Versions 7.1.1 and 8.1.3 no long working properly In-Reply-To: <379D38F1-2D71-4952-988D-8DF8F4BCFD81@iotecdigital.com> References: <492bf6df-d318-752b-e200-668b6b46510f@fourthworld.com> <379D38F1-2D71-4952-988D-8DF8F4BCFD81@iotecdigital.com> Message-ID: Yesterday I woke my Mac mini running 10.14.2 from sleep and got nothing but 'snow' on the monitor. Turning off all 'sleep' settings solved the problem. Richmond. On Wed, Dec 26, 2018, 5:53 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Curious. I woke up my Mac with 10.14.2 with an external monitor plugged > in. The laptop monitor backlight lit, but no image was displayed. Rebooting > resolved the issue. > > Bob S > > > > On Dec 22, 2018, at 03:19 , JJS via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I've read that 10.14.3 will come in Januray or february. > > > > Mojave 10.14 did strange thing on my hackintosh too, so i downgraded to > High sierra latest version 10.13.6 > > > > From corrupted downloads to other strange things. > > > > Now there is an update to 10.14.2, but it also did not work to update > correct to that version from 10.14. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lists at mangomultimedia.com Wed Dec 26 12:10:50 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed, 26 Dec 2018 11:10:50 -0600 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <50C8C268-8C0D-4825-A4C0-61C54DD06300@hindu.org> References: <50C8C268-8C0D-4825-A4C0-61C54DD06300@hindu.org> Message-ID: On Wed, Dec 26, 2018 at 8:44 AM Sannyasin Brahmanathaswami via use-livecode wrote: > Always interest in improving (often terrifying beginning) my architecture, > having read Andre's book on MVC. It comes to mind that we could use a > standard structure, like > > 1) Card or Group > 2) Assigned in a unique view e.g. "behavior_viewHomeStory" > * handles the controls on the card and group > 3) Assigned to that a Parent Behavios (nested) general model e.g. > "behavior_modelNarrative" > * handles getting quotes from database; XML/JSON from servers, > > and it this case > > --any "style" sheet assigned to the "stories" with should be used > everywhere -- might consider a "view" component, but the style "brief" > should be followed (mostly) everywhere app.. for things like quotes, pull > Quote, headline, type faces.. it seems to be a "model" ... which could be > over ridden with handlers in the view script #2, as needed > # 3 can to generalized and used everywhere. > > Anyone doing "Levure"? How does Levure handle this? > Levure doesn't have a strong opinion one way or the other. There is no code that is designed specifically around the Model-view-controller (MVC) pattern. Levure helps you organize existing LiveCode features such as libraries, behaviors, frontscripts/backscripts, widgets, and stacks with UI elements. That being said, Levure certainly encourages some of the MVC principles. If you organize your stack files the way that Levure suggests then your code will be separated from stacks with UI objects. For example, Levure encourages you to separate each stack with UI objects into a separate stack file and to use behaviors assigned to the card so that your code is stored outside of the stack file. This separates your view (the UI elements) from the controller (the card script stored in the behavior) and facilitates simultaneous development between more than one developer. If your model code is located in a library stack file then that code is stored separately from the controller and view (stacks with UI objects and their behavior scripts). Even if you decide to move some controller code into it's own library stack file than the controller code remains independent of the model and view. Overall Levure doesn't try to force you into designing your app a certain way. It encourages you to organize your application in a certain way and it provides the Levure Helper interface. This organization allows Levure to automate a number of things for you during the authoring and distribution stages. It also helps you keep your sanity as you work on an app, as well as when you return to the project months (or years) later after not having looked at the code. The Levure Helper interface allows powerful features to be added to a Levure application in a very straightforward way without causing bloat within Levure itself. Levure could certainly be extended via a helper(s) to add features specific to MVC. Levure Helpers allow a developer to extend Levure in any number of ways. If a developer came up with an MVC approach in LiveCode that required libraries, frontscripts, certain configuration options, plugins or handlers for use while working in the IDE, etc. then that functionality could be wrapped up into a Levure Helper and dropped into an app. For example, I have a helper I use internally that adds support for something I call embeddable views. It allows me to treat groups that are on a card as their own distinct stacks during development. It does this by automatically updating the card whenever the stack representing the embeddable view is saved. The helper also performs some operations when the application is packaged for distribution. While this functionality is outside the scope of Levure itself, it wouldn't be nearly as easy to implement without the Levure app.yml configuration file and the hooks that Levure provides when packaging an application for distribution. One final thought I will add is this ? whatever you do come up with, consider if it will be understandable to you and other developers working on the project later on. It is possible to get so wrapped up in separation of code that it becomes very difficult to figure out how all of the code works together when you revisit the project or try to add a developer. Search for the right balance. -- Trevor DeVore CTO - ScreenSteps www.screensteps.com From hh at hyperhh.de Wed Dec 26 14:03:42 2018 From: hh at hyperhh.de (hh) Date: Wed, 26 Dec 2018 20:03:42 +0100 Subject: FrameTalkHTML5_v100 Message-ID: <6671117C-0607-4609-A77F-B129365323FA@hyperhh.de> FrameTalkHTML5 is my end-of-year gift 2018 to the community. It is a HTML5 standalone that can talk (send/ receive messages) to other instances of itself in frames of the same browser window. The instances of the standalone can come from different (local or remote) servers. The "installation" uses "postMessage" on the javaScript side and a javascriptHandler of the HTML5-standalone on the LC side. [1] Use the 2x2 demo "FrameTalkHTML5" from a browser widget. This is available from "Sample Stacks" or from http://livecodeshare.runrev.com/stack/923 The sample-stack contains a browser widget that loads the four frames from two different servers. **** You can moreover talk from/to the stack to/from each of the **** four frames displayed in the widget. The stack has large help (incl. the URL of the source code of the HTLM5 standalone used in the frames). [2] Call a 2x2-demo "FrameTalkHTML5" in your (ordinary) browser from the index (scroll to bottom), see (EU) http://hyperhh.de/html5/index-large.html or (US) http://hh.on-rev.com/html5/index-large.html In this versions the "top" (the frameset) simply answers back a 'Got it' to the sending standalone into its frame. p.s. Santas are busy again until 2019 :-) see http://hyperhh.de/html5/SantasAreBusy-9.0.0-dp-4X.html or http://hh.on-rev.com/html5/SantasAreBusy-9.0.0-dp-4X.html From brahma at hindu.org Wed Dec 26 14:08:58 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Wed, 26 Dec 2018 19:08:58 +0000 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: References: <50C8C268-8C0D-4825-A4C0-61C54DD06300@hindu.org> Message-ID: <5D953E0C-1C9A-4A53-AA37-49D724E6232D@hindu.org> Happy Holidays Trevor Thank you for the thorough response. The Levure architecture, and what we came up with SivaSiva app is very close. It would not really be to difficult to port it one day to Levure. With that in mind, though you say "Levure doesn't have a strong opinion one way or the other. There is no code that is designed specifically around the Model-view-controller (MVC) pattern." I want to start using you conventions. A few more questions... 1) "to separate each stack with UI objects into a separate stack file and to use behaviors assigned to the card " You keep these in a separate folder, 1 per stack and behavior(s)? 2) Are behaviors loaded in memory when a user loads the card and "unloaded" from RAM when the users closes card? That question goes to performance on libraries (open at start up) versus behaviors. I don't know if these texts script will impact performance, relative to a JPEG that you bring in, or a deep dbase query... Mark once said that scripts are not "a problem" but more about what they tell the CPU to do and what UI is doing to the pixels on screen - Images etc. But I keep wondering about that. 3) What do you think of nested behaviors, where the "uber parent" is a model and the child behavior is a view/UI behavior, controller VS just keeping that model in libraries that remain open all the time? Goes to #2 above. My guess is that, if the code is being reused enough, it's just a text file (hardly adds to the RAM) , and debugging-- also "to figure out how all of the code works together when you revisit the project or try to add a developer" -- that using a library and keeping it in a library folder, probably keeps it simple/more easily understood. Brahmanathaswami ? Trevor DeVore via wrote: One final thought I will add is this ? whatever you do come up with, consider if it will be understandable to you and other developers working on the project later on. It is possible to get so wrapped up in separation of code that it becomes very difficult to figure out how all of the code works together when you revisit the project or try to add a developer. Search for the right balance. From jacque at hyperactivesw.com Wed Dec 26 15:42:12 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 26 Dec 2018 14:42:12 -0600 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <5D953E0C-1C9A-4A53-AA37-49D724E6232D@hindu.org> References: <50C8C268-8C0D-4825-A4C0-61C54DD06300@hindu.org> <5D953E0C-1C9A-4A53-AA37-49D724E6232D@hindu.org> Message-ID: <167ec40d8a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Besides the impact of my current workload, I'm afraid this complexity is what prevented me from continuing to work on Swami's project. There are now so many disparate parts and pieces that unless you have a firm knowledge of every library and behavior script, there is no easy way to participate. In addition, remote debugging doesn't work with script only stacks so that's an additional obstruction to overcome. I know there is enthusiasm for script only stacks and they are really helpful for those who use git. But when git isn't a target, the old fashioned way is really much easier to follow and debug. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com> > ? Trevor DeVore via wrote: > > One final thought I will add is this ? whatever you do come up with, > consider if it will be understandable to you and other developers working > on the project later on. It is possible to get so wrapped up in separation > of code that it becomes very difficult to figure out how all of the code > works together when you revisit the project or try to add a developer. From gcanyon at gmail.com Wed Dec 26 16:39:30 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 26 Dec 2018 13:39:30 -0800 Subject: Navigator 6.7rc1 is available In-Reply-To: References: Message-ID: I updated to 6.7.1rc1 -- based on a suggestion from Sannyasin Brahmanathaswami, selecting a script-only stack on the target menu now immediately edits the script for that stack instead of showing it in Navigator. As usual, you can get Navigator here . Or grab it from GitHub . On Tue, Dec 25, 2018 at 8:56 PM Geoff Canyon wrote: > I found out about strokeGradient, so I updated: > > 1. Added strokeGradient property editing, similar to fillGradient editing. > 2. Added popups for fillGradient["type"] and strokeGradient["type"], and > fillGradient["quality"] and strokeGradient["quality"]. > 3. Modified the property editor so start, end, via, and repeat edit inline > instead of opening the editor. > 4. Fixed a bug where setting the fillGradient or strokeGradient types to > "No Gradient" failed (because that's actually an invalid value). It now > clears the gradient properly. > > As usual, you can get Navigator here > . Or grab > it from GitHub . > From rdimola at evergreeninfo.net Wed Dec 26 18:13:26 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 26 Dec 2018 18:13:26 -0500 Subject: Image Remove Perimeter White Space In-Reply-To: References: Message-ID: <009301d49d70$9e5f4a10$db1dde30$@net> I am downloading various images from a customer with varying unpredictable amount of white space around the image. I want to make the visible center portion images the same size. Before I start coding is there any native LC way or existing example stacks that do this? Thanks! Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From bobsneidar at iotecdigital.com Wed Dec 26 18:23:35 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Dec 2018 23:23:35 +0000 Subject: Image Remove Perimeter White Space In-Reply-To: <009301d49d70$9e5f4a10$db1dde30$@net> References: <009301d49d70$9e5f4a10$db1dde30$@net> Message-ID: <12379B15-EA94-422C-9D56-E51E5B493DDB@iotecdigital.com> Oh that's a pickle! Nothing native I'm sure. There is no telling from the image itself that you want "white" to equal "overlap" at least not without a mask of some sort. So it's going to be a pixel by pixel job, and then hope and pray that "white" actually means "0,0,0" as opposed to "1,0,0" or anything else. If the image was produced taking into account any kind of color workflow, that will likely not be the case. I suppose a better way would be to provide the end user with some kind of crop tool and let them draw and scale a transparent rectangle with visible border and handles, then crop the imported image accordingly. Alternatively just require the user to provide images of a maximum width and height, then alert the user if they select something which exceeds the parameters. That is not unusual to expect that from end users. For instance, Toshiba's new Elevate Web Portal allow the importing of a background image and a company logo, but the logo must be no larger than 256x256 and the background must be exactly a certain size. Toshiba has no compunction requiring us to follow those guidelines. Bob S > On Dec 26, 2018, at 15:13 , Ralph DiMola via use-livecode wrote: > > I am downloading various images from a customer with varying unpredictable > amount of white space around the image. I want to make the visible center > portion images the same size. Before I start coding is there any native LC > way or existing example stacks that do this? > > Thanks! > > Ralph DiMola From hh at hyperhh.de Wed Dec 26 18:49:16 2018 From: hh at hyperhh.de (hh) Date: Thu, 27 Dec 2018 00:49:16 +0100 Subject: Image Remove Perimeter White Space Message-ID: <695E3CBA-3889-4FB9-8AED-6518C9D70D93@hyperhh.de> > Ralph D.wrote > I am downloading various images from a customer with > varying unpredictable amount of white space around the > image. I want to make the visible center portion images > the same size. Assuming the white space around is symmetric, at least proportional to width and height, you could compute your "visible center portion" based on the loc of the image. Then use the crop command. The only difficulty with crop is to set the rectangle correctly. For this, setting the topleft of the image to (0,0) is helpful for me. For visible cropping you could wait for my cropTool that is able to crop solid color background (with selectable tolerance). It's coming in January 2019 (as a new years gift for the community) and already done, needs only more help and some "beautifying". From jacque at hyperactivesw.com Wed Dec 26 19:11:15 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 26 Dec 2018 18:11:15 -0600 Subject: Image Remove Perimeter White Space In-Reply-To: <009301d49d70$9e5f4a10$db1dde30$@net> References: <009301d49d70$9e5f4a10$db1dde30$@net> Message-ID: <5619d816-02cb-6d90-1ea9-5a771b5d83b9@hyperactivesw.com> On 12/26/18 5:13 PM, Ralph DiMola via use-livecode wrote: > I am downloading various images from a customer with varying unpredictable > amount of white space around the image. I want to make the visible center > portion images the same size. Before I start coding is there any native LC > way or existing example stacks that do this? If you mean to make all the images the same size and you aren't concerned about leaving out some content, then I'd create a temporary graphic with the right dimensions, center it over the loc of the customer image, and then: crop img "customerImg" to the rect of grc "tempGrc" If you want all the content to display, you can resize the longer edge of the image proportionately to fit inside the crop rectangle before cropping it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From rdimola at evergreeninfo.net Wed Dec 26 19:19:37 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 26 Dec 2018 19:19:37 -0500 Subject: Image Remove Perimeter White Space In-Reply-To: <12379B15-EA94-422C-9D56-E51E5B493DDB@iotecdigital.com> References: <009301d49d70$9e5f4a10$db1dde30$@net> <12379B15-EA94-422C-9D56-E51E5B493DDB@iotecdigital.com> Message-ID: <009a01d49d79$dce3fe80$96abfb80$@net> Thanks All! I was not totally clear. The area around the visible center is transparent(not white). I need to do this invisibly in real-time without user interaction. Luckily all the images are square so I don't have to worry about keeping the aspect ratio intact. I will just have to go pixel by pixel and check left, top, right and bottom sides for any non-zero RGB and delete rows/columns until one of the sides has an RGB that is not zero. Again... Just when I find myself "WAH"ing I remember this is LiveCode and things like this are not so bad to code. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From hh at hyperhh.de Wed Dec 26 19:43:07 2018 From: hh at hyperhh.de (hh) Date: Thu, 27 Dec 2018 01:43:07 +0100 Subject: Image Remove Perimeter White Space Message-ID: <5F80E24B-94B4-459F-93AE-5B6EDDC30AD9@hyperhh.de> > Ralph wrote: > I will just have to go pixel by pixel and check > left, top, right and bottom sides for any non-zero > RGB and delete rows/columns until one of the sides > has an RGB that is not zero. Here is a comparison value for that. Using javascript from a hidden browser widget autocropping to opaque pixels needs (incl. transport) for a 500x500 sized image around 100 ms. From hh at hyperhh.de Wed Dec 26 19:58:08 2018 From: hh at hyperhh.de (hh) Date: Thu, 27 Dec 2018 01:58:08 +0100 Subject: Image Remove Perimeter White Space Message-ID: <4252D36E-4035-4564-8C85-1AA6ED38AC21@hyperhh.de> Here is a pure LC Script handler from one of my "early" images stacks. For large images this may become pretty slow... ## CROP image to opaque pixels on cropIt ft put the width of img ft into w; put the height of img ft into h put the maskdata of img ft into mData put numToByte(0) into c0 -- left and right transparency limits put w into cmin; put 1 into cmax repeat with i=0 to h-1 put i*w into h1 repeat with j=1 to cmin if byte h1+j of mData is not c0 then put j into cmin; exit repeat end if end repeat repeat with j=w down to max(cmax,cmin) if byte h1+j of mData is not c0 then put j into cmax; exit repeat end if end repeat end repeat put max(1,cmin-2) into cmin; put min(w,2+cmax) into cmax ## <- +border -- top and bottom transparency limits put h into rmin; put 1 into rmax repeat with j=cmin to cmax repeat with i=0 to rmin-1 if byte i*w+j of mData is not c0 then put i into rmin; exit repeat end if end repeat repeat with i=h-1 down to max(rmax,rmin) if byte i*w+j of mData is not c0 then put i into rmax; exit repeat end if end repeat end repeat put max(1,rmin-2) into rmin; put min(h,2+rmax) into rmax ## <- +border put (cmax-cmin+1) into w1; put (rmax-rmin) into h1 put the left of img ft into L; put the top of img ft into T crop img ft to L+cmin-1,T+rmin,L+cmax,T+rmax -- LC Bug: resizes instead of cropping when image has angle <> 0 end cropIt From rdimola at evergreeninfo.net Wed Dec 26 22:35:30 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 26 Dec 2018 22:35:30 -0500 Subject: Image Remove Perimeter White Space In-Reply-To: <4252D36E-4035-4564-8C85-1AA6ED38AC21@hyperhh.de> References: <4252D36E-4035-4564-8C85-1AA6ED38AC21@hyperhh.de> Message-ID: <009b01d49d95$3a79dd60$af6d9820$@net> Thanks! I'll give it a try in the am. All of the images are 512/512 or less(icons). Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net Phone: 518-636-3998 Ex:11 Cell: 518-796-9332 -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of hh via use-livecode Sent: Wednesday, December 26, 2018 7:58 PM To: use-livecode at lists.runrev.com Cc: hh Subject: Re: Image Remove Perimeter White Space Here is a pure LC Script handler from one of my "early" images stacks. For large images this may become pretty slow... ## CROP image to opaque pixels on cropIt ft put the width of img ft into w; put the height of img ft into h put the maskdata of img ft into mData put numToByte(0) into c0 -- left and right transparency limits put w into cmin; put 1 into cmax repeat with i=0 to h-1 put i*w into h1 repeat with j=1 to cmin if byte h1+j of mData is not c0 then put j into cmin; exit repeat end if end repeat repeat with j=w down to max(cmax,cmin) if byte h1+j of mData is not c0 then put j into cmax; exit repeat end if end repeat end repeat put max(1,cmin-2) into cmin; put min(w,2+cmax) into cmax ## <- +border -- top and bottom transparency limits put h into rmin; put 1 into rmax repeat with j=cmin to cmax repeat with i=0 to rmin-1 if byte i*w+j of mData is not c0 then put i into rmin; exit repeat end if end repeat repeat with i=h-1 down to max(rmax,rmin) if byte i*w+j of mData is not c0 then put i into rmax; exit repeat end if end repeat end repeat put max(1,rmin-2) into rmin; put min(h,2+rmax) into rmax ## <- +border put (cmax-cmin+1) into w1; put (rmax-rmin) into h1 put the left of img ft into L; put the top of img ft into T crop img ft to L+cmin-1,T+rmin,L+cmax,T+rmax -- LC Bug: resizes instead of cropping when image has angle <> 0 end cropIt _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From irog at mac.com Wed Dec 26 22:34:00 2018 From: irog at mac.com (Roger Guay) Date: Wed, 26 Dec 2018 19:34:00 -0800 Subject: Probably a No-Brainer Message-ID: <0941CF89-3F0D-4B97-AA9A-1D25F9ECE734@mac.com> As an example, I want to replace the contents of a field that contains x^n with x^1 or x^2 or x^3 as n= 1 or 2 or 3 etc. But I can?t seem to find find a script that works. Help please?? Roger From tfabacher at gmail.com Wed Dec 26 23:47:03 2018 From: tfabacher at gmail.com (Todd Fabacher) Date: Wed, 26 Dec 2018 23:47:03 -0500 Subject: Websockets Problem on LiveCode Message-ID: This is a 911 call for HELP from anyone. We are using a Socket IO server. We tried using the web browser to send websockets messages...no problems. but when we listen and receive the websocket message, that is where the problem is created. If we don't call LiveCode from the web browser, we don't have any issues. But as soon as the browser calls a LiveCode function from Javascript the app is crashing in both iOS and Android. Sometime after 10 mins, sometimes after 20 mins - but it never makes it over an hour. I assume that it is a memory leaking error. Has anyone had this problem of calling LiveCode function from a JavaScript function in the browser?? This is a HUGE problem for us as the app cannot be shipped. Charles, you said you had a solution, but we could not get it to work. Maybe we were doing something wrong and you could point us in the right direction. Thanks for any help, Todd From ambassador at fourthworld.com Wed Dec 26 23:43:54 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 26 Dec 2018 20:43:54 -0800 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <167ec40d8a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <167ec40d8a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <55a374b2-4669-1dfe-6520-6f9a188860f5@fourthworld.com> J. Landman Gay jacque at hyperactivesw.com > I know there is enthusiasm for script only stacks and they are really > helpful for those who use git. But when git isn't a target, the old > fashioned way is really much easier to follow and debug. Being script-only is just the storage format on disk. Operationally, stacks are stacks, regardless of the storage format. Or maybe I misunderstand. Is the issue with script-only stacks, or with deeply-nested parentScript chains? -- 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 lists at mangomultimedia.com Thu Dec 27 00:08:42 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed, 26 Dec 2018 23:08:42 -0600 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <167ec40d8a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <50C8C268-8C0D-4825-A4C0-61C54DD06300@hindu.org> <5D953E0C-1C9A-4A53-AA37-49D724E6232D@hindu.org> <167ec40d8a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: On Wed, Dec 26, 2018 at 2:42 PM J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > Besides the impact of my current workload, I'm afraid this complexity is > what prevented me from continuing to work on Swami's project. There are > now > so many disparate parts and pieces that unless you have a firm knowledge > of > every library and behavior script, there is no easy way to participate. In addition, remote debugging doesn't work with script only stacks so > that's > an additional obstruction to overcome. > I thought I had used the remote debugger with iOS development before. I just add a "debugger" line to the script and the debugger opens up. Perhaps I'm misremembering though. What is it that doesn't work? > I know there is enthusiasm for script only stacks and they are really > helpful for those who use git. But when git isn't a target, the old > fashioned way is really much easier to follow and debug. Behaviors and script only stacks can lead to confusing designs if not organized thoughtfully. My feeling is that either approach can lead to a confusing architecture though. Whether you use all binary stacks or you mix in script only stacks, a lot of it comes down to organization and the ability to browse based on organization. -- Trevor DeVore CTO - ScreenSteps www.screensteps.com From lists at mangomultimedia.com Thu Dec 27 00:20:10 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed, 26 Dec 2018 23:20:10 -0600 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <5D953E0C-1C9A-4A53-AA37-49D724E6232D@hindu.org> References: <50C8C268-8C0D-4825-A4C0-61C54DD06300@hindu.org> <5D953E0C-1C9A-4A53-AA37-49D724E6232D@hindu.org> Message-ID: On Wed, Dec 26, 2018 at 1:09 PM Sannyasin Brahmanathaswami via use-livecode wrote: > > With that in mind, though you say "Levure doesn't have a strong opinion > one way or the other. There is no code that is designed specifically around > the Model-view-controller (MVC) > pattern." I want to start using you conventions. A few more questions... > > 1) "to separate each stack with UI objects into a separate stack > file and to use behaviors assigned to the card " > > You keep these in a separate folder, 1 per stack and behavior(s)? > Yes. An app that fully embraces the Levure approach has a `ui` folder which contains any number of sub-folders. Each sub-folder has a binary stack with the UI objects and a `behaviors` folder with any behaviors. The wiki has a visual: https://github.com/trevordevore/levure/wiki/ui#adding-ui-stacks > 2) Are behaviors loaded in memory when a user loads the card and > "unloaded" from RAM when the users closes card? That question goes to > performance on libraries (open at start up) versus behaviors. I don't know > if these texts script will impact performance, relative to a JPEG that you > bring in, or a deep dbase query... Mark once said that scripts are not "a > problem" but more about what they tell the CPU to do and what UI is doing > to the pixels on screen - Images etc. But I keep wondering about that. > Behaviors attached to a UI stack will be loaded when the UI stack is loaded. If you have the `destroyStack` set to true then the stack will be unloaded when it is closed but the behaviors will not be. Monte recently told me about the `revbehaviourses` function which can be used to unload behaviors which are not in use by any other stacks. There is an open issue to add support for removing behaviors from memory when closing a stack. See here: https://github.com/trevordevore/levure/issues/124 > 3) What do you think of nested behaviors, where the "uber parent" is a > model and the child behavior is a view/UI behavior, controller VS just > keeping that model in libraries that remain open all the time? Goes to #2 > above. > While I've never done it that way (I have defined my model interfaces in library stacks out of habits established prior to behaviors) there could be value in that approach. Take a model interface that can have multiple instances of the model. If you use a library script you have to pass a model instance identifier to every handler in the library. Using a behavior script attached to a card could remove that need as each behavior has it's own instance of the script local variables used in the model behavior script. The approach could also simplify callbacks because the target would always be the object the model behavior is attached to. Nested behaviors can become complicated but your project organization can make that easier to follow. For example, models can all be stored in a `models` folder. Or you could store them in a `behaviors/models` folder so that it was obvious they were used as behaviors. Or in `libraries/models There are come designs that could be simplified The nice thing about behaviors is that each instance has it's own script local variable values. Depending on what your model interface looks like you might be able to do away with having to pass an "id" to each model handler to uniquely identify the model associated with a particular view. > My guess is that, if the code is being reused enough, it's just a text > file (hardly adds to the RAM) , and debugging-- also "to figure out how > all of the code works together when you revisit the project or try to add a > developer" -- that using a library and keeping it in a library folder, > probably keeps it simple/more easily understood. > From charles at techstrategies.com.au Thu Dec 27 00:20:53 2018 From: charles at techstrategies.com.au (Charles Warwick) Date: Thu, 27 Dec 2018 16:20:53 +1100 Subject: Websockets Problem on LiveCode In-Reply-To: References: Message-ID: <871DA742-B76C-48B3-959F-A40CBE9F4B1C@techstrategies.com.au> Hi Todd, Did you try the sample LC stack that I sent you with the socket external? It allows you to send basic websocket messages to a server. If you did try it, what happened? The beta version should work on Windows, Mac and iOS (Android version is easy to add if needed). Regards, Charles > On 27 Dec 2018, at 3:47 pm, Todd Fabacher via use-livecode wrote: > > This is a 911 call for HELP from anyone. > > We are using a Socket IO server. We tried using the web browser to > send websockets messages...no problems. > > but when we listen and receive the websocket message, that is where the > problem is created. If we don't call LiveCode from the web browser, we > don't have any issues. > > But as soon as the browser calls a LiveCode function from Javascript the > app is crashing in both iOS and Android. Sometime after 10 mins, sometimes > after 20 mins - but it never makes it over an hour. > > I assume that it is a memory leaking error. Has anyone had this problem of > calling LiveCode function from a JavaScript function in the browser?? This > is a HUGE problem for us as the app cannot be shipped. > > Charles, you said you had a solution, but we could not get it to work. > Maybe we were doing something wrong and you could point us in the right > direction. > > Thanks for any help, > > Todd > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lists at mangomultimedia.com Thu Dec 27 00:31:02 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed, 26 Dec 2018 23:31:02 -0600 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <5D953E0C-1C9A-4A53-AA37-49D724E6232D@hindu.org> References: <50C8C268-8C0D-4825-A4C0-61C54DD06300@hindu.org> <5D953E0C-1C9A-4A53-AA37-49D724E6232D@hindu.org> Message-ID: Ugh. I accidentally hit send before finishing the email. Here is the finished version. On Wed, Dec 26, 2018 at 1:09 PM Sannyasin Brahmanathaswami via use-livecode wrote: > > With that in mind, though you say "Levure doesn't have a strong opinion > one way or the other. There is no code that is designed specifically around > the Model-view-controller (MVC) > pattern." I want to start using you conventions. A few more questions... > > 1) "to separate each stack with UI objects into a separate stack > file and to use behaviors assigned to the card " > > You keep these in a separate folder, 1 per stack and behavior(s)? > Yes. An app that fully embraces the Levure approach has a `ui` folder which contains any number of sub-folders. Each sub-folder has a binary stack with the UI objects and a `behaviors` folder with any behaviors. The wiki has a visual: https://github.com/trevordevore/levure/wiki/ui#adding-ui-stacks > 2) Are behaviors loaded in memory when a user loads the card and > "unloaded" from RAM when the users closes card? That question goes to > performance on libraries (open at start up) versus behaviors. I don't know > if these texts script will impact performance, relative to a JPEG that you > bring in, or a deep dbase query... Mark once said that scripts are not "a > problem" but more about what they tell the CPU to do and what UI is doing > to the pixels on screen - Images etc. But I keep wondering about that. > Behaviors attached to a UI stack will be loaded when the UI stack is loaded. If you have the `destroyStack` set to true then the stack will be unloaded when it is closed but the behaviors will not be. Monte recently told me about the `revbehaviourses` function which can be used to unload behaviors which are not in use by any other stacks. There is an open issue to add support for removing behaviors from memory when closing a stack. See here: https://github.com/trevordevore/levure/issues/124 > 3) What do you think of nested behaviors, where the "uber parent" is a > model and the child behavior is a view/UI behavior, controller VS just > keeping that model in libraries that remain open all the time? Goes to #2 > above. > While I've never done it that way (I have defined my model interfaces in library stacks out of habits established prior to behaviors) there could be value in that approach. Take a model interface that can have multiple instances of the model. If you use a library script you have to pass a model instance identifier to every handler in the library. Using a behavior script attached to a card could remove that need as each behavior has it's own instance of the script local variables used in the model behavior script. The approach could also simplify callbacks because the target would always be the object the model behavior is attached to. Nested behaviors can become complicated but your project organization can make that easier to follow. For example, models can all be stored in a `models` folder. In Levure the `app.yml` file would tell you if the scripts were being loaded as libraries or behaviors. You could even be more explicit and store them in a `behaviors/models` folder so that it was obvious they were used as behaviors. Or in `libraries/models` if you use the library approach. The point is, the configuration and/or structure of your project can educate a new person about how code is being used. > My guess is that, if the code is being reused enough, it's just a text > file (hardly adds to the RAM) , and debugging-- also "to figure out how > all of the code works together when you revisit the project or try to add a > developer" -- that using a library and keeping it in a library folder, > probably keeps it simple/more easily understood. > See my comments above about organizing your files. If you have clearly organized your files and you explicitly set up nested behaviors in your code that initializes a stack when it opens, then it may be clear enough for a new developer. A new developer may be more likely to see the chained behavior if the behaviors are explicitly assigned in code vs having to use vs going to the IDE to look up what the behavior chain is. Regarding your questions about resource usage ? I haven't seen your project but usually I'm not concerned about having library stacks used for models sticking around. While I haven't done any tests, I would be surprised if they made much of a difference in how your project performed. Large image files are going to have a more significant impact. -- Trevor DeVore CTO - ScreenSteps www.screensteps.com From hh at hyperhh.de Thu Dec 27 05:22:51 2018 From: hh at hyperhh.de (hh) Date: Thu, 27 Dec 2018 11:22:51 +0100 Subject: Websockets Problem on LiveCode Message-ID: > Todd wrote: > I assume that it is a memory leaking error. Has anyone had this problem of > calling LiveCode function from a JavaScript function in the browser?? This > is a HUGE problem for us as the app cannot be shipped. Libbrowser eats on desktop up to 5 MByte of memory per second. Bug #20012. From hh at hyperhh.de Thu Dec 27 08:52:04 2018 From: hh at hyperhh.de (hh) Date: Thu, 27 Dec 2018 14:52:04 +0100 Subject: Probably a No-Brainer Message-ID: > Roger wrote: > I want to replace the contents of a field that contains x^n > with x^1 or x^2 or x^3 as n= 1 or 2 or 3 etc. You could try to write in the file "x^[[n]] + x^[[n+1]]" and then script put 2 into n put merge(fld 1) into fld 1 --> yields "x^2 + x^3" From hakan at exformedia.se Thu Dec 27 11:25:52 2018 From: hakan at exformedia.se (hakan at exformedia.se) Date: Thu, 27 Dec 2018 17:25:52 +0100 Subject: Probably a No-Brainer In-Reply-To: <0941CF89-3F0D-4B97-AA9A-1D25F9ECE734@mac.com> References: <0941CF89-3F0D-4B97-AA9A-1D25F9ECE734@mac.com> Message-ID: replace "x^n" with "x^" & n in field "formula" might do the trick? :-H?kan On 27 Dec 2018, 04:34 +0100, Roger Guay via use-livecode , wrote: > As an example, I want to replace the contents of a field that contains x^n with x^1 or x^2 or x^3 as n= 1 or 2 or 3 etc. > But I can?t seem to find find a script that works. Help please?? > > Roger > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Dec 27 11:40:52 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 27 Dec 2018 16:40:52 +0000 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: References: <50C8C268-8C0D-4825-A4C0-61C54DD06300@hindu.org> <5D953E0C-1C9A-4A53-AA37-49D724E6232D@hindu.org> Message-ID: <8C1099DE-EEF6-4EB2-974A-94380C05BA99@iotecdigital.com> Precicely why I wanted to nest datagrid behaviors. This is working really well for me by the way. I have about 8 datagrids on what I call the Main Form, all running the same nested behavior inserted before the default datagrid behavior. If I need grid-specific code called from the behaviors I simply put that code in the datagrid script itself, then use dispatch, as it will not fail if it cannot find the handler (brilliant idea that). My other "form" stacks all have another nested behavior. Bob S > On Dec 26, 2018, at 21:20 , Trevor DeVore via use-livecode wrote: > >> 3) What do you think of nested behaviors, where the "uber parent" is a >> model and the child behavior is a view/UI behavior, controller VS just >> keeping that model in libraries that remain open all the time? Goes to #2 >> above. >> > > While I've never done it that way (I have defined my model interfaces in > library stacks out of habits established prior to behaviors) there could be > value in that approach. Take a model interface that can have multiple > instances of the model. If you use a library script you have to pass a > model instance identifier to every handler in the library. Using a behavior > script attached to a card could remove that need as each behavior has it's > own instance of the script local variables used in the model behavior > script. The approach could also simplify callbacks because the target would > always be the object the model behavior is attached to. From bobsneidar at iotecdigital.com Thu Dec 27 11:44:50 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 27 Dec 2018 16:44:50 +0000 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: References: <50C8C268-8C0D-4825-A4C0-61C54DD06300@hindu.org> <5D953E0C-1C9A-4A53-AA37-49D724E6232D@hindu.org> Message-ID: <873AB7D0-D193-4994-A31C-944605EF385E@iotecdigital.com> What I did to make this easier is I created a Development menu in the stack menu that I remove in standalones. Openstack builds a submenu in the Development menu for all the behavior buttons (but they could be script only stacks) so that I can click Development/Scripts/ to edit the script of any of my behaviors. Obviously this approach could be expanded to include behaviors that the IDE is presently using. Bob S > On Dec 26, 2018, at 21:31 , Trevor DeVore via use-livecode wrote: > > See my comments above about organizing your files. If you have clearly > organized your files and you explicitly set up nested behaviors in your > code that initializes a stack when it opens, then it may be clear enough > for a new developer. A new developer may be more likely to see the chained > behavior if the behaviors are explicitly assigned in code vs having to use > vs going to the IDE to look up what the behavior chain is. From irog at mac.com Thu Dec 27 12:45:13 2018 From: irog at mac.com (Roger Guay) Date: Thu, 27 Dec 2018 09:45:13 -0800 Subject: Probably a No-Brainer In-Reply-To: References: <0941CF89-3F0D-4B97-AA9A-1D25F9ECE734@mac.com> Message-ID: Thanks to Herman and H?kan but I haven?t got it yet. Consider the sum from n=0 to 2 of x^n/n!. What I want to do is expand this into the series x^0/0! + x^1/1! + x^2/2! etc. I can?t seem to wrap my head around this one!! Thanks very much, Roger > On Dec 27, 2018, at 8:25 AM, hakan at exformedia.se wrote: > > replace "x^n" with "x^" & n in field "formula" > > might do the trick? > > :-H?kan > On 27 Dec 2018, 04:34 +0100, Roger Guay via use-livecode , wrote: >> As an example, I want to replace the contents of a field that contains x^n with x^1 or x^2 or x^3 as n= 1 or 2 or 3 etc. >> But I can?t seem to find find a script that works. Help please?? >> >> Roger >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Thu Dec 27 13:21:06 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 27 Dec 2018 12:21:06 -0600 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <55a374b2-4669-1dfe-6520-6f9a188860f5@fourthworld.com> References: <167ec40d8a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <55a374b2-4669-1dfe-6520-6f9a188860f5@fourthworld.com> Message-ID: <167f0e60650.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> The issue is remote debugging. Script only stacks save nothing but scripts. Breakpoints are stored as custom properties which are lost when the stack is saved as part of a standalone, so when testing a mobile app they are gone and the debugger is unavailable. I've heard you can insert hard-coded breakpoint commands in the script instead but I haven't tried that yet. (Then you need to track them down and remove them when they are no longer needed.) Another way, which I did try, is to insert a temporary red dot breakpoint into the binary stack script and then step into the handlers in the script only stack from there, but in my case that meant stepping over a few hundred lines, which was tedious, and then when I got to the handler in question, the erroring line took over and ran to the end without stopping. I'd heard that once the debugger is triggered you should be able to add new temporary breakpoints dynamically, but when I tried that after stepping into the script only stack it didn't work. This was before the fix that removed the ghosted remote scripts, so maybe it would work now. At any rate, remote debugging a script only stack isn't easy and is sometimes impossible. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On December 26, 2018 10:51:25 PM Richard Gaskin via use-livecode wrote: > J. Landman Gay jacque at hyperactivesw.com >> I know there is enthusiasm for script only stacks and they are really >> helpful for those who use git. But when git isn't a target, the old >> fashioned way is really much easier to follow and debug. > > Being script-only is just the storage format on disk. Operationally, > stacks are stacks, regardless of the storage format. > > Or maybe I misunderstand. Is the issue with script-only stacks, or with > deeply-nested parentScript chains? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Thu Dec 27 14:02:43 2018 From: hh at hyperhh.de (hh) Date: Thu, 27 Dec 2018 20:02:43 +0100 Subject: Probably a No-Brainer Message-ID: You don't want to compute it but want to write it out into a field? on mouseUp put taylorsum(4,"x") into fld "OUT" end mouseUp function taylorsum n,x -- n is the degree, x the function argument put "1" into s -- or: put x &"^0/0!" into s repeat with i=1 to n put " + " & x &"^"& i &"/"& i &"!" after s end repeat return char 1 to -1 of s end taylorsum taylorsum(4,"x") yields --> 1 + x^1/1! + x^2/2! + x^3/3! + x^4/4! taylorsum(4,"2") yields --> 1 + 2^1/1! + 2^2/2! + 2^3/3! + 2^4/4! From irog at mac.com Thu Dec 27 14:31:39 2018 From: irog at mac.com (Roger Guay) Date: Thu, 27 Dec 2018 11:31:39 -0800 Subject: Probably a No-Brainer In-Reply-To: References: Message-ID: <46A8D130-ED8C-491C-9A56-4095BFFF3DF0@mac.com> You are so clever, Herman! Yes, the idea is to write it out into a field. This is great for the Taylor series, but how would one generalize this so that we could expand any fctn of x and n in the ?genFctn? field into the ?expandedFctn? field Sorry to take up so much of your time. Thanks, Roger > On Dec 27, 2018, at 11:02 AM, hh via use-livecode wrote: > > You don't want to compute it but want to write it out into a field? > > on mouseUp > put taylorsum(4,"x") into fld "OUT" > end mouseUp > > function taylorsum n,x -- n is the degree, x the function argument > put "1" into s -- or: put x &"^0/0!" into s > repeat with i=1 to n > put " + " & x &"^"& i &"/"& i &"!" after s > end repeat > return char 1 to -1 of s > end taylorsum > > taylorsum(4,"x") yields --> 1 + x^1/1! + x^2/2! + x^3/3! + x^4/4! > taylorsum(4,"2") yields --> 1 + 2^1/1! + 2^2/2! + 2^3/3! + 2^4/4! > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From irog at mac.com Thu Dec 27 14:53:42 2018 From: irog at mac.com (Roger Guay) Date: Thu, 27 Dec 2018 11:53:42 -0800 Subject: Probably a No-Brainer In-Reply-To: <46A8D130-ED8C-491C-9A56-4095BFFF3DF0@mac.com> References: <46A8D130-ED8C-491C-9A56-4095BFFF3DF0@mac.com> Message-ID: <4F426A0C-E5AA-4CB2-9870-71D5619A9E6C@mac.com> Wait a minute . . I think I got it: on mouseUp put 0 into m repeat 3 --(or any number) get fld "genFctn" put it&"+" after field "explFctn" replace n with m in fld "explFctn" add 1 to m end repeat delete last char of fld "explFctn" end mouseUp Roger > On Dec 27, 2018, at 11:31 AM, Roger Guay via use-livecode wrote: > > You are so clever, Herman! Yes, the idea is to write it out into a field. > > This is great for the Taylor series, but how would one generalize this so that we could expand any fctn of x and n in the ?genFctn? field into the ?expandedFctn? field > > Sorry to take up so much of your time. > > Thanks, > > Roger > >> On Dec 27, 2018, at 11:02 AM, hh via use-livecode wrote: >> >> You don't want to compute it but want to write it out into a field? >> >> on mouseUp >> put taylorsum(4,"x") into fld "OUT" >> end mouseUp >> >> function taylorsum n,x -- n is the degree, x the function argument >> put "1" into s -- or: put x &"^0/0!" into s >> repeat with i=1 to n >> put " + " & x &"^"& i &"/"& i &"!" after s >> end repeat >> return char 1 to -1 of s >> end taylorsum >> >> taylorsum(4,"x") yields --> 1 + x^1/1! + x^2/2! + x^3/3! + x^4/4! >> taylorsum(4,"2") yields --> 1 + 2^1/1! + 2^2/2! + 2^3/3! + 2^4/4! >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Thu Dec 27 15:28:32 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 27 Dec 2018 12:28:32 -0800 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <167f0e60650.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <167f0e60650.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: J. Landman Gay wrote: > The issue is remote debugging. Script only stacks save nothing but > scripts. > Breakpoints are stored as custom properties which are lost when the > stack is saved as part of a standalone, so when testing a mobile app > they are gone and the debugger is unavailable. Ah, yes. Now I understand. Thank you. Sounds like one more reason to allow stack properties as YAML frontmatter in the file. Ever since I suggested that a couple years back, the range of valuable use-cases keeps growing. -- 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 andre at andregarzia.com Thu Dec 27 15:38:39 2018 From: andre at andregarzia.com (Andre Alves Garzia) Date: Thu, 27 Dec 2018 20:38:39 +0000 Subject: Remote Debugging (Was Re: Musings on Architect, MVC, Nested Behaviors) In-Reply-To: <167f0e60650.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <167ec40d8a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <55a374b2-4669-1dfe-6520-6f9a188860f5@fourthworld.com> <167f0e60650.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <2966b876-2ee1-e6ea-1c54-9d87d21a2902@andregarzia.com> Dear Jacque, I know too well the rabbit holes that lies deep into some LC projects. As Richard have guessed, by using a ton of behaviors and libraries, you can end up with code that you can't easily trace and also which becomes quite hard to debug. As Jacque and I worked on the same project, one that is quite hard to debug on mobile, I came to realize that we needed some better tools. To solve that I made a "Network Tracer" tool to help me debug exact those apps. Think of it as a message box with more features, allowing you to not only display text and variable contents but also trace back where those texts are coming from. The network tracer work over LAN so you can have the phone and LC IDE on the same wifi network and should just work. I made a video showing it working at: ? https://vimeo.com/296722452 There is more information about it at my homepage at: http://andregarzia.com/livecode/ Cheers andre On 27/12/2018 18:21, J. Landman Gay via use-livecode wrote: > The issue is remote debugging. Script only stacks save nothing but > scripts. Breakpoints are stored as custom properties which are lost > when the stack is saved as part of a standalone, so when testing a > mobile app they are gone and the debugger is unavailable. > > I've heard you can insert hard-coded breakpoint commands in the script > instead but I haven't tried that yet. (Then you need to track them > down and remove them when they are no longer needed.) Another way, > which I did try, is to insert a temporary red dot breakpoint into the > binary stack script and then step into the handlers in the script only > stack from there, but in my case that meant stepping over a few > hundred lines, which was tedious, and then when I got to the handler > in question, the erroring line took over and ran to the end without > stopping. > > I'd heard that once the debugger is triggered you should be able to > add new temporary breakpoints dynamically, but when I tried that after > stepping into the script only stack it didn't work. This was before > the fix that removed the ghosted remote scripts, so maybe it would > work now. > > At any rate, remote debugging a script only stack isn't easy and is > sometimes impossible. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On December 26, 2018 10:51:25 PM Richard Gaskin via use-livecode > wrote: > From ahsoftware at sonic.net Thu Dec 27 16:37:25 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 27 Dec 2018 13:37:25 -0800 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <167f0e60650.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <167ec40d8a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <55a374b2-4669-1dfe-6520-6f9a188860f5@fourthworld.com> <167f0e60650.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: On 12/27/18 10:21 AM, J. Landman Gay via use-livecode wrote: > I've heard you can insert hard-coded breakpoint commands in the script > instead but I haven't tried that yet. (Then you need to track them down > and remove them when they are no longer needed.) If you don't have remote debugging enabled then hard-coded breakpoints in a standalone app should have (almost) no effect. The mechanism in the engine that triggers breaks will fire, but if nothing is there to catch it then execution will continue as if nothing happened. That said, it's probably good practice to remove them before shipping anyway because of the Law of Unintended Consequences. -- Mark Wieder ahsoftware at gmail.com From montero.je at gmail.com Thu Dec 27 20:41:21 2018 From: montero.je at gmail.com (Jose Enrique Montero) Date: Thu, 27 Dec 2018 22:41:21 -0300 Subject: Map Widget Message-ID: Merry Christmas and happy new year 2019 I have a problem with map widget, on android the app close, when I?ll try to create a map widget by a button create widget as "com.livecode.widget.native.map" best regards Jose Enrique Montero From bobsneidar at iotecdigital.com Thu Dec 27 16:46:53 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 27 Dec 2018 21:46:53 +0000 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: References: <167ec40d8a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <55a374b2-4669-1dfe-6520-6f9a188860f5@fourthworld.com> <167f0e60650.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <87A3EB60-3C5A-4093-8D77-F93ADA83E212@iotecdigital.com> Wait, they made that into a law?? Can't I even just be free to screw up anymore??? So oppressive! Bob S > On Dec 27, 2018, at 13:37 , Mark Wieder via use-livecode wrote: > > That said, it's probably good practice to remove them before shipping anyway because of the Law of Unintended Consequences. > > -- > Mark Wieder > ahsoftware at gmail.com From jacque at hyperactivesw.com Thu Dec 27 17:34:47 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 27 Dec 2018 16:34:47 -0600 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: References: <167ec40d8a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <55a374b2-4669-1dfe-6520-6f9a188860f5@fourthworld.com> <167f0e60650.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <167f1ce4758.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Yeah, I know breakpoints don't hurt in standalones but during active debugging you have to keep moving them around or deleting them to avoid unintended breaks. At least with red dots you can zap them all at once with a menu selection. I've had more than one brush with the law you mentioned. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On December 27, 2018 3:40:31 PM Mark Wieder via use-livecode wrote: > On 12/27/18 10:21 AM, J. Landman Gay via use-livecode wrote: > >> I've heard you can insert hard-coded breakpoint commands in the script >> instead but I haven't tried that yet. (Then you need to track them down >> and remove them when they are no longer needed.) > > If you don't have remote debugging enabled then hard-coded breakpoints > in a standalone app should have (almost) no effect. The mechanism in the > engine that triggers breaks will fire, but if nothing is there to catch > it then execution will continue as if nothing happened. > > That said, it's probably good practice to remove them before shipping > anyway because of the Law of Unintended Consequences. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Thu Dec 27 17:37:08 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 27 Dec 2018 16:37:08 -0600 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <87A3EB60-3C5A-4093-8D77-F93ADA83E212@iotecdigital.com> References: <167ec40d8a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <55a374b2-4669-1dfe-6520-6f9a188860f5@fourthworld.com> <167f0e60650.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <87A3EB60-3C5A-4093-8D77-F93ADA83E212@iotecdigital.com> Message-ID: <167f1d06e20.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> It's to keep you safe, like the TSA. And if you complain they'll make you debug with your shoes and belt off. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On December 27, 2018 3:48:41 PM Bob Sneidar via use-livecode wrote: > Wait, they made that into a law?? Can't I even just be free to screw up > anymore??? So oppressive! > > Bob S > > >> On Dec 27, 2018, at 13:37 , Mark Wieder via use-livecode >> wrote: >> >> That said, it's probably good practice to remove them before shipping >> anyway because of the Law of Unintended Consequences. >> >> -- >> Mark Wieder >> ahsoftware at gmail.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Thu Dec 27 17:38:58 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 27 Dec 2018 16:38:58 -0600 Subject: Remote Debugging (Was Re: Musings on Architect, MVC, Nested Behaviors) In-Reply-To: <2966b876-2ee1-e6ea-1c54-9d87d21a2902@andregarzia.com> References: <167ec40d8a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <55a374b2-4669-1dfe-6520-6f9a188860f5@fourthworld.com> <167f0e60650.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <2966b876-2ee1-e6ea-1c54-9d87d21a2902@andregarzia.com> Message-ID: <167f1d21bd0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I should have guessed why you wrote that. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On December 27, 2018 2:40:30 PM Andre Alves Garzia via use-livecode wrote: > Dear Jacque, > > I know too well the rabbit holes that lies deep into some LC projects. > As Richard have guessed, by using a ton of behaviors and libraries, you > can end up with code that you can't easily trace and also which becomes > quite hard to debug. As Jacque and I worked on the same project, one > that is quite hard to debug on mobile, I came to realize that we needed > some better tools. > > To solve that I made a "Network Tracer" tool to help me debug exact > those apps. Think of it as a message box with more features, allowing > you to not only display text and variable contents but also trace back > where those texts are coming from. The network tracer work over LAN so > you can have the phone and LC IDE on the same wifi network and should > just work. I made a video showing it working at: > > https://vimeo.com/296722452 > > There is more information about it at my homepage at: > http://andregarzia.com/livecode/ > > Cheers > > andre > > On 27/12/2018 18:21, J. Landman Gay via use-livecode wrote: >> The issue is remote debugging. Script only stacks save nothing but >> scripts. Breakpoints are stored as custom properties which are lost >> when the stack is saved as part of a standalone, so when testing a >> mobile app they are gone and the debugger is unavailable. >> >> I've heard you can insert hard-coded breakpoint commands in the script >> instead but I haven't tried that yet. (Then you need to track them >> down and remove them when they are no longer needed.) Another way, >> which I did try, is to insert a temporary red dot breakpoint into the >> binary stack script and then step into the handlers in the script only >> stack from there, but in my case that meant stepping over a few >> hundred lines, which was tedious, and then when I got to the handler >> in question, the erroring line took over and ran to the end without >> stopping. >> >> I'd heard that once the debugger is triggered you should be able to >> add new temporary breakpoints dynamically, but when I tried that after >> stepping into the script only stack it didn't work. This was before >> the fix that removed the ghosted remote scripts, so maybe it would >> work now. >> >> At any rate, remote debugging a script only stack isn't easy and is >> sometimes impossible. >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> On December 26, 2018 10:51:25 PM Richard Gaskin via use-livecode >> wrote: >> > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 27 17:58:55 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 27 Dec 2018 22:58:55 +0000 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <167f1d06e20.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <167ec40d8a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <55a374b2-4669-1dfe-6520-6f9a188860f5@fourthworld.com> <167f0e60650.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <87A3EB60-3C5A-4093-8D77-F93ADA83E212@iotecdigital.com> <167f1d06e20.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: :-) > On Dec 27, 2018, at 14:37 , J. Landman Gay via use-livecode wrote: > > It's to keep you safe, like the TSA. And if you complain they'll make you debug with your shoes and belt off. From jacque at hyperactivesw.com Thu Dec 27 18:18:01 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 27 Dec 2018 17:18:01 -0600 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: References: <167f0e60650.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <167f1f5dc28.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> On December 27, 2018 2:36:16 PM Richard Gaskin via use-livecode wrote: > > Sounds like one more reason to allow stack properties as YAML frontmatter > in the file. Ever since I suggested that a couple years back, the range of > valuable use-cases keeps growing. I wouldn't mind if you poked them again about it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ahsoftware at sonic.net Thu Dec 27 19:13:28 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 27 Dec 2018 16:13:28 -0800 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <167f1f5dc28.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <167f0e60650.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <167f1f5dc28.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <03723754-18b1-33c9-6aad-7f27794f50f5@sonic.net> On 12/27/18 3:18 PM, J. Landman Gay via use-livecode wrote: > On December 27, 2018 2:36:16 PM Richard Gaskin via use-livecode > wrote: >> >> Sounds like one more reason to allow stack properties as YAML >> frontmatter in the file.? Ever since I suggested that a couple years >> back, the range of valuable use-cases keeps growing. > > I wouldn't mind if you poked them again about it. Especially since there's already code in the engine to handle the "metadata" keyword for LCS. Seems like that could easily be misused^H^H^Hrepurposed to handle properties, breakpoints... -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Thu Dec 27 19:23:57 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 27 Dec 2018 16:23:57 -0800 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <03723754-18b1-33c9-6aad-7f27794f50f5@sonic.net> References: <167f0e60650.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <167f1f5dc28.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <03723754-18b1-33c9-6aad-7f27794f50f5@sonic.net> Message-ID: <91a6bd14-4b39-1f7e-3e91-379943b131ba@sonic.net> On 12/27/18 4:13 PM, Mark Wieder via use-livecode wrote: > Especially since there's already code in the engine to handle the > "metadata" keyword for LCS. > Er... I meant, of course, LCB. -- Mark Wieder ahsoftware at gmail.com From ambassador at fourthworld.com Thu Dec 27 21:52:47 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 27 Dec 2018 18:52:47 -0800 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <167f1f5dc28.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <167f1f5dc28.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <94a56752-843e-616c-5191-3bc0f814e379@fourthworld.com> J. Landman Gay wrote: > On December 27, 2018 2:36:16 PM Richard Gaskin via use-livecode > wrote: >> >> Sounds like one more reason to allow stack properties as YAML >> frontmatter in the file. Ever since I suggested that a couple >> years back, the range of valuable use-cases keeps growing. > > I wouldn't mind if you poked them again about it. At your prompting I started to open an enhancement request for this, but not long into it I hit on why they probably haven't done this yet: By what means would be indicate which properties we want saved there and which ones we don't care about? For example, we only care about the behavior property if it's non-empty. Should that same rule apply to breakpoints? Would there be cases where we wouldn't want them included? We probably don't want the rect saved, but what if someone does? How would they indicate to save the rect? And so on for colors, and the rest. I'm assuming customProps should always be there, yes? Are there cases where they shouldn't? Help answer these and I'll submit the request for their consideration. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From hh at hyperhh.de Thu Dec 27 23:10:02 2018 From: hh at hyperhh.de (hh) Date: Fri, 28 Dec 2018 05:10:02 +0100 Subject: JIGSAW PUZZLE 2d-video v_100 Message-ID: <270E88DB-BCAB-4604-AB20-FF53EE26717D@hyperhh.de> JigsawPuzzle2d-video is a HTML5 standalone that demoes what LC is able to do. I have seen such "live" computed puzzle pieces until now only in specialized native apps. Images. You can choose a built-in image or import a local one into the standalone. Moreover choose the base width for the pieces and whether to rotate the pieces. The base width determines the number of pieces. If for example the image has size 480x360 then a square width of 60 yields 8x6 = 48 pieces. As a help you can be notified (the image will be inverted) whenever you are very close to the correct location. Videos. As above but without importing, use one of the nine built-in looping videos. The segmenting of the video frames is done with canvas methods in javascript. This will stress your CPU/GPU! It runs at about ten times faster in the IDE with a browser widget, but sadly this is memory-leaking (5 MBytes per second). The HTML5 standalone runs at about two times faster in Safari than Firefox or Chrome/Opera. Reduce the number of pieces if you have less than 2-3 frames per second. Technique used: The pieces are live in LC computed polygon graphics of linear and cubic bezier curves. They are filled with backpattern-images from portions of the whole imagedata. Only this last imagedata part is for the videos "outsourced" to javascript. A pure LC version of the technique used is available in "Sample stacks". This has images only but is even fast enough for the slowest Raspi. Test (and download the source and the calling HTML page (contains short but important javascripts) from (US) http://hh.on-rev.com/html5/jigsawPuzzle2d-video-9.0.2hhX.html or (EU) http://hyperhh.de/html5/jigsawPuzzle2d-video-9.0.2hhX.html From brian at milby7.com Thu Dec 27 23:13:55 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 27 Dec 2018 23:13:55 -0500 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <94a56752-843e-616c-5191-3bc0f814e379@fourthworld.com> References: <167f1f5dc28.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <94a56752-843e-616c-5191-3bc0f814e379@fourthworld.com> Message-ID: <02d94769-c17f-42a8-b431-c16916c977d3@Spark> Part of the reason is that it is a ?script only stack? and as soon as you start adding other things it is no longer script only. ?If you need to store other things, then why not just use a binary stack file? ?Version control... use ScriptTracker (or some other method of script export that allows it). ?If you want to version control those other properties, then a more general solution would be warranted (like Monte?s work). I?ve briefly looked at the load/save code and think that it would be doable to extend the export code from just covering widgets to covering entire stack files. ?That would yield a regular array that could be exported as YAML, XML, JSON or some other format that would be Git compatible. ?(Only real issue is ID conflict resolution on import - my take would be to allow the developer to specify merge, replace, skip, or deconflict ID.) This solution would allow a dev to export the stack, remove the keys they don?t want saved, and create a file with these properties that can be loaded at runtime. ?The script itself would be left separate and the other properties would be merged. ?Of course this can be done now in pieces. ?But if import was in the engine and you didn?t need to version control the individual properties, it would be a one liner to import a LSON property file. Thanks, Brian On Dec 27, 2018, 9:53 PM -0500, Richard Gaskin via use-livecode , wrote: > J. Landman Gay wrote: > > > On December 27, 2018 2:36:16 PM Richard Gaskin via use-livecode > > wrote: > > > > > > Sounds like one more reason to allow stack properties as YAML > > > frontmatter in the file. Ever since I suggested that a couple > > > years back, the range of valuable use-cases keeps growing. > > > > I wouldn't mind if you poked them again about it. > > At your prompting I started to open an enhancement request for this, but > not long into it I hit on why they probably haven't done this yet: > > By what means would be indicate which properties we want saved there and > which ones we don't care about? > > For example, we only care about the behavior property if it's non-empty. > > Should that same rule apply to breakpoints? Would there be cases where > we wouldn't want them included? > > We probably don't want the rect saved, but what if someone does? How > would they indicate to save the rect? > > And so on for colors, and the rest. > > I'm assuming customProps should always be there, yes? Are there cases > where they shouldn't? > > Help answer these and I'll submit the request for their consideration. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Thu Dec 27 23:43:25 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 28 Dec 2018 04:43:25 +0000 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <55a374b2-4669-1dfe-6520-6f9a188860f5@fourthworld.com> References: <167ec40d8a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <55a374b2-4669-1dfe-6520-6f9a188860f5@fourthworld.com> Message-ID: Well, this stimulated a quite a discussion. @Trevor: Thank you about tips on staying organized. An very good points on how useful it could be the have nested behaviors though you have not used it yet this was an important observation :" If you use a library script you have to pass a model instance identifier to every handler in the library. Using a behavior script attached to a card could remove that need as each behavior has it's own instance of the script local variables used in the model behavior script. The approach could also simplify callbacks because the target would always be the object the model behavior is attached to." Wow... BUT: " A new developer may be more likely to see the chained behavior if the behaviors are explicitly assigned in code vs having to use vs going to the IDE to look up what the behavior chain is." That is a problem using "Navigator" (does not show nested behaviors) or the Project Browser which simply as (2)(1)(5) too obscure.... " if the behaviors are explicitly assigned in code" How would you do that? Currently it is obfuscated from the developer by the IDE " script "behavior_MyAudio" with behavior "behavior_ListenUI" Does not appear in the Script Editor. I consider that a "deficit" attribute of the "whole system" of nested behaviors. I put comments at the top of my "child" behavior, so that it appears the SE. //> This script has a parent behavior //> behavior_ListenUI @ Richard "Or maybe I misunderstand. Is the issue with script-only stacks, or with deeply-nested parentScript chains?" The "scary" thing about the original project, ( that Jacqueline referred to) was code,( not written by me or anyone here), that used Get and Set properties that sometimes went through four-five libraries before they "resolved themselves" to get what the calling function "wanted" and when one function call to a library would have done the same. Or to use, Jacque MO, to one huge stack script. It was not about script-only and deeply nested-parentScript chain. @ Jacqueline: I have refactored 95% of the code that drove us nuts before. Now debugging that is to 1- 3 libraries at the most. There are many libraries, but discovering "what is wrong" will take to you one or two at the most, "whew!" -- GIT has been indispensable, not only for collaboration, but the way it handles branches, being about to fetch revisions. @ Bob S. Very good and useful examples (dategrid) of how and why to use nested behaviors. I think my query was too generalized, like everything else "depends what you are trying to do" @at all -- Andre's "aagNetTracer" is the "bomb" for debugging, on the desk top and on the phone. He has "leaped frogged" far beyond the whole issue of breakpoint in code. @ y'all about revision control of binary stacks and YAML properities (front matter) for text only scripts.. cool musings! but they might want/need different threads? BR ? From Bernd.Niggemann at uni-wh.de Fri Dec 28 06:28:45 2018 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Fri, 28 Dec 2018 11:28:45 +0000 Subject: Musings on Architect, MVC, Nested Behaviors Message-ID: <281C74E0-B264-494A-8EC9-A3779C3E5667@uni-wh.de> Sannyasin Brahmanathaswami wrote > BUT: " A new developer may be more likely to see the chained behavior if the >behaviors are explicitly assigned in code vs having to use vs going to the IDE >to look up what the behavior chain is." > >That is a problem using "Navigator" (does not show nested behaviors) or the >Project Browser which simply as (2)(1)(5) too obscure.... "too obscure"... in Project Browser those are ordinal numbers and as such not very informative. But the tooltip shows you the actual script they are referencing. https://github.com/livecode/livecode-ide/pull/1508 at the request of Sannyasin Brahmanathaswami https://quality.livecode.com/show_bug.cgi?id=18176 maybe the tooltip helps. Kind regards Bernd From brahma at hindu.org Fri Dec 28 10:22:15 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 28 Dec 2018 15:22:15 +0000 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <281C74E0-B264-494A-8EC9-A3779C3E5667@uni-wh.de> References: <281C74E0-B264-494A-8EC9-A3779C3E5667@uni-wh.de> Message-ID: <8F419E33-2AA4-43D9-B252-E2ACE8FD2E6E@hindu.org> Ha! Fixed... I have using Navigator for so long I have hardly touched the PB. And on the big monitor the tools tip are small, be yes, they are there! BR ?On 12/28/18, 1:29 AM, "use-livecode on behalf of Niggemann, Bernd via use-livecode" wrote: "too obscure"... in Project Browser those are ordinal numbers and as such not very informative. But the tooltip shows you the actual script they are referencing. From bobsneidar at iotecdigital.com Fri Dec 28 10:37:07 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 28 Dec 2018 15:37:07 +0000 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <02d94769-c17f-42a8-b431-c16916c977d3@Spark> References: <167f1f5dc28.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <94a56752-843e-616c-5191-3bc0f814e379@fourthworld.com> <02d94769-c17f-42a8-b431-c16916c977d3@Spark> Message-ID: <694E4D08-F03C-435D-89D8-A349533A81CC@iotecdigital.com> That's an interesting idea! Bob S > On Dec 27, 2018, at 20:13 , Brian Milby via use-livecode wrote: > > I?ve briefly looked at the load/save code and think that it would be doable to extend the export code from just covering widgets to covering entire stack files. That would yield a regular array that could be exported as YAML, XML, JSON or some other format that would be Git compatible. (Only real issue is ID conflict resolution on import - my take would be to allow the developer to specify merge, replace, skip, or deconflict ID.) From bobsneidar at iotecdigital.com Fri Dec 28 10:41:01 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 28 Dec 2018 15:41:01 +0000 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: References: <167ec40d8a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <55a374b2-4669-1dfe-6520-6f9a188860f5@fourthworld.com> Message-ID: <4C97F142-4F2D-43EA-B7F1-F2C8B84A6E17@iotecdigital.com> I see nested behaviors and all behaviors in fact, like I see constants in relation to variables. Behaviors are or ought to be a structural thing fixed at startup, much like constants are declared at compile time and fixed. If a set of handlers needs to be declared, then that is what start using is for. Bob S > On Dec 27, 2018, at 20:43 , Sannyasin Brahmanathaswami via use-livecode wrote: > > BUT: " A new developer may be more likely to see the chained behavior if the behaviors are explicitly assigned in code vs having to use vs going to the IDE to look up what the behavior chain is." From bobsneidar at iotecdigital.com Fri Dec 28 10:52:49 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 28 Dec 2018 15:52:49 +0000 Subject: JIGSAW PUZZLE 2d-video v_100 In-Reply-To: <270E88DB-BCAB-4604-AB20-FF53EE26717D@hyperhh.de> References: <270E88DB-BCAB-4604-AB20-FF53EE26717D@hyperhh.de> Message-ID: Fun and interesting. But I cannot get another movie (Joan of Arc) to load. Playing around with other settings do not seem to have an effect either. The original puzzle works great though. Bob S > On Dec 27, 2018, at 20:10 , hh via use-livecode wrote: > > JigsawPuzzle2d-video is a HTML5 standalone that demoes what LC is able to do. > I have seen such "live" computed puzzle pieces until now only in specialized > native apps. > > Images. > You can choose a built-in image or import a local one into the standalone. > Moreover choose the base width for the pieces and whether to rotate the > pieces. The base width determines the number of pieces. If for example the > image has size 480x360 then a square width of 60 yields 8x6 = 48 pieces. > As a help you can be notified (the image will be inverted) whenever you are > very close to the correct location. > > Videos. > As above but without importing, use one of the nine built-in looping videos. > The segmenting of the video frames is done with canvas methods in javascript. > This will stress your CPU/GPU! It runs at about ten times faster in > the IDE with a browser widget, but sadly this is memory-leaking (5 MBytes > per second). The HTML5 standalone runs at about two times faster in Safari > than Firefox or Chrome/Opera. Reduce the number of pieces if you have less > than 2-3 frames per second. > > Technique used: The pieces are live in LC computed polygon graphics of linear > and cubic bezier curves. > They are filled with backpattern-images from portions of the whole imagedata. > Only this last imagedata part is for the videos "outsourced" to javascript. > > A pure LC version of the technique used is available in "Sample stacks". > This has images only but is even fast enough for the slowest Raspi. > > Test (and download the source and the calling HTML page (contains short but > important javascripts) from > (US) http://hh.on-rev.com/html5/jigsawPuzzle2d-video-9.0.2hhX.html > or > (EU) http://hyperhh.de/html5/jigsawPuzzle2d-video-9.0.2hhX.html > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Dec 28 10:56:22 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 28 Dec 2018 15:56:22 +0000 Subject: JIGSAW PUZZLE 2d-video v_100 In-Reply-To: References: <270E88DB-BCAB-4604-AB20-FF53EE26717D@hyperhh.de> Message-ID: <45257219-9F40-4849-8215-832078E18542@iotecdigital.com> NVM I see you have to click the Jigsaw button to get the puzzle to redraw. And you may as well exclude 16 point pieces they are almost indistinguishable. Bob S > On Dec 28, 2018, at 07:52 , Bob Sneidar via use-livecode wrote: > > Fun and interesting. But I cannot get another movie (Joan of Arc) to load. Playing around with other settings do not seem to have an effect either. The original puzzle works great though. > > Bob S > > >> On Dec 27, 2018, at 20:10 , hh via use-livecode wrote: >> >> JigsawPuzzle2d-video is a HTML5 standalone that demoes what LC is able to do. >> I have seen such "live" computed puzzle pieces until now only in specialized >> native apps. >> >> Images. >> You can choose a built-in image or import a local one into the standalone. >> Moreover choose the base width for the pieces and whether to rotate the >> pieces. The base width determines the number of pieces. If for example the >> image has size 480x360 then a square width of 60 yields 8x6 = 48 pieces. >> As a help you can be notified (the image will be inverted) whenever you are >> very close to the correct location. >> >> Videos. >> As above but without importing, use one of the nine built-in looping videos. >> The segmenting of the video frames is done with canvas methods in javascript. >> This will stress your CPU/GPU! It runs at about ten times faster in >> the IDE with a browser widget, but sadly this is memory-leaking (5 MBytes >> per second). The HTML5 standalone runs at about two times faster in Safari >> than Firefox or Chrome/Opera. Reduce the number of pieces if you have less >> than 2-3 frames per second. >> >> Technique used: The pieces are live in LC computed polygon graphics of linear >> and cubic bezier curves. >> They are filled with backpattern-images from portions of the whole imagedata. >> Only this last imagedata part is for the videos "outsourced" to javascript. >> >> A pure LC version of the technique used is available in "Sample stacks". >> This has images only but is even fast enough for the slowest Raspi. >> >> Test (and download the source and the calling HTML page (contains short but >> important javascripts) from >> (US) http://hh.on-rev.com/html5/jigsawPuzzle2d-video-9.0.2hhX.html >> or >> (EU) http://hyperhh.de/html5/jigsawPuzzle2d-video-9.0.2hhX.html >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Fri Dec 28 11:40:09 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 28 Dec 2018 10:40:09 -0600 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <94a56752-843e-616c-5191-3bc0f814e379@fourthworld.com> References: <167f1f5dc28.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <94a56752-843e-616c-5191-3bc0f814e379@fourthworld.com> Message-ID: <167f5aff240.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> On December 27, 2018 8:54:29 PM Richard Gaskin via use-livecode wrote: >> > > > At your prompting I started to open an enhancement request for this, but > not long into it I hit on why they probably haven't done this yet: > > By what means would be indicate which properties we want saved there and > which ones we don't care about? I wasn't thinking that expansively. I'd be happy with just the ability to use breakpoints during development, perhaps tied to the Test button as the remote debugger is now. As Brian said, if we want it to act like a regular stack we can just use one. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From alex at tweedly.net Fri Dec 28 12:25:47 2018 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 28 Dec 2018 17:25:47 +0000 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <167f1ce4758.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <167ec40d8a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <55a374b2-4669-1dfe-6520-6f9a188860f5@fourthworld.com> <167f0e60650.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <167f1ce4758.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: In some of my projects, I have a handler in my stack script to help with this. It requires one extra click (to step out of th handler) - but I often find it's worth that for the other advantages. The minimalist version is on mybreakpoint ?? breakpoint end mybreakpoint while the fancier version is more like: on mybreakpoint pLevel ?? if pLevel < gBreakLevel then exit mybreakpoint ?? put item -2 to -1 of line -2 of the executioncontexts &CR after msg ?? repeat with i = 1 to paramcount() ????? if param(i) is an array then ????????? printarray i, param(i) ????? else ????????? put i &"::" & param(i) & "::" &CR after msg ????? end if ?? end repeat ?? breakpoint end mybreakpoint I don't have it in a standard library because I tend to customize what it does, whether it logs calls to a file, etc. as I go ... Sometimes I use a "level" fpr whether or not to break, other teims I name each call, and have a (global) list of named calls that should actually break, etc. Alex. On 27/12/2018 22:34, J. Landman Gay via use-livecode wrote: > Yeah, I know breakpoints don't hurt in standalones but during active > debugging you have to keep moving them around or deleting them to > avoid unintended breaks. At least with red dots you can zap them all > at once with a menu selection. > > I've had more than one brush with the law you mentioned. :) > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On December 27, 2018 3:40:31 PM Mark Wieder via use-livecode > wrote: > >> On 12/27/18 10:21 AM, J. Landman Gay via use-livecode wrote: >> >>> I've heard you can insert hard-coded breakpoint commands in the script >>> instead but I haven't tried that yet. (Then you need to track them down >>> and remove them when they are no longer needed.) >> >> If you don't have remote debugging enabled then hard-coded breakpoints >> in a standalone app should have (almost) no effect. The mechanism in the >> engine that triggers breaks will fire, but if nothing is there to catch >> it then execution will continue as if nothing happened. >> >> That said, it's probably good practice to remove them before shipping >> anyway because of the Law of Unintended Consequences. >> >> -- >> ?Mark Wieder >> ?ahsoftware at gmail.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Fri Dec 28 12:30:37 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 28 Dec 2018 17:30:37 +0000 Subject: Find In the IDE Message-ID: <3BEA85DF-8278-44CB-A928-10741A336C70@hindu.org> I tried, in the IDE, to use the dialog Find and Replace Find: "toggleImgSize" In: All stack files in a folder Folder: _Siva-Siva-app Script (checked) # I know for sure it is at least in one *.livecodescript file? # Hopefully to see where else it is used? # Set the "folder" to my whole app folder?to look through all subfolders. I get "0 objects found" I am off to BBEdit's "Multi-File search".... But this why doesn't this work in the IDE? [Hmmm BBedit file search opens the binary files and you can actually see the script *inside* the stack... ] BR From ambassador at fourthworld.com Fri Dec 28 13:00:13 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 28 Dec 2018 10:00:13 -0800 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: References: Message-ID: <72c7e728-5e1f-8e89-41e8-dd10c4df12cd@fourthworld.com> Sannyasin Brahmanathaswami wrote: > @ y'all about revision control of binary stacks and YAML properities > (front matter) for text only scripts.. cool musings! but they might > want/need different threads? One of your team members requested extending the format of script-only stacks specifically to support your project's goals. YAML is a notation for expressing name-value pairs in a format optimized for human writing, something we LC fans like in a language. It would seem to lend itself well to the request made here in support of your work. Not at all my intention to hijack your thread by exploring that option further to see if we can arrive at an actionable plan. On the contrary, it is in direct support of pursuing solutions specific to your needs. We could rename this part of the discussion, but since it involves nested behaviors, MVC, and architecture, and is occurring for the purpose of helping your work, if we did so you might miss something useful for you. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Fri Dec 28 12:49:36 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 28 Dec 2018 09:49:36 -0800 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <167f5aff240.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <167f5aff240.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <09362316-75c4-ae1d-5145-53649671c307@fourthworld.com> J. Landman Gay wrote: > On December 27, 2018 8:54:29 PM Richard Gaskin via use-livecode > wrote: >> >> At your prompting I started to open an enhancement request for this, >> but not long into it I hit on why they probably haven't done this >> yet: >> >> By what means would be indicate which properties we want saved there >> and which ones we don't care about? > > I wasn't thinking that expansively. I'd be happy with just the ability > to use breakpoints during development, perhaps tied to the Test button > as the remote debugger is now. As Brian said, if we want it to act > like a regular stack we can just use one. In the beginning, script-only stacks contained only a script. Later, accommodation was made to allow the behavior property there, using the "with behavior" clause. Now we're considering adding breakpoints. Are we sure that's where it ends? It might be. But are we sure? Using a paired LSON file for other properties is reasonable enough. Should that be used for breakpoints as well? Where should the dividing line fall with what's included in what used to be script-only stacks? -- 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 gcanyon at gmail.com Fri Dec 28 13:05:39 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 28 Dec 2018 10:05:39 -0800 Subject: Find In the IDE In-Reply-To: <3BEA85DF-8278-44CB-A928-10741A336C70@hindu.org> References: <3BEA85DF-8278-44CB-A928-10741A336C70@hindu.org> Message-ID: (self-promotion alert) Navigator's popup menu has a find function that can: do a text search in all scripts of selected objects, in all behaviors of selected objects -- including chained behaviors, in all enclosed controls: select a card and it will search all controls on that card, in all behaviors of all enclosed controls. Or do a search by any test you like for any of the options above. Tests use "tID" for the id of the tested control. So for example you could find all controls that are square by using: the width of tID is the height of tID On Fri, Dec 28, 2018 at 9:30 AM Sannyasin Brahmanathaswami via use-livecode wrote: > I tried, in the IDE, to use the dialog > > Find and Replace > Find: "toggleImgSize" > In: All stack files in a folder > Folder: _Siva-Siva-app > Script (checked) > > # I know for sure it is at least in one *.livecodescript file? > # Hopefully to see where else it is used? > # Set the "folder" to my whole app folder?to look through all subfolders. > > I get "0 objects found" > > I am off to BBEdit's "Multi-File search".... But this why doesn't this > work in the IDE? > > [Hmmm BBedit file search opens the binary files and you can actually see > the script *inside* the stack... ] > > 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 lists at mangomultimedia.com Fri Dec 28 13:06:19 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 28 Dec 2018 12:06:19 -0600 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: References: <167ec40d8a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <55a374b2-4669-1dfe-6520-6f9a188860f5@fourthworld.com> Message-ID: On Thu, Dec 27, 2018 at 10:43 PM Sannyasin Brahmanathaswami via use-livecode wrote: > ... > > BUT: " A new developer may be more likely to see the chained behavior if > the behaviors are explicitly assigned in code vs having to use vs going to > the IDE to look up what the behavior chain is." > > That is a problem using "Navigator" (does not show nested behaviors) or > the Project Browser which simply as (2)(1)(5) too obscure.... > > " if the behaviors are explicitly assigned in code" > > How would you do that? Currently it is obfuscated from the developer by > the IDE > I was thinking of something like this in whatever code loads the stack that has the model attached to it: set the behavior of stack "MyStack" to the long id of stack "MyBehavior" > " script "behavior_MyAudio" with behavior "behavior_ListenUI" > > Does not appear in the Script Editor. I consider that a "deficit" > attribute of the "whole system" of nested behaviors. > I forgot about that. I always use SublimeText to edit my project scripts so I see the entire script. Perhaps the SE could use an update that shows the behavior assigned to the object of the script you are editing? -- Trevor DeVore CTO - ScreenSteps www.screensteps.com From bobsneidar at iotecdigital.com Fri Dec 28 13:32:01 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 28 Dec 2018 18:32:01 +0000 Subject: Find In the IDE In-Reply-To: References: <3BEA85DF-8278-44CB-A928-10741A336C70@hindu.org> Message-ID: BTW if the display level is set to one less than the object resides at, it will find it but not display it. Might be a good update to expand the root "node" when it finds anything. Bob S > On Dec 28, 2018, at 10:05 , Geoff Canyon via use-livecode wrote: > > (self-promotion alert) > > Navigator's popup menu has a find function that can: > do a text search in all scripts of selected objects, > in all behaviors of selected objects -- including chained behaviors, > in all enclosed controls: select a card and it will search all > controls on that card, > in all behaviors of all enclosed controls. > > Or do a search by any test you like for any of the options above. Tests use > "tID" for the id of the tested control. So for example you could find all > controls that are square by using: > > the width of tID is the height of tID From bobsneidar at iotecdigital.com Fri Dec 28 13:38:25 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 28 Dec 2018 18:38:25 +0000 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <09362316-75c4-ae1d-5145-53649671c307@fourthworld.com> References: <167f5aff240.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <09362316-75c4-ae1d-5145-53649671c307@fourthworld.com> Message-ID: I think most would agree with you on this Richard. It's like stack files are evolving into flat files. Soon we won't need to write code, we will just think it. It's kind of like a Star Trek episode, only for software developers. :-) Bob S > On Dec 28, 2018, at 09:49 , Richard Gaskin via use-livecode wrote: > > J. Landman Gay wrote: > > > On December 27, 2018 8:54:29 PM Richard Gaskin via use-livecode > > wrote: > >> > >> At your prompting I started to open an enhancement request for this, > >> but not long into it I hit on why they probably haven't done this > >> yet: > >> > >> By what means would be indicate which properties we want saved there > >> and which ones we don't care about? > > > > I wasn't thinking that expansively. I'd be happy with just the ability > > to use breakpoints during development, perhaps tied to the Test button > > as the remote debugger is now. As Brian said, if we want it to act > > like a regular stack we can just use one. > > In the beginning, script-only stacks contained only a script. > > Later, accommodation was made to allow the behavior property there, using the "with behavior" clause. > > Now we're considering adding breakpoints. > > Are we sure that's where it ends? > > It might be. But are we sure? > > Using a paired LSON file for other properties is reasonable enough. Should that be used for breakpoints as well? > > Where should the dividing line fall with what's included in what used to be script-only stacks? > > -- > Richard Gaskin From brahma at hindu.org Fri Dec 28 17:03:29 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 28 Dec 2018 22:03:29 +0000 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <72c7e728-5e1f-8e89-41e8-dd10c4df12cd@fourthworld.com> References: <72c7e728-5e1f-8e89-41e8-dd10c4df12cd@fourthworld.com> Message-ID: <1348EBB7-B6B0-43A6-955D-96C2FCDE32A2@hindu.org> I don't mind hijacked my thread. It just that I see it as important innovation. To make sure such a good idea that it was "hidden" BR ? Richard wrote: YAML is a notation for expressing name-value pairs in a format optimized for human writing, something we LC fans like in a language. It would seem to lend itself well to the request made here in support of your work. Not at all my intention to hijack your thread by exploring that option further to see if we can arrive at an actionable plan. On the contrary, it is in direct support of pursuing solutions specific to your needs. From brahma at hindu.org Fri Dec 28 17:09:06 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 28 Dec 2018 22:09:06 +0000 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: References: <167ec40d8a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <55a374b2-4669-1dfe-6520-6f9a188860f5@fourthworld.com> Message-ID: <2ED1CFD5-A02E-407B-B53D-827F1A158413@hindu.org> Trevor wrote: set the behavior of stack "MyStack" to the long id of stack "MyBehavior" BR: ahha... Simple enough to do; and then it you wanted to undo the "binding", you do it in the script editor itself. Trevor: " Perhaps the SE could use an update that shows the behavior assigned to the object of the script you are editing?" ditto that From tom at makeshyft.com Fri Dec 28 18:25:31 2018 From: tom at makeshyft.com (Tom Glod) Date: Fri, 28 Dec 2018 18:25:31 -0500 Subject: Websockets Problem on LiveCode In-Reply-To: References: Message-ID: > > Hey Todd, did you get this figured out? > > From cubist at aol.com Fri Dec 28 19:09:00 2018 From: cubist at aol.com (Quentin Long) Date: Fri, 28 Dec 2018 19:09:00 -0500 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: References: Message-ID: <167f74ae65c-302c-3e3d@webjas-vad098.srv.aolmail.net> > From: Richard Gaskin >> J. Landman Gay wrote: >> >> On December 27, 2018 2:36:16 PM Richard Gaskin via use-livecode >> wrote: >>> >>> Sounds like one more reason to allow stack properties as YAML >>> frontmatter in the file. Ever since I suggested that a couple >>> years back, the range of valuable use-cases keeps growing. >> >> I wouldn't mind if you poked them again about it. > > At your prompting I started to open an enhancement request for this, but > not long into it I hit on why they probably haven't done this yet: > > By what means would be indicate which properties we want saved there and > which ones we don't care about? To a first approximation, I'd say that any property which has been changed from the engine's built-in default value should be saved. One would expect that the engine's defaults can be easily accessed for such a purpose? "Bewitched" + "Charlie's Angels" - Charlie = "At Arm's Length" Read the webcomic at [?http://www.atarmslength.net?]! If you like "At Arm's Length", support it at [?http://www.patreon.com/DarkwingDude?]. From hh at hyperhh.de Fri Dec 28 22:16:54 2018 From: hh at hyperhh.de (hh) Date: Sat, 29 Dec 2018 04:16:54 +0100 Subject: JIGSAW PUZZLE 2d-video v_100 Message-ID: JIGSAW PUZZLE 2d-video is now updated to v_105 ? Improved speed with videos a little bit. ? The width-menu computes now all sizes from 20 up to 144 that leave either width or height (or both) of the image/video unchanged (no cropping). ? A video can now be paused. Then it can be continued (when changing piece-size any partial solution is lost). From colinholgate at gmail.com Sat Dec 29 06:31:13 2018 From: colinholgate at gmail.com (Colin Holgate) Date: Sat, 29 Dec 2018 11:31:13 +0000 Subject: JIGSAW PUZZLE 2d-video v_100 In-Reply-To: References: Message-ID: <50754042-9940-46B7-9B1C-475CB253018F@gmail.com> The loading percentage is working now, and videos are playing ok in Safari (they didn?t before). Frame rate is still a bit slow. From hh at hyperhh.de Sat Dec 29 08:11:11 2018 From: hh at hyperhh.de (hh) Date: Sat, 29 Dec 2018 14:11:11 +0100 Subject: JIGSAW PUZZLE 2d-video v_100 Message-ID: <9B483120-F531-4DD2-8A44-9024A351AD79@hyperhh.de> > Colin wrote: > Frame rate is still a bit slow. I left the whole "pieces part" (set backpattern of the pieces) in the LiveCode/Emscripten part, which is up to 10 times slower than the IDE. So there is no chance to improve this more. You could see it only as a demo of "this is working". In the IDE (with an invisible browser widget) we could have frame rates up to 30 per second. Given time I'll post this "IDE variant" too (you can then see the memory leak of the browser widget). > JIGSAW PUZZLE 2d-video is now updated to v_105 > > ? Improved speed with videos a little bit. > ? The width-menu computes now all sizes from 20 up to > 144 that leave either width or height (or both) of the > image/video unchanged (no cropping). > ? A video can now be paused. Then it can be continued > (when changing piece-size any partial solution is lost). > > The links are unchanged > (US) http://hh.on-rev.com/html5/jigsawPuzzle2d-video-9.0.2hhX.html > or > (EU) http://hyperhh.de/html5/jigsawPuzzle2d-video-9.0.2hhX.html From richmondmathewson at gmail.com Sat Dec 29 09:45:14 2018 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 29 Dec 2018 16:45:14 +0200 Subject: MouseDown on Enter In-Reply-To: <9C6DB43E-2A55-46CB-A836-16965861A28D@hyperhh.de> References: <9C6DB43E-2A55-46CB-A836-16965861A28D@hyperhh.de> Message-ID: <4999eee0-a8c6-a196-f72f-44dbaae138dc@gmail.com> This may rank as one of the goofiest questions I've ever asked: Oh, well, here goes: Imagine a mosaic of faux buttons if you will. Each of these buttons will play a tone if I drag my mouse into it: on mouseEnter ? play audioClip "x.aiff" end mouseEnter All well and good . . . BUT, Richmond wants more . . . I want to get different results from a simple mouseEnter and a mouseEnter while the left-click button is down. Richmond. From richmondmathewson at gmail.com Sat Dec 29 10:05:43 2018 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 29 Dec 2018 17:05:43 +0200 Subject: MouseDown on Enter In-Reply-To: <4999eee0-a8c6-a196-f72f-44dbaae138dc@gmail.com> References: <9C6DB43E-2A55-46CB-A836-16965861A28D@hyperhh.de> <4999eee0-a8c6-a196-f72f-44dbaae138dc@gmail.com> Message-ID: <9c4080e7-be62-4715-b67e-b01232e38d4f@gmail.com> This does *NOT* work: on mouseEnter ?? if mouseDown then ????? set the backgroundColor of me to red ?? else ????? set the backgroundColor of me to green ?? end if end mouseEnter on mouseLeave ?? set the backgroundColor of me to white end mouseLeave which is a "right pox" Richmond. On 29.12.18 16:45, Richmond wrote: > > This may rank as one of the goofiest questions I've ever asked: Oh, > well, here goes: > > Imagine a mosaic of faux buttons if you will. > > Each of these buttons will play a tone if I drag my mouse into it: > > on mouseEnter > > ? play audioClip "x.aiff" > > end mouseEnter > > All well and good . . . > > BUT, Richmond wants more . . . > > I want to get different results from a simple mouseEnter > > and a mouseEnter while the left-click button is down. > > Richmond. > From tom at makeshyft.com Sat Dec 29 10:18:58 2018 From: tom at makeshyft.com (Tom Glod) Date: Sat, 29 Dec 2018 10:18:58 -0500 Subject: MouseDown on Enter In-Reply-To: <9c4080e7-be62-4715-b67e-b01232e38d4f@gmail.com> References: <9C6DB43E-2A55-46CB-A836-16965861A28D@hyperhh.de> <4999eee0-a8c6-a196-f72f-44dbaae138dc@gmail.com> <9c4080e7-be62-4715-b67e-b01232e38d4f@gmail.com> Message-ID: I believe the Keysdown() function picks up the mousebutton as well. that will give you the info whether enter key is down. On Sat, Dec 29, 2018 at 10:06 AM Richmond via use-livecode < use-livecode at lists.runrev.com> wrote: > This does *NOT* work: > > on mouseEnter > if mouseDown then > set the backgroundColor of me to red > else > set the backgroundColor of me to green > end if > end mouseEnter > > on mouseLeave > set the backgroundColor of me to white > end mouseLeave > > which is a "right pox" > > Richmond. > > On 29.12.18 16:45, Richmond wrote: > > > > This may rank as one of the goofiest questions I've ever asked: Oh, > > well, here goes: > > > > Imagine a mosaic of faux buttons if you will. > > > > Each of these buttons will play a tone if I drag my mouse into it: > > > > on mouseEnter > > > > play audioClip "x.aiff" > > > > end mouseEnter > > > > All well and good . . . > > > > BUT, Richmond wants more . . . > > > > I want to get different results from a simple mouseEnter > > > > and a mouseEnter while the left-click button is down. > > > > Richmond. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Sat Dec 29 10:20:12 2018 From: tom at makeshyft.com (Tom Glod) Date: Sat, 29 Dec 2018 10:20:12 -0500 Subject: MouseDown on Enter In-Reply-To: References: <9C6DB43E-2A55-46CB-A836-16965861A28D@hyperhh.de> <4999eee0-a8c6-a196-f72f-44dbaae138dc@gmail.com> <9c4080e7-be62-4715-b67e-b01232e38d4f@gmail.com> Message-ID: oops....i mean if mouse key is down :) On Sat, Dec 29, 2018 at 10:18 AM Tom Glod wrote: > I believe the Keysdown() function picks up the mousebutton as well. that > will give you the info whether enter key is down. > > On Sat, Dec 29, 2018 at 10:06 AM Richmond via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> This does *NOT* work: >> >> on mouseEnter >> if mouseDown then >> set the backgroundColor of me to red >> else >> set the backgroundColor of me to green >> end if >> end mouseEnter >> >> on mouseLeave >> set the backgroundColor of me to white >> end mouseLeave >> >> which is a "right pox" >> >> Richmond. >> >> On 29.12.18 16:45, Richmond wrote: >> > >> > This may rank as one of the goofiest questions I've ever asked: Oh, >> > well, here goes: >> > >> > Imagine a mosaic of faux buttons if you will. >> > >> > Each of these buttons will play a tone if I drag my mouse into it: >> > >> > on mouseEnter >> > >> > play audioClip "x.aiff" >> > >> > end mouseEnter >> > >> > All well and good . . . >> > >> > BUT, Richmond wants more . . . >> > >> > I want to get different results from a simple mouseEnter >> > >> > and a mouseEnter while the left-click button is down. >> > >> > Richmond. >> > >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > From alex at tweedly.net Sat Dec 29 11:33:49 2018 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 29 Dec 2018 16:33:49 +0000 Subject: MouseDown on Enter In-Reply-To: <4999eee0-a8c6-a196-f72f-44dbaae138dc@gmail.com> References: <9C6DB43E-2A55-46CB-A836-16965861A28D@hyperhh.de> <4999eee0-a8c6-a196-f72f-44dbaae138dc@gmail.com> Message-ID: <68722a5f-ee5a-c25c-21ed-42e53fe18173@tweedly.net> Not sure that's going to work ... if the mouse button is being held down, you won't get a "mouseenter" event. Dict says: > If the mouse button is down when the mouse pointer enters the control, > > the *mouseEnter* message is not sent unless the mouse button is released > > while the pointer is still in the control. > So you will probably need to use? mousedown and mousestilldown to track that case. Alex. On 29/12/2018 14:45, Richmond via use-livecode wrote: > This may rank as one of the goofiest questions I've ever asked: Oh, > well, here goes: > > Imagine a mosaic of faux buttons if you will. > > Each of these buttons will play a tone if I drag my mouse into it: > > on mouseEnter > > ? play audioClip "x.aiff" > > end mouseEnter > > All well and good . . . > > BUT, Richmond wants more . . . > > I want to get different results from a simple mouseEnter > > and a mouseEnter while the left-click button is down. > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sat Dec 29 11:52:05 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 29 Dec 2018 10:52:05 -0600 Subject: MouseDown on Enter In-Reply-To: <9c4080e7-be62-4715-b67e-b01232e38d4f@gmail.com> References: <9C6DB43E-2A55-46CB-A836-16965861A28D@hyperhh.de> <4999eee0-a8c6-a196-f72f-44dbaae138dc@gmail.com> <9c4080e7-be62-4715-b67e-b01232e38d4f@gmail.com> Message-ID: <167fae13f08.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> MouseDown is a message, not a function. You need: if the mouse is down then set the...etc. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On December 29, 2018 9:07:37 AM Richmond via use-livecode wrote: > This does *NOT* work: > > on mouseEnter > if mouseDown then > set the backgroundColor of me to red > else > set the backgroundColor of me to green > end if > end mouseEnter > > on mouseLeave > set the backgroundColor of me to white > end mouseLeave > > which is a "right pox" > > Richmond. > > On 29.12.18 16:45, Richmond wrote: >> >> This may rank as one of the goofiest questions I've ever asked: Oh, >> well, here goes: >> >> Imagine a mosaic of faux buttons if you will. >> >> Each of these buttons will play a tone if I drag my mouse into it: >> >> on mouseEnter >> >> play audioClip "x.aiff" >> >> end mouseEnter >> >> All well and good . . . >> >> BUT, Richmond wants more . . . >> >> I want to get different results from a simple mouseEnter >> >> and a mouseEnter while the left-click button is down. >> >> Richmond. >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tfabacher at gmail.com Sat Dec 29 12:01:58 2018 From: tfabacher at gmail.com (Todd Fabacher) Date: Sat, 29 Dec 2018 12:01:58 -0500 Subject: use-livecode Digest, Vol 183, Issue 35 In-Reply-To: References: Message-ID: Thanks for the email Tom. Unfortunately NOT. We got the WebSocket working in the browser with Javascript, but the app dies after 20 mins in iOS [<10 mins on Android] of play because it is calling a LiveCode function from Javascript. Or workaround was to create an Angular site [ https://play.triviamatic.com/] and just have the users play in a web browser, but this is NOT a solution. we have also loaded the browser in our app for now, BUT I AM NOT HAPPY ABOUT THE WORKAROUND. So unfortunately since we can't find a workaround and nobody from LC responded, we have to assume it is not possible. So we have started to switch to Flutter and have to postpone our launch by four weeks. I told my team that if the users can't play the game effectively, then what is the use of having an app, so they suggested switching. BTW...Check out the website and let me know what you think: https://triviamatic.com Because it reads from the games from the database, we ended up coding everything in HTML and EJS on a Node server. We are in the process of making our own trivia store: https://triviamatic.com/trivia-games. --Todd On Sat, Dec 29, 2018 at 6:00 AM wrote: > Send use-livecode mailing list submissions to > use-livecode at lists.runrev.com > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.runrev.com/mailman/listinfo/use-livecode > or, via email, send a message with subject or body 'help' to > use-livecode-request at lists.runrev.com > > You can reach the person managing the list at > use-livecode-owner at lists.runrev.com > > > > ------------------------------ > > Message: 4 > Date: Fri, 28 Dec 2018 18:25:31 -0500 > From: Tom Glod > To: How to use LiveCode > Subject: Re: Websockets Problem on LiveCode > Message-ID: > < > CAPzQJLKObpAKKFiiah5EsYQmj6LPAV7UKukurQihA1mjrQ3qHA at mail.gmail.com> > Content-Type: text/plain; charset="UTF-8" > > > > > Hey Todd, did you get this figured out? > > > > > > From ambassador at fourthworld.com Sat Dec 29 12:47:58 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 29 Dec 2018 09:47:58 -0800 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: References: Message-ID: <836605a9-71d5-8712-4879-4485f8d8064f@fourthworld.com> Bob Sneidar wrote: >> On Dec 28, 2018, at 09:49 , Richard Gaskin wrote: >> >> In the beginning, script-only stacks contained only a script. >> >> Later, accommodation was made to allow the behavior property there, >> using the "with behavior" clause. >> >> Now we're considering adding breakpoints. >> >> Are we sure that's where it ends? >> >> It might be. But are we sure? >> >> Using a paired LSON file for other properties is reasonable enough. >> Should that be used for breakpoints as well? >> >> Where should the dividing line fall with what's included in what used >> to be script-only stacks? > > I think most would agree with you on this Richard. It's like stack > files are evolving into flat files. Soon we won't need to write code, > we will just think it. It's kind of like a Star Trek episode, only for > software developers. :-) To be clear, I don't actually have a position on this to agree or disagree with. My questions are in earnest. There is obvious merit in script-only stacks. And the team has seen merit in adding support for behavior declarations in them. Whether we leave it at that or add support for other properties is an open question. I see merit both ways, esp. given the relative ease and flexibility of using a paired LSON file for properties. Indeed, that could be done with a library, requiring no engineering from the core dev team. Direct engine support is always easier for us, of course, but it wouldn't be the hardest thing we've ever done to put props in a separate file and have a handler that opens the script-only stacks and sets its properties accordingly. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Sat Dec 29 12:51:29 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 29 Dec 2018 09:51:29 -0800 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <1348EBB7-B6B0-43A6-955D-96C2FCDE32A2@hindu.org> References: <1348EBB7-B6B0-43A6-955D-96C2FCDE32A2@hindu.org> Message-ID: <2becd217-d605-9cb3-a380-4a24e5c8717c@fourthworld.com> Sannyasin Brahmanathaswami wrote: > ? Richard wrote: >> Not at all my intention to hijack your thread by exploring that >> option further to see if we can arrive at an actionable plan. On the >> contrary, it is in direct support of pursuing solutions specific to >> your needs. > > I don't mind hijacked my thread. > > It just that I see it as important innovation. > > To make sure such a good idea that it was "hidden" "Showing" would be the submission of an enhancement request. At this early stage "hidden" is simply not in that appropriate venue for implementation recommendation, a discussion here among users of a proposed feature to make sure whatever we recommend truly satisfies our needs before we take the time of the core dev team to explore it further. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Sat Dec 29 13:03:04 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 29 Dec 2018 10:03:04 -0800 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <167f74ae65c-302c-3e3d@webjas-vad098.srv.aolmail.net> References: <167f74ae65c-302c-3e3d@webjas-vad098.srv.aolmail.net> Message-ID: <1b8e1fce-f826-3017-acec-8a5ee09694cf@fourthworld.com> Quentin Long wrote: >> From: Richard Gaskin >> By what means would be indicate which properties we want saved there >> and which ones we don't care about? > > To a first approximation, I'd say that any property which has been > changed from the engine's built-in default value should be saved. One > would expect that the engine's defaults can be easily accessed for > such a purpose? If completeness were the goal that would of course be a good way to handle it. But is complete representation of all properties the goal with script-only stacks? The binary stack file format we've been using for decades does a complete job of retaining all persistent properties as-is, along with anything else a stack file can contain. Script-only stacks were added to the mix of options to allow us to factor code from UI in ways that work well with the many existing versioning systems. Expanding on that to transform them into a complete representation of a stack file may not be difficult, but is a different mandate. And if we err on the side of completeness we may find unwanted side effects for that intended purpose. For example, what if you slide a script-only stack out of the way to look at something, and then save it. If the format includes the rect the file is marked as changed, yet that change is not something the developer using a script-only stack would care about. So ideally there would be a way to flag rect as a property we don't want to track in the file. Or conversely, there could be a mechanism for flagging only those properties we do want, and ignore others. This seemingly-simple idea turns out to have some sticky implications, which is why, after many years of exploring various serialization formats for stack files, the team opted for script-only stacks as a simple solution for the most common use case. Breakpoint support may well be a uniquely valuable addition worth considering. I rarely use them myself, but I can appreciate their utility for many. But if we go down that road we should probably ponder whether that's where the road ends, and if not how we want to travel the rest of that road. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Sat Dec 29 13:21:54 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 29 Dec 2018 10:21:54 -0800 Subject: LiveCode on TIOBE, 2018 Message-ID: If you saw my Community Roundup talk in the November installment of LiveCode Global, you know I track the TIOBE Index as a shorthand indicator of LiveCode's relative marketshare/mindshare. The TIOBE Index is a list of the Top 100 programming languages in the world, ranked by popularity among developers. TIOBE is an imperfect indicator of the relative size of a programming language's audience, but warts and all it's probably the best we have. You can view the current index here: https://www.tiobe.com/tiobe-index/ When we consider how many hundreds of languages there are, with new ones sprouting up every year, it's quite remarkable that a scripting language from a small company in Edinburgh that's been open source only five years is on the list at all. But it is. And while it's currently in the lower 50 languages, also there with LiveCode are some very well known offerings made by much larger orgs, including ActionScript, APL, CoffeeScript, Common Lisp, Forth, OpenCL, PostScript, Smalltalk, Stata, Tcl, TypeScript, VBScript, and Wolfram. Also worth noting is what isn't on the list at all, including AppleScript, Qt, and Xojo. Historically, LC might appear on the TIOBE Index once every few months, but this year I've tracked it each month and the results are quite outstanding - it's now December so I can list the full year: Jan: not listed Feb: LISTED Mar: LISTED Apr: LISTED May: not listed Jun: not listed Jul: not listed Aug: LISTED Sep: LISTED Oct: LISTED Nov: LISTED Dec: LISTED AFAIK no previous year has seen LiveCode present on the TIOBE Index anywhere near as often, and currently we're in a consistent 5-month run. Kudos to the team for delivering a great tool satisfying so many. And kudos to all of you using LiveCode, as that use contributes to the recognition of LiveCode's popularity. I look forward to seeing how LC does on TIOBE through 2019. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From jacque at hyperactivesw.com Sat Dec 29 13:22:34 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 29 Dec 2018 12:22:34 -0600 Subject: use-livecode Digest, Vol 183, Issue 35 In-Reply-To: References: Message-ID: <167fb341610.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> The LC office is closed until after New Years so that would be why you didn't get a response yet. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On December 29, 2018 11:04:02 AM Todd Fabacher via use-livecode wrote: > > So unfortunately since we can't find a workaround and nobody from LC > responded, we have to assume it is not possible. From alex at tweedly.net Sat Dec 29 13:27:42 2018 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 29 Dec 2018 18:27:42 +0000 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <1b8e1fce-f826-3017-acec-8a5ee09694cf@fourthworld.com> References: <167f74ae65c-302c-3e3d@webjas-vad098.srv.aolmail.net> <1b8e1fce-f826-3017-acec-8a5ee09694cf@fourthworld.com> Message-ID: <89c9679e-ee59-533e-1fce-44f5efb37db3@tweedly.net> In another email on the list, Richard said something like : > relatively easy to use a parallel LSON file and load via a library and On 29/12/2018 18:03, Richard Gaskin via use-livecode wrote: > Breakpoint support may well be a uniquely valuable addition worth > considering.? I rarely use them myself, but I can appreciate their > utility for many. > > But if we go down that road we should probably ponder whether that's > where the road ends, and if not how we want to travel the rest of that > road. > Could breakpoints also go in an LSON file ? Is there a way that a script can set breakpoints into a script? (i.e. not insert eh command into the script, but set a dynamic breakpoint like are stored in a binary-stack) ? Alex. From jacque at hyperactivesw.com Sat Dec 29 13:33:09 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 29 Dec 2018 12:33:09 -0600 Subject: LiveCode on TIOBE, 2018 In-Reply-To: References: Message-ID: <167fb3dc688.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> How do they gather their data? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On December 29, 2018 12:23:15 PM Richard Gaskin via use-livecode wrote: > If you saw my Community Roundup talk in the November installment of > LiveCode Global, you know I track the TIOBE Index as a shorthand > indicator of LiveCode's relative marketshare/mindshare. > > The TIOBE Index is a list of the Top 100 programming languages in the > world, ranked by popularity among developers. > > TIOBE is an imperfect indicator of the relative size of a programming > language's audience, but warts and all it's probably the best we have. > You can view the current index here: > https://www.tiobe.com/tiobe-index/ > > When we consider how many hundreds of languages there are, with new ones > sprouting up every year, it's quite remarkable that a scripting language > from a small company in Edinburgh that's been open source only five > years is on the list at all. But it is. > > And while it's currently in the lower 50 languages, also there with > LiveCode are some very well known offerings made by much larger orgs, > including ActionScript, APL, CoffeeScript, Common Lisp, Forth, OpenCL, > PostScript, Smalltalk, Stata, Tcl, TypeScript, VBScript, and Wolfram. > > Also worth noting is what isn't on the list at all, including > AppleScript, Qt, and Xojo. > > Historically, LC might appear on the TIOBE Index once every few months, > but this year I've tracked it each month and the results are quite > outstanding - it's now December so I can list the full year: > > Jan: not listed > Feb: LISTED > Mar: LISTED > Apr: LISTED > May: not listed > Jun: not listed > Jul: not listed > Aug: LISTED > Sep: LISTED > Oct: LISTED > Nov: LISTED > Dec: LISTED > > AFAIK no previous year has seen LiveCode present on the TIOBE Index > anywhere near as often, and currently we're in a consistent 5-month run. > > Kudos to the team for delivering a great tool satisfying so many. And > kudos to all of you using LiveCode, as that use contributes to the > recognition of LiveCode's popularity. > > I look forward to seeing how LC does on TIOBE through 2019. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Sat Dec 29 13:36:02 2018 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 29 Dec 2018 20:36:02 +0200 Subject: MouseDown on Enter In-Reply-To: <167fae13f08.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <9C6DB43E-2A55-46CB-A836-16965861A28D@hyperhh.de> <4999eee0-a8c6-a196-f72f-44dbaae138dc@gmail.com> <9c4080e7-be62-4715-b67e-b01232e38d4f@gmail.com> <167fae13f08.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <814ee35a-6b3f-b9dc-eb63-a04eb51c2bc0@gmail.com> Ah, Yes . . . Thanks so much. Richmond. On 29.12.18 18:52, J. Landman Gay via use-livecode wrote: > MouseDown is a message, not a function. You need: > > ?if the mouse is down then > ?? set the...etc. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On December 29, 2018 9:07:37 AM Richmond via use-livecode > wrote: > >> This does *NOT* work: >> >> on mouseEnter >> ?? if mouseDown then >> ????? set the backgroundColor of me to red >> ?? else >> ????? set the backgroundColor of me to green >> ?? end if >> end mouseEnter >> >> on mouseLeave >> ?? set the backgroundColor of me to white >> end mouseLeave >> >> which is a "right pox" >> >> Richmond. >> >> On 29.12.18 16:45, Richmond wrote: >>> >>> This may rank as one of the goofiest questions I've ever asked: Oh, >>> well, here goes: >>> >>> Imagine a mosaic of faux buttons if you will. >>> >>> Each of these buttons will play a tone if I drag my mouse into it: >>> >>> on mouseEnter >>> >>> ? play audioClip "x.aiff" >>> >>> end mouseEnter >>> >>> All well and good . . . >>> >>> BUT, Richmond wants more . . . >>> >>> I want to get different results from a simple mouseEnter >>> >>> and a mouseEnter while the left-click button is down. >>> >>> Richmond. >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Sat Dec 29 13:38:07 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 29 Dec 2018 10:38:07 -0800 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <89c9679e-ee59-533e-1fce-44f5efb37db3@tweedly.net> References: <167f74ae65c-302c-3e3d@webjas-vad098.srv.aolmail.net> <1b8e1fce-f826-3017-acec-8a5ee09694cf@fourthworld.com> <89c9679e-ee59-533e-1fce-44f5efb37db3@tweedly.net> Message-ID: <5a0c0f05-979e-7ffa-0722-b67dfb36ee13@sonic.net> On 12/29/18 10:27 AM, Alex Tweedly via use-livecode wrote: > Could breakpoints also go in an LSON file ? Is there a way that a script > can set breakpoints into a script? (i.e. not insert eh command into the > script, but set a dynamic breakpoint like are stored in a binary-stack) ? There is indeed. 'The breakpoints' is the list of the currently active breakpoints, and you can manipulate that list in memory as needed. It's a cr-separated list of long id,line number. -- Mark Wieder ahsoftware at gmail.com From ambassador at fourthworld.com Sat Dec 29 13:52:11 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 29 Dec 2018 10:52:11 -0800 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <5a0c0f05-979e-7ffa-0722-b67dfb36ee13@sonic.net> References: <5a0c0f05-979e-7ffa-0722-b67dfb36ee13@sonic.net> Message-ID: <264cf109-ba0d-cf2c-3560-c3b41e7fc34e@fourthworld.com> Mark Wieder wrote: > On 12/29/18 10:27 AM, Alex Tweedly via use-livecode wrote: > >> Could breakpoints also go in an LSON file ? Is there a way that a >> script can set breakpoints into a script? (i.e. not insert eh command >> into the script, but set a dynamic breakpoint like are stored in a >> binary-stack) ? > > There is indeed. 'The breakpoints' is the list of the currently active > breakpoints, and you can manipulate that list in memory as needed. > It's a cr-separated list of long id,line number. ^ this Everything in xTalks are objects with properties, and very few of those properties are read-only. A good reminder that LC is one of only two IDEs I've ever seen in the xTalk world (the other being Gain Momentum) in which everything we interact with is made in the scripting language itself. So when you see a Script Editor that can set breakpoints, you can trust that's using a property that can be set from script. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Sat Dec 29 14:21:03 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 29 Dec 2018 11:21:03 -0800 Subject: LiveCode on TIOBE, 2018 In-Reply-To: <167fb3dc688.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <167fb3dc688.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: TIOBE's definitions are outlined here: https://www.tiobe.com/tiobe-index/programming-languages-definition/ Oddly, they don't count Github repos. :/ The bad thing about not including Github is that LC has a growing presence there. The good thing about not including Github is that we're seeing organic growth evidenced across more general search engines, arguably an even better signal for adoption in an audience likely to include many newcomers to programming. -- Richard Gaskin Fourth World Systems J. Landman Gay wrote: > How do they gather their data? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On December 29, 2018 12:23:15 PM Richard Gaskin via use-livecode > wrote: > >> If you saw my Community Roundup talk in the November installment of >> LiveCode Global, you know I track the TIOBE Index as a shorthand >> indicator of LiveCode's relative marketshare/mindshare. >> >> The TIOBE Index is a list of the Top 100 programming languages in the >> world, ranked by popularity among developers. >> >> TIOBE is an imperfect indicator of the relative size of a programming >> language's audience, but warts and all it's probably the best we have. >> You can view the current index here: >> https://www.tiobe.com/tiobe-index/ >> >> When we consider how many hundreds of languages there are, with new ones >> sprouting up every year, it's quite remarkable that a scripting language >> from a small company in Edinburgh that's been open source only five >> years is on the list at all. But it is. >> >> And while it's currently in the lower 50 languages, also there with >> LiveCode are some very well known offerings made by much larger orgs, >> including ActionScript, APL, CoffeeScript, Common Lisp, Forth, OpenCL, >> PostScript, Smalltalk, Stata, Tcl, TypeScript, VBScript, and Wolfram. >> >> Also worth noting is what isn't on the list at all, including >> AppleScript, Qt, and Xojo. >> >> Historically, LC might appear on the TIOBE Index once every few months, >> but this year I've tracked it each month and the results are quite >> outstanding - it's now December so I can list the full year: >> >> Jan: not listed >> Feb: LISTED >> Mar: LISTED >> Apr: LISTED >> May: not listed >> Jun: not listed >> Jul: not listed >> Aug: LISTED >> Sep: LISTED >> Oct: LISTED >> Nov: LISTED >> Dec: LISTED >> >> AFAIK no previous year has seen LiveCode present on the TIOBE Index >> anywhere near as often, and currently we're in a consistent 5-month run. >> >> Kudos to the team for delivering a great tool satisfying so many. And >> kudos to all of you using LiveCode, as that use contributes to the >> recognition of LiveCode's popularity. >> >> I look forward to seeing how LC does on TIOBE through 2019. >> >> -- >> Richard Gaskin >> Fourth World Systems From bogdanoff at me.com Sat Dec 29 15:20:24 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Sat, 29 Dec 2018 15:20:24 -0500 Subject: Signing macOS application In-Reply-To: <264cf109-ba0d-cf2c-3560-c3b41e7fc34e@fourthworld.com> References: <5a0c0f05-979e-7ffa-0722-b67dfb36ee13@sonic.net> <264cf109-ba0d-cf2c-3560-c3b41e7fc34e@fourthworld.com> Message-ID: <4EAC7BE1-5A4B-439A-8551-D6F8349191D5@me.com> Hi, I?m using DropDMG to sign my macOS installer. Users are having trouble opening it?Gatekeeper seems to not recognize my developer ID. It is unclear to me what is going on. Does the application need to be signed before I create the installer in DropDMG? And how do I do that? I had thought that DropDMG took care of everything? Michael Tsai says "The app should definitely be signed before creating the .dmg.? https://c-command.com/forums/showthread.php/4103-Signing-app-to-prevent-Gatekeeper-block I have these IDs: Developer ID Installer Developer ID Application DropDMG shows in its preferences the 'Developer ID Application? that is used to sign the installer. That should be used and not 'Developer ID Installer?? Anyone have any guidance on this? And this all doesn?t have anything to do with Notarization? That?s another step for the future? Thanks for any help! Peter Bogdanoff ArtsInteractive From hh at hyperhh.de Sat Dec 29 16:44:36 2018 From: hh at hyperhh.de (hh) Date: Sat, 29 Dec 2018 22:44:36 +0100 Subject: JIGSAW PUZZLE 2d-video v_100 Message-ID: <6F331793-8CE3-493C-B1B5-8D111C100D88@hyperhh.de> [A] JIGSAW PUZZLE 2d-video (HTML5) is now updated to v_110 ? Improved once again speed with videos a little bit. The links are unchanged (US) http://hh.on-rev.com/html5/jigsawPuzzle2d-video-9.0.2hhX.html or (EU) http://hyperhh.de/html5/jigsawPuzzle2d-video-9.0.2hhX.html [B] JIGSAW PUZZLE 2d-video (IDE), with javascript from browser widget You will find this faster IDE-version (using a hidden browser widget) "jigsawPuzzle2d-videoBW" on "Sample Stacks" or http://livecodeshare.runrev.com/stack/924/ ? You can choose the server (with videos from the server) and get an installation instruction for use with your local server (and local videos). The page (URL) can use videos from the same server only. WARNING: This runs with a memory leaking of up to 5 MByte per second while a video is playing. You have to quit LiveCode after a while for releasing the memory (closing the stack and removing it from memory is not enough). The increase in speed and the more smooth display is due to the difference between LC-Emscripten (HTML5 standalone) and the LC-IDE for drawing the backpattern of the puzzle graphics. The speed from the hard work javaScript (your browser vs. the browser widget) is at about the same and depends on your graphic card (GPU). (As we say here:) **** Slide well into the new year! *** Guten Rutsch allerseits! *** From martyknappster at gmail.com Sat Dec 29 17:29:16 2018 From: martyknappster at gmail.com (Knapp Martin) Date: Sat, 29 Dec 2018 14:29:16 -0800 Subject: Signing macOS application In-Reply-To: <4EAC7BE1-5A4B-439A-8551-D6F8349191D5@me.com> References: <5a0c0f05-979e-7ffa-0722-b67dfb36ee13@sonic.net> <264cf109-ba0d-cf2c-3560-c3b41e7fc34e@fourthworld.com> <4EAC7BE1-5A4B-439A-8551-D6F8349191D5@me.com> Message-ID: I believe that DropDMG just signs the installer and does not sign the app. You might take a look at AppWrapper3 or dive into Trevor?s Levure framework - it works with DropDMG to sign both the app and the disk image. Marty > On Dec 29, 2018, at 12:20 PM, Peter Bogdanoff via use-livecode wrote: > > Hi, > > I?m using DropDMG to sign my macOS installer. Users are having trouble opening it?Gatekeeper seems to not recognize my developer ID. > > It is unclear to me what is going on. Does the application need to be signed before I create the installer in DropDMG? And how do I do that? I had thought that DropDMG took care of everything? Michael Tsai says "The app should definitely be signed before creating the .dmg.? > > https://c-command.com/forums/showthread.php/4103-Signing-app-to-prevent-Gatekeeper-block > > I have these IDs: > Developer ID Installer > Developer ID Application > > DropDMG shows in its preferences the 'Developer ID Application? that is used to sign the installer. That should be used and not 'Developer ID Installer?? > > > Anyone have any guidance on this? > > > And this all doesn?t have anything to do with Notarization? That?s another step for the future? > > Thanks for any help! > > Peter Bogdanoff > ArtsInteractive From iowahengst at mac.com Sat Dec 29 18:21:26 2018 From: iowahengst at mac.com (Randy Hengst) Date: Sat, 29 Dec 2018 17:21:26 -0600 Subject: Signing macOS application In-Reply-To: <4EAC7BE1-5A4B-439A-8551-D6F8349191D5@me.com> References: <5a0c0f05-979e-7ffa-0722-b67dfb36ee13@sonic.net> <264cf109-ba0d-cf2c-3560-c3b41e7fc34e@fourthworld.com> <4EAC7BE1-5A4B-439A-8551-D6F8349191D5@me.com> Message-ID: <4F049FFB-8B37-40B7-8386-7CE58A9FC687@mac.com> Hi Peter, I don?t develop for Macs beyond personal use? but I do develop for iOS. You need to use a Distribution Certificate (rather than Developer) to sell on the iOS App Store? could that requirement also be needed for your situation? be well, randy www.classroomFocusedSoftware.com > On Dec 29, 2018, at 2:20 PM, Peter Bogdanoff via use-livecode wrote: > > Hi, > > I?m using DropDMG to sign my macOS installer. Users are having trouble opening it?Gatekeeper seems to not recognize my developer ID. > > It is unclear to me what is going on. Does the application need to be signed before I create the installer in DropDMG? And how do I do that? I had thought that DropDMG took care of everything? Michael Tsai says "The app should definitely be signed before creating the .dmg.? > > https://c-command.com/forums/showthread.php/4103-Signing-app-to-prevent-Gatekeeper-block > > I have these IDs: > Developer ID Installer > Developer ID Application > > DropDMG shows in its preferences the 'Developer ID Application? that is used to sign the installer. That should be used and not 'Developer ID Installer?? > > > Anyone have any guidance on this? > > > And this all doesn?t have anything to do with Notarization? That?s another step for the future? > > Thanks for any help! > > Peter Bogdanoff > ArtsInteractive > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lists at mangomultimedia.com Sat Dec 29 19:01:41 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Sat, 29 Dec 2018 18:01:41 -0600 Subject: Signing macOS application In-Reply-To: <4EAC7BE1-5A4B-439A-8551-D6F8349191D5@me.com> References: <5a0c0f05-979e-7ffa-0722-b67dfb36ee13@sonic.net> <264cf109-ba0d-cf2c-3560-c3b41e7fc34e@fourthworld.com> <4EAC7BE1-5A4B-439A-8551-D6F8349191D5@me.com> Message-ID: On Sat, Dec 29, 2018 at 2:20 PM Peter Bogdanoff via use-livecode < use-livecode at lists.runrev.com> wrote: > > I have these IDs: > Developer ID Installer > Developer ID Application > > DropDMG shows in its preferences the 'Developer ID Application? that is > used to sign the installer. That should be used and not 'Developer ID > Installer?? > > > Anyone have any guidance on this? You do need to sign your app using your ?Developer ID Installer? profile. There is a script only stack I posted a while ago on gist.github.com that will sign an app. Here is the url: https://gist.github.com/trevordevore/3e91724c4573690b691510d2e2dcd2a7 Just save the gist to a file with a .livecodescript extension and open it in the IDE. As for DropDMG it has the correct certificate selected. DMGs are not really installers but the DMG does need to be signed to appease GateKeeper. As Was already mentioned, the Levure packager will take care of signing your apps for you. It will sign apps you distribute yourself, sign and prepare an app for upload to the Mac App Store, and sign Mac App Store development versions for testing. It is quite handy. Of course if you are already trying to sign your app for distribution then you aren?t at a point where you want to modify your app to use a new framework. But something to consider for the future. > And this all doesn?t have anything to do with Notarization? That?s another > step for the future? No it does not. -- Trevor DeVore ScreenSteps From andre at andregarzia.com Sun Dec 30 07:44:16 2018 From: andre at andregarzia.com (Andre Alves Garzia) Date: Sun, 30 Dec 2018 12:44:16 +0000 Subject: Musings on Architect, MVC, Nested Behaviors In-Reply-To: <72c7e728-5e1f-8e89-41e8-dd10c4df12cd@fourthworld.com> References: <72c7e728-5e1f-8e89-41e8-dd10c4df12cd@fourthworld.com> Message-ID: <9b65530a-19e4-12a7-c193-750ff097f29c@andregarzia.com> Be aware that YAML is tricky to parse, there are better formats such as TOML which are much easier and tend to be less error prone. It is very easy to get some indentation wrong in YAML and move something up or down a level. TOML is IMHO a better format for such stuff. ? YAML: http://yaml.org ? TOML: https://github.com/toml-lang/toml There is also StrictYAML which removes some problematic features from YAML. Anyway, I think that if all you need is something that maps to a hashmap that is not too deep (thats important) then TOML is a better format. On 28/12/2018 18:00, Richard Gaskin via use-livecode wrote: > Sannyasin Brahmanathaswami wrote: > > @ y'all about revision control of? binary stacks and YAML properities > > (front matter) for text only scripts.. cool musings! but they might > > want/need different threads? > > One of your team members requested extending the format of script-only > stacks specifically to support your project's goals. > > YAML is a notation for expressing name-value pairs in a format > optimized for human writing, something we LC fans like in a language.? > It would seem to lend itself well to the request made here in support > of your work. > > Not at all my intention to hijack your thread by exploring that option > further to see if we can arrive at an actionable plan.? On the > contrary, it is in direct support of pursuing solutions specific to > your needs. > > We could rename this part of the discussion, but since it involves > nested behaviors, MVC, and architecture, and is occurring for the > purpose of helping your work, if we did so you might miss something > useful for you. > From revolution at derbrill.de Sun Dec 30 14:33:41 2018 From: revolution at derbrill.de (Malte Pfaff-Brill) Date: Sun, 30 Dec 2018 20:33:41 +0100 Subject: Refactoring is your friend / moving from 6.x to 9.x In-Reply-To: References: Message-ID: <8971A25A-F836-45A0-8504-9A72BC8BC83C@derbrill.de> Hi list, I finally found the time to test / move one of my old projects from the 6.x (started in 3.x) to the 9.x engine. At first I was very very disappointed about performance. The stack was somewhat between acceptable and snappy in the 6.x engine series, rather unusable on 8 and on 9. This basically led to so much frustration that I basically gave up on the project, coding and LiveCode as a whole. I had a bit of time on my own during the holidays, so I started to analyse where the slowdowns actually happened. It seems I do owe the 9.x engine an apology, expecting everything to work as it used to in 6 is not the way I should have gone. After a refactor of my scripts I am now sitting with a version of my stack that works faster as it did in 5.x / 6.x. General and fixable observations: The IDE spams a lot of IDE only messages when creating many objects by script -> remedy: Lock messages Nested Lock screens are a big "NO-NO? nowadays You can not rely on the screen being unlocked immediately at the end of a handler Not yet fixable for me: Array operations on larger data sets still slower than they were Non engine related: My SQL-Fu has improved a bit ;-) Quite a bit of performance to gain there. Did anybody of you happen to refactor old code and if so, do you have any observations you might want to share? Cheers, Malte From andre at andregarzia.com Sun Dec 30 14:57:36 2018 From: andre at andregarzia.com (Andre Alves Garzia) Date: Sun, 30 Dec 2018 19:57:36 +0000 Subject: Refactoring is your friend / moving from 6.x to 9.x In-Reply-To: <8971A25A-F836-45A0-8504-9A72BC8BC83C@derbrill.de> References: <8971A25A-F836-45A0-8504-9A72BC8BC83C@derbrill.de> Message-ID: Malte, So happy that you're back here my friend. I too spent some time away. So, refactoring and constantly trying to erase mistakes of my past coding self are a constant here. I wish we had better refactoring tools so that we could rename a handler and all code that called that handler was fixed, or stuff such as rename variable... Cheers andre On 30/12/2018 19:33, Malte Pfaff-Brill via use-livecode wrote: > Hi list, > > I finally found the time to test / move one of my old projects from the 6.x (started in 3.x) to the 9.x engine. At first I was very very disappointed about performance. The stack was somewhat between acceptable and snappy in the 6.x engine series, rather unusable on 8 and on 9. This basically led to so much frustration that I basically gave up on the project, coding and LiveCode as a whole. > > I had a bit of time on my own during the holidays, so I started to analyse where the slowdowns actually happened. It seems I do owe the 9.x engine an apology, expecting everything to work as it used to in 6 is not the way I should have gone. After a refactor of my scripts I am now sitting with a version of my stack that works faster as it did in 5.x / 6.x. > > General and fixable observations: > > The IDE spams a lot of IDE only messages when creating many objects by script -> remedy: Lock messages > Nested Lock screens are a big "NO-NO? nowadays > You can not rely on the screen being unlocked immediately at the end of a handler > > Not yet fixable for me: > Array operations on larger data sets still slower than they were > > Non engine related: > My SQL-Fu has improved a bit ;-) Quite a bit of performance to gain there. > > Did anybody of you happen to refactor old code and if so, do you have any observations you might want to share? > > Cheers, > > Malte > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kaveh at rivervalleytechnologies.com Sun Dec 30 16:12:02 2018 From: kaveh at rivervalleytechnologies.com (Kaveh Bazargan) Date: Sun, 30 Dec 2018 21:12:02 +0000 Subject: Refactoring is your friend / moving from 6.x to 9.x In-Reply-To: References: <8971A25A-F836-45A0-8504-9A72BC8BC83C@derbrill.de> Message-ID: I don't think LiveCode without Malte is really LiveCode, so glad you are back. :-) Could you pls elaborate on the lock screen strategy? You said we should not nest, and you also said that screen will not immediately be unlocked after a handler. I was under the impression that multiple locks were not a problem (e.g. one handler locks, then calls another that also locks). Then when the main handler is done, screen is released. Any more info on that would be appreciated. Regards Kaveh On Sun, 30 Dec 2018 at 19:58, Andre Alves Garzia via use-livecode < use-livecode at lists.runrev.com> wrote: > Malte, > > So happy that you're back here my friend. I too spent some time away. > > So, refactoring and constantly trying to erase mistakes of my past > coding self are a constant here. I wish we had better refactoring tools > so that we could rename a handler and all code that called that handler > was fixed, or stuff such as rename variable... > > Cheers > > andre > > On 30/12/2018 19:33, Malte Pfaff-Brill via use-livecode wrote: > > Hi list, > > > > I finally found the time to test / move one of my old projects from the > 6.x (started in 3.x) to the 9.x engine. At first I was very very > disappointed about performance. The stack was somewhat between acceptable > and snappy in the 6.x engine series, rather unusable on 8 and on 9. This > basically led to so much frustration that I basically gave up on the > project, coding and LiveCode as a whole. > > > > I had a bit of time on my own during the holidays, so I started to > analyse where the slowdowns actually happened. It seems I do owe the 9.x > engine an apology, expecting everything to work as it used to in 6 is not > the way I should have gone. After a refactor of my scripts I am now sitting > with a version of my stack that works faster as it did in 5.x / 6.x. > > > > General and fixable observations: > > > > The IDE spams a lot of IDE only messages when creating many objects by > script -> remedy: Lock messages > > Nested Lock screens are a big "NO-NO? nowadays > > You can not rely on the screen being unlocked immediately at the end of > a handler > > > > Not yet fixable for me: > > Array operations on larger data sets still slower than they were > > > > Non engine related: > > My SQL-Fu has improved a bit ;-) Quite a bit of performance to gain > there. > > > > Did anybody of you happen to refactor old code and if so, do you have > any observations you might want to share? > > > > Cheers, > > > > Malte > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Kaveh Bazargan Director River Valley Technologies ? Twitter ? LinkedIn From revolution at derbrill.de Sun Dec 30 16:25:54 2018 From: revolution at derbrill.de (Malte Pfaff-Brill) Date: Sun, 30 Dec 2018 22:25:54 +0100 Subject: Refactoring is your friend / moving from 6.x to 9.x In-Reply-To: References: Message-ID: Hi Kaveh, Thanks for the kind words. :-) Regarding lock screen, here is one simple example: on mouseUp lock screen subhandler unlock screen answer the lockscreen end mouseUp on subhandler lock screen ? other stuff may follow, but do not unlock end subhandler My expectation in the answer would be ?false?, but guess what. :-) Regarding screen not being immediately released, I am not down to the cause yet. App is complex (multi group / people calendar) Cheers, Malte From ahsoftware at sonic.net Sun Dec 30 16:42:47 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 30 Dec 2018 13:42:47 -0800 Subject: Refactoring is your friend / moving from 6.x to 9.x In-Reply-To: References: Message-ID: <860d75ca-a4f5-869a-b101-ab31a82ab29f@sonic.net> On 12/30/18 1:25 PM, Malte Pfaff-Brill via use-livecode wrote: > Hi Kaveh, > > Thanks for the kind words. :-) > > Regarding lock screen, here is one simple example: > > on mouseUp > lock screen > subhandler > unlock screen > answer the lockscreen > end mouseUp > > > on subhandler > lock screen > ? other stuff may follow, but do not unlock > end subhandler > > My expectation in the answer would be ?false?, but guess what. :-) > Regarding screen not being immediately released, I am not down to the cause yet. App is complex (multi group / people calendar) I want to strongly disagree with your conclusion here. Locking and unlocking the screen is a matter of counting when it comes to nesting. In your example, the mouseUp handler increments the count to 1, then the subhandler increases it to 2, and finally the mouseUp handler decrements the count with the unlock command. That still leaves the lock counter nonzero, so the screen is still locked. A more correct approach would be to unlock the screen at the end of the subhandler, i.e., lock the screen when you need it locked, then unlock it *in the same handler* when you're done needing it locked. I nest lock and unlock commands all the time, and it's second nature now to pair them the same way I pair if/end if, repeat/end repeat, etc. -- Mark Wieder ahsoftware at gmail.com From revolution at derbrill.de Sun Dec 30 16:55:55 2018 From: revolution at derbrill.de (Malte Pfaff-Brill) Date: Sun, 30 Dec 2018 22:55:55 +0100 Subject: Refactoring is your friend / moving from 6.x to 9.x In-Reply-To: References: Message-ID: Hey Mark, At least it is behaviour that changed between engine releases. :-) Thinking of a counter here is a good way to describe the behaviour, however, it is not what is written in the dictionary. "unlock screen Sets the lockScreen property to false, updating the screen and displaying any changes made since the screen was locked.? If unlock screen sets a property, the expectation would be to take effect as soon as one unlock screen is issued, as a property can only have one state. Nesting is not described in the dictionary. Not that I can not live with the change, that is not my point From ahsoftware at sonic.net Sun Dec 30 17:16:07 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 30 Dec 2018 14:16:07 -0800 Subject: Refactoring is your friend / moving from 6.x to 9.x In-Reply-To: References: Message-ID: On 12/30/18 1:55 PM, Malte Pfaff-Brill via use-livecode wrote: > Hey Mark, > > At least it is behaviour that changed between engine releases. :-) > Thinking of a counter here is a good way to describe the behaviour, however, it is not what is written in the dictionary. Yes, it is definitely a change in behavior. I'm fairly certain it's in a release note somewhere along the way, although I can't find it, so I'm not sure where I learned it. This isn't the only place where the dictionary is wrong. Back in the day we used to be able to add user notes to the dictionary to take care of things like this. -- Mark Wieder ahsoftware at gmail.com From rdimola at evergreeninfo.net Sun Dec 30 18:43:43 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sun, 30 Dec 2018 18:43:43 -0500 Subject: Refactoring is your friend / moving from 6.x to 9.x In-Reply-To: References: Message-ID: <002901d4a099$8252ec60$86f8c520$@net> Task: Add ellipses if text does not fit visible field width. V4, v5 and v6 I put the data into the field and then looped thru the lines. If text was too wide I chopped off 1/2 of the overflow chars(rough guess) and then iterated what was left using the formattedwidth as the last chars were deleted with the added ellipses to see if it's all visible. Simple enough but as 7, 8, 9 were released this became very slow. On Android device using v9 a list 200-300 hundred lines long(only 25 visible) took about 6 seconds to render with the screen locked. I never timed it but it seemed like the time increased exponentially as the list grew. Refactor: 1) Insert the field text/styles using a pre-loaded styledText array 2) Calculating the ellipses in that array using the measureText function. Now the same list took about 1.5 seconds. That's about 4 times faster and the seems that the time is more linier as the list grows. That begs 2 questions for me(at least) 1) A charAtPixel function in the engine would make the adding ellipses much faster. 2) When operating on a field that was hidden, screen locked or you just don't care if you see delayed changes.... Have the field object only operate on an internal styledText array and only start the "go down the hall, into a room, open the closet... as Richard's prose said" when you want to render the field on the screen. Now there may be times for reasons I can't think of right now that the internal styledText array might need to be flushed to the field before the field is visible or the screen is unlocked. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From tom at makeshyft.com Sun Dec 30 23:52:56 2018 From: tom at makeshyft.com (Tom Glod) Date: Sun, 30 Dec 2018 23:52:56 -0500 Subject: Refactoring is your friend / moving from 6.x to 9.x In-Reply-To: <002901d4a099$8252ec60$86f8c520$@net> References: <002901d4a099$8252ec60$86f8c520$@net> Message-ID: a very interesting thread ...lots to learn. I refactored a project from 7 to 9 .... and definitely had a couple of "how did this code ever work?" moments, meaning i found the most recent versions of the engine to be more strict with syntax. As far as performance comparisons I don't have a lot to add, for me LC has always been performant enough for the most part. When I hear about possible future optimizations I am thrilled to think my software will be that much more performant. When something is slow I often just blame my computer. lol but populating fields seems something that has gotten a lot slower..... so I've had to work around it a bit. (built my handler to not put more text into a field than what is visible, solved my particular problem, but not a universal solution.) These kinds of threads are gold mines. Thanks to all. On Sun, Dec 30, 2018 at 6:40 PM Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > Task: Add ellipses if text does not fit visible field width. > > V4, v5 and v6 I put the data into the field and then looped thru the lines. > If text was too wide I chopped off 1/2 of the overflow chars(rough guess) > and then iterated what was left using the formattedwidth as the last chars > were deleted with the added ellipses to see if it's all visible. > > Simple enough but as 7, 8, 9 were released this became very slow. On > Android > device using v9 a list 200-300 hundred lines long(only 25 visible) took > about 6 seconds to render with the screen locked. I never timed it but it > seemed like the time increased exponentially as the list grew. > > Refactor: > 1) Insert the field text/styles using a pre-loaded styledText array > 2) Calculating the ellipses in that array using the measureText function. > Now the same list took about 1.5 seconds. That's about 4 times faster and > the seems that the time is more linier as the list grows. > > That begs 2 questions for me(at least) > 1) A charAtPixel function in the engine would make the adding ellipses much > faster. > 2) When operating on a field that was hidden, screen locked or you just > don't care if you see delayed changes.... Have the field object only > operate > on an internal styledText array and only start the "go down the hall, into > a > room, open the closet... as Richard's prose said" when you want to render > the field on the screen. Now there may be times for reasons I can't think > of > right now that the internal styledText array might need to be flushed to > the > field before the field is visible or the screen is unlocked. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gcanyon at gmail.com Mon Dec 31 02:56:01 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 30 Dec 2018 23:56:01 -0800 Subject: Refactoring is your friend / moving from 6.x to 9.x In-Reply-To: References: Message-ID: In 6.7.3 on a Mac, this results in true for me. Checked in 5.0, also resulted in true. On Sun, Dec 30, 2018 at 1:26 PM Malte Pfaff-Brill via use-livecode < use-livecode at lists.runrev.com> wrote: > > Regarding lock screen, here is one simple example: > > on mouseUp > lock screen > subhandler > unlock screen > answer the lockscreen > end mouseUp > > > on subhandler > lock screen > ? other stuff may follow, but do not unlock > end subhandler > > My expectation in the answer would be ?false?, but guess what. :-) From panos.merakos at livecode.com Mon Dec 31 05:44:05 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 31 Dec 2018 12:44:05 +0200 Subject: [ANN] This Week in LiveCode 161 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 #161 here: https://goo.gl/URi97G This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From brahma at hindu.org Mon Dec 31 08:33:27 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 31 Dec 2018 13:33:27 +0000 Subject: Lock and Unlock Screen (was Refactoring. etc...) Message-ID: <8C8FFF0E-BA3C-45EA-9B96-3E50E7E74530@hindu.org> Aloha Malte: I agree with this. I can't imagine any use case where the last attempt the message path/hierarchy, to unlock screen, would where you actually *want* to have the screen locked. This has been a "nuisance" for years. As you say, it is a property, on/off, and should not be dependent on a "prior engagement." Can anyone describe such a use case? Where is you come to the end of your message path, and the last thing you do is "unlock screen" and you still want it locked? BR ? Malte Pfaff-Brill wrote: If unlock screen sets a property, the expectation would be to take effect as soon as one unlock screen is issued, as a property can only have one state. Nesting is not described in the dictionary. Not that I can not live with the change, that is not my point Mark Weider wrote Locking and unlocking the screen is a matter of counting when it comes to nesting. In your example, the mouseUp handler increments the count to 1, then the subhandler increases it to 2, and finally the mouseUp handler decrements the count with the unlock command. That still leaves the lock counter nonzero, so the screen is still locked. From brahma at hindu.org Mon Dec 31 08:39:23 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 31 Dec 2018 13:39:23 +0000 Subject: Interrupting "Wait" Message-ID: <50A24DA9-4FC4-442E-A2D3-1ADFB1C70CAC@hindu.org> If you issue a Wait for 3 seconds with messages And, after 1 second, the users want to continue. Is that a way to interrupt "wait" ? Ah? yes, I know?setting a flag and issuing a send in time command will do it. But "wait" in so easy. BR From brahma at hindu.org Mon Dec 31 08:40:59 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 31 Dec 2018 13:40:59 +0000 Subject: Lock and Unlock Screen (was Refactoring. etc...) In-Reply-To: <8C8FFF0E-BA3C-45EA-9B96-3E50E7E74530@hindu.org> References: <8C8FFF0E-BA3C-45EA-9B96-3E50E7E74530@hindu.org> Message-ID: Aloha Malte: I agree with this. I can't imagine any use case where the last attempt the message path/hierarchy, to unlock screen, would where you actually *want* to have the screen locked. This has been a "nuisance" for years. As you say, it is a property, on/off, and should not be dependent on a "prior engagement." Can anyone describe such a use case? Where is you come to the end of your message path, and the last thing you do is "unlock screen" and you still want it locked? Let's you back to the way it was in 6.7.3 BR Geoff wrote: In 6.7.3 on a Mac, this results in true for me. Checked in 5.0, also resulted in true. Malte Pfaff-Brill wrote: If unlock screen sets a property, the expectation would be to take effect as soon as one unlock screen is issued, as a property can only have one state. Nesting is not described in the dictionary. Not that I can not live with the change, that is not my point Mark Weider wrote Locking and unlocking the screen is a matter of counting when it comes to nesting. In your example, the mouseUp handler increments the count to 1, then the subhandler increases it to 2, and finally the mouseUp handler decrements the count with the unlock command. That still leaves the lock counter nonzero, so the screen is still locked. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From tore.nilsen at me.com Mon Dec 31 08:48:24 2018 From: tore.nilsen at me.com (Tore Nilsen) Date: Mon, 31 Dec 2018 14:48:24 +0100 Subject: Interrupting "Wait" In-Reply-To: <50A24DA9-4FC4-442E-A2D3-1ADFB1C70CAC@hindu.org> References: <50A24DA9-4FC4-442E-A2D3-1ADFB1C70CAC@hindu.org> Message-ID: Depending on the action the user might take, have you tried: wait until the mouse is down Best regards Tore Nilsen > 31. des. 2018 kl. 14:39 skrev Sannyasin Brahmanathaswami via use-livecode : > > If you issue a > > Wait for 3 seconds with messages > > And, after 1 second, the users want to continue. > > Is that a way to interrupt "wait" ? > > Ah? yes, I know?setting a flag and issuing a send in time command will do it. > > But "wait" in so easy. > > BR > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Mon Dec 31 10:00:52 2018 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 31 Dec 2018 15:00:52 +0000 Subject: Lock and Unlock Screen (was Refactoring. etc...) In-Reply-To: <8C8FFF0E-BA3C-45EA-9B96-3E50E7E74530@hindu.org> References: <8C8FFF0E-BA3C-45EA-9B96-3E50E7E74530@hindu.org> Message-ID: <5ecc92f3-be22-aa2c-537c-ffda6ee943ba@tweedly.net> On 31/12/2018 13:33, Sannyasin Brahmanathaswami via use-livecode wrote: > Aloha Malte: > > I agree with this. I can't imagine any use case where the last attempt the message path/hierarchy, to unlock screen, would where you actually *want* to have the screen locked. This has been a "nuisance" for years. As you say, it is a property, on/off, and should not be dependent on a "prior engagement." > > Can anyone describe such a use case? Where is you come to the end of your message path, and the last thing you do is "unlock screen" and you still want it locked? > Sure - lots of them. If it worked the way you suggest, then: Imagine I have a library, which updates a field on the screen; it therefore does a lockscreen / unlockscreen. I have a handler in which I update many fields - so it locks at the start and unlocks at the end. But if I use that library call somewhere in the middle, then the library's "unlockscreen" would leave the screen unlocked, and all the rest of my changes would be visible immediately - so not only very slow, but also perhaps an unacceptable UI experience. So it needs to work like a nested counter - but maybe there should be a "lockDepth" property similar to waitDepth - and indeed maybe there should be a way to "force unlock", or to set the value of lockDepth, or .... Alex. From brahma at hindu.org Mon Dec 31 10:02:25 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 31 Dec 2018 15:02:25 +0000 Subject: Interrupting "Wait" In-Reply-To: References: <50A24DA9-4FC4-442E-A2D3-1ADFB1C70CAC@hindu.org> Message-ID: Its more complicated then that. I have struggled with this before, it?s about "running a show" of events where there is wait time and lock screen involved and the user want to quit in the middle of a repeat loop The following the repeat loop takes over the CPU, so a mouse down on a button which triggers "StopShow". Which toggle the flag... Only fires at the end... Year ago I remember someone mention that we need to "enter a little idle time" into let messages "through the repeat".... but the method escapes me today. global sConfigA,sHomeImageFile,sNarrativePlayFlag,sMainImage,sNextImage command startNarrative put path_Assets()& "img/siva-darshan/who-is-siva_1200x800.jpg" into sHomeImageFile put "true" into sNarrativePlayFlag put the long id of img "homeStoryMainImage" of me into sMainImage put randomDietyPhotos() into tPhotoList repeat for each line pPath in tPhotoList if sNarrativePlayFlag then dispatch "loadNewImage" to me with pPath --send "loadNewImage pPath" to me wait for 1 seconds else put pendingMessages() --loadNewImage sHomeImageFile -- screen with visual effect "dissolve" exit repeat end if end repeat end startNarrative command loadNewImage pPath hide sMainImage with effect "dissolve" to black lock screen set the filename of sMainImage to pPath setRectOfCurrentGrc sMainImage put the loc of this card into tLoc subtract 27 from item 2 of tLoc resizeToHeight sMainImage,(the height of this card -58) set the loc sMainImage to tLoc unlock screen --with visual effect "dissolve" show sMainImage with visual effect "dissolve" end loadNewImage command stopShow loadNewImage sHomeImageFile put "false" into sNarrativePlayFlag end stopShow Brahmanathaswami ? Tore wrote: Depending on the action the user might take, have you tried: wait until the mouse is down Best regards Tore Nilsen > 31. des. 2018 kl. 14:39 skrev Sannyasin Brahmanathaswami via use-livecode : > > If you issue a > > Wait for 3 seconds with messages > > And, after 1 second, the users want to continue. > > Is that a way to interrupt "wait" ? > > Ah? yes, I know?setting a flag and issuing a send in time command will do it. > > But "wait" in so easy. > > BR > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Mon Dec 31 10:21:31 2018 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 31 Dec 2018 15:21:31 +0000 Subject: Interrupting "Wait" In-Reply-To: References: <50A24DA9-4FC4-442E-A2D3-1ADFB1C70CAC@hindu.org> Message-ID: <1c9ad081-6dc2-2b1e-8ef4-cf7c30e661c3@tweedly.net> In essence, you want something like the following: (this assumes a capital Q typed to the card will quit the display. It could easily be changed to clicking a button - so long as the mouseUp handler would set the script-local when appropriate). local sStopRequested command playShow ?? local tPhotos ?? put FALSE into sStopRequested ?? put randomPhotoList() into tPhotos ?? repeat for each line L in tPhotos ????? dispatch "loadImage" with L ????? wait 5 seconds with messages ????? if sStopRequested then exit repeat ?? end repeat ?? dispatch "loadImage" with "defaultMainImage" end playShow on rawKeyUp pKey ?? if pKey = "Q" then ????? put TRUE into sStopRequested ?? else ????? pass rawKeyUp ?? end if end rawKeyUp NB this has the limitation that there will be a delay of up to 5 seconds after the user types the 'Q" before it takes effect. If you need to avoid that and get more immediate response, then you could replace ????? wait 5 seconds with messages ????? if sStopRequested then exit repeat with ????? repeat 5 times ????? ?? if sStopRequested then exit repeat ????? ?? wait 1 second with messages ?? ?? end repeat -- for the number of seconds ????? if sStopRequested then exit repeat or similar (or put that logic into a handler). And as a bonus, you could easily add more typing options ... ?? Q for quite the slideshow ?? SPACE for next photo immediately ?? arrowkey for next/previous, erc Alex. On 31/12/2018 15:02, Sannyasin Brahmanathaswami via use-livecode wrote: > global sConfigA,sHomeImageFile,sNarrativePlayFlag,sMainImage,sNextImage > > command startNarrative > put path_Assets()& "img/siva-darshan/who-is-siva_1200x800.jpg" into sHomeImageFile > put "true" into sNarrativePlayFlag > put the long id of img "homeStoryMainImage" of me into sMainImage > put randomDietyPhotos() into tPhotoList > repeat for each line pPath in tPhotoList > if sNarrativePlayFlag then > dispatch "loadNewImage" to me with pPath > --send "loadNewImage pPath" to me > wait for 1 seconds > else > put pendingMessages() > --loadNewImage sHomeImageFile > -- screen with visual effect "dissolve" > exit repeat > end if > end repeat > end startNarrative > > command loadNewImage pPath > hide sMainImage with effect "dissolve" to black > lock screen > set the filename of sMainImage to pPath > setRectOfCurrentGrc sMainImage > put the loc of this card into tLoc > subtract 27 from item 2 of tLoc > resizeToHeight sMainImage,(the height of this card -58) > set the loc sMainImage to tLoc > unlock screen --with visual effect "dissolve" > show sMainImage with visual effect "dissolve" > end loadNewImage > > command stopShow > loadNewImage sHomeImageFile > put "false" into sNarrativePlayFlag > end stopShow From dunbarx at aol.com Mon Dec 31 11:37:19 2018 From: dunbarx at aol.com (dunbarxx) Date: Mon, 31 Dec 2018 10:37:19 -0600 (CST) Subject: Refactoring is your friend / moving from 6.x to 9.x In-Reply-To: References: <8971A25A-F836-45A0-8504-9A72BC8BC83C@derbrill.de> Message-ID: <1546274239849-0.post@n4.nabble.com> Not sure if this is still relevant in LC, but in HC, lock screen commands were queued. So the fix, so that one did not have to count the number of locks through perhaps several handlers, was: repeat until the lockScreen is false unlock screen end repeat Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From hh at hyperhh.de Mon Dec 31 12:04:47 2018 From: hh at hyperhh.de (hh) Date: Mon, 31 Dec 2018 18:04:47 +0100 Subject: Refactoring is your friend / moving from 6.x to 9.x Message-ID: <69BBC667-9603-4FE8-BFF6-72CCFBD25332@hyperhh.de> > Craig wrote: > Not sure if this is still relevant in LC, but in HC, lock screen > commands were queued. So the fix, so that one did not have to count > the number of locks through perhaps several handlers, was: > > repeat until the lockScreen is false > unlock screen > end repeat Yes! Or lock only once: if not the lockScreen then lock screen From bobsneidar at iotecdigital.com Mon Dec 31 12:21:04 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 31 Dec 2018 17:21:04 +0000 Subject: Lock and Unlock Screen (was Refactoring. etc...) In-Reply-To: <5ecc92f3-be22-aa2c-537c-ffda6ee943ba@tweedly.net> References: <8C8FFF0E-BA3C-45EA-9B96-3E50E7E74530@hindu.org> <5ecc92f3-be22-aa2c-537c-ffda6ee943ba@tweedly.net> Message-ID: <661E9C99-B24E-4352-AC2D-EDA2193F5F88@iotecdigital.com> There IS a method for unlocking all. wait 0 seconds with messages. All screen locks are cleared when the idle message is sent. Bob S > On Dec 31, 2018, at 07:00 , Alex Tweedly via use-livecode wrote: > > So it needs to work like a nested counter - but maybe there should be a "lockDepth" property similar to waitDepth - and indeed maybe there should be a way to "force unlock", or to set the value of lockDepth, or .... > > Alex. From beatco at gmail.com Mon Dec 31 12:24:59 2018 From: beatco at gmail.com (Beat Cornaz) Date: Mon, 31 Dec 2018 18:24:59 +0100 Subject: Get RGB color of a specific screen location Message-ID: How do I get the RGB color of a pixel of an image? I know the function the MouseColor, which gives me the RGB numbers under the cursor. What I need is to get the RGB of a specific screen location - I need to make an avarage of e.g. 5x5 pixels. So how do I get the RGB numbers of e.g. location "30,200"? Cheers, Beat From bobsneidar at iotecdigital.com Mon Dec 31 12:29:34 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 31 Dec 2018 17:29:34 +0000 Subject: Refactoring is your friend / moving from 6.x to 9.x In-Reply-To: <8971A25A-F836-45A0-8504-9A72BC8BC83C@derbrill.de> References: <8971A25A-F836-45A0-8504-9A72BC8BC83C@derbrill.de> Message-ID: <79D6F4B0-ED11-4606-BBD6-13BCB41D1C80@iotecdigital.com> For multiple recursions into an array I came up with a method for loading an array into a memory based sql database. Subsequent queries take less time, depending of course on how complex they are, but you can do lots of cool thinks, like complex filtering / sorts, calculations, etc. to a cursor, then I have a function that converts a cursor to an array. I originally used it to get the topmost, leftmost, bottommost and rightmost objects on a card that were visible by using min and max queries on a list of the objects. But of course the method can be expanded to do almost anything. Bob S > On Dec 30, 2018, at 11:33 , Malte Pfaff-Brill via use-livecode wrote: > > Not yet fixable for me: > Array operations on larger data sets still slower than they were > > Non engine related: > My SQL-Fu has improved a bit ;-) Quite a bit of performance to gain there. > > Did anybody of you happen to refactor old code and if so, do you have any observations you might want to share? > > Cheers, > > Malte From bobsneidar at iotecdigital.com Mon Dec 31 12:32:10 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 31 Dec 2018 17:32:10 +0000 Subject: Refactoring is your friend / moving from 6.x to 9.x In-Reply-To: References: <8971A25A-F836-45A0-8504-9A72BC8BC83C@derbrill.de> Message-ID: Find/Replace works great. I've done it a few times, so long as the thing you are finding has a unique name that cannot be a part of any other bit of code, you should be fine. Backup your stack of course before doing something so drastic. A while ago, the LC dev team optimized the search engine so that it is orders of magnitude faster. Bob S > On Dec 30, 2018, at 11:57 , Andre Alves Garzia via use-livecode wrote: > > Malte, > > So happy that you're back here my friend. I too spent some time away. > > So, refactoring and constantly trying to erase mistakes of my past coding self are a constant here. I wish we had better refactoring tools so that we could rename a handler and all code that called that handler was fixed, or stuff such as rename variable... > > Cheers > > andre From revdev at pdslabs.net Mon Dec 31 12:50:54 2018 From: revdev at pdslabs.net (Phil Davis) Date: Mon, 31 Dec 2018 09:50:54 -0800 Subject: Get RGB color of a specific screen location In-Reply-To: References: Message-ID: set the screenMouseLoc to globalLoc(tLocWithinMyStack) put the mouseColor into tTheColorAtThatScreenLoc Phil Davis On 12/31/18 9:24 AM, Beat Cornaz via use-livecode wrote: > How do I get the RGB color of a pixel of an image? I know the function the > MouseColor, which gives me the RGB numbers under the cursor. What I need is > to get the RGB of a specific screen location - I need to make an avarage of > e.g. 5x5 pixels. So how do I get the RGB numbers of e.g. location "30,200"? > > Cheers, Beat > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > -- Phil Davis From gcanyon at gmail.com Mon Dec 31 13:38:10 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 31 Dec 2018 10:38:10 -0800 Subject: Refactoring is your friend / moving from 6.x to 9.x In-Reply-To: References: <8971A25A-F836-45A0-8504-9A72BC8BC83C@derbrill.de> Message-ID: On Sun, Dec 30, 2018 at 11:58 AM Andre Alves Garzia via use-livecode < use-livecode at lists.runrev.com> wrote: > I wish we had better refactoring tools > so that we could rename a handler and all code that called that handler > was fixed, or stuff such as rename variable... > One of the reasons I like experimenting with different environments is to see what advantages they have. One advantage that FileMaker Pro has had for 25 years, is that all references to tables, fields, and layouts, are based on underlying unique IDs. Meaning that if you rename something, the underlying reference ID doesn't change, and anywhere the reference occurs, the name change is reflected automatically. Obviously this would require significant effort to work in any text-file-based system, but it has always amazed me that I have never seen this feature replicated elsewhere. From ahsoftware at sonic.net Mon Dec 31 14:30:40 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 31 Dec 2018 11:30:40 -0800 Subject: Refactoring is your friend / moving from 6.x to 9.x In-Reply-To: References: <002901d4a099$8252ec60$86f8c520$@net> Message-ID: <21fc788a-70cb-be17-2b62-5ce5046e7fae@sonic.net> On 12/30/18 8:52 PM, Tom Glod via use-livecode wrote: > .... and definitely had a couple of "how did this code ever work?" moments ...heh...been there... -- Mark Wieder ahsoftware at gmail.com From richmondmathewson at gmail.com Mon Dec 31 15:52:47 2018 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 31 Dec 2018 22:52:47 +0200 Subject: Roadmap Message-ID: <64be1e8e-a154-2b7b-188b-075cf775122d@gmail.com> https://livecode.com/resources/roadmap/ Last Updated on September 24, 2018 Tut, tut. Richmond. From jacque at hyperactivesw.com Mon Dec 31 16:32:23 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 31 Dec 2018 15:32:23 -0600 Subject: Refactoring is your friend / moving from 6.x to 9.x In-Reply-To: <79D6F4B0-ED11-4606-BBD6-13BCB41D1C80@iotecdigital.com> References: <8971A25A-F836-45A0-8504-9A72BC8BC83C@derbrill.de> <79D6F4B0-ED11-4606-BBD6-13BCB41D1C80@iotecdigital.com> Message-ID: <168062e9658.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I'm generally deficient when it comes to databases but curious how one creates a memory based one. Is there a trick, and does it work with others besides sql? This is probably a newbie question. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On December 31, 2018 11:31:15 AM Bob Sneidar via use-livecode wrote: > For multiple recursions into an array I came up with a method for loading > an array into a memory based sql database. Subsequent queries take less > time, depending of course on how complex they are, but you can do lots of > cool thinks, like complex filtering / sorts, calculations, etc. to a > cursor, then I have a function that converts a cursor to an array. > > I originally used it to get the topmost, leftmost, bottommost and rightmost > objects on a card that were visible by using min and max queries on a list > of the objects. But of course the method can be expanded to do almost anything. > > Bob S > > >> On Dec 30, 2018, at 11:33 , Malte Pfaff-Brill via use-livecode >> wrote: >> >> Not yet fixable for me: >> Array operations on larger data sets still slower than they were >> >> Non engine related: >> My SQL-Fu has improved a bit ;-) Quite a bit of performance to gain there. >> >> Did anybody of you happen to refactor old code and if so, do you have any >> observations you might want to share? >> >> Cheers, >> >> Malte > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Dec 31 16:41:13 2018 From: paul at researchware.com (Paul Dupuis) Date: Mon, 31 Dec 2018 16:41:13 -0500 Subject: LiveCode 9.0.2 on Windows unable to build for Mac?!?!?!? Message-ID: Running under Windows 10, with LiveCode 9.0.2 STABLE, I was just trying to rebuild a Standalone for Window and OSX. and it fails. The symptom is that, for all folders in the "Copy Files" tab of the Standalone Settings, only the folders are copied/created and NOT A SINGLE FILE in the folders is copied to the standalone! This works under LC901 STABLE and Window 10 for the exact same project. This seems a pretty serious bug from a STABLE release. Is it just me who develops for the Mac under Windows? Or am I the only one using Copy Files in the Standalone Settings? Or is this issue known and due to be fixed in 9.0.3 and I missed the post? From rdimola at evergreeninfo.net Mon Dec 31 17:16:16 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 31 Dec 2018 17:16:16 -0500 Subject: Refactoring is your friend / moving from 6.x to 9.x In-Reply-To: <168062e9658.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <8971A25A-F836-45A0-8504-9A72BC8BC83C@derbrill.de> <79D6F4B0-ED11-4606-BBD6-13BCB41D1C80@iotecdigital.com> <168062e9658.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <001c01d4a156$75c178a0$614469e0$@net> A SQLite memory database is the same as a SQLite file database except it's created for just the instance that app is running. You have to create table(s) and field(s) for those table(s). Then the app then populates the data and queries it. SQLite memory database supports the same SQL syntax as a file based SQLite database. When opening an SQLite database if you don't supply a file spec then it's created in memory( I think that ":memory:" for the file spec also works). If you supply a file spec and the db does not exist then an empty one is created just like a memory database. Of course a memory database is faster than a disk based database. I find that SQL invaluable for dealing with complex data relationships. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of J. Landman Gay via use-livecode Sent: Monday, December 31, 2018 4:32 PM To: How to use LiveCode Cc: J. Landman Gay Subject: Re: Refactoring is your friend / moving from 6.x to 9.x I'm generally deficient when it comes to databases but curious how one creates a memory based one. Is there a trick, and does it work with others besides sql? This is probably a newbie question. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On December 31, 2018 11:31:15 AM Bob Sneidar via use-livecode wrote: > For multiple recursions into an array I came up with a method for > loading an array into a memory based sql database. Subsequent queries > take less time, depending of course on how complex they are, but you > can do lots of cool thinks, like complex filtering / sorts, > calculations, etc. to a cursor, then I have a function that converts a cursor to an array. > > I originally used it to get the topmost, leftmost, bottommost and > rightmost objects on a card that were visible by using min and max > queries on a list of the objects. But of course the method can be expanded to do almost anything. > > Bob S > > >> On Dec 30, 2018, at 11:33 , Malte Pfaff-Brill via use-livecode >> wrote: >> >> Not yet fixable for me: >> Array operations on larger data sets still slower than they were >> >> Non engine related: >> My SQL-Fu has improved a bit ;-) Quite a bit of performance to gain there. >> >> Did anybody of you happen to refactor old code and if so, do you have >> any observations you might want to share? >> >> Cheers, >> >> Malte > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From waprothero at gmail.com Mon Dec 31 17:38:09 2018 From: waprothero at gmail.com (William Prothero) Date: Mon, 31 Dec 2018 14:38:09 -0800 Subject: Getting the name of the script only stack an handler is in In-Reply-To: <1546274239849-0.post@n4.nabble.com> References: <8971A25A-F836-45A0-8504-9A72BC8BC83C@derbrill.de> <1546274239849-0.post@n4.nabble.com> Message-ID: <82785D12-03A6-4FDB-BA3A-E2C2A96F17E6@gmail.com> Folks: I?m trying to implement a structure where I can simply add script only stacks that seamlessly add capability to my app. To do this, I have all of the ?feature? stacks in a given folder, and when I initialize the app, I start using all of the ?feature? stacks. Then I want to initialize all of them, so I send a message that gets passed in each ?feature? stack. I do, in each ?feature? stack: on pollActions put the short name of the current stack into myAction dispatch "actionsList" to cd "Opening" of stack "CP_Main" with myAction pass pollActions end pollActions From waprothero at gmail.com Mon Dec 31 17:48:16 2018 From: waprothero at gmail.com (William Prothero) Date: Mon, 31 Dec 2018 14:48:16 -0800 Subject: Whoops: Getting the name of the script only stack an handler is in In-Reply-To: <82785D12-03A6-4FDB-BA3A-E2C2A96F17E6@gmail.com> References: <8971A25A-F836-45A0-8504-9A72BC8BC83C@derbrill.de> <1546274239849-0.post@n4.nabble.com> <82785D12-03A6-4FDB-BA3A-E2C2A96F17E6@gmail.com> Message-ID: <0D51C108-4206-4FF7-AF72-6107D6EEC027@gmail.com> Folks: Sorry, I accidentally sent the email before finishing it. Here?s the complete message. But perhaps I?ve solved it. I only need to put the name of the ?feature? stack in the pollActions handler. Anyway, I still have my question. I?m trying to implement a structure where I can simply add script only stacks that seamlessly add capability to my app. To do this, I have all of the ?feature? stacks in a given folder, and when I initialize the app, I start using all of the ?feature? stacks. Then I want to initialize all of them, so I send a message that gets passed in each ?feature? stack. I do, in each ?feature? stack (which doesn?t give me the answer I want): on pollActions put the short name of the current stack into myAction (I want the name of the stack that contains this script) dispatch "actionsList" to cd "Opening" of stack "CP_Main" with myAction pass pollActions end pollActions In the main stack, I have: local actionsList on actionsList tList put tList&cr after actionsList end actionsList My question: How do I get the name of the script only stack that holds the ?Feature? code? The above code gives me the name of the main stack, which is not useful for my purposes. Best, Bill From waprothero at gmail.com Mon Dec 31 18:15:39 2018 From: waprothero at gmail.com (William Prothero) Date: Mon, 31 Dec 2018 15:15:39 -0800 Subject: Whoops: Getting the name of the script only stack an handler is in In-Reply-To: <0D51C108-4206-4FF7-AF72-6107D6EEC027@gmail.com> References: <8971A25A-F836-45A0-8504-9A72BC8BC83C@derbrill.de> <1546274239849-0.post@n4.nabble.com> <82785D12-03A6-4FDB-BA3A-E2C2A96F17E6@gmail.com> <0D51C108-4206-4FF7-AF72-6107D6EEC027@gmail.com> Message-ID: Folks: Ok, if there is a way to get the name of the stack containing a particular handler, I?ll use it. Otherwise, each ?feature? stack will return a precoded name. I had to fiddle to get the polling to work without errors. The impetus for this is to re-factor the code for a project that?s looking increasingly complicated, so I need to make sure I will be able to maintain it without chaos, and thanks to Andre?s book for some direction. local actionsList on actionsList tList put tList&cr after actionsList end actionsList ?call this in the openstack handler on pollTheActionsStacks put "" into actionsList dispatch ?pollActions" end pollTheActionsStacks ?Each script only stack contains this: ?The name returned is set for each ?feature? stack. I?d rather have it return the name of the ?Feature? stack, but just ? returning the name is ok too on pollActions put the short name of this stack into myAction put "CP_handwriting" into myAction dispatch "actionsList" to cd "Opening" of stack "CP_Main" with myAction pass pollActions end pollActions Happy New Year, Bill > On Dec 31, 2018, at 2:48 PM, William Prothero via use-livecode wrote: > > Folks: > Sorry, I accidentally sent the email before finishing it. Here?s the complete message. > But perhaps I?ve solved it. I only need to put the name of the ?feature? stack in the pollActions handler. Anyway, I still have my question. > > I?m trying to implement a structure where I can simply add script only stacks that seamlessly add capability to my app. To do this, I have all of the ?feature? stacks in a given folder, and when I initialize the app, I start using all of the ?feature? stacks. Then I want to initialize all of them, so I send a message that gets passed in each ?feature? stack. > > I do, in each ?feature? stack (which doesn?t give me the answer I want): > > on pollActions > put the short name of the current stack into myAction (I want the name of the stack that contains this script) > dispatch "actionsList" to cd "Opening" of stack "CP_Main" with myAction > pass pollActions > end pollActions > > > In the main stack, I have: > > local actionsList > > on actionsList tList > put tList&cr after actionsList > end actionsList > > > > My question: > How do I get the name of the script only stack that holds the ?Feature? code? The above code gives me the name of the main stack, which is not useful for my purposes. > > Best, > Bill > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Mon Dec 31 18:27:17 2018 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 31 Dec 2018 23:27:17 +0000 Subject: Lock and Unlock Screen (was Refactoring. etc...) In-Reply-To: <661E9C99-B24E-4352-AC2D-EDA2193F5F88@iotecdigital.com> References: <8C8FFF0E-BA3C-45EA-9B96-3E50E7E74530@hindu.org> <5ecc92f3-be22-aa2c-537c-ffda6ee943ba@tweedly.net> <661E9C99-B24E-4352-AC2D-EDA2193F5F88@iotecdigital.com> Message-ID: Yeah, that seems like it might work - but it doesn't. > on mouseUp > ?? put 1 && the lockscreen &CR after msg > ?? set the lockscreen to true > ?? put 2 && the lockscreen &CR after msg > ?? wait 0 seconds with messages > ?? put 3 && the lockscreen &CR after msg > end mouseup > gives > 1 false > > 2 true > > 3 true > I guess being in an 'active' wait doesn't count as idle... Need to do the brute force loop as Craig suggested. Alex. On 31/12/2018 17:21, Bob Sneidar via use-livecode wrote: > There IS a method for unlocking all. wait 0 seconds with messages. All screen locks are cleared when the idle message is sent. > > Bob S > > From tom at makeshyft.com Mon Dec 31 19:54:52 2018 From: tom at makeshyft.com (Tom Glod) Date: Mon, 31 Dec 2018 19:54:52 -0500 Subject: Roadmap In-Reply-To: <64be1e8e-a154-2b7b-188b-075cf775122d@gmail.com> References: <64be1e8e-a154-2b7b-188b-075cf775122d@gmail.com> Message-ID: thats new...nice find! happy new year richmond & everyone On Mon, Dec 31, 2018 at 3:53 PM Richmond via use-livecode < use-livecode at lists.runrev.com> wrote: > https://livecode.com/resources/roadmap/ > > Last Updated on September 24, 2018 > > Tut, tut. > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From rmetzker at gmail.com Mon Dec 31 20:10:17 2018 From: rmetzker at gmail.com (Ron Metzker) Date: Mon, 31 Dec 2018 17:10:17 -0800 Subject: Lock and Unlock Screen (was Refactoring. etc...) In-Reply-To: References: <8C8FFF0E-BA3C-45EA-9B96-3E50E7E74530@hindu.org> <5ecc92f3-be22-aa2c-537c-ffda6ee943ba@tweedly.net> <661E9C99-B24E-4352-AC2D-EDA2193F5F88@iotecdigital.com> Message-ID: <561C719D-BF21-405A-A852-7C622578F3E4@gmail.com> Hi Alex, This is fairly long but there is no code in the explanation. I ran into this problem last year. I have a stack that monitors 3 security systems. You can switch between the system with the one stack or you can use 3 separate stacks to monitor the different systems. Here was my problem. There are 172 buttons and 171 fields on the main card which shows the status of each security alarm. The stack is 992 x 902 pixels in size. When you first connect to a security system the stack sends a message to get the security systems state. The system sends back the complete state for all the buttons and fields on the card via an xml file. Without locking and keeping the card locked until the update is complete, it took a minimum of one minute and 45 seconds to perform the update. By locking the card until the update is complete it takes less than a second. Obviously, it was because of the time that it took to set each button and each field and in between setting one of them it draws the whole card. I also found that even with the card locked it took about 15 milliseconds to set the state of a button or field even though most of the time it was what the state already was. So I simply check the state before I set it and if is the same as what I was going to set it too, I don't bother to set it. This check takes less than a millisecond. I have a routine that gets called when I want to get the entire state of the card. All it does is set a global to true and asks for the state. Every routine that is used to update the card buttons or fields checks the global and then checks the state of the lock screen. If they are the same it continues on. If they are different it sets the lock screen state to that of the global and goes on. Since I don't know when the update will be complete, I check when I enter the main routine that handles all the input from the security system, to see if there is a pending update for the card. If there is not, then I put false into the global and continue on since that means all the updates have been handled. This update would happen any time you connected to one of the security systems. This happens when you launched the stack or turn it on, if it was turned off or you switched from one security system to another or loaded a new xml file to set up the security system. All of those actions would force a status update from the security system. So I don't know if it does anyone else any good. But for my stack it was at least 145 times faster to update the main card. Best Regards, Ron > On Dec 31, 2018, at 3:27 PM, Alex Tweedly via use-livecode wrote: > > Yeah, that seems like it might work - but it doesn't. > >> on mouseUp >> put 1 && the lockscreen &CR after msg >> set the lockscreen to true >> put 2 && the lockscreen &CR after msg >> wait 0 seconds with messages >> put 3 && the lockscreen &CR after msg >> end mouseup >> > gives > >> 1 false >> >> 2 true >> >> 3 true >> > I guess being in an 'active' wait doesn't count as idle... > > Need to do the brute force loop as Craig suggested. > > Alex. > > >> On 31/12/2018 17:21, Bob Sneidar via use-livecode wrote: >> There IS a method for unlocking all. wait 0 seconds with messages. All screen locks are cleared when the idle message is sent. >> >> Bob S >> >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Mon Dec 31 20:25:27 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 31 Dec 2018 20:25:27 -0500 Subject: LiveCode 9.0.2 on Windows unable to build for Mac?!?!?!? In-Reply-To: References: Message-ID: <6d978a9d-86c7-4dfb-85b2-f3e3594d4857@Spark> Looks like the copy destination moved. ?Checking 9.0 against 9.0.2: Resources/_MacOS -> MacOS I have not checked on my Mac to see if the same change is evident. Thanks, Brian On Dec 31, 2018, 4:41 PM -0500, Paul Dupuis via use-livecode , wrote: > Running under Windows 10, with LiveCode 9.0.2 STABLE, I was just trying > to rebuild a Standalone for Window and OSX. and it fails. The symptom is > that, for all folders in the "Copy Files" tab of the Standalone > Settings, only the folders are copied/created and NOT A SINGLE FILE in > the folders is copied to the standalone! > > This works under LC901 STABLE and Window 10 for the exact same project. > > This seems a pretty serious bug from a STABLE release. > > Is it just me who develops for the Mac under Windows? Or am I the only > one using Copy Files in the Standalone Settings? Or is this issue known > and due to be fixed in 9.0.3 and I missed the post? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at appisle.net Mon Dec 31 20:53:09 2018 From: monte at appisle.net (Monte Goulding) Date: Tue, 1 Jan 2019 12:53:09 +1100 Subject: LiveCode 9.0.2 on Windows unable to build for Mac?!?!?!? In-Reply-To: <6d978a9d-86c7-4dfb-85b2-f3e3594d4857@Spark> References: <6d978a9d-86c7-4dfb-85b2-f3e3594d4857@Spark> Message-ID: > On 1 Jan 2019, at 12:25 pm, Brian Milby via use-livecode wrote: > > Looks like the copy destination moved. Checking 9.0 against 9.0.2: > Resources/_MacOS -> MacOS > > I have not checked on my Mac to see if the same change is evident. This is deliberate. The MacOS folder is only for executables. When you try and read a file in the MacOS folder the engine will look to see if it is there and if not look in Resources/_MacOS. I?m sorry I don?t know the specific version this change was made although I think it was pre 9.0. Does the standalone run as it should? If not what is the error you are seeing Paul? Cheers Monte From bogdanoff at me.com Mon Dec 31 22:37:46 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Mon, 31 Dec 2018 22:37:46 -0500 Subject: Refactoring is your friend / moving from 6.x to 9.x In-Reply-To: <001c01d4a156$75c178a0$614469e0$@net> References: <8971A25A-F836-45A0-8504-9A72BC8BC83C@derbrill.de> <79D6F4B0-ED11-4606-BBD6-13BCB41D1C80@iotecdigital.com> <168062e9658.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <001c01d4a156$75c178a0$614469e0$@net> Message-ID: Is what you mean by creating a memory database as covered in this tutorial? http://lessons.livecode.com/m/4069/l/565718-how-to-create-and-use-an-sqlite-database Peter > On Dec 31, 2018, at 5:16 PM, Ralph DiMola via use-livecode wrote: > > A SQLite memory database is the same as a SQLite file database except it's > created for just the instance that app is running. You have to create > table(s) and field(s) for those table(s). Then the app then populates the > data and queries it. SQLite memory database supports the same SQL syntax as > a file based SQLite database. When opening an SQLite database if you don't > supply a file spec then it's created in memory( I think that ":memory:" for > the file spec also works). If you supply a file spec and the db does not > exist then an empty one is created just like a memory database. Of course a > memory database is faster than a disk based database. I find that SQL > invaluable for dealing with complex data relationships. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of J. Landman Gay via use-livecode > Sent: Monday, December 31, 2018 4:32 PM > To: How to use LiveCode > Cc: J. Landman Gay > Subject: Re: Refactoring is your friend / moving from 6.x to 9.x > > I'm generally deficient when it comes to databases but curious how one > creates a memory based one. Is there a trick, and does it work with others > besides sql? > > This is probably a newbie question. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | > http://www.hyperactivesw.com On December 31, 2018 11:31:15 AM Bob Sneidar > via use-livecode wrote: > >> For multiple recursions into an array I came up with a method for >> loading an array into a memory based sql database. Subsequent queries >> take less time, depending of course on how complex they are, but you >> can do lots of cool thinks, like complex filtering / sorts, >> calculations, etc. to a cursor, then I have a function that converts a > cursor to an array. >> >> I originally used it to get the topmost, leftmost, bottommost and >> rightmost objects on a card that were visible by using min and max >> queries on a list of the objects. But of course the method can be expanded > to do almost anything. >> >> Bob S >> >> >>> On Dec 30, 2018, at 11:33 , Malte Pfaff-Brill via use-livecode >>> wrote: >>> >>> Not yet fixable for me: >>> Array operations on larger data sets still slower than they were >>> >>> Non engine related: >>> My SQL-Fu has improved a bit ;-) Quite a bit of performance to gain > there. >>> >>> Did anybody of you happen to refactor old code and if so, do you have >>> any observations you might want to share? >>> >>> Cheers, >>> >>> Malte >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode