From brahma at hindu.org Sat Apr 1 01:24:42 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 1 Apr 2017 05:24:42 +0000 Subject: Android Build Woes on Mac Message-ID: last week thinks were flow well in Mac OS X Sierra w LC 9DP5 I could plug in my Nexus 5 via USB, check for Android build in the SB settings and ti would appear in the menu as a test target and I could deploy very fast. in fact that was so much more convenient than iOS builds that I didn't even both to test on iOS since for the most part if I can get it working on Android, it always works on my iPhone 6+ But then a few days ago, nothing I can do in LC will make the phone appear in the menu. at someone' recommendation I cd's into the Android SDK folder and ran these commands Brahmanathaswami-3:platform-tools Brahmanathaswami$ ./adb kill-server * server not running * Brahmanathaswami-3:platform-tools Brahmanathaswami$ ./adb start-server * daemon not running. starting it now on port 5037 * * daemon started successfully * Brahmanathaswami-3:platform-tools Brahmanathaswami$ ./adb devices List of devices attached 06d7a4fd439cf2c5 device so apparently, my Mac and the Android SDK see the device. But Livecode doesn't Think perhaps this is just a new LC IDE quirk I went ahead and tried to build to disk.. LC tries but fails to build the Android Standalone saying "There was an error while saving the standalone applications could not compile application class." "OK" Any clues what is wrong? I don't think I changed anything mission critical since it was working last week.I'm targetting 4.1 - Jelly Bean From merakosp at gmail.com Sat Apr 1 02:06:51 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Sat, 1 Apr 2017 07:06:51 +0100 Subject: Android Build Woes on Mac In-Reply-To: References: Message-ID: Hi Brahmanathaswami, This probably means that LC does not find the android SDK. Go to LC Preferences -> Mobile Support and make sure the path to android SDK is set and valid. Best Panos On 1 Apr 2017 06:25, "Sannyasin Brahmanathaswami via use-livecode" < use-livecode at lists.runrev.com> wrote: last week thinks were flow well in Mac OS X Sierra w LC 9DP5 I could plug in my Nexus 5 via USB, check for Android build in the SB settings and ti would appear in the menu as a test target and I could deploy very fast. in fact that was so much more convenient than iOS builds that I didn't even both to test on iOS since for the most part if I can get it working on Android, it always works on my iPhone 6+ But then a few days ago, nothing I can do in LC will make the phone appear in the menu. at someone' recommendation I cd's into the Android SDK folder and ran these commands Brahmanathaswami-3:platform-tools Brahmanathaswami$ ./adb kill-server * server not running * Brahmanathaswami-3:platform-tools Brahmanathaswami$ ./adb start-server * daemon not running. starting it now on port 5037 * * daemon started successfully * Brahmanathaswami-3:platform-tools Brahmanathaswami$ ./adb devices List of devices attached 06d7a4fd439cf2c5 device so apparently, my Mac and the Android SDK see the device. But Livecode doesn't Think perhaps this is just a new LC IDE quirk I went ahead and tried to build to disk.. LC tries but fails to build the Android Standalone saying "There was an error while saving the standalone applications could not compile application class." "OK" Any clues what is wrong? I don't think I changed anything mission critical since it was working last week.I'm targetting 4.1 - Jelly Bean _______________________________________________ use-livecode mailing list use-livecode at 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 Apr 1 10:54:01 2017 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 1 Apr 2017 15:54:01 +0100 Subject: Line numbers for soft-wrapped styled text? In-Reply-To: References: Message-ID: <20737c46-a670-a6da-3e88-bd051f1b371d@tweedly.net> Conclusion : I give up :-) We have three 'completed' approaches to the line numbering problem: 1. Jim Lambert's use of decimal-numbered-list style within the field (has the limitation of not allowing the user's text to include list styles, and some aesthetic constraints - but if you can live with those, IMHO it's by far the best solution) 2. Jim's earlier version using a separate text field with only the line numbers available. (Still has some aesthetic constraints, and noticeably slower than (1) above) 3. My styled text-based version using space-below in a separate field (works, no restrictions afaik, but *barely* fast enough for general use - and certainly too slow for many uses). And then we have another, not yet complete, solution - use Hermann's script to find the limits on the line numbers which are visible, and then something lik emy 'spacebelow' to set just those lines - so it has the potential to be fast enough. I set out to optimise the 'visibleLineNumber' function, and succeeded in getting it down to approx 20% of the original version, by: - reduce from 2 to 1 height calculations per iteration - convert from recursive to iterative - use Newton-Raphson style linear interpolation, with tweaks to avoid the pathological end cases - optimise the start values for finding the last visible line based on the effective field height and min allowed text size I was just feeling good about that, and getting ready to start on the second half - displaying the line numbers for only those visible lines - when I got this email from Hermann re. the bug in formattedRect, and the need to use formattedHeight of chunk instead. formattedHeight of line N to M of fld F has its own problems - it misses out the space needed for the last line if that line happens to be empty, and ignores spacebelow - but that can be easily avoided > function getAccurateFormattedHeight pFld, N, M > > put the formattedheight of line N to M of fld pFld into h > > if line M of fld pFld is empty then add the formattedheight of line > M of fld pFld to h > > add the spacebelow of line M of fld pFld to h > > return h > > end getAccurateFormattedHeight > Then I started testing on "hard" fields - and only then did I discover the real problem - formattedHeight of a chunk is just too slow. It takes 50-100 msecs to get such a chunk from a large-ish field (30K lines, heavily styled, from the dictionary); so even though the number of iterations was down to between 7 and 12, that still represents over a second of elapsed time - which is just too long to be feasible. And now that I have created this test case, it shows that solution no. 3 above is also too slow. So, I give up :-) -- Alex. On 29/03/2017 11:48, hh via use-livecode wrote: > Alex, > before you waste valuable time: > The formattedRect can NOT be used in LC 7/8/9, because of the > (2^15 div 2)-limit for coordinates is active for that. > > So the algorithm works in LC 6.7.11, but the results are sadly > 'extremely' wrong in LC 7/8/9: > Crossing the 'limit' with a vertical coordinate jumps to negative > values for these coordinates. No chance to repair. > > Using instead the formattedHeight of line 1 to N minus the > vscroll works. But it is not exactly doable if the last line is > empty (this is not added to the formattedHeight) = your space-below > problem -- a bug, TMHO. > > I found another "dirty" but fast way to get pixel-exact line > positions for any field in LC 6/7/8/9. One could perhaps use it > until the text measuring problem is solved. > > One needs a field that is transparent, is not threeD and has no > border (use instead an opaque rectangle with border as background). > Then set the hgrid to true (this has no visual effect if using as > borderColor the backColor of the graphic behind the field, for > testing I set the borderColor to red). > Now make a snapshot from the field and walk through the maskData > to search all such rows in the image that have a fully opaque > line. This is unique as long as the field has left and right > margins > 0. > This search in the image is *very fast* (< 2 ms), only taking the > snapshot and getting the maskdata needs some time (around 70 ms in > sum for 414x736 pixels). > > A script that works here correctly with my tests is attached below. > It needs here in LC 9 about 120 ms for 4000 lines of heavily styled > text from the dictionary in a field of iPhone6 size (414x736). > Please change/improve/optimize it, especially the search part. This > is still the 'simple' binary search. > > Hermann > > You need a field "TEXT" (transparent etc, see above) and a > template-num-field "n00" (see my settings below as example). > Fields for feedback: "Range", "timing1", "timing2", "info" > ===== [1] The field's script > on textchanged > updateNbs2 > end textchanged > > on scrollbardrag > updateNbs2 > end scrollbardrag > ===== [2] The numbering script (100 lines) > local nn="lineNumbers",l0,t0,b0,w0,h0,sw0,v0 > local rg="TEXT", fw=32 -- num-field width > > on updateNbs2 > lock screen; lock messages > put the millisecs into m0 ---- start > put the top of fld rg into t0 > put the bottom of fld rg into b0 > put the left of fld rg into l0 > put the width of fld rg into w0 > put the height of fld rg into h0 > put the vscroll of fld rg into v0 > put the scrollbarwidth of fld rg into sw0 > set the properties of the templatefield to \ > the properties of fld "n00" -- see below > if there is a grp nn then delete grp nn > create grp nn > set lockloc of grp nn to true > set opaque of grp nn to true > set backColor of grp nn to "204,204,204" > set lockloc of grp nn to true > set width of grp nn to fw > set height of grp nn to the height of fld "text" > set topleft of grp nn to l0-fw, t0 > set layer of grp nn to 1 > put the millisecs into m1 ---- diff1 > put visibleTextLines()-1 into tL > put the millisecs into m2 ---- diff2 > put getLocs() into g > put the millisecs into m3 ---- diff3 > put "Lines: " & (tL,tL-1+the num of lines of g) \ > into fld "range" > repeat for each line L in g > put item 2 of L into i > put ("n"&i) into ni > if there is a fld ni then delete fld ni > create fld ni in grp nn > set left of fld ni to l0-fw+2 > set top of fld ni to i-10 > put tL into fld ni > add 1 to tL > end repeat > reset the templatefield > put the millisecs into m4 ---- diff4 > put (m4-m0 &"="& m2-m1 &"+"& m3-m2 &"+"& m4-m3+m1-m0) & \ > " ms" into fld "timing" > unlock screen; unlock messages > end updateNbs2 > > function getLocs > put the millisecs into m0 --------------------- start > set topleft of img rg to \ > (5+the right of fld rg, the top of fld rg) > put w0-sw0 into w1 > put the millisecs into m1 --------------------- diff1 > export snapshot from fld rg to img rg as PNG > put the millisecs into m2 --------------------- diff2 > put the maskdata of img rg into mData > put the millisecs into m3 --------------------- diff3 > put NumToByte(255) into c1 > repeat 1+log2(w1) > put c1 after c1 > end repeat > put byte 1 to w1 of c1 into c00 > put the millisecs into m4 --------------------- diff4 > repeat with i=1 to h0 > put (i-1)*w0 into i0 > if byte i0+1 to i0+w1 of mData is c00 > then put cr&(0,t0+i) after s > end repeat > -- avoid overlapping: > -- put (0,min(t0,10+item 2 of line 1 of s)) before s > put cr & (0,max(h0+t0,10+item 2 of line -1 of s)) after s > put s into fld "info" > put the millisecs into m5 --------------------- diff5 > put (m5-m0 &"="& m2-m1 &"+"& m3-m2 &"+"& m5-m3+m1-m0) & \ > " ms" into fld "timing2" > return char 2 to -1 of s > end getLocs > > function visibleTextLines > lock screen; lock messages > put the selectedChunk into sc > put the scrollbarWidth of fld rg into sw > put the margins of fld rg into m > put (m,m,m,m) into m -- now we have at least 4 items > put the num of lines of fld rg into n > put findTopLine(v0+t0-1+item 4 of m,1,n) into L1 > return L1-1 > end visibleTextLines > > function findTopLine x,n1,n -- x=top pixel, n1=start, n=max > put n1+((n-n1) div 2) into m > if (the formattedHeight of line 1 to (m+1) of fld rg) >= x then > if (the formattedHeight of line 1 to m of fld rg) < x then > return m+1 > else > if m <= n1 then return n1 > else return findTopLine(x,n1,m-1) > end if > else > if m >= n then return n > else return findTopLine(x,m+1,n) > end if > end findTopLine > > ===== [3] This may be used for the "template"-num-fld "n00" > -- set locktext of fld "n00" to true > -- set dontwrap of fld "n00" to true > -- set traversalOn of fld "n00" to false > -- set height of fld "n00" to 12 > -- set width of fld "n00" to fw > -- set margins of fld "n00" to 4 > -- set textalign of fld "n00" to "right" > -- set opaque of fld "n00" to false > -- set threed of fld "n00" to false > -- set showborder of fld "n00" to false > -- set textsize of fld "n00" to 10 > -- set foreColor of fld "n00" to "0,0,255" > =====END_OF_SCRIPT > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Sat Apr 1 11:15:45 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 1 Apr 2017 15:15:45 +0000 Subject: Android Build Woes on Mac In-Reply-To: References: Message-ID: <72C8EBB9-2748-4E9B-B21A-692420BDE8EE@hindu.org> "Oh duh?" you were right? I had deleted my settings in an attempt to see if some corruption there was causing other issues. For some reason LC finds the xCode mobile without going back to the preferences, but not the Android SDK. Now working again, thanks I have it installed in a non-standard location /Documents/app-development/android-sdk-macosx is there a better location that LC will find by default if we delete settings? or does one always need to go back to preferences? Panos: Hi Brahmanathaswami, This probably means that LC does not find the android SDK. Go to LC Preferences -> Mobile Support and make sure the path to android SDK is set and valid. Best Panos ----------- BR wrote: last week things were flowing well in Mac OS X Sierra w LC 9DP5 I could plug in my Nexus 5 via USB, check for Android build in the SB settings and ti would appear in the menu as a test target and I could deploy very fast. From brahma at hindu.org Sat Apr 1 11:39:20 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 1 Apr 2017 15:39:20 +0000 Subject: Debugging Session Called on Android Build But Not Set Message-ID: --I have unchecked the remoteDebugger in the Standalone builder inclusions list --There are no break point in any stacks --Script debug mode is unchecked in the IDE menus Why does LC prompt me if I want to run remote debugging when I test to Android? LC9dp5 BR From brahma at hindu.org Sat Apr 1 12:26:28 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 1 Apr 2017 16:26:28 +0000 Subject: Open Stacks / Stacks in Use All Stack Files Appear in Project Browser as open Message-ID: <3753F7E4-277F-4265-8A9F-936A8A1146D3@hindu.org> Well, I got my Android test deployment working again, but the app completely dies on the phone now and even if I set a break point on the preopencard of the init script, it will not fire in the debugger. I note something peculiar: If I open myApp.livecode stack: which has stack files set and is the stack we build the standalone from? we have a json file that is read on init that specifics with stacks should be put into use on initialization. But, and this is the odd thing: after running a build, I go back to the Project Browser or revApplicationOverview and, now, I see *all* the stacks that are listed in the stack files of the mainstack all appear in the list. My assumption has always been: if stacks appear in the Project Browser or revApplicationOver view, they must be open. But, from the msg box: put stacksinuse() but the message box is now beeping at me? I cannot back space and I cannot even enter put the stacksinuse if I quit LC and reopen myApp.livecode then I can use "put thestacksinuse" and see the list as expected? project browser also only show those stacks open. Run the standalone builder? in the msg box "put the stacksinuse && the openstacks" and I only see myApp.livecode and a few rev stacks but in the project browser *all* the stacks in my app listed in the stack files appear. I worry that the reason the android standalone if failing is because the SA build is in fact cause all those stacks to be loaded on the phone (Nexus 5)? all open and in RAM? and, of course it will die because it simply overruns the entire memory What is going on? From hh at hyperhh.de Sat Apr 1 12:42:01 2017 From: hh at hyperhh.de (hh) Date: Sat, 1 Apr 2017 18:42:01 +0200 Subject: Line numbers for soft-wrapped styled text? Message-ID: <40E44D49-D655-475E-B930-20992944BF24@hyperhh.de> > Alex T. wrote: > I set out to optimise the 'visibleLineNumber' function, and succeeded > in getting it down to approx 20% of the original version, by: > - reduce from 2 to 1 height calculations per iteration > - convert from recursive to iterative > - use Newton-Raphson style linear interpolation, with tweaks to avoid > the pathological end cases > - optimise the start values for finding the last visible line based on > the effective field height and min allowed text size Alex, please think about posting this. It is certainly valuable for other use cases. Hermann (This post is NOT an April 1 - joke) From ahsoftware at sonic.net Sat Apr 1 12:55:32 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 1 Apr 2017 09:55:32 -0700 Subject: Line numbers for soft-wrapped styled text? In-Reply-To: <40E44D49-D655-475E-B930-20992944BF24@hyperhh.de> References: <40E44D49-D655-475E-B930-20992944BF24@hyperhh.de> Message-ID: <9fd2cd2e-79d4-e5e8-4341-036c59da68a2@sonic.net> On 04/01/2017 09:42 AM, hh via use-livecode wrote: > Alex, > please think about posting this. It is certainly valuable for other use > cases. Agreed, even though I can't use it for my particular case. (I implemented the brilliant idea of listStyle line numbering in a test version of the glx2 script editor yesterday, and it worked for all my test cases *except* for code folding, where both the line numbering and breakpoint positioning failed. And since I already have a workingline numbering system in a separate field, I decided to stick with it at the expense of line wrapping. For me, code folding is a must-have, and line wrapping is a can-do-without.) -- Mark Wieder ahsoftware at gmail.com From dan at clearvisiontech.com Sat Apr 1 15:16:39 2017 From: dan at clearvisiontech.com (Dan Friedman) Date: Sat, 1 Apr 2017 19:16:39 +0000 Subject: within and scaleFactor Message-ID: <0A1CBF86-6767-4DE1-B450-55B77F8758C3@clearvisiontech.com> I call this a bug, would you? If the scaleFactor of stack ?myStack? is set to 2, then within(stack ?myStack?,the screenMouseLoc) only returns true if the mouse is within the rect of stack ?myStack? when it?s scaleFactor is set to 1. Hope I explained that logically. Mac 10.12.2, LC 9.0.0 dp 6. Worked correctly in LC 7. -Dan From richmondmathewson at gmail.com Sat Apr 1 15:36:07 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 1 Apr 2017 22:36:07 +0300 Subject: Unicode Reference stack In-Reply-To: <63d807b5-d70c-d35b-6d1c-f4dfc17370a5@gmail.com> References: <63d807b5-d70c-d35b-6d1c-f4dfc17370a5@gmail.com> Message-ID: <6ec715bd-8807-ed75-6b81-8ca21f0f9a9d@gmail.com> Things just got better! On 3/31/17 10:11 pm, Richmond Mathewson wrote: > Here: http://forums.livecode.com/viewtopic.php?f=26&t=29069 > > Richmond. From richmondmathewson at gmail.com Sat Apr 1 18:07:41 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 2 Apr 2017 01:07:41 +0300 Subject: Cheesed off by 32xxx Message-ID: <4bdf3c90-8714-351a-925d-e8e8c1986f1b@gmail.com> What a nuisance: There I was, merrily churning through the button titles for my Unicode Reference thing [ http://forums.livecode.com/viewtopic.php?f=26&t=29069 ] which needed at least 1600 buttons that were 23 pixels deep layered underneath each other. What happens? At the "Magic Number" of 32xxx I get a "this is not a number" message. As a result I ended up restricted to 1400 buttons. This is very bad as the Unicode glyph tables are many, and in an ideal world I'd like 8703 buttons. But 8703 * 23 = 200169 That would involve groupig a "stack" of buttons that was 200169 pixels high. Would be grateful if anyone knows a way to circumvent the limitation. Richmond. From alex at tweedly.net Sat Apr 1 18:54:24 2017 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 1 Apr 2017 23:54:24 +0100 Subject: Cheesed off by 32xxx In-Reply-To: <4bdf3c90-8714-351a-925d-e8e8c1986f1b@gmail.com> References: <4bdf3c90-8714-351a-925d-e8e8c1986f1b@gmail.com> Message-ID: I'd create maybe 200 buttons, and change their labels, positions and meanings whenever the vscroll of the menu changes. Something (very vaguely) like > on scrollHasChanged > > put the vScroll of grp "sectionMenu" into temp > > put temp div 23 into startLine > > repeat with i = 1 to 200 > > put format("B%03i", i) into tName > > set the top of button tName to startLine + 23*i > > set the label of button tName to line startLine + i of gAllMyLabels > > .... > > end repeat > > end scrollHasChanged > -- Alex On 01/04/2017 23:07, Richmond Mathewson via use-livecode wrote: > What a nuisance: > > There I was, merrily churning through the button titles for my Unicode > Reference thing > [ http://forums.livecode.com/viewtopic.php?f=26&t=29069 ] which needed > at least 1600 buttons > that were 23 pixels deep layered underneath each other. > > What happens? > > At the "Magic Number" of 32xxx I get a "this is not a number" message. > > As a result I ended up restricted to 1400 buttons. > > This is very bad as the Unicode glyph tables are many, and in an ideal > world > I'd like 8703 buttons. But 8703 * 23 = 200169 > > That would involve groupig a "stack" of buttons that was 200169 pixels > high. > > Would be grateful if anyone knows a way to circumvent the limitation. > > 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 scott at tactilemedia.com Sat Apr 1 18:59:02 2017 From: scott at tactilemedia.com (Scott Rossi) Date: Sat, 1 Apr 2017 15:59:02 -0700 Subject: Cheesed off by 32xxx In-Reply-To: <4bdf3c90-8714-351a-925d-e8e8c1986f1b@gmail.com> References: <4bdf3c90-8714-351a-925d-e8e8c1986f1b@gmail.com> Message-ID: <890ABDDB-91C5-43CB-BFFF-40F0F2E3FE75@tactilemedia.com> Without knowing exactly what you're trying to accomplish, one way is to display only a few rows of buttons beyond what will fit comfortably on a screen, and when scrolling takes place, "recycle" the rows around to the end (or beginning) with new glyphs applied. Assuming all the characters are from a single font and you're trying to display glyphs in an organized fashion, a better way might be to display all the glyphs in a field with extra column and row spacing to essentially form a grid. This is how I display glyphs from icon fonts, which is more efficient than using thousands of controls on a card. Regards, Scott Rossi Creative Director Tactile Media UX/UI Design > On Apr 1, 2017, at 3:07 PM, Richmond Mathewson via use-livecode wrote: > > What a nuisance: > > There I was, merrily churning through the button titles for my Unicode Reference thing > [ http://forums.livecode.com/viewtopic.php?f=26&t=29069 ] which needed at least 1600 buttons > that were 23 pixels deep layered underneath each other. > > What happens? > > At the "Magic Number" of 32xxx I get a "this is not a number" message. > > As a result I ended up restricted to 1400 buttons. > > This is very bad as the Unicode glyph tables are many, and in an ideal world > I'd like 8703 buttons. But 8703 * 23 = 200169 > > That would involve groupig a "stack" of buttons that was 200169 pixels high. > > Would be grateful if anyone knows a way to circumvent the limitation. > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Sat Apr 1 20:54:01 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 1 Apr 2017 17:54:01 -0700 Subject: tsNet docs? Message-ID: <1c9da5d1-7698-7239-a506-9f9338853463@fourthworld.com> I finally got around to playing with tsNet, but I can't find docs, just sparse Dict entries. I'd like to test uploading a file via SFTP and also FTPS, synchronous preferred in this case. After hunting around via Google I manage to turn up this stack from a blog post: But when I run a modified version of the "SFTP Upload example" button I get an error complaining about it being unlicensed. I'm using Indy, and I believe synchonrous upload vis SFTP is supported with Indy, no? Anyone here have a concise example of synchronous uploading via tsNet? -- 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 Sat Apr 1 21:30:29 2017 From: harrison at all-auctions.com (Rick Harrison) Date: Sat, 1 Apr 2017 21:30:29 -0400 Subject: Transparent Images in LC In-Reply-To: <50edcd17-5706-e55b-2b86-da1cccaa6c9c@researchware.com> References: <68725927-368d-b2c6-aeb1-d7ae2ed03fae@researchware.com> <50edcd17-5706-e55b-2b86-da1cccaa6c9c@researchware.com> Message-ID: <62C589CB-D759-40AD-94CB-1AA7817D96E0@all-auctions.com> Hi Paul, I just took one of my old transparent .png images that I used to use a couple of years ago and imported it as a control into an LC 8.1.3 stack. It worked just fine. I think I might have created it with ?Graphic Converter? for Mac. If you put one of your images into a ?DropBox? account with a link for me I could take a look at it for you, and see if I can find anything wrong with it. Rick > On Mar 31, 2017, at 9:46 AM, Paul Dupuis via use-livecode wrote: > > NOTE: I am using LC 6.7.11 for an update to a legacy app. > > I was trying to import (as a control) a transparent PNG (i.e. the > "white" parts allow whatever is underneath to show through) and instead > of transparancy, I get the slashed background lines transparent PNG are > often displayed with. Thinking it might be the PNG itself, I have our > graphics person create a PNG that was transparent and shows up as > transparent in other app, it still was not importing with the > transparent parts transparent in LC. > > Ultimately, I took the same image with the "transparent" parts as actual > white and used the code below to create a transparency mask > > command makeMask pObj > -- pObjs is a reference to an Image object > local tMaskData -- set to 0 [tranparent] for each byte in imageData > that is white > get the imageData of pObj -- 4 bytes, 0,r,g,b white = 255, black = 0 > put the number of bytes in it into X > repeat with i=1 to X step 4 > if i > X then exit repeat > put byte (i+1) of it into r > put byte (i+2) of it into g > put byte (i+3) of it into b > put byteToNum(r) into rV > put byteToNum(g) into gV > put byteToNum(b) into bV > if rV=255 and gV=255 and bV=255 then > put numToByte(0) after tMaskData > else > put numToByte(1) after tMaskData > end if > end repeat > set the maskData of pObj to tMaskData > end makeMask > > Am I missing something? Is there a way to actually import an image with > its transparency or is the only way via script control and scripting is > the only way has anyone make a plugin tool to do this and if you have > could you contribute the tool to the community edition and commercial > versions so a tool to import transparent images becomes part of the main > LiveCode distribution? > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From charles at techstrategies.com.au Sun Apr 2 03:01:09 2017 From: charles at techstrategies.com.au (Charles Warwick) Date: Sun, 2 Apr 2017 17:01:09 +1000 Subject: tsNet docs? In-Reply-To: <1c9da5d1-7698-7239-a506-9f9338853463@fourthworld.com> References: <1c9da5d1-7698-7239-a506-9f9338853463@fourthworld.com> Message-ID: Hi Richard, Firstly my apologies on the lack of documentation, it is definitely on my todo list and I am working on some Livecode lessons for tsNet at the moment. I have just double checked that stack and noticed that the call to tsNetUploadSync is using the wrong syntax (it changed at one point) which could be causing you issues. An updated version is now available at that same URL with the corrected the syntax for that call and another button so that there are now examples for both uploading via SFTP and FTPS. These should work correctly on Indy and I have confirmed that here. Are you by any chance trying to use the tsNetUploadFileSync command instead of tsNetUploadSync? If so, these are only supported in the business edition if you are trying to use SFTP. Regards, Charles On 2/04/2017 10:54 AM, Richard Gaskin via use-livecode wrote: > I finally got around to playing with tsNet, but I can't find docs, > just sparse Dict entries. > > I'd like to test uploading a file via SFTP and also FTPS, synchronous > preferred in this case. > > After hunting around via Google I manage to turn up this stack from a > blog post: > > > > But when I run a modified version of the "SFTP Upload example" button > I get an error complaining about it being unlicensed. > > I'm using Indy, and I believe synchonrous upload vis SFTP is supported > with Indy, no? > > Anyone here have a concise example of synchronous uploading via tsNet? > From richmondmathewson at gmail.com Sun Apr 2 03:14:41 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 2 Apr 2017 10:14:41 +0300 Subject: Cheesed off by 32xxx In-Reply-To: <890ABDDB-91C5-43CB-BFFF-40F0F2E3FE75@tactilemedia.com> References: <4bdf3c90-8714-351a-925d-e8e8c1986f1b@gmail.com> <890ABDDB-91C5-43CB-BFFF-40F0F2E3FE75@tactilemedia.com> Message-ID: <9f77764c-2fd6-e42d-4759-d3d636fc52e9@gmail.com> One of the ways about knowing what I'm trying to accomplish is to download the stack and have a look at it. Richmond. On 4/2/17 1:59 am, Scott Rossi via use-livecode wrote: > Without knowing exactly what you're trying to accomplish, one way is to display only a few rows of buttons beyond what will fit comfortably on a screen, and when scrolling takes place, "recycle" the rows around to the end (or beginning) with new glyphs applied. > > Assuming all the characters are from a single font and you're trying to display glyphs in an organized fashion, a better way might be to display all the glyphs in a field with extra column and row spacing to essentially form a grid. This is how I display glyphs from icon fonts, which is more efficient than using thousands of controls on a card. > > Regards, > > Scott Rossi > Creative Director > Tactile Media UX/UI Design > >> On Apr 1, 2017, at 3:07 PM, Richmond Mathewson via use-livecode wrote: >> >> What a nuisance: >> >> There I was, merrily churning through the button titles for my Unicode Reference thing >> [ http://forums.livecode.com/viewtopic.php?f=26&t=29069 ] which needed at least 1600 buttons >> that were 23 pixels deep layered underneath each other. >> >> What happens? >> >> At the "Magic Number" of 32xxx I get a "this is not a number" message. >> >> As a result I ended up restricted to 1400 buttons. >> >> This is very bad as the Unicode glyph tables are many, and in an ideal world >> I'd like 8703 buttons. But 8703 * 23 = 200169 >> >> That would involve groupig a "stack" of buttons that was 200169 pixels high. >> >> Would be grateful if anyone knows a way to circumvent the limitation. >> >> 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 merakosp at gmail.com Sun Apr 2 03:53:54 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Sun, 2 Apr 2017 08:53:54 +0100 Subject: Cheesed off by 32xxx In-Reply-To: <9f77764c-2fd6-e42d-4759-d3d636fc52e9@gmail.com> References: <4bdf3c90-8714-351a-925d-e8e8c1986f1b@gmail.com> <890ABDDB-91C5-43CB-BFFF-40F0F2E3FE75@tactilemedia.com> <9f77764c-2fd6-e42d-4759-d3d636fc52e9@gmail.com> Message-ID: Hi Richmond, I think what you are trying to achieve is described in this report: http://quality.livecode.com/show_bug.cgi?id=18704 As suggested, it is probably better to use a DataGrid in this case. Best, Panos -- On Sun, Apr 2, 2017 at 8:14 AM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > One of the ways about knowing what I'm trying to accomplish is to download > the stack and have a look at it. > > Richmond. > > > On 4/2/17 1:59 am, Scott Rossi via use-livecode wrote: > >> Without knowing exactly what you're trying to accomplish, one way is to >> display only a few rows of buttons beyond what will fit comfortably on a >> screen, and when scrolling takes place, "recycle" the rows around to the >> end (or beginning) with new glyphs applied. >> >> Assuming all the characters are from a single font and you're trying to >> display glyphs in an organized fashion, a better way might be to display >> all the glyphs in a field with extra column and row spacing to essentially >> form a grid. This is how I display glyphs from icon fonts, which is more >> efficient than using thousands of controls on a card. >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media UX/UI Design >> >> On Apr 1, 2017, at 3:07 PM, Richmond Mathewson via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>> What a nuisance: >>> >>> There I was, merrily churning through the button titles for my Unicode >>> Reference thing >>> [ http://forums.livecode.com/viewtopic.php?f=26&t=29069 ] which needed >>> at least 1600 buttons >>> that were 23 pixels deep layered underneath each other. >>> >>> What happens? >>> >>> At the "Magic Number" of 32xxx I get a "this is not a number" message. >>> >>> As a result I ended up restricted to 1400 buttons. >>> >>> This is very bad as the Unicode glyph tables are many, and in an ideal >>> world >>> I'd like 8703 buttons. But 8703 * 23 = 200169 >>> >>> That would involve groupig a "stack" of buttons that was 200169 pixels >>> high. >>> >>> Would be grateful if anyone knows a way to circumvent the limitation. >>> >>> Richmond. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From roger.e.eller at sealedair.com Sun Apr 2 06:29:04 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Sun, 2 Apr 2017 06:29:04 -0400 Subject: within and scaleFactor In-Reply-To: <0A1CBF86-6767-4DE1-B450-55B77F8758C3@clearvisiontech.com> References: <0A1CBF86-6767-4DE1-B450-55B77F8758C3@clearvisiontech.com> Message-ID: Also the content of option menus remain at 1X scale even though everything else has increased in size. #thatsabug ~Roger On Apr 1, 2017 3:17 PM, "Dan Friedman via use-livecode" < use-livecode at lists.runrev.com> wrote: > I call this a bug, would you? > > If the scaleFactor of stack ?myStack? is set to 2, then within(stack > ?myStack?,the screenMouseLoc) only returns true if the mouse is within the > rect of stack ?myStack? when it?s scaleFactor is set to 1. Hope I > explained that logically. > > Mac 10.12.2, LC 9.0.0 dp 6. Worked correctly in LC 7. > > -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 lan.kc.macmail at gmail.com Sun Apr 2 07:09:35 2017 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sun, 2 Apr 2017 21:09:35 +1000 Subject: codePointToNum In-Reply-To: <8916c1fc-9bf4-0f2e-cd97-1c4a3bdd24a2@gmail.com> References: <1e89e059-68bc-1915-9cd5-e05a8d01c118@gmail.com> <8916c1fc-9bf4-0f2e-cd97-1c4a3bdd24a2@gmail.com> Message-ID: On Sat, Apr 1, 2017 at 4:11 AM, Richmond Mathewson via use-livecode wrote: > put baseConvert(codePointToNum("&"), 10, 16) > > BUT it go "all stuffy" about the codePointToum, so I did this: > > put codePointToNum("&") into NUMM > put baseConvert(NUMM, 10, 16) > On my Mac 10.11.6 using LC 9.0.0 dp4 both of those code snippets produce '26' in an egalitarian manner. There should be no reason why: put baseConvert(codePointToNum("&"), 10, 16) should make your computer "all stuffy". If it is then there is a bug to report. From alex at tweedly.net Sun Apr 2 09:49:10 2017 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 2 Apr 2017 14:49:10 +0100 Subject: Line numbers for soft-wrapped styled text? In-Reply-To: <40E44D49-D655-475E-B930-20992944BF24@hyperhh.de> References: <40E44D49-D655-475E-B930-20992944BF24@hyperhh.de> Message-ID: Sure, here it is. I couldn't resist doing some simple benchmarks, just to verify my intuition. Very glad I did. OK - here's the theory : we're using variations of binary search to find the lowest numbered line that is visible, and then again to find the highest numbered line. So at each stage we have an interval within which the right answer must lie. 1. Simple binary search : the next guess is the middle of the current interval. This is simple, and very consistent for the number of guesses needed: the worst case is almost identical to the average/typical. For my test case (25000 lines of heavily styled text), we need approx 14 guesses for the first calculaiton, and 8 for the second. 2. Simple Newton-Raphson (linear interpolation). This is usually better than simple binary, *if* there is a reasonable correlation between the measurable values and the guessable values. In this case there - the height of any chunk of lines is reasonably correlated to the number of lines, though not exactly in all cases. Usually this will take significantly fewer guesses (and in this case it takes around 8 + 4 compared to the 14+8 above). BUT - the worst case can be much, much worse :-( Imagine a field with 1000 lines - the first 500 are in 5-point text, and the other 500 are in 1000 point text, scrolled forward by 400 lines; this makes our guessing VERY poor, and will take up to 200 or more guesses. 3. Use a mix of linear interpolation and binary search. I tried simply alternating them - one calculated guess, then one 'average' guess, then another calculated one, .... This should significantly limit the worst case - but makes the average somewhat worse. 4. Use linear interpolation - but disallow very small (or very large) estimates. This again limits the worst case (not quite so well), and makes the average only slightly worse. I tried each of these strategies on a range of scroll positions in my test case field. Results were (1) Binary 6283 (2) N-R 3757 (3) N-R/binary 4200 (4) N-R limited 3782 So - the script below does (4) above - linear interpolation, with the very small or very large percentage guesses disallowed. But, I've left in the code (commented out) to also do alternating binary guesses, so it can be easily used if your use case is very sensitive to extreme examples. Note - this only uses the accurate height of a chunk function once it has almost determined its answer - up until then, it only needs approximate results to make the next guess, so no need for the extra work of doing the pixel-accurate calculation. function visibleTextLines pT local vs, sw, m, t, b, L1, L2 local t1, t2, t3 -- timing lock screen; lock messages put the vscroll of fld pT into vs put the scrollbarWidth of fld pT into sw put the margins of fld pT into m put (m,m,m,m) into m -- now we have always at least 4 items -- value of pixel within the field where top line will be put (item 2 of m) + vs into t -- value of pixel within the field where bottom line will be put - (item 4 of m) + vs + the effective height of fld pT into b if the hscrollbar of fld pT then subtract sw from b put the millisecs into t1 -- timing put findTopLine(pT, t-5) into L1 put the millisecs into t2 -- timing put findBottomLine(pT, b+5, L1) into L2 put the millisecs into t3 -- timing -- put "times" && t2-t1 && t3-t2 &CR after fld "Flog" -- timing return (L1,L2) end visibleTextLines function findTopLine pFName, pPixel -- for fld 'pFName', find the lowest numbered line which will be at or beyond pPixel local tBelow, tAbove, tGuess, tTotal local tTarget put 1 into tBelow put 0 into tHBelow put the number of lines in fld pFName into tAbove put the formattedheight of fld pFName into tHAbove put pPixel into tTarget -- we need to find the first line whose formattedheight is >= tTarget local tD, tIteration repeat with tIteration = 1 to 1000 if tAbove = tBelow+1 then exit repeat -- if tIteration mod 2 = 0 then -- alternate between lienar interpolation and simple binary halving -- put 0.5 into tD -- else put (tTarget-tHBelow) / (tHAbove-tHBelow) into tD -- end if -- limit very small or large [percentages if td < 0.05 then put 0.05 into tD if td > 0.95 then put 0.95 into tD put tBelow + trunc( (tAbove-tBelow) * tD) into tGuess if tGuess = tBelow then add 1 to tGuess -- put tGuess && tBelow && tAbove &CR after fld "Flog" put the formattedheight of line 1 to tGuess of fld pFName into tt -- NB may be inaccurate !! if tt > tTarget then put tGuess into tAbove put tt into tHAbove else put tGuess into tBelow put tt into tHBelow end if end repeat -- now deal with the possible inaccuracy repeat 2 times -- should be no more than 1 !? if tBelow = 1 then exit repeat if getaccurateheight(1, tBelow-1, pFName) >= tTarget then -- put "NEEDED TO SUBTRACT" && tBelow & CR after fld "Flog" subtract 1 from tBelow else exit repeat end if end repeat return tBelow end findTopLine function findBottomLine pFName, pPixel, pBelow -- for fld pFName, find highest numbered line before pPixel -- pBelow is the known lower bound local tBelow, tAbove, tGuess, tTotal local tTarget put pBelow-1 into tBelow put the formattedheight of line 1 to tBelow of fld pFName into tHBelow -- limit to what could possibly fit into the actual field (min text size is 5) put min(the number of lines in fld pFName, pBelow + the effective height of fld pFName div 5) into tAbove put the formattedheight of line 1 to tAbove of fld pFName into tHAbove put pPixel into tTarget -- we need to find the last line whose formattedheight is < tTarget local tD, tIteration repeat with tIteration = 1 to 1000 if tAbove = tBelow+1 then exit repeat -- if tIteration mod 2 = 0 then -- alternate between lienar interpolation and simple binary halving -- put 0.5 into tD -- else put (tTarget-tHBelow) / (tHAbove-tHBelow) into tD -- end if if td < 0.1 then put 0.1 into tD if td > 0.9 then put 0.9 into tD put tBelow + trunc( (tAbove-tBelow) * tD) into tGuess if tGuess = tBelow then add 1 to tGuess put the formattedHeight of line 1 to tGuess of fld pFName into tt if tt > tTarget then put tGuess into tAbove put tt into tHAbove else put tGuess into tBelow put tt into tHBelow end if end repeat return tBelow end findBottomLine function getAccurateHeight N, M, pFld -- return the accurate height of the chunk from N .. M of field pFld local t1, t2 put the millisecs into t1 put the formattedHeight of line N to M of fld pFld into h -- put "acc" && N && M && the millisecs-t1 &CR after fld "Flog" if line M of fld pFld is empty then -- put "getaccurate" && the millisecs &CR after fld "Flog" add the formattedheight of line M of fld pFLD to h -- put the styledText of fld pFld into tA -- put the vscroll of fld pFld into tempScroll -- put tA[N+1] into tempA -- save a copy of the following line, complete with styling -- put tA[N] into tA[N+1] -- set the styledText of fld pFld to tA -- put the formattedHeight of line 1 to N of fld pFld into h -- put tempA into tA[N+1] -- set the styledText of fld pFld to tA -- set the vscroll of fld pFld to tempScroll end if add the spacebelow of line M of fld pFld to h put the millisecs into t2 -- put "accurate" && N && M && t2-t1 &CR after fld "Flog" return h end getAccurateHeight -- Alex. On 01/04/2017 17:42, hh via use-livecode wrote: >> Alex T. wrote: >> I set out to optimise the 'visibleLineNumber' function, and succeeded >> in getting it down to approx 20% of the original version, by: >> - reduce from 2 to 1 height calculations per iteration >> - convert from recursive to iterative >> - use Newton-Raphson style linear interpolation, with tweaks to avoid >> the pathological end cases >> - optimise the start values for finding the last visible line based on >> the effective field height and min allowed text size > Alex, > please think about posting this. It is certainly valuable for other use > cases. > > Hermann > (This post is NOT an April 1 - joke) > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Apr 2 12:01:37 2017 From: curry at pair.com (Curry Kenworthy) Date: Sun, 02 Apr 2017 12:01:37 -0400 Subject: Cheesed off by 32xxx In-Reply-To: <9f77764c-2fd6-e42d-4759-d3d636fc52e9@gmail.com> References: <9f77764c-2fd6-e42d-4759-d3d636fc52e9@gmail.com> Message-ID: <58E12061.4030607@pair.com> Howdy Richmond, Wise man do many things with few buttons. Elite master use single field. That is the true path to LC enlightenment, avoiding all unnecessary sorrows in coding and interface. Having said that, you specifically asked for a way to circumvent the 32k pixel limitation for positioning. That should be possible. (And doubly worth mentioning because it could apply to other situations with fewer, but larger, controls.) If you split the 1600 controls into two groups rather than one, and add a little special code to swap them smoothly while scrolling.... Thus you would never need 8703 buttons on top of each other. However, the same is true of the 1600 or the 800. It's a fun exercise and a great test of LC's limits and performance, but a different approach will be more efficient. Very nice topic for an app, I love Unicode tables! Very handy. Best wishes, Curry K. LiveCode Training and Consulting http://livecodeconsulting.com/ From bonnmike at gmail.com Sun Apr 2 13:01:05 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 2 Apr 2017 11:01:05 -0600 Subject: Cheesed off by 32xxx In-Reply-To: <58E12061.4030607@pair.com> References: <9f77764c-2fd6-e42d-4759-d3d636fc52e9@gmail.com> <58E12061.4030607@pair.com> Message-ID: Just for fun, I did as others have said and converted the stack to use a field. Since each button used the same exact script (as far as I could tell, too many to go through individually) it was easy to modify it to use the selectedtext rather than the label of the clicked button. TO get the fonts for the list I looped through buttons looking for all that contained hex and grabbed the labels, sorted the resulting list so that it matched your original arrangement, and voila'. Had to adjust the preopencard handler to account for the changes. I missed something. If you're interested, the adjusted stack is here. https://www.dropbox.com/s/bn5ihcosxd6vj8f/CHAR%20REF.livecode?dl=0 On Sun, Apr 2, 2017 at 10:01 AM, Curry Kenworthy via use-livecode < use-livecode at lists.runrev.com> wrote: > > Howdy Richmond, > > Wise man do many things with few buttons. Elite master use single field. > That is the true path to LC enlightenment, avoiding all unnecessary sorrows > in coding and interface. > > Having said that, you specifically asked for a way to circumvent the 32k > pixel limitation for positioning. That should be possible. (And doubly > worth mentioning because it could apply to other situations with fewer, but > larger, controls.) > > If you split the 1600 controls into two groups rather than one, and add a > little special code to swap them smoothly while scrolling.... > > Thus you would never need 8703 buttons on top of each other. However, the > same is true of the 1600 or the 800. It's a fun exercise and a great test > of LC's limits and performance, but a different approach will be more > efficient. > > Very nice topic for an app, I love Unicode tables! Very handy. > > Best wishes, > > Curry K. > > LiveCode Training and Consulting > http://livecodeconsulting.com/ > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Sun Apr 2 13:07:06 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 2 Apr 2017 20:07:06 +0300 Subject: Cheesed off by 32xxx In-Reply-To: <58E12061.4030607@pair.com> References: <9f77764c-2fd6-e42d-4759-d3d636fc52e9@gmail.com> <58E12061.4030607@pair.com> Message-ID: <477dd203-fb57-3c2a-c011-87825cfea15b@gmail.com> On 4/2/17 7:01 pm, Curry Kenworthy via use-livecode wrote: > > Howdy Richmond, > > Wise man do many things with few buttons. Yup: only one problem there . . . I prefer zippers! > Elite master use single field. Difficult when you have to make sure the bull doesn't get in with the cows. > That is the true path to LC enlightenment, avoiding all unnecessary > sorrows in coding and interface. Yes, Master Sensei, I bow so low my nose scrapes the underside of my iMac. > > Having said that, you specifically asked for a way to circumvent the > 32k pixel limitation for positioning. That should be possible. (And > doubly worth mentioning because it could apply to other situations > with fewer, but larger, controls.) > > If you split the 1600 controls into two groups rather than one, and > add a little special code to swap them smoothly while scrolling.... > > Thus you would never need 8703 buttons on top of each other. The problem, such as it is, is that the Unicode specifications have 128 * 8703 slots for glyphs (= a big number my mind cannot cope with) and the display in my "CHAR REF" stack is set up to cope with 128 glyphs a go: hence 8703 buttons. Of course I could be racist and leave out the Chinese ideograph slots (= about 70%) . . . > However, the same is true of the 1600 or the 800. It's a fun exercise > and a great test of LC's limits I wonder if that limit is "cast in stone" or the Livecode people could expand it? > and performance, but a different approach will be more efficient. Probably, but after my first beige G3 Mac (1998) everything has always gone quite fast enough for me. > > Very nice topic for an app, I love Unicode tables! Very handy. Indeed. > > Best wishes, > > Curry K. > Best, Richmond. From richmondmathewson at gmail.com Sun Apr 2 13:08:53 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 2 Apr 2017 20:08:53 +0300 Subject: Cheesed off by 32xxx In-Reply-To: References: <9f77764c-2fd6-e42d-4759-d3d636fc52e9@gmail.com> <58E12061.4030607@pair.com> Message-ID: I'm interested and will have a look at it after supper. Thanks, Richmond. On 4/2/17 8:01 pm, Mike Bonner via use-livecode wrote: > Just for fun, I did as others have said and converted the stack to use a > field. Since each button used the same exact script (as far as I could > tell, too many to go through individually) it was easy to modify it to use > the selectedtext rather than the label of the clicked button. TO get the > fonts for the list I looped through buttons looking for all that contained > hex and grabbed the labels, sorted the resulting list so that it matched > your original arrangement, and voila'. Had to adjust the preopencard > handler to account for the changes. I missed something. If you're > interested, the adjusted stack is here. > https://www.dropbox.com/s/bn5ihcosxd6vj8f/CHAR%20REF.livecode?dl=0 > > On Sun, Apr 2, 2017 at 10:01 AM, Curry Kenworthy via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Howdy Richmond, >> >> Wise man do many things with few buttons. Elite master use single field. >> That is the true path to LC enlightenment, avoiding all unnecessary sorrows >> in coding and interface. >> >> Having said that, you specifically asked for a way to circumvent the 32k >> pixel limitation for positioning. That should be possible. (And doubly >> worth mentioning because it could apply to other situations with fewer, but >> larger, controls.) >> >> If you split the 1600 controls into two groups rather than one, and add a >> little special code to swap them smoothly while scrolling.... >> >> Thus you would never need 8703 buttons on top of each other. However, the >> same is true of the 1600 or the 800. It's a fun exercise and a great test >> of LC's limits and performance, but a different approach will be more >> efficient. >> >> Very nice topic for an app, I love Unicode tables! Very handy. >> >> Best wishes, >> >> Curry K. >> >> LiveCode Training and Consulting >> http://livecodeconsulting.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 jiml at netrin.com Sun Apr 2 14:10:46 2017 From: jiml at netrin.com (Jim Lambert) Date: Sun, 2 Apr 2017 11:10:46 -0700 Subject: Cheesed off by 32xxx In-Reply-To: References: Message-ID: Richmond, You could give this a try. Drag a scrolling list field onto the card. Name it ?UNIlist?. This will eventually replace for group ?UNIlist', which contains your problematic number of buttons. Put this in the script of the scrolling list field ?UNIlist' on mouseup put token 2 of the value of the clickline into MAGIC put baseConvert(MAGIC, 16, 10) into WAL put 0 into KOUNT lock screen repeat for 128 times set the label of btn ("B" & KOUNT) to numToCodepoint(KOUNT+WAL) add 1 to KOUNT end repeat put the short name of me into fld "RANGE" end mouseup on populateMe put "" into me lock screen put the number of buttons of grp UNIlist into nBtns repeat with x = 1 to nBtns put the short name of btn x of grp UNIlist into line (nBtns +1) - x of me end repeat end populateMe Now execute "send populateMe to the field UNIlist? in the message box Now click any line of the scrolling list field ?UNIlist?. The scrollingligst field should be able to hold considerably more than 1400 lines. Result: de-cheesement! Jim Lambert From jiml at netrin.com Sun Apr 2 14:25:51 2017 From: jiml at netrin.com (Jim Lambert) Date: Sun, 2 Apr 2017 11:25:51 -0700 Subject: Cheesed off by 32xxx In-Reply-To: References: Message-ID: <1510AF27-46CD-43EB-A246-2D4A9BDC516C@netrin.com> A little fancier. on mouseup put token 2 of the value of the clickline into MAGIC put baseConvert(MAGIC, 16, 10) into WAL put 0 into KOUNT lock screen for visual effect in rect (the rect of grp "BOXES") repeat for 128 times set the label of btn ("B" & KOUNT) to numToCodepoint(KOUNT+WAL) add 1 to KOUNT end repeat put the short name of me into fld "RANGE" unlock screen with visual effect "scroll right" very fast end mouseup on populateMe put "" into me lock screen put the number of buttons of grp UNIlist into nBtns repeat with x = 1 to nBtns put the short name of btn x of grp UNIlist into line (nBtns +1) - x of me end repeat end populateMe Jim Lambert From bonnmike at gmail.com Sun Apr 2 16:10:37 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 2 Apr 2017 14:10:37 -0600 Subject: Cheesed off by 32xxx In-Reply-To: <1510AF27-46CD-43EB-A246-2D4A9BDC516C@netrin.com> References: <1510AF27-46CD-43EB-A246-2D4A9BDC516C@netrin.com> Message-ID: Got bored. Heres a version using a datagrid form so you can keep that buttony look. https://www.dropbox.com/s/p8xlv0zoyeb34za/CHAR%20REFDG.livecode?dl=0 On Sun, Apr 2, 2017 at 12:25 PM, Jim Lambert via use-livecode < use-livecode at lists.runrev.com> wrote: > A little fancier. > > on mouseup > put token 2 of the value of the clickline into MAGIC > put baseConvert(MAGIC, 16, 10) into WAL > put 0 into KOUNT > lock screen for visual effect in rect (the rect of grp "BOXES") > repeat for 128 times > set the label of btn ("B" & KOUNT) to > numToCodepoint(KOUNT+WAL) > add 1 to KOUNT > end repeat > put the short name of me into fld "RANGE" > unlock screen with visual effect "scroll right" very fast > end mouseup > > > on populateMe > put "" into me > lock screen > put the number of buttons of grp UNIlist into nBtns > repeat with x = 1 to nBtns > put the short name of btn x of grp UNIlist into line > (nBtns +1) - x of me > end repeat > end populateMe > > > Jim Lambert > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Sun Apr 2 17:02:10 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sun, 2 Apr 2017 21:02:10 +0000 Subject: Unicode Reference stack In-Reply-To: <6ec715bd-8807-ed75-6b81-8ca21f0f9a9d@gmail.com> References: <63d807b5-d70c-d35b-6d1c-f4dfc17370a5@gmail.com> <6ec715bd-8807-ed75-6b81-8ca21f0f9a9d@gmail.com> Message-ID: Nicely done Richmond! Bob S > On Apr 1, 2017, at 12:36 , Richmond Mathewson via use-livecode wrote: > > Things just got better! > > On 3/31/17 10:11 pm, Richmond Mathewson wrote: >> Here: http://forums.livecode.com/viewtopic.php?f=26&t=29069 >> >> Richmond. > From ambassador at fourthworld.com Sun Apr 2 18:23:18 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 2 Apr 2017 15:23:18 -0700 Subject: tsNet docs? In-Reply-To: References: Message-ID: <042c110f-dea0-97b5-a41f-46adb41c8e75@fourthworld.com> Charles Warwick wrote: > Firstly my apologies on the lack of documentation, it is definitely > on my todo list and I am working on some Livecode lessons for tsNet > at the moment. Looking forward to them - thanks. > I have just double checked that stack and noticed that the call to > tsNetUploadSync is using the wrong syntax (it changed at one point) > which could be causing you issues. > > An updated version is now available at that same URL with the > corrected the syntax for that call and another button so that there > are now examples for both uploading via SFTP and FTPS. > > These should work correctly on Indy and I have confirmed that here. Thanks. I'm no longer getting the license error with either FTPS or SFTP, and indeed I was able to upload a file with FTPS so that much is good. With SFTP, however, I'm getting weird results, something I've never seen before, like LC is in some sort of semi-hung state. I fill in the relevant fields, click "SFTP Upload Example", but then I don't get anything in the Results field and as long as I care to wait my CPU monitor shows LC churning up about 23%, but there's no visible indication that anything's happening. Hoping to explore the script to guess what might be happening, I found I could switch tool modes and right-click on the button, but when I select "Edit Script" in the popup button nothing happens. At that point some things are unresponsive, others eventually become responsive after long delays, and -- weirdest of all - after I quit C it's still shown as a process in my process list. This is on Ubuntu 14.04, with LC v9 DP6. Any other info I can provide? Should I file a formal bug report on this? -- 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 Sun Apr 2 20:24:17 2017 From: hh at hyperhh.de (hh) Date: Mon, 3 Apr 2017 02:24:17 +0200 Subject: Line numbers for soft-wrapped styled text? Message-ID: <5C748B2E-DC84-4253-ADEE-D34B05B8BBA3@hyperhh.de> Alex, a brilliant technique. It is certainly usable for other "searching" tasks. And it simply needs for this use case a faster measurement-method as input. We could try the selectedLoc: The script below gets for me the exakt topLefts of the visible ones of 20000 "worse case"-lines in < 1 second, with LC 9, and in LC 6 it is three times faster, on a medium fast machine (2.5 GHz macMini). I'm sure you can take the following quick and dirty routine again down to at least 50% of needed time with your optimization technique. Hermann ## Commented for occasional readers. ## You still has to use the locations for a numbers display: Use either ## one num-field per line or one for all using Alex's method of space below. local rg=TEXT", l0, t0, b0, v0 local gpoints -- collects the toplefts of the lines on updateNbs2 put the millisecs into m1 lock screen; lock messages put the top of fld rg into t0 put the left of fld rg into l0 put the bottom of fld rg into b0 put the height of fld rg into h0 put the selectedChunk into sc put the vscroll of fld rg into v0 put the num of lines of fld rg into nL put visibleTextLines(nL) into tL put "Lines: " & tL & " of " & nL into fld "range" put gPoints into fld "info" -- ready to use -- avoid bug(?) with the field num: if sc is not empty then do ("select "& (word 1 to 4 of sc) &" of fld ""e& rg "e) end if set the vscroll of fld rg to v0 put (the millisecs-m1) & " ms" into fld "timing" unlock screen; unlock messages end updateNbs2 -- returns the visible lines range and (in gPoints) the toplefts -- n is the num of lines function visibleTextLines n put the scrollbarWidth of fld rg into sw put the margins of fld rg into m put (m,m,m,m) into m -- now we have always at least 4 items put findTopLine(v0+t0-1+item 2 of m,1,n) into L1 put L1-1 into L2; put v0+b0+6-item 4 of m into x put empty into gPoints -- now a simple line-after-line check could/should be made faster, -- its advantage: We get at the same time already the locations! repeat while L2 <= n add 1 to L2 set vscroll of fld rg to v0 -- important for measuring select before line L2 of fld rg put item 2 of the selectedLoc into slc put cr & (l0,slc) after gPoints -- adjust here the left if (the vscroll of fld rg) + slc > x then put line 2 to -2 of gPoints into gPoints exit repeat end if end repeat return L1,L2-1 end visibleTextLines -- the simplest recursive method as base for optimization function findTopLine x,n1,n -- x=top pixel value, n1=start, n=max put n1+((n-n1) div 2) into m set vscroll of fld rg to v0 select before line m+1 of fld rg put the vscroll of fld rg + item 2 of the selectedLoc into vsl if vsl >= x then set vscroll of fld rg to v0 select before line m of fld rg put the vscroll of fld rg + item 2 of the selectedLoc into vsl if vsl < x then return word 2 of the selectedLine else if m <= n1 then return n1 else return findTopLine(x,n1,m-1) end if else if m >= n then return n else return findTopLine(x,m+1,n) end if end findTopLine ## The field's script is again: on textchanged updateNbs2 end textchanged on scrollbardrag updateNbs2 end scrollbardrag ### END_OF_SCRIPT > Alex T. wrote: > Sure, here it is. > > I couldn't resist doing some simple benchmarks, just to verify my > intuition. Very glad I did. > > OK - here's the theory : > > we're using variations of binary search to find the lowest numbered > line that is visible, and then again to find the highest numbered line. > > So at each stage we have an interval within which the right answer must > lie. > > 1. Simple binary search : the next guess is the middle of the current > interval. > > This is simple, and very consistent for the number of guesses needed: > the worst case is almost identical to the average/typical. > > For my test case (25000 lines of heavily styled text), we need approx 14 > guesses for the first calculaiton, and 8 for the second. > > 2. Simple Newton-Raphson (linear interpolation). > > This is usually better than simple binary, *if* there is a reasonable > correlation between the measurable values and the guessable values. In > this case there - the height of any chunk of lines is reasonably > correlated to the number of lines, though not exactly in all cases. > > Usually this will take significantly fewer guesses (and in this case it > takes around 8 + 4 compared to the 14+8 above). > > BUT - the worst case can be much, much worse :-( Imagine a field with > 1000 lines - the first 500 are in 5-point text, and the other 500 are in > 1000 point text, scrolled forward by 400 lines; this makes our guessing > VERY poor, and will take up to 200 or more guesses. > > 3. Use a mix of linear interpolation and binary search. I tried simply > alternating them - one calculated guess, then one 'average' guess, then > another calculated one, .... > > This should significantly limit the worst case - but makes the average > somewhat worse. > > 4. Use linear interpolation - but disallow very small (or very large) > estimates. > > This again limits the worst case (not quite so well), and makes the > average only slightly worse. > > > I tried each of these strategies on a range of scroll positions in my > test case field. Results were > > (1) Binary 6283 > > (2) N-R 3757 > > (3) N-R/binary 4200 > > (4) N-R limited 3782 > > > So - the script below does (4) above - linear interpolation, with the > very small or very large percentage guesses disallowed. But, I've left > in the code (commented out) to also do alternating binary guesses, so it > can be easily used if your use case is very sensitive to extreme examples. From curry at pair.com Sun Apr 2 21:23:49 2017 From: curry at pair.com (Curry Kenworthy) Date: Sun, 02 Apr 2017 21:23:49 -0400 Subject: Cheesed off by 32xxx In-Reply-To: <477dd203-fb57-3c2a-c011-87825cfea15b@gmail.com> References: <477dd203-fb57-3c2a-c011-87825cfea15b@gmail.com> Message-ID: <58E1A425.5010201@pair.com> Richmond say: > The problem, such as it is, is that the Unicode specifications > have 128 * 8703 slots for glyphs ... hence 8703 buttons. Channeling Sensei again for fun - Does man with million chopsticks line them all side by side, only one layer deep? He need very big custom table, very expensive, no more bamboo or tree left for chopstick. If you have 8703 buttons, must they all be lined up at once? Again, by arranging the buttons in several groups of perhaps 800, you could circumvent the 32K pixel limitation as you wished to do. A little scrolling code creates the illusion that they are one big group, but none of the edges are ever more than 32K from 0,0. I have to advocate a field or a very small set of buttons instead, much easier and huge advantages. We don't need thousands of buttons to display the Unicode tables. But focusing just on the 32K pixel issue, which could apply to other situations, I think your 8703 * 23 approach should be doable! Only a question of organization and arrangement. To the user it would look the same as if it were one big group. Best wishes, Curry K. LiveCode Training and Consulting http://livecodeconsulting.com/ From paul at livecode.org Sun Apr 2 23:29:36 2017 From: paul at livecode.org (Paul Hibbert) Date: Sun, 2 Apr 2017 20:29:36 -0700 Subject: spotting a mouseclick in the transparent area of an image In-Reply-To: <79d1f016-fa4c-103d-a6b4-fd5a64178b96@cogapp.com> References: <79d1f016-fa4c-103d-a6b4-fd5a64178b96@cogapp.com> Message-ID: <17D44F7C-6661-4802-80F9-DDADA0AF85F0@livecode.org> Ben, if you could edit the PNGs to add a 1% tone to the transparent areas (maybe with a batch process) this allows LC to accept the clicks within the image area. The advantage of this is you could have a 1 % tone inside the area you need be active and completely transparent where you don?t want clicks to be active for example a circular button. The 1% tone should be indistinguishable from the transparent area and will still show the background through. Paul > On Mar 30, 2017, at 10:52 AM, Ben Rubinstein via use-livecode wrote: > > I have a group containing a grid of square images. > > Some of the images are gifs, some are pngs, and some of the latter have an alpha channel with some transparent bits. > > The images are all used as buttons, to control something else - the images in essence are labels or icons for the buttons. The images have 3d borders to make them look more button-like. > > The problem is that the if the user happens to click in the transparent area of an image, the target of the mouseup isn't the image but the card. But the image is a button, so I want to catch mouseup anywhere in this square image. > > I thought that I might be able to use 'the mousecontrol', when the target was the card, to find out which image the mouse was in when; but this too takes account of the transparency of the image. > > I can see this is a really useful feature - but in this case I want the opposite! Is there a flag somewhere, or another easy way to achieve this? > > The non-easy ways I'm aware of are: > - hide all the images and replace them with buttons referencing the images > - re-compositing the images to flatten the alpha channel > - iterating through all the images - there are many, in a scrolling group - testing for the mouseloc within the rect of each > > > Is there anything simpler than this, to treat an image as opaque for the purposes of hit-testing? > > TIA > > Ben > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Mon Apr 3 02:58:42 2017 From: mark at livecode.com (Mark Waddingham) Date: Mon, 03 Apr 2017 08:58:42 +0200 Subject: Cheesed off by 32xxx In-Reply-To: <477dd203-fb57-3c2a-c011-87825cfea15b@gmail.com> References: <9f77764c-2fd6-e42d-4759-d3d636fc52e9@gmail.com> <58E12061.4030607@pair.com> <477dd203-fb57-3c2a-c011-87825cfea15b@gmail.com> Message-ID: On 2017-04-02 19:07, Richmond Mathewson via use-livecode wrote: > The problem, such as it is, is that the Unicode specifications have > 128 * 8703 slots for glyphs (= a big number my mind cannot cope with) > and the display in my "CHAR REF" stack is set up to cope with 128 > glyphs a go: hence 8703 buttons. > > Of course I could be racist and leave out the Chinese ideograph slots > (= about 70%) . . . You'd probably be okay with 8703 buttons (were there not a co-ordinate magnitude limit), but certainly not with 128*8703 buttons. To give some context... Each button takes up at least 128 bytes in memory, so: 8703 buttons is about 1.4Mb - which isn't too bad 8703*128 buttons would be about 150Mb - which is substantially more Admittedly, neither of these will 'break the bank' in terms of memory availability, even on machines of a G3 Mac vintage, however just storing the representation of such things in memory is not the only issue. The engine has to do things like: - render all the controls on the card - perform hit testing when the user clicks or interacts with the card - search for controls when you reference them in script Rendering requires a linear back to front scan of each control, painting each one which is within the visible rect of the window the card sits in. This means that if you have 8703*128 buttons it will need to perform that many steps to render. Additionally, whenever a small amount changes, it needs to do this again - as any one control *could* have been moved or intersect with the area which has changed (and thus require rendering). Hit testing is similar, although the process is from front to back, and stops as soon as a control says it is the target of the mouse / user interaction event. The third case, is the killer though. Looking up a control by name or by later requires (on average) number of controls on card / 2 steps to perform. If you use the (short) id, then there is a per-stack cache which makes the lookup take 1 step if it has been looked up before but the normal number of steps if it has not. In general, we'd never advise using so many controls on a single card - and a data-oriented approach which is what others have suggested is generally the best approach in this case. i.e. Update the content of a small set of buttons as the user browses through the list. > I wonder if that limit is "cast in stone" or the Livecode people could > expand it? Currently engine controls are limited to 16-bit quantities for co-ordinates - which means a range of -32768 to 32768. The underlying rendering library we use (libgraphics), however, uses floats (32-bit real numbers which given an integer range up to around 2^24). So, updating the engine to use floats or similar in its co-ordinates for controls is certainly possible, just not a task we've undertaken yet. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Mon Apr 3 04:06:21 2017 From: mark at livecode.com (Mark Waddingham) Date: Mon, 03 Apr 2017 10:06:21 +0200 Subject: OMG WTF detailed files =?UTF-8?Q?BST=3F?= In-Reply-To: <10b709c2-abcb-e28e-f8ee-aeab5af1a244@cogapp.com> References: <8b8f71ef-41de-e251-bd2d-ec1363bb7343@cogapp.com> <8dd1810eb3a5eceeab6a847eb19599e6@livecode.com> <10b709c2-abcb-e28e-f8ee-aeab5af1a244@cogapp.com> Message-ID: On 2017-03-31 19:23, Local (BenR) wrote: > Hi Mark, > > Thanks for your response, very helpful. > > Unfortunately I don't know what the filesystem of the volume with the > files is - this is a client's network, and they set up a VM in the DMZ > for me to work on, with this network share mounted - but I've no idea > what the fileserver is. Hmmm - I suspect something to do with the fileserver is at play here. LiveCode uses FindFirstFileW and similar Win32 APIs to fetch the detailed file into. Beyond converting the raw 'filetime' value which you get to 'seconds since 1970' (UTC) which is just (essentially) done by adding a constant offset it doesn't do anything suspect with such values. I can't explain why Explorer shows the correct values unless: 1) It 'knows' about some sort of DST drift problem and has hard-coded handling of it 2) It is using a different API to LiveCode to get the same info Of course (2) requires there being a different file system API one could use, but to my knowledge all Win32 FS operations are implemented in terms of the family we are using. Therefore, some more precise details of the setup your app is running on is probably the best thing to try and get now - i.e. the details of the network share and how it is configured in the VM. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From toolbook at kestner.de Mon Apr 3 04:47:59 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 3 Apr 2017 10:47:59 +0200 Subject: when is LC 8.1.4 to be expected? Message-ID: <001c01d2ac57$00ee5fc0$02cb1f40$@kestner.de> Hello headquarter, I am just releasing a new version and the only remaining bug is the wrong windows systemVersion in 8.1.3. That's why I would like to know, if 8.1.4 is shortly to be expected and it would be worth for me to wait a few days or if it still is unscheduled and I'll go with the wrong systemversion. Thanks for any rumors off the records :) Tiemo From terry.judd at unimelb.edu.au Mon Apr 3 05:37:00 2017 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Mon, 3 Apr 2017 09:37:00 +0000 Subject: Gradients with transparency? Message-ID: <36BFF6BA-A3FA-48A2-A767-EEC5C56A1057@unimelb.edu.au> Is it possible to have a gradient with one of its end-points being transparent instead of a solid colour? I want to overlay a graphic with a vertical gradient that blends from transparent to white to give the effect that the underlying content is fading out as you move down the screen. I?m able to achieve this effect using a black and white linear gradient in combination with the blendScreen ink but I need to be able to export the object (gradient plus underlying controls) as an image keeping the effect intact. When I export it now the ink effect is lost. Terry... From panos.merakos at livecode.com Mon Apr 3 05:55:58 2017 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 3 Apr 2017 10:55:58 +0100 Subject: when is LC 8.1.4 to be expected? In-Reply-To: <001c01d2ac57$00ee5fc0$02cb1f40$@kestner.de> References: <001c01d2ac57$00ee5fc0$02cb1f40$@kestner.de> Message-ID: Hi Tiemo, This is just an off_the_record_rumor: We would like/expect to release 8.1.4 RC-1 within this week :) Best regards, Panos -- On Mon, Apr 3, 2017 at 9:47 AM, Tiemo Hollmann TB via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello headquarter, > > I am just releasing a new version and the only remaining bug is the wrong > windows systemVersion in 8.1.3. > > That's why I would like to know, if 8.1.4 is shortly to be expected and it > would be worth for me to wait a few days or if it still is unscheduled and > I'll go with the wrong systemversion. > > Thanks for any rumors off the records :) > > Tiemo > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From toolbook at kestner.de Mon Apr 3 06:18:17 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 3 Apr 2017 12:18:17 +0200 Subject: AW: when is LC 8.1.4 to be expected? In-Reply-To: References: <001c01d2ac57$00ee5fc0$02cb1f40$@kestner.de> Message-ID: <002101d2ac63$9da6f4b0$d8f4de10$@kestner.de> Thanks Panos, I won't spread such rumors! Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von panagiotis merakos via use-livecode Gesendet: Montag, 3. April 2017 11:56 An: How to use LiveCode Cc: panagiotis merakos Betreff: Re: when is LC 8.1.4 to be expected? Hi Tiemo, This is just an off_the_record_rumor: We would like/expect to release 8.1.4 RC-1 within this week :) Best regards, Panos -- On Mon, Apr 3, 2017 at 9:47 AM, Tiemo Hollmann TB via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello headquarter, > > I am just releasing a new version and the only remaining bug is the > wrong windows systemVersion in 8.1.3. > > That's why I would like to know, if 8.1.4 is shortly to be expected > and it would be worth for me to wait a few days or if it still is > unscheduled and I'll go with the wrong systemversion. > > Thanks for any rumors off the records :) > > Tiemo > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Mon Apr 3 06:29:54 2017 From: mark at livecode.com (Mark Waddingham) Date: Mon, 03 Apr 2017 12:29:54 +0200 Subject: Gradients with =?UTF-8?Q?transparency=3F?= In-Reply-To: <36BFF6BA-A3FA-48A2-A767-EEC5C56A1057@unimelb.edu.au> References: <36BFF6BA-A3FA-48A2-A767-EEC5C56A1057@unimelb.edu.au> Message-ID: <034cf52495137d7a6f09941a6f47e8f1@livecode.com> On 2017-04-03 11:37, Terry Judd via use-livecode wrote: > Is it possible to have a gradient with one of its end-points being > transparent instead of a solid colour? Yes the color values you specify for gradients can have an alpha component. For example: 0.5,255,0,0 -> at half way through the gradient, the color should be solid red 0.5,255,0,0,127 -> at half way through the gradient, the color should be 50% transparent red. Hope this helps! Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From panos.merakos at livecode.com Mon Apr 3 07:04:45 2017 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 3 Apr 2017 12:04:45 +0100 Subject: [ANN] This Week in LiveCode 77 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 #77 here: https://goo.gl/Bh2qCb 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 MikeKerner at roadrunner.com Mon Apr 3 07:44:25 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 3 Apr 2017 07:44:25 -0400 Subject: Private Repo Services Message-ID: Github is nice, but all your repos have to be public in order to be free. I went looking for private ones (because there are things you just can't do without a remote repo, and I don't want all my code in the open) So far I've found two: 1) Github - $7/month 2) Google - free, but it's more complicated to get set up, and they have quotas. I have had no trouble getting an increase, but I'm sure there are limits to their generosity Does anyone know of others? -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From mark at livecode.com Mon Apr 3 07:55:33 2017 From: mark at livecode.com (Mark Waddingham) Date: Mon, 03 Apr 2017 13:55:33 +0200 Subject: Private Repo Services In-Reply-To: References: Message-ID: On 2017-04-03 13:44, Mike Kerner via use-livecode wrote: > Github is nice, but all your repos have to be public in order to be > free. > I went looking for private ones (because there are things you just > can't do > without a remote repo, and I don't want all my code in the open) > > So far I've found two: > 1) Github - $7/month > 2) Google - free, but it's more complicated to get set up, and they > have > quotas. I have had no trouble getting an increase, but I'm sure there > are > limits to their generosity > > Does anyone know of others? Atlassian Bitbucket is free (as far as I can tell!) for small teams - I don't know if there are any usage limits, but it certainly seems more than sufficient for my personal use. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Mon Apr 3 08:11:01 2017 From: mark at livecode.com (Mark Waddingham) Date: Mon, 03 Apr 2017 14:11:01 +0200 Subject: Line numbers for soft-wrapped styled =?UTF-8?Q?text=3F?= In-Reply-To: References: Message-ID: On 2017-03-29 12:48, hh via use-livecode wrote: > Alex, > before you waste valuable time: > The formattedRect can NOT be used in LC 7/8/9, because of the > (2^15 div 2)-limit for coordinates is active for that. I couldn't find a bug report for that so I filed one: http://quality.livecode.com/show_bug.cgi?id=19515 Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From terry.judd at unimelb.edu.au Mon Apr 3 08:38:08 2017 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Mon, 3 Apr 2017 12:38:08 +0000 Subject: Gradients with transparency? In-Reply-To: <034cf52495137d7a6f09941a6f47e8f1@livecode.com> References: <36BFF6BA-A3FA-48A2-A767-EEC5C56A1057@unimelb.edu.au>, <034cf52495137d7a6f09941a6f47e8f1@livecode.com> Message-ID: <05DD099D-0C28-4CED-AE70-00282871F6BF@unimelb.edu.au> Thanks Mark, I'll try that out. Regards, Terry... Sent from my iPad > On 3 Apr 2017, at 8:30 pm, Mark Waddingham via use-livecode wrote: > >> On 2017-04-03 11:37, Terry Judd via use-livecode wrote: >> Is it possible to have a gradient with one of its end-points being >> transparent instead of a solid colour? > > Yes the color values you specify for gradients can have an alpha component. For example: > > 0.5,255,0,0 -> at half way through the gradient, the color should be solid red > > 0.5,255,0,0,127 -> at half way through the gradient, the color should be 50% transparent red. > > Hope this helps! > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From MikeKerner at roadrunner.com Mon Apr 3 08:40:29 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 3 Apr 2017 08:40:29 -0400 Subject: Private Repo Services In-Reply-To: References: Message-ID: Crap. I didn't think of BitBucket. On Mon, Apr 3, 2017 at 7:55 AM, Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > On 2017-04-03 13:44, Mike Kerner via use-livecode wrote: > >> Github is nice, but all your repos have to be public in order to be free. >> I went looking for private ones (because there are things you just can't >> do >> without a remote repo, and I don't want all my code in the open) >> >> So far I've found two: >> 1) Github - $7/month >> 2) Google - free, but it's more complicated to get set up, and they have >> quotas. I have had no trouble getting an increase, but I'm sure there are >> limits to their generosity >> >> Does anyone know of others? >> > > Atlassian Bitbucket is free (as far as I can tell!) for small teams - I > don't know if there are any usage limits, but it certainly seems more than > sufficient for my personal use. > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From benr_mc at cogapp.com Mon Apr 3 10:37:20 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 3 Apr 2017 15:37:20 +0100 Subject: OMG WTF detailed files BST? In-Reply-To: References: <8b8f71ef-41de-e251-bd2d-ec1363bb7343@cogapp.com> <8dd1810eb3a5eceeab6a847eb19599e6@livecode.com> <10b709c2-abcb-e28e-f8ee-aeab5af1a244@cogapp.com> Message-ID: <41db99f1-b42b-f8d7-aad5-b10ff3e77dd3@cogapp.com> The plot is slightly thickening. I restarted the VM, set the date+time to not adjust for daylight saving, restarted again. This removed some 30,000 images from the list with allegedly modified timestamps; the ones that were no longer consider to have changed were - in some year or other - modified between late march and the end of September. I've now switched the 'adjust' setting back on, restarted the VM again, and await tomorrow's report with interest. (In the meantime I've asked the clients IT dept what the server in question is running, but on the whole they tend to be very unresponsive... sigh.) Ben On 03/04/2017 09:06, Mark Waddingham via use-livecode wrote: > On 2017-03-31 19:23, Local (BenR) wrote: >> Hi Mark, >> >> Thanks for your response, very helpful. >> >> Unfortunately I don't know what the filesystem of the volume with the >> files is - this is a client's network, and they set up a VM in the DMZ >> for me to work on, with this network share mounted - but I've no idea >> what the fileserver is. > > Hmmm - I suspect something to do with the fileserver is at play here. > > LiveCode uses FindFirstFileW and similar Win32 APIs to fetch the detailed file > into. Beyond converting the raw 'filetime' value which you get to 'seconds > since 1970' (UTC) which is just (essentially) done by adding a constant offset > it doesn't do anything suspect with such values. > > I can't explain why Explorer shows the correct values unless: > > 1) It 'knows' about some sort of DST drift problem and has hard-coded > handling of it > > 2) It is using a different API to LiveCode to get the same info > > Of course (2) requires there being a different file system API one could use, > but to > my knowledge all Win32 FS operations are implemented in terms of the family we > are > using. > > Therefore, some more precise details of the setup your app is running on is > probably > the best thing to try and get now - i.e. the details of the network share and how > it is configured in the VM. > > Warmest Regards, > > Mark. > From bobsneidar at iotecdigital.com Mon Apr 3 10:54:32 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 3 Apr 2017 14:54:32 +0000 Subject: Cheesed off by 32xxx In-Reply-To: <58E1A425.5010201@pair.com> References: <477dd203-fb57-3c2a-c011-87825cfea15b@gmail.com> <58E1A425.5010201@pair.com> Message-ID: <469960E8-3357-4DD2-850E-9050CE1E167A@iotecdigital.com> :-D > On Apr 2, 2017, at 18:23 , Curry Kenworthy via use-livecode wrote: > > Channeling Sensei again for fun - Does man with million chopsticks line them all side by side, only one layer deep? He need very big custom table, very expensive, no more bamboo or tree left for chopstick. From bobsneidar at iotecdigital.com Mon Apr 3 10:56:51 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 3 Apr 2017 14:56:51 +0000 Subject: Cheesed off by 32xxx In-Reply-To: References: <9f77764c-2fd6-e42d-4759-d3d636fc52e9@gmail.com> <58E12061.4030607@pair.com> <477dd203-fb57-3c2a-c011-87825cfea15b@gmail.com> Message-ID: The short version: Datagrid.... GOOD! Bob S > On Apr 2, 2017, at 23:58 , Mark Waddingham via use-livecode wrote: > > On 2017-04-02 19:07, Richmond Mathewson via use-livecode wrote: >> The problem, such as it is, is that the Unicode specifications have >> 128 * 8703 slots for glyphs (= a big number my mind cannot cope with) >> and the display in my "CHAR REF" stack is set up to cope with 128 >> glyphs a go: hence 8703 buttons. >> Of course I could be racist and leave out the Chinese ideograph slots >> (= about 70%) . . . > > You'd probably be okay with 8703 buttons (were there not a co-ordinate magnitude limit), but certainly not with 128*8703 buttons. > > To give some context... > > Each button takes up at least 128 bytes in memory, so: > > 8703 buttons is about 1.4Mb - which isn't too bad > > 8703*128 buttons would be about 150Mb - which is substantially more > > Admittedly, neither of these will 'break the bank' in terms of memory availability, even on machines of a G3 Mac vintage, however just storing the representation of such things in memory is not the only issue. The engine has to do things like: > > - render all the controls on the card > > - perform hit testing when the user clicks or interacts with the card > > - search for controls when you reference them in script > > Rendering requires a linear back to front scan of each control, painting each one which is within the visible rect of the window the card sits in. This means that if you have 8703*128 buttons it will need to perform that many steps to render. Additionally, whenever a small amount changes, it needs to do this again - as any one control *could* have been moved or intersect with the area which has changed (and thus require rendering). > > Hit testing is similar, although the process is from front to back, and stops as soon as a control says it is the target of the mouse / user interaction event. > > The third case, is the killer though. Looking up a control by name or by later requires (on average) number of controls on card / 2 steps to perform. If you use the (short) id, then there is a per-stack cache which makes the lookup take 1 step if it has been looked up before but the normal number of steps if it has not. > > In general, we'd never advise using so many controls on a single card - and a data-oriented approach which is what others have suggested is generally the best approach in this case. i.e. Update the content of a small set of buttons as the user browses through the list. > >> I wonder if that limit is "cast in stone" or the Livecode people could >> expand it? > > Currently engine controls are limited to 16-bit quantities for co-ordinates - which means a range of -32768 to 32768. The underlying rendering library we use (libgraphics), however, uses floats (32-bit real numbers which given an integer range up to around 2^24). So, updating the engine to use floats or similar in its co-ordinates for controls is certainly possible, just not a task we've undertaken yet. > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps From bobsneidar at iotecdigital.com Mon Apr 3 11:07:23 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 3 Apr 2017 15:07:23 +0000 Subject: when is LC 8.1.4 to be expected? In-Reply-To: References: <001c01d2ac57$00ee5fc0$02cb1f40$@kestner.de> Message-ID: You should have given him the standard response: "Two Weeks" Bob S > On Apr 3, 2017, at 02:55 , panagiotis merakos via use-livecode wrote: > > Hi Tiemo, > > This is just an off_the_record_rumor: > > We would like/expect to release 8.1.4 RC-1 within this week :) > > Best regards, > Panos From nabble at mad.pink Mon Apr 3 10:59:24 2017 From: nabble at mad.pink (pink) Date: Mon, 3 Apr 2017 07:59:24 -0700 (PDT) Subject: Private Repo Services In-Reply-To: References: Message-ID: <1491231564433-4713605.post@n4.nabble.com> I'm a fan of GitLab, you can host your own or use their service for free. See: https://about.gitlab.com/products/ ----- --- Greg (pink) Miller mad, pink and dangerous to code -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Private-Repo-Services-tp4713596p4713605.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Mon Apr 3 12:47:55 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 3 Apr 2017 09:47:55 -0700 Subject: Cheesed off by 32xxx In-Reply-To: References: Message-ID: <2cf2f72f-15d2-b33f-9cb8-7eeafcf77477@fourthworld.com> One of the beautiful things about making GUIs in LiveCode is that we generally get a very satisfying and immediate sense of physicality with the controls we're working with: we envision the user interface, drag out controls to match that vision, and we have a one-to-one correspondence between what we're doing as developers and what the end-user is working with. Most of the time this physicality lends itself to an uncommonly productive workflow. I was talking about this with Trevor the other day, and we both agreed that the direct manipulation of controls in a "live" environment, coupled with a language that includes GUI controls as first-class citizens, is a big part of why we continue to rely on and enjoy LiveCode. But from time to time, we find particularly ambitious GUI designs that become problematic within this paradigm. Not impossible, but requiring us to abandon the comfortable sense of physicality to consider more traditional solutions. As Mark Waddingham pointed out, the memory and CPU requirements for working with tens of thousands of objects can be onerous, in some cases perhaps prohibitively so. That's part of the reason why most of the world solves GUI problems through radically different means than LC does. LiveCode does such a good job of maintaining the illusion that GUIs are physical objects that we often take it for granted. But in lower-level tools, you're required to be constantly aware that all of that is just an illusion - the structs, the buffering, the hit-testing, it's all abstraction that only appears physical at the very end of a very complex set of processes. In lower-level languages, most of the time if it ain't on screen it ain't instantiated. They don't even bother. No need - no one can see it anyway. They maintain just enough info to know when a control needs to be instantiated, and then do so only when it will be visible in the window. The DataGrid is a good example of a middle path between the abstraction of lower-level languages and the physicality of LC controls: You can have any number of rows in a DG, but truth be told the only ones that actually exist are the ones you're looking at. Trevor has made very smart of use of fluid scrollBarDrag message to populate the visible portion of the group with the controls relevant for that scroll position. Everything out of view doesn't really exist, at least not in terms of GUI controls. It's a non-trivial task to effectively virtualize large numbers of rows and instantiate only what's visible on the fly. He's done an excellent job of that. In addition to being a very valuable part of the LC toolkit, the DG is also a reminder that with a little effort we can solve even big problems in LC, even though some of the bigger ones require us to set aside the perceived physicality and think about things in a more traditional computer science way. I've found, as Mark confirms, that the coordinate space in LC is limited to about 32765 px. Given the power of computers and the ease of using LC, we might sometimes see that as a constraining limitation. But think about it: at 96dpi that's just under 28 feet on a side - far larger than any monitor you can buy, which means far larger than anything any user could possibly see. When we need to work in unusually large spaces, it becomes time to think in unusual ways. By paging rendered elements, as the DG does, we can handle nearly any size of coordinate space. It requires more work to think through a solution that makes sense for the design at hand, but just about anything you can imagine is doable, even if the worst that happens is that we have to think about solutions using methods similar to how the rest of the world has to deal with them. In the case of the task at hand here in this thread, the solution is even simpler: the DG already provides one way to virtualize large numbers of controls for us with minimal effort to use, and it may be possible to take advantage of the flexibility of LC fields, with their excelling buffering, to do that as well. But even the in a worst-case outcome, where we'd need to figure out a paging mechanism from scratch. I wager that even though it requires more effort than just laying out tens of thousand of controls, it can be done in LC far more productively than one could do in just about any other GUI toolkit. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From richmondmathewson at gmail.com Mon Apr 3 12:58:51 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 3 Apr 2017 19:58:51 +0300 Subject: Gradients with transparency? In-Reply-To: <36BFF6BA-A3FA-48A2-A767-EEC5C56A1057@unimelb.edu.au> References: <36BFF6BA-A3FA-48A2-A767-EEC5C56A1057@unimelb.edu.au> Message-ID: <5d1b142d-12a7-3ad0-fbd8-e138415c92f4@gmail.com> Personally I'd fake it: I'd set up a gradient with one end being transparent in my graphics weapon of choice (GIMP) and save it as a PNG image, import it and overlay it on top of your content, then make sure you group it with your content before you do an export from group "JazzyGradient" to file "JazzyGradient.png" as PNG Richmond. On 4/3/17 12:37 pm, Terry Judd via use-livecode wrote: > Is it possible to have a gradient with one of its end-points being transparent instead of a solid colour? > > I want to overlay a graphic with a vertical gradient that blends from transparent to white to give the effect that the underlying content is fading out as you move down the screen. I?m able to achieve this effect using a black and white linear gradient in combination with the blendScreen ink but I need to be able to export the object (gradient plus underlying controls) as an image keeping the effect intact. When I export it now the ink effect is lost. > > 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 stephen at barncard.com Mon Apr 3 13:06:00 2017 From: stephen at barncard.com (Stephen Barncard) Date: Mon, 3 Apr 2017 10:06:00 -0700 Subject: Cheesed off by 32xxx In-Reply-To: <2cf2f72f-15d2-b33f-9cb8-7eeafcf77477@fourthworld.com> References: <2cf2f72f-15d2-b33f-9cb8-7eeafcf77477@fourthworld.com> Message-ID: 20,000 "LIKES" - Richard! You have expressed so well my feelings that I couldn't find the words for. [rant] The power we have in this tool [Livecode] cannot be overstated. We have to remember it's "just" a tool-kit and there's a lot of stuff that's already pre-assembled. And the rest can be hand-rolled given enough desire. But we're also expected to put in some work to make it so. And the fact that it ALL is an illusion cannot be ignored. (don't take my word for it, ask your local guru) Sometimes an illusion of an illusion in the illusion. So that's my allusion. software at the speed of thought, indeed. [/rant] On Mon, Apr 3, 2017 at 9:47 AM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > One of the beautiful things about making GUIs in LiveCode is that we > generally get a very satisfying and immediate sense of physicality with the > controls we're working with: we envision the user interface, drag out > controls to match that vision, and we have a one-to-one correspondence > between what we're doing as developers and what the end-user is working > with. -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org From bobsneidar at iotecdigital.com Mon Apr 3 13:11:02 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 3 Apr 2017 17:11:02 +0000 Subject: Negative Numbers and NumberFormat Message-ID: <69CFF2C4-1223-48E3-AA54-94824372E8B0@iotecdigital.com> Was anyone aware that the sign takes up one of the digital in number format? For instance, set the numberformat to "00";put -1 +0 & ":" & 0 +0 & ":" & 0 +0 returns: -1:00:00 but set the numberformat to "00";put -12 +0 & ":" & 0 +0 & ":" & 0 +0 returns: -12:00:00 Does no one else find that odd?? Bob S From dunbarx at aol.com Mon Apr 3 13:16:20 2017 From: dunbarx at aol.com (dunbarx) Date: Mon, 3 Apr 2017 10:16:20 -0700 (PDT) Subject: Negative Numbers and NumberFormat In-Reply-To: <69CFF2C4-1223-48E3-AA54-94824372E8B0@iotecdigital.com> References: <69CFF2C4-1223-48E3-AA54-94824372E8B0@iotecdigital.com> Message-ID: <1491239780477-4713610.post@n4.nabble.com> Hi. Hmmm. When you say "...the sign takes up one of the digital " does this make it better or worse: set the numberformat to "00" put -1112 +0 & ":" & 0 +0 & ":" & 0 +0 or going the other way, with your top snippet, did you expect: -01:00:00 Craig Newman -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Negative-Numbers-and-NumberFormat-tp4713609p4713610.html Sent from the Revolution - User mailing list archive at Nabble.com. From jacque at hyperactivesw.com Mon Apr 3 13:26:48 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 03 Apr 2017 12:26:48 -0500 Subject: Gradients with transparency? In-Reply-To: <36BFF6BA-A3FA-48A2-A767-EEC5C56A1057@unimelb.edu.au> References: <36BFF6BA-A3FA-48A2-A767-EEC5C56A1057@unimelb.edu.au> Message-ID: <15b34dad3c0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Would exporting a snapshot work well enough for your needs? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On April 3, 2017 4:39:07 AM Terry Judd via use-livecode wrote: > Is it possible to have a gradient with one of its end-points being > transparent instead of a solid colour? > > I want to overlay a graphic with a vertical gradient that blends from > transparent to white to give the effect that the underlying content is > fading out as you move down the screen. I?m able to achieve this effect > using a black and white linear gradient in combination with the blendScreen > ink but I need to be able to export the object (gradient plus underlying > controls) as an image keeping the effect intact. When I export it now the > ink effect is lost. > > 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 MikeKerner at roadrunner.com Mon Apr 3 13:36:51 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 3 Apr 2017 13:36:51 -0400 Subject: Private Repo Services In-Reply-To: <1491231564433-4713605.post@n4.nabble.com> References: <1491231564433-4713605.post@n4.nabble.com> Message-ID: And I didn't read far enough right on gitlab, either. When I was looking at it, I misread the left side, which is for me hosting, not for them hosting. From scott at tactilemedia.com Mon Apr 3 13:43:43 2017 From: scott at tactilemedia.com (Scott Rossi) Date: Mon, 3 Apr 2017 10:43:43 -0700 Subject: Gradients with transparency? In-Reply-To: <15b34dad3c0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <36BFF6BA-A3FA-48A2-A767-EEC5C56A1057@unimelb.edu.au> <15b34dad3c0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <46E71D2A-7E53-41E4-A614-B92342ECA9FA@tactilemedia.com> The thing about using a graphic gradient (as opposed to an image) is the graphic is infinitely more flexible: - variable size (no loss of quality when resizing) - variable colors - variable transparency As far as exporting goes, last I checked, I don?t think ink effects export intact, even when using ?with effects? in the snapshot syntax, so if you can?t get the visual result you want with the default ink, you may need to export a snapshot of the region of the card you need. Maybe support for exporting inks has improved recently (though in my quick dp4 test, exporting to the desktop crashes). Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design > On Apr 3, 2017, at 10:26 AM, J. Landman Gay via use-livecode wrote: > > Would exporting a snapshot work well enough for your needs? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > On April 3, 2017 4:39:07 AM Terry Judd via use-livecode wrote: > >> Is it possible to have a gradient with one of its end-points being transparent instead of a solid colour? >> >> I want to overlay a graphic with a vertical gradient that blends from transparent to white to give the effect that the underlying content is fading out as you move down the screen. I?m able to achieve this effect using a black and white linear gradient in combination with the blendScreen ink but I need to be able to export the object (gradient plus underlying controls) as an image keeping the effect intact. When I export it now the ink effect is lost. >> >> 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 richmondmathewson at gmail.com Mon Apr 3 14:26:42 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 3 Apr 2017 21:26:42 +0300 Subject: Cheesed off by 32xxx In-Reply-To: References: <9f77764c-2fd6-e42d-4759-d3d636fc52e9@gmail.com> <58E12061.4030607@pair.com> <477dd203-fb57-3c2a-c011-87825cfea15b@gmail.com> Message-ID: <4ba68b38-dfc0-92dd-b736-edf8bb7b1f89@gmail.com> Thanks for such an informative posting. On 4/3/17 9:58 am, Mark Waddingham via use-livecode wrote: > On 2017-04-02 19:07, Richmond Mathewson via use-livecode wrote: >> The problem, such as it is, is that the Unicode specifications have >> 128 * 8703 slots for glyphs (= a big number my mind cannot cope with) >> and the display in my "CHAR REF" stack is set up to cope with 128 >> glyphs a go: hence 8703 buttons. >> >> Of course I could be racist and leave out the Chinese ideograph slots >> (= about 70%) . . . > > You'd probably be okay with 8703 buttons (were there not a co-ordinate > magnitude limit), but certainly not with 128*8703 buttons. Oh: I am perfectly capable of pumping out 8703 buttons, that is NOT the problem. The problem is to have them placed sequentially one above the other in a "monster list" grouped into a 700 pixel high group with a vertical scrollbar: even that, as such, is not the problem: the problem is thatthere is no way I can stack those buttons up vertically prior to grouping them. 128*8703 not necessary at all (quite apart from the fact that I'd be even more out of my box than I am already to contemplate that). > > To give some context... > > Each button takes up at least 128 bytes in memory, so: > > 8703 buttons is about 1.4Mb - which isn't too bad > > 8703*128 buttons would be about 150Mb - which is substantially more > > Admittedly, neither of these will 'break the bank' in terms of memory > availability, even on machines of a G3 Mac vintage, however just > storing the representation of such things in memory is not the only > issue. The engine has to do things like: > > - render all the controls on the card > > - perform hit testing when the user clicks or interacts with the card > > - search for controls when you reference them in script > > Rendering requires a linear back to front scan of each control, > painting each one which is within the visible rect of the window the > card sits in. This means that if you have 8703*128 buttons it will > need to perform that many steps to render. Additionally, whenever a > small amount changes, it needs to do this again - as any one control > *could* have been moved or intersect with the area which has changed > (and thus require rendering). > > Hit testing is similar, although the process is from front to back, > and stops as soon as a control says it is the target of the mouse / > user interaction event. > > The third case, is the killer though. Looking up a control by name or > by later requires (on average) number of controls on card / 2 steps to > perform. If you use the (short) id, then there is a per-stack cache > which makes the lookup take 1 step if it has been looked up before but > the normal number of steps if it has not. > > In general, we'd never advise using so many controls on a single card > - and a data-oriented approach which is what others have suggested is > generally the best approach in this case. i.e. Update the content of a > small set of buttons as the user browses through the list. > >> I wonder if that limit is "cast in stone" or the Livecode people could >> expand it? > > Currently engine controls are limited to 16-bit quantities for > co-ordinates - which means a range of -32768 to 32768. The underlying > rendering library we use (libgraphics), however, uses floats (32-bit > real numbers which given an integer range up to around 2^24). So, > updating the engine to use floats or similar in its co-ordinates for > controls is certainly possible, just not a task we've undertaken yet. > > Warmest Regards, > > Mark. > Best, Richmond. From jiml at netrin.com Mon Apr 3 15:25:17 2017 From: jiml at netrin.com (Jim Lambert) Date: Mon, 3 Apr 2017 12:25:17 -0700 Subject: Cheesed off by 32xxx In-Reply-To: References: Message-ID: <7911C444-F657-489D-AACA-9B010C555D9A@netrin.com> > RichardG wrote: > > the memory and CPU requirements for working with tens of thousands of objects can be onerous Not to mention how onerous it would be for the poor end user to work with tens of thousands of objects! Jim Lambert From tom at makeshyft.com Mon Apr 3 15:48:28 2017 From: tom at makeshyft.com (Tom Glod) Date: Mon, 3 Apr 2017 15:48:28 -0400 Subject: Is there a way to find out the SQLite Driver version of my LC ? Message-ID: is there a way of finding the SQLite driver version of my LC Version? can't find it for the life of me... its probably obvious and right there...preferably by script .. There appear tp be lots of performance improvements, dramatic ones, in recent versions. https://www.sqlite.org/news.html Thanks, Tom From dan at clearvisiontech.com Mon Apr 3 15:49:41 2017 From: dan at clearvisiontech.com (Dan Friedman) Date: Mon, 3 Apr 2017 19:49:41 +0000 Subject: New Features? Message-ID: Anyone know where to write LC for a feature request? In case your curious? Don?t know if it?s possible or not, but I want to request the abliltiy to set the scaleFactor of a object (specifically a group of objects). Thanks in advance, -Dan From wow at together.net Mon Apr 3 15:52:16 2017 From: wow at together.net (Richard Miller) Date: Mon, 3 Apr 2017 15:52:16 -0400 Subject: iOS app rejected five times because of background audio setting In-Reply-To: <7DD7340C-B71A-4008-99EF-195655BBAF4B@iotecdigital.com> References: <40097D21-717F-4EF4-A744-0418ADC3ECCE@m-r-d.de> <7DD7340C-B71A-4008-99EF-195655BBAF4B@iotecdigital.com> Message-ID: I have gone back and forth with Apple five times in an attempt to get this setting correct. I made the mistake originally of enabling the background audio option in the iOS standalone settings area. I was trying to prevent the app from exiting when the user switched to a different app. I know that this setting solves that issue, but it also caused Apple to reject my app because I was not including any background audio. I have since realized that the correct way to deal with this is to modify the "exit on suspend" clause in the livecodescript file. But after creating a new standalone and submitting it to Apple, they keep telling me I am still referencing the backgroundaudio option. I tried making changes to the info.plist and settings.plist files, but I can't seem to get this right. I just downloaded a fresh copy of LC 9.0 and created a new standalone. When I look at the info.plist file in the standalone, this is what I find: UIBackgroundModes Is this correct? Is this the way the code should read when the background audio option is not being used? Thanks for any help with this, Richard Miller From bonnmike at gmail.com Mon Apr 3 16:06:35 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 3 Apr 2017 14:06:35 -0600 Subject: Is there a way to find out the SQLite Driver version of my LC ? In-Reply-To: References: Message-ID: You should be able to open an in memory database (or database file, whatever) and then do.. *get *revdatafromquery(,,1,"select sqlite_version()") -- where 1 is the database connector id, and the select statement is obvious. On Mon, Apr 3, 2017 at 1:48 PM, Tom Glod via use-livecode < use-livecode at lists.runrev.com> wrote: > is there a way of finding the SQLite driver version of my LC Version? can't > find it for the life of me... its probably obvious and right > there...preferably by script .. > > There appear tp be lots of performance improvements, dramatic ones, in > recent versions. > > https://www.sqlite.org/news.html > > > > Thanks, > > Tom > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Mon Apr 3 16:09:22 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 3 Apr 2017 14:09:22 -0600 Subject: Is there a way to find out the SQLite Driver version of my LC ? In-Reply-To: References: Message-ID: btw. on ver 9 dp6 I get 3.15.0 On Mon, Apr 3, 2017 at 2:06 PM, Mike Bonner wrote: > You should be able to open an in memory database (or database file, > whatever) and then do.. > > *get *revdatafromquery(,,1,"select sqlite_version()") -- where 1 is the > database connector id, and the select statement is obvious. > > On Mon, Apr 3, 2017 at 1:48 PM, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> is there a way of finding the SQLite driver version of my LC Version? >> can't >> find it for the life of me... its probably obvious and right >> there...preferably by script .. >> >> There appear tp be lots of performance improvements, dramatic ones, in >> recent versions. >> >> https://www.sqlite.org/news.html >> >> >> >> Thanks, >> >> Tom >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From devin_asay at byu.edu Mon Apr 3 16:17:58 2017 From: devin_asay at byu.edu (Devin Asay) Date: Mon, 3 Apr 2017 20:17:58 +0000 Subject: New Features? In-Reply-To: References: Message-ID: <0F6BCEE0-D5ED-43E6-823B-17F1C84261D9@byu.edu> On Apr 3, 2017, at 1:49 PM, Dan Friedman via use-livecode > wrote: Anyone know where to write LC for a feature request? In case your curious? Don?t know if it?s possible or not, but I want to request the abliltiy to set the scaleFactor of a object (specifically a group of objects). Dan, You can file a feature request at http://quality.livecode.com/enter_bug.cgi. Just select Feature Request under step 2, then describe it as best you can in the description section. HTH Devin Devin Asay Director Office of Digital Humanities Brigham Young University From rdimola at evergreeninfo.net Mon Apr 3 16:32:06 2017 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 3 Apr 2017 16:32:06 -0400 Subject: iOS app rejected five times because of background audio setting In-Reply-To: References: <40097D21-717F-4EF4-A744-0418ADC3ECCE@m-r-d.de> <7DD7340C-B71A-4008-99EF-195655BBAF4B@iotecdigital.com> Message-ID: <00b801d2acb9$5cb1d050$161570f0$@net> Richard, Been down this road. Ticking the "Background Audio" option sets UIBackgroundModes key to "audio" as well as setting UIApplicationExitsOnSuspend=False to keep you app active. If you are not actually playing background audio then you will get rejected. The way to do this is to edit the app. 1) In Tools/Runtime/iOS... set all the folders to read/write. 2) Edit the setting.plist in each of the folders and change UIApplicationExitsOnSuspend key value to "False" (or like I do...delete the key all together) That's it! Apple will not complain. If you need to have some apps with it on and some with it off then make a copy of the app and change the setting.plist's in the copy. I only change the devices(only 2) and leave the simulators as is (I have 5 of them). If I want to test this behavior I just put the app on a device. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Richard Miller via use-livecode Sent: Monday, April 03, 2017 3:52 PM To: How to use LiveCode Cc: Richard Miller Subject: iOS app rejected five times because of background audio setting I have gone back and forth with Apple five times in an attempt to get this setting correct. I made the mistake originally of enabling the background audio option in the iOS standalone settings area. I was trying to prevent the app from exiting when the user switched to a different app. I know that this setting solves that issue, but it also caused Apple to reject my app because I was not including any background audio. I have since realized that the correct way to deal with this is to modify the "exit on suspend" clause in the livecodescript file. But after creating a new standalone and submitting it to Apple, they keep telling me I am still referencing the backgroundaudio option. I tried making changes to the info.plist and settings.plist files, but I can't seem to get this right. I just downloaded a fresh copy of LC 9.0 and created a new standalone. When I look at the info.plist file in the standalone, this is what I find: UIBackgroundModes Is this correct? Is this the way the code should read when the background audio option is not being used? Thanks for any help with this, Richard Miller _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Mon Apr 3 16:29:10 2017 From: tom at makeshyft.com (Tom Glod) Date: Mon, 3 Apr 2017 16:29:10 -0400 Subject: Is there a way to find out the SQLite Driver version of my LC ? In-Reply-To: References: Message-ID: thanks mike....should have thought of that. On Mon, Apr 3, 2017 at 4:09 PM, Mike Bonner via use-livecode < use-livecode at lists.runrev.com> wrote: > btw. on ver 9 dp6 I get 3.15.0 > > On Mon, Apr 3, 2017 at 2:06 PM, Mike Bonner wrote: > > > You should be able to open an in memory database (or database file, > > whatever) and then do.. > > > > *get *revdatafromquery(,,1,"select sqlite_version()") -- where 1 is the > > database connector id, and the select statement is obvious. > > > > On Mon, Apr 3, 2017 at 1:48 PM, Tom Glod via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> is there a way of finding the SQLite driver version of my LC Version? > >> can't > >> find it for the life of me... its probably obvious and right > >> there...preferably by script .. > >> > >> There appear tp be lots of performance improvements, dramatic ones, in > >> recent versions. > >> > >> https://www.sqlite.org/news.html > >> > >> > >> > >> Thanks, > >> > >> Tom > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- *Tom Glod* CEO @ *MakeShyft R.D.A* - www.makeshyft.com Developer of *U.M.P* - www.IamUMP.com From ambassador at fourthworld.com Mon Apr 3 16:45:50 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 3 Apr 2017 13:45:50 -0700 Subject: New Features? In-Reply-To: References: Message-ID: Dan Friedman wrote: > Anyone know where to write LC for a feature request? The bug DB allows feature request submissions. > In case your curious? Don?t know if it?s possible or not, but I > want to request the abliltiy to set the scaleFactor of a object > (specifically a group of objects). Already there: http://quality.livecode.com/show_bug.cgi?id=11842 -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From rdimola at evergreeninfo.net Mon Apr 3 17:03:33 2017 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 3 Apr 2017 17:03:33 -0400 Subject: iOS app rejected five times because of background audio setting In-Reply-To: References: <40097D21-717F-4EF4-A744-0418ADC3ECCE@m-r-d.de> <7DD7340C-B71A-4008-99EF-195655BBAF4B@iotecdigital.com> Message-ID: <00cc01d2acbd$c1af6720$450e3560$@net> After reading closer: 1) Make sure that the "Background Audio" is un-ticked. 2) Do the "plist hack" as enumerated in my last email. 3) This is all I do and have never been rejected for the "Background Audio" issue. 4) I have never tried to submit to the store with v9. This might be a v9 issue. UIBackgroundModes Seems to be correct. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Richard Miller via use-livecode Sent: Monday, April 03, 2017 3:52 PM To: How to use LiveCode Cc: Richard Miller Subject: iOS app rejected five times because of background audio setting I have gone back and forth with Apple five times in an attempt to get this setting correct. I made the mistake originally of enabling the background audio option in the iOS standalone settings area. I was trying to prevent the app from exiting when the user switched to a different app. I know that this setting solves that issue, but it also caused Apple to reject my app because I was not including any background audio. I have since realized that the correct way to deal with this is to modify the "exit on suspend" clause in the livecodescript file. But after creating a new standalone and submitting it to Apple, they keep telling me I am still referencing the backgroundaudio option. I tried making changes to the info.plist and settings.plist files, but I can't seem to get this right. I just downloaded a fresh copy of LC 9.0 and created a new standalone. When I look at the info.plist file in the standalone, this is what I find: UIBackgroundModes Is this correct? Is this the way the code should read when the background audio option is not being used? Thanks for any help with this, Richard Miller _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From Wow at together.net Mon Apr 3 17:31:03 2017 From: Wow at together.net (Richard Miller) Date: Mon, 3 Apr 2017 17:31:03 -0400 Subject: iOS app rejected five times because of background audio setting In-Reply-To: <00cc01d2acbd$c1af6720$450e3560$@net> References: <40097D21-717F-4EF4-A744-0418ADC3ECCE@m-r-d.de> <7DD7340C-B71A-4008-99EF-195655BBAF4B@iotecdigital.com> <00cc01d2acbd$c1af6720$450e3560$@net> Message-ID: <0988B08B-CDEF-4F4A-8E5F-91DD126DB549@together.net> Thanks for the info, Ralph. I had figured out the exit-on-suspend issue previously. In my last app submission, I completely removed the entire section in the info.plist file which referenced UIBackgroundModes, but they still rejected it on the same claim that background audio was enabled. This tells me one of two things: there is some other file in the standalone that is referencing this function, or, by completely removing it from info.plist, this effectively defaults to enabling that function. I am hoping that the precise code I included in my previous email is the correct way to disable background audio in info.plist, and that there is no other file other than the info.plist that needs to be addressed. Richard Sent from my iPhone > On Apr 3, 2017, at 5:03 PM, Ralph DiMola wrote: > > After reading closer: > 1) Make sure that the "Background Audio" is un-ticked. > 2) Do the "plist hack" as enumerated in my last email. > 3) This is all I do and have never been rejected for the "Background Audio" > issue. > 4) I have never tried to submit to the store with v9. This might be a v9 > issue. > > UIBackgroundModes > > > > > Seems to be correct. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of Richard Miller via use-livecode > Sent: Monday, April 03, 2017 3:52 PM > To: How to use LiveCode > Cc: Richard Miller > Subject: iOS app rejected five times because of background audio setting > > I have gone back and forth with Apple five times in an attempt to get this > setting correct. I made the mistake originally of enabling the background > audio option in the iOS standalone settings area. I was trying to prevent > the app from exiting when the user switched to a different app. I know that > this setting solves that issue, but it also caused Apple to reject my app > because I was not including any background audio. > > I have since realized that the correct way to deal with this is to modify > the "exit on suspend" clause in the livecodescript file. But after creating > a new standalone and submitting it to Apple, they keep telling me I am still > referencing the backgroundaudio option. I tried making changes to the > info.plist and settings.plist files, but I can't seem to get this right. > > I just downloaded a fresh copy of LC 9.0 and created a new standalone. > When I look at the info.plist file in the standalone, this is what I find: > > UIBackgroundModes > > > > > > Is this correct? Is this the way the code should read when the background > audio option is not being used? > > Thanks for any help with this, > Richard Miller > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From hh at hyperhh.de Mon Apr 3 17:33:02 2017 From: hh at hyperhh.de (hh) Date: Mon, 3 Apr 2017 23:33:02 +0200 Subject: New Features? Message-ID: Interesting thread about scalefactor (lower half is your issue): http://runtime-revolution.278305.n4.nabble.com/scaleFactor-strangeness-tc4697399.html#none >Dan F. wrote: >Anyone know where to write LC for a feature request? >In case your curious? Don?t know if it?s possible or not, but I want to request the >abliltiy to set the scaleFactor of a object (specifically a group of objects). From bogdanoff at me.com Mon Apr 3 17:33:58 2017 From: bogdanoff at me.com (Peter Bogdanoff) Date: Mon, 03 Apr 2017 14:33:58 -0700 Subject: Script to find bottom of lowest field Message-ID: <470940E9-340C-4B16-9554-47E7D978900A@me.com> Hi script wizards! I have a card containing a number of fields. I want to add another field, but position this new field to have its top 20 pixels lower than the bottom of any of the existing fields. Does anyone already have a magic script to do this? I also want to learn something new! Peter Bogdanoff From rdimola at evergreeninfo.net Mon Apr 3 17:51:57 2017 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 3 Apr 2017 17:51:57 -0400 Subject: iOS app rejected five times because of background audio setting In-Reply-To: <0988B08B-CDEF-4F4A-8E5F-91DD126DB549@together.net> References: <40097D21-717F-4EF4-A744-0418ADC3ECCE@m-r-d.de> <7DD7340C-B71A-4008-99EF-195655BBAF4B@iotecdigital.com> <00cc01d2acbd$c1af6720$450e3560$@net> <0988B08B-CDEF-4F4A-8E5F-91DD126DB549@together.net> Message-ID: <00d401d2acc4$844c0df0$8ce429d0$@net> I just looked at the info.plist from my last app that Apple approved. 1) The UIApplicationExitsOnSuspend key is not there. 2) the UIBackgroundModes key looks like what you see. UIBackgroundModes What does your info.plist in the app look like? OPTION 2: You bumped up against an less than expert reviewer. If your plist looks correct then challenge them. I have done that in the past when I was sure they were wrong and they acquiesced. If that does not work then go to arbitration. I feel your pain... Let us know how it ends. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Richard Miller via use-livecode Sent: Monday, April 03, 2017 5:31 PM To: use-livecode at lists.runrev.com Cc: Richard Miller Subject: Re: iOS app rejected five times because of background audio setting Thanks for the info, Ralph. I had figured out the exit-on-suspend issue previously. In my last app submission, I completely removed the entire section in the info.plist file which referenced UIBackgroundModes, but they still rejected it on the same claim that background audio was enabled. This tells me one of two things: there is some other file in the standalone that is referencing this function, or, by completely removing it from info.plist, this effectively defaults to enabling that function. I am hoping that the precise code I included in my previous email is the correct way to disable background audio in info.plist, and that there is no other file other than the info.plist that needs to be addressed. Richard Sent from my iPhone > On Apr 3, 2017, at 5:03 PM, Ralph DiMola wrote: > > After reading closer: > 1) Make sure that the "Background Audio" is un-ticked. > 2) Do the "plist hack" as enumerated in my last email. > 3) This is all I do and have never been rejected for the "Background Audio" > issue. > 4) I have never tried to submit to the store with v9. This might be a > v9 issue. > > UIBackgroundModes > > > > > Seems to be correct. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On > Behalf Of Richard Miller via use-livecode > Sent: Monday, April 03, 2017 3:52 PM > To: How to use LiveCode > Cc: Richard Miller > Subject: iOS app rejected five times because of background audio > setting > > I have gone back and forth with Apple five times in an attempt to get > this setting correct. I made the mistake originally of enabling the > background audio option in the iOS standalone settings area. I was > trying to prevent the app from exiting when the user switched to a > different app. I know that this setting solves that issue, but it also > caused Apple to reject my app because I was not including any background audio. > > I have since realized that the correct way to deal with this is to > modify the "exit on suspend" clause in the livecodescript file. But > after creating a new standalone and submitting it to Apple, they keep > telling me I am still referencing the backgroundaudio option. I tried > making changes to the info.plist and settings.plist files, but I can't seem to get this right. > > I just downloaded a fresh copy of LC 9.0 and created a new standalone. > When I look at the info.plist file in the standalone, this is what I find: > > UIBackgroundModes > > > > > > Is this correct? Is this the way the code should read when the > background audio option is not being used? > > Thanks for any help with this, > Richard Miller > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Mon Apr 3 17:58:05 2017 From: hh at hyperhh.de (hh) Date: Mon, 3 Apr 2017 23:58:05 +0200 Subject: Script to find bottom of lowest field Message-ID: on mouseUp put 20+maxbottom() end mouseUp -- note: invisible or hidden fields are included function maxbottom repeat with i=1 to the num of fields of this card put the bottom of fld i of this card into b[i] end repeat return max(b) end maxbottom From rdimola at evergreeninfo.net Mon Apr 3 18:02:05 2017 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 3 Apr 2017 18:02:05 -0400 Subject: Script to find bottom of lowest field In-Reply-To: <470940E9-340C-4B16-9554-47E7D978900A@me.com> References: <470940E9-340C-4B16-9554-47E7D978900A@me.com> Message-ID: <00d801d2acc5$ee99b030$cbcd1090$@net> Not tested: Put -99999 into tMax Repeat with I = 1 to the number of fields of this card Put the max (tmax,the bottom of field I) into tMax End repeat Create field Put it into tField Set the top tField to tMax + 20 Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Peter Bogdanoff via use-livecode Sent: Monday, April 03, 2017 5:34 PM To: How to use LiveCode Cc: Peter Bogdanoff Subject: Script to find bottom of lowest field Hi script wizards! I have a card containing a number of fields. I want to add another field, but position this new field to have its top 20 pixels lower than the bottom of any of the existing fields. Does anyone already have a magic script to do this? I also want to learn something new! Peter Bogdanoff _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Apr 3 18:30:37 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 3 Apr 2017 22:30:37 +0000 Subject: Negative Numbers and NumberFormat In-Reply-To: <1491239780477-4713610.post@n4.nabble.com> References: <69CFF2C4-1223-48E3-AA54-94824372E8B0@iotecdigital.com> <1491239780477-4713610.post@n4.nabble.com> Message-ID: Yes I expected this. It's not that I cannot work around it, it's just that it seems it ought to put 2 zeros where 2 zeros are specified in the numberFormat and if it doesn't and should, then I will file an (admittedly low priority) bug report. Bob S > On Apr 3, 2017, at 10:16 , dunbarx via use-livecode wrote: > > -01:00:00 > > Craig Newman From bobsneidar at iotecdigital.com Mon Apr 3 18:34:04 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 3 Apr 2017 22:34:04 +0000 Subject: Script to find bottom of lowest field In-Reply-To: <00d801d2acc5$ee99b030$cbcd1090$@net> References: <470940E9-340C-4B16-9554-47E7D978900A@me.com> <00d801d2acc5$ee99b030$cbcd1090$@net> Message-ID: <35D39B02-9E57-4CE7-9E32-20C1FCCAAD47@iotecdigital.com> A sneakier way would be to select all, group them, then get the bottom of the group, then ungroup them again. Account for group margins (2 or 3 pixels or something). If there are other objects of course that won't help you. Bob S > On Apr 3, 2017, at 15:02 , Ralph DiMola via use-livecode wrote: > > Put -99999 into tMax > Repeat with I = 1 to the number of fields of this card > Put the max (tmax,the bottom of field I) into tMax > End repeat > > Create field > Put it into tField > Set the top tField to tMax + 20 > > Ralph DiMola From dan at clearvisiontech.com Mon Apr 3 18:34:15 2017 From: dan at clearvisiontech.com (Dan Friedman) Date: Mon, 3 Apr 2017 22:34:15 +0000 Subject: Single File Deploy on Windows? Message-ID: <09B0A8A8-4901-4B1D-BC3B-799698DC0A46@clearvisiontech.com> So, I deliver a single file for my LC standalones on Windows. Any required DLLs or other needed files are downloaded at runtime and put in place on launch. However, in LC 9.0.0 it seems there is a dll, ?tsNet.dll? that must be in place to even launch! UG!! Is there a way to deploy a Windows EXE that is a single file? For god?s sake, please don?t make be use an installer!! -Dan From bogdanoff at me.com Mon Apr 3 18:39:26 2017 From: bogdanoff at me.com (Peter Bogdanoff) Date: Mon, 03 Apr 2017 15:39:26 -0700 Subject: Script to find bottom of lowest field In-Reply-To: References: Message-ID: <5D1AE63E-F9CC-469E-B1CD-BC5D01A5918D@me.com> Yes, max and an array. Thanks Hermann!! On Apr 3, 2017, at 2:58 PM, hh via use-livecode wrote: > on mouseUp > put 20+maxbottom() > end mouseUp > > -- note: invisible or hidden fields are included > function maxbottom > repeat with i=1 to the num of fields of this card > put the bottom of fld i of this card into b[i] > end repeat > return max(b) > end maxbottom > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From capellan2000 at gmail.com Mon Apr 3 18:41:25 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 3 Apr 2017 18:41:25 -0400 Subject: Gradients with transparency? Message-ID: Hi Terry, Terry Judd wrote: > I want to overlay a graphic with a vertical gradient > that blends from transparent to white to give the effect > that the underlying content is fading out as you move > down the screen. I?m able to achieve this effect using a > black and white linear gradient in combination with the > blendScreen ink but I need to be able to export the object > (gradient plus underlying controls) as an image keeping the > effect intact. When I export it now the ink effect is lost. In LiveCode, there is another way to do this: 1- Import an Image without Transparency... or create a snapshot of a group, vector graphic, field, or any other control inside the card. 2A- Import a transparent PNG... or 2B- Take a snapshot of a vector graphic that contains a Green to transparent gradient For example: on mouseUp import snapshot from grc 1 with effects end mouseUp 3- Put that transparent PNG on top of the image without transparency... 4- Run this script from a button to create a mask from PNG... on mouseUp set the locklocation of img 1 to true import snapshot from img 1 set the loc of last img to the loc of img 1 delete img 1 -- after deleting img 1 (an image without transparency), -- then img 2 (a transparent png) becomes img 1 crop img 2 to the rect of img 1 set the width of img 1 to the width of img 2 set the height of img 1 to the height of img 2 set the alphadata of image 2 to the alphadata of image 1 end mouseUp Download a stack from this forum thread: http://forums.livecode.com/viewtopic.php?f=10&t=28352 Alphamask from Transparent PNG.livecode.zip (1k) Al From hh at hyperhh.de Mon Apr 3 18:49:16 2017 From: hh at hyperhh.de (hh) Date: Tue, 4 Apr 2017 00:49:16 +0200 Subject: Negative Numbers and NumberFormat Message-ID: <984E2D1C-F1F3-4FCF-A601-FB1A5BBE71E6@hyperhh.de> TMHO, this could be a feature request rather than a bug report. The zeros in the number format determine the num of characters and "-" is one. Also we have -0 = 0. So what about "-01:-00:-00" ?? > Bob S. wrote: > "-01:00:00"? > Yes I expected this. It's not that I cannot work around it, > it's just that it seems it ought to put 2 zeros where 2 zeros > are specified in the numberFormat and if it doesn't and should, > then I will file an (admittedly low priority) bug report. From ambassador at fourthworld.com Mon Apr 3 19:13:11 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 3 Apr 2017 16:13:11 -0700 Subject: Single File Deploy on Windows? In-Reply-To: <09B0A8A8-4901-4B1D-BC3B-799698DC0A46@clearvisiontech.com> References: <09B0A8A8-4901-4B1D-BC3B-799698DC0A46@clearvisiontech.com> Message-ID: Dan Friedman wrote: > So, I deliver a single file for my LC standalones on Windows. Any > required DLLs or other needed files are downloaded at runtime and put > in place on launch. However, in LC 9.0.0 it seems there is a dll, > ?tsNet.dll? that must be in place to even launch! UG!! Is there a > way to deploy a Windows EXE that is a single file? For god?s sake, > please don?t make be use an installer!! Long-term dream: I would LOVE to see some way to embed externals within the executable file the way SuperCard does (no, SC doesn't use the resource fork; never did, everything is mapped in its data fork). I'm not sure why we can't, since AFAIK the code within a DLL is what's important to LC, not necessarily that it exists in a physically separate file, no? I long to be able to return to truly stand-alone standalones. Short-term reality: You can download via HTTP/HTTPS using only libURL, no externals needed. HTTPS will require the revSecurity DLL, but conceivably (as I've done on one project) you could download that via HTTP and then use it for anything needing HTTPS. All that said, I think I've given up on the dream of stand-alone standalones, and have gotten back to finishing my installer. Drag. I used to love sending people a single file they could just unzip-and-go. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bobsneidar at iotecdigital.com Mon Apr 3 19:22:09 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 3 Apr 2017 23:22:09 +0000 Subject: Negative Numbers and NumberFormat In-Reply-To: <984E2D1C-F1F3-4FCF-A601-FB1A5BBE71E6@hyperhh.de> References: <984E2D1C-F1F3-4FCF-A601-FB1A5BBE71E6@hyperhh.de> Message-ID: <87EDC3D2-7A7E-4CEF-A2AF-355729386116@iotecdigital.com> The time format is irrelevant. It just so happens I have a function for calculating the difference in time, and when the first character is a - I know the end time is earlier than the start time, which was what I was checking for. And I think you are mistaken. numberFormat sets the format for numeric values, not just any characters. You should rather say the number format determine the num of DIGITS. Signage is an acceptable part of a numeric value. A dollar sign or a comma for example are not. Still, if everyone expects that set the number format to "00"; return 0-1 should return -1, well then that's how it should be. Bob S > On Apr 3, 2017, at 15:49 , hh via use-livecode wrote: > > TMHO, this could be a feature request rather than a bug report. > The zeros in the number format determine the num of characters > and "-" is one. > > Also we have -0 = 0. So what about "-01:-00:-00" ?? From hh at hyperhh.de Mon Apr 3 19:55:57 2017 From: hh at hyperhh.de (hh) Date: Tue, 4 Apr 2017 01:55:57 +0200 Subject: Negative Numbers and NumberFormat Message-ID: > Bob S. worte: > I have a function for calculating the difference in time Then you mean -(01:00:00) and not (-01):(00):(00), quite different. AFAIK most languages do such time evaluations as follows 1) compute the time in seconds, 2) convert its absolute value to time format, and 3) if negative, put "-" before the formatted time. That is, the whole display is not an immediate result of setting the number format. > You should rather say the number format determines the num of DIGITS. That's what you wish to have (good idea). But it's not like that, its the length of the number as string. You gave the proof yourself. It's the same with the number formats from format(). Probably LC uses internally format() for its numberFormat. From terry.judd at unimelb.edu.au Mon Apr 3 19:56:08 2017 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Mon, 3 Apr 2017 23:56:08 +0000 Subject: Gradients with transparency? In-Reply-To: References: Message-ID: <79259929-AABC-4539-AE43-E5EF5D498685@unimelb.edu.au> Thanks for all the responses. I really wanted to use a graphic rather than importing an image for all the reasons that Scott mentioned. Mark?s method works of adding an alpha value to the ramp settings of the fillgradient property of the graphic works perfectly so there is a (relatively) simple solution available. I just need to make sure that I remember it for next time as well ;) While we?re on gradient properties, does anyone else ever have problems getting the backgroundColor gradient setting window to show up? Unless you have a pretty big screen (I?m working on a 13 inch Macbook Air) the properties palette is so wide that the settings window can open off screen, making it inaccessible. If you close the properties palette, open it again and move it so the right edge is clear of the right edge of the screen then you can usually get the settings window to show. But not always. Terry... On 4/04/2017 8:41 am, "use-livecode on behalf of Alejandro Tejada via use-livecode" wrote: Hi Terry, Terry Judd wrote: > I want to overlay a graphic with a vertical gradient > that blends from transparent to white to give the effect > that the underlying content is fading out as you move > down the screen. I?m able to achieve this effect using a > black and white linear gradient in combination with the > blendScreen ink but I need to be able to export the object > (gradient plus underlying controls) as an image keeping the > effect intact. When I export it now the ink effect is lost. In LiveCode, there is another way to do this: 1- Import an Image without Transparency... or create a snapshot of a group, vector graphic, field, or any other control inside the card. 2A- Import a transparent PNG... or 2B- Take a snapshot of a vector graphic that contains a Green to transparent gradient For example: on mouseUp import snapshot from grc 1 with effects end mouseUp 3- Put that transparent PNG on top of the image without transparency... 4- Run this script from a button to create a mask from PNG... on mouseUp set the locklocation of img 1 to true import snapshot from img 1 set the loc of last img to the loc of img 1 delete img 1 -- after deleting img 1 (an image without transparency), -- then img 2 (a transparent png) becomes img 1 crop img 2 to the rect of img 1 set the width of img 1 to the width of img 2 set the height of img 1 to the height of img 2 set the alphadata of image 2 to the alphadata of image 1 end mouseUp Download a stack from this forum thread: http://forums.livecode.com/viewtopic.php?f=10&t=28352 Alphamask from Transparent http://PNG.livecode.zip (1k) Al _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From roger.e.eller at sealedair.com Mon Apr 3 21:24:57 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Mon, 3 Apr 2017 21:24:57 -0400 Subject: Single File Deploy on Windows? In-Reply-To: <09B0A8A8-4901-4B1D-BC3B-799698DC0A46@clearvisiontech.com> References: <09B0A8A8-4901-4B1D-BC3B-799698DC0A46@clearvisiontech.com> Message-ID: Can an empty file placeholder be created within preOpenStack, then extract the real DLL when it is really needed? On Apr 3, 2017 6:34 PM, "Dan Friedman via use-livecode" < use-livecode at lists.runrev.com> wrote: > So, I deliver a single file for my LC standalones on Windows. Any > required DLLs or other needed files are downloaded at runtime and put in > place on launch. However, in LC 9.0.0 it seems there is a dll, ?tsNet.dll? > that must be in place to even launch! UG!! Is there a way to deploy a > Windows EXE that is a single file? For god?s sake, please don?t make be > use an installer!! > > -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 capellan2000 at gmail.com Mon Apr 3 21:52:16 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 3 Apr 2017 21:52:16 -0400 Subject: New Features? Message-ID: Hi Dan, Dan Friedman wrote: > I want to request the ability to set the scaleFactor > of a object (specifically a group of objects). Could you test the resize script of this stack? http://forums.livecode.com/viewtopic.php?f=10&t=28042 After I finish some pending work, I plan to expand this script to deal with exceptions like reposition controls that could (or should) not be resized like radio buttons. Al From dochawk at gmail.com Mon Apr 3 22:04:14 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 3 Apr 2017 19:04:14 -0700 Subject: Cheesed off by 32xxx In-Reply-To: References: <2cf2f72f-15d2-b33f-9cb8-7eeafcf77477@fourthworld.com> Message-ID: On Mon, Apr 3, 2017 at 10:06 AM, Stephen Barncard via use-livecode < use-livecode at lists.runrev.com> wrote: > Sometimes an illusion of an illusion in the illusion. So that's my > allusion. > elusively alluded alliteration . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From charles at techstrategies.com.au Tue Apr 4 03:44:23 2017 From: charles at techstrategies.com.au (Charles Warwick) Date: Tue, 4 Apr 2017 17:44:23 +1000 Subject: tsNet docs? In-Reply-To: <042c110f-dea0-97b5-a41f-46adb41c8e75@fourthworld.com> References: <042c110f-dea0-97b5-a41f-46adb41c8e75@fourthworld.com> Message-ID: <5b476bd2-03cd-b26e-d976-29c9993a73ed@techstrategies.com.au> Hi Richard, I think I am noticing a potentially related bug when an invalid path is used in the SFTP transfer - I am looking into it now. Can you confirm that you are using the complete path for the destination path in the URL? Unlike FTP, SFTP paths are not relative to the user's home directory. For example, if a user's home directory is /home/bob and you want to upload a file "test.txt" to the /home/bob/uploaddir/ directory, the URL would need to look something like this: sftp://my.sftp.server.host/home/bob/uploaddir/test.txt Please file a bug report and I will get an updated version out for you to test and see if we can confirm this is the same issue. Cheers, Charles On 3/04/2017 8:23 AM, Richard Gaskin via use-livecode wrote: > Charles Warwick wrote: > > > Firstly my apologies on the lack of documentation, it is definitely > > on my todo list and I am working on some Livecode lessons for tsNet > > at the moment. > > Looking forward to them - thanks. > > > > I have just double checked that stack and noticed that the call to > > tsNetUploadSync is using the wrong syntax (it changed at one point) > > which could be causing you issues. > > > > An updated version is now available at that same URL with the > > corrected the syntax for that call and another button so that there > > are now examples for both uploading via SFTP and FTPS. > > > > These should work correctly on Indy and I have confirmed that here. > > Thanks. I'm no longer getting the license error with either FTPS or > SFTP, and indeed I was able to upload a file with FTPS so that much is > good. > > With SFTP, however, I'm getting weird results, something I've never > seen before, like LC is in some sort of semi-hung state. > > I fill in the relevant fields, click "SFTP Upload Example", but then I > don't get anything in the Results field and as long as I care to wait > my CPU monitor shows LC churning up about 23%, but there's no visible > indication that anything's happening. > > Hoping to explore the script to guess what might be happening, I found > I could switch tool modes and right-click on the button, but when I > select "Edit Script" in the popup button nothing happens. > > At that point some things are unresponsive, others eventually become > responsive after long delays, and -- weirdest of all - after I quit C > it's still shown as a process in my process list. > > This is on Ubuntu 14.04, with LC v9 DP6. > > Any other info I can provide? Should I file a formal bug report on this? > From richmondmathewson at gmail.com Tue Apr 4 04:50:13 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 4 Apr 2017 11:50:13 +0300 Subject: RevMedia and back-to-the-future Message-ID: <8161bb1b-cd06-b9b2-42d4-98a61f638931@gmail.com> I would like to install RevMedia (the free version) on my G5 iMac running Mac OS 105 but the licence seems to have expired. Any bright ideas on this? Richmond. From richmondmathewson at gmail.com Tue Apr 4 06:49:37 2017 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 4 Apr 2017 13:49:37 +0300 Subject: Mysterious customer Message-ID: I pumped out a 32-bit Mac standalone from my Char Ref stack and released it through MacUpdate as a freebie, and have had a series of e-mails from someone called "Artie" who says that the standalone (886 pixels high) won't fit on his Mac Laptop that has a screen res of 2880 x 1880. This seems odd to say the least. Richmond. From roger.e.eller at sealedair.com Tue Apr 4 08:06:33 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 4 Apr 2017 08:06:33 -0400 Subject: Mysterious customer In-Reply-To: References: Message-ID: Is it possible that "Artie" has his display set to a lower resolution to compensate for vision impairment? ~Roger On Tue, Apr 4, 2017 at 6:49 AM, Richmond via use-livecode < use-livecode at lists.runrev.com> wrote: > I pumped out a 32-bit Mac standalone from my Char Ref stack and > > released it through MacUpdate as a freebie, and have had a series of > e-mails from > > someone called "Artie" who says that the standalone (886 pixels high) > won't fit on his > > Mac Laptop that has a screen res of 2880 x 1880. > > This seems odd to say the least. > > Richmond. > From harrison at all-auctions.com Tue Apr 4 09:30:41 2017 From: harrison at all-auctions.com (Rick Harrison) Date: Tue, 4 Apr 2017 09:30:41 -0400 Subject: Mysterious customer In-Reply-To: References: Message-ID: <61A9807A-570B-4C8A-9FB5-7315EF5C3DB2@all-auctions.com> Hi Roger, I think you have hit upon the real problem, and the correct solution. If he is looking at his Mac at a resolution of either 1024 x 640 or 1280 by 800 then Richmond?s app wouldn?t fit at all properly on the screen. For my everyday use I usually have my screen set to 1280 by 800 because I don?t like the small text. When I work on an app I always switch to 1920 by 1200. Good catch! Rick That sounds like the answer > On Apr 4, 2017, at 8:06 AM, Roger Eller via use-livecode wrote: > > Is it possible that "Artie" has his display set to a lower resolution to > compensate for vision impairment? > > ~Roger > > On Tue, Apr 4, 2017 at 6:49 AM, Richmond via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I pumped out a 32-bit Mac standalone from my Char Ref stack and >> >> released it through MacUpdate as a freebie, and have had a series of >> e-mails from >> >> someone called "Artie" who says that the standalone (886 pixels high) >> won't fit on his >> >> Mac Laptop that has a screen res of 2880 x 1880. >> >> This seems odd to say the least. >> >> 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 panos.merakos at livecode.com Tue Apr 4 09:39:51 2017 From: panos.merakos at livecode.com (panagiotis merakos) Date: Tue, 4 Apr 2017 14:39:51 +0100 Subject: [ANN] Release 8.1.4 RC-1 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 8.1.4 RC-1. Getting the Release =================== You can get the release at https://downloads.livecode.com/livecode/ or via the automatic updater. Release Contents ================ LiveCode 8.1.4 RC-1 contains 70 bug fixes, as well as security and stability improvements: - Several crashes have been fixed. - New version of tsNet (1.2.7) that addresses various network-related bugs is included. - OpenSSL version is updated to 1.1.0d The full release notes are available from: http://downloads.livecode.com/livecode/8_1_4/LiveCodeNotes-8_1_4_rc_1.pdf Note: Support for building iOS standalones with Xcode 8.3 (using iOS10.3 SDK) will be added in LiveCode 8.1.4 RC-2, expected within a couple of weeks. Feedback ======== Please report any bugs encountered on our BugZilla at http://quality.livecode.com/ Have fun! The LiveCode Team -- From bobsneidar at iotecdigital.com Tue Apr 4 12:20:48 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 4 Apr 2017 16:20:48 +0000 Subject: Negative Numbers and NumberFormat In-Reply-To: References: Message-ID: <910CE58C-EAD0-4F68-BFF7-66D92238956A@iotecdigital.com> Really? Then why does : set the numberformat to 0.0;put -.1 + 0 result in -0.1 ? Bob S > On Apr 3, 2017, at 16:55 , hh via use-livecode wrote: > >> You should rather say the number format determines the num of DIGITS. > > That's what you wish to have (good idea). But it's not like that, its > the length of the number as string. From ambassador at fourthworld.com Tue Apr 4 09:35:06 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 4 Apr 2017 06:35:06 -0700 Subject: tsNet docs? In-Reply-To: <5b476bd2-03cd-b26e-d976-29c9993a73ed@techstrategies.com.au> References: <5b476bd2-03cd-b26e-d976-29c9993a73ed@techstrategies.com.au> Message-ID: <0c427bc9-ecf4-4002-a042-ae0185dfcb65@fourthworld.com> Charles Warwick wrote: > Hi Richard, > > I think I am noticing a potentially related bug when an invalid path > is used in the SFTP transfer - I am looking into it now. > > Can you confirm that you are using the complete path for the > destination path in the URL? Unlike FTP, SFTP paths are not relative > to the user's home directory. I would love to, but back on my main machine here this morning I downloaded a fresh copy of the sample stack from the URL I'd used before: ...and I'm back to the "Unlicensed" error. :( I'm running LC v9dp76 Indy on Ubuntu 14.04. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bogdanoff at me.com Tue Apr 4 12:45:21 2017 From: bogdanoff at me.com (Peter Bogdanoff) Date: Tue, 04 Apr 2017 09:45:21 -0700 Subject: Mysterious customer In-Reply-To: <61A9807A-570B-4C8A-9FB5-7315EF5C3DB2@all-auctions.com> References: <61A9807A-570B-4C8A-9FB5-7315EF5C3DB2@all-auctions.com> Message-ID: My application is 728 high. This covers 99% of users. I know that you?re not releasing it for Windows, but there are Windows users with 11? screens. If the OS reports screen resolution < 800 I hide the Taskbar as well. Peter Bogdanoff On Apr 4, 2017, at 6:30 AM, Rick Harrison via use-livecode wrote: > Hi Roger, > > I think you have hit upon the real problem, > and the correct solution. If he is looking at > his Mac at a resolution of either 1024 x 640 > or 1280 by 800 then Richmond?s app wouldn?t > fit at all properly on the screen. > > For my everyday use I usually have my screen > set to 1280 by 800 because I don?t like > the small text. When I work on an app > I always switch to 1920 by 1200. > > Good catch! > > Rick > > > That sounds like the answer >> On Apr 4, 2017, at 8:06 AM, Roger Eller via use-livecode wrote: >> >> Is it possible that "Artie" has his display set to a lower resolution to >> compensate for vision impairment? >> >> ~Roger >> >> On Tue, Apr 4, 2017 at 6:49 AM, Richmond via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> I pumped out a 32-bit Mac standalone from my Char Ref stack and >>> >>> released it through MacUpdate as a freebie, and have had a series of >>> e-mails from >>> >>> someone called "Artie" who says that the standalone (886 pixels high) >>> won't fit on his >>> >>> Mac Laptop that has a screen res of 2880 x 1880. >>> >>> This seems odd to say the least. >>> >>> Richmond. >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Tue Apr 4 12:57:13 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 4 Apr 2017 19:57:13 +0300 Subject: Mysterious customer In-Reply-To: References: Message-ID: Personally I don't think "Artie" "knows his arse from hit t*t" . . . . and just as soon as I get my sweaty paws on my wife's MacBook Air, running 10.12.4 I will be able to tell him the difference, tactfully, of course, you know me :P Richmond. On 4/4/17 3:06 pm, Roger Eller via use-livecode wrote: > Is it possible that "Artie" has his display set to a lower resolution to > compensate for vision impairment? > > ~Roger > > On Tue, Apr 4, 2017 at 6:49 AM, Richmond via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I pumped out a 32-bit Mac standalone from my Char Ref stack and >> >> released it through MacUpdate as a freebie, and have had a series of >> e-mails from >> >> someone called "Artie" who says that the standalone (886 pixels high) >> won't fit on his >> >> Mac Laptop that has a screen res of 2880 x 1880. >> >> This seems odd to say the least. >> >> Richmond. >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Tue Apr 4 12:58:43 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 4 Apr 2017 19:58:43 +0300 Subject: [ANN] Release 8.1.4 RC-1 In-Reply-To: References: Message-ID: I'm Happy, and everyone should be; and, despite my foul-mouthed mumblings, the LiveCode team rock. Richmond. On 4/4/17 4:39 pm, panagiotis merakos via use-livecode wrote: > Dear list members, > > We are pleased to announce the release of LiveCode 8.1.4 RC-1. > > Getting the Release > =================== > You can get the release at https://downloads.livecode.com/livecode/ or via > the automatic updater. > > > Release Contents > ================ > > LiveCode 8.1.4 RC-1 contains 70 bug fixes, as well as security and > stability improvements: > > - Several crashes have been fixed. > - New version of tsNet (1.2.7) that addresses various network-related bugs > is included. > - OpenSSL version is updated to 1.1.0d > > The full release notes are available from: > http://downloads.livecode.com/livecode/8_1_4/LiveCodeNotes-8_1_4_rc_1.pdf > > Note: > Support for building iOS standalones with Xcode 8.3 (using iOS10.3 SDK) > will be added in LiveCode 8.1.4 RC-2, expected within a couple of weeks. > > > Feedback > ======== > Please report any bugs encountered on our BugZilla at > http://quality.livecode.com/ > > > Have fun! > The LiveCode Team > > -- > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Tue Apr 4 12:59:26 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 4 Apr 2017 19:59:26 +0300 Subject: Mysterious customer In-Reply-To: References: <61A9807A-570B-4C8A-9FB5-7315EF5C3DB2@all-auctions.com> Message-ID: OK: I'm off to "prune" my app :) Richmond. On 4/4/17 7:45 pm, Peter Bogdanoff via use-livecode wrote: > My application is 728 high. This covers 99% of users. I know that you?re not releasing it for Windows, but there are Windows users with 11? screens. If the OS reports screen resolution < 800 I hide the Taskbar as well. > > Peter Bogdanoff > > > On Apr 4, 2017, at 6:30 AM, Rick Harrison via use-livecode wrote: > >> Hi Roger, >> >> I think you have hit upon the real problem, >> and the correct solution. If he is looking at >> his Mac at a resolution of either 1024 x 640 >> or 1280 by 800 then Richmond?s app wouldn?t >> fit at all properly on the screen. >> >> For my everyday use I usually have my screen >> set to 1280 by 800 because I don?t like >> the small text. When I work on an app >> I always switch to 1920 by 1200. >> >> Good catch! >> >> Rick >> >> >> That sounds like the answer >>> On Apr 4, 2017, at 8:06 AM, Roger Eller via use-livecode wrote: >>> >>> Is it possible that "Artie" has his display set to a lower resolution to >>> compensate for vision impairment? >>> >>> ~Roger >>> >>> On Tue, Apr 4, 2017 at 6:49 AM, Richmond via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> I pumped out a 32-bit Mac standalone from my Char Ref stack and >>>> >>>> released it through MacUpdate as a freebie, and have had a series of >>>> e-mails from >>>> >>>> someone called "Artie" who says that the standalone (886 pixels high) >>>> won't fit on his >>>> >>>> Mac Laptop that has a screen res of 2880 x 1880. >>>> >>>> This seems odd to say the least. >>>> >>>> Richmond. >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Apr 4 13:28:29 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 4 Apr 2017 17:28:29 +0000 Subject: Embed HTML in email Message-ID: <9F89AE01-75C8-4B6B-87EC-1D7CEDC47B59@iotecdigital.com> Hi all. I am trying to compile some basic table data and create an email with that table in the body, however, I am running into the whole tab stop issue where any data that extends beyong the default tab stop causes all the "columns" to move to the right. So I thought I would try to embed the table as HTML, but of course the HTML shows up as HTML in the body, and not the rendered version. So how can I embed the HTML in the body in such a way so as to have the table data rendered as an html table? I am prepared to hear "You cannot do that." Bob S From ambassador at fourthworld.com Tue Apr 4 13:28:19 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 4 Apr 2017 10:28:19 -0700 Subject: tsNet docs? In-Reply-To: <0c427bc9-ecf4-4002-a042-ae0185dfcb65@fourthworld.com> References: <0c427bc9-ecf4-4002-a042-ae0185dfcb65@fourthworld.com> Message-ID: <1287792f-a3a5-15fd-4270-ab3928c96863@fourthworld.com> Hello Charles - Since I wrote my earlier post v8.1.4rc1 has been released, so I tried there with better results for some things, and noted all of my findings with both v9 and v8.1.4 for both SFTP and FTPS here: http://quality.livecode.com/show_bug.cgi?id=19525 Question: libURL has a VERY convenient feature in which if you're uploading to a path that includes a folder that doesn't yet exist, it'll create that folder for you. If tsNet doesn't provide that, is there any better method for doing that than obtaining a list of directories for even folder level and explicitly creating one if not found? I can write code for that, and probably cache results as I go to minimize the number of times I need to do that, but it would sure be more convenient to discover that there's some means of getting that libURL convenience in tsNet. Thanks - -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com Earlier I wrote: > Charles Warwick wrote: > > > Hi Richard, > > > > I think I am noticing a potentially related bug when an invalid > > path is used in the SFTP transfer - I am looking into it now. > > > > Can you confirm that you are using the complete path for the > > destination path in the URL? Unlike FTP, SFTP paths are not > > relative to the user's home directory. > > I would love to, but back on my main machine here this morning I > downloaded a fresh copy of the sample stack from the URL I'd used before: > > > ...and I'm back to the "Unlicensed" error. :( > > I'm running LC v9dp76 Indy on Ubuntu 14.04. > > -- > Richard Gaskin From dan at clearvisiontech.com Tue Apr 4 13:29:22 2017 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 4 Apr 2017 17:29:22 +0000 Subject: Single File Deploy on Windows? Message-ID: <8D75C9E6-B67B-41F5-9989-5CF3CCB04AB7@clearvisiontech.com> Thank you everyone for your suggestions. I?ve been doing it that way for years (save the dll?s as needed at runtime). The problem is that it seems that an EXE made from LC 9.0 won?t even launch if you include any items related to the internet (Broswer, Internet, SSL, etc) unless the tsNet.dll is present and in the same directory as the exe. Now, I can fool LC by unchecking these items in the Inclusions panel. Now the exe launches. In my ?startup? script, I save the dll?s to disk (from custom props) which works fine. However, the exe errors when you try to access the internet. Then I thought that it doesn?t know they are there unless you set the externals of the mainStack. So, when the app launches, in the startup script, I set the externals of the mainStack to the path to the DLLs, but it still fails. Now I am sad. Any thoughts? Also, what?s with this ginormous DLL ?libcef.dll?? It?s 47.5MB. Anyone know what that?s related to? -Dan From richmondmathewson at gmail.com Tue Apr 4 13:51:05 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 4 Apr 2017 20:51:05 +0300 Subject: Mysterious customer In-Reply-To: References: <61A9807A-570B-4C8A-9FB5-7315EF5C3DB2@all-auctions.com> Message-ID: "Artie" says: "I wonder if, suspect, actually, that this has something to do with my Retina screen." I have no access to a retina screen, so would be grateful if anyone who has would go to the MacUpdate website and download my "CHAR REF" standalone and see what happens. Richmond. On 4/4/17 7:45 pm, Peter Bogdanoff via use-livecode wrote: > My application is 728 high. This covers 99% of users. I know that you?re not releasing it for Windows, but there are Windows users with 11? screens. If the OS reports screen resolution < 800 I hide the Taskbar as well. > > Peter Bogdanoff > > > On Apr 4, 2017, at 6:30 AM, Rick Harrison via use-livecode wrote: > >> Hi Roger, >> >> I think you have hit upon the real problem, >> and the correct solution. If he is looking at >> his Mac at a resolution of either 1024 x 640 >> or 1280 by 800 then Richmond?s app wouldn?t >> fit at all properly on the screen. >> >> For my everyday use I usually have my screen >> set to 1280 by 800 because I don?t like >> the small text. When I work on an app >> I always switch to 1920 by 1200. >> >> Good catch! >> >> Rick >> >> >> That sounds like the answer >>> On Apr 4, 2017, at 8:06 AM, Roger Eller via use-livecode wrote: >>> >>> Is it possible that "Artie" has his display set to a lower resolution to >>> compensate for vision impairment? >>> >>> ~Roger >>> >>> On Tue, Apr 4, 2017 at 6:49 AM, Richmond via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> I pumped out a 32-bit Mac standalone from my Char Ref stack and >>>> >>>> released it through MacUpdate as a freebie, and have had a series of >>>> e-mails from >>>> >>>> someone called "Artie" who says that the standalone (886 pixels high) >>>> won't fit on his >>>> >>>> Mac Laptop that has a screen res of 2880 x 1880. >>>> >>>> This seems odd to say the least. >>>> >>>> Richmond. >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Apr 4 13:51:52 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 4 Apr 2017 17:51:52 +0000 Subject: tsNet docs? In-Reply-To: <1287792f-a3a5-15fd-4270-ab3928c96863@fourthworld.com> References: <0c427bc9-ecf4-4002-a042-ae0185dfcb65@fourthworld.com> <1287792f-a3a5-15fd-4270-ab3928c96863@fourthworld.com> Message-ID: <1C42F377-C509-45D1-864E-4CE4AFD3DFD7@iotecdigital.com> I have a need to allow a user to select the folder they want to save filled form to. I want the default to be ~/Documents/Installs but of course that folder may not be created yet. So what I do is I create the folder before popping the selection dialog, then if the user selects another folder, I delete the temporary one. It's ugly, but it works. Bob S On Apr 4, 2017, at 10:28 , Richard Gaskin via use-livecode > wrote: Hello Charles - Since I wrote my earlier post v8.1.4rc1 has been released, so I tried there with better results for some things, and noted all of my findings with both v9 and v8.1.4 for both SFTP and FTPS here: http://quality.livecode.com/show_bug.cgi?id=19525 Question: libURL has a VERY convenient feature in which if you're uploading to a path that includes a folder that doesn't yet exist, it'll create that folder for you. If tsNet doesn't provide that, is there any better method for doing that than obtaining a list of directories for even folder level and explicitly creating one if not found? I can write code for that, and probably cache results as I go to minimize the number of times I need to do that, but it would sure be more convenient to discover that there's some means of getting that libURL convenience in tsNet. Thanks - -- Richard Gaskin From richmondmathewson at gmail.com Tue Apr 4 14:06:43 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 4 Apr 2017 21:06:43 +0300 Subject: [ANN] Release 8.1.4 RC-1 In-Reply-To: References: Message-ID: <7f29c483-aa9b-3b0b-252b-a1afd4d87483@gmail.com> Hmm: the Mac OS Indy version of 8.1.4 RC-1 offered me the option to "upgrade" to 8.1.3. Needs a tweak there :) Richmond. On 4/4/17 4:39 pm, panagiotis merakos via use-livecode wrote: > Dear list members, > > We are pleased to announce the release of LiveCode 8.1.4 RC-1. > > Getting the Release > =================== > You can get the release at https://downloads.livecode.com/livecode/ or via > the automatic updater. > > > Release Contents > ================ > > LiveCode 8.1.4 RC-1 contains 70 bug fixes, as well as security and > stability improvements: > > - Several crashes have been fixed. > - New version of tsNet (1.2.7) that addresses various network-related bugs > is included. > - OpenSSL version is updated to 1.1.0d > > The full release notes are available from: > http://downloads.livecode.com/livecode/8_1_4/LiveCodeNotes-8_1_4_rc_1.pdf > > Note: > Support for building iOS standalones with Xcode 8.3 (using iOS10.3 SDK) > will be added in LiveCode 8.1.4 RC-2, expected within a couple of weeks. > > > Feedback > ======== > Please report any bugs encountered on our BugZilla at > http://quality.livecode.com/ > > > Have fun! > The LiveCode Team > > -- > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Tue Apr 4 14:10:03 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 4 Apr 2017 21:10:03 +0300 Subject: Mysterious customer In-Reply-To: References: <61A9807A-570B-4C8A-9FB5-7315EF5C3DB2@all-auctions.com> Message-ID: <5ca6f878-71be-4cf1-f8ff-9899ff593900@gmail.com> "Artie" just sent me this: "I wonder if this will give you a clue, Richmond... A while back I ran into a problem wherein I all of a sudden couldn't save screenshots to my Butler pasteboards until its developer explained that Retina screens have three times as many pixels as regular screens, so screenshots are three times larger, and I needed to triple the allowable size limit of my pasteboards." To which I replied: "No: it doesn't tell me anything, but it probably will tell one or two of my "Mac Mage" friends, so I shall pass this on" Richmond. On 4/4/17 7:45 pm, Peter Bogdanoff via use-livecode wrote: > My application is 728 high. This covers 99% of users. I know that you?re not releasing it for Windows, but there are Windows users with 11? screens. If the OS reports screen resolution < 800 I hide the Taskbar as well. > > Peter Bogdanoff > > > On Apr 4, 2017, at 6:30 AM, Rick Harrison via use-livecode wrote: > >> Hi Roger, >> >> I think you have hit upon the real problem, >> and the correct solution. If he is looking at >> his Mac at a resolution of either 1024 x 640 >> or 1280 by 800 then Richmond?s app wouldn?t >> fit at all properly on the screen. >> >> For my everyday use I usually have my screen >> set to 1280 by 800 because I don?t like >> the small text. When I work on an app >> I always switch to 1920 by 1200. >> >> Good catch! >> >> Rick >> >> >> That sounds like the answer >>> On Apr 4, 2017, at 8:06 AM, Roger Eller via use-livecode wrote: >>> >>> Is it possible that "Artie" has his display set to a lower resolution to >>> compensate for vision impairment? >>> >>> ~Roger >>> >>> On Tue, Apr 4, 2017 at 6:49 AM, Richmond via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> I pumped out a 32-bit Mac standalone from my Char Ref stack and >>>> >>>> released it through MacUpdate as a freebie, and have had a series of >>>> e-mails from >>>> >>>> someone called "Artie" who says that the standalone (886 pixels high) >>>> won't fit on his >>>> >>>> Mac Laptop that has a screen res of 2880 x 1880. >>>> >>>> This seems odd to say the least. >>>> >>>> Richmond. >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hyperchris at aol.com Tue Apr 4 14:17:22 2017 From: hyperchris at aol.com (Chris) Date: Tue, 4 Apr 2017 11:17:22 -0700 Subject: use-livecode Digest, Vol 163, Issue 7 In-Reply-To: References: Message-ID: The revMail command is the same as calling a MailTo URL and so that technique is limited by the email client's implementation of MailTo which don't support the passing of HTML. The best I have found is this ... http://lessons.livecode.com/m/4071/l/13197-how-do-i-create-an-html-e-mail ... which works. It just requires you to setup and use Thunderbird because that client includes a little helper app inside the package that accepts additional parameters. I too would appreciate other suggestions. Please share ! Note that the other way to go is to get one of the SMTP libraries and communicate directly with the server. In that case, you assemble everything (eg the MIME type) and send it over. Authentication can be a challenge. On 4/4/17 11:10 AM, use-livecode-request at lists.runrev.com wrote: > Message: 11 > Date: Tue, 4 Apr 2017 17:28:29 +0000 > From: Bob Sneidar > To: How to use LiveCode > Subject: Embed HTML in email > Message-ID:<9F89AE01-75C8-4B6B-87EC-1D7CEDC47B59 at iotecdigital.com> > Content-Type: text/plain; charset="us-ascii" > > Hi all. > > I am trying to compile some basic table data and create an email with that table in the body, however, I am running into the whole tab stop issue where any data that extends beyong the default tab stop causes all the "columns" to move to the right. > > So I thought I would try to embed the table as HTML, but of course the HTML shows up as HTML in the body, and not the rendered version. So how can I embed the HTML in the body in such a way so as to have the table data rendered as an html table? > > I am prepared to hear "You cannot do that." > > Bob S From capellan2000 at gmail.com Tue Apr 4 14:46:30 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 4 Apr 2017 14:46:30 -0400 Subject: Using Right-Click Contextual menu in Linux Message-ID: Hi All, Could you check in your own Linux setup, if Right-Click contextual menu works fine in LiveCode IDE (version 8.1.3)? Thanks in advance! Al From ahsoftware at sonic.net Tue Apr 4 14:58:33 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 4 Apr 2017 11:58:33 -0700 Subject: Using Right-Click Contextual menu in Linux In-Reply-To: References: Message-ID: On 04/04/2017 11:46 AM, Alejandro Tejada via use-livecode wrote: > Hi All, > > Could you check in your own Linux setup, > if Right-Click contextual menu works fine > in LiveCode IDE (version 8.1.3)? Yes. -- Mark Wieder ahsoftware at gmail.com From ambassador at fourthworld.com Tue Apr 4 14:59:36 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 4 Apr 2017 11:59:36 -0700 Subject: Single File Deploy on Windows? In-Reply-To: <8D75C9E6-B67B-41F5-9989-5CF3CCB04AB7@clearvisiontech.com> References: <8D75C9E6-B67B-41F5-9989-5CF3CCB04AB7@clearvisiontech.com> Message-ID: <7554ba51-f985-376e-5854-0ba0e1a25194@fourthworld.com> Dan Friedman wrote: > Also, what?s with this ginormous DLL ?libcef.dll?? It?s 47.5MB. > Anyone know what that?s related to? It's the CEF browser engine used by the browser widget. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From richmondmathewson at gmail.com Tue Apr 4 14:59:56 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 4 Apr 2017 21:59:56 +0300 Subject: Using Right-Click Contextual menu in Linux In-Reply-To: References: Message-ID: <3f81de63-a1c8-cb6d-c106-271f5a71b0b8@gmail.com> It seems alright over "here": Xubuntu 16.04, 64-bit. Best, Richmond. On 4/4/17 9:46 pm, Alejandro Tejada via use-livecode wrote: > Hi All, > > Could you check in your own Linux setup, > if Right-Click contextual menu works fine > in LiveCode IDE (version 8.1.3)? > > Thanks in advance! > > Al > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Tue Apr 4 15:10:04 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 4 Apr 2017 12:10:04 -0700 Subject: tsNet docs? In-Reply-To: <1C42F377-C509-45D1-864E-4CE4AFD3DFD7@iotecdigital.com> References: <1C42F377-C509-45D1-864E-4CE4AFD3DFD7@iotecdigital.com> Message-ID: <52ca10ec-39fc-1e46-00f9-2d546eba19ec@fourthworld.com> Bob Sneidar wrote: > On Apr 4, 2017, at 10:28 , Richard Gaskin wrote: ... >> Question: libURL has a VERY convenient feature in which if you're >> uploading to a path that includes a folder that doesn't yet exist, >> it'll create that folder for you. >> >> If tsNet doesn't provide that, is there any better method for doing >> that than obtaining a list of directories for even folder level and >> explicitly creating one if not found? ... > I have a need to allow a user to select the folder they want to save > filled form to. I want the default to be ~/Documents/Installs but of > course that folder may not be created yet. So what I do is I create > the folder before popping the selection dialog, then if the user > selects another folder, I delete the temporary one. Easy enough to do locally, but in this case I need to do it on a server, and via FTP commands. And worse, I may need to do it hundreds of times. I can get the list of folders in a server directly via tsNet's function for that, and can use the relevant FTP commands to create folders in the path I need as I go. But beyond the time it would add to write all that stuff I've become accustomed just having happen automatically with libURL, I'm also concerned about the additional time required for all those multiple calls to the server to make those directories so that I can eventually get back to just uploading files into them. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dan at clearvisiontech.com Tue Apr 4 15:57:57 2017 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 4 Apr 2017 19:57:57 +0000 Subject: Single File Deploy on Windows? Message-ID: <5AA944CF-914B-44DA-B9F8-CC716FE2EA35@clearvisiontech.com> Ok, when we last left our hero?. I was able to save all the dlls and whatnot into custom properties and save them at app launch (exact same structure as when LC made them). The problem is, the EXE doesn?t recognize that the dlls are in place. How do you tell the exe that they are there and to use them? I tried setting the externals of my mainStack to the paths of the new dlls, but that didn?t work. Interestingly, I created a standalone of the app with all the inclusions and it runs fine. But, when I check the externals of the mainStack (or any other stack) they are all empty. ?? How does a dll get referenced (and therefore used) in a Windows standalone made from LC 9? Anyone have any insight? -Dan From hh at hyperhh.de Tue Apr 4 16:12:46 2017 From: hh at hyperhh.de (hh) Date: Tue, 4 Apr 2017 22:12:46 +0200 Subject: Negative Numbers and NumberFormat Message-ID: <758F1D2C-363B-4D6F-9285-36F0649FF99F@hyperhh.de> >>> Bob S. wrote: >>> You should rather say the number format determines the num of DIGITS. >> hh wrote: >> That's what you wish to have (good idea). But it's not like that, its >> the length of the number as string. > Bob S. wrote > Really? Then why does : > set the numberformat to 0.0; put -.1 + 0 result in -0.1 ? You are mixing input methods and output methods. "-.x" (or ".x") is allowed as input, but then converted to "-0.x" (or "0.x"). Just the same for "00.x" or "-00.x" *After* that the numberformat is applied (and doesn't cut if leading is longer). That's why set the numberformat to "0.0" put 0-".1", 0+"-0.1", 0+"-00.1" after s -- you may leave out quotes set the numberformat to "00.0" put 0-".1", 0+"-0.1", 0+"-00.1" after s -- you may leave out quotes both yield -0.1,-0.1,-0.1 (in LC 6/7/8/9). To see more clear the string length is applied to the number: You can use _ANY_ other one-byte-char other than the separator ("."). set the numberformat to "ab.c" is equivalent to set the numberformat to "00.0" This is comfortable if you wish to have the numbers length dependent on any string varibale's length: put "Bob.S" into str set the numberformat to str put 0-12 & " _and_ " & 0+13 yields -12.0 _and_ 013.0, as I said (in LC 6/7/8/9). *** Once again, I like and support your idea. *** But I suggest to name it a feature request, not a bug: Perhaps the option to apply the numberformat to the absolute value only and choose/apply a prefix: either +, -, space or empty? The empty is for people who distinguish negative and positive nums by labels only (debit and credit) or colors only (red and black). From charles at techstrategies.com.au Tue Apr 4 16:18:16 2017 From: charles at techstrategies.com.au (Charles Warwick) Date: Wed, 05 Apr 2017 06:18:16 +1000 Subject: tsNet docs? In-Reply-To: <1287792f-a3a5-15fd-4270-ab3928c96863@fourthworld.com> References: <0c427bc9-ecf4-4002-a042-ae0185dfcb65@fourthworld.com>, <1287792f-a3a5-15fd-4270-ab3928c96863@fourthworld.com> Message-ID: 58B405D6-40B9-4333-A76B-A50FA16A8FD9.goodhumans@emailganizer.goodhumans.com Hi Richard, Thanks for the bug report, I'll check that out soon. Just briefly though, tsNet also provides the feature to automatically create missing directories when uploading a file. If you look in the dictionary for the tsNet commands, you should be able to see a command to turned that feature off if you wish to. Thanks, Charles -- Sent from my iPhone On 5 Apr 2017 at 03:28:19 AEST, Richard Gaskin via use-livecode wrote: Hello Charles - Since I wrote my earlier post v8.1.4rc1 has been released, so I tried there with better results for some things, and noted all of my findings with both v9 and v8.1.4 for both SFTP and FTPS here: http://quality.livecode.com/show_bug.cgi?id=19525 Question: libURL has a VERY convenient feature in which if you're uploading to a path that includes a folder that doesn't yet exist, it'll create that folder for you. If tsNet doesn't provide that, is there any better method for doing that than obtaining a list of directories for even folder level and explicitly creating one if not found? I can write code for that, and probably cache results as I go to minimize the number of times I need to do that, but it would sure be more convenient to discover that there's some means of getting that libURL convenience in tsNet. Thanks - -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com Earlier I wrote: > Charles Warwick wrote: > > > Hi Richard, > > > > I think I am noticing a potentially related bug when an invalid > > path is used in the SFTP transfer - I am looking into it now. > > > > Can you confirm that you are using the complete path for the > > destination path in the URL? Unlike FTP, SFTP paths are not > > relative to the user's home directory. > > I would love to, but back on my main machine here this morning I > downloaded a fresh copy of the sample stack from the URL I'd used before: > > > ...and I'm back to the "Unlicensed" error. :( > > I'm running LC v9dp76 Indy on Ubuntu 14.04. > > -- > Richard Gaskin _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Tue Apr 4 16:29:22 2017 From: paul at researchware.com (Paul Dupuis) Date: Tue, 4 Apr 2017 16:29:22 -0400 Subject: Single File Deploy on Windows? In-Reply-To: <5AA944CF-914B-44DA-B9F8-CC716FE2EA35@clearvisiontech.com> References: <5AA944CF-914B-44DA-B9F8-CC716FE2EA35@clearvisiontech.com> Message-ID: <59fb01b3-0b6d-2166-9935-658824e7fbba@researchware.com> On 4/4/2017 3:57 PM, Dan Friedman via use-livecode wrote: > Anyone have any insight? Externals (.dll files that an a LC external) can be added to a created substack on startup by setting the externals of that new sustack to the approriate names and paths and then the substack started as a Library stack via 'start using' which will load the externals. From hh at hyperhh.de Tue Apr 4 16:46:35 2017 From: hh at hyperhh.de (hh) Date: Tue, 4 Apr 2017 22:46:35 +0200 Subject: [ANN] Release 8.1.4 RC-1 Message-ID: > Panos M. wrote: > Dear list members, > We are pleased to announce the release of LiveCode 8.1.4 RC-1. Bugs fixed (among others): Lock cursor works again ... Layering is correct again ... The formattedRect works now also for 16 bit coords ... Thank you very much LC-team, especially for that! From dochawk at gmail.com Tue Apr 4 16:48:01 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 4 Apr 2017 13:48:01 -0700 Subject: enter causes ide script window to close using livecode over OSX screen sharing Message-ID: I'm seeing this fairly consistently now. At the moment, testing installation, I'm using OSX screen sharing to connect to another Mac. Both are running the very latest Sierra, but it predates this. Several stacks get opened in the project. Much of the time when I hit entyer at the end of a line, the pane closes with no offer to save. Sometimes rather than closing, nothing happens. If there are any additional characters after the insertion point, the cr is correctly inserted. Can anyone else with multiple macs confirm this? (I've already filed two bugs on find & replace on 8.1.4-rc1 today) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ambassador at fourthworld.com Tue Apr 4 16:50:29 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 4 Apr 2017 13:50:29 -0700 Subject: tsNet docs? Message-ID: Charles wrote: > Just briefly though, tsNet also provides the feature to automatically > create missing directories when uploading a file. If you look in the > dictionary for the tsNet commands, you should be able to see a > command to turned that feature off if you wish to. Thanks - found it: tsNetCreateMissingDirs Unfortunately, even after setting that to true if I use a path that includes folders that don't yet exist it hangs. :( -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From colinholgate at gmail.com Tue Apr 4 16:59:26 2017 From: colinholgate at gmail.com (Colin Holgate) Date: Tue, 4 Apr 2017 13:59:26 -0700 Subject: for you language experts Message-ID: <0447B34F-D02E-46E3-9453-7CC23A87222F@gmail.com> This may amuse you: http://lolcode.org From matthias_livecode_150811 at m-r-d.de Tue Apr 4 17:31:11 2017 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Tue, 4 Apr 2017 23:31:11 +0200 Subject: Single File Deploy on Windows? In-Reply-To: <8D75C9E6-B67B-41F5-9989-5CF3CCB04AB7@clearvisiontech.com> References: <8D75C9E6-B67B-41F5-9989-5CF3CCB04AB7@clearvisiontech.com> Message-ID: <09E10AA7-9F98-446F-BCCC-FDC044D4E0AA@m-r-d.de> Hi Dan, there is a way to use the old libURL instead of the new tsNet external. If that is sufficient for you then you just have to unload the tsNet library before building the standalone. To do this just execute this from within the message box: dispatch "revUnloadLibrary" to stack ?tsNetLibURL? If you have set the standalone settings to automatically search for inclusion, then you?re done. If you have set the inclusions manually you have to make sure that tsNet is not checked. If you now create a standalone the standard libURL library is used instead of tsNet. Regards, Matthias > Am 04.04.2017 um 19:29 schrieb Dan Friedman via use-livecode >: > > Thank you everyone for your suggestions. I?ve been doing it that way for years (save the dll?s as needed at runtime). The problem is that it seems that an EXE made from LC 9.0 won?t even launch if you include any items related to the internet (Broswer, Internet, SSL, etc) unless the tsNet.dll is present and in the same directory as the exe. Now, I can fool LC by unchecking these items in the Inclusions panel. Now the exe launches. In my ?startup? script, I save the dll?s to disk (from custom props) which works fine. However, the exe errors when you try to access the internet. Then I thought that it doesn?t know they are there unless you set the externals of the mainStack. So, when the app launches, in the startup script, I set the externals of the mainStack to the path to the DLLs, but it still fails. Now I am sad. > > Any thoughts? > > Also, what?s with this ginormous DLL ?libcef.dll?? It?s 47.5MB. Anyone know what that?s related to? > > -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 Apr 4 17:54:53 2017 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 4 Apr 2017 21:54:53 +0000 Subject: Single File Deploy on Windows? In-Reply-To: <<59fb01b3-0b6d-2166-9935-658824e7fbba@researchware.com>> Message-ID: <972D5312-8D9B-4EB2-A308-58017B20F45A@contoso.com> Paul, Thank you for the advice. But, either it didn?t work, or I?m doing it wrong. Here?s what I did: on startUp new inv stack "myExternals" set the mainStack of stack "myExternals" to "myGreatApp" set the externals of stack "myExternals" to pExternals -- pExternals is a list of all the dll?s that LC created when the app was built with all extensions selected: -- C:/Users/MyPC/aFolder/revpdfprinter.dll -- C:/Users/MyPC/aFolder/revsecurity.dll -- C:/Users/MyPC/aFolder/Externals/revbrowser.dll -- C:/Users/MyPC/aFolder/Externals/revzip.dll -- C:/Users/MyPC/aFolder/Externals/tsNet.dll -- C:/Users/MyPC/aFolder/Externals/CEF/dedcompiler_43.dll -- C:/Users/MyPC/aFolder/Externals/CEF/dedcompiler_47.dll -- C:/Users/MyPC/aFolder/Externals/CEF/libcef.dll -- C:/Users/MyPC/aFolder/Externals/CEF/libEGL.dll -- C:/Users/MyPC/aFolder/Externals/CEF/libEGLSv2.dll start using stack "myExternals" end startUp I checked the externals of stack ?myExternals? and they are set correctly. I checked that ?myExternals? is in the stacksInUse However, a simple ?put url? doesn?t work. Sorry if I?m being stupid. -Dan Externals (.dll files that an a LC external) can be added to a created substack on startup by setting the externals of that new sustack to the approriate names and paths and then the substack started as a Library stack via 'start using' which will load the externals. From charles at techstrategies.com.au Tue Apr 4 17:56:54 2017 From: charles at techstrategies.com.au (Charles Warwick) Date: Wed, 05 Apr 2017 07:56:54 +1000 Subject: tsNet docs? In-Reply-To: References: Message-ID: A36EBE65-EEB0-4281-91B5-7AD83CC4109E.goodhumans@emailganizer.goodhumans.com Hi Richard, Do you only experience these hangs when you try to upload to folders that don't exist? I have identified a bug related to that which should be fixed in the next version. Thanks, Charles On 5 Apr 2017 at 06:50:29 AEST, Richard Gaskin via use-livecode wrote: Charles wrote: > Just briefly though, tsNet also provides the feature to automatically > create missing directories when uploading a file. If you look in the > dictionary for the tsNet commands, you should be able to see a > command to turned that feature off if you wish to. Thanks - found it: tsNetCreateMissingDirs Unfortunately, even after setting that to true if I use a path that includes folders that don't yet exist it hangs. :( -- 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 Apr 4 18:05:22 2017 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 4 Apr 2017 22:05:22 +0000 Subject: Single File Deploy on Windows? In-Reply-To: <<09E10AA7-9F98-446F-BCCC-FDC044D4E0AA@m-r-d.de>> Message-ID: Matthias, Thank you, but I would like to use the new tsNet. Just want to deploy a single file. Can?t believe there isn?t a way to do that!?! -Dan > there is a way to use the old libURL instead of the new tsNet external? From rdimola at evergreeninfo.net Tue Apr 4 18:08:58 2017 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 4 Apr 2017 18:08:58 -0400 Subject: [ANN] Release 8.1.4 RC-1 In-Reply-To: References: Message-ID: <00de01d2ad90$0f629320$2e27b960$@net> I had 3 bugs that were fixed in short order! You cats rock. THANK YOU! Android keyboardActivated and keyBoardDeactivated message is not sending when status bar hidden. iOS Launch URL did not clear "the result" if successful. iOS crash when browser gets an invalid URL. 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 panagiotis merakos via use-livecode Sent: Tuesday, April 04, 2017 9:40 AM To: How to use LiveCode Cc: panagiotis merakos Subject: [ANN] Release 8.1.4 RC-1 Dear list members, We are pleased to announce the release of LiveCode 8.1.4 RC-1. Getting the Release =================== You can get the release at https://downloads.livecode.com/livecode/ or via the automatic updater. Release Contents ================ LiveCode 8.1.4 RC-1 contains 70 bug fixes, as well as security and stability improvements: - Several crashes have been fixed. - New version of tsNet (1.2.7) that addresses various network-related bugs is included. - OpenSSL version is updated to 1.1.0d The full release notes are available from: http://downloads.livecode.com/livecode/8_1_4/LiveCodeNotes-8_1_4_rc_1.pdf Note: Support for building iOS standalones with Xcode 8.3 (using iOS10.3 SDK) will be added in LiveCode 8.1.4 RC-2, expected within a couple of weeks. Feedback ======== Please report any bugs encountered on our BugZilla at http://quality.livecode.com/ Have fun! The LiveCode Team -- _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Tue Apr 4 18:12:19 2017 From: paul at researchware.com (Paul Dupuis) Date: Tue, 4 Apr 2017 18:12:19 -0400 Subject: Single File Deploy on Windows? In-Reply-To: <972D5312-8D9B-4EB2-A308-58017B20F45A@contoso.com> References: <972D5312-8D9B-4EB2-A308-58017B20F45A@contoso.com> Message-ID: <8e603dca-a2fc-f830-7b68-c90e870beaae@researchware.com> Hi Dan, That look to me like it should work. Here is my code below which does work. That said, it works under 6.7.x and earlier. I have not tested my code under LC7+. In my case I have only 1 external but I want to load the correct one for OSX or Window. The whole "put (there is a folder tExtFile) into tExtExists" is just a safety check on someone removing the external or a failure of my installer to install it. on preOpenStack -- so substacks do not execute the code after this when opened if the owner of the target is not me then exit preOpenStack end if -- Load the XPDF Externals by loading an external stack, updating its externals list, saving that stack and loading the stack put AppPath() into tExtPath switch the platform case "MacOS" put tExtPath & "XPDF.bundle" into tExtFile put (there is a folder tExtFile) into tExtExists break case "Win32" put tExtPath & "XPDF.dll" into tExtFile put (there is a file tExtFile) into tExtExists break end switch if (tExtExists is true) then set the externals of the templateStack to tExtFile create invisible stack "XPDFViewer External Library" start using "XPDFViewer External Library" end if end preOpenStack function AppPath put the fileName of me into tPath -- on OSX, file is report inside the bundle /MyApp.app/Contents/MacOS/MyApp set the itemDel to slash if (the platform is "MacOS") AND ("dev" is not in the environment) then get offset(".app/Contents/MacOS/",tPath) if it > 0 then -- 'filename' returned path to executable in package delete char it to len(tPath) of tPath end if end if delete last item of tPath if last char of tPath is not slash then put slash after tPath return tPath end AppPath On 4/4/2017 5:54 PM, Dan Friedman via use-livecode wrote: > Paul, > > Thank you for the advice. But, either it didn?t work, or I?m doing it wrong. Here?s what I did: > > on startUp > new inv stack "myExternals" > set the mainStack of stack "myExternals" to "myGreatApp" > set the externals of stack "myExternals" to pExternals > > -- pExternals is a list of all the dll?s that LC created when the app was built with all extensions selected: > -- C:/Users/MyPC/aFolder/revpdfprinter.dll > -- C:/Users/MyPC/aFolder/revsecurity.dll > -- C:/Users/MyPC/aFolder/Externals/revbrowser.dll > -- C:/Users/MyPC/aFolder/Externals/revzip.dll > -- C:/Users/MyPC/aFolder/Externals/tsNet.dll > -- C:/Users/MyPC/aFolder/Externals/CEF/dedcompiler_43.dll > -- C:/Users/MyPC/aFolder/Externals/CEF/dedcompiler_47.dll > -- C:/Users/MyPC/aFolder/Externals/CEF/libcef.dll > -- C:/Users/MyPC/aFolder/Externals/CEF/libEGL.dll > -- C:/Users/MyPC/aFolder/Externals/CEF/libEGLSv2.dll > > start using stack "myExternals" > end startUp > > I checked the externals of stack ?myExternals? and they are set correctly. > I checked that ?myExternals? is in the stacksInUse > > However, a simple ?put url? doesn?t work. > > Sorry if I?m being stupid. > > -Dan > > > Externals (.dll files that an a LC external) can be added to a created > substack on startup by setting the externals of that new sustack to the > approriate names and paths and then the substack started as a Library > stack via 'start using' which will load the externals. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Tue Apr 4 18:20:05 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 4 Apr 2017 15:20:05 -0700 Subject: tsNet docs? Message-ID: Charles Warwick wrote: > Hi Richard, > > Do you only experience these hangs when you try to upload to folders > that don't exist? With SFTP, yes. With FTPS I'm now seeing an error 64: "Requested SSL level failed returned from server", with or without an existing path. > I have identified a bug related to that which should be fixed in the > next version. Excellent. Thanks. Looking forward to that build. -- 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 dan at clearvisiontech.com Tue Apr 4 18:23:33 2017 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 4 Apr 2017 22:23:33 +0000 Subject: Single File Deploy on Windows? In-Reply-To: <<8e603dca-a2fc-f830-7b68-c90e870beaae@researchware.com>> Message-ID: Thanks Paul. That?s just what I?ve done in versions prior to LC 9. I can tell you that it does work in LC 7 and 8. Not sure what the issue is with LC 9, but maybe somone in the know from LiveCode will see this post and share the magic formula!?! -Dan >>That look to me like it should work. Here is my code below which does >>work. That said, it works under 6.7.x and earlier. I have not tested my >>code under LC7+. In my case I have only 1 external but I want to load >>the correct one for OSX or Window. From charles at techstrategies.com.au Tue Apr 4 19:01:22 2017 From: charles at techstrategies.com.au (Charles Warwick) Date: Wed, 05 Apr 2017 09:01:22 +1000 Subject: tsNet docs? In-Reply-To: References: Message-ID: 493F28B6-AF94-45CA-BCCD-83F8600901A9.goodhumans@emailganizer.goodhumans.com Hi Richard, Are you using ftp:// or ftps:// at the start of the URL? It should be ftp:// even for FTPS connections. Thanks, Charles -- Sent from my iPhone On 5 Apr 2017 at 08:20:05 AEST, Richard Gaskin via use-livecode wrote: Charles Warwick wrote: > Hi Richard, > > Do you only experience these hangs when you try to upload to folders > that don't exist? With SFTP, yes. With FTPS I'm now seeing an error 64: "Requested SSL level failed returned from server", with or without an existing path. > I have identified a bug related to that which should be fixed in the > next version. Excellent. Thanks. Looking forward to that build. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Tue Apr 4 19:08:42 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 4 Apr 2017 16:08:42 -0700 Subject: tsNet docs? Message-ID: <5e126359-f079-e53a-f528-72219e4201f0@fourthworld.com> Charles Warwick wrote: > Hi Richard, > > Are you using ftp:// or ftps:// at the start of the URL? It should > be ftp:// even for FTPS connections. Thanks, Charles. Following the example you provided there, I had indeed left it as "ftp://" -- 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 james at thehales.id.au Tue Apr 4 19:15:32 2017 From: james at thehales.id.au (James Hale) Date: Wed, 5 Apr 2017 09:15:32 +1000 Subject: DPReleases I have missed (was Re: tsNet docs?) Message-ID: Richard wrote: >I'm running LC v9dp76 Indy on Ubuntu 14.04. And I am only on dp6. James From ambassador at fourthworld.com Tue Apr 4 19:18:56 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 4 Apr 2017 16:18:56 -0700 Subject: DPReleases I have missed (was Re: tsNet docs?) In-Reply-To: References: Message-ID: <07450a58-c5a8-982d-ca47-dc25283053d9@fourthworld.com> James Hale wrote: > Richard wrote: >>I'm running LC v9dp76 Indy on Ubuntu 14.04. > > And I am only on dp6. Well, to be fair dp76 was just released. And I know many folks still using dp54. :) -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From blueback09 at gmail.com Tue Apr 4 19:32:36 2017 From: blueback09 at gmail.com (Matt Maier) Date: Tue, 4 Apr 2017 16:32:36 -0700 Subject: remote debugger on windows Message-ID: I'm not trying to do anything fancy like debug an app on iOS/Android. I'm just trying to debug a standalone running on my windows desktop. So I've got 9.0 dp 6 script debug mode is checked test target is windows remote debugger is checked in standalone inclusions I've tried just running a test from the IDE and saving as a standalone, then running that standalone with the IDE also running. Neither gives me the "remote debugging session" popup anymore. It appeared once or twice the first time I tried but hasn't reappeared since then. The running application partially freezes at the moment when I would expect the script window to popup due to a breakpoint. Some of the functions don't respond, some do. No script window appears, no popup. Am I missing something? From monte at appisle.net Tue Apr 4 19:49:01 2017 From: monte at appisle.net (Monte Goulding) Date: Wed, 5 Apr 2017 09:49:01 +1000 Subject: remote debugger on windows In-Reply-To: References: Message-ID: <41031F30-D5B8-4535-BCD9-57CB63D1E91D@appisle.net> Hmm? the remote debugger uses sockets. You might want to check the IDE is being allowed to accept connections. Also perhaps check if there are any rogue processes of the standalone or IDE in the task manager. > On 5 Apr 2017, at 9:32 am, Matt Maier via use-livecode wrote: > > I'm not trying to do anything fancy like debug an app on iOS/Android. I'm > just trying to debug a standalone running on my windows desktop. > > So I've got 9.0 dp 6 > script debug mode is checked > test target is windows > remote debugger is checked in standalone inclusions > > I've tried just running a test from the IDE and saving as a standalone, > then running that standalone with the IDE also running. Neither gives me > the "remote debugging session" popup anymore. It appeared once or twice the > first time I tried but hasn't reappeared since then. > > The running application partially freezes at the moment when I would expect > the script window to popup due to a breakpoint. Some of the functions don't > respond, some do. No script window appears, no popup. > > Am I missing something? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From blueback09 at gmail.com Tue Apr 4 20:04:31 2017 From: blueback09 at gmail.com (Matt Maier) Date: Tue, 4 Apr 2017 17:04:31 -0700 Subject: remote debugger on windows In-Reply-To: <41031F30-D5B8-4535-BCD9-57CB63D1E91D@appisle.net> References: <41031F30-D5B8-4535-BCD9-57CB63D1E91D@appisle.net> Message-ID: Thanks Monte. There was an instance of the standalone stuck in task manager. Forcing that to end allowed the popup and debugging window to work mostly as described. It ran into an error when it got to revZipOpenArchive and the script died. The debugger didn't do anything particularly helpful there, but it is nice to know where the hard error happened. That's a line that works when I step through it in the IDE. On Tue, Apr 4, 2017 at 4:49 PM, Monte Goulding via use-livecode < use-livecode at lists.runrev.com> wrote: > Hmm? the remote debugger uses sockets. You might want to check the IDE is > being allowed to accept connections. Also perhaps check if there are any > rogue processes of the standalone or IDE in the task manager. > > > On 5 Apr 2017, at 9:32 am, Matt Maier via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I'm not trying to do anything fancy like debug an app on iOS/Android. I'm > > just trying to debug a standalone running on my windows desktop. > > > > So I've got 9.0 dp 6 > > script debug mode is checked > > test target is windows > > remote debugger is checked in standalone inclusions > > > > I've tried just running a test from the IDE and saving as a standalone, > > then running that standalone with the IDE also running. Neither gives me > > the "remote debugging session" popup anymore. It appeared once or twice > the > > first time I tried but hasn't reappeared since then. > > > > The running application partially freezes at the moment when I would > expect > > the script window to popup due to a breakpoint. Some of the functions > don't > > respond, some do. No script window appears, no popup. > > > > Am I missing something? > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From capellan2000 at gmail.com Tue Apr 4 20:29:27 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 4 Apr 2017 20:29:27 -0400 Subject: Using Right-Click Contextual menu in Linux Message-ID: Many Thanks to all, for testing this feature in your own setup. Looks like I have to test this in other computers to learn if only my own setup have such problem. Livecode 8.1.3 (for Windows) have no problems at all with contextual menus... Al From blueback09 at gmail.com Tue Apr 4 20:48:22 2017 From: blueback09 at gmail.com (Matt Maier) Date: Tue, 4 Apr 2017 17:48:22 -0700 Subject: this stack gets every closeStack message Message-ID: So I've got a mainstack (#1). It calls a different mainstack (#2) so that I can save data like API keys in #2 stack before closing it. When I'm in the IDE #2 stack is getting and responding to every single closeStack message that happens, including when I close IDE windows (ex: script editor, variable watcher, etc). Does that mean stack #2 is being placed above everything, including the IDE stacks, in the message hierarchy? Is there a way to have it not do that? From ahsoftware at sonic.net Tue Apr 4 21:11:14 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 4 Apr 2017 18:11:14 -0700 Subject: remote debugger on windows In-Reply-To: <41031F30-D5B8-4535-BCD9-57CB63D1E91D@appisle.net> References: <41031F30-D5B8-4535-BCD9-57CB63D1E91D@appisle.net> Message-ID: <67e393b8-9d2b-e768-ff97-9e7c654ddb01@sonic.net> On 04/04/2017 04:49 PM, Monte Goulding via use-livecode wrote: > Hmm? the remote debugger uses sockets. What socket(s) does the remote debugger use? I'd like to stay out of its way. -- Mark Wieder ahsoftware at gmail.com From dunbarx at aol.com Tue Apr 4 21:10:35 2017 From: dunbarx at aol.com (dunbarx) Date: Tue, 4 Apr 2017 18:10:35 -0700 (PDT) Subject: this stack gets every closeStack message In-Reply-To: References: Message-ID: <1491354635448-4713694.post@n4.nabble.com> Two independent stacks are at the same "level" in the hierarchy. Unless one is put into use or otherwise explicitly made to trap messages above another stack (like inserting a stack script into back, for example), I am not sure how you are seeing what you are seeing. Can you send a "closeStack" message from your "lower" stack and trace it? Craig Newman -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/this-stack-gets-every-closeStack-message-tp4713692p4713694.html Sent from the Revolution - User mailing list archive at Nabble.com. From monte at appisle.net Tue Apr 4 21:36:07 2017 From: monte at appisle.net (Monte Goulding) Date: Wed, 5 Apr 2017 11:36:07 +1000 Subject: remote debugger on windows In-Reply-To: <67e393b8-9d2b-e768-ff97-9e7c654ddb01@sonic.net> References: <41031F30-D5B8-4535-BCD9-57CB63D1E91D@appisle.net> <67e393b8-9d2b-e768-ff97-9e7c654ddb01@sonic.net> Message-ID: <8E177F60-3F2F-436F-940D-ED5BC324CAC3@appisle.net> > On 5 Apr 2017, at 11:11 am, Mark Wieder via use-livecode wrote: > > On 04/04/2017 04:49 PM, Monte Goulding via use-livecode wrote: >> Hmm? the remote debugger uses sockets. > > What socket(s) does the remote debugger use? I'd like to stay out of its way. It begins at 54321 and bumps the port each time accept fails until it finds one. The standalone is then inited with the current port in use by the IDE at build time. Cheers Monte From ahsoftware at sonic.net Tue Apr 4 21:59:25 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 4 Apr 2017 18:59:25 -0700 Subject: remote debugger on windows In-Reply-To: <8E177F60-3F2F-436F-940D-ED5BC324CAC3@appisle.net> References: <41031F30-D5B8-4535-BCD9-57CB63D1E91D@appisle.net> <67e393b8-9d2b-e768-ff97-9e7c654ddb01@sonic.net> <8E177F60-3F2F-436F-940D-ED5BC324CAC3@appisle.net> Message-ID: On 04/04/2017 06:36 PM, Monte Goulding via use-livecode wrote: >> What socket(s) does the remote debugger use? I'd like to stay out of its way. > > It begins at 54321 and bumps the port each time accept fails until it finds one. The standalone is then inited with the current port in use by the IDE at build time. Thanks. No worries then. -- Mark Wieder ahsoftware at gmail.com From tom at makeshyft.com Tue Apr 4 22:09:39 2017 From: tom at makeshyft.com (Tom Glod) Date: Tue, 4 Apr 2017 22:09:39 -0400 Subject: Messages stop sending when it loses focus. Is that normal? Message-ID: Hi LC Geniuses, I have a stack that has a handler that sends messages to the stack and waits until the handler that is triggered completes before it sends the next one. It works perfect except for when the stack loses focus. The messages stop sending. Is this normal behavior, and i just don't know about it? Or is this not really supposed to be happening? The messages are sent using this format (to keep responsiveness) send "DrawCanvasItemTakeSnapshot " & x to stack "UMP Canvas" in 1 milliseconds wait until UMPTools["Canvas Viewer"]["Drawing Item"] = 0 with messages My workaround is to make the window a pallette (solves most of the problem) or a modal (which solves all of it)....but I don't want a modal window. Any of you come across this before? Thanks for any help. From blueback09 at gmail.com Tue Apr 4 22:22:02 2017 From: blueback09 at gmail.com (Matt Maier) Date: Tue, 4 Apr 2017 19:22:02 -0700 Subject: this stack gets every closeStack message In-Reply-To: <1491354635448-4713694.post@n4.nabble.com> References: <1491354635448-4713694.post@n4.nabble.com> Message-ID: I'm not aware of a way to "trace" where a message has been and the keywords I can think of aren't turning up anything promising in the dictionary or google. On Tue, Apr 4, 2017 at 6:10 PM, dunbarx via use-livecode < use-livecode at lists.runrev.com> wrote: > Two independent stacks are at the same "level" in the hierarchy. Unless one > is put into use or otherwise explicitly made to trap messages above another > stack (like inserting a stack script into back, for example), I am not sure > how you are seeing what you are seeing. > > Can you send a "closeStack" message from your "lower" stack and trace it? > > Craig Newman > > > > -- > View this message in context: http://runtime-revolution. > 278305.n4.nabble.com/this-stack-gets-every-closeStack- > message-tp4713692p4713694.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dunbarx at aol.com Wed Apr 5 00:49:49 2017 From: dunbarx at aol.com (dunbarx at aol.com) Date: Wed, 5 Apr 2017 00:49:49 -0400 Subject: this stack gets every closeStack message In-Reply-To: Message-ID: <15b3c7281ad-af5-6f@webprd-a86.mail.aol.com> Can you put a closeStack handler in the stack that seems like it ought not to be in the hierarchy, and see when it fires? Then maybe you can figure out what caused it? Craig -----Original Message----- From: Matt Maier via use-livecode To: How to use LiveCode Cc: Matt Maier Sent: Tue, Apr 4, 2017 10:23 pm Subject: Re: this stack gets every closeStack message I'm not aware of a way to "trace" where a message has been and the keywords I can think of aren't turning up anything promising in the dictionary or google. On Tue, Apr 4, 2017 at 6:10 PM, dunbarx via use-livecode < use-livecode at lists.runrev.com> wrote: > Two independent stacks are at the same "level" in the hierarchy. Unless one > is put into use or otherwise explicitly made to trap messages above another > stack (like inserting a stack script into back, for example), I am not sure > how you are seeing what you are seeing. > > Can you send a "closeStack" message from your "lower" stack and trace it? > > Craig Newman > > > > -- > View this message in context: http://runtime-revolution. > 278305.n4.nabble.com/this-stack-gets-every-closeStack- > message-tp4713692p4713694.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From blueback09 at gmail.com Wed Apr 5 00:55:09 2017 From: blueback09 at gmail.com (Matt Maier) Date: Tue, 4 Apr 2017 21:55:09 -0700 Subject: this stack gets every closeStack message In-Reply-To: <15b3c7281ad-af5-6f@webprd-a86.mail.aol.com> References: <15b3c7281ad-af5-6f@webprd-a86.mail.aol.com> Message-ID: That's already what's happening. This stack is getting every closeStack message that happens, even the ones that fire off when the IDE's windows close. It's just a stack opened from a file. It shouldn't be in between the IDE's windows and the the engine. On Tue, Apr 4, 2017 at 9:49 PM, Craig Newman via use-livecode < use-livecode at lists.runrev.com> wrote: > Can you put a closeStack handler in the stack that seems like it ought not > to be in the hierarchy, and see when it fires? Then maybe you can figure > out what caused it? > > > Craig > > > > > -----Original Message----- > From: Matt Maier via use-livecode > To: How to use LiveCode > Cc: Matt Maier > Sent: Tue, Apr 4, 2017 10:23 pm > Subject: Re: this stack gets every closeStack message > > I'm not aware of a way to "trace" where a message has been and the keywords > I can think of aren't turning up anything promising in the dictionary or > google. > > On Tue, Apr 4, 2017 at 6:10 PM, dunbarx via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Two independent stacks are at the same "level" in the hierarchy. Unless > one > > is put into use or otherwise explicitly made to trap messages above > another > > stack (like inserting a stack script into back, for example), I am not > sure > > how you are seeing what you are seeing. > > > > Can you send a "closeStack" message from your "lower" stack and trace it? > > > > Craig Newman > > > > > > > > -- > > View this message in context: http://runtime-revolution. > > 278305.n4.nabble.com/this-stack-gets-every-closeStack- > > message-tp4713692p4713694.html > > Sent from the Revolution - User mailing list archive at Nabble.com. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Wed Apr 5 01:01:16 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 5 Apr 2017 00:01:16 -0500 Subject: this stack gets every closeStack message In-Reply-To: References: <15b3c7281ad-af5-6f@webprd-a86.mail.aol.com> Message-ID: Place a breakpoint in the closeStack handler. When it fires and the script goes into debug mode, look at the popdown menu button just to the right of the debugging icons at the top left of the script window. That's the execution contexts, and it tells you what path the message took. The top line of the button list is the handler with the breakpoint. Choosing each line in order underneath will trace the path the message took before it reached your stack's breakpoint. On 4/4/17 11:55 PM, Matt Maier via use-livecode wrote: > That's already what's happening. This stack is getting every closeStack > message that happens, even the ones that fire off when the IDE's windows > close. It's just a stack opened from a file. It shouldn't be in between the > IDE's windows and the the engine. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From toolbook at kestner.de Wed Apr 5 02:25:07 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 5 Apr 2017 08:25:07 +0200 Subject: Is there a technical difference between a RC and stable release? Message-ID: <001501d2add5$5f57e200$1e07a600$@kestner.de> Hello, I know about the life cycle dp - rc - stable release. What I actually don't know, is there any "technical" difference behind the scenes between a RC and a stable release? Is a RC just an approval state for any feedback from us and could go 1:1 into a stable release, if there are no serious new bugs? In other words, if I test my app with a RC and don't see any bugs, which affect my app, would it be the same for me to use a RC for an indy production, as a stable release or is there any technical difference behind the scenes or reason for not to use a RC? Thanks Tiemo From richmondmathewson at gmail.com Wed Apr 5 02:48:23 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 5 Apr 2017 09:48:23 +0300 Subject: HyperCard on your current Macintosh computer Message-ID: https://github.com/jedahan/hypermac On the upper right-hand side of the page there is a green "Clone or download" button. Clicking this reveals an menu which has an option "Download Zip". Extract this zip, then run the app "Mini vMac". Not me, just something I found on a Yahoo Group. Richmond. From mark at livecode.com Wed Apr 5 03:20:15 2017 From: mark at livecode.com (Mark Waddingham) Date: Wed, 05 Apr 2017 09:20:15 +0200 Subject: Is there a technical difference between a RC and stable =?UTF-8?Q?release=3F?= In-Reply-To: <001501d2add5$5f57e200$1e07a600$@kestner.de> References: <001501d2add5$5f57e200$1e07a600$@kestner.de> Message-ID: <63b87496dc9af41234efa0c110bf61a6@livecode.com> Hi Tiemo, On 2017-04-05 08:25, Tiemo Hollmann TB via use-livecode wrote: > What I actually don't know, is there any "technical" difference behind > the > scenes between a RC and a stable release? Is a RC just an approval > state for > any feedback from us and could go 1:1 into a stable release, if there > are no > serious new bugs? In other words, if I test my app with a RC and don't > see > any bugs, which affect my app, would it be the same for me to use a RC > for > an indy production, as a stable release or is there any technical > difference > behind the scenes or reason for not to use a RC? A stable release is 'just' a renaming of the last RC of any sequence of releases for a given version - however, an RC might contain a regression (introduced in the RC) in which case there will be another RC either fixing the regression or reverting the patch which caused the regression. In maintenance releases we try quite hard to minimize the impact of any change which is made, so the general risk of regressions during an RC cycle should be quite low. So, in general, if a build of your app with an RC goes through your usual testing procedures fine; then there should be no harm in using it in a production release. Indeed, people using RCs in production is actually very helpful for us as it increases general test coverage, increasing the chance of finding any regressions (which actually affect production code) in it. Hope this helps, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From sundown at pacifier.com Wed Apr 5 03:27:00 2017 From: sundown at pacifier.com (JB) Date: Wed, 5 Apr 2017 00:27:00 -0700 Subject: HyperCard on your current Macintosh computer In-Reply-To: References: Message-ID: Thanks Richmond. A lot of the programs at Macintosh Garden will run on Mini vMac. You will find a lot of Hypercard stacks there too. http://macintoshgarden.org JB > On Apr 4, 2017, at 11:48 PM, Richmond Mathewson via use-livecode wrote: > > https://github.com/jedahan/hypermac > > > On the upper right-hand side of the page there is a green "Clone or download" button. > Clicking this reveals an menu which has an option "Download Zip". > Extract this zip, then run the app "Mini vMac". > > Not me, just something I found on a Yahoo Group. > > 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 toolbook at kestner.de Wed Apr 5 03:25:20 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 5 Apr 2017 09:25:20 +0200 Subject: AW: Is there a technical difference between a RC and stable release? In-Reply-To: <63b87496dc9af41234efa0c110bf61a6@livecode.com> References: <001501d2add5$5f57e200$1e07a600$@kestner.de> <63b87496dc9af41234efa0c110bf61a6@livecode.com> Message-ID: <001c01d2addd$c8e71210$5ab53630$@kestner.de> Hi Mark, thank you for your helpful and clarifying explanation! Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Mark Waddingham via use-livecode Gesendet: Mittwoch, 5. April 2017 09:20 An: How to use LiveCode Cc: Mark Waddingham Betreff: Re: Is there a technical difference between a RC and stable release? Hi Tiemo, On 2017-04-05 08:25, Tiemo Hollmann TB via use-livecode wrote: > What I actually don't know, is there any "technical" difference behind > the scenes between a RC and a stable release? Is a RC just an approval > state for any feedback from us and could go 1:1 into a stable release, > if there are no serious new bugs? In other words, if I test my app > with a RC and don't see any bugs, which affect my app, would it be the > same for me to use a RC for an indy production, as a stable release or > is there any technical difference behind the scenes or reason for not > to use a RC? A stable release is 'just' a renaming of the last RC of any sequence of releases for a given version - however, an RC might contain a regression (introduced in the RC) in which case there will be another RC either fixing the regression or reverting the patch which caused the regression. In maintenance releases we try quite hard to minimize the impact of any change which is made, so the general risk of regressions during an RC cycle should be quite low. So, in general, if a build of your app with an RC goes through your usual testing procedures fine; then there should be no harm in using it in a production release. Indeed, people using RCs in production is actually very helpful for us as it increases general test coverage, increasing the chance of finding any regressions (which actually affect production code) in it. Hope this helps, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Wed Apr 5 04:01:56 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 5 Apr 2017 10:01:56 +0200 Subject: standalone build: "checking directory exists" takes up to 2 min Message-ID: <001d01d2ade2$e610a3b0$b231eb10$@kestner.de> Hello, LC 8.1 ? 8.1.4 and 9.0. I am on Win 10. The stack file source as well as the standalone build directory is located on a windows server. When building a standalone f?r my (complex) main application on the server dir the standalone builder progress stopps at the stage ?checking directory exists? for 1-2 minutes. Building a standalone for the same stack in a local dir, it just takes seconds. Now I could say, ok, LiveCode has to handle some network security permissions or such for 2 mins. (btw. It is the same using a UNC path or mapped drive) But building any other (smaller) stack or a new test stack on the server dir takes only seconds. What stack parameters have an impact on ?checking the build directory?? OK, since this affects me only when building a standalone and doesn?t seem to have any impact on the finished standalone, I probably have to put into my trash of weired issues. Or any idea I can check for? Tiemo From thatkeith at mac.com Wed Apr 5 05:34:14 2017 From: thatkeith at mac.com (Keith Martin) Date: Wed, 05 Apr 2017 10:34:14 +0100 Subject: HyperCard on your current Macintosh computer In-Reply-To: References: Message-ID: On 5 Apr 2017, at 7:48, Richmond Mathewson via use-livecode wrote: > https://github.com/jedahan/hypermac I couldn't get that version of Mini vMac to run; it couldn't find the vMac.ROM file. But there's a slightly newer version of the app () that works well if you put it in there instead. It's at http://www.gryphel.com/c/minivmac/ BTW, this is very well timed ? I'm currently clearing out my attic; I dumped half a ton of old floppies but I kept a few gems including old systems and some games and apps. Now I dodn't even need to try and crank up my old Mac Plus or SE! :) k From matsastrom at yahoo.se Wed Apr 5 06:13:03 2017 From: matsastrom at yahoo.se (=?utf-8?Q?Mats_=C3=85str=C3=B6m?=) Date: Wed, 5 Apr 2017 12:13:03 +0200 Subject: Suspend LiveCode UI Message-ID: Hi, the dictionary reads: "The LiveCode development environment traps the copyKey message, unless "Suspend LiveCode UI" is turned on in the Development menu. This means that thecopyKey message is not received by a stack if it's running in the development environment." There is no "Suspend LiveCode UI" in the Development menu in LiveCode 8.1.3 - is there something else I need to do to trap copyKey? /Mats From richmondmathewson at gmail.com Wed Apr 5 07:14:48 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 5 Apr 2017 14:14:48 +0300 Subject: Suspend LiveCode UI In-Reply-To: References: Message-ID: Development/Suspend Development Tools Richmond. On 4/5/17 1:13 pm, Mats ?str?m via use-livecode wrote: > Hi, > the dictionary reads: > > "The LiveCode development environment traps the copyKey message, unless "Suspend LiveCode UI" is turned on in the Development menu. This means that thecopyKey message is not received by a stack if it's running in the development environment." > > There is no "Suspend LiveCode UI" in the Development menu in LiveCode 8.1.3 - is there something else I need to do to trap copyKey? > > /Mats > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Wed Apr 5 07:59:18 2017 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 5 Apr 2017 21:59:18 +1000 Subject: Mysterious customer In-Reply-To: References: <61A9807A-570B-4C8A-9FB5-7315EF5C3DB2@all-auctions.com> Message-ID: I have a Retina display, I downloaded your app and it's as Roger deduced: If, via System Preferences -> Displays I change my usual setting of 'More Space' to 'Larger Text' the Retina Display is effectively turned into a 1024 x 640 display; you App is magnified and doesn't fit and it can't be made to. If I select the next setting up, it's effectively a 1280 x 800 display and still your App doesn't fit. Any setting from 'Default' up to the full resolution of 'More Space' handles your app just fine. That should help Artie but I tend to agree with Roger. If you are catering for people like yourself, who may hold onto computers until they actually die (the computer, not the user;-) then a height no taller than 756 px should reduce your support calls. On Wed, Apr 5, 2017 at 3:51 AM, Richmond Mathewson via use-livecode wrote: > "Artie" says: > > "I wonder if, suspect, actually, that this has something to do with my > Retina screen." > > I have no access to a retina screen, so would be grateful if anyone who has > would go to the MacUpdate website and > download my "CHAR REF" standalone and see what happens. > > Richmond. > > On 4/4/17 7:45 pm, Peter Bogdanoff via use-livecode wrote: >> >> My application is 728 high. This covers 99% of users. I know that you?re >> not releasing it for Windows, but there are Windows users with 11? screens. >> If the OS reports screen resolution < 800 I hide the Taskbar as well. >> >> Peter Bogdanoff >> >> >> On Apr 4, 2017, at 6:30 AM, Rick Harrison via use-livecode >> wrote: >> >>> Hi Roger, >>> >>> I think you have hit upon the real problem, >>> and the correct solution. If he is looking at >>> his Mac at a resolution of either 1024 x 640 >>> or 1280 by 800 then Richmond?s app wouldn?t >>> fit at all properly on the screen. >>> >>> For my everyday use I usually have my screen >>> set to 1280 by 800 because I don?t like >>> the small text. When I work on an app >>> I always switch to 1920 by 1200. >>> >>> Good catch! >>> >>> Rick >>> >>> >>> That sounds like the answer >>>> >>>> On Apr 4, 2017, at 8:06 AM, Roger Eller via use-livecode >>>> wrote: >>>> >>>> Is it possible that "Artie" has his display set to a lower resolution to >>>> compensate for vision impairment? >>>> >>>> ~Roger >>>> >>>> On Tue, Apr 4, 2017 at 6:49 AM, Richmond via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>>> I pumped out a 32-bit Mac standalone from my Char Ref stack and >>>>> >>>>> released it through MacUpdate as a freebie, and have had a series of >>>>> e-mails from >>>>> >>>>> someone called "Artie" who says that the standalone (886 pixels high) >>>>> won't fit on his >>>>> >>>>> Mac Laptop that has a screen res of 2880 x 1880. >>>>> >>>>> This seems odd to say the least. >>>>> >>>>> Richmond. >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Wed Apr 5 08:06:52 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 5 Apr 2017 06:06:52 -0600 Subject: standalone build: "checking directory exists" takes up to 2 min In-Reply-To: <001d01d2ade2$e610a3b0$b231eb10$@kestner.de> References: <001d01d2ade2$e610a3b0$b231eb10$@kestner.de> Message-ID: If you build a standalone for your app, and immediately build again, is the second build faster? If so, it would make me think that the server spins some of its drives down and it takes a second or two to spin them back up. Even if the drive you are accessing doesn't spin down, if others on the server DO, I think there can be a short delay while it spins other drives back up to speed. On Wed, Apr 5, 2017 at 2:01 AM, Tiemo Hollmann TB via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello, > > LC 8.1 ? 8.1.4 and 9.0. I am on Win 10. The stack file source as well as > the > standalone build directory is located on a windows server. > > When building a standalone f?r my (complex) main application on the server > dir the standalone builder progress stopps at the stage ?checking directory > exists? for 1-2 minutes. > > Building a standalone for the same stack in a local dir, it just takes > seconds. Now I could say, ok, LiveCode has to handle some network security > permissions or such for 2 mins. (btw. It is the same using a UNC path or > mapped drive) > > But building any other (smaller) stack or a new test stack on the server > dir > takes only seconds. > > What stack parameters have an impact on ?checking the build directory?? OK, > since this affects me only when building a standalone and doesn?t seem to > have any impact on the finished standalone, I probably have to put into my > trash of weired issues. > > Or any idea I can check for? > > Tiemo > > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From toolbook at kestner.de Wed Apr 5 09:23:28 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 5 Apr 2017 15:23:28 +0200 Subject: AW: standalone build: "checking directory exists" takes up to 2 min In-Reply-To: References: <001d01d2ade2$e610a3b0$b231eb10$@kestner.de> Message-ID: <001201d2ae0f$d0c612b0$72523810$@kestner.de> No, the delay is almost constant with this stack and after the delay of (most times) 1:40 min the, message ?checking directory exists? pops up again, as if there was a "time out" at the first try and then it takes only the standard 2-3 seconds, before the process continous. Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Mike Bonner via use-livecode Gesendet: Mittwoch, 5. April 2017 14:07 An: How to use LiveCode Cc: Mike Bonner Betreff: Re: standalone build: "checking directory exists" takes up to 2 min If you build a standalone for your app, and immediately build again, is the second build faster? If so, it would make me think that the server spins some of its drives down and it takes a second or two to spin them back up. Even if the drive you are accessing doesn't spin down, if others on the server DO, I think there can be a short delay while it spins other drives back up to speed. On Wed, Apr 5, 2017 at 2:01 AM, Tiemo Hollmann TB via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello, > > LC 8.1 ? 8.1.4 and 9.0. I am on Win 10. The stack file source as well > as the standalone build directory is located on a windows server. > > When building a standalone f?r my (complex) main application on the > server dir the standalone builder progress stopps at the stage > ?checking directory exists? for 1-2 minutes. > > Building a standalone for the same stack in a local dir, it just takes > seconds. Now I could say, ok, LiveCode has to handle some network > security permissions or such for 2 mins. (btw. It is the same using a > UNC path or mapped drive) > > But building any other (smaller) stack or a new test stack on the > server dir takes only seconds. > > What stack parameters have an impact on ?checking the build > directory?? OK, since this affects me only when building a standalone > and doesn?t seem to have any impact on the finished standalone, I > probably have to put into my trash of weired issues. > > Or any idea I can check for? > > Tiemo > > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Wed Apr 5 10:30:22 2017 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 5 Apr 2017 15:30:22 +0100 Subject: revBrowser Message-ID: <2a79de2a-09e7-3910-515f-2ea5338579df@tweedly.net> The dictionary says > There is a sample stack for revBrowser at the following location in the > > LiveCode folder: Resources/Examples/Browser Samper.rev. This stack > > demonstrates, with many examples, how to use browser objects in an > > application. > Anyone know where it can be found ? -- Alex. From mark at livecode.com Wed Apr 5 10:34:14 2017 From: mark at livecode.com (Mark Waddingham) Date: Wed, 05 Apr 2017 16:34:14 +0200 Subject: revBrowser In-Reply-To: <2a79de2a-09e7-3910-515f-2ea5338579df@tweedly.net> References: <2a79de2a-09e7-3910-515f-2ea5338579df@tweedly.net> Message-ID: On 2017-04-05 16:30, Alex Tweedly via use-livecode wrote: > The dictionary says > >> There is a sample stack for revBrowser at the following location in >> the >> >> LiveCode folder: Resources/Examples/Browser Samper.rev. This stack >> >> demonstrates, with many examples, how to use browser objects in an >> >> application. >> > Anyone know where it can be found ? It is inside the app bundle on Mac - Contents/Tools/Resources/... - on windows it will be in Program Files in the LiveCode folder. There probably is somewhere in the IDE that links to it, but I can't remember where off the top of my head... Any reason for revBrowser over the browser widget? ;) Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From MikeKerner at roadrunner.com Wed Apr 5 11:34:14 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 5 Apr 2017 11:34:14 -0400 Subject: APNS Debugging Message-ID: Does anyone have a tool/technique to help figure out what's going on with APNS? I have it working for some apps, but for my latest one, nothing. The feedback from the server looks ok, but cert fiddling hasn't fixed it, device id double-checks hasn't fixed it, blah, blah, blah. -- 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 alex at tweedly.net Wed Apr 5 11:53:49 2017 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 5 Apr 2017 16:53:49 +0100 Subject: revBrowser In-Reply-To: References: <2a79de2a-09e7-3910-515f-2ea5338579df@tweedly.net> Message-ID: <746fc627-5820-506d-4f2f-e1afd6d1d48a@tweedly.net> On 05/04/2017 15:34, Mark Waddingham via use-livecode wrote: > > It is inside the app bundle on Mac - Contents/Tools/Resources/... - on > windows it will be in Program Files in the LiveCode folder. There > probably is somewhere in the IDE that links to it, but I can't > remember where off the top of my head... > Thanks Mark. > Any reason for revBrowser over the browser widget? ;) > Well, I looked in the dictionary for "browser" and that's what I found :-) OK - so now I see there's a choice ....which should I use ? Is there a similar sample or lesson covering the browser widget ? Thanks Alex. From bobsneidar at iotecdigital.com Wed Apr 5 12:13:26 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 5 Apr 2017 16:13:26 +0000 Subject: for you language experts In-Reply-To: <0447B34F-D02E-46E3-9453-7CC23A87222F@gmail.com> References: <0447B34F-D02E-46E3-9453-7CC23A87222F@gmail.com> Message-ID: I Spent an hour memorizing the syntax and now it seems it's a joke?? Bob S > On Apr 4, 2017, at 13:59 , Colin Holgate via use-livecode wrote: > > This may amuse you: > > http://lolcode.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 mark at livecode.com Wed Apr 5 12:18:35 2017 From: mark at livecode.com (Mark Waddingham) Date: Wed, 05 Apr 2017 18:18:35 +0200 Subject: revBrowser In-Reply-To: <746fc627-5820-506d-4f2f-e1afd6d1d48a@tweedly.net> References: <2a79de2a-09e7-3910-515f-2ea5338579df@tweedly.net> <746fc627-5820-506d-4f2f-e1afd6d1d48a@tweedly.net> Message-ID: <77b327500a4240d9048f470fe88ff156@livecode.com> On 2017-04-05 17:53, Alex Tweedly via use-livecode wrote: > Well, I looked in the dictionary for "browser" and that's what I found > :-) The widgets come under different sections in the left hand drop-down at the moment unfortunately... > OK - so now I see there's a choice ....which should I use ? > Is there a similar sample or lesson covering the browser widget ? That is a good question - I shall check... However, one of the reasons for needed a revBrowser sample stack was that you have to setup and teardown your browsers yourself so it is fiddly to use in comparison to a normal control. The browser widget, on the other hand, is as simple as 'drag the widget from the tools palette to your card and set its url property'. The properties are also editable in the Property Inspector. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From bobsneidar at iotecdigital.com Wed Apr 5 12:24:26 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 5 Apr 2017 16:24:26 +0000 Subject: HyperCard on your current Macintosh computer In-Reply-To: References: Message-ID: Same here. I wish I still had all those old 800k floppy disks. I had some great apps on them. I wrote a Monopoly game once when Hypercard was only black and white! That was a trick. It was buggy, but it worked right up until you tried to collect money for someone landing on your property. The dice rolled, the pieces moved etc. Someone saw me programming it, and that was what got me hired in my first IT job. Bob S On Apr 5, 2017, at 02:34 , Keith Martin via use-livecode > wrote: I couldn't get that version of Mini vMac to run; it couldn't find the vMac.ROM file. But there's a slightly newer version of the app () that works well if you put it in there instead. It's at http://www.gryphel.com/c/minivmac/ From bobsneidar at iotecdigital.com Wed Apr 5 12:26:58 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 5 Apr 2017 16:26:58 +0000 Subject: Negative Numbers and NumberFormat In-Reply-To: <758F1D2C-363B-4D6F-9285-36F0649FF99F@hyperhh.de> References: <758F1D2C-363B-4D6F-9285-36F0649FF99F@hyperhh.de> Message-ID: Never mind. Bob S > On Apr 4, 2017, at 13:12 , hh via use-livecode wrote: > >>>> Bob S. wrote: >>>> You should rather say the number format determines the num of DIGITS. >>> hh wrote: >>> That's what you wish to have (good idea). But it's not like that, its >>> the length of the number as string. >> Bob S. wrote >> Really? Then why does : >> set the numberformat to 0.0; put -.1 + 0 result in -0.1 ? > > You are mixing input methods and output methods. > > "-.x" (or ".x") is allowed as input, but then converted to > "-0.x" (or "0.x"). Just the same for "00.x" or "-00.x" > > *After* that the numberformat is applied (and doesn't cut if leading is > longer). That's why > > set the numberformat to "0.0" > put 0-".1", 0+"-0.1", 0+"-00.1" after s -- you may leave out quotes > set the numberformat to "00.0" > put 0-".1", 0+"-0.1", 0+"-00.1" after s -- you may leave out quotes > > both yield -0.1,-0.1,-0.1 (in LC 6/7/8/9). > > To see more clear the string length is applied to the number: > You can use _ANY_ other one-byte-char other than the separator ("."). > > set the numberformat to "ab.c" > is equivalent to > set the numberformat to "00.0" > > This is comfortable if you wish to have the numbers length > dependent on any string varibale's length: > > put "Bob.S" into str > set the numberformat to str > put 0-12 & " _and_ " & 0+13 > > yields -12.0 _and_ 013.0, as I said (in LC 6/7/8/9). > > *** Once again, I like and support your idea. *** > But I suggest to name it a feature request, not a bug: > > Perhaps the option to apply the numberformat to the absolute value > only and choose/apply a prefix: either +, -, space or empty? > The empty is for people who distinguish negative and positive nums > by labels only (debit and credit) or colors only (red and black). > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Wed Apr 5 12:30:03 2017 From: mark at livecode.com (Mark Waddingham) Date: Wed, 05 Apr 2017 18:30:03 +0200 Subject: revBrowser In-Reply-To: <77b327500a4240d9048f470fe88ff156@livecode.com> References: <2a79de2a-09e7-3910-515f-2ea5338579df@tweedly.net> <746fc627-5820-506d-4f2f-e1afd6d1d48a@tweedly.net> <77b327500a4240d9048f470fe88ff156@livecode.com> Message-ID: <0715f9b2011f09bab78d12f061f5b055@livecode.com> On 2017-04-05 18:18, Mark Waddingham via use-livecode wrote: > That is a good question - I shall check... Panos dug this out: Hope this helps! Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From bobsneidar at iotecdigital.com Wed Apr 5 12:29:57 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 5 Apr 2017 16:29:57 +0000 Subject: this stack gets every closeStack message In-Reply-To: References: <1491354635448-4713694.post@n4.nabble.com> Message-ID: <2318D765-C637-4356-907F-6FB4D274F403@iotecdigital.com> the executionContexts Bob S On Apr 4, 2017, at 19:22 , Matt Maier via use-livecode > wrote: I'm not aware of a way to "trace" where a message has been and the keywords I can think of aren't turning up anything promising in the dictionary or google. From ludovic.thebault at laposte.net Wed Apr 5 12:35:15 2017 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Wed, 5 Apr 2017 18:35:15 +0200 Subject: Error when create iOS standalone, any workaround ? Message-ID: Hello, Since several months now, i?ve randomly error when i compile standalone for iOS(and rarely a crash of livecode). I?am the only one ? I?ve a lot of files included (> 4000 for ? 90 Mo). If you know a workaround? Thanks ! LC 8.13, on macOS 10.11 From merakosp at gmail.com Wed Apr 5 13:14:48 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Wed, 5 Apr 2017 18:14:48 +0100 Subject: Error when create iOS standalone, any workaround ? In-Reply-To: References: Message-ID: Hi Ludovic, What is the error message you are getting? Best, Panos -- On Wed, Apr 5, 2017 at 5:35 PM, Ludovic THEBAULT via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello, > > Since several months now, i?ve randomly error when i compile standalone > for iOS(and rarely a crash of livecode). I?am the only one ? > I?ve a lot of files included (> 4000 for ? 90 Mo). > > If you know a workaround? > > Thanks ! > > LC 8.13, on macOS 10.11 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Wed Apr 5 13:21:28 2017 From: mark at livecode.com (Mark Waddingham) Date: Wed, 05 Apr 2017 19:21:28 +0200 Subject: Negative Numbers and NumberFormat In-Reply-To: <69CFF2C4-1223-48E3-AA54-94824372E8B0@iotecdigital.com> References: <69CFF2C4-1223-48E3-AA54-94824372E8B0@iotecdigital.com> Message-ID: <5ac670fd9ff80a0b7c4e70b55280321c@livecode.com> On 2017-04-03 19:11, Bob Sneidar via use-livecode wrote: > Was anyone aware that the sign takes up one of the digital in number > format? For instance, > > set the numberformat to "00";put -1 +0 & ":" & 0 +0 & ":" & 0 +0 > returns: > -1:00:00 > > but > set the numberformat to "00";put -12 +0 & ":" & 0 +0 & ":" & 0 +0 > returns: > -12:00:00 > > Does no one else find that odd?? It looks odd, but is explainable. It has nothing to do with '-' eating up places for 0 in the numberFormat, but to do with the type of things in that expression: Contrast: set the numberformat to "00";put 0+0 & ":" & 0+0 & ":" & 0+0 => 00:00:00 And: set the numberformat to "00";put 0 & ":" & 0 & ":" & 0 => 0:0:0 The reason here is that the token 0 in a script is actually treated as a string *until* you do something to it which turns it into a number. Only numbers are subject to numberFormat. So, in the first case you are doing: put NUMBER & ":" & NUMBER & ":" & NUMBER In the second case you are doing: put STRING & ":" & STRING & ":" & STRING The & operator requires two strings, so in the first case the NUMBERs are being converted to strings (and thus subject to numberFormat) whereas in the second case they are already STRINGs so no conversion takes place. I class this as an anomaly. The correction would be that any token in script which *looks* like a number should act like a number in terms of string conversion rules (including the application of numberFormat), even if it can't be represented exactly as a number. This rule would mean that as long as you don't attempt to do arithmetic on something which looks like a number, how it looks will be preserved. The latter bit about 'not being able to do arithmetic' might sound odd but it is a reflection of the finiteness of computers. For example, the engine currently uses IEEE doubles for all its arithmetic. Whilst such things can represent a very large number of numbers (2^60 different values or near enough), the actual range a double can represent is substantially bigger (many orders of magnitude bigger, in fact - something like -10^300 to +10^300). This results in there being many many string representations which map to the same double (for example 0 can be written as 0, 0.0, 0.00, 0.000, ...). Indeed, doubles only have about 15 digits of decimal precision, meaning that if your actual number has more than 15 non-zero digits before or after a lot of 0's then you'll get an approximation to the actual number (well, you'll get a number which is within DBL_EPSILON of the real number, anyway - this kind of stuff gets pernickety very very quickly). In actual fact, the above rule can be extended further - and perhaps expressed more succinctly as: If a string is converted to a number, then the actual conversion should not occur until it is absolutely needed. The point here is that formatting a (decimal) string representation of a number via numberFormat does not actually require conversion to an actual number - it can be done using the string representation alone - and doing it that way would mean that numbers would be preserved to look exactly as they did unless you actual poke them with arithmetic. Of course, you might argue that 'whats the point of numbers if you don't do arithmetic on them' - but it is often the case that our programs manipulate numbers without doing anything to them, we just need to know that 'they are numbers'. A good example is the json importers/exporters which exist. They do zero arithmetic - they merely import and export existing data. In that case it is very important that the data is preserved *as is* otherwise you can't roundtrip (i.e. import data, and immediately export without changing anything). Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Wed Apr 5 14:02:01 2017 From: mark at livecode.com (Mark Waddingham) Date: Wed, 05 Apr 2017 20:02:01 +0200 Subject: Negative Numbers and NumberFormat In-Reply-To: <5ac670fd9ff80a0b7c4e70b55280321c@livecode.com> References: <69CFF2C4-1223-48E3-AA54-94824372E8B0@iotecdigital.com> <5ac670fd9ff80a0b7c4e70b55280321c@livecode.com> Message-ID: <9bac9768101aceb657d59d67f0b1eb9d@livecode.com> On 2017-04-05 19:21, Mark Waddingham via use-livecode wrote: > The latter bit about 'not being able to do arithmetic' might sound odd > but it is > a reflection of the finiteness of computers. Just correcting myself: 'finiteness of computers' was the wrong thing to say here - if you can represent a number as a decimal string in a computer then it is clearly finite as the amount of memory you have is finite. Therefore, it is more about 'needing to do arithmetic quickly on computers' (for some definition of 'quickly'). Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From bobsneidar at iotecdigital.com Wed Apr 5 14:18:27 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 5 Apr 2017 18:18:27 +0000 Subject: Negative Numbers and NumberFormat In-Reply-To: <5ac670fd9ff80a0b7c4e70b55280321c@livecode.com> References: <69CFF2C4-1223-48E3-AA54-94824372E8B0@iotecdigital.com> <5ac670fd9ff80a0b7c4e70b55280321c@livecode.com> Message-ID: <024C7704-92B1-4516-AB68-FDC9321043E3@iotecdigital.com> That was my point, that the sign should not take up one of the digits in numberformat 00. And thank you for your explanation about strings being strings until math was done on them. In my timeCalc() function however, I already convery everything to seconds and just before conatenating HH, MM and SS, I add 0 to each one. set the numberformat to "00" return tTotalHours +0 & ":" & tTotalMinutes +0 & ":" & tTotalSeconds +0 If tTotalHours is negative I get -H if it is less than 10. Like I said it's not a big deal. I can always work around it. Bob S > On Apr 5, 2017, at 10:21 , Mark Waddingham via use-livecode wrote: > > It looks odd, but is explainable. It has nothing to do with '-' eating up > places for 0 in the numberFormat, but to do with the type of things in > that expression: From ambassador at fourthworld.com Wed Apr 5 14:27:09 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 5 Apr 2017 11:27:09 -0700 Subject: standalone build: "checking directory exists" takes up to 2 min In-Reply-To: <001d01d2ade2$e610a3b0$b231eb10$@kestner.de> References: <001d01d2ade2$e610a3b0$b231eb10$@kestner.de> Message-ID: <250eaeb2-559d-f8a2-d5d2-256dd4278bf5@fourthworld.com> Tiemo Hollmann wrote: > LC 8.1 ? 8.1.4 and 9.0. I am on Win 10. The stack file source as well > as the standalone build directory is located on a windows server. > > When building a standalone f?r my (complex) main application on the > server dir the standalone builder progress stopps at the stage > ?checking directory exists? for 1-2 minutes. Shared volumes can be a great solution for many needs, and over the years I've used them often. I don't have a clue to how to resolve your issue with shared volumes, but FWIW I've found that converting an old PC into a local file server with Nextcloud has offered all those benefits and more, for the low cost of some setup time. I work on my files locally, with local speed. And with Nextcloud's native clients for all platforms, everything I do is automatically synced through the server to my other computers. Better, I also get versioning. If I want last week's copy of something I've been working on, I just log into Nextcloud and select that from the many time-stamped versions it's been maintaining for me. There's a whole lot more and I've waxed about Nextcloud here too often as it is. But it really is a great package, and once you have a server set up on your LAN you can add LC Server to it and put it to work doing all sorts of things you don't want to tie up your workstation with, in addition to getting automatic incremental versioned backups all day. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bobsneidar at iotecdigital.com Wed Apr 5 14:28:08 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 5 Apr 2017 18:28:08 +0000 Subject: Negative Numbers and NumberFormat In-Reply-To: <024C7704-92B1-4516-AB68-FDC9321043E3@iotecdigital.com> References: <69CFF2C4-1223-48E3-AA54-94824372E8B0@iotecdigital.com> <5ac670fd9ff80a0b7c4e70b55280321c@livecode.com> <024C7704-92B1-4516-AB68-FDC9321043E3@iotecdigital.com> Message-ID: <0EC791BE-6F46-44DF-BAB8-C7AE0BD4F39D@iotecdigital.com> And here is an oddity again. In the dictionary, there is no mention of spaces or any other character besides "0.#" being valid in a numberformat string, but: set the numberformat to " 00";put -09+0 & ":" & 00+0 & ":" & 00+0 produces -09:000:000 In fact, you can put ANYTHING in place of a 0, and it will treat it as though it were a 0! Whaaaaa??? Bob S From mark at livecode.com Wed Apr 5 14:56:40 2017 From: mark at livecode.com (Mark Waddingham) Date: Wed, 05 Apr 2017 20:56:40 +0200 Subject: Negative Numbers and NumberFormat In-Reply-To: <0EC791BE-6F46-44DF-BAB8-C7AE0BD4F39D@iotecdigital.com> References: <69CFF2C4-1223-48E3-AA54-94824372E8B0@iotecdigital.com> <5ac670fd9ff80a0b7c4e70b55280321c@livecode.com> <024C7704-92B1-4516-AB68-FDC9321043E3@iotecdigital.com> <0EC791BE-6F46-44DF-BAB8-C7AE0BD4F39D@iotecdigital.com> Message-ID: <6f582222821c3bcc95db9bda435cc2cf@livecode.com> On 2017-04-05 20:28, Bob Sneidar via use-livecode wrote: > And here is an oddity again. In the dictionary, there is no mention of > spaces or any other character besides "0.#" being valid in a > numberformat string, but: > > set the numberformat to " 00";put -09+0 & ":" & 00+0 & ":" & 00+0 > > produces -09:000:000 > > In fact, you can put ANYTHING in place of a 0, and it will treat it as > though it were a 0! > > Whaaaaa??? I think the numberFormat is perhaps just appearing to do more than it actually does. Basically it allows you to set the field width before and after a decimal point. So: set the numberFormat to "." Will result in the engine padding either side of the decimal point up to the specified number of chars with 0 if the length of that part is less than the specified width. Whether or not the '-' sign should be included in these width calculations I guess is a matter of debate... Warmest Regards, Mark. P.S. Apologies for missing your actual point before, I should have read the thread in more detail before posting ;) -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From ludovic.thebault at laposte.net Wed Apr 5 15:00:34 2017 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Wed, 5 Apr 2017 21:00:34 +0200 Subject: Error when create iOS standalone, any workaround ? In-Reply-To: References: Message-ID: <68DAB92D-BCF0-440C-84BD-7BC9D4BE070A@laposte.net> > Le 5 avr. 2017 ? 19:14, panagiotis merakos via use-livecode a ?crit : > > Hi Ludovic, > > What is the error message you are getting? > > Best, > Panos Now i?ve this error : linkin for arm (arm64) failed with id: warning: id: warning: object file (/Applications/Livecode Indy [?]/Device-10_2/Standalone) was built for newer iOS version (10.2) then being linked (7.0)object file (/private/var/[?]) was built for newer iOS version (10.2) then being linked (7.0) From richmondmathewson at gmail.com Wed Apr 5 15:04:56 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 5 Apr 2017 22:04:56 +0300 Subject: Mysterious customer In-Reply-To: References: <61A9807A-570B-4C8A-9FB5-7315EF5C3DB2@all-auctions.com> Message-ID: <7615ba36-1f70-b1cb-31d6-96a2c3688efd@gmail.com> Thankyou very much indeed, that is exactly the answer I was looking for: very glad indeed to know it was "not me" :) Richmond. On 4/5/17 2:59 pm, Kay C Lan via use-livecode wrote: > I have a Retina display, I downloaded your app and it's as Roger deduced: > > If, via System Preferences -> Displays I change my usual setting of > 'More Space' to 'Larger Text' the Retina Display is effectively turned > into a 1024 x 640 display; you App is magnified and doesn't fit and it > can't be made to. If I select the next setting up, it's effectively a > 1280 x 800 display and still your App doesn't fit. Any setting from > 'Default' up to the full resolution of 'More Space' handles your app > just fine. > > That should help Artie but I tend to agree with Roger. If you are > catering for people like yourself, who may hold onto computers until > they actually die (the computer, not the user;-) then a height no > taller than 756 px should reduce your support calls. > > On Wed, Apr 5, 2017 at 3:51 AM, Richmond Mathewson via use-livecode > wrote: >> "Artie" says: >> >> "I wonder if, suspect, actually, that this has something to do with my >> Retina screen." >> >> I have no access to a retina screen, so would be grateful if anyone who has >> would go to the MacUpdate website and >> download my "CHAR REF" standalone and see what happens. >> >> Richmond. >> >> On 4/4/17 7:45 pm, Peter Bogdanoff via use-livecode wrote: >>> My application is 728 high. This covers 99% of users. I know that you?re >>> not releasing it for Windows, but there are Windows users with 11? screens. >>> If the OS reports screen resolution < 800 I hide the Taskbar as well. >>> >>> Peter Bogdanoff >>> >>> >>> On Apr 4, 2017, at 6:30 AM, Rick Harrison via use-livecode >>> wrote: >>> >>>> Hi Roger, >>>> >>>> I think you have hit upon the real problem, >>>> and the correct solution. If he is looking at >>>> his Mac at a resolution of either 1024 x 640 >>>> or 1280 by 800 then Richmond?s app wouldn?t >>>> fit at all properly on the screen. >>>> >>>> For my everyday use I usually have my screen >>>> set to 1280 by 800 because I don?t like >>>> the small text. When I work on an app >>>> I always switch to 1920 by 1200. >>>> >>>> Good catch! >>>> >>>> Rick >>>> >>>> >>>> That sounds like the answer >>>>> On Apr 4, 2017, at 8:06 AM, Roger Eller via use-livecode >>>>> wrote: >>>>> >>>>> Is it possible that "Artie" has his display set to a lower resolution to >>>>> compensate for vision impairment? >>>>> >>>>> ~Roger >>>>> >>>>> On Tue, Apr 4, 2017 at 6:49 AM, Richmond via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>>> I pumped out a 32-bit Mac standalone from my Char Ref stack and >>>>>> >>>>>> released it through MacUpdate as a freebie, and have had a series of >>>>>> e-mails from >>>>>> >>>>>> someone called "Artie" who says that the standalone (886 pixels high) >>>>>> won't fit on his >>>>>> >>>>>> Mac Laptop that has a screen res of 2880 x 1880. >>>>>> >>>>>> This seems odd to say the least. >>>>>> >>>>>> Richmond. >>>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Wed Apr 5 15:07:21 2017 From: mark at livecode.com (Mark Waddingham) Date: Wed, 5 Apr 2017 20:07:21 +0100 Subject: Negative Numbers and NumberFormat In-Reply-To: <6f582222821c3bcc95db9bda435cc2cf@livecode.com> References: <69CFF2C4-1223-48E3-AA54-94824372E8B0@iotecdigital.com> <5ac670fd9ff80a0b7c4e70b55280321c@livecode.com> <024C7704-92B1-4516-AB68-FDC9321043E3@iotecdigital.com> <0EC791BE-6F46-44DF-BAB8-C7AE0BD4F39D@iotecdigital.com> <6f582222821c3bcc95db9bda435cc2cf@livecode.com> Message-ID: I should say the bit of engine code which does parsing and application of the numberformat has been left untouched in terms of what it does for as long as I can remember... It is one of those places where a subtle change could break apps quite easily as it is somewhat hard to see precisely what it should and should not do! Mark Sent from my iPhone > On 5 Apr 2017, at 19:56, Mark Waddingham via use-livecode wrote: > >> On 2017-04-05 20:28, Bob Sneidar via use-livecode wrote: >> And here is an oddity again. In the dictionary, there is no mention of >> spaces or any other character besides "0.#" being valid in a >> numberformat string, but: >> set the numberformat to " 00";put -09+0 & ":" & 00+0 & ":" & 00+0 >> produces -09:000:000 >> In fact, you can put ANYTHING in place of a 0, and it will treat it as >> though it were a 0! >> Whaaaaa??? > > I think the numberFormat is perhaps just appearing to do more than it actually does. Basically it allows you to set the field width before and after a decimal point. So: > > set the numberFormat to "." > > Will result in the engine padding either side of the decimal point up to the specified number of chars with 0 if the length of that part is less than the specified width. > > Whether or not the '-' sign should be included in these width calculations I guess is a matter of debate... > > Warmest Regards, > > Mark. > > P.S. Apologies for missing your actual point before, I should have read the thread in more detail before posting ;) > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From merakosp at gmail.com Wed Apr 5 15:07:55 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Wed, 5 Apr 2017 20:07:55 +0100 Subject: Error when create iOS standalone, any workaround ? In-Reply-To: <68DAB92D-BCF0-440C-84BD-7BC9D4BE070A@laposte.net> References: <68DAB92D-BCF0-440C-84BD-7BC9D4BE070A@laposte.net> Message-ID: Ah yes, I see that occasionally (usually when I install a new version of Xcode or LiveCode), but it seems to disappear on subsequent build attempts. I have not managed to find a reproducible recipe though. On Wed, Apr 5, 2017 at 8:00 PM, Ludovic THEBAULT via use-livecode < use-livecode at lists.runrev.com> wrote: > > > Le 5 avr. 2017 ? 19:14, panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com> a ?crit : > > > > Hi Ludovic, > > > > What is the error message you are getting? > > > > Best, > > Panos > > Now i?ve this error : > > linkin for arm (arm64) failed with id: warning: id: warning: object file > (/Applications/Livecode Indy [?]/Device-10_2/Standalone) was built for > newer iOS version (10.2) then being linked (7.0)object file > (/private/var/[?]) was built for newer iOS version (10.2) then being > linked (7.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 ludovic.thebault at laposte.net Wed Apr 5 15:17:53 2017 From: ludovic.thebault at laposte.net (Ludovic) Date: Wed, 5 Apr 2017 21:17:53 +0200 Subject: Error when create iOS standalone, any workaround ? In-Reply-To: References: <68DAB92D-BCF0-440C-84BD-7BC9D4BE070A@laposte.net> Message-ID: <7874E21B-2449-4D56-B529-647C5567E93F@laposte.net> I have the error morte frequently. It seems to be more common when Livecode is in the background and during long compilations. Ludovic > Le 5 avr. 2017 ? 21:07, panagiotis merakos via use-livecode a ?crit : > > Ah yes, I see that occasionally (usually when I install a new version of > Xcode or LiveCode), but it seems to disappear on subsequent build attempts. > > I have not managed to find a reproducible recipe though. > > On Wed, Apr 5, 2017 at 8:00 PM, Ludovic THEBAULT via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> >>> Le 5 avr. 2017 ? 19:14, panagiotis merakos via use-livecode < >> use-livecode at lists.runrev.com> a ?crit : >>> >>> Hi Ludovic, >>> >>> What is the error message you are getting? >>> >>> Best, >>> Panos >> >> Now i?ve this error : >> >> linkin for arm (arm64) failed with id: warning: id: warning: object file >> (/Applications/Livecode Indy [?]/Device-10_2/Standalone) was built for >> newer iOS version (10.2) then being linked (7.0)object file >> (/private/var/[?]) was built for newer iOS version (10.2) then being >> linked (7.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 >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Wed Apr 5 15:23:38 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 5 Apr 2017 15:23:38 -0400 Subject: APNS Debugging In-Reply-To: References: Message-ID: wow, that took long enough to diagnose. It turns out that there was an invalid provisioning profile for the app, BUT I could still compile/link/distribute using the profile, and the app still ran. Once I got down to the bottom of the page to check the profiles (after trying everything else), I got a hazard icon next to the profile and a note that it was invalid. Weird. On Wed, Apr 5, 2017 at 11:34 AM, Mike Kerner wrote: > Does anyone have a tool/technique to help figure out what's going on with > APNS? I have it working for some apps, but for my latest one, nothing. > The feedback from the server looks ok, but cert fiddling hasn't fixed it, > device id double-checks hasn't fixed it, blah, blah, blah. > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From rdimola at evergreeninfo.net Wed Apr 5 16:02:37 2017 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 5 Apr 2017 16:02:37 -0400 Subject: Error when create iOS standalone, any workaround ? In-Reply-To: References: <68DAB92D-BCF0-440C-84BD-7BC9D4BE070A@laposte.net> Message-ID: <00a901d2ae47$92f73030$b8e59090$@net> Panos, I see this maybe 30% of this after first launching LC, then not again until a re-launch(maybe). I can build and build... with no error after the first error. If I don't get the error on the first build then I never see the error in that session. Can't seem to find a recipe. 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 panagiotis merakos via use-livecode Sent: Wednesday, April 05, 2017 3:08 PM To: How to use LiveCode Cc: panagiotis merakos Subject: Re: Error when create iOS standalone, any workaround ? Ah yes, I see that occasionally (usually when I install a new version of Xcode or LiveCode), but it seems to disappear on subsequent build attempts. I have not managed to find a reproducible recipe though. On Wed, Apr 5, 2017 at 8:00 PM, Ludovic THEBAULT via use-livecode < use-livecode at lists.runrev.com> wrote: > > > Le 5 avr. 2017 ? 19:14, panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com> a ?crit : > > > > Hi Ludovic, > > > > What is the error message you are getting? > > > > Best, > > Panos > > Now i?ve this error : > > linkin for arm (arm64) failed with id: warning: id: warning: object > file (/Applications/Livecode Indy [?]/Device-10_2/Standalone) was > built for newer iOS version (10.2) then being linked (7.0)object file > (/private/var/[?]) was built for newer iOS version (10.2) then being > linked (7.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 > _______________________________________________ use-livecode mailing list use-livecode at 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 Apr 5 16:06:58 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 5 Apr 2017 20:06:58 +0000 Subject: Negative Numbers and NumberFormat In-Reply-To: References: <69CFF2C4-1223-48E3-AA54-94824372E8B0@iotecdigital.com> <5ac670fd9ff80a0b7c4e70b55280321c@livecode.com> <024C7704-92B1-4516-AB68-FDC9321043E3@iotecdigital.com> <0EC791BE-6F46-44DF-BAB8-C7AE0BD4F39D@iotecdigital.com> <6f582222821c3bcc95db9bda435cc2cf@livecode.com> Message-ID: <06293680-2800-482D-A773-A0806D7523C1@iotecdigital.com> Yup. I have thought for a long time that there should be a formatNumber() function that did almost exactly what Excel does in terms of formatting a number. I will have to look into that. I'll post it if I throw one together. Should be easy given the string operations LC is capable of. Bob S On Apr 5, 2017, at 12:07 , Mark Waddingham via use-livecode > wrote: I should say the bit of engine code which does parsing and application of the numberformat has been left untouched in terms of what it does for as long as I can remember... It is one of those places where a subtle change could break apps quite easily as it is somewhat hard to see precisely what it should and should not do! Mark From MikeKerner at roadrunner.com Wed Apr 5 16:11:56 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 5 Apr 2017 16:11:56 -0400 Subject: Error when create iOS standalone, any workaround ? In-Reply-To: <00a901d2ae47$92f73030$b8e59090$@net> References: <68DAB92D-BCF0-440C-84BD-7BC9D4BE070A@laposte.net> <00a901d2ae47$92f73030$b8e59090$@net> Message-ID: I've been running into this frequently. This happens in a variety of combinations. Sometimes just running it again fixes it. Sometimes it does not. The thing that most frequently resolves it is if I go into standalone builder settings and change the target ios version, even just reselecting the one that I already selected. On Wed, Apr 5, 2017 at 4:02 PM, Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > > Panos, I see this maybe 30% of this after first launching LC, then not > again until a re-launch(maybe). I can build and build... with no error > after the first error. If I don't get the error on the first build then I > never see the error in that session. Can't seem to find a recipe. > > 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 panagiotis merakos via use-livecode > Sent: Wednesday, April 05, 2017 3:08 PM > To: How to use LiveCode > Cc: panagiotis merakos > Subject: Re: Error when create iOS standalone, any workaround ? > > Ah yes, I see that occasionally (usually when I install a new version of > Xcode or LiveCode), but it seems to disappear on subsequent build attempts. > > I have not managed to find a reproducible recipe though. > > On Wed, Apr 5, 2017 at 8:00 PM, Ludovic THEBAULT via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > > > Le 5 avr. 2017 ? 19:14, panagiotis merakos via use-livecode < > > use-livecode at lists.runrev.com> a ?crit : > > > > > > Hi Ludovic, > > > > > > What is the error message you are getting? > > > > > > Best, > > > Panos > > > > Now i?ve this error : > > > > linkin for arm (arm64) failed with id: warning: id: warning: object > > file (/Applications/Livecode Indy [?]/Device-10_2/Standalone) was > > built for newer iOS version (10.2) then being linked (7.0)object file > > (/private/var/[?]) was built for newer iOS version (10.2) then being > > linked (7.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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 preid at reidit.co.uk Wed Apr 5 17:18:58 2017 From: preid at reidit.co.uk (Peter Reid) Date: Wed, 5 Apr 2017 22:18:58 +0100 Subject: Standalone Magnify Problem Message-ID: <333B6872-39D2-4095-B369-315177D39A02@reidit.co.uk> I'm following an approach published sometime ago (http://forums.livecode.com/viewtopic.php?f=7&t=8288 ) to provide a floating magnifier over the top of quite a large image. I have it working fine when I'm in the development environment but it's not working reliably in a standalone app. Here's a summary of what I'm doing: - I generate images of 1,000 x 1,000 pixels, created using the export snapshot facility - my app lets the user select a magnification factor in the range 4-16 times the original - I scale-up a copy of the image (making an image of 16,000 x 16,000 say) and magnify this scaled copy - I present the magnified view through a group using the hScroll/vScroll and formattedHeight/formattedWidth properties The above works well when in the development environment. When it's a standalone app I get various incorrect behaviours: - the magnified view is all white, or all black - the magnified view is of the wrong part of the image - it sometimes works in the Mac standalone but not the Windows standalone I have built the standalone using lc 8.1.2, lc 8.1.3, lc 8.1.4-rc1 and lc 9.0.0-dp6. In all cases I have tried building using automatic inclusions and manual inclusion selection, but none of this makes it work in the standalone! For manual selection I tried inluding every option available for Mac & Windows irrespective of whether I needed it or not. However, even when I include "everything", it still doesn't work in the standalones! The problems imply the lack of some inclusion and/or memory issues. Has anyone come across this and, if so do you have a solution?! Thanks. Peter -- Peter Reid Loughborough, UK From terry.judd at unimelb.edu.au Wed Apr 5 18:11:27 2017 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Wed, 5 Apr 2017 22:11:27 +0000 Subject: Import or export snapshot at current scaleFactor Message-ID: <078CC99A-75B5-4419-9DC3-50309DBC5A20@unimelb.edu.au> I?m automating the creation of a series of images (mostly graphs or similar) to include in some non LC generated reports and I need to be able to produce them at a higher than screen resolution so that they will look ok. I was thinking that I could just increase the scaleFactor of the stack and use ?export snapshot from ? to create the images but they are produced at ?normal? resolution. The workaround (I don?t want to have to recreate everything at a larger scale because I?m also using the same LC controls to print to pdfs directly) is to use the ?export snapshot from rect? but that requires that everything is visible on-screen and isn?t obscured by other stuff. I don?t suppose there is any way to use the ?export snapshot from ? form and get it to capture the image scaled according to the scaleFactor? And if not, is there any chance of this being supported in the future (i.e. is it worth a feature request)? Terry... From wow at together.net Wed Apr 5 18:11:28 2017 From: wow at together.net (Richard Miller) Date: Wed, 5 Apr 2017 18:11:28 -0400 Subject: iOS app rejected five times because of background audio setting In-Reply-To: <00d401d2acc4$844c0df0$8ce429d0$@net> References: <40097D21-717F-4EF4-A744-0418ADC3ECCE@m-r-d.de> <7DD7340C-B71A-4008-99EF-195655BBAF4B@iotecdigital.com> <00cc01d2acbd$c1af6720$450e3560$@net> <0988B08B-CDEF-4F4A-8E5F-91DD126DB549@together.net> <00d401d2acc4$844c0df0$8ce429d0$@net> Message-ID: Apple just rejected my app again, for the same reason, complaining that my code regarding background audio Is incorrect, even though it is identical to yours. This time, I have challenged them to discuss this issue on the phone. On 4/3/17 5:51 PM, Ralph DiMola wrote: > I just looked at the info.plist from my last app that Apple approved. > > 1) The UIApplicationExitsOnSuspend key is not there. > 2) the UIBackgroundModes key looks like what you see. > UIBackgroundModes > > > > > What does your info.plist in the app look like? > > OPTION 2: You bumped up against an less than expert reviewer. If your plist > looks correct then challenge them. I have done that in the past when I was > sure they were wrong and they acquiesced. If that does not work then go to > arbitration. > > I feel your pain... Let us know how it ends. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of Richard Miller via use-livecode > Sent: Monday, April 03, 2017 5:31 PM > To: use-livecode at lists.runrev.com > Cc: Richard Miller > Subject: Re: iOS app rejected five times because of background audio setting > > Thanks for the info, Ralph. I had figured out the exit-on-suspend issue > previously. In my last app submission, I completely removed the entire > section in the info.plist file which referenced UIBackgroundModes, but they > still rejected it on the same claim that background audio was enabled. This > tells me one of two things: there is some other file in the standalone that > is referencing this function, or, by completely removing it from info.plist, > this effectively defaults to enabling that function. > > I am hoping that the precise code I included in my previous email is the > correct way to disable background audio in info.plist, and that there is no > other file other than the info.plist that needs to be addressed. > > Richard > > > Sent from my iPhone > >> On Apr 3, 2017, at 5:03 PM, Ralph DiMola > wrote: >> After reading closer: >> 1) Make sure that the "Background Audio" is un-ticked. >> 2) Do the "plist hack" as enumerated in my last email. >> 3) This is all I do and have never been rejected for the "Background > Audio" >> issue. >> 4) I have never tried to submit to the store with v9. This might be a >> v9 issue. >> >> UIBackgroundModes >> >> >> >> >> Seems to be correct. >> >> Ralph DiMola >> IT Director >> Evergreen Information Services >> rdimola at evergreeninfo.net >> >> >> -----Original Message----- >> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On >> Behalf Of Richard Miller via use-livecode >> Sent: Monday, April 03, 2017 3:52 PM >> To: How to use LiveCode >> Cc: Richard Miller >> Subject: iOS app rejected five times because of background audio >> setting >> >> I have gone back and forth with Apple five times in an attempt to get >> this setting correct. I made the mistake originally of enabling the >> background audio option in the iOS standalone settings area. I was >> trying to prevent the app from exiting when the user switched to a >> different app. I know that this setting solves that issue, but it also >> caused Apple to reject my app because I was not including any background > audio. >> I have since realized that the correct way to deal with this is to >> modify the "exit on suspend" clause in the livecodescript file. But >> after creating a new standalone and submitting it to Apple, they keep >> telling me I am still referencing the backgroundaudio option. I tried >> making changes to the info.plist and settings.plist files, but I can't > seem to get this right. >> I just downloaded a fresh copy of LC 9.0 and created a new standalone. >> When I look at the info.plist file in the standalone, this is what I find: >> >> UIBackgroundModes >> >> >> >> >> >> Is this correct? Is this the way the code should read when the >> background audio option is not being used? >> >> Thanks for any help with this, >> Richard Miller >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Wed Apr 5 18:15:40 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 5 Apr 2017 17:15:40 -0500 Subject: Negative Numbers and NumberFormat In-Reply-To: References: <69CFF2C4-1223-48E3-AA54-94824372E8B0@iotecdigital.com> <5ac670fd9ff80a0b7c4e70b55280321c@livecode.com> <024C7704-92B1-4516-AB68-FDC9321043E3@iotecdigital.com> <0EC791BE-6F46-44DF-BAB8-C7AE0BD4F39D@iotecdigital.com> <6f582222821c3bcc95db9bda435cc2cf@livecode.com> Message-ID: <66dffc4a-5358-904f-725e-9c8c0517fa20@hyperactivesw.com> On 4/5/17 2:07 PM, Mark Waddingham via use-livecode wrote: > I should say the bit of engine code which does parsing and > application of the numberformat has been left untouched in terms of > what it does for as long as I can remember... It is one of those > places where a subtle change could break apps quite easily as it is > somewhat hard to see precisely what it should and should not do! HyperCard distinguished between "#" and "0" and produced different results. It sounds like LC doesn't? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From johnpatten at me.com Wed Apr 5 18:17:19 2017 From: johnpatten at me.com (JOHN PATTEN) Date: Wed, 05 Apr 2017 15:17:19 -0700 Subject: MDM and App deployment Message-ID: Hi All, History - We use JAMF (Casper) as our MDM. Our math teachers have been using an app called Casper Focus which locks students into a particular web site for when they are giving the students an assessment. JAMF no longer supports Casper Focus now that Apple has created the Classroom app. However, the Classroom app does not have the ability to lock students to a specific webs site, only to specific apps. In comes LiveCode. I create a little secure web browser app that only goes to their, one, math web site, and now teachers can use Apple Classroom and my app to secure students to the app i created when giving their assessments. Problem: I can upload the App just fine into JAMF and into the JAMF Self Service app. We use our Enterprise Apple Developer profile to create an iOS app in LiveCode. I then, because of past practice, create a folder and title it ?Payload, ? drop the iOS app into the folder, compress the folder, and rename it my app.ipa. A student iPad can see the app in their Self Service app, but when they go to install it reports it can?t download at this time. Here is a little video demo: https://youtu.be/--JJPUx3Zlg The app is not pretty, but it is functional. It is essentially a browser object with a little behind the scenes data gathering via mysql on its usage. The data is just for me to see how it?s being used. Anybody distributed iOS apps via an MDM? Is there anything that has to be done beyond the Standalone Settings configuration window, i.e info.plist etc. etc? If I can get this MDM distribution thing figured out, I hope to do more :) Thank you! From ambassador at fourthworld.com Wed Apr 5 18:48:37 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 5 Apr 2017 15:48:37 -0700 Subject: Negative Numbers and NumberFormat In-Reply-To: <66dffc4a-5358-904f-725e-9c8c0517fa20@hyperactivesw.com> References: <66dffc4a-5358-904f-725e-9c8c0517fa20@hyperactivesw.com> Message-ID: Jacque wrote: > HyperCard distinguished between "#" and "0" and produced different > results. It sounds like LC doesn't? Confirmed - running this script in v9dp6 and again all the way back in v6.0: on mouseUp set the numberformat to "###.###" put 2.5 + 2.5 into x set the numberformat to "000.000" put 2.5 + 2.5 into y put x &cr& y end mouseUp ...I get: 005.000 005.000 Where I would have expected: 5.0 005.000 Who wants to file the bug report? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From jiml at netrin.com Wed Apr 5 19:14:10 2017 From: jiml at netrin.com (Jim Lambert) Date: Wed, 5 Apr 2017 16:14:10 -0700 Subject: Import or export snapshot at current scaleFactor In-Reply-To: References: Message-ID: <337A5D58-542B-4B7D-BB5B-6F800E44A0F8@netrin.com> Terry, Try this import snapshot from ObjRef at size (the width of ObjRef * scaleBy),(the height of ObjRef * scaleBy) Where ObjRef is the object whose snapshot you want to import and scaleBy is the scaling factor. So something like: import snapshot from grp 1 at size (the width of grp 1 * 2),(the height of grp 1 * 2) If that produces an the image you need just change the command to an export snapshot command. Jim Lambert From terry.judd at unimelb.edu.au Wed Apr 5 19:36:11 2017 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Wed, 5 Apr 2017 23:36:11 +0000 Subject: Import or export snapshot at current scaleFactor In-Reply-To: <337A5D58-542B-4B7D-BB5B-6F800E44A0F8@netrin.com> References: <337A5D58-542B-4B7D-BB5B-6F800E44A0F8@netrin.com> Message-ID: Thanks Jim, that?s perfect! I don?t know how many times I?ve looked at the import/export command in the dictionary and not seen the size modifier. Much appreciated. Terry... On 6/04/2017 9:14 am, "use-livecode on behalf of Jim Lambert via use-livecode" wrote: Terry, Try this import snapshot from ObjRef at size (the width of ObjRef * scaleBy),(the height of ObjRef * scaleBy) Where ObjRef is the object whose snapshot you want to import and scaleBy is the scaling factor. So something like: import snapshot from grp 1 at size (the width of grp 1 * 2),(the height of grp 1 * 2) If that produces an the image you need just change the command to an export snapshot command. Jim Lambert _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Wed Apr 5 19:42:58 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 5 Apr 2017 18:42:58 -0500 Subject: Negative Numbers and NumberFormat In-Reply-To: References: <66dffc4a-5358-904f-725e-9c8c0517fa20@hyperactivesw.com> Message-ID: <78e022e4-ca6b-3860-29fc-16d5b57ac5dc@hyperactivesw.com> On 4/5/17 5:48 PM, Richard Gaskin via use-livecode wrote: > Jacque wrote: > >> HyperCard distinguished between "#" and "0" and produced different >> results. It sounds like LC doesn't? > > Confirmed - running this script in v9dp6 and again all the way back in > v6.0: > > on mouseUp > set the numberformat to "###.###" > put 2.5 + 2.5 into x > set the numberformat to "000.000" > put 2.5 + 2.5 into y > put x &cr& y > end mouseUp > > ...I get: > > 005.000 > 005.000 > > Where I would have expected: > > 5.0 > 005.000 > > Who wants to file the bug report? > The fact that the dictionary also doesn't discriminate implies it isn't a bug, it's intentional, and the hash/zero options are for HC compatibility only. I can't remember if MC worked as I would have expected. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Wed Apr 5 20:27:28 2017 From: paul at researchware.com (Paul Dupuis) Date: Wed, 5 Apr 2017 20:27:28 -0400 Subject: Negative Numbers and NumberFormat In-Reply-To: <78e022e4-ca6b-3860-29fc-16d5b57ac5dc@hyperactivesw.com> References: <66dffc4a-5358-904f-725e-9c8c0517fa20@hyperactivesw.com> <78e022e4-ca6b-3860-29fc-16d5b57ac5dc@hyperactivesw.com> Message-ID: On 4/5/2017 7:42 PM, J. Landman Gay via use-livecode wrote: > On 4/5/17 5:48 PM, Richard Gaskin via use-livecode wrote: >> Jacque wrote: >> >>> HyperCard distinguished between "#" and "0" and produced different >>> results. It sounds like LC doesn't? >> >> Confirmed - running this script in v9dp6 and again all the way back in >> v6.0: >> >> on mouseUp >> set the numberformat to "###.###" >> put 2.5 + 2.5 into x >> set the numberformat to "000.000" >> put 2.5 + 2.5 into y >> put x &cr& y >> end mouseUp >> >> ...I get: >> >> 005.000 >> 005.000 NumberFormat on applies when the number is output or forced to convert to a string (for example when doing string concatenation). The variant script below: on mouseUp set the numberformat to "###.###" put 2.5 + 2.5 into x put x & cr after msg set the numberformat to "000.000" put 2.5 + 2.5 into y put y &cr after msg end mouseUp results in: 005 005.000 In the message box. Just another data point for the discussion. From waprothero at gmail.com Wed Apr 5 21:34:50 2017 From: waprothero at gmail.com (William Prothero) Date: Wed, 5 Apr 2017 18:34:50 -0700 Subject: Could not open module file Message-ID: Building a stand-alone in LC 8.1.4 (RC1) on Mac OS 10.11.6. I get ?Could not open module file?. This is a very un-helpful error message. What could it mean? I get it if I let LC find all inclusions. It would seem that the error message would be able to include the name of the module file?? Hmm... Bill William A. Prothero http://earthlearningsolution.org/ From jacque at hyperactivesw.com Wed Apr 5 22:18:56 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 5 Apr 2017 21:18:56 -0500 Subject: MDM and App deployment In-Reply-To: References: Message-ID: <0839fdbf-21c5-b11d-e9e7-01ce844493a8@hyperactivesw.com> On 4/5/17 5:17 PM, JOHN PATTEN via use-livecode wrote: > A student iPad can see the app in their Self Service app, but when > they go to install it reports it can?t download at this time. I don't know if things are different with an Enterprise account, but in my experience an app that partially downloads and then errors indicates something wrong with the distribution profile. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From terry.judd at unimelb.edu.au Wed Apr 5 22:35:51 2017 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Thu, 6 Apr 2017 02:35:51 +0000 Subject: MDM and App deployment In-Reply-To: <0839fdbf-21c5-b11d-e9e7-01ce844493a8@hyperactivesw.com> References: <0839fdbf-21c5-b11d-e9e7-01ce844493a8@hyperactivesw.com> Message-ID: <5F2AACD3-13C7-450E-AC07-A88F58B0C1FC@unimelb.edu.au> I missed the start of this thread so I might be off target but the app needs to be server from a secure (https) server. If it isn?t and/or if your manifest file isn?t perfect then you will get that sort of message as well. Terry... On 6/04/2017 12:18 pm, "use-livecode on behalf of J. Landman Gay via use-livecode" wrote: On 4/5/17 5:17 PM, JOHN PATTEN via use-livecode wrote: > A student iPad can see the app in their Self Service app, but when > they go to install it reports it can?t download at this time. I don't know if things are different with an Enterprise account, but in my experience an app that partially downloads and then errors indicates something wrong with the distribution profile. -- 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 bogdanoff at me.com Wed Apr 5 23:24:20 2017 From: bogdanoff at me.com (Peter Bogdanoff) Date: Wed, 05 Apr 2017 20:24:20 -0700 Subject: Stack focus Message-ID: I?m seeing this issue where going from stack ?A? to stack ?B? doesn?t focus on stack ?B?: script: go card 1 of stack "A" go card 1 of stack ?B" goes to stack ?B? but its titlebar is greyed out until you physically click on stack ?B.? This: go card 1 of stack "A" go card 1 of stack ?B" click at 100,100 shows the signs of focus on stack ?B? for just a moment, then loses the focus. This in LC 8.1.3 but seeing it in earlier versions of 8 as well. I thought this worked better before where you ended up with an active stack ?B." Peter Bogdanoff From merakosp at gmail.com Thu Apr 6 01:11:23 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Thu, 6 Apr 2017 06:11:23 +0100 Subject: Could not open module file In-Reply-To: References: Message-ID: Hi Bill, Just a shot in the dark: Does the stack contain a spinner widget from LiveCode 9.0 DP x? If yes, this will not compile in LiveCode 8.x. Best, Panos On 6 Apr 2017 02:35, "William Prothero via use-livecode" < use-livecode at lists.runrev.com> wrote: Building a stand-alone in LC 8.1.4 (RC1) on Mac OS 10.11.6. I get ?Could not open module file?. This is a very un-helpful error message. What could it mean? I get it if I let LC find all inclusions. It would seem that the error message would be able to include the name of the module file?? Hmm... Bill William A. Prothero http://earthlearningsolution.org/ _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthlearningsolutions.org Thu Apr 6 01:45:23 2017 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Wed, 5 Apr 2017 22:45:23 -0700 Subject: Could not open module file In-Reply-To: References: Message-ID: <93F6C7F5-BB73-476B-9C48-515171880176@earthlearningsolutions.org> I don't think so, but I'll try it tomorrow with lc9. Thanks, Good call! Bill William Prothero http://es.earthednet.org > On Apr 5, 2017, at 10:11 PM, panagiotis merakos via use-livecode wrote: > > Hi Bill, > Just a shot in the dark: Does the stack contain a spinner widget from > LiveCode 9.0 DP x? If yes, this will not compile in LiveCode 8.x. > > Best, > Panos > > On 6 Apr 2017 02:35, "William Prothero via use-livecode" < > use-livecode at lists.runrev.com> wrote: > > Building a stand-alone in LC 8.1.4 (RC1) on Mac OS 10.11.6. > > I get ?Could not open module file?. > > This is a very un-helpful error message. What could it mean? I get it if I > let LC find all inclusions. It would seem that the error message would be > able to include the name of the module file?? Hmm... > > Bill > > William A. Prothero > http://earthlearningsolution.org/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Thu Apr 6 06:09:13 2017 From: hh at hyperhh.de (hh) Date: Thu, 6 Apr 2017 12:09:13 +0200 Subject: Standalone Magnify Problem Message-ID: <3AF19FCF-001E-4DD6-A35C-ADE7631C9A6D@hyperhh.de> > Peter R. wrote: > I have it working fine when I'm in the development environment > but it's not working reliably in a standalone app. a) Did you already check to have the same paintcompression in both environments? b) If you make such large images (why?) you may get a conflict with the 8bit-coords limit. May be the standalone engine has still more of such limits included for 'formatted'-measurements than the IDE. c) Did you already check to have the same resizequality in both environments? ("best" may create an alphachannel) From dunbarx at aol.com Thu Apr 6 08:49:23 2017 From: dunbarx at aol.com (dunbarx) Date: Thu, 6 Apr 2017 05:49:23 -0700 (PDT) Subject: Stack focus In-Reply-To: References: Message-ID: <1491482963561-4713758.post@n4.nabble.com> Certainly not as issue in v.6, where I languish. How about v.7? Craig Newman -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Stack-focus-tp4713754p4713758.html Sent from the Revolution - User mailing list archive at Nabble.com. From benr_mc at cogapp.com Thu Apr 6 10:14:58 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 6 Apr 2017 15:14:58 +0100 Subject: spotting a mouseclick in the transparent area of an image In-Reply-To: <17D44F7C-6661-4802-80F9-DDADA0AF85F0@livecode.org> References: <79d1f016-fa4c-103d-a6b4-fd5a64178b96@cogapp.com> <17D44F7C-6661-4802-80F9-DDADA0AF85F0@livecode.org> Message-ID: <6cf9524f-4edc-2100-e05f-d7504e266749@cogapp.com> Hi Paul, Thanks for this - this was the perfect solution for my needs. (I just modified the loading script to add three lines: grab the alphaData, replace numtobyte(0) with numtobyte(1), put it back...). cheers, Ben On 03/04/2017 04:29, Paul Hibbert via use-livecode wrote: > Ben, if you could edit the PNGs to add a 1% tone to the transparent areas (maybe with a batch process) this allows LC to accept the clicks within the image area. > > The advantage of this is you could have a 1 % tone inside the area you need be active and completely transparent where you don?t want clicks to be active for example a circular button. The 1% tone should be indistinguishable from the transparent area and will still show the background through. > > Paul > > >> On Mar 30, 2017, at 10:52 AM, Ben Rubinstein via use-livecode wrote: >> >> I have a group containing a grid of square images. >> >> Some of the images are gifs, some are pngs, and some of the latter have an alpha channel with some transparent bits. >> >> The images are all used as buttons, to control something else - the images in essence are labels or icons for the buttons. The images have 3d borders to make them look more button-like. >> >> The problem is that the if the user happens to click in the transparent area of an image, the target of the mouseup isn't the image but the card. But the image is a button, so I want to catch mouseup anywhere in this square image. >> >> I thought that I might be able to use 'the mousecontrol', when the target was the card, to find out which image the mouse was in when; but this too takes account of the transparency of the image. >> >> I can see this is a really useful feature - but in this case I want the opposite! Is there a flag somewhere, or another easy way to achieve this? >> >> The non-easy ways I'm aware of are: >> - hide all the images and replace them with buttons referencing the images >> - re-compositing the images to flatten the alpha channel >> - iterating through all the images - there are many, in a scrolling group - testing for the mouseloc within the rect of each >> >> >> Is there anything simpler than this, to treat an image as opaque for the purposes of hit-testing? >> >> TIA >> >> Ben From waprothero at gmail.com Thu Apr 6 10:48:22 2017 From: waprothero at gmail.com (William Prothero) Date: Thu, 6 Apr 2017 07:48:22 -0700 Subject: Could not open module file In-Reply-To: References: Message-ID: <0565C43D-7BBF-48BA-8ECF-F3BF6AE1E02D@gmail.com> This is a project I haven?t worked on for awhile. LiveCode 9.0 produces the same error message. I?ve tried it when setting it to detect inclusions, but there is the same error. Is there any reason the error dialog couldn?t specify which module it can?t load? I am assuming it is wanting some widget? Or, for now, is there a way I can identify the module it is having trouble loading without tedious substitutions and thrashing around? My desperation move is to go back to an older version that will save, but I hate to lose work I?ve done since.. Regards, Bill > On Apr 5, 2017, at 10:11 PM, panagiotis merakos via use-livecode wrote: > > Hi Bill, > Just a shot in the dark: Does the stack contain a spinner widget from > LiveCode 9.0 DP x? If yes, this will not compile in LiveCode 8.x. > > Best, > Panos > > On 6 Apr 2017 02:35, "William Prothero via use-livecode" < > use-livecode at lists.runrev.com> wrote: > > Building a stand-alone in LC 8.1.4 (RC1) on Mac OS 10.11.6. > > I get ?Could not open module file?. > > This is a very un-helpful error message. What could it mean? I get it if I > let LC find all inclusions. It would seem that the error message would be > able to include the name of the module file?? Hmm... > > Bill > > William A. Prothero > http://earthlearningsolution.org/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Apr 6 10:51:33 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 6 Apr 2017 14:51:33 +0000 Subject: Negative Numbers and NumberFormat In-Reply-To: References: <66dffc4a-5358-904f-725e-9c8c0517fa20@hyperactivesw.com> <78e022e4-ca6b-3860-29fc-16d5b57ac5dc@hyperactivesw.com> Message-ID: I've created a monster. All the more reason to depricate numberformat and go with some kind of formatNumber() function like Excel has. I'll have a go today sometime. Bob S > On Apr 5, 2017, at 17:27 , Paul Dupuis via use-livecode wrote: > > On 4/5/2017 7:42 PM, J. Landman Gay via use-livecode wrote: >> On 4/5/17 5:48 PM, Richard Gaskin via use-livecode wrote: >>> Jacque wrote: >>> >>>> HyperCard distinguished between "#" and "0" and produced different >>>> results. It sounds like LC doesn't? >>> >>> Confirmed - running this script in v9dp6 and again all the way back in >>> v6.0: >>> >>> on mouseUp >>> set the numberformat to "###.###" >>> put 2.5 + 2.5 into x >>> set the numberformat to "000.000" >>> put 2.5 + 2.5 into y >>> put x &cr& y >>> end mouseUp >>> >>> ...I get: >>> >>> 005.000 >>> 005.000 > > NumberFormat on applies when the number is output or forced to convert > to a string (for example when doing string concatenation). The variant > script below: > > on mouseUp > set the numberformat to "###.###" > put 2.5 + 2.5 into x > put x & cr after msg > set the numberformat to "000.000" > put 2.5 + 2.5 into y > put y &cr after msg > end mouseUp > > results in: > > 005 > 005.000 > > In the message box. Just another data point for the discussion. > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From johnpatten at me.com Thu Apr 6 11:28:27 2017 From: johnpatten at me.com (JOHN PATTEN) Date: Thu, 06 Apr 2017 08:28:27 -0700 Subject: MDM and App deployment In-Reply-To: <5F2AACD3-13C7-450E-AC07-A88F58B0C1FC@unimelb.edu.au> References: <0839fdbf-21c5-b11d-e9e7-01ce844493a8@hyperactivesw.com> <5F2AACD3-13C7-450E-AC07-A88F58B0C1FC@unimelb.edu.au> Message-ID: Thanks Terry and Jacqueline, The file/app is being served via our MDM which is using https. Terry, you mention that the manifest file has to be perfect, do you happen to know what that would look like? I have never tweaked the manifest file that gets created automatically. I have been following Richard Miller?s challenges with getting his app into the regular app store so I know the info.plist file can be problematic, depending on what you are trying to do. However, I?m not quite sure what a ?perfect? plist file should look like. Someone else had mentioned being sure that I,? "Call all the links on the plist and html with https,? but I?m not sure what that means. It was pulled from this this stackoverflow conversation, http://stackoverflow.com/questions/34820355/enterprise-app-installing-but-immediatelly-dissapears , but I have a hunch it is not the same problem as mine. Let me know if I? missing something in the plist file?. Thank you! > On Apr 5, 2017, at 7:35 PM, Terry Judd via use-livecode wrote: > > I missed the start of this thread so I might be off target but the app needs to be server from a secure (https) server. If it isn?t and/or if your manifest file isn?t perfect then you will get that sort of message as well. > > Terry... > > On 6/04/2017 12:18 pm, "use-livecode on behalf of J. Landman Gay via use-livecode" wrote: > > On 4/5/17 5:17 PM, JOHN PATTEN via use-livecode wrote: >> A student iPad can see the app in their Self Service app, but when >> they go to install it reports it can?t download at this time. > > I don't know if things are different with an Enterprise account, but in > my experience an app that partially downloads and then errors indicates > something wrong with the distribution profile. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Thu Apr 6 11:35:56 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 6 Apr 2017 08:35:56 -0700 Subject: Negative Numbers and NumberFormat In-Reply-To: References: Message-ID: <73653260-a5d8-0ea7-e6b3-f0a2efc947cc@fourthworld.com> Paul Dupuis wrote: > On 4/5/17 5:48 PM, Richard Gaskin via use-livecode wrote: >> >> Confirmed - running this script in v9dp6 and again all the way back >> in v6.0: >> >> on mouseUp >> set the numberformat to "###.###" >> put 2.5 + 2.5 into x >> set the numberformat to "000.000" >> put 2.5 + 2.5 into y >> put x &cr& y >> end mouseUp >> >> ...I get: >> >> 005.000 >> 005.000 > > NumberFormat on applies when the number is output or forced to convert > to a string (for example when doing string concatenation). The variant > script below: > > on mouseUp > set the numberformat to "###.###" > put 2.5 + 2.5 into x > put x & cr after msg > set the numberformat to "000.000" > put 2.5 + 2.5 into y > put y &cr after msg > end mouseUp > > results in: > > 005 > 005.000 D'oh! Yes, of course, I'd forgotten to make sure the value is coerced to a string for each unique output. Good catch. It still seems off though, on the left side of the decimal. I would have expected the first value to be "5", given that "#" provides a space only when needed. The LC Dict only discusses the distinction between "#" and "0" for numbers on the right side of the decimal, so I turned to "HyperTalk 2.2: The Book" for further guidance - and found what appear to be contradicting examples. Among the many examples listed on p.411 for the "numberFormat" property are: set the numberFormat to "#.000" - 0.25031 is displayed as .250 set the numberFormat to "#.###" - 0.25031 is displayed as .25 set the numberFormat to "#.0000000" - 0.25031 is displayed as 0.2503100 set the numberFormat to "#.000####" - 0.25031 is displayed as 0.25031 In each of those examples, what's happening on the right side of the decimal follows predictable rules. But the left side seems inconsistent, in some cases using the "#" to force a leading 0 and in other cases not. The relevant portion of the book's text for that entry says: The number of zeroes before the decimal point is the minimum number of integer digits to display. HyperTalk always includes at least enough digits to specify the result of the calculation. If there are more digits in the number than the numberFormat calls for, HyperTalk displays all the digits. If there are fewer digits than the numberFormat calls for, HyperTalk adds leading zeroes to the beginning of the number. There's further discussion of what happens after the decimal, but for what happens before the decimal only "0" is discussed, with no mention of what "#" should do when on the left side of the decimal. The same omission is found (or more specifically, not found ) in the SuperTalk 3.0 Language Guide. Unable to find clarity on that, I decided to try each of those HyperTalk examples above in LC - here's what I got: set the numberFormat to "#.000" - 0.25031 is displayed as 0.250 set the numberFormat to "#.###" - 0.25031 is displayed as 0.25 set the numberFormat to "#.0000000" - 0.25031 is displayed as 0.2503100 set the numberFormat to "#.000####" - 0.25031 is displayed as 0.25031 Summary: HyperTalk: I have no idea what it's doing. LiveCode: Either "#" or "0" to the left of the decimal will result in padding with leading 0s. LC is certainly more consistent, but is it what we'd expect or want? As Mark Waddingham noted, the engine code for numberFormat has been unchanged in such a long time that, regardless of what *might* be "best", it's unlikely to change at this point out of concern for scripts dependent on its current behavior. Perhaps this raises a more interesting question: Should we consider creating a new more fully-featured function which not only behaves as we might find ideal for decimal values, but also supports formatting of phone numbers, currency, and other common display formats? Maybe a pair of functions would be useful so we could easily transform between display and calculation formats, something like: put formattedValue(".25", "currency-US") -- returns: $0.25 put rawValue("$0.25". "currency-US") -- returns: 0.25 Should there be some provision for doing that on a list where a column specifier could be supplied?: put rawValue(tSomeLlist, "currency-US", 2) -- returns the list with values in column 2 converted to calculable formats. This could be written in LC Script or LC Builder - might be a good community project.... -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Thu Apr 6 11:43:39 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 6 Apr 2017 08:43:39 -0700 Subject: Stack focus In-Reply-To: References: Message-ID: <6136a3de-6787-d2fa-8309-6dd3ffe95af4@fourthworld.com> Peter Bogdanoff wrote: > I?m seeing this issue where going from stack ?A? to stack ?B? doesn?t > focus on stack ?B?: > > script: > go card 1 of stack "A" > go card 1 of stack ?B" > > goes to stack ?B? but its titlebar is greyed out until you physically > click on stack ?B.? > > This: > go card 1 of stack "A" > go card 1 of stack ?B" > click at 100,100 > > shows the signs of focus on stack ?B? for just a moment, then loses > the focus. > > This in LC 8.1.3 but seeing it in earlier versions of 8 as well. In v8.1.4rc1 I'm seeing the expected behavior in which each test has stack "b" top-most and active. Do you have any preOpen* or open* messages in play which may be altering what's happening? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bobsneidar at iotecdigital.com Thu Apr 6 12:15:08 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 6 Apr 2017 16:15:08 +0000 Subject: Negative Numbers and NumberFormat In-Reply-To: <73653260-a5d8-0ea7-e6b3-f0a2efc947cc@fourthworld.com> References: <73653260-a5d8-0ea7-e6b3-f0a2efc947cc@fourthworld.com> Message-ID: <17C5F865-E422-49F1-BE3D-9521428FDE5F@iotecdigital.com> I already have some functions for formatting numerical values I can submit for review. formatDate() is already in the masterLibrary. function formatMoney theValue -- strip out monetary symbols replace "$" with empty in theValue replace "?" with empty in theValue switch case theValue = 0 or theValue >= 1 put format("$%1.2f", theValue) into theValue break case theValue >= 0 put format("%#.2f?", theValue) into theValue break case theValue <= -1 replace "-" WITH empty in theValue put format("($%1.2f)", theValue) into theValue break case theValue < 0 replace "-" WITH empty in theValue put format("(%#.2f?)", theValue) into theValue break end switch return theValue end formatMoney function formatPhone thePhoneNumber, theFormat -- text -- mid if theFormat is empty then put "classic" into theFormat end if if thePhoneNumber is empty then return thePhoneNumber end if put word 2 to -1 of thePhoneNumber into theExtension delete word 2 to -1 of thePhoneNumber repeat WITH i = 1 to the number of chars of thePhoneNumber if char i of thePhoneNumber is a number then put char i of thePhoneNumber after theNewValue end if end repeat put the length of theNewValue into theLength if theLength is not among the items of "7,10" then return thePhoneNumber && theExtension exit formatPhone end if put "-" before char -4 of theNewValue if theLength is 10 then if theFormat is "classic" then put ") " after char 3 of theNewValue put "(" before theNewValue else put "-" after char 3 of theNewValue end if end if if theExtension is not empty then put " " & theExtension after theNewValue return theNewValue end formatPhone On Apr 6, 2017, at 08:35 , Richard Gaskin via use-livecode > wrote: Perhaps this raises a more interesting question: Should we consider creating a new more fully-featured function which not only behaves as we might find ideal for decimal values, but also supports formatting of phone numbers, currency, and other common display formats? Maybe a pair of functions would be useful so we could easily transform between display and calculation formats, something like: put formattedValue(".25", "currency-US") -- returns: $0.25 put rawValue("$0.25". "currency-US") -- returns: 0.25 Should there be some provision for doing that on a list where a column specifier could be supplied?: put rawValue(tSomeLlist, "currency-US", 2) -- returns the list with values in column 2 converted to calculable formats. This could be written in LC Script or LC Builder - might be a good community project.... -- Richard Gaskin From dochawk at gmail.com Thu Apr 6 12:56:37 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 6 Apr 2017 09:56:37 -0700 Subject: html5 feature list anywhere? sqlite? local file access? Message-ID: I am trying unsuccessfully to see what the feature list is for html5, and what, if anything, has been omitted. In particular, is SQLite still built in? (if not, I'd be dead in the water) Can things be saved to local files, and read back from them? (not much point in creating a document that can't be saved, and need to get the license key and other preferences). ANd is the performance adequate for an application-sized project, as opposed to app-sized? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From waprothero at gmail.com Thu Apr 6 13:25:20 2017 From: waprothero at gmail.com (William Prothero) Date: Thu, 6 Apr 2017 10:25:20 -0700 Subject: Could not open module file In-Reply-To: <0565C43D-7BBF-48BA-8ECF-F3BF6AE1E02D@gmail.com> References: <0565C43D-7BBF-48BA-8ECF-F3BF6AE1E02D@gmail.com> Message-ID: <2FE234BB-9417-41CB-B98D-B2F6AFBE4F00@gmail.com> My problem was that I had the Calendar widget installed. It is not in the correct format for current LC Versions. Bill > On Apr 6, 2017, at 7:48 AM, William Prothero via use-livecode wrote: > > This is a project I haven?t worked on for awhile. LiveCode 9.0 produces the same error message. I?ve tried it when setting it to detect inclusions, but there is the same error. > > Is there any reason the error dialog couldn?t specify which module it can?t load? I am assuming it is wanting some widget? Or, for now, is there a way I can identify the module it is having trouble loading without tedious substitutions and thrashing around? > > My desperation move is to go back to an older version that will save, but I hate to lose work I?ve done since.. > > Regards, > Bill > >> On Apr 5, 2017, at 10:11 PM, panagiotis merakos via use-livecode wrote: >> >> Hi Bill, >> Just a shot in the dark: Does the stack contain a spinner widget from >> LiveCode 9.0 DP x? If yes, this will not compile in LiveCode 8.x. >> >> Best, >> Panos >> >> On 6 Apr 2017 02:35, "William Prothero via use-livecode" < >> use-livecode at lists.runrev.com> wrote: >> >> Building a stand-alone in LC 8.1.4 (RC1) on Mac OS 10.11.6. >> >> I get ?Could not open module file?. >> >> This is a very un-helpful error message. What could it mean? I get it if I >> let LC find all inclusions. It would seem that the error message would be >> able to include the name of the module file?? Hmm... >> >> Bill >> >> William A. Prothero >> http://earthlearningsolution.org/ >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From merakosp at gmail.com Thu Apr 6 13:28:08 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Thu, 6 Apr 2017 18:28:08 +0100 Subject: Could not open module file In-Reply-To: <2FE234BB-9417-41CB-B98D-B2F6AFBE4F00@gmail.com> References: <0565C43D-7BBF-48BA-8ECF-F3BF6AE1E02D@gmail.com> <2FE234BB-9417-41CB-B98D-B2F6AFBE4F00@gmail.com> Message-ID: Hi Bill, Thank you for the update. We have to make this error more descriptive, to indicate the specific widget that caused the problem. Best, Panos -- On Thu, Apr 6, 2017 at 6:25 PM, William Prothero via use-livecode < use-livecode at lists.runrev.com> wrote: > My problem was that I had the Calendar widget installed. It is not in the > correct format for current LC Versions. > Bill > > > On Apr 6, 2017, at 7:48 AM, William Prothero via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > This is a project I haven?t worked on for awhile. LiveCode 9.0 produces > the same error message. I?ve tried it when setting it to detect inclusions, > but there is the same error. > > > > Is there any reason the error dialog couldn?t specify which module it > can?t load? I am assuming it is wanting some widget? Or, for now, is there > a way I can identify the module it is having trouble loading without > tedious substitutions and thrashing around? > > > > My desperation move is to go back to an older version that will save, > but I hate to lose work I?ve done since.. > > > > Regards, > > Bill > > > >> On Apr 5, 2017, at 10:11 PM, panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> Hi Bill, > >> Just a shot in the dark: Does the stack contain a spinner widget from > >> LiveCode 9.0 DP x? If yes, this will not compile in LiveCode 8.x. > >> > >> Best, > >> Panos > >> > >> On 6 Apr 2017 02:35, "William Prothero via use-livecode" < > >> use-livecode at lists.runrev.com> wrote: > >> > >> Building a stand-alone in LC 8.1.4 (RC1) on Mac OS 10.11.6. > >> > >> I get ?Could not open module file?. > >> > >> This is a very un-helpful error message. What could it mean? I get it > if I > >> let LC find all inclusions. It would seem that the error message would > be > >> able to include the name of the module file?? Hmm... > >> > >> Bill > >> > >> William A. Prothero > >> http://earthlearningsolution.org/ > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul at researchware.com Thu Apr 6 13:50:56 2017 From: paul at researchware.com (Paul Dupuis) Date: Thu, 6 Apr 2017 13:50:56 -0400 Subject: Negative Numbers and NumberFormat In-Reply-To: <17C5F865-E422-49F1-BE3D-9521428FDE5F@iotecdigital.com> References: <73653260-a5d8-0ea7-e6b3-f0a2efc947cc@fourthworld.com> <17C5F865-E422-49F1-BE3D-9521428FDE5F@iotecdigital.com> Message-ID: <3b30bc73-e4c9-c70f-4423-cfd98a4cc42c@researchware.com> I am curious why folks use numberFormat vs the format function (which is much more consistent and versatile). Is the issue the complexity of the formatting strings for the format function? put format("$%0.2f",tMoney) into msg for tMoney = 5.55, you get $5.55 for tMoney = 5.33333, you get $5.33 want a space between the $, then use put format("$ %0.2f",tMoney) into msg want a leading zero and minimum of 2 digits before the decimal point put format("$ %05.2f",5.553) into msg I concur with Richards comment from Mark - it just seems like a low value and high risk work to change numberFormat at this point. I would think people should consider it deprecated in favor of format. From hh at hyperhh.de Thu Apr 6 14:13:27 2017 From: hh at hyperhh.de (hh) Date: Thu, 6 Apr 2017 20:13:27 +0200 Subject: Negative Numbers and NumberFormat Message-ID: <90510376-6077-43F5-AECC-2FD9E135A685@hyperhh.de> You forgot to give examples for Bob's original problem? The negative numbers ... ;-) > Paul D. wrote: >> put format("$%0.2f",tMoney) into msg >> >> for tMoney = 5.55, you get $5.55 >> for tMoney = 5.33333, you get $5.33 >> >> want a space between the $, then use >> put format("$ %0.2f",tMoney) into msg >> >> want a leading zero and minimum of 2 digits before the decimal point >> put format("$ %05.2f",5.553) into msg From bogdanoff at me.com Thu Apr 6 14:43:51 2017 From: bogdanoff at me.com (Peter Bogdanoff) Date: Thu, 06 Apr 2017 11:43:51 -0700 Subject: Stack focus In-Reply-To: <6136a3de-6787-d2fa-8309-6dd3ffe95af4@fourthworld.com> References: <6136a3de-6787-d2fa-8309-6dd3ffe95af4@fourthworld.com> Message-ID: Yes, when I start afresh with making two stacks one with a button that goes from one stack to the other and back again, all is well. I was doing this same thing earlier, but running the script from the multi-line message box. There, of course, the focus is on the message box and stays on the message box. So, my confusion. Also, my original working two stacks have a lot going on as far as close stack operations that I am sure are complicating things. What I?m seeing now in my original stacks, not before, is, my scripts now leave the two stacks in a sort of limbo land. The focus does stay on stack B, even though the very last line of any script says to go stack A. However the focus isn?t completely on stack B?it doesn?t show the shadow property fully until you physically click on that stack. Also, while the focus seems to be on stack B, command/3 changes cards on stack A. But an arrowkey message is not received by stack A, but only by stack B. I suspect something might have changed along the line in LC or my stacks, or both. This is not a pressing issue for me at this time, and I would rather let it stay in limbo land for now? Peter On Apr 6, 2017, at 8:43 AM, Richard Gaskin via use-livecode wrote: > Peter Bogdanoff wrote: > > > I?m seeing this issue where going from stack ?A? to stack ?B? doesn?t > > focus on stack ?B?: > > > > script: > > go card 1 of stack "A" > > go card 1 of stack ?B" > > > > goes to stack ?B? but its titlebar is greyed out until you physically > > click on stack ?B.? > > > > This: > > go card 1 of stack "A" > > go card 1 of stack ?B" > > click at 100,100 > > > > shows the signs of focus on stack ?B? for just a moment, then loses > > the focus. > > > > This in LC 8.1.3 but seeing it in earlier versions of 8 as well. > > In v8.1.4rc1 I'm seeing the expected behavior in which each test has stack "b" top-most and active. > > Do you have any preOpen* or open* messages in play which may be altering what's happening? > > -- > 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 harrison at all-auctions.com Thu Apr 6 14:47:15 2017 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 6 Apr 2017 14:47:15 -0400 Subject: Passing Variables in a non-CGI LC Server? In-Reply-To: References: Message-ID: I have a few variables I would like to pass from one .Introduced1.0OSmac, windows, linux, ios, androidPlatformsdesktop, server, mobile From paul at researchware.com Thu Apr 6 14:47:55 2017 From: paul at researchware.com (Paul Dupuis) Date: Thu, 6 Apr 2017 14:47:55 -0400 Subject: Negative Numbers and NumberFormat In-Reply-To: <90510376-6077-43F5-AECC-2FD9E135A685@hyperhh.de> References: <90510376-6077-43F5-AECC-2FD9E135A685@hyperhh.de> Message-ID: <256b62ae-3dcf-b547-c1e3-abf1c3de3be9@researchware.com> Okay, put format("$ %05.2f",-5.553) into msg gives $ -5.55 I am sure there is some formatting someone would want that can not be done with the format function, but most can and without spending the time to exhaustively test, I suspect that anything you can do with numberFormat you can do with format. On 4/6/2017 2:13 PM, hh via use-livecode wrote: > You forgot to give examples for Bob's original problem? > The negative numbers ... ;-) > >> Paul D. wrote: >>> put format("$%0.2f",tMoney) into msg >>> >>> for tMoney = 5.55, you get $5.55 >>> for tMoney = 5.33333, you get $5.33 >>> >>> want a space between the $, then use >>> put format("$ %0.2f",tMoney) into msg >>> >>> want a leading zero and minimum of 2 digits before the decimal point >>> put format("$ %05.2f",5.553) into msg > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From nabble at mad.pink Thu Apr 6 15:47:00 2017 From: nabble at mad.pink (pink) Date: Thu, 6 Apr 2017 12:47:00 -0700 (PDT) Subject: Trying to make an HTML5 app Message-ID: <1491508020678-4713775.post@n4.nabble.com> I am trying to sell the powers that be on getting an HTML5 license, so I made up a quick little survey app, but I cannot successfully compile and run it. I'm time limited here, I need to get this working by tomorrow morning if I hope to get my boss to shell out some money... I have a few widgets, namely SVG icons, NavBar, and Segmented Controls. Otherwise, just some buttons and a scrollbar, minimal scripting I have tried compiling with the Community versions of Livecode including: 8.1.1, 8.1.2, 8.1.3 on both Mac and Windows. I keep get the error "To use dlopen, you need to use Emscripten's linking support, see https://github.com/kripken/emscripten/wiki/Linking" on MacOS, using LC Community 8.1.4 RC-1: Livecode crashes when compiling I've tried numerous stacks, and none of them compile correctly for me, so here are my questions as a possible HTML5 customer: 1. What do I need to do to get past the error above? 2. Does the commercial version of HTML5 work better (or at least differently) than the Community version? 3. Is there a "best" version of Livecode to use for compiling HTML5 apps? ----- --- Greg (pink) Miller mad, pink and dangerous to code -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Trying-to-make-an-HTML5-app-tp4713775.html Sent from the Revolution - User mailing list archive at Nabble.com. From waprothero at gmail.com Thu Apr 6 16:22:13 2017 From: waprothero at gmail.com (William Prothero) Date: Thu, 6 Apr 2017 13:22:13 -0700 Subject: Could not open module file In-Reply-To: References: <0565C43D-7BBF-48BA-8ECF-F3BF6AE1E02D@gmail.com> <2FE234BB-9417-41CB-B98D-B2F6AFBE4F00@gmail.com> Message-ID: Panos: Agreed. Thanks! I found that the Calendar widget was causing the problem. It is not compatible with livecode 9. Bill > On Apr 6, 2017, at 10:28 AM, panagiotis merakos via use-livecode wrote: > > Hi Bill, > > Thank you for the update. We have to make this error more descriptive, to > indicate the specific widget that caused the problem. > > Best, > Panos > -- > > On Thu, Apr 6, 2017 at 6:25 PM, William Prothero via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> My problem was that I had the Calendar widget installed. It is not in the >> correct format for current LC Versions. >> Bill >> >>> On Apr 6, 2017, at 7:48 AM, William Prothero via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> This is a project I haven?t worked on for awhile. LiveCode 9.0 produces >> the same error message. I?ve tried it when setting it to detect inclusions, >> but there is the same error. >>> >>> Is there any reason the error dialog couldn?t specify which module it >> can?t load? I am assuming it is wanting some widget? Or, for now, is there >> a way I can identify the module it is having trouble loading without >> tedious substitutions and thrashing around? >>> >>> My desperation move is to go back to an older version that will save, >> but I hate to lose work I?ve done since.. >>> >>> Regards, >>> Bill >>> >>>> On Apr 5, 2017, at 10:11 PM, panagiotis merakos via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>>> >>>> Hi Bill, >>>> Just a shot in the dark: Does the stack contain a spinner widget from >>>> LiveCode 9.0 DP x? If yes, this will not compile in LiveCode 8.x. >>>> >>>> Best, >>>> Panos >>>> >>>> On 6 Apr 2017 02:35, "William Prothero via use-livecode" < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> Building a stand-alone in LC 8.1.4 (RC1) on Mac OS 10.11.6. >>>> >>>> I get ?Could not open module file?. >>>> >>>> This is a very un-helpful error message. What could it mean? I get it >> if I >>>> let LC find all inclusions. It would seem that the error message would >> be >>>> able to include the name of the module file?? Hmm... >>>> >>>> Bill >>>> >>>> William A. Prothero >>>> http://earthlearningsolution.org/ >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Apr 6 16:23:26 2017 From: waprothero at gmail.com (William Prothero) Date: Thu, 6 Apr 2017 13:23:26 -0700 Subject: Calendar widget fails in Livecode 9 Message-ID: <488EE60C-A2AF-425B-BA01-131E8DA9426F@gmail.com> Folks: The calendar widget by Eleanor Buchanan fails in Livecode 9. I like that widget. Is there any replacement? Bill William A. Prothero http://earthlearningsolution.org/ From bonnmike at gmail.com Thu Apr 6 16:27:42 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 6 Apr 2017 14:27:42 -0600 Subject: Passing Variables in a non-CGI LC Server? In-Reply-To: References: Message-ID: Can't answer the rest, but as for the global.. Since you can utilize stacks with server, you could declare a global just as you would normally, in any scripts that needed it, and it would work just like in lc proper. It would only persist during the run of that particular instance. On Thu, Apr 6, 2017 at 12:47 PM, Rick Harrison via use-livecode < use-livecode at lists.runrev.com> wrote: > I have a few variables I would like to pass > from one a web browser with an lc server that is not > configured to be a cgi server. The variables > I want to process are in flux as values and > are not quite ready to be put into the database > just yet. > > How should one do that these days? > > In addition, In my search of the dictionary > I also came across that one > supposedly can declare a global > variable and that it will supposedly > work with the server platform too. > Really? How would that work? > > Syntax > global variableNameList > SummaryDeclares a global variable <>.Introduced1.0OSmac, windows, linux, > ios, androidPlatformsdesktop, server, mobile > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From blueback09 at gmail.com Thu Apr 6 16:49:50 2017 From: blueback09 at gmail.com (Matt Maier) Date: Thu, 6 Apr 2017 13:49:50 -0700 Subject: revZip functions, compressing and extracting folder for transfer In-Reply-To: <1bd392e8-372e-3951-5e73-af5b2b745075@pdslabs.net> References: <1bd392e8-372e-3951-5e73-af5b2b745075@pdslabs.net> Message-ID: I pulled the zip archiving functions out of the Master Library stack. It worked...except that it truncated the first character of every filename in the archive. This is the offending code from the addFolderToArchive handler: put theFile into theArchiveItemName put offset(pRootFolderPath, theArchiveItemName) into theCharNo if theCharNo is 0 then return "file is not in expected folder" delete char 1 to (the number of chars of pRootFolderPath + 1) of theArchiveItemName # strip root folder up to slash (zip item names shouldn't start with a slash) The value I see for pRootFolderPath includes the ending slash, so the "+ 1" here is deleting the first character of the filename. Can I just remove the "+ 1"? Will that make it work on Windows but fail on another system? On Sat, Mar 4, 2017 at 12:49 PM, Phil Davis via use-livecode < use-livecode at lists.runrev.com> wrote: > Here is a sanitized version of a simple zip library stack I use in > projects. It keeps me from having to get down into the nuts and bolts every > time I want to zip a file: > > https://www.dropbox.com/s/t8z27p8cy5ir1v9/libZip.livecode?dl=0 > > HTH - > Phil Davis > > > > On 3/4/17 9:25 AM, Matt Maier via use-livecode wrote: > >> Is there an overview or tutorial on how to use the revZip functions? >> >> Do I have to use each individual function to manually describe the process >> of creating and using a zip archive? >> >> Like, to create the archive, do I have to write my own code to open it, >> repeat for each file and/or each folder, find and specify the name and >> contents and format of each file, then close it, then remember to delete >> it >> later...or is there a command somewhere that just takes a folder and >> returns a zipped version of that folder? >> >> The same question for extracting an archive. Do I have to open it, >> enumerate the files, repeat for each file and/or folder, figure out that >> file's name, contents, and format, copy the file to an appropriate new >> file, then close it, then remember to delete it later...or is there a >> command that just takes a *.zip and returns an extracted folder? >> >> I already spent a couple hours trying various combinations of quotes >> around >> the parameters to add something to an archive before I figured out put the >> data into the URL as a binfile manually. Then this morning I ran across a >> different revZip function to add a file directly, instead of raw data, >> which I guess is what I was doing. So it would be nice to find out that >> there's already a function that does all of the obvious zip archive stuff >> automatically and correctly. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> > -- > Phil Davis > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Thu Apr 6 17:04:01 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 6 Apr 2017 21:04:01 +0000 Subject: Negative Numbers and NumberFormat In-Reply-To: <90510376-6077-43F5-AECC-2FD9E135A685@hyperhh.de> References: <90510376-6077-43F5-AECC-2FD9E135A685@hyperhh.de> Message-ID: <71AADB29-9BDC-45EC-AEDD-2CAB6AA55DA4@iotecdigital.com> put format("00:00:00", "9:50:00") produces 00:00:00. put format("##:##:##", "9:50:00") produces ##:##:##. put format("nnn.nnn.nnn.nnn", "192.168.1.1") produces nnn.nnn.nnn.nnn Point being, format is great for formatting NUMBERS, not converting truncated numeric values in between delimiters or inserting literal string values in the appropriate places. Some may not see the need for this, or can thing of one off methods for doing each of these. So can I. I just don't like solving a problem over and over, and once solved I like to share that with others. As I said, Excel does this pretty well. I just need to mimic what they are doing. The trick would be to find the start and end character of actual numeric values in a string and replace them with reformatted versions in the format string. So " 1.55" with a format string of "00.000%" would return "01.550%" (not that you would need that, but you get the point.) Bob S > On Apr 6, 2017, at 11:13 , hh via use-livecode wrote: > > You forgot to give examples for Bob's original problem? > The negative numbers ... ;-) > >> Paul D. wrote: > >>> put format("$%0.2f",tMoney) into msg >>> >>> for tMoney = 5.55, you get $5.55 >>> for tMoney = 5.33333, you get $5.33 >>> >>> want a space between the $, then use >>> put format("$ %0.2f",tMoney) into msg >>> >>> want a leading zero and minimum of 2 digits before the decimal point >>> put format("$ %05.2f",5.553) into msg > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Thu Apr 6 17:26:20 2017 From: paul at researchware.com (Paul Dupuis) Date: Thu, 6 Apr 2017 17:26:20 -0400 Subject: Negative Numbers and NumberFormat In-Reply-To: <71AADB29-9BDC-45EC-AEDD-2CAB6AA55DA4@iotecdigital.com> References: <90510376-6077-43F5-AECC-2FD9E135A685@hyperhh.de> <71AADB29-9BDC-45EC-AEDD-2CAB6AA55DA4@iotecdigital.com> Message-ID: On 4/6/2017 5:04 PM, Bob Sneidar via use-livecode wrote: > put format("00:00:00", "9:50:00") produces 00:00:00. > put format("##:##:##", "9:50:00") produces ##:##:##. > put format("nnn.nnn.nnn.nnn", "192.168.1.1") produces nnn.nnn.nnn.nnn put format("%2d:%02d:%02d", 9,50,0) produces 9:50:00 put format("%02d:%02d:%02d", 9,50,0) produces 09:50:00 put format("%0d.%0d.%0d.%0d",192,168,1,1) produces 192.168.1.1 put format("%03d.%03d.%03d.%03d",192,168,1,1) produces 192.168.001.001 I am not sure there is any delimited set of strings or numeric information you can't format. I do get that "00:00:00" is more intuitive than "%02d:%02d:%02d", which is why I suspect it is just the learning curve of understanding the syntax of the format function that prevents more people from using it. From johnpatten at me.com Thu Apr 6 17:58:30 2017 From: johnpatten at me.com (JOHN PATTEN) Date: Thu, 06 Apr 2017 14:58:30 -0700 Subject: MDM and App deployment In-Reply-To: References: <0839fdbf-21c5-b11d-e9e7-01ce844493a8@hyperactivesw.com> <5F2AACD3-13C7-450E-AC07-A88F58B0C1FC@unimelb.edu.au> Message-ID: <4CFD87F1-669D-459C-8799-BCEE33FCBEA3@me.com> Hi All, Since I don?t know what a proper manifest file (info.plist) should look like, other than what LiveCode creates via the standalone process, and I could not get my hands on one someone is using for their apps in the JAMF MDM, I decided just to build an app in Xcode/Swift and extract its info.plist for comparison. This also allowed me to check to make sure my cert and Enterprise Distribution profile were correct. Apple has some FoodApp tutorials, I took one of their competed samples and compiled it into an app in Xcode with our Enterprise Developer profile. I was able to load it up into our JAMF MDM, assign it to a iPad in the MDM, and then download it from the Self Service app onto the targeted iPad. Apparently the profile is good. When I look at the two info.list files, they were fairly similar, but it appears that LiveCode add a lot of keys that Xcode does when it compiles. I briefly tried to make the LiveCode info.plist appear more like the Xcode info.plist, and then try my app over with the new info.plist I modified. It still was not working for me. I was in a bit of a rush, so I will do it again with a little more care. I have included both the info.plist from my app, and the info.plist from the Xcode ?food app.? Not sure if anything will jump out at anyone, but please let me know if so. I am guessing that the LiveCode info.plist is what is fouling up the MDM delivery of my app. Here they are: MyOpenMath app info.plist CFBundleDevelopmentRegion English CFBundleDisplayName MyOpenMath CFBundleName MyOpenMath CFBundleExecutable MyOpenMath CFBundleIdentifier com.sylvanapps.myopenmath CFBundleInfoDictionaryVersion 6.0 CFBundlePackageType APPL CFBundleSignature ???? CFBundleSupportedPlatforms iPhoneOS CFBundleVersion 1.0.2 CFBundleShortVersionString 1.0.2 CFBundleIconFiles Icon-72.pngIcon-144.pngIcon-76.pngIcon-152.png UILaunchImages UILaunchImageMinimumOSVersion 8.0 UILaunchImageName Default-Portrait UILaunchImageOrientation Portrait UILaunchImageSize {768, 1024} UILaunchImageMinimumOSVersion 8.0 UILaunchImageName Default-Landscape UILaunchImageOrientation Landscape UILaunchImageSize {768, 1024} DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 12B411 DTPlatformName iphoneos DTPlatformVersion 8.1 DTSDKBuild 12B411 DTSDKName iphoneos8.1 DTXcode 0610 DTXcodeBuild 6A1052c CFBundleDisplayName MyOpenMath MinimumOSVersion 10.1 UIDeviceFamily 2 UIRequiredDeviceCapabilities UIRequiresPersistentWiFi UIApplicationExitsOnSuspend UIInitialInterfaceOrientation UIInterfaceOrientationPortrait UISupportedInterfaceOrientations UIInterfaceOrientationPortrait UIInitialInterfaceOrientation~ipad UIInterfaceOrientationPortrait UISupportedInterfaceOrientations~ipad UIInterfaceOrientationPortraitUIInterfaceOrientationLandscapeLeft UIBackgroundModes UIViewControllerBasedStatusBarAppearance NSLocationAlwaysUsageDescriptionThis application requires access to Location Services always UIStatusBarHidden UIStatusBarHidden~ipad UIStatusBarStyle UIStatusBarStyleDefault com_livecode_StatusBarSolid com_livecode_UsesLocalNotifications UIFileSharingEnabled UIPrerenderedIcon UIAppFonts NSBluetoothPeripheralUsageDescription This application requires access to Bluetooth NSCalendarsUsageDescription This application requires access to the device's calendar NSCameraUsageDescription This application requires access to the device's camera NSContactsUsageDescription This application requires access to your Contacts NSMicrophoneUsageDescription This application requires access to the device's microphone NSMotionUsageDescription This application requires access to the device's accelerometer NSRemindersUsageDescription This application requires access to your Reminders NSPhotoLibraryUsageDescription This application requires access to Photo Library ?????????????????????? Xcode Food App info.plist CFBundleName FoodTracker DTXcode 0820 DTSDKName iphoneos10.2 UILaunchStoryboardName LaunchScreen DTSDKBuild 14C89 CFBundleDevelopmentRegion en CFBundleVersion 1 BuildMachineOSBuild 16E195 DTPlatformName iphoneos CFBundlePackageType APPL UIMainStoryboardFile Main CFBundleSupportedPlatforms iPhoneOS CFBundleShortVersionString 1.0 CFBundleInfoDictionaryVersion 6.0 UIRequiredDeviceCapabilities armv7 CFBundleExecutable FoodTracker DTCompiler com.apple.compilers.llvm.clang.1_0 UISupportedInterfaceOrientations~ipad UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight CFBundleIdentifier com.sylvanapps.FoodTracker MinimumOSVersion 10.0 DTXcodeBuild 8C38 DTPlatformVersion 10.2 LSRequiresIPhoneOS UISupportedInterfaceOrientations UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIDeviceFamily 1 2 DTPlatformBuild 14C89 Thank you! > On Apr 6, 2017, at 8:28 AM, JOHN PATTEN via use-livecode wrote: > > Thanks Terry and Jacqueline, > > The file/app is being served via our MDM which is using https. > > Terry, you mention that the manifest file has to be perfect, do you happen to know what that would look like? I have never tweaked the manifest file that gets created automatically. > > I have been following Richard Miller?s challenges with getting his app into the regular app store so I know the info.plist file can be problematic, depending on what you are trying to do. However, I?m not quite sure what a ?perfect? plist file should look like. Someone else had mentioned being sure that I,? "Call all the links on the plist and html with https,? but I?m not sure what that means. It was pulled from this this stackoverflow conversation, http://stackoverflow.com/questions/34820355/enterprise-app-installing-but-immediatelly-dissapears , but I have a hunch it is not the same problem as mine. > > Let me know if I? missing something in the plist file?. > > > Thank you! > > > > >> On Apr 5, 2017, at 7:35 PM, Terry Judd via use-livecode wrote: >> >> I missed the start of this thread so I might be off target but the app needs to be server from a secure (https) server. If it isn?t and/or if your manifest file isn?t perfect then you will get that sort of message as well. >> >> Terry... >> >> On 6/04/2017 12:18 pm, "use-livecode on behalf of J. Landman Gay via use-livecode" wrote: >> >> On 4/5/17 5:17 PM, JOHN PATTEN via use-livecode wrote: >>> A student iPad can see the app in their Self Service app, but when >>> they go to install it reports it can?t download at this time. >> >> I don't know if things are different with an Enterprise account, but in >> my experience an app that partially downloads and then errors indicates >> something wrong with the distribution profile. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From harrison at all-auctions.com Thu Apr 6 18:03:40 2017 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 6 Apr 2017 18:03:40 -0400 Subject: Passing Variables in a non-CGI LC Server? In-Reply-To: References: Message-ID: Hi Mike, So the answer is - only in a stack. Perhaps the dictionary should have a comment stating or clarifying that fact. Thanks, Rick > On Apr 6, 2017, at 4:27 PM, Mike Bonner via use-livecode wrote: > > Can't answer the rest, but as for the global.. Since you can utilize stacks > with server, you could declare a global just as you would normally, in any > scripts that needed it, and it would work just like in lc proper. It would > only persist during the run of that particular instance. From terry.judd at unimelb.edu.au Thu Apr 6 18:05:48 2017 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Thu, 6 Apr 2017 22:05:48 +0000 Subject: MDM and App deployment In-Reply-To: References: <0839fdbf-21c5-b11d-e9e7-01ce844493a8@hyperactivesw.com> <5F2AACD3-13C7-450E-AC07-A88F58B0C1FC@unimelb.edu.au> Message-ID: <6878C508-A621-4FBE-BC6C-6AFF5FBD9AAC@unimelb.edu.au> Hi John ? it?s really just about making sure that all your urls are correct and match up in the html and manifest files. If that?s all ok (and you?re serving the files via https) then it?s more likely to be a provisioning problem. Terry... On 7/04/2017 1:28 am, "use-livecode on behalf of JOHN PATTEN via use-livecode" wrote: Thanks Terry and Jacqueline, The file/app is being served via our MDM which is using https. Terry, you mention that the manifest file has to be perfect, do you happen to know what that would look like? I have never tweaked the manifest file that gets created automatically. I have been following Richard Miller?s challenges with getting his app into the regular app store so I know the info.plist file can be problematic, depending on what you are trying to do. However, I?m not quite sure what a ?perfect? plist file should look like. Someone else had mentioned being sure that I,? "Call all the links on the plist and html with https,? but I?m not sure what that means. It was pulled from this this stackoverflow conversation, http://stackoverflow.com/questions/34820355/enterprise-app-installing-but-immediatelly-dissapears , but I have a hunch it is not the same problem as mine. Let me know if I? missing something in the plist file?. Thank you! > On Apr 5, 2017, at 7:35 PM, Terry Judd via use-livecode wrote: > > I missed the start of this thread so I might be off target but the app needs to be server from a secure (https) server. If it isn?t and/or if your manifest file isn?t perfect then you will get that sort of message as well. > > Terry... > > On 6/04/2017 12:18 pm, "use-livecode on behalf of J. Landman Gay via use-livecode" wrote: > > On 4/5/17 5:17 PM, JOHN PATTEN via use-livecode wrote: >> A student iPad can see the app in their Self Service app, but when >> they go to install it reports it can?t download at this time. > > I don't know if things are different with an Enterprise account, but in > my experience an app that partially downloads and then errors indicates > something wrong with the distribution profile. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at 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 Apr 6 18:09:56 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 6 Apr 2017 22:09:56 +0000 Subject: Negative Numbers and NumberFormat In-Reply-To: References: <90510376-6077-43F5-AECC-2FD9E135A685@hyperhh.de> <71AADB29-9BDC-45EC-AEDD-2CAB6AA55DA4@iotecdigital.com> Message-ID: <2FF3FD01-CAA5-47BB-AEED-74ACEB9433F8@iotecdigital.com> Oh that is interesting. Each number has to be a separate argument. That is something I did not glean from reading the docs a while back. Bob S On Apr 6, 2017, at 14:26 , Paul Dupuis via use-livecode > wrote: put format("%03d.%03d.%03d.%03d",192,168,1,1) produces 192.168.001.001 From terry.judd at unimelb.edu.au Thu Apr 6 18:11:20 2017 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Thu, 6 Apr 2017 22:11:20 +0000 Subject: Trying to make an HTML5 app In-Reply-To: <1491508020678-4713775.post@n4.nabble.com> References: <1491508020678-4713775.post@n4.nabble.com> Message-ID: <8E3C1036-A1AA-4908-B47D-1C1AA8B074D2@unimelb.edu.au> Using the community license - 9.0.0 (dp 5) - I couldn?t get a HTML5 app to run if it included any SVG widgets. I?m not sure if this problem extends to other widget types or not but as a workaround I converted all the SVGs to bitmaps. I?d try taking out the SVGs to start with and see if that helps. Terry... On 7/04/2017 5:47 am, "use-livecode on behalf of pink via use-livecode" wrote: I am trying to sell the powers that be on getting an HTML5 license, so I made up a quick little survey app, but I cannot successfully compile and run it. I'm time limited here, I need to get this working by tomorrow morning if I hope to get my boss to shell out some money... I have a few widgets, namely SVG icons, NavBar, and Segmented Controls. Otherwise, just some buttons and a scrollbar, minimal scripting I have tried compiling with the Community versions of Livecode including: 8.1.1, 8.1.2, 8.1.3 on both Mac and Windows. I keep get the error "To use dlopen, you need to use Emscripten's linking support, see https://github.com/kripken/emscripten/wiki/Linking" on MacOS, using LC Community 8.1.4 RC-1: Livecode crashes when compiling I've tried numerous stacks, and none of them compile correctly for me, so here are my questions as a possible HTML5 customer: 1. What do I need to do to get past the error above? 2. Does the commercial version of HTML5 work better (or at least differently) than the Community version? 3. Is there a "best" version of Livecode to use for compiling HTML5 apps? ----- --- Greg (pink) Miller mad, pink and dangerous to code -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Trying-to-make-an-HTML5-app-tp4713775.html Sent from the Revolution - User mailing list archive at http://Nabble.com. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From preid at reidit.co.uk Thu Apr 6 18:40:23 2017 From: preid at reidit.co.uk (Peter Reid) Date: Thu, 6 Apr 2017 23:40:23 +0100 Subject: use-livecode Digest, Vol 163, Issue 13 In-Reply-To: References: Message-ID: <3B0CD0E1-5CF1-4BD3-9387-BBFEF9FFB30C@reidit.co.uk> Hi HH Thanks for the advice, it was the paintCompression that caused the problem. In the IDE it defaults to PNG but in the standalone it defaults to RLE instead. As I didn't set it, the value was the default for the environment! I simply added: set the paintCompression to png to my preOpenStack handler and the problem was solved! Thanks very much for solving this. Peter -- Peter Reid Loughborough, UK > On 6 Apr 2017, at 9:22pm, use-livecode-request at lists.runrev.com wrote: > > Date: Thu, 6 Apr 2017 12:09:13 +0200 > From: hh > > To: use-livecode at lists.runrev.com > Subject: Re: Standalone Magnify Problem > Message-ID: <3AF19FCF-001E-4DD6-A35C-ADE7631C9A6D at hyperhh.de > > Content-Type: text/plain; charset=us-ascii > >> Peter R. wrote: >> I have it working fine when I'm in the development environment >> but it's not working reliably in a standalone app. > > a) Did you already check to have the same paintcompression in both environments? > b) If you make such large images (why?) you may get a conflict with the 8bit-coords > limit. May be the standalone engine has still more of such limits included for > 'formatted'-measurements than the IDE. > c) Did you already check to have the same resizequality in both environments? > ("best" may create an alphachannel) From ambassador at fourthworld.com Thu Apr 6 18:48:00 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 6 Apr 2017 15:48:00 -0700 Subject: use-livecode Digest, Vol 163, Issue 13 In-Reply-To: <3B0CD0E1-5CF1-4BD3-9387-BBFEF9FFB30C@reidit.co.uk> References: <3B0CD0E1-5CF1-4BD3-9387-BBFEF9FFB30C@reidit.co.uk> Message-ID: Peter Reid wrote: > Thanks for the advice, it was the paintCompression that caused the > problem. In the IDE it defaults to PNG but in the standalone it > defaults to RLE instead. As I didn't set it, the value was the > default for the environment! I simply added: > > set the paintCompression to png > > to my preOpenStack handler and the problem was solved! IMNSHO any differences between IDE and engine defaults should be a preference option or it's a bug. The whole point of using an xTalk is to minimize the differences between runtime and development. If the team saw fit to make PNG the default, it should be the default in both environments. If they don't feel strongly enough that it should be the default, it should be a preference option. -- 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 Thu Apr 6 18:52:36 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 6 Apr 2017 15:52:36 -0700 Subject: Passing Variables in a non-CGI LC Server? In-Reply-To: References: Message-ID: Rick Harrison wrote: > So the answer is - only in a stack. > Perhaps the dictionary should have > a comment stating or clarifying that fact. Mike said: Can't answer the rest, but as for the global.. Since you can utilize stacks with server, you could declare a global just as you would normally, in any scripts that needed it, and it would work just like in lc proper. It would only persist during the run of that particular instance. LiveCode globals are available to all scripts that declare them within the LiveCode process. I think maybe the reason Mike's reply was focused on stacks is that it's not clear what you're doing. Your original post said: I have a few variables I would like to pass from one References: Message-ID: I was mainly referring to the fact that an lc server script isn't restricted to a single script file, so scope still matters. (Clarity is not my strong suit) So as in a standalone etc, to use a global one would need to declare it in each script where it needs to be available, whether server or not. Sorry for my clear as mud first effort. On Thu, Apr 6, 2017 at 4:52 PM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Rick Harrison wrote: > > > So the answer is - only in a stack. > > Perhaps the dictionary should have > > a comment stating or clarifying that fact. > > Mike said: > > Can't answer the rest, but as for the global.. Since you can utilize > stacks with server, you could declare a global just as you would > normally, in any scripts that needed it, and it would work just like > in lc proper. It would only persist during the run of that > particular instance. > > LiveCode globals are available to all scripts that declare them within the > LiveCode process. > > I think maybe the reason Mike's reply was focused on stacks is that it's > not clear what you're doing. > > Your original post said: > > I have a few variables I would like to pass from one server script to another using a web browser with an lc > server that is not configured to be a cgi server. > > Since LC Server runs as a CGI, and even if you were using a standalone on > the server as a daemon it would still be on the server and not in the > client browser, I can't figure out what that sentence means. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 6 19:15:33 2017 From: hh at hyperhh.de (hh) Date: Fri, 7 Apr 2017 01:15:33 +0200 Subject: LC-Magick Collection Message-ID: <8978468D-E611-453F-9B61-148D2BCD9656@hyperhh.de> Added today #8: MoonEffect (Elliptical distortion/ Fisheye) Antialiasing part by 'BNig'(Bernd), Distortion part by 'hh'(Hermann). http://forums.livecode.com/viewtopic.php?p=153159#p153159 This is our "easter-egg" for the LC Community! > LC-Magick #7 - Cuboid (3D-Box 'wearing' images) (Hermann H.) > http://forums.livecode.com/viewtopic.php?p=153076#p153076 > LC-Magick #6 - Bilinear Perspective Image Distortion (Hermann H. and Bernd N.) > http://forums.livecode.com/viewtopic.php?p=150757#p150757 > LC-Magick #5 - Circular (Polar) Image Distortion (Hermann H. and Bernd N.) > http://forums.livecode.com/viewtopic.php?p=149999#p149999 > LC-Magick #4 - Linear Perspective Image Distortion (Hermann H.) > http://forums.livecode.com/viewtopic.php?p=148647#p148647 > LC-Magick #3 - Image Multiplexing (Hermann H.) > http://forums.livecode.com/viewtopic.php?p=141272#p141272 > LC-Magick #2 - Pointillize (Hermann H.) > http://forums.livecode.com/viewtopic.php?p=141051#p141051 > LC-Magick #1 - Blur and Pixelate (Scott R.) > http://tactilemedia.com/blog/2016/03/26/update-blur-effect-plus-pixelize-bonus/ Most of it is based on ideas presented in imageMagick's documentation http://www.imagemagick.org/Usage/ From revolution at derbrill.de Thu Apr 6 20:16:31 2017 From: revolution at derbrill.de (Malte Brill) Date: Fri, 7 Apr 2017 02:16:31 +0200 Subject: LC Server on Win and CURL In-Reply-To: References: Message-ID: Hi all, I wonder if somebody of you can enlighten me here. I am trying to use curl with liveCode Server. No Probs on a Mac, but Windows is behaving strange? set the shellCommand to "cmd? ? mail client might put in wrong quote mark put shell("c:/curl/bin/curl " & quote & "http://google.de? & quote) -> curl: (27) Out of memory But on the commandline I get what I expect using c:/curl/bin/curl "http://google.de" Anybody know what is going on here and how to get around it? Cheers, Malte From hh at hyperhh.de Thu Apr 6 20:30:33 2017 From: hh at hyperhh.de (hh) Date: Fri, 7 Apr 2017 02:30:33 +0200 Subject: use-livecode Digest, Vol 163, Issue 13 Message-ID: <74DEBE10-7604-4EDF-8BEF-01B43BDE412D@hyperhh.de> Richard, these are hard words. 1) The diff is announced _loudly_ in the dict. 2) setting the paintcompression to RLE can speed up significantly in most cases. More than 16GB of RAM and huge GPUs are not from the time when this was introduced (when you was a young boy with curly hair). They choose simply the faster one for the standalone. And there are not this much cases where the diff has such a negative effect like for Peter R. > Richard G, wrote: > IMNSHO any differences between IDE and engine defaults should be a > preference option or it's a bug. > > The whole point of using an xTalk is to minimize the differences between > runtime and development. > > If the team saw fit to make PNG the default, it should be the default in > both environments. > > If they don't feel strongly enough that it should be the default, it > should be a preference option. From ambassador at fourthworld.com Thu Apr 6 21:19:30 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 6 Apr 2017 18:19:30 -0700 Subject: use-livecode Digest, Vol 163, Issue 13 In-Reply-To: <74DEBE10-7604-4EDF-8BEF-01B43BDE412D@hyperhh.de> References: <74DEBE10-7604-4EDF-8BEF-01B43BDE412D@hyperhh.de> Message-ID: I'm a UX guy, so I advocate for the new user. If RLE is faster, why penalize IDE users with slow performance? If PNG is more commonly used, why penalize end-users running standalones? It may be in the Dictionary, but if we already know the syntax for the export command, how would we know that we're also supposed to look up another entry for paintCompression? Questions like this aren't intended to be harsh. They're intended to encourage fresh thinking about things that may improve the user experience. LC's job is to make the distance between "I want to write an app" and "I just shipped an app!" as short and painless as possible. Remove the wrinkles, soften the rough edges, and delight emerges.... - rg hh wrote: > Richard, > > these are hard words. > > 1) The diff is announced _loudly_ in the dict. > 2) setting the paintcompression to RLE can speed up significantly in > most cases. More than 16GB of RAM and huge GPUs are not from the time > when this was introduced (when you was a young boy with curly hair). > > They choose simply the faster one for the standalone. And there are > not this much cases where the diff has such a negative effect like > for Peter R. > >> Richard G, wrote: >> IMNSHO any differences between IDE and engine defaults should be a >> preference option or it's a bug. >> >> The whole point of using an xTalk is to minimize the differences between >> runtime and development. >> >> If the team saw fit to make PNG the default, it should be the >> default in both environments. >> >> If they don't feel strongly enough that it should be the default, it >> should be a preference option. From terry.judd at unimelb.edu.au Thu Apr 6 22:04:23 2017 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Fri, 7 Apr 2017 02:04:23 +0000 Subject: Recording audio with LC on OSX? Message-ID: I want to record sound from within LC on a Mac ? actually I want to get LC to speak some text and have it recorded to file (using Sound Siphon to capture it directly rather than via the inbuilt mike and speakers). Is setting the dontUseQT to false and going with ?record sound? the only option or is there another non Quicktime way? Regards, Terry... From bonnmike at gmail.com Thu Apr 6 22:34:41 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 6 Apr 2017 20:34:41 -0600 Subject: Nightly builds In-Reply-To: References: Message-ID: Same question.. Where do members find the nightly builds? On Thu, Mar 9, 2017 at 8:14 PM, James Hale via use-livecode < use-livecode at lists.runrev.com> wrote: > I just noticed one of the benefits to membership of the open source > community is access to nightly builds. > > Can anyone tell me how this is possible? > Is it only for the community version? > Is there a link or is one expected to make the build oneself? > Or is this just smoke and mirrors? > > James > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From harrison at all-auctions.com Thu Apr 6 22:46:58 2017 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 6 Apr 2017 22:46:58 -0400 Subject: Passing Variables in a non-CGI LC Server? In-Reply-To: References: Message-ID: <5760DF98-0ABE-460F-944D-C6189377EB71@all-auctions.com> Hi Richard, Ok, let me clarify if I can. LC Server as it is installed out of the box without setting it up as it used to be set up in the old days. I have three webpages. The first accepts the user?s input into various fields and then passes that information to the next webpage through the user's web browser. That works fine. Then without writing those parameters out to a database, I want to pass those now hidden parameters to the next webpage for further processing before writing those values out to the database. How are people handling that process? Or am I forced into writing everything out to the database and then reading it all back in just to go from one page to the next to the next? Thanks, Rick > On Apr 6, 2017, at 6:52 PM, Richard Gaskin via use-livecode wrote: > > Rick Harrison wrote: > > > So the answer is - only in a stack. > > Perhaps the dictionary should have > > a comment stating or clarifying that fact. > > Mike said: > > Can't answer the rest, but as for the global.. Since you can utilize > stacks with server, you could declare a global just as you would > normally, in any scripts that needed it, and it would work just like > in lc proper. It would only persist during the run of that > particular instance. > > LiveCode globals are available to all scripts that declare them within the LiveCode process. > > I think maybe the reason Mike's reply was focused on stacks is that it's not clear what you're doing. > > Your original post said: > > I have a few variables I would like to pass from one server script to another using a web browser with an lc > server that is not configured to be a cgi server. > > Since LC Server runs as a CGI, and even if you were using a standalone on the server as a daemon it would still be on the server and not in the client browser, I can't figure out what that sentence means. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Fri Apr 7 00:15:13 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 6 Apr 2017 22:15:13 -0600 Subject: Passing Variables in a non-CGI LC Server? In-Reply-To: <5760DF98-0ABE-460F-944D-C6189377EB71@all-auctions.com> References: <5760DF98-0ABE-460F-944D-C6189377EB71@all-auctions.com> Message-ID: Ah k. Still not sure what you mean about how its installed, but if you are hitting lc server script pages directly in the browser through a web server, that part most likely doesn't matter. (otherwise i'm sure you'll correct me) It sounds like you need to use session management. If all your pages are .lc based, you can look at this forum topic http://forums.livecode.com/viewtopic.php?f=15&t=10787&p=50056&hilit=session#p50034 for an example of passing information around using session variables. On Thu, Apr 6, 2017 at 8:46 PM, Rick Harrison via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Richard, > > Ok, let me clarify if I can. LC Server as it > is installed out of the box without setting > it up as it used to be set up in the old days. > > I have three webpages. The first accepts > the user?s input into various fields and then > passes that information to the next webpage > through the user's web browser. That works > fine. Then without writing those parameters > out to a database, I want to pass those > now hidden parameters to the next webpage > for further processing before writing those > values out to the database. > > How are people handling that process? > Or am I forced into writing everything out > to the database and then reading it all > back in just to go from one page to the next > to the next? > > Thanks, > > Rick > > > On Apr 6, 2017, at 6:52 PM, Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Rick Harrison wrote: > > > > > So the answer is - only in a stack. > > > Perhaps the dictionary should have > > > a comment stating or clarifying that fact. > > > > Mike said: > > > > Can't answer the rest, but as for the global.. Since you can utilize > > stacks with server, you could declare a global just as you would > > normally, in any scripts that needed it, and it would work just like > > in lc proper. It would only persist during the run of that > > particular instance. > > > > LiveCode globals are available to all scripts that declare them within > the LiveCode process. > > > > I think maybe the reason Mike's reply was focused on stacks is that it's > not clear what you're doing. > > > > Your original post said: > > > > I have a few variables I would like to pass from one > server script to another using a web browser with an lc > > server that is not configured to be a cgi server. > > > > Since LC Server runs as a CGI, and even if you were using a standalone > on the server as a daemon it would still be on the server and not in the > client browser, I can't figure out what that sentence means. > > > > -- > > Richard Gaskin > > Fourth World Systems > > Software Design and Development for the Desktop, Mobile, and the Web > > ____________________________________________________________________ > > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 7 01:03:46 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 7 Apr 2017 05:03:46 +0000 Subject: iOS "Invalid entitlements" Message-ID: I was having difficulty with a stack and deleted all the stack files in the list and put empty into cRevStandaloneSettings and started fresh. Now I am getting "invalid entitlements" when trying to install on my iPhone. I did have a new user and I added their UDID, cleaned up all my old profiles and certs, current certificate is valid until Oct 2017, I disabled "inter-app-audio" in the app ID services and rebuilt the provisioning profile. Still no go on attempting to put on my phone? SA builder runs fine? xCode is giving me the old message: ======= The executable was signed with invalid entitlements. The entitlements specified? ?invalid ? not permitted? do not match those specified in your Provision profile. ======= I was very careful to take a snap shot of my SA setting before wiping them. All I can think of is perhaps there is some inclusion that I turned on that is causing the issue? It was the first time I saw inter-app-audio on in the Apple developer portal, for the services for my app ID? Perhaps it was there before as I have not had to go in for months? but I'm not seeing that in the info.plist anywhere. So I don't think it is an issue, unless xCode retains a memory/cache of a previous provisioning profile? I did go through xCode perferences, user agent, and made sure everything was refreshed there with one and only one latest cert and profile active. If you have check an inclusion that only applies to desktop ("Database") could that cause it? I set the SA to auto detect for necessary inclusions, but that takes a loooong time. Mac Sierra xCode 8.2.1 LC 9dp5 From matthias_livecode_150811 at m-r-d.de Fri Apr 7 02:03:41 2017 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 7 Apr 2017 08:03:41 +0200 Subject: Passing Variables in a non-CGI LC Server? In-Reply-To: <5760DF98-0ABE-460F-944D-C6189377EB71@all-auctions.com> References: <5760DF98-0ABE-460F-944D-C6189377EB71@all-auctions.com> Message-ID: <70B1A0E9-9F12-437E-8E63-C6CCF93DA6C8@m-r-d.de> > Am 07.04.2017 um 04:46 schrieb Rick Harrison via use-livecode >: > > Hi Richard, > > Ok, let me clarify if I can. LC Server as it > is installed out of the box without setting > it up as it used to be set up in the old days. > > I have three webpages. The first accepts > the user?s input into various fields and then > passes that information to the next webpage > through the user's web browser. > That works fine. Then without writing those parameters > out to a database, I want to pass those > now hidden parameters to the next webpage > for further processing before writing those > values out to the database. is the third website just for further processing w/o an output to the user or do you also want to output some information to the user? case 1 You could use the http post or get method to pass the parametesr to the 3rd script/website from the 2nd script and return the result then to the 2nd script. Be aware that your 2nd scrip or better said every lc script, needs to do an output, even if it?s just a blank. Otherwise the server returns an error 500 case 2 If i remember right, put header allows you to redirect. So in your 2nd script/website after you?ve done whatever you could use put header to redirect using put header: something like this put "http://yoursite.com?param1¶m2¶me " into tURL put header "Status: 301? put header "Location:" && tURL put ?redirecting?? ? i am not sure if this last line is still needed, but in older versions of lcServer it was. Matthias > > How are people handling that process? > Or am I forced into writing everything out > to the database and then reading it all > back in just to go from one page to the next > to the next? > > Thanks, > > Rick > >> On Apr 6, 2017, at 6:52 PM, Richard Gaskin via use-livecode > wrote: >> >> Rick Harrison wrote: >> >>> So the answer is - only in a stack. >>> Perhaps the dictionary should have >>> a comment stating or clarifying that fact. >> >> Mike said: >> >> Can't answer the rest, but as for the global.. Since you can utilize >> stacks with server, you could declare a global just as you would >> normally, in any scripts that needed it, and it would work just like >> in lc proper. It would only persist during the run of that >> particular instance. >> >> LiveCode globals are available to all scripts that declare them within the LiveCode process. >> >> I think maybe the reason Mike's reply was focused on stacks is that it's not clear what you're doing. >> >> Your original post said: >> >> I have a few variables I would like to pass from one > server script to another using a web browser with an lc >> server that is not configured to be a cgi server. >> >> Since LC Server runs as a CGI, and even if you were using a standalone on the server as a daemon it would still be on the server and not in the client browser, I can't figure out what that sentence means. >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Apr 7 02:12:43 2017 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Fri, 7 Apr 2017 06:12:43 +0000 Subject: Recording audio with LC on OSX? In-Reply-To: References: Message-ID: <146BFFB7-0493-4A65-B733-5E6EEB0F5BA1@unimelb.edu.au> OK ? looks like mergMicrophone is an option on OSX ? I?ll give that a try. Terry... On 7/04/2017 12:04 pm, "use-livecode on behalf of Terry Judd via use-livecode" wrote: I want to record sound from within LC on a Mac ? actually I want to get LC to speak some text and have it recorded to file (using Sound Siphon to capture it directly rather than via the inbuilt mike and speakers). Is setting the dontUseQT to false and going with ?record sound? the only option or is there another non Quicktime way? Regards, 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 merakosp at gmail.com Fri Apr 7 02:12:55 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 7 Apr 2017 07:12:55 +0100 Subject: iOS "Invalid entitlements" In-Reply-To: References: Message-ID: Have you checked the "beta version" in the standalone application settings for ios? On 7 Apr 2017 06:04, "Sannyasin Brahmanathaswami via use-livecode" < use-livecode at lists.runrev.com> wrote: > I was having difficulty with a stack and deleted all the stack files in > the list and put empty into cRevStandaloneSettings > > and started fresh. > > Now I am getting "invalid entitlements" when trying to install on my > iPhone. > > I did have a new user and I added their UDID, cleaned up all my old > profiles and certs, current certificate is valid until Oct 2017, I disabled > "inter-app-audio" in the app ID services and rebuilt the provisioning > profile. > > Still no go on attempting to put on my phone? SA builder runs fine? xCode > is giving me the old message: > > ======= > The executable was signed with invalid entitlements. > The entitlements specified? ?invalid ? not permitted? > do not match those specified in your Provision profile. > ======= > > I was very careful to take a snap shot of my SA setting before wiping them. > > All I can think of is perhaps there is some inclusion that I turned on > that is causing the issue? It was the first time I saw inter-app-audio on > in the Apple developer portal, for the services for my app ID? Perhaps it > was there before as I have not had to go in for months? but I'm not seeing > that in the info.plist anywhere. So I don't think it is an issue, unless > xCode retains a memory/cache of a previous provisioning profile? I did go > through xCode perferences, user agent, and made sure everything was > refreshed there with one and only one latest cert and profile active. > > If you have check an inclusion that only applies to desktop ("Database") > could that cause it? > > I set the SA to auto detect for necessary inclusions, but that takes a > loooong time. > > Mac Sierra > xCode 8.2.1 > LC 9dp5 > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From revdev at pdslabs.net Fri Apr 7 03:16:32 2017 From: revdev at pdslabs.net (Phil Davis) Date: Fri, 7 Apr 2017 00:16:32 -0700 Subject: Recording audio with LC on OSX? In-Reply-To: <146BFFB7-0493-4A65-B733-5E6EEB0F5BA1@unimelb.edu.au> References: <146BFFB7-0493-4A65-B733-5E6EEB0F5BA1@unimelb.edu.au> Message-ID: Hi Terry, If you don't mind using a command line app from within your LC app, you might try sox ( http://sox.sourceforge.net/ ). It is quite powerful and seems simpler to me than ffmpeg ( https://ffmpeg.org/) which I have also used from within LC. One of my apps uses sox to create voice recordings, but I've never tried recording synthetic speech output. Food for thought - Phil Davis On 4/6/17 11:12 PM, Terry Judd via use-livecode wrote: > OK ? looks like mergMicrophone is an option on OSX ? I?ll give that a try. > > Terry... > > On 7/04/2017 12:04 pm, "use-livecode on behalf of Terry Judd via use-livecode" wrote: > > I want to record sound from within LC on a Mac ? actually I want to get LC to speak some text and have it recorded to file (using Sound Siphon to capture it directly rather than via the inbuilt mike and speakers). Is setting the dontUseQT to false and going with ?record sound? the only option or is there another non Quicktime way? > > Regards, > > 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 -- Phil Davis From nabble at mad.pink Fri Apr 7 08:50:18 2017 From: nabble at mad.pink (pink) Date: Fri, 7 Apr 2017 05:50:18 -0700 (PDT) Subject: Recording audio with LC on OSX? In-Reply-To: References: <146BFFB7-0493-4A65-B733-5E6EEB0F5BA1@unimelb.edu.au> Message-ID: <1491569418653-4713804.post@n4.nabble.com> Let me add a +1 on using sox, I have an app I wrote for Linux that records to mp3 and that uploads to our server on completion. The one negative I have so far with it is that I need to specify recording length. Otherwise if I start recording without a time limit i cannot stop it. Is there a way to "cancel" a shell command that is still running in LC? ----- --- Greg (pink) Miller mad, pink and dangerous to code -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Recording-audio-with-LC-on-OSX-tp4713795p4713804.html Sent from the Revolution - User mailing list archive at Nabble.com. From th.douez at gmail.com Fri Apr 7 09:39:40 2017 From: th.douez at gmail.com (Thierry Douez) Date: Fri, 7 Apr 2017 15:39:40 +0200 Subject: Recording audio with LC on OSX? In-Reply-To: <1491569418653-4713804.post@n4.nabble.com> References: <146BFFB7-0493-4A65-B733-5E6EEB0F5BA1@unimelb.edu.au> <1491569418653-4713804.post@n4.nabble.com> Message-ID: > Is there a way to "cancel" a shell command that is still running in LC? > ? Hi Greg, You can do it via another shell() call with the kill command. Of course, you need the ID of the process you did started before. Regards, Thierry -- ------------------------------------------------ Thierry Douez - sunny-tdz.com sunnYrex - sunnYtext2speech - sunnYperl - sunnYmidi - sunnYmage From brahma at hindu.org Fri Apr 7 10:34:30 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 7 Apr 2017 14:34:30 +0000 Subject: iOS "Invalid entitlements" In-Reply-To: References: Message-ID: <742B4BD1-7BF3-44B6-B056-6D780BA4E247@hindu.org> No I had not checked that? it was not needed two weeks ago, when I was successfully building in 9.dp5.. . but I just tried checking that and still get the same message? "invalid entitlements? missing? do not match" if there is a single line with http:// anywhere in our code, wiill this trigger a failure if ATS is not disabled? I'm not seeing anything unusual in the info.plist -- disclaimer: I'm not trained to know exactly what to look for, but at least inter-app-audio services are not present in the info.plist, on Slashdot there was a post that someone who actually had to include that in their app profile because xCode was expecting it by default, but we are not generating the info.plist from xCode, right? LC generates it? There must be *some* way to diagnose this, yes/no? BR On 4/6/17, 8:12 PM, "use-livecode on behalf of panagiotis merakos via use-livecode" wrote: Have you checked the "beta version" in the standalone application settings for ios? On 7 Apr 2017 06:04, "Sannyasin Brahmanathaswami via use-livecode" < use-livecode at lists.runrev.com> wrote: >I was having difficulty with a stack and deleted all the stack files in >the list and put empty into cRevStandaloneSettings > >and started fresh. > >Now I am getting "invalid entitlements" when trying to install on my >iPhone. > From harrison at all-auctions.com Fri Apr 7 12:14:33 2017 From: harrison at all-auctions.com (Rick Harrison) Date: Fri, 7 Apr 2017 12:14:33 -0400 Subject: Passing Variables in a non-CGI LC Server? In-Reply-To: References: <5760DF98-0ABE-460F-944D-C6189377EB71@all-auctions.com> Message-ID: Hi Mike, Yes, I?m hitting lc server script pages directly in the browser though a web server. Yes, all of my pages are .lc based. I looked at the link you suggested for session management. I put the code exactly as it was to see if the example would work. It doesn?t work. As soon as it gets to "start session? it gets flagged as an error at that line in the browser. All I get is the line number in the code for the error. file ?/blah/blah/TestFile2.lc row 30, col 1: (Which is for "start session?) Ideas, suggestions? Thanks, Rick > On Apr 7, 2017, at 12:15 AM, Mike Bonner via use-livecode wrote: > > Ah k. Still not sure what you mean about how its installed, but if you are > hitting lc server script pages directly in the browser through a web > server, that part most likely doesn't matter. (otherwise i'm sure you'll > correct me) > > It sounds like you need to use session management. If all your pages are > .lc based, you can look at this forum topic > http://forums.livecode.com/viewtopic.php?f=15&t=10787&p=50056&hilit=session#p50034 > for an example of passing information around using session variables. > > From merakosp at gmail.com Fri Apr 7 12:16:58 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 7 Apr 2017 17:16:58 +0100 Subject: iOS "Invalid entitlements" In-Reply-To: <742B4BD1-7BF3-44B6-B056-6D780BA4E247@hindu.org> References: <742B4BD1-7BF3-44B6-B056-6D780BA4E247@hindu.org> Message-ID: The cases where I had seen this "Invalid Entitlements" error are the following: 1. "Beta-version" is checked in iOS standalone settings BUT the provisioning profile is a development one (and not a distribution one) 2. The mergHK inclusion is checked in Inclusions, but the provisioning profile I use does not include entitlements for HealthKit. 3. The "In App Purchase" is checked in iOS standalone settings BUT the provisioning profile I used does not include entitlements for In App Purchase. 4. The "Push Notifications" is checked in iOS standalone settings BUT the provisioning profile I used does not include entitlements for Push Notification. Best, Panos -- On Fri, Apr 7, 2017 at 3:34 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > No I had not checked that? it was not needed two weeks ago, when I was > successfully building in 9.dp5.. . but I just tried checking that and still > get the same message? > > "invalid entitlements? missing? do not match" > > if there is a single line with http:// anywhere in our code, wiill this > trigger a failure if ATS is not disabled? > I'm not seeing anything unusual in the info.plist -- disclaimer: I'm not > trained to know exactly what to look for, but at least inter-app-audio > services are not present in the info.plist, on Slashdot there was a post > that someone who actually had to include that in their app profile because > xCode was expecting it by default, but we are not generating the info.plist > from xCode, right? LC generates it? > > There must be *some* way to diagnose this, yes/no? > > BR > > On 4/6/17, 8:12 PM, "use-livecode on behalf of panagiotis merakos via > use-livecode" use-livecode at lists.runrev.com> wrote: > > Have you checked the "beta version" in the standalone application > settings > for ios? > > On 7 Apr 2017 06:04, "Sannyasin Brahmanathaswami via use-livecode" < > use-livecode at lists.runrev.com> wrote: > > >I was having difficulty with a stack and deleted all the stack files > in > >the list and put empty into cRevStandaloneSettings > > > >and started fresh. > > > >Now I am getting "invalid entitlements" when trying to install on my > >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 harrison at all-auctions.com Fri Apr 7 12:21:45 2017 From: harrison at all-auctions.com (Rick Harrison) Date: Fri, 7 Apr 2017 12:21:45 -0400 Subject: Passing Variables in a non-CGI LC Server? In-Reply-To: <70B1A0E9-9F12-437E-8E63-C6CCF93DA6C8@m-r-d.de> References: <5760DF98-0ABE-460F-944D-C6189377EB71@all-auctions.com> <70B1A0E9-9F12-437E-8E63-C6CCF93DA6C8@m-r-d.de> Message-ID: Hi Matthias, Yes, I want to output some information to the user, and other information remains hidden - where some data is adjusted, modified, on the third webpage. No, I?m not looking to redirect to another webpage, although I have used that technique in the past on other types of webservers. I?d rather not have the parameters put into the URL where the user can see it if possible for security reasons, but if that?s the only way I suppose I could encrypt it before passing it through that way. Thank you for your input! Rick > On Apr 7, 2017, at 2:03 AM, Matthias Rebbe via use-livecode wrote: > > is the third website just for further processing w/o an output to the user or do you also want to output some information to the user? > > case 1 > You could use the http post or get method to pass the parametesr to the 3rd script/website from the 2nd script and return the result then to the 2nd script. > Be aware that your 2nd scrip or better said every lc script, needs to do an output, even if it?s just a blank. Otherwise the server returns an error 500 > > case 2 > If i remember right, put header allows you to redirect. So in your 2nd script/website after you?ve done whatever you could use put header to redirect using put header: > > something like this > put "http://yoursite.com?param1¶m2¶me " into tURL > put header "Status: 301? > put header "Location:" && tURL > put ?redirecting?? ? i am not sure if this last line is still needed, but in older versions of lcServer it was. > > > Matthias > From idenation at gmail.com Fri Apr 7 12:50:20 2017 From: idenation at gmail.com (iden) Date: Fri, 07 Apr 2017 16:50:20 +0000 Subject: Philadelphia Area Developer? Message-ID: I am looking for a Philadelphia area live code developer for a small project for a friend. From matthias_livecode_150811 at m-r-d.de Fri Apr 7 12:58:56 2017 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 7 Apr 2017 18:58:56 +0200 Subject: Passing Variables in a non-CGI LC Server? In-Reply-To: References: <5760DF98-0ABE-460F-944D-C6189377EB71@all-auctions.com> <70B1A0E9-9F12-437E-8E63-C6CCF93DA6C8@m-r-d.de> Message-ID: <389A929E-1D80-46BF-BB78-D6212ADDF6A2@m-r-d.de> > Am 07.04.2017 um 18:21 schrieb Rick Harrison via use-livecode >: > > Hi Matthias, > > Yes, I want to output some information to the user, and other > information remains hidden - where some data is adjusted, > modified, on the third webpage. > > No, I?m not looking to redirect to another webpage, although > I have used that technique in the past on other types of > webservers. > So then you could post the parameters from 2nd script/webpage to the 3rd webpage/script (post myData to URL destinationURL) and then output the result or what ever the 3rd script/webpage returns. This way you do not need to pass the parameters to the url. > I?d rather not have the parameters put into the URL where > the user can see it if possible for security reasons, but > if that?s the only way I suppose I could encrypt it before > passing it through that way. > > Thank you for your input! > > Rick > > >> On Apr 7, 2017, at 2:03 AM, Matthias Rebbe via use-livecode > wrote: >> >> is the third website just for further processing w/o an output to the user or do you also want to output some information to the user? >> >> case 1 >> You could use the http post or get method to pass the parametesr to the 3rd script/website from the 2nd script and return the result then to the 2nd script. >> Be aware that your 2nd scrip or better said every lc script, needs to do an output, even if it?s just a blank. Otherwise the server returns an error 500 >> >> case 2 >> If i remember right, put header allows you to redirect. So in your 2nd script/website after you?ve done whatever you could use put header to redirect using put header: >> >> something like this >> put "http://yoursite.com?param1¶m2¶me >" into tURL >> put header "Status: 301? >> put header "Location:" && tURL >> put ?redirecting?? ? i am not sure if this last line is still needed, but in older versions of lcServer it was. >> >> >> Matthias >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Fri Apr 7 13:50:58 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 7 Apr 2017 11:50:58 -0600 Subject: Passing Variables in a non-CGI LC Server? In-Reply-To: <389A929E-1D80-46BF-BB78-D6212ADDF6A2@m-r-d.de> References: <5760DF98-0ABE-460F-944D-C6189377EB71@all-auctions.com> <70B1A0E9-9F12-437E-8E63-C6CCF93DA6C8@m-r-d.de> <389A929E-1D80-46BF-BB78-D6212ADDF6A2@m-r-d.de> Message-ID: Ok. The problem with "start session" is most likely trying to write the session file to a place without write permissions. Make sure you set the sessionsavepath to a place you can write to. Having said that.. I can't make it work. I can get past start session, all the way to stop session, no trouble, but the session variables aren't populated on start session. (this is with on-rev most recent installed version of lc server I assume) No errors, just.. doesn't work. The session file is created, I can grab the sessionid etc, but the session array isn't actually loaded. I simplified as much as possible to try and figure out WHY it won't work now. If anyone have ideas, i'd appreciate a pointer. Heres the code... " add 1 to $_SESSION["counter"] put "Incrementing Session counter:" & $_SESSION["counter"] -- increments and displays the future counter stop session ?> On each load, it should increment the current session. So the first hit it should say 1, and 2 for the future. Then 2 and 3, 3 and 4 4 and 5... As I said the sessionid file is created as expected (with 4 bytes in it) but the counter value doesn't appear in the session variables upon start using like it should. On Fri, Apr 7, 2017 at 10:58 AM, Matthias Rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > > > > Am 07.04.2017 um 18:21 schrieb Rick Harrison via use-livecode < > use-livecode at lists.runrev.com >: > > > > Hi Matthias, > > > > Yes, I want to output some information to the user, and other > > information remains hidden - where some data is adjusted, > > modified, on the third webpage. > > > > No, I?m not looking to redirect to another webpage, although > > I have used that technique in the past on other types of > > webservers. > > > > So then you could post the parameters from 2nd script/webpage to the 3rd > webpage/script (post myData to URL destinationURL) and then output the > result or what ever the 3rd script/webpage returns. > > This way you do not need to pass the parameters to the url. > > > I?d rather not have the parameters put into the URL where > > the user can see it if possible for security reasons, but > > if that?s the only way I suppose I could encrypt it before > > passing it through that way. > > > > > Thank you for your input! > > > > Rick > > > > > >> On Apr 7, 2017, at 2:03 AM, Matthias Rebbe via use-livecode < > use-livecode at lists.runrev.com > > wrote: > >> > >> is the third website just for further processing w/o an output to the > user or do you also want to output some information to the user? > >> > >> case 1 > >> You could use the http post or get method to pass the parametesr to the > 3rd script/website from the 2nd script and return the result then to the > 2nd script. > >> Be aware that your 2nd scrip or better said every lc script, needs to > do an output, even if it?s just a blank. Otherwise the server returns an > error 500 > >> > >> case 2 > >> If i remember right, put header allows you to redirect. So in your 2nd > script/website after you?ve done whatever you could use put header to > redirect using put header: > >> > >> something like this > >> put "http://yoursite.com?param1¶m2¶me < > http://yoursite.com/?param1¶m2¶me> param2¶me >" into tURL > >> put header "Status: 301? > >> put header "Location:" && tURL > >> put ?redirecting?? ? i am not sure if this last line is still needed, > but in older versions of lcServer it was. > >> > >> > >> Matthias > >> > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From harrison at all-auctions.com Fri Apr 7 14:52:42 2017 From: harrison at all-auctions.com (Rick Harrison) Date: Fri, 7 Apr 2017 14:52:42 -0400 Subject: Passing Variables in a non-CGI LC Server? In-Reply-To: <389A929E-1D80-46BF-BB78-D6212ADDF6A2@m-r-d.de> References: <5760DF98-0ABE-460F-944D-C6189377EB71@all-auctions.com> <70B1A0E9-9F12-437E-8E63-C6CCF93DA6C8@m-r-d.de> <389A929E-1D80-46BF-BB78-D6212ADDF6A2@m-r-d.de> Message-ID: Hi Matthias, Yes, that was what I was trying to do with no luck getting that working. I can get it to work from a client-side stack without any issue, but when I try to move that code into a .lc web script page it won?t work. So, that?s why I decided I?d better ask what others are doing to pass information along. Thanks, Rick > On Apr 7, 2017, at 12:58 PM, Matthias Rebbe via use-livecode wrote: > > So then you could post the parameters from 2nd script/webpage to the 3rd webpage/script (post myData to URL destinationURL) and then output the result or what ever the 3rd script/webpage returns. > > This way you do not need to pass the parameters to the url. From harrison at all-auctions.com Fri Apr 7 14:54:25 2017 From: harrison at all-auctions.com (Rick Harrison) Date: Fri, 7 Apr 2017 14:54:25 -0400 Subject: Passing Variables in a non-CGI LC Server? In-Reply-To: References: <5760DF98-0ABE-460F-944D-C6189377EB71@all-auctions.com> <70B1A0E9-9F12-437E-8E63-C6CCF93DA6C8@m-r-d.de> <389A929E-1D80-46BF-BB78-D6212ADDF6A2@m-r-d.de> Message-ID: Hi Mike, Well I?m glad to see I?m not alone here in not being able to get ?start session? to work. Now we can enjoy being in the soup together! LOL Rick > On Apr 7, 2017, at 1:50 PM, Mike Bonner via use-livecode wrote: > > Ok. The problem with "start session" is most likely trying to write the > session file to a place without write permissions. Make sure you set the > sessionsavepath to a place you can write to. > > Having said that.. I can't make it work. I can get past start session, all > the way to stop session, no trouble, but the session variables aren't > populated on start session. (this is with on-rev most recent installed > version of lc server I assume) > No errors, just.. doesn't work. The session file is created, I can grab > the sessionid etc, but the session array isn't actually loaded. > > I simplified as much as possible to try and figure out WHY it won't work > now. If anyone have ideas, i'd appreciate a pointer. > > Heres the code... > > set the sessionSavePath to the defaultfolder -- saving session stuff to the > same dir as the .lc > > start session > -- start the session. If you don't do this BEFORE your if check, > $_SESSION["counter"] will always be empty > if $_SESSION["counter"] is empty then > put 1 into $_SESSION["counter"] -- give initial value if necessary > end if > > put "Session counter=" & $_SESSION["counter"] & "
" > > add 1 to $_SESSION["counter"] > put "Incrementing Session counter:" & $_SESSION["counter"] > -- increments and displays the future counter > > stop session > > ?> > > > On each load, it should increment the current session. So the first hit it > should say 1, and 2 for the future. Then 2 and 3, 3 and 4 4 and 5... > As I said the sessionid file is created as expected (with 4 bytes in it) > but the counter value doesn't appear in the session variables upon start > using like it should. > > On Fri, Apr 7, 2017 at 10:58 AM, Matthias Rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> >> >>> Am 07.04.2017 um 18:21 schrieb Rick Harrison via use-livecode < >> use-livecode at lists.runrev.com >: >>> >>> Hi Matthias, >>> >>> Yes, I want to output some information to the user, and other >>> information remains hidden - where some data is adjusted, >>> modified, on the third webpage. >>> >>> No, I?m not looking to redirect to another webpage, although >>> I have used that technique in the past on other types of >>> webservers. >>> >> >> So then you could post the parameters from 2nd script/webpage to the 3rd >> webpage/script (post myData to URL destinationURL) and then output the >> result or what ever the 3rd script/webpage returns. >> >> This way you do not need to pass the parameters to the url. >> >>> I?d rather not have the parameters put into the URL where >>> the user can see it if possible for security reasons, but >>> if that?s the only way I suppose I could encrypt it before >>> passing it through that way. >> >>> >>> Thank you for your input! >>> >>> Rick >>> >>> >>>> On Apr 7, 2017, at 2:03 AM, Matthias Rebbe via use-livecode < >> use-livecode at lists.runrev.com > >> wrote: >>>> >>>> is the third website just for further processing w/o an output to the >> user or do you also want to output some information to the user? >>>> >>>> case 1 >>>> You could use the http post or get method to pass the parametesr to the >> 3rd script/website from the 2nd script and return the result then to the >> 2nd script. >>>> Be aware that your 2nd scrip or better said every lc script, needs to >> do an output, even if it?s just a blank. Otherwise the server returns an >> error 500 >>>> >>>> case 2 >>>> If i remember right, put header allows you to redirect. So in your 2nd >> script/website after you?ve done whatever you could use put header to >> redirect using put header: >>>> >>>> something like this >>>> put "http://yoursite.com?param1¶m2¶me < >> http://yoursite.com/?param1¶m2¶me> > param2¶me >" into tURL >>>> put header "Status: 301? >>>> put header "Location:" && tURL >>>> put ?redirecting?? ? i am not sure if this last line is still needed, >> but in older versions of lcServer it was. >>>> >>>> >>>> Matthias >>>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Fri Apr 7 15:10:51 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 7 Apr 2017 13:10:51 -0600 Subject: Passing Variables in a non-CGI LC Server? In-Reply-To: References: <5760DF98-0ABE-460F-944D-C6189377EB71@all-auctions.com> <70B1A0E9-9F12-437E-8E63-C6CCF93DA6C8@m-r-d.de> <389A929E-1D80-46BF-BB78-D6212ADDF6A2@m-r-d.de> Message-ID: Yep. We're suffering from different soup flavors (The permission problem you're running into.. the need to set the sessionsavepath) vs my soup (it won't actually load the session variables) but inedible is inedible, no matter the cause. *sigh* On Fri, Apr 7, 2017 at 12:54 PM, Rick Harrison via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Mike, > > Well I?m glad to see I?m not alone here in not > being able to get ?start session? to work. > Now we can enjoy being in the soup together! LOL > > Rick > > > On Apr 7, 2017, at 1:50 PM, Mike Bonner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Ok. The problem with "start session" is most likely trying to write the > > session file to a place without write permissions. Make sure you set the > > sessionsavepath to a place you can write to. > > > > Having said that.. I can't make it work. I can get past start session, > all > > the way to stop session, no trouble, but the session variables aren't > > populated on start session. (this is with on-rev most recent installed > > version of lc server I assume) > > No errors, just.. doesn't work. The session file is created, I can grab > > the sessionid etc, but the session array isn't actually loaded. > > > > I simplified as much as possible to try and figure out WHY it won't work > > now. If anyone have ideas, i'd appreciate a pointer. > > > > Heres the code... > > > > > set the sessionSavePath to the defaultfolder -- saving session stuff to > the > > same dir as the .lc > > > > start session > > -- start the session. If you don't do this BEFORE your if check, > > $_SESSION["counter"] will always be empty > > if $_SESSION["counter"] is empty then > > put 1 into $_SESSION["counter"] -- give initial value if necessary > > end if > > > > put "Session counter=" & $_SESSION["counter"] & "
" > > > > add 1 to $_SESSION["counter"] > > put "Incrementing Session counter:" & $_SESSION["counter"] > > -- increments and displays the future counter > > > > stop session > > > > ?> > > > > > > On each load, it should increment the current session. So the first hit > it > > should say 1, and 2 for the future. Then 2 and 3, 3 and 4 4 and 5... > > As I said the sessionid file is created as expected (with 4 bytes in it) > > but the counter value doesn't appear in the session variables upon start > > using like it should. > > > > On Fri, Apr 7, 2017 at 10:58 AM, Matthias Rebbe via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> > >> > >>> Am 07.04.2017 um 18:21 schrieb Rick Harrison via use-livecode < > >> use-livecode at lists.runrev.com >: > >>> > >>> Hi Matthias, > >>> > >>> Yes, I want to output some information to the user, and other > >>> information remains hidden - where some data is adjusted, > >>> modified, on the third webpage. > >>> > >>> No, I?m not looking to redirect to another webpage, although > >>> I have used that technique in the past on other types of > >>> webservers. > >>> > >> > >> So then you could post the parameters from 2nd script/webpage to the > 3rd > >> webpage/script (post myData to URL destinationURL) and then output the > >> result or what ever the 3rd script/webpage returns. > >> > >> This way you do not need to pass the parameters to the url. > >> > >>> I?d rather not have the parameters put into the URL where > >>> the user can see it if possible for security reasons, but > >>> if that?s the only way I suppose I could encrypt it before > >>> passing it through that way. > >> > >>> > >>> Thank you for your input! > >>> > >>> Rick > >>> > >>> > >>>> On Apr 7, 2017, at 2:03 AM, Matthias Rebbe via use-livecode < > >> use-livecode at lists.runrev.com > > >> wrote: > >>>> > >>>> is the third website just for further processing w/o an output to the > >> user or do you also want to output some information to the user? > >>>> > >>>> case 1 > >>>> You could use the http post or get method to pass the parametesr to > the > >> 3rd script/website from the 2nd script and return the result then to > the > >> 2nd script. > >>>> Be aware that your 2nd scrip or better said every lc script, needs to > >> do an output, even if it?s just a blank. Otherwise the server returns an > >> error 500 > >>>> > >>>> case 2 > >>>> If i remember right, put header allows you to redirect. So in your 2nd > >> script/website after you?ve done whatever you could use put header to > >> redirect using put header: > >>>> > >>>> something like this > >>>> put "http://yoursite.com?param1¶m2¶me < > >> http://yoursite.com/?param1¶m2¶me> < > http://yoursite.com/?param1& > >> param2¶me >" into tURL > >>>> put header "Status: 301? > >>>> put header "Location:" && tURL > >>>> put ?redirecting?? ? i am not sure if this last line is still > needed, > >> but in older versions of lcServer it was. > >>>> > >>>> > >>>> Matthias > >>>> > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From harrison at all-auctions.com Fri Apr 7 15:23:09 2017 From: harrison at all-auctions.com (Rick Harrison) Date: Fri, 7 Apr 2017 15:23:09 -0400 Subject: html5 feature list anywhere? sqlite? local file access? In-Reply-To: References: Message-ID: Hi Dr. Hawkins, I didn?t see that anyone answered your question yet so I thought I?d take a stab at it. Others can please feel free to correct me if my information is too old or whatever. HTML5 as I understand it in it?s current form is still considered ?experimental? according to the LiveCode team. It is not able to interact with things outside of itself like external databases, files, etc. The new Java Native Interface available in LC version 9.0.0 DP 6 and later maybe able to let you communicate via Java with external databases. I haven?t played around with that version yet to see if it works or not. HTML5 will work for creating self-contained stack apps which don?t require any external access to files or databases. It will allow you to have your users download the stack/app through the web-browser, and then run the app in the browser, but the app then resides on the client side of things and any information you need is internal only for the stack/app. For me it made more sense to just have different versions of my stack available for download for whatever platforms my users need. I have one for Mac, one for Windows, etc. That way my stack app has the full functionality of LC, and it can talk to whatever external files or databases I want it to access. I hope that helps! Rick > On Apr 6, 2017, at 12:56 PM, Dr. Hawkins via use-livecode wrote: > > I am trying unsuccessfully to see what the feature list is for html5, and > what, if anything, has been omitted. > > In particular, is SQLite still built in? (if not, I'd be dead in the water) > > Can things be saved to local files, and read back from them? (not much > point in creating a document that can't be saved, and need to get the > license key and other preferences). > > ANd is the performance adequate for an application-sized project, as > opposed to app-sized? > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From terry.judd at unimelb.edu.au Fri Apr 7 18:00:16 2017 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Fri, 7 Apr 2017 22:00:16 +0000 Subject: Recording audio with LC on OSX? In-Reply-To: References: <146BFFB7-0493-4A65-B733-5E6EEB0F5BA1@unimelb.edu.au> Message-ID: <4531CE5E-849A-4A96-A544-5D6326AA9CF4@unimelb.edu.au> Thanks Phil ? I?ll have a look at sox as that could let me get things working on Windows as well. Best regards, Terry... On 7/04/2017 5:16 pm, "use-livecode on behalf of Phil Davis via use-livecode" wrote: Hi Terry, If you don't mind using a command line app from within your LC app, you might try sox ( http://sox.sourceforge.net/ ). It is quite powerful and seems simpler to me than ffmpeg ( https://ffmpeg.org/) which I have also used from within LC. One of my apps uses sox to create voice recordings, but I've never tried recording synthetic speech output. Food for thought - Phil Davis On 4/6/17 11:12 PM, Terry Judd via use-livecode wrote: > OK ? looks like mergMicrophone is an option on OSX ? I?ll give that a try. > > Terry... > > On 7/04/2017 12:04 pm, "use-livecode on behalf of Terry Judd via use-livecode" wrote: > > I want to record sound from within LC on a Mac ? actually I want to get LC to speak some text and have it recorded to file (using Sound Siphon to capture it directly rather than via the inbuilt mike and speakers). Is setting the dontUseQT to false and going with ?record sound? the only option or is there another non Quicktime way? > > Regards, > > 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 -- Phil Davis _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Sat Apr 8 00:31:17 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 8 Apr 2017 04:31:17 +0000 Subject: iOS "Invalid Entitlements" Message-ID: Hmm none of these are true, but we still get invalid entitlements. 1) this is an adhoc distribution profile for use with registered UDIDs ; "Beta Version" is unchecked in the SA settings 2) mergHK inclusion does not even appear in the inclusions options (8.1.3) 3) "In App Purchase" is not enabled in the profile 4) "In App Purchase" does not even appear anywhere in the Standalone Settings for iOS I may be missing something but I sure don't see it. ergo I can't have it checked on, if it is not there to check? 5) push notifications is not enabled on profile and not checked in the iOS SA settings Here is what I have that worked before? http://wiki.hindu.org/uploads/iOS-SA-Settings-Apr17.jpg I even tried with all these set to n/a Location services, microphone and WiFi and *still* get the "Invalid Entitlements" msg BR On 4/7/17, 6:16 AM, "use-livecode on behalf of panagiotis merakos via use-livecode" wrote: The cases where I had seen this "Invalid Entitlements" error are the following: 1. "Beta-version" is checked in iOS standalone settings BUT the provisioning profile is a development one (and not a distribution one) 2. The mergHK inclusion is checked in Inclusions, but the provisioning profile I use does not include entitlements for HealthKit. 3. The "In App Purchase" is checked in iOS standalone settings BUT the provisioning profile I used does not include entitlements for In App Purchase. 4. The "Push Notifications" is checked in iOS standalone settings BUT the provisioning profile I used does not include entitlements for Push Notification. Best, Panos From merakosp at gmail.com Sat Apr 8 09:42:00 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Sat, 8 Apr 2017 14:42:00 +0100 Subject: iOS "Invalid Entitlements" In-Reply-To: References: Message-ID: Hmm ok. Then you could probably check which entitlements are included in the standalone, and see if there is any that is not included in the provisioning profile. To do that: 1. Use the codesign tool to check the entitlements on the .app bundle: Type in a terminal: codesign -d --entitlements :- /path/to/yourApp.app 2. Use the security tool to check the entitlements of the app's embedded provisioning profile: Type in a terminal: security cms -D -i /path/to/yourApp.app/embedded.mobileprovision - Then see if there is an entitlement that is present in (1) but not in (2). Best, Panos -- On Sat, Apr 8, 2017 at 5:31 AM, Sannyasin Brahmanathaswami via use-livecode wrote: > Hmm none of these are true, but we still get invalid entitlements. > > 1) this is an adhoc distribution profile for use with registered UDIDs ; > "Beta Version" is unchecked in the SA settings > 2) mergHK inclusion does not even appear in the inclusions options (8.1.3) > 3) "In App Purchase" is not enabled in the profile > 4) "In App Purchase" does not even appear anywhere in the Standalone > Settings for iOS I may be missing something but I sure don't see it. > ergo I can't have it checked on, if it is not there to check? > 5) push notifications is not enabled on profile and not checked in the iOS > SA settings > > Here is what I have that worked before? > > http://wiki.hindu.org/uploads/iOS-SA-Settings-Apr17.jpg > > I even tried with all these set to n/a Location services, microphone and > WiFi > > and *still* get the "Invalid Entitlements" msg > > BR > > > On 4/7/17, 6:16 AM, "use-livecode on behalf of panagiotis merakos via > use-livecode" use-livecode at lists.runrev.com> wrote: > > The cases where I had seen this "Invalid Entitlements" error are the > following: > > 1. "Beta-version" is checked in iOS standalone settings BUT the > provisioning profile is a development one (and not a distribution one) > > 2. The mergHK inclusion is checked in Inclusions, but the provisioning > profile I use does not include entitlements for HealthKit. > > 3. The "In App Purchase" is checked in iOS standalone settings BUT the > provisioning profile I used does not include entitlements for In App > Purchase. > > 4. The "Push Notifications" is checked in iOS standalone settings BUT > the > provisioning profile I used does not include entitlements for Push > Notification. > > Best, > Panos > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Sat Apr 8 11:16:39 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 8 Apr 2017 11:16:39 -0400 Subject: Push Notification Repo Message-ID: I took John Craig's APNsAssistant and put it up on github. I also broke it apart into behavior SOS's, and made some other modifications to it. Now I'd like to make it more complete, so if you have any push code, whether for Android or LC Server, etc., I want it. -- 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 iowahengst at mac.com Sat Apr 8 13:45:09 2017 From: iowahengst at mac.com (Randy Hengst) Date: Sat, 08 Apr 2017 12:45:09 -0500 Subject: Sort on two sortTypes Message-ID: Hi All, I?m working an app to facilitate the development of student class schedules. Right now there are three items for each course that I?d like to sort in various ways: CourseName, Time, Days. The information is placed in that order in a field for display. It?s easy to sort on any one of the items. For example?. sort lines of field "FIRSTyear_FALL" by item 1 of each sort lines of field "FIRSTyear_FALL" dateTime by item 2 of each sort lines of field "FIRSTyear_FALL" by item 3 of each But I can?t figure out how to sort first on item 3, Days and then by item 2, Time. My goal is sort by matching Days and then by time in ascending order. The courses meeting on the same day would be grouped together by time earliest to latest. A sort does take place, but it?s text. I?ve not figured out how/where to place the dateTime sortType when combining a sort on item 3 and item 2. Here?s the basic line of script? where does ?dateTime? go? I?ve tried placing it in all the points of the line that I can think of?. sort lines of field "FIRSTyear_FALL" by item 3 of each & item 2 of each The dictionary under ?Sort Container? suggests what I want to do is possible: The sort container command is a stable sort. This means that if the sortKey for two items or lines is the same, sorting does not change their order, so you can do two successive sorts to create subcategories within the major sort categories. Tip: To create a custom sort order, use the each keyword to pass each line or item to a custom function. The value returned by the function is used as the sort key for that line or item. It is not currently possible to debug custom sort functions, and doing so could make the IDE unstable. It is recommended to use logging messages instead. The information in the ?LiveCode Resource Center? doesn?t include an example of sorting on two criteria. Thanks in advance for any thoughts you can share. be well, randy Randy Hengst www.classroomFocusedSoftware.com From iowahengst at mac.com Sat Apr 8 13:47:07 2017 From: iowahengst at mac.com (Randy Hengst) Date: Sat, 08 Apr 2017 12:47:07 -0500 Subject: Sort with two sortTypes Message-ID: <0C174B99-DBD6-4122-8707-A540B9DABFAC@mac.com> Hi All, I?m working an app to facilitate the development of student class schedules. Right now there are three items for each course that I?d like to sort in various ways: CourseName, Time, Days. The information is placed in that order in a field for display. It?s easy to sort on any one of the items. For example?. sort lines of field "FIRSTyear_FALL" by item 1 of each sort lines of field "FIRSTyear_FALL" dateTime by item 2 of each sort lines of field "FIRSTyear_FALL" by item 3 of each But I can?t figure out how to sort first on item 3, Days and then by item 2, Time. My goal is sort by matching Days and then by time in ascending order. The courses meeting on the same day would be grouped together by time earliest to latest. A sort does take place, but it?s text. I?ve not figured out how/where to place the dateTime sortType when combining a sort on item 3 and item 2. Here?s the basic line of script? where does ?dateTime? go? I?ve tried placing it in all the points of the line that I can think of?. sort lines of field "FIRSTyear_FALL" by item 3 of each & item 2 of each The dictionary under ?Sort Container? suggests what I want to do is possible: The sort container command is a stable sort. This means that if the sortKey for two items or lines is the same, sorting does not change their order, so you can do two successive sorts to create subcategories within the major sort categories. Tip: To create a custom sort order, use the each keyword to pass each line or item to a custom function. The value returned by the function is used as the sort key for that line or item. It is not currently possible to debug custom sort functions, and doing so could make the IDE unstable. It is recommended to use logging messages instead. The information in the ?LiveCode Resource Center? doesn?t include an example of sorting on two criteria. Thanks in advance for any thoughts you can share. be well, randy Randy Hengst www.classroomFocusedSoftware.com From bonnmike at gmail.com Sat Apr 8 14:17:23 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 8 Apr 2017 12:17:23 -0600 Subject: Sort on two sortTypes In-Reply-To: References: Message-ID: do 2 consecutive sorts.. First by item 3 then by item 2 datetime Alternatively, you might be able to use a function sort to do it, but I'd have to really think about how to accomplish it that way, and its too early. Basically though, a sort using a function looks like the following example.. (if the lines contain an item like a hex code for example, 00 to ff, one could use a function to convert the value to a decimal and then return the decimal value as the numeric sort key) sort lines of ascending numeric by myFunction(each) function myFunction pVar return baseconvert(item 3 of pvar,16,10) end myFunction This would return the decimal value of the hex and use the value as the sort key. Like I say, since you're using two data types for your sort, it would require some pondering to figure out the best way to normalize the data and generate the proper sort key, but it should be possible. Still, much easier to just do two consecutive sorts. On Sat, Apr 8, 2017 at 11:45 AM, Randy Hengst via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi All, > > I?m working an app to facilitate the development of student class > schedules. > > Right now there are three items for each course that I?d like to sort in > various ways: CourseName, Time, Days. The information is placed in that > order in a field for display. > > It?s easy to sort on any one of the items. For example?. > sort lines of field "FIRSTyear_FALL" by item 1 of each > > sort lines of field "FIRSTyear_FALL" dateTime by item 2 of each > > sort lines of field "FIRSTyear_FALL" by item 3 of each > > > But I can?t figure out how to sort first on item 3, Days and then by item > 2, Time. My goal is sort by matching Days and then by time in ascending > order. The courses meeting on the same day would be grouped together by > time earliest to latest. A sort does take place, but it?s text. I?ve not > figured out how/where to place the dateTime sortType when combining a sort > on item 3 and item 2. > > Here?s the basic line of script? where does ?dateTime? go? I?ve tried > placing it in all the points of the line that I can think of?. > sort lines of field "FIRSTyear_FALL" by item 3 of each & item 2 of each > > The dictionary under ?Sort Container? suggests what I want to do is > possible: > The sort container command is a stable sort. This means that if the > sortKey for two items or lines is the same, sorting does not change their > order, so you can do two successive sorts to create subcategories within > the major sort categories. > Tip: To create a custom sort order, use the each keyword to pass each line > or item to a custom function. The value returned by the function is used as > the sort key for that line or item. It is not currently possible to debug > custom sort functions, and doing so could make the IDE unstable. It is > recommended to use logging messages instead. > The information in the ?LiveCode Resource Center? doesn?t include an > example of sorting on two criteria. > > Thanks in advance for any thoughts you can share. > > be well, > randy > > Randy Hengst > www.classroomFocusedSoftware.com > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jerry at jhjensen.com Sat Apr 8 14:32:27 2017 From: jerry at jhjensen.com (Jerry Jensen) Date: Sat, 8 Apr 2017 11:32:27 -0700 Subject: Sort on two sortTypes In-Reply-To: References: Message-ID: Bernd?s modTableField will let you do a custom sort. A sort function using something like your example: > by (item 3 of each & item 2 of each) should do the trick. It uses LC?s sort container function so the dictionary does apply. On the other hand, if you sort by one item at a time, sort by the least significant item first, as in sort by the time item and then by the day item. .Jerry > On Apr 8, 2017, at 10:45 AM, Randy Hengst via use-livecode wrote: > > Hi All, > > I?m working an app to facilitate the development of student class schedules. > > Right now there are three items for each course that I?d like to sort in various ways: CourseName, Time, Days. The information is placed in that order in a field for display. > > It?s easy to sort on any one of the items. For example?. > sort lines of field "FIRSTyear_FALL" by item 1 of each > > sort lines of field "FIRSTyear_FALL" dateTime by item 2 of each > > sort lines of field "FIRSTyear_FALL" by item 3 of each > > > But I can?t figure out how to sort first on item 3, Days and then by item 2, Time. My goal is sort by matching Days and then by time in ascending order. The courses meeting on the same day would be grouped together by time earliest to latest. A sort does take place, but it?s text. I?ve not figured out how/where to place the dateTime sortType when combining a sort on item 3 and item 2. > > Here?s the basic line of script? where does ?dateTime? go? I?ve tried placing it in all the points of the line that I can think of?. > sort lines of field "FIRSTyear_FALL" by item 3 of each & item 2 of each > > The dictionary under ?Sort Container? suggests what I want to do is possible: > The sort container command is a stable sort. This means that if the sortKey for two items or lines is the same, sorting does not change their order, so you can do two successive sorts to create subcategories within the major sort categories. > Tip: To create a custom sort order, use the each keyword to pass each line or item to a custom function. The value returned by the function is used as the sort key for that line or item. It is not currently possible to debug custom sort functions, and doing so could make the IDE unstable. It is recommended to use logging messages instead. > The information in the ?LiveCode Resource Center? doesn?t include an example of sorting on two criteria. > > Thanks in advance for any thoughts you can share. > > be well, > randy > > Randy Hengst > www.classroomFocusedSoftware.com > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sat Apr 8 15:07:52 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 8 Apr 2017 14:07:52 -0500 Subject: Sort with two sortTypes In-Reply-To: <0C174B99-DBD6-4122-8707-A540B9DABFAC@mac.com> References: <0C174B99-DBD6-4122-8707-A540B9DABFAC@mac.com> Message-ID: On 4/8/17 12:47 PM, Randy Hengst via use-livecode wrote: > But I can?t figure out how to sort first on item 3, Days and then by > item 2, Time. My goal is sort by matching Days and then by time in > ascending order. The courses meeting on the same day would be grouped > together by time earliest to latest. Just run the sort twice: sort lines of field "FIRSTyear_FALL" by item 3 of each sort lines of field "FIRSTyear_FALL" by item 2 of each -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Apr 8 15:12:33 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 8 Apr 2017 14:12:33 -0500 Subject: Sort with two sortTypes In-Reply-To: References: <0C174B99-DBD6-4122-8707-A540B9DABFAC@mac.com> Message-ID: On 4/8/17 2:07 PM, J. Landman Gay via use-livecode wrote: > Just run the sort twice: > > sort lines of field "FIRSTyear_FALL" by item 3 of each > sort lines of field "FIRSTyear_FALL" by item 2 of each Also, you probably already know this, but it's more efficient to get the field content, sort it twice, and put it back. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jerry at jhjensen.com Sat Apr 8 15:26:52 2017 From: jerry at jhjensen.com (Jerry Jensen) Date: Sat, 8 Apr 2017 12:26:52 -0700 Subject: Sort with two sortTypes In-Reply-To: References: <0C174B99-DBD6-4122-8707-A540B9DABFAC@mac.com> Message-ID: <9EE5FEED-0E3B-4DD6-83D0-27289015B3C1@jhjensen.com> Other way around I think. Sort by time first, then sort by day .Jerry > On Apr 8, 2017, at 12:07 PM, J. Landman Gay via use-livecode wrote: > > On 4/8/17 12:47 PM, Randy Hengst via use-livecode wrote: >> But I can?t figure out how to sort first on item 3, Days and then by >> item 2, Time. My goal is sort by matching Days and then by time in >> ascending order. The courses meeting on the same day would be grouped >> together by time earliest to latest. > > Just run the sort twice: > > sort lines of field "FIRSTyear_FALL" by item 3 of each > sort lines of field "FIRSTyear_FALL" by item 2 of each > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sat Apr 8 15:50:57 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 8 Apr 2017 14:50:57 -0500 Subject: Sort with two sortTypes In-Reply-To: <9EE5FEED-0E3B-4DD6-83D0-27289015B3C1@jhjensen.com> References: <0C174B99-DBD6-4122-8707-A540B9DABFAC@mac.com> <9EE5FEED-0E3B-4DD6-83D0-27289015B3C1@jhjensen.com> Message-ID: <73644b0c-ca0f-fff0-02b6-db57b1c4d127@hyperactivesw.com> On 4/8/17 2:26 PM, Jerry Jensen via use-livecode wrote: > Other way around I think. Sort by time first, then sort by day > .Jerry Right, I got the order mixed up. Smallest first. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From iowahengst at mac.com Sat Apr 8 15:58:31 2017 From: iowahengst at mac.com (Randy Hengst) Date: Sat, 08 Apr 2017 14:58:31 -0500 Subject: Sort with two sortTypes In-Reply-To: <9EE5FEED-0E3B-4DD6-83D0-27289015B3C1@jhjensen.com> References: <0C174B99-DBD6-4122-8707-A540B9DABFAC@mac.com> <9EE5FEED-0E3B-4DD6-83D0-27289015B3C1@jhjensen.com> Message-ID: <60474D1C-C585-4D0B-A008-FA7F42AFF66A@mac.com> Thank you, Jacque and Jerry. I tried Jacque?s suggestion multiple times? why I didn?t try reversing the order I don?t know? it seems so obvious now. Thank you both for the quick response. be well, randy Randy Hengst www.classroomFocusedSoftware.com > On Apr 8, 2017, at 2:26 PM, Jerry Jensen via use-livecode wrote: > > Other way around I think. Sort by time first, then sort by day > .Jerry > >> On Apr 8, 2017, at 12:07 PM, J. Landman Gay via use-livecode wrote: >> >> On 4/8/17 12:47 PM, Randy Hengst via use-livecode wrote: >>> But I can?t figure out how to sort first on item 3, Days and then by >>> item 2, Time. My goal is sort by matching Days and then by time in >>> ascending order. The courses meeting on the same day would be grouped >>> together by time earliest to latest. >> >> Just run the sort twice: >> >> sort lines of field "FIRSTyear_FALL" by item 3 of each >> sort lines of field "FIRSTyear_FALL" by item 2 of each >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sat Apr 8 16:04:14 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 8 Apr 2017 15:04:14 -0500 Subject: Sort with two sortTypes In-Reply-To: <60474D1C-C585-4D0B-A008-FA7F42AFF66A@mac.com> References: <0C174B99-DBD6-4122-8707-A540B9DABFAC@mac.com> <9EE5FEED-0E3B-4DD6-83D0-27289015B3C1@jhjensen.com> <60474D1C-C585-4D0B-A008-FA7F42AFF66A@mac.com> Message-ID: It's because you were channeling me, and I had it wrong. On 4/8/17 2:58 PM, Randy Hengst via use-livecode wrote: > I tried Jacque?s suggestion multiple times? why I didn?t try > reversing the order I don?t know? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From iowahengst at mac.com Sat Apr 8 16:08:32 2017 From: iowahengst at mac.com (Randy Hengst) Date: Sat, 08 Apr 2017 15:08:32 -0500 Subject: Sort with two sortTypes In-Reply-To: References: <0C174B99-DBD6-4122-8707-A540B9DABFAC@mac.com> <9EE5FEED-0E3B-4DD6-83D0-27289015B3C1@jhjensen.com> <60474D1C-C585-4D0B-A008-FA7F42AFF66A@mac.com> Message-ID: <8D390FB6-9BA9-4D71-BB7F-274E6B65369B@mac.com> Well, if I really was channeling you, I?d call that a win!! And besides, then I?d be able to provide way more help to the list than I can now! be well, randy Randy Hengst www.classroomFocusedSoftware.com > On Apr 8, 2017, at 3:04 PM, J. Landman Gay via use-livecode wrote: > > It's because you were channeling me, and I had it wrong. > > On 4/8/17 2:58 PM, Randy Hengst via use-livecode wrote: >> I tried Jacque?s suggestion multiple times? why I didn?t try >> reversing the order I don?t know? > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jerry at jhjensen.com Sat Apr 8 16:11:31 2017 From: jerry at jhjensen.com (Jerry Jensen) Date: Sat, 8 Apr 2017 13:11:31 -0700 Subject: Sort with two sortTypes In-Reply-To: <60474D1C-C585-4D0B-A008-FA7F42AFF66A@mac.com> References: <0C174B99-DBD6-4122-8707-A540B9DABFAC@mac.com> <9EE5FEED-0E3B-4DD6-83D0-27289015B3C1@jhjensen.com> <60474D1C-C585-4D0B-A008-FA7F42AFF66A@mac.com> Message-ID: <89800DF2-AF1A-49CE-856F-C3BAFD84258B@jhjensen.com> > why I didn?t try reversing the order I don?t know? it seems so obvious now. Not enough time feeding one of these: http://www.columbia.edu/cu/computinghistory/082.jpg ;) Jerry From iowahengst at mac.com Sat Apr 8 16:13:58 2017 From: iowahengst at mac.com (Randy Hengst) Date: Sat, 08 Apr 2017 15:13:58 -0500 Subject: Sort on two sortTypes In-Reply-To: References: Message-ID: Mike, thank you. I didn?t try the function you mentioned? to be honest, it would take me a bit to get my head around it. be well, randy Randy Hengst www.classroomFocusedSoftware.com > On Apr 8, 2017, at 1:17 PM, Mike Bonner via use-livecode wrote: > > do 2 consecutive sorts.. > First by item 3 > then by item 2 datetime > > Alternatively, you might be able to use a function sort to do it, but I'd > have to really think about how to accomplish it that way, and its too early. > > Basically though, a sort using a function looks like the following example.. > (if the lines contain an item like a hex code for example, 00 to ff, one > could use a function to convert the value to a decimal and then return the > decimal value as the numeric sort key) > > sort lines of ascending numeric by myFunction(each) > > function myFunction pVar > return baseconvert(item 3 of pvar,16,10) > end myFunction > > This would return the decimal value of the hex and use the value as the > sort key. Like I say, since you're using two data types for your sort, it > would require some pondering to figure out the best way to normalize the > data and generate the proper sort key, but it should be possible. Still, > much easier to just do two consecutive sorts. > > > On Sat, Apr 8, 2017 at 11:45 AM, Randy Hengst via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi All, >> >> I?m working an app to facilitate the development of student class >> schedules. >> >> Right now there are three items for each course that I?d like to sort in >> various ways: CourseName, Time, Days. The information is placed in that >> order in a field for display. >> >> It?s easy to sort on any one of the items. For example?. >> sort lines of field "FIRSTyear_FALL" by item 1 of each >> >> sort lines of field "FIRSTyear_FALL" dateTime by item 2 of each >> >> sort lines of field "FIRSTyear_FALL" by item 3 of each >> >> >> But I can?t figure out how to sort first on item 3, Days and then by item >> 2, Time. My goal is sort by matching Days and then by time in ascending >> order. The courses meeting on the same day would be grouped together by >> time earliest to latest. A sort does take place, but it?s text. I?ve not >> figured out how/where to place the dateTime sortType when combining a sort >> on item 3 and item 2. >> >> Here?s the basic line of script? where does ?dateTime? go? I?ve tried >> placing it in all the points of the line that I can think of?. >> sort lines of field "FIRSTyear_FALL" by item 3 of each & item 2 of each >> >> The dictionary under ?Sort Container? suggests what I want to do is >> possible: >> The sort container command is a stable sort. This means that if the >> sortKey for two items or lines is the same, sorting does not change their >> order, so you can do two successive sorts to create subcategories within >> the major sort categories. >> Tip: To create a custom sort order, use the each keyword to pass each line >> or item to a custom function. The value returned by the function is used as >> the sort key for that line or item. It is not currently possible to debug >> custom sort functions, and doing so could make the IDE unstable. It is >> recommended to use logging messages instead. >> The information in the ?LiveCode Resource Center? doesn?t include an >> example of sorting on two criteria. >> >> Thanks in advance for any thoughts you can share. >> >> be well, >> randy >> >> Randy Hengst >> www.classroomFocusedSoftware.com >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 8 20:58:13 2017 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 9 Apr 2017 01:58:13 +0100 Subject: OT (?): Bookmarking GPS coords Message-ID: I'm looking for any help or suggestions for existing apps that can do (something like) what I want to do - could even be a clever way to use a feature I've not found in Google maps, or pple maps, or ... I have a reasonable number (i.e. 10 - 200 !!) - not a small number where I would be willing to use a somewhat cumbersome, overly-manual method, nor a huge number where it would need to be highly automated - *named* places that I want to capture a GPS location for (say, a list of all the houses in my neighbourhood). I want to finish up with a table of 'address to GPS location' (for later use on a helpful web-site). Google Maps's "address lookup" feature doesn't work for my situation (named houses in a rural location; it does OK for numbers in a street in urban places in the US, but not for me here :-) Using Google (or Apple) Maps to capture 'current loc' is fine - but all you get is a marker that you can share with their own app - or can share via notes/email/ ... and that doesn't even make it easy to label the location. And I *want* to download the list of addresses - I do *not* want to be re-typing them on a phone. So this approach (unless there's a feature I've missed) is just too cumbersome for 10s or 100s of locations. It would be the most trivial app to write in LC - ask the postcode - download the list of addresses in that postcode, and put it into a selection control - have a button that takes current location and stores it for the selected address [walk along the road, selecting and clicking as I pass each house :-) ] - upload the completed file of locations + addresses BUT - I would need to figure out how to build an iOS and/or Android app, and how to release it or get it on to the phones of my volunteers, which seems to be so troublesome I'd rather avoid it :-) So I'm hoping there's some existing app I can use (or misuse) to get the task done. Many thanks Alex. P.S. yes, I know I can buy this data, but doing that is well our of my budget :-) From jacque at hyperactivesw.com Sat Apr 8 21:40:28 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 8 Apr 2017 20:40:28 -0500 Subject: OT (?): Bookmarking GPS coords In-Reply-To: References: Message-ID: If you go for Android it is trivial to build and distribute. There are no restrictions, you can email the app or supply a web download link, or put it on a public server. Apple is more restrictive, so you'd need to get the UUIDs of everyone who will use the device, or else pay for an Enterprise license, or else put it in the App Store. If you want to create the stack I'd be happy to build it in Android for you, and show you how to do it yourself if you like. It isn't difficult. On 4/8/17 7:58 PM, Alex Tweedly via use-livecode wrote: > It would be the most trivial app to write in LC > > - ask the postcode > > - download the list of addresses in that postcode, and put it into a > selection control > > - have a button that takes current location and stores it for the > selected address > > [walk along the road, selecting and clicking as I pass each house :-) ] > > - upload the completed file of locations + addresses > > BUT - I would need to figure out how to build an iOS and/or Android app, > and how to release it or get it on to the phones of my volunteers, which > seems to be so troublesome I'd rather avoid it :-) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From livfoss at mac.com Sun Apr 9 04:34:56 2017 From: livfoss at mac.com (Graham Samuel) Date: Sun, 09 Apr 2017 10:34:56 +0200 Subject: OT (?): Bookmarking GPS coords In-Reply-To: References: Message-ID: <37033D1C-7D73-4AB8-BD36-BC5F2DB7A3C7@mac.com> I?d love it if this topic could stay on the list for a bit, as I?m just getting involved in reconstructing an existing desktop Geographical Information System which has been very successfully sold to UK schoolchildren, who use it to understand maps and map symbols based on their own locality; but it very much overdue to be re-designed and implemented for mobile devices - mostly tablets. The use of GPS to explore and record a locality is clearly a very powerful and necessary addition to the program. As it?s the UK, even Alex?s interest in postcodes is highly relevant to me (to those outside the UK, and individual UK postcode identifies a very small area - normally seen as a postman?s walk. This is different from other countries like France where postcodes are wide-ranging and therefore less useful for apps like this.) Thanks Graham > On 9 Apr 2017, at 03:40, J. Landman Gay via use-livecode wrote: > > If you go for Android it is trivial to build and distribute. There are no restrictions, you can email the app or supply a web download link, or put it on a public server. Apple is more restrictive, so you'd need to get the UUIDs of everyone who will use the device, or else pay for an Enterprise license, or else put it in the App Store. > > If you want to create the stack I'd be happy to build it in Android for you, and show you how to do it yourself if you like. It isn't difficult. > > On 4/8/17 7:58 PM, Alex Tweedly via use-livecode wrote: >> It would be the most trivial app to write in LC >> >> - ask the postcode >> >> - download the list of addresses in that postcode, and put it into a >> selection control >> >> - have a button that takes current location and stores it for the >> selected address >> >> [walk along the road, selecting and clicking as I pass each house :-) ] >> >> - upload the completed file of locations + addresses >> >> BUT - I would need to figure out how to build an iOS and/or Android app, >> and how to release it or get it on to the phones of my volunteers, which >> seems to be so troublesome I'd rather avoid it :-) > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From johnpatten at me.com Sun Apr 9 10:33:34 2017 From: johnpatten at me.com (JOHN PATTEN) Date: Sun, 09 Apr 2017 07:33:34 -0700 Subject: OT (?): Bookmarking GPS coords In-Reply-To: <37033D1C-7D73-4AB8-BD36-BC5F2DB7A3C7@mac.com> References: <37033D1C-7D73-4AB8-BD36-BC5F2DB7A3C7@mac.com> Message-ID: <61B1DA07-E42F-44CA-AA1A-EBFC22C7700D@me.com> This sound interesting, I'd be interested in learning more too. Thank you John Patten SUSD Sent from my iPad > On Apr 9, 2017, at 1:34 AM, Graham Samuel via use-livecode wrote: > > I?d love it if this topic could stay on the list for a bit, as I?m just getting involved in reconstructing an existing desktop Geographical Information System which has been very successfully sold to UK schoolchildren, who use it to understand maps and map symbols based on their own locality; but it very much overdue to be re-designed and implemented for mobile devices - mostly tablets. The use of GPS to explore and record a locality is clearly a very powerful and necessary addition to the program. As it?s the UK, even Alex?s interest in postcodes is highly relevant to me (to those outside the UK, and individual UK postcode identifies a very small area - normally seen as a postman?s walk. This is different from other countries like France where postcodes are wide-ranging and therefore less useful for apps like this.) > > Thanks > > Graham > > >> On 9 Apr 2017, at 03:40, J. Landman Gay via use-livecode wrote: >> >> If you go for Android it is trivial to build and distribute. There are no restrictions, you can email the app or supply a web download link, or put it on a public server. Apple is more restrictive, so you'd need to get the UUIDs of everyone who will use the device, or else pay for an Enterprise license, or else put it in the App Store. >> >> If you want to create the stack I'd be happy to build it in Android for you, and show you how to do it yourself if you like. It isn't difficult. >> >>> On 4/8/17 7:58 PM, Alex Tweedly via use-livecode wrote: >>> It would be the most trivial app to write in LC >>> >>> - ask the postcode >>> >>> - download the list of addresses in that postcode, and put it into a >>> selection control >>> >>> - have a button that takes current location and stores it for the >>> selected address >>> >>> [walk along the road, selecting and clicking as I pass each house :-) ] >>> >>> - upload the completed file of locations + addresses >>> >>> BUT - I would need to figure out how to build an iOS and/or Android app, >>> and how to release it or get it on to the phones of my volunteers, which >>> seems to be so troublesome I'd rather avoid it :-) >> >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Sun Apr 9 10:49:27 2017 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 9 Apr 2017 15:49:27 +0100 Subject: OT (?): Bookmarking GPS coords In-Reply-To: References: Message-ID: <0d2d8fb4-1893-2ab1-8768-b20f8d9c8ced@tweedly.net> Thanks Jacque, that's a very generous offer. It sounds like I should try again for Android (I did try Android once before, with some success; but the only Android device I had was a Kindle Fire, which adds its own complexities, so that mini project just kind of withered :-) I'll investigate it some more, and scream for help if I need it. Basically it's : - for the village I live in, and surrounding areas - majority of the houses have *only* a name - no number, no street/road, just a name ... What I'm doing is in 3 parts : - really simple web page to search based on partial house/street names (trivial) - desktop/laptop app to display a map and allow volunteer/user to position a marker "at" the house - tablet/phone app to allow a volunteer to walk/cycle around and click when outside each named house First two parts are done - except for tidying up; I'll finish them off sometime over the next week or two (school holidays, so we hobbyists have limited in to play on our computers :-) and post or upload them. And I'll give the mobile app a try as well - may be an excuse to buy a new gadget/phone :-) -- Alex. On 09/04/2017 02:40, J. Landman Gay via use-livecode wrote: > If you go for Android it is trivial to build and distribute. There are > no restrictions, you can email the app or supply a web download link, > or put it on a public server. Apple is more restrictive, so you'd need > to get the UUIDs of everyone who will use the device, or else pay for > an Enterprise license, or else put it in the App Store. > > If you want to create the stack I'd be happy to build it in Android > for you, and show you how to do it yourself if you like. It isn't > difficult. > > On 4/8/17 7:58 PM, Alex Tweedly via use-livecode wrote: >> It would be the most trivial app to write in LC >> >> - ask the postcode >> >> - download the list of addresses in that postcode, and put it into a >> selection control >> >> - have a button that takes current location and stores it for the >> selected address >> >> [walk along the road, selecting and clicking as I pass each house :-) ] >> >> - upload the completed file of locations + addresses >> >> BUT - I would need to figure out how to build an iOS and/or Android app, >> and how to release it or get it on to the phones of my volunteers, which >> seems to be so troublesome I'd rather avoid it :-) > > From alex at tweedly.net Sun Apr 9 10:54:26 2017 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 9 Apr 2017 15:54:26 +0100 Subject: OT (?): Bookmarking GPS coords In-Reply-To: <37033D1C-7D73-4AB8-BD36-BC5F2DB7A3C7@mac.com> References: <37033D1C-7D73-4AB8-BD36-BC5F2DB7A3C7@mac.com> Message-ID: <1a8a8d28-99d4-5bab-80c0-7fbe06b06a92@tweedly.net> And in addition the UK has the advantage of the openstreetmap and openpostcode project, so that goes a long way to providing the data to get me started :-) I'll post a fuller description and put the desktop app up on .... wherever stacks got these days ... soon. -- Alex. On 09/04/2017 09:34, Graham Samuel via use-livecode wrote: > I?d love it if this topic could stay on the list for a bit, as I?m just getting involved in reconstructing an existing desktop Geographical Information System which has been very successfully sold to UK schoolchildren, who use it to understand maps and map symbols based on their own locality; but it very much overdue to be re-designed and implemented for mobile devices - mostly tablets. The use of GPS to explore and record a locality is clearly a very powerful and necessary addition to the program. As it?s the UK, even Alex?s interest in postcodes is highly relevant to me (to those outside the UK, and individual UK postcode identifies a very small area - normally seen as a postman?s walk. This is different from other countries like France where postcodes are wide-ranging and therefore less useful for apps like this.) > > Thanks > > Graham > > >> On 9 Apr 2017, at 03:40, J. Landman Gay via use-livecode wrote: >> >> If you go for Android it is trivial to build and distribute. There are no restrictions, you can email the app or supply a web download link, or put it on a public server. Apple is more restrictive, so you'd need to get the UUIDs of everyone who will use the device, or else pay for an Enterprise license, or else put it in the App Store. >> >> If you want to create the stack I'd be happy to build it in Android for you, and show you how to do it yourself if you like. It isn't difficult. >> >> On 4/8/17 7:58 PM, Alex Tweedly via use-livecode wrote: >>> It would be the most trivial app to write in LC >>> >>> - ask the postcode >>> >>> - download the list of addresses in that postcode, and put it into a >>> selection control >>> >>> - have a button that takes current location and stores it for the >>> selected address >>> >>> [walk along the road, selecting and clicking as I pass each house :-) ] >>> >>> - upload the completed file of locations + addresses >>> >>> BUT - I would need to figure out how to build an iOS and/or Android app, >>> and how to release it or get it on to the phones of my volunteers, which >>> seems to be so troublesome I'd rather avoid it :-) >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Sun Apr 9 11:02:37 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 9 Apr 2017 15:02:37 +0000 Subject: iOS "Invalid Entitlements" In-Reply-To: References: Message-ID: <103F221B-8781-4882-A9BD-120D9B41944E@hindu.org> Thank you Panos; back on track here. IMHO in future might lead with this solution on any query about entitlements. Assume user has enough experience to use cmd line until further notified. but here's my harrowing tale, in case it is helpful? I went in unusual circles yesterday: I had reverted my whole app to a commit made on GIT on the 17th of March, and moved back to using 8.1.3, because I thought our "nightly" branch that I was working on in 9dp5 was irrevocably corrupted.. that?s where (old commit in 8.1.3) I was unable to do a build with the latest provisioning profile and SA settings applied to the main/binary stack. (see my email to support, which is resolved now). using codesign and security cmd for the app that was built on that old commit with 8.1.3: did not show any problems with entitlements? still it would not load without the invalid entitlements error. Aside: the stack files of my main stack were quite messed up from cherry picking this stack and moving it from branch to branch etc. it listed files that did not exist in the tree; one script I added to the tree was a .livecodescript that did not have the proper declaration on line 1.. etc. This whole stack files business needs more thought/refinement for a collaborative GIT environment. (anyone solve this? please post as separate thread on handling your stack files via GIT.) So I spent half a day getting nowhere in this old commit "roll-back" branch, using 8.1.3 stable OK I thought,"we have nothing to lose here, it is only getting worse. Let me go back to the nightly branch in 9dp5, because I know I was able to build iOS standalones with that mainstack in 9dp5?" (despite other issues) So I commit all my changes to the "roll-back" branch; check out nightly; do a thorough examination of my stack files and the working tree. clean up everything there. Save, go to SA settings, by now the provisioning profile had changed? so I selected the new provisioning profile (same one that was used for the build on the "roll-back" branch in 8.1.3) and built the standalone? got the usual first session failure to find resource (can you PLEEEZE fix that?) ran it again, got a successful build. cross fingers, go to xCode to add to my phone and BOING!@ it works now. Yay! OK so I run codesign against that build; and also security cms against that same build/embedded.mobileprovision now, here's the "kicker" :- the output is *exactly* the same as the build that was created in 8.1.3 that fails with the invalid entitlements error message! But, built now with 9dp5 it works. My "gut" is telling me that either the main stack/or the cRevStandalonesettings in the rollback commit is corrupt very deep internally OR 8.1.3 is doing something wrong when building the standalone. Really just a hunch, could be totally wrong. But the good news is: having your stack files not matching the working tree seems to have been a big problem? because now, I have 100% fully functional, no bugs app on my iPhone. Jai Ganesha! after a full week of spinning? we are back on track! now, off to test on Android? Thank God for a GIT work flow! -------------- On 4/8/17, 3:42 AM, "use-livecode on behalf of panagiotis merakos via use-livecode" wrote: Hmm ok. Then you could probably check which entitlements are included in the standalone, and see if there is any that is not included in the provisioning profile. To do that: 1. Use the codesign tool to check the entitlements on the .app bundle: Type in a terminal: codesign -d --entitlements :- /path/to/yourApp.app 2. Use the security tool to check the entitlements of the app's embedded provisioning profile: Type in a terminal: security cms -D -i /path/to/yourApp.app/embedded.mobileprovision - Then see if there is an entitlement that is present in (1) but not in (2). Best, Panos From brahma at hindu.org Sun Apr 9 18:04:23 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 9 Apr 2017 22:04:23 +0000 Subject: Animation External in the Inclusions In-Reply-To: <5D528324-0A77-40F2-968E-E1BA013A902C@hindu.org> References: <5D528324-0A77-40F2-968E-E1BA013A902C@hindu.org> Message-ID: <64974240-48E2-4F5F-9144-F521C9D24FB6@hindu.org> I can't find any documentation related to the item referred to as "Animation" included in the list of inclusions Dictionary entries commands like "revPlayAnimation" with association: "animation library" all say: "No longer supported, and included for backwards compatibility only? etc" so, is the Animation inclusion the same library referred to in the dictionary. Animation builder disappeared as far back as 2.5? BR (always interested in animation options) From jonathandlynch at gmail.com Sun Apr 9 19:18:35 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Sun, 9 Apr 2017 19:18:35 -0400 Subject: LC crashing when trying to save a standalone Message-ID: I had been able to save a standalone of my app on 8.1.3 on a mac, but all of a sudden it crashes every time. I cannot see where I changed anything in the app that would cause this. Has anyone else experienced this and how did you resolve it? Sent from my iPhone From monte at appisle.net Sun Apr 9 19:25:27 2017 From: monte at appisle.net (Monte Goulding) Date: Mon, 10 Apr 2017 09:25:27 +1000 Subject: LC crashing when trying to save a standalone In-Reply-To: References: Message-ID: <4B369270-659C-4F36-9D86-A99D70FC2A39@appisle.net> > On 10 Apr 2017, at 9:18 am, Jonathan Lynch via use-livecode wrote: > > I had been able to save a standalone of my app on 8.1.3 on a mac, but all of a sudden it crashes every time. > > I cannot see where I changed anything in the app that would cause this. Has anyone else experienced this and how did you resolve it? Could you please attach the crash log to a bug report so we can work out exactly what?s causing the crash. It would also help if you checked if LC 8.1.4 RC 1 crashes with the same recipe. Cheers Monte From bogdanoff at me.com Sun Apr 9 19:37:58 2017 From: bogdanoff at me.com (Peter Bogdanoff) Date: Sun, 09 Apr 2017 16:37:58 -0700 Subject: LC crashing when trying to save a standalone In-Reply-To: References: Message-ID: I was working on a new Mac, and had transferred the data over from an old. I had the same issue and had to delete the LC preferences to be able to make a runtime. Also, on another Mac, I sometimes get crashes when I just save a stack with a particular external hard drive attached. The drive starts to spin up, then the program crashes. I had to power off the drive to be able to save consistently. Peter > On Apr 9, 2017, at 4:18 PM, Jonathan Lynch via use-livecode wrote: > > I had been able to save a standalone of my app on 8.1.3 on a mac, but all of a sudden it crashes every time. > > I cannot see where I changed anything in the app that would cause this. Has anyone else experienced this and how did you resolve it? > > Sent from my 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 jonathandlynch at gmail.com Sun Apr 9 19:51:39 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Sun, 9 Apr 2017 19:51:39 -0400 Subject: LC crashing when trying to save a standalone In-Reply-To: References: Message-ID: <60162011-BE26-4129-A467-C3A19F65BD98@gmail.com> I am reinstalling 8.1.3 - but will also delete the preferences file Monte, if I get another crash, I will save the file. Thanks guys Sent from my iPhone > On Apr 9, 2017, at 7:37 PM, Peter Bogdanoff via use-livecode wrote: > > I was working on a new Mac, and had transferred the data over from an old. I had the same issue and had to delete the LC preferences to be able to make a runtime. > > Also, on another Mac, I sometimes get crashes when I just save a stack with a particular external hard drive attached. The drive starts to spin up, then the program crashes. I had to power off the drive to be able to save consistently. > > Peter > > >> On Apr 9, 2017, at 4:18 PM, Jonathan Lynch via use-livecode wrote: >> >> I had been able to save a standalone of my app on 8.1.3 on a mac, but all of a sudden it crashes every time. >> >> I cannot see where I changed anything in the app that would cause this. Has anyone else experienced this and how did you resolve it? >> >> Sent from my 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 jonathandlynch at gmail.com Sun Apr 9 20:39:29 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Sun, 9 Apr 2017 20:39:29 -0400 Subject: LC crashing when trying to save a standalone In-Reply-To: <60162011-BE26-4129-A467-C3A19F65BD98@gmail.com> References: <60162011-BE26-4129-A467-C3A19F65BD98@gmail.com> Message-ID: <41279668-FB7C-4551-884B-B535FED400A6@gmail.com> After reinstalling and deleting the preferences file - it still does it. It works fine for a new stack, but not for this stack. It makes me wonder if my stack is corrupted somehow. Wow, frustrating. Not sure if I should bother with a bug report, since it is just my stack, but no idea how to fix my stack either. Sent from my iPhone > On Apr 9, 2017, at 7:51 PM, jonathandlynch at gmail.com wrote: > > I am reinstalling 8.1.3 - but will also delete the preferences file > > Monte, if I get another crash, I will save the file. > > Thanks guys > > Sent from my iPhone > >> On Apr 9, 2017, at 7:37 PM, Peter Bogdanoff via use-livecode wrote: >> >> I was working on a new Mac, and had transferred the data over from an old. I had the same issue and had to delete the LC preferences to be able to make a runtime. >> >> Also, on another Mac, I sometimes get crashes when I just save a stack with a particular external hard drive attached. The drive starts to spin up, then the program crashes. I had to power off the drive to be able to save consistently. >> >> Peter >> >> >>> On Apr 9, 2017, at 4:18 PM, Jonathan Lynch via use-livecode wrote: >>> >>> I had been able to save a standalone of my app on 8.1.3 on a mac, but all of a sudden it crashes every time. >>> >>> I cannot see where I changed anything in the app that would cause this. Has anyone else experienced this and how did you resolve it? >>> >>> Sent from my 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 monte at appisle.net Sun Apr 9 20:41:27 2017 From: monte at appisle.net (Monte Goulding) Date: Mon, 10 Apr 2017 10:41:27 +1000 Subject: LC crashing when trying to save a standalone In-Reply-To: <41279668-FB7C-4551-884B-B535FED400A6@gmail.com> References: <60162011-BE26-4129-A467-C3A19F65BD98@gmail.com> <41279668-FB7C-4551-884B-B535FED400A6@gmail.com> Message-ID: <7CFD97FE-02B0-4902-BACB-3F558D84B2E4@appisle.net> > On 10 Apr 2017, at 10:39 am, Jonathan Lynch via use-livecode wrote: > > Not sure if I should bother with a bug report, since it is just my stack, but no idea how to fix my stack either. Please do. The engine shouldn?t crash. Cheers Monte From jonathandlynch at gmail.com Sun Apr 9 20:58:00 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Sun, 9 Apr 2017 20:58:00 -0400 Subject: LC crashing when trying to save a standalone In-Reply-To: <7CFD97FE-02B0-4902-BACB-3F558D84B2E4@appisle.net> References: <60162011-BE26-4129-A467-C3A19F65BD98@gmail.com> <41279668-FB7C-4551-884B-B535FED400A6@gmail.com> <7CFD97FE-02B0-4902-BACB-3F558D84B2E4@appisle.net> Message-ID: <4233CC32-27DB-4364-95BC-0BA514748D19@gmail.com> One more update - an earlier version of the app will save to a standalone. So, definitely something wrong with the stack. Going to try cloning the stack or something like that. Sent from my iPhone > On Apr 9, 2017, at 8:41 PM, Monte Goulding via use-livecode wrote: > > >> On 10 Apr 2017, at 10:39 am, Jonathan Lynch via use-livecode wrote: >> >> Not sure if I should bother with a bug report, since it is just my stack, but no idea how to fix my stack either. > > Please do. The engine shouldn?t crash. > > Cheers > > Monte > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at appisle.net Sun Apr 9 21:34:22 2017 From: monte at appisle.net (Monte Goulding) Date: Mon, 10 Apr 2017 11:34:22 +1000 Subject: LC crashing when trying to save a standalone In-Reply-To: <4233CC32-27DB-4364-95BC-0BA514748D19@gmail.com> References: <60162011-BE26-4129-A467-C3A19F65BD98@gmail.com> <41279668-FB7C-4551-884B-B535FED400A6@gmail.com> <7CFD97FE-02B0-4902-BACB-3F558D84B2E4@appisle.net> <4233CC32-27DB-4364-95BC-0BA514748D19@gmail.com> Message-ID: <515F9489-C898-45EB-9D04-34F41FB3AD23@appisle.net> > On 10 Apr 2017, at 10:58 am, Jonathan Lynch via use-livecode wrote: > > One more update - an earlier version of the app will save to a standalone. > So, definitely something wrong with the stack. Going to try cloning the stack or something like that. It sounds like attaching the stack to the report would be a big help too then. Cheers Monte From jonathandlynch at gmail.com Sun Apr 9 23:39:48 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Sun, 9 Apr 2017 23:39:48 -0400 Subject: LC crashing when trying to save a standalone In-Reply-To: <515F9489-C898-45EB-9D04-34F41FB3AD23@appisle.net> References: <60162011-BE26-4129-A467-C3A19F65BD98@gmail.com> <41279668-FB7C-4551-884B-B535FED400A6@gmail.com> <7CFD97FE-02B0-4902-BACB-3F558D84B2E4@appisle.net> <4233CC32-27DB-4364-95BC-0BA514748D19@gmail.com> <515F9489-C898-45EB-9D04-34F41FB3AD23@appisle.net> Message-ID: <8ADCC29F-9B1E-495D-B89A-DE5924EC7186@gmail.com> Another update It seems to have something to do with the browser widget getting corrupted. I copied the browser widget to a new stack and it crashed while trying to save as a standalone. Putting a new browser widget in the original stack did not help, but that stack has like 6 browser widget, do maybe I needed to replace them all. I found a fix that appears to work, though. Not sure if the fix will last. I emailed the stack to my PC. Then I saved it from the PC and emailed it back to the Mac. That version that had been processed by the PC was able to be saved as a standalone by the mac. Weird. I have noticed the browser widget do a few other weird things on the mac as well, like turn partially transparent for no obvious reason. Sent from my iPhone > On Apr 9, 2017, at 9:34 PM, Monte Goulding via use-livecode wrote: > > >> On 10 Apr 2017, at 10:58 am, Jonathan Lynch via use-livecode wrote: >> >> One more update - an earlier version of the app will save to a standalone. >> So, definitely something wrong with the stack. Going to try cloning the stack or something like that. > > It sounds like attaching the stack to the report would be a big help too then. > > Cheers > > Monte > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Mon Apr 10 00:41:52 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 10 Apr 2017 04:41:52 +0000 Subject: LC crashing when trying to save a standalone In-Reply-To: <4233CC32-27DB-4364-95BC-0BA514748D19@gmail.com> References: <60162011-BE26-4129-A467-C3A19F65BD98@gmail.com> <41279668-FB7C-4551-884B-B535FED400A6@gmail.com> <7CFD97FE-02B0-4902-BACB-3F558D84B2E4@appisle.net> <4233CC32-27DB-4364-95BC-0BA514748D19@gmail.com> Message-ID: <078F20EC-A328-45E8-A38D-603B3F59CAB0@hindu.org> interesting I was having exactly this problem this week? slightly different scenario, but smells like the same fishy business. I was working in our branch "nightly" in 9 dp 5 and did something stupid broke stuff? I will spare you the story. I thought "hmm I had this working in 8.1.3" so I check out a commit from March 17th, as a new branch and went to work in 8.3.1 but my main stack refused to be accepted by xCode when I tried to put it on my phone?invalide entitlements. four days spinning wheels and testing.. changing my provisionig profile, checking entitlements from the cmd line? etc. I could find nothing wrong. Anyway, while mucking around in the old commit I discover where I had gone wrong later? it was not a big thing, so I when back to my "future" branch "nightly" in 9dp5.. and now, guess what.. the mainMyApp.livecode stack? I could now build the SA and xCode was happy with it.. but, and this is the mysterious part: the entitlements of my app as output by codesign an security cms? were exactly the same as the stack from the earlier commit that I was deploy with the SA in 8.1.3. I could only assume that the myMainStack.livecode was corrupt some how, and yes, I went through the whole thing deleting my settings and even manually wiped cRevStandaloneSettings on the "bad stack" and rebuilt the SA settings from ground zero? nothing helped. On 4/9/17, 2:58 PM, "use-livecode on behalf of Jonathan Lynch via use-livecode" wrote: One more update - an earlier version of the app will save to a standalone. So, definitely something wrong with the stack. Going to try cloning the stack or something like that. Sent from my iPhone From jonathandlynch at gmail.com Mon Apr 10 05:20:48 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Mon, 10 Apr 2017 05:20:48 -0400 Subject: LC crashing when trying to save a standalone In-Reply-To: <078F20EC-A328-45E8-A38D-603B3F59CAB0@hindu.org> References: <60162011-BE26-4129-A467-C3A19F65BD98@gmail.com> <41279668-FB7C-4551-884B-B535FED400A6@gmail.com> <7CFD97FE-02B0-4902-BACB-3F558D84B2E4@appisle.net> <4233CC32-27DB-4364-95BC-0BA514748D19@gmail.com> <078F20EC-A328-45E8-A38D-603B3F59CAB0@hindu.org> Message-ID: Hi Swami, Does your app have a browser widget? Sent from my iPhone > On Apr 10, 2017, at 12:41 AM, Sannyasin Brahmanathaswami via use-livecode wrote: > > interesting I was having exactly this problem this week? slightly different scenario, but smells like the same fishy business. > > I was working in our branch "nightly" in 9 dp 5 and did something stupid broke stuff? I will spare you the story. > > I thought "hmm I had this working in 8.1.3" so I check out a commit from March 17th, as a new branch and went to work in 8.3.1 > > but my main stack refused to be accepted by xCode when I tried to put it on my phone?invalide entitlements. four days spinning wheels and testing.. changing my provisionig profile, checking entitlements from the cmd line? etc. I could find nothing wrong. > > Anyway, while mucking around in the old commit I discover where I had gone wrong later? it was not a big thing, so I when back to my "future" branch "nightly" in 9dp5.. and now, guess what.. the mainMyApp.livecode stack? I could now build the SA and xCode was happy with it.. > > but, and this is the mysterious part: the entitlements of my app as output by codesign an security cms? were exactly the same as the stack from the earlier commit that I was deploy with the SA in 8.1.3. > > I could only assume that the myMainStack.livecode was corrupt some how, and yes, I went through the whole thing deleting my settings and even manually wiped cRevStandaloneSettings on the "bad stack" and rebuilt the SA settings from ground zero? nothing helped. > > On 4/9/17, 2:58 PM, "use-livecode on behalf of Jonathan Lynch via use-livecode" wrote: > > One more update - an earlier version of the app will save to a standalone. > So, definitely something wrong with the stack. Going to try cloning the stack or something like that. > > Sent from my 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 toolbook at kestner.de Mon Apr 10 06:06:05 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 10 Apr 2017 12:06:05 +0200 Subject: any secrets printing only a section from a card? Message-ID: <00aa01d2b1e2$12199f40$364cddc0$@kestner.de> Hello, LC 8.1.4, Win 10. (Same with LC 6-9) When printing a whole card with just "print card" everything of the card is being printed fine, only stretched to the papersize. But when trying to print only a part of the card by "print card from myLeftTop to myRightBottom into page Rect" I never get the wanted rectangle being printed into the pageRect. It is always clipped somewhere and only a small part of the wanted rectangle is being printed. I have also tried to set the printpapersize and printmargins and fiddled around with different rectangle sizes, but didn't got the wanted section. Are there any secret conversion factors, when printing "from to"? Thanks for any hint Tiemo From panos.merakos at livecode.com Mon Apr 10 07:22:42 2017 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 10 Apr 2017 12:22:42 +0100 Subject: [ANN] This Week in LiveCode 78 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 #78 here: https://goo.gl/s78DY5 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 dunbarx at aol.com Mon Apr 10 09:23:46 2017 From: dunbarx at aol.com (dunbarx) Date: Mon, 10 Apr 2017 06:23:46 -0700 (PDT) Subject: Sort on two sortTypes In-Reply-To: References: Message-ID: <1491830626832-4713855.post@n4.nabble.com> Since HC days, you have been able to: sort yourData by sortKey1 & sortKey2 & .... sort yourData by item 1 of each & item 2 of each Craig Newman -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Sort-on-two-sortTypes-tp4713821p4713855.html Sent from the Revolution - User mailing list archive at Nabble.com. From iowahengst at mac.com Mon Apr 10 09:46:57 2017 From: iowahengst at mac.com (Randy Hengst) Date: Mon, 10 Apr 2017 08:46:57 -0500 Subject: Sort on two sortTypes In-Reply-To: <1491830626832-4713855.post@n4.nabble.com> References: <1491830626832-4713855.post@n4.nabble.com> Message-ID: <1DE39215-1E15-450C-B96F-6BDF9C4DE644@mac.com> Hi Craig, Yes, I was able to sort in the way you described? the problem I ran into was... where to place the dateTime sortType when using a multiple sort when one sortKey was date time and the other text. be well, randy Randy Hengst www.classroomFocusedSoftware.com > On Apr 10, 2017, at 8:23 AM, dunbarx via use-livecode wrote: > > Since HC days, you have been able to: > > sort yourData by sortKey1 & sortKey2 & .... > > sort yourData by item 1 of each & item 2 of each > > Craig Newman > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Sort-on-two-sortTypes-tp4713821p4713855.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Mon Apr 10 09:39:42 2017 From: dunbarx at aol.com (dunbarx) Date: Mon, 10 Apr 2017 06:39:42 -0700 (PDT) Subject: any secrets printing only a section from a card? In-Reply-To: <00aa01d2b1e2$12199f40$364cddc0$@kestner.de> References: <00aa01d2b1e2$12199f40$364cddc0$@kestner.de> Message-ID: <1491831582154-4713857.post@n4.nabble.com> A couple of things you can try. You can print into a specified "pageRect". See the dictionary. You can also set the "printScale" to a value other than 1. See the dictionary. Craig Newman -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/any-secrets-printing-only-a-section-from-a-card-tp4713853p4713857.html Sent from the Revolution - User mailing list archive at Nabble.com. From dunbarx at aol.com Mon Apr 10 09:46:47 2017 From: dunbarx at aol.com (dunbarx) Date: Mon, 10 Apr 2017 06:46:47 -0700 (PDT) Subject: Sort on two sortTypes In-Reply-To: <1DE39215-1E15-450C-B96F-6BDF9C4DE644@mac.com> References: <1491830626832-4713855.post@n4.nabble.com> <1DE39215-1E15-450C-B96F-6BDF9C4DE644@mac.com> Message-ID: <1491832007765-4713858.post@n4.nabble.com> Ah. Then you will have to do what, I think, Jacque suggested and sort by two functions: sort yourData by functionA() & functionB(). This because once you set the sortStyle (sort numeric, sort dateTime,...) that must hold through the entirety of the "multiSortKey" method. This may be more unnecessarily complicated that simply sorting twice. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Sort-on-two-sortTypes-tp4713821p4713858.html Sent from the Revolution - User mailing list archive at Nabble.com. From tom at makeshyft.com Mon Apr 10 10:22:38 2017 From: tom at makeshyft.com (Tom Glod) Date: Mon, 10 Apr 2017 10:22:38 -0400 Subject: LC crashing when trying to save a standalone In-Reply-To: References: <60162011-BE26-4129-A467-C3A19F65BD98@gmail.com> <41279668-FB7C-4551-884B-B535FED400A6@gmail.com> <7CFD97FE-02B0-4902-BACB-3F558D84B2E4@appisle.net> <4233CC32-27DB-4364-95BC-0BA514748D19@gmail.com> <078F20EC-A328-45E8-A38D-603B3F59CAB0@hindu.org> Message-ID: there was a bug in that version...try 8.14...I had the same issue...solved now. On Mon, Apr 10, 2017 at 5:20 AM, Jonathan Lynch via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Swami, > > Does your app have a browser widget? > > Sent from my iPhone > > > On Apr 10, 2017, at 12:41 AM, Sannyasin Brahmanathaswami via > use-livecode wrote: > > > > interesting I was having exactly this problem this week? slightly > different scenario, but smells like the same fishy business. > > > > I was working in our branch "nightly" in 9 dp 5 and did something > stupid broke stuff? I will spare you the story. > > > > I thought "hmm I had this working in 8.1.3" so I check out a commit > from March 17th, as a new branch and went to work in 8.3.1 > > > > but my main stack refused to be accepted by xCode when I tried to put it > on my phone?invalide entitlements. four days spinning wheels and testing.. > changing my provisionig profile, checking entitlements from the cmd line? > etc. I could find nothing wrong. > > > > Anyway, while mucking around in the old commit I discover where I had > gone wrong later? it was not a big thing, so I when back to my "future" > branch "nightly" in 9dp5.. and now, guess what.. the mainMyApp.livecode > stack? I could now build the SA and xCode was happy with it.. > > > > but, and this is the mysterious part: the entitlements of my app as > output by codesign an security cms? were exactly the same as the stack from > the earlier commit that I was deploy with the SA in 8.1.3. > > > > I could only assume that the myMainStack.livecode was corrupt some how, > and yes, I went through the whole thing deleting my settings and even > manually wiped cRevStandaloneSettings on the "bad stack" and rebuilt the SA > settings from ground zero? nothing helped. > > > > On 4/9/17, 2:58 PM, "use-livecode on behalf of Jonathan Lynch via > use-livecode" use-livecode at lists.runrev.com> wrote: > > > > One more update - an earlier version of the app will save to a > standalone. > > So, definitely something wrong with the stack. Going to try cloning > the stack or something like that. > > > > Sent from my 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 > -- *Tom Glod* CEO @ *MakeShyft R.D.A* - www.makeshyft.com Developer of *U.M.P* - www.IamUMP.com From blueback09 at gmail.com Mon Apr 10 10:27:03 2017 From: blueback09 at gmail.com (Matt Maier) Date: Mon, 10 Apr 2017 07:27:03 -0700 Subject: this stack gets every closeStack message In-Reply-To: <2318D765-C637-4356-907F-6FB4D274F403@iotecdigital.com> References: <1491354635448-4713694.post@n4.nabble.com> <2318D765-C637-4356-907F-6FB4D274F403@iotecdigital.com> Message-ID: I think I figured it out. Thanks for the ideas about troubleshooting but none of those rabbit holes were particularly informative. Eventually while doing something else I went back through the dictionary entries for the various commands that make use of external stacks. It finally dawned on me that I had mindlessly listed this actual stack in the same "start using" list as all of my script only library stacks. Then I was also using "go to stack" when the user actually opened it. So that makes sense, right? The reason it was getting every message like a library stack is that I told Livecode to use it as a library stack. I think I understand the different options a little better now. All I need is "go to stack" with the file path at the moment I need the mainstack; I don't have to include it previously or anything. On Wed, Apr 5, 2017 at 9:29 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > the executionContexts > Bob S > > On Apr 4, 2017, at 19:22 , Matt Maier via use-livecode < > use-livecode at lists.runrev.com> > wrote: > > I'm not aware of a way to "trace" where a message has been and the keywords > I can think of aren't turning up anything promising in the dictionary or > google. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 10 11:10:29 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 10 Apr 2017 08:10:29 -0700 Subject: [ANN] This Week in LiveCode 78 In-Reply-To: References: Message-ID: Thank you, Panos. This item was particularly interesting: Add a new script library implementing unified diff generation and patch application: Expected in LiveCode 9.0 DP-7 It wasn't immediately clear to me from the notes in that PR what that does, but the description sounds enticing. Can you offer a little background on that? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From peter.brett at livecode.com Mon Apr 10 11:42:54 2017 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 10 Apr 2017 16:42:54 +0100 Subject: [ANN] This Week in LiveCode 78 In-Reply-To: References: Message-ID: <9f5354d1-133b-2355-63ca-b5f206f3dd3f@livecode.com> On 10/04/2017 16:10, Richard Gaskin via use-livecode wrote: > Thank you, Panos. > > This item was particularly interesting: > > Add a new script library implementing unified diff generation and > patch application: Expected in LiveCode 9.0 DP-7 > > > It wasn't immediately clear to me from the notes in that PR what that > does, but the description sounds enticing. > > Can you offer a little background on that? It's exactly what it says on the tin: a library that implements an algorithm for finding a minimal line-based edit script between two input texts, along with the ability to turn that into a unified diff. Go have a look at the source code, which contains inline documentation: https://github.com/livecode/livecode/blob/develop/extensions/script-libraries/diff/diff.livecodescript You could also have a look at the tests: https://github.com/livecode/livecode/blob/develop/extensions/script-libraries/diff/test Its development was sponsored by David Simpson. Check out FMProMigrator. :) Peter -- Dr Peter Brett lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From capellan2000 at gmail.com Mon Apr 10 12:06:50 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 10 Apr 2017 12:06:50 -0400 Subject: LiveCode Android Demo Message-ID: Hi All, Where I could download an .APK that demonstrate (with user interaction) all LiveCode features available for Android Platform? For example, check this Interactive OpenCV Demo (for Win32 platforms) http://www.tsdconseil.fr/log/opencv/demo/index-en.html This interactive OpenCV demo allows the user to load their own images to test the algorithms. Thanks in advance! Al From bonnmike at gmail.com Mon Apr 10 13:22:16 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 10 Apr 2017 11:22:16 -0600 Subject: Passing Variables in a non-CGI LC Server? In-Reply-To: References: <5760DF98-0ABE-460F-944D-C6189377EB71@all-auctions.com> <70B1A0E9-9F12-437E-8E63-C6CCF93DA6C8@m-r-d.de> <389A929E-1D80-46BF-BB78-D6212ADDF6A2@m-r-d.de> Message-ID: If you're interested in trying session variables again, I got word back that the issue I was having is fixed in 8.1.4 rc1 and it does indeed solve it. (hoping on-rev updates soon) The newer version also solves the error you were having (which required using sessionsavepath as a workaround) I have a very simple page set up on digitalocea (short term) at http://104.236.179.13/test.lc if you want to see it working. The script i'm using is: " -- same here, puts the current counter add 1 to $_SESSION["counter"] put "Incrementing Session counter:" & $_SESSION["counter"] -- increments and displays the future counter put "
The session id is " & the sessionid stop session put "
" & the version put "
" & shell("uname -a") ?> On Fri, Apr 7, 2017 at 1:10 PM, Mike Bonner wrote: > Yep. We're suffering from different soup flavors (The permission problem > you're running into.. the need to set the sessionsavepath) vs my soup (it > won't actually load the session variables) but inedible is inedible, no > matter the cause. *sigh* > > On Fri, Apr 7, 2017 at 12:54 PM, Rick Harrison via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Mike, >> >> Well I?m glad to see I?m not alone here in not >> being able to get ?start session? to work. >> Now we can enjoy being in the soup together! LOL >> >> Rick >> >> > On Apr 7, 2017, at 1:50 PM, Mike Bonner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > Ok. The problem with "start session" is most likely trying to write the >> > session file to a place without write permissions. Make sure you set >> the >> > sessionsavepath to a place you can write to. >> > >> > Having said that.. I can't make it work. I can get past start session, >> all >> > the way to stop session, no trouble, but the session variables aren't >> > populated on start session. (this is with on-rev most recent installed >> > version of lc server I assume) >> > No errors, just.. doesn't work. The session file is created, I can grab >> > the sessionid etc, but the session array isn't actually loaded. >> > >> > I simplified as much as possible to try and figure out WHY it won't work >> > now. If anyone have ideas, i'd appreciate a pointer. >> > >> > Heres the code... >> > >> > > > set the sessionSavePath to the defaultfolder -- saving session stuff to >> the >> > same dir as the .lc >> > >> > start session >> > -- start the session. If you don't do this BEFORE your if check, >> > $_SESSION["counter"] will always be empty >> > if $_SESSION["counter"] is empty then >> > put 1 into $_SESSION["counter"] -- give initial value if necessary >> > end if >> > >> > put "Session counter=" & $_SESSION["counter"] & "
" >> > >> > add 1 to $_SESSION["counter"] >> > put "Incrementing Session counter:" & $_SESSION["counter"] >> > -- increments and displays the future counter >> > >> > stop session >> > >> > ?> >> > >> > >> > On each load, it should increment the current session. So the first hit >> it >> > should say 1, and 2 for the future. Then 2 and 3, 3 and 4 4 and 5... >> > As I said the sessionid file is created as expected (with 4 bytes in it) >> > but the counter value doesn't appear in the session variables upon start >> > using like it should. >> > >> > On Fri, Apr 7, 2017 at 10:58 AM, Matthias Rebbe via use-livecode < >> > use-livecode at lists.runrev.com> wrote: >> > >> >> >> >> >> >>> Am 07.04.2017 um 18:21 schrieb Rick Harrison via use-livecode < >> >> use-livecode at lists.runrev.com >: >> >>> >> >>> Hi Matthias, >> >>> >> >>> Yes, I want to output some information to the user, and other >> >>> information remains hidden - where some data is adjusted, >> >>> modified, on the third webpage. >> >>> >> >>> No, I?m not looking to redirect to another webpage, although >> >>> I have used that technique in the past on other types of >> >>> webservers. >> >>> >> >> >> >> So then you could post the parameters from 2nd script/webpage to the >> 3rd >> >> webpage/script (post myData to URL destinationURL) and then output the >> >> result or what ever the 3rd script/webpage returns. >> >> >> >> This way you do not need to pass the parameters to the url. >> >> >> >>> I?d rather not have the parameters put into the URL where >> >>> the user can see it if possible for security reasons, but >> >>> if that?s the only way I suppose I could encrypt it before >> >>> passing it through that way. >> >> >> >>> >> >>> Thank you for your input! >> >>> >> >>> Rick >> >>> >> >>> >> >>>> On Apr 7, 2017, at 2:03 AM, Matthias Rebbe via use-livecode < >> >> use-livecode at lists.runrev.com > >> >> wrote: >> >>>> >> >>>> is the third website just for further processing w/o an output to the >> >> user or do you also want to output some information to the user? >> >>>> >> >>>> case 1 >> >>>> You could use the http post or get method to pass the parametesr to >> the >> >> 3rd script/website from the 2nd script and return the result then to >> the >> >> 2nd script. >> >>>> Be aware that your 2nd scrip or better said every lc script, needs to >> >> do an output, even if it?s just a blank. Otherwise the server returns >> an >> >> error 500 >> >>>> >> >>>> case 2 >> >>>> If i remember right, put header allows you to redirect. So in your >> 2nd >> >> script/website after you?ve done whatever you could use put header to >> >> redirect using put header: >> >>>> >> >>>> something like this >> >>>> put "http://yoursite.com?param1¶m2¶me < >> >> http://yoursite.com/?param1¶m2¶me> < >> http://yoursite.com/?param1& >> >> param2¶me >" into tURL >> >>>> put header "Status: 301? >> >>>> put header "Location:" && tURL >> >>>> put ?redirecting?? ? i am not sure if this last line is still >> needed, >> >> but in older versions of lcServer it was. >> >>>> >> >>>> >> >>>> Matthias >> >>>> >> >>> >> >>> >> >>> _______________________________________________ >> >>> use-livecode mailing list >> >>> use-livecode at lists.runrev.com >> >>> Please visit this url to subscribe, unsubscribe and manage your >> >> subscription preferences: >> >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> >> _______________________________________________ >> >> use-livecode mailing list >> >> use-livecode at lists.runrev.com >> >> Please visit this url to subscribe, unsubscribe and manage your >> >> subscription preferences: >> >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at lists.runrev.com >> > Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From harrison at all-auctions.com Mon Apr 10 14:13:17 2017 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 10 Apr 2017 14:13:17 -0400 Subject: Passing Variables in a non-CGI LC Server? In-Reply-To: References: <5760DF98-0ABE-460F-944D-C6189377EB71@all-auctions.com> <70B1A0E9-9F12-437E-8E63-C6CCF93DA6C8@m-r-d.de> <389A929E-1D80-46BF-BB78-D6212ADDF6A2@m-r-d.de> Message-ID: <5D5A93C0-A944-4A33-A79B-6E187C401D6F@all-auctions.com> Hi Mike, Thanks, I?ll check it out! Rick > On Apr 10, 2017, at 1:22 PM, Mike Bonner via use-livecode wrote: > > If you're interested in trying session variables again, I got word back > that the issue I was having is fixed in 8.1.4 rc1 and it does indeed solve > it. (hoping on-rev updates soon) The newer version also solves the error > you were having (which required using sessionsavepath as a workaround) > I have a very simple page set up on digitalocea (short term) at > http://104.236.179.13/test.lc if you want to see it working. > > The script i'm using is: > > > start session > > if $_SESSION["counter"] is empty then > put 1 into $_SESSION["counter"] > end if > > > put "Session counter=" & $_SESSION["counter"] & "
" > -- same here, puts the current counter > > add 1 to $_SESSION["counter"] > put "Incrementing Session counter:" & $_SESSION["counter"] > -- increments and displays the future counter > put "
The session id is " & the sessionid > stop session > > put "
" & the version > put "
" & shell("uname -a") > > ?> > From ambassador at fourthworld.com Mon Apr 10 14:14:11 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 10 Apr 2017 11:14:11 -0700 Subject: [ANN] This Week in LiveCode 78 In-Reply-To: <9f5354d1-133b-2355-63ca-b5f206f3dd3f@livecode.com> References: <9f5354d1-133b-2355-63ca-b5f206f3dd3f@livecode.com> Message-ID: <309e04d7-1084-ba89-fd54-d358ca29a123@fourthworld.com> Peter TB Brett wrote: > On 10/04/2017 16:10, Richard Gaskin via use-livecode wrote: >> Thank you, Panos. >> >> This item was particularly interesting: >> >> Add a new script library implementing unified diff generation and >> patch application: Expected in LiveCode 9.0 DP-7 >> >> >> It wasn't immediately clear to me from the notes in that PR what that >> does, but the description sounds enticing. >> >> Can you offer a little background on that? > > It's exactly what it says on the tin: a library that implements an > algorithm for finding a minimal line-based edit script between two > input texts, along with the ability to turn that into a unified diff. > > Go have a look at the source code, which contains inline > documentation: > https://github.com/livecode/livecode/blob/develop/extensions/script-libraries/diff/diff.livecodescript > > You could also have a look at the tests: > https://github.com/livecode/livecode/blob/develop/extensions/script-libraries/diff/test > > Its development was sponsored by David Simpson. Thanks, Peter. These things may seem obvious to you, but it seemed a bit of an edge-case feature vis a vis others in the queue, so the background you provided is very helpful. And thanks, David. -- 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 jonathandlynch at gmail.com Mon Apr 10 15:32:17 2017 From: jonathandlynch at gmail.com (Jonathan Lynch) Date: Mon, 10 Apr 2017 15:32:17 -0400 Subject: LC crashing when trying to save a standalone In-Reply-To: References: <60162011-BE26-4129-A467-C3A19F65BD98@gmail.com> <41279668-FB7C-4551-884B-B535FED400A6@gmail.com> <7CFD97FE-02B0-4902-BACB-3F558D84B2E4@appisle.net> <4233CC32-27DB-4364-95BC-0BA514748D19@gmail.com> <078F20EC-A328-45E8-A38D-603B3F59CAB0@hindu.org> Message-ID: As both Monte and Tom have suggested, moving to 8.1.4 rc 1 fixed the problem for me. I am usually wary of using rc versions, but if you are going to use a browser widget, it is probably a good idea. On Mon, Apr 10, 2017 at 10:22 AM, Tom Glod via use-livecode < use-livecode at lists.runrev.com> wrote: > there was a bug in that version...try 8.14...I had the same issue...solved > now. > > On Mon, Apr 10, 2017 at 5:20 AM, Jonathan Lynch via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Hi Swami, > > > > Does your app have a browser widget? > > > > Sent from my iPhone > > > > > On Apr 10, 2017, at 12:41 AM, Sannyasin Brahmanathaswami via > > use-livecode wrote: > > > > > > interesting I was having exactly this problem this week? slightly > > different scenario, but smells like the same fishy business. > > > > > > I was working in our branch "nightly" in 9 dp 5 and did something > > stupid broke stuff? I will spare you the story. > > > > > > I thought "hmm I had this working in 8.1.3" so I check out a commit > > from March 17th, as a new branch and went to work in 8.3.1 > > > > > > but my main stack refused to be accepted by xCode when I tried to put > it > > on my phone?invalide entitlements. four days spinning wheels and > testing.. > > changing my provisionig profile, checking entitlements from the cmd line? > > etc. I could find nothing wrong. > > > > > > Anyway, while mucking around in the old commit I discover where I had > > gone wrong later? it was not a big thing, so I when back to my "future" > > branch "nightly" in 9dp5.. and now, guess what.. the mainMyApp.livecode > > stack? I could now build the SA and xCode was happy with it.. > > > > > > but, and this is the mysterious part: the entitlements of my app as > > output by codesign an security cms? were exactly the same as the stack > from > > the earlier commit that I was deploy with the SA in 8.1.3. > > > > > > I could only assume that the myMainStack.livecode was corrupt some how, > > and yes, I went through the whole thing deleting my settings and even > > manually wiped cRevStandaloneSettings on the "bad stack" and rebuilt the > SA > > settings from ground zero? nothing helped. > > > > > > On 4/9/17, 2:58 PM, "use-livecode on behalf of Jonathan Lynch via > > use-livecode" > use-livecode at lists.runrev.com> wrote: > > > > > > One more update - an earlier version of the app will save to a > > standalone. > > > So, definitely something wrong with the stack. Going to try cloning > > the stack or something like that. > > > > > > Sent from my 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 > > > > > > -- > *Tom Glod* > > CEO @ *MakeShyft R.D.A* - www.makeshyft.com > > > > Developer of *U.M.P* - www.IamUMP.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 > -- Do all things with love From lan.kc.macmail at gmail.com Mon Apr 10 19:12:07 2017 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 11 Apr 2017 09:12:07 +1000 Subject: OT (?): Bookmarking GPS coords In-Reply-To: References: Message-ID: On Sun, Apr 9, 2017 at 10:58 AM, Alex Tweedly via use-livecode wrote: > I'm looking for any help or suggestions for existing apps that can do > (something like) what I want to do - could even be a clever way to use a > feature I've not found in Google maps, or pple maps, or ... > Hi Alex, I'm not exactly sure what you are trying to achieve but here is a scenario that might address some of your needs: You have a local Scout group and you want all the children in the group to know where all the other kids and group leaders live so you want to produce a map with place markers that can be easily shared. So I'd get all the kids to go home, get onto Google Maps and find their own home using Street View. Once they've found their home, they take a copy of the URL and have them email it to you. The entire URL will look like this: https://www.google.com.au/maps/@52.7810059,-1.7254772,3a,75y,38.54h,87.5t,358.22r/data=!3m6!1e1!3m4!1sNB14D3D9SvOQvL8Efe9h8w!2e0!7i13312!8i6656!6m1!1e1 The format is pretty straight forward to decipher, the two numbers directly after the @ is the latitude and longitude. It would be easy to write an LC utility to strip the address to just the Lat and Long. Take this Lat and Long and paste it into Google Earth. Note I started out in "Maps" because of Street View - it is much easier to find your own home in Maps vs Earth. Obviously pasting the Lat Long into Earth will take you to exactly the same spot. In Earth you can then place multiple 'Placemarkers' and give them appropriate names and descriptions - that are like pop up tooltips. I'd name the Placemarkers after the kid's name, and for the description enter their proper address. Once you've entered all the Placemarker details, you can scale your view to cover just the area that includes all your Placemarkers. You can then save this as a .kmz file and send it out to everyone. When anyone opens the file they'll see exactly what you saw when you saved it; but it doesn't preclude them from zooming in and out or panning around. Google Earth is available on all the popular desktop and mobile OSes and is free. Lastly, .kmz files are basically an xml file as defined by Google. Again the format is pretty simple to decipher - or you could look it up on the internet and have it precisely described to you. I would think it would be relatively simple to define a procedure (less simple to have the kids actually follow it) where the kids send you an email with the body is in a format like: URL: qerpoqueoruqweouqeoruqoru Your fullname: oiu lh mnbmb Your Full address: 765 hohjjkl jhgjgh ouyiuy UYT 432 FHG and then have LC read the email, extract the relevant data and then automatically add the Placemarker data into the .kmz file. One problem I see is that someone might join who lives outside the original zoomed level of your custom kmz map so with each update to the kmz file you would have to actually open it and look at it in Google Earth and determine that the zoom level is correct to ensure that everyone is still within the bounds of display; before saving the file and sending it out as an update to everyone. Also, Google Earth allows you to create your own 'Tracks' that can be saved and shared. So for instance, you could save a Scout hiking trip and share it and so parents would know where to drop kids off and pick them up, and theoretically the kids can't get too lost on the route in between;-) HTH From alex at tweedly.net Mon Apr 10 19:41:27 2017 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 11 Apr 2017 00:41:27 +0100 Subject: OT (?): Bookmarking GPS coords In-Reply-To: References: Message-ID: <8ce9f4c6-fde6-7c2e-929a-257fd960f64d@tweedly.net> Thanks - lots of useful info there. The big issue in this approach is (as you say) > I would > think it would be relatively simple to define a procedure (less simple > to have the kids actually follow it) where the kids send you an email In my case, I have a large number of addresses to define (say, 500) and a small number of volunteers (say 2 or 3) - so I'm not able to distribute the initial data gathering very well. The level of manual effort involved in copy/paste URL, type name, type address would be OK for each Scout doing one of them - but asking my volunteers to do a couple of hundred each is, um, challenging :-) Also, I do have the addresses already collected - so I am hoping to import that into Google maps (or other mapping system) ready for some human interaction to define where each on is - and ideally to then require only one click (or equivalent) to capture enough info for me to process it. A kmz file might be usable - but I'd need to generate it on the fly, because I want to only show one (or at most a handful) of addresses - there's already a lot of local concern about putting anything like this on the internet. Currently I have system (LC + revBrowser) working to define locations, though I'd like to make it a bit smarter. And a (very) initial display system - see https://www.kilmelford.com/igniter.lc/basic/findaddress (good examples to try for the search string are "glen", or "cuil" or "cuil cottage" or .... This might work for me because one of my volunteers has access to a high-definition map of part of the area, with house names already shown; but for the other part I will probably need to do the GPS app for phone/tablet and have them walk/cycle around. So - off to experiment with kmz files ... thanks !! -- Alex. On 11/04/2017 00:12, Kay C Lan via use-livecode wrote: > On Sun, Apr 9, 2017 at 10:58 AM, Alex Tweedly via use-livecode > wrote: >> I'm looking for any help or suggestions for existing apps that can do >> (something like) what I want to do - could even be a clever way to use a >> feature I've not found in Google maps, or pple maps, or ... >> > Hi Alex, I'm not exactly sure what you are trying to achieve but here > is a scenario that might address some of your needs: > > You have a local Scout group and you want all the children in the > group to know where all the other kids and group leaders live so you > want to produce a map with place markers that can be easily shared. > > So I'd get all the kids to go home, get onto Google Maps and find > their own home using Street View. Once they've found their home, they > take a copy of the URL and have them email it to you. The entire URL > will look like this: > > https://www.google.com.au/maps/@52.7810059,-1.7254772,3a,75y,38.54h,87.5t,358.22r/data=!3m6!1e1!3m4!1sNB14D3D9SvOQvL8Efe9h8w!2e0!7i13312!8i6656!6m1!1e1 > > The format is pretty straight forward to decipher, the two numbers > directly after the @ is the latitude and longitude. It would be easy > to write an LC utility to strip the address to just the Lat and Long. > > Take this Lat and Long and paste it into Google Earth. Note I started > out in "Maps" because of Street View - it is much easier to find your > own home in Maps vs Earth. Obviously pasting the Lat Long into Earth > will take you to exactly the same spot. In Earth you can then place > multiple 'Placemarkers' and give them appropriate names and > descriptions - that are like pop up tooltips. I'd name the > Placemarkers after the kid's name, and for the description enter their > proper address. > > Once you've entered all the Placemarker details, you can scale your > view to cover just the area that includes all your Placemarkers. You > can then save this as a .kmz file and send it out to everyone. When > anyone opens the file they'll see exactly what you saw when you saved > it; but it doesn't preclude them from zooming in and out or panning > around. > > Google Earth is available on all the popular desktop and mobile OSes > and is free. > > Lastly, .kmz files are basically an xml file as defined by Google. > Again the format is pretty simple to decipher - or you could look it > up on the internet and have it precisely described to you. I would > think it would be relatively simple to define a procedure (less simple > to have the kids actually follow it) where the kids send you an email > with the body is in a format like: > > URL: qerpoqueoruqweouqeoruqoru > Your fullname: oiu lh mnbmb > Your Full address: 765 hohjjkl jhgjgh ouyiuy UYT 432 FHG > > and then have LC read the email, extract the relevant data and then > automatically add the Placemarker data into the .kmz file. One problem > I see is that someone might join who lives outside the original zoomed > level of your custom kmz map so with each update to the kmz file you > would have to actually open it and look at it in Google Earth and > determine that the zoom level is correct to ensure that everyone is > still within the bounds of display; before saving the file and sending > it out as an update to everyone. > > Also, Google Earth allows you to create your own 'Tracks' that can be > saved and shared. So for instance, you could save a Scout hiking trip > and share it and so parents would know where to drop kids off and pick > them up, and theoretically the kids can't get too lost on the route in > between;-) > > HTH > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Mon Apr 10 20:29:18 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 10 Apr 2017 17:29:18 -0700 Subject: manipulating attributes of text in fields from scripts Message-ID: I have a number of label fields which inadvertently have bold text in them. I can identify these in a loop from their text, and put the long id of the field into tgTg. Shouldn't one of *set* the textStyle of tgTg to "plain" or *set* the textStyle of char 1 to -1 of the text of tgTg to "plain" do this? I'm trying to completely obliterate any bold settings, and there may be bits of boldoff-boldon between characters(?) of the pdf source I paste. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From jonathandlynch at gmail.com Mon Apr 10 20:40:22 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Mon, 10 Apr 2017 20:40:22 -0400 Subject: OT (?): Bookmarking GPS coords In-Reply-To: <8ce9f4c6-fde6-7c2e-929a-257fd960f64d@tweedly.net> References: <8ce9f4c6-fde6-7c2e-929a-257fd960f64d@tweedly.net> Message-ID: <348ABC54-EF86-41BA-9435-6D58005D5B3B@gmail.com> Rather than travel physically, could you just move in the map, and program it to record your click locations in a map? Sent from my iPhone > On Apr 10, 2017, at 7:41 PM, Alex Tweedly via use-livecode wrote: > > Thanks - lots of useful info there. > > The big issue in this approach is (as you say) >> I would >> think it would be relatively simple to define a procedure (less simple >> to have the kids actually follow it) where the kids send you an email > In my case, I have a large number of addresses to define (say, 500) and a small number of volunteers (say 2 or 3) - so I'm not able to distribute the initial data gathering very well. The level of manual effort involved in copy/paste URL, type name, type address would be OK for each Scout doing one of them - but asking my volunteers to do a couple of hundred each is, um, challenging :-) > > Also, I do have the addresses already collected - so I am hoping to import that into Google maps (or other mapping system) ready for some human interaction to define where each on is - and ideally to then require only one click (or equivalent) to capture enough info for me to process it. > > A kmz file might be usable - but I'd need to generate it on the fly, because I want to only show one (or at most a handful) of addresses - there's already a lot of local concern about putting anything like this on the internet. > > Currently I have system (LC + revBrowser) working to define locations, though I'd like to make it a bit smarter. > And a (very) initial display system - see https://www.kilmelford.com/igniter.lc/basic/findaddress > (good examples to try for the search string are "glen", or "cuil" or "cuil cottage" or .... > > This might work for me because one of my volunteers has access to a high-definition map of part of the area, with house names already shown; but for the other part I will probably need to do the GPS app for phone/tablet and have them walk/cycle around. > > So - off to experiment with kmz files ... thanks !! > -- Alex. > > >> On 11/04/2017 00:12, Kay C Lan via use-livecode wrote: >> On Sun, Apr 9, 2017 at 10:58 AM, Alex Tweedly via use-livecode >> wrote: >>> I'm looking for any help or suggestions for existing apps that can do >>> (something like) what I want to do - could even be a clever way to use a >>> feature I've not found in Google maps, or pple maps, or ... >>> >> Hi Alex, I'm not exactly sure what you are trying to achieve but here >> is a scenario that might address some of your needs: >> >> You have a local Scout group and you want all the children in the >> group to know where all the other kids and group leaders live so you >> want to produce a map with place markers that can be easily shared. >> >> So I'd get all the kids to go home, get onto Google Maps and find >> their own home using Street View. Once they've found their home, they >> take a copy of the URL and have them email it to you. The entire URL >> will look like this: >> >> https://www.google.com.au/maps/@52.7810059,-1.7254772,3a,75y,38.54h,87.5t,358.22r/data=!3m6!1e1!3m4!1sNB14D3D9SvOQvL8Efe9h8w!2e0!7i13312!8i6656!6m1!1e1 >> >> The format is pretty straight forward to decipher, the two numbers >> directly after the @ is the latitude and longitude. It would be easy >> to write an LC utility to strip the address to just the Lat and Long. >> >> Take this Lat and Long and paste it into Google Earth. Note I started >> out in "Maps" because of Street View - it is much easier to find your >> own home in Maps vs Earth. Obviously pasting the Lat Long into Earth >> will take you to exactly the same spot. In Earth you can then place >> multiple 'Placemarkers' and give them appropriate names and >> descriptions - that are like pop up tooltips. I'd name the >> Placemarkers after the kid's name, and for the description enter their >> proper address. >> >> Once you've entered all the Placemarker details, you can scale your >> view to cover just the area that includes all your Placemarkers. You >> can then save this as a .kmz file and send it out to everyone. When >> anyone opens the file they'll see exactly what you saw when you saved >> it; but it doesn't preclude them from zooming in and out or panning >> around. >> >> Google Earth is available on all the popular desktop and mobile OSes >> and is free. >> >> Lastly, .kmz files are basically an xml file as defined by Google. >> Again the format is pretty simple to decipher - or you could look it >> up on the internet and have it precisely described to you. I would >> think it would be relatively simple to define a procedure (less simple >> to have the kids actually follow it) where the kids send you an email >> with the body is in a format like: >> >> URL: qerpoqueoruqweouqeoruqoru >> Your fullname: oiu lh mnbmb >> Your Full address: 765 hohjjkl jhgjgh ouyiuy UYT 432 FHG >> >> and then have LC read the email, extract the relevant data and then >> automatically add the Placemarker data into the .kmz file. One problem >> I see is that someone might join who lives outside the original zoomed >> level of your custom kmz map so with each update to the kmz file you >> would have to actually open it and look at it in Google Earth and >> determine that the zoom level is correct to ensure that everyone is >> still within the bounds of display; before saving the file and sending >> it out as an update to everyone. >> >> Also, Google Earth allows you to create your own 'Tracks' that can be >> saved and shared. So for instance, you could save a Scout hiking trip >> and share it and so parents would know where to drop kids off and pick >> them up, and theoretically the kids can't get too lost on the route in >> between;-) >> >> HTH >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jonathandlynch at gmail.com Mon Apr 10 20:43:42 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Mon, 10 Apr 2017 20:43:42 -0400 Subject: manipulating attributes of text in fields from scripts In-Reply-To: References: Message-ID: Try Set the textstyle of char 1 to -1 of field "my field" to empty You can also do this: Put field "my field" into field "my field" That will put the text - without formatting - into the field content Sent from my iPhone > On Apr 10, 2017, at 8:29 PM, Dr. Hawkins via use-livecode wrote: > > I have a number of label fields which inadvertently have bold text in them. > I can identify these in a loop from their text, and put the long id of > the field into tgTg. > > Shouldn't one of > > *set* the textStyle of tgTg to "plain" > > or > > *set* the textStyle of char 1 to -1 of the text of tgTg to "plain" > > > > do this? > > I'm trying to completely obliterate any bold settings, and there may be > bits of boldoff-boldon between characters(?) of the pdf source I paste. > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jonathandlynch at gmail.com Mon Apr 10 20:48:55 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Mon, 10 Apr 2017 20:48:55 -0400 Subject: manipulating attributes of text in fields from scripts In-Reply-To: References: Message-ID: <69531610-CF60-4D9F-94F1-836A32D141E0@gmail.com> Also - to affect the field by id you need to say this: Set the textstyle of char 1 to -1 of field id tgtg to empty There is a difference between bolded chars and a bolded field. So, you would need to know which is the source of bolding, or just fix them both. Sent from my iPhone > On Apr 10, 2017, at 8:43 PM, jonathandlynch at gmail.com wrote: > > Try > > Set the textstyle of char 1 to -1 of field "my field" to empty > > > You can also do this: > Put field "my field" into field "my field" > > That will put the text - without formatting - into the field content > > Sent from my iPhone > >> On Apr 10, 2017, at 8:29 PM, Dr. Hawkins via use-livecode wrote: >> >> I have a number of label fields which inadvertently have bold text in them. >> I can identify these in a loop from their text, and put the long id of >> the field into tgTg. >> >> Shouldn't one of >> >> *set* the textStyle of tgTg to "plain" >> >> or >> >> *set* the textStyle of char 1 to -1 of the text of tgTg to "plain" >> >> >> >> do this? >> >> I'm trying to completely obliterate any bold settings, and there may be >> bits of boldoff-boldon between characters(?) of the pdf source I paste. >> -- >> Dr. Richard E. Hawkins, Esq. >> (702) 508-8462 >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Mon Apr 10 20:56:03 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 10 Apr 2017 17:56:03 -0700 Subject: manipulating attributes of text in fields from scripts In-Reply-To: <69531610-CF60-4D9F-94F1-836A32D141E0@gmail.com> References: <69531610-CF60-4D9F-94F1-836A32D141E0@gmail.com> Message-ID: <210a6312-f473-2d29-a84b-26fe036ca659@fourthworld.com> To clear all styles, links, etc.: put field "Whatever" into field "Whatever" To clear only bold and leave everything else: set the textStyle["bold"] of char 1 to -1 of fld "Whatever" to false -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From alanstenhouse at hotmail.com Mon Apr 10 21:17:00 2017 From: alanstenhouse at hotmail.com (Alan) Date: Tue, 11 Apr 2017 01:17:00 +0000 Subject: OT (?): Bookmarking GPS coords Message-ID: Hi Alex It's pretty straightforward to record current location on mobile - using mobileStartTrackingSensor, mobileSensorReading (when you want to grab current location) and so on. Just make sure you start tracking when the user starts your app to give the GPS system time to get going and you might also want to check the horizontal accuracy of your reading(s) to ensure that it's within a reasonable threshold and not eg. 1000m. Reasonable = 3-10m probably. I've done a few location apps so what you're wanting to do is quite possible. Good luck and have fun! :-) cheers Alan From jacque at hyperactivesw.com Tue Apr 11 02:21:11 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 11 Apr 2017 01:21:11 -0500 Subject: OS X Firewall triggering on launch Message-ID: LC 9.0dp6 triggers the OS X firewall every time I launch it. I know I can set the firewall to accept LC so it won't warn me, but I'm wondering what LC is doing that makes that happen. I suspect it has something to do with remote debugging. Does anyone know? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at livecode.org Tue Apr 11 02:35:17 2017 From: paul at livecode.org (Paul Hibbert) Date: Mon, 10 Apr 2017 23:35:17 -0700 Subject: OS X Firewall triggering on launch In-Reply-To: References: Message-ID: <2A1DFE3C-AF42-4778-9DAF-4641908103D9@livecode.org> Just checked my Firewall settings and there?s no entry for LC, but I?m not seeing any trigger, I?ve used LC 9.0 (dp6) quite a few times since install and no problem so-far! Mac OS Sierra 10.12.4 Paul > On 10 Apr 2017, at 23:21, J. Landman Gay via use-livecode wrote: > > LC 9.0dp6 triggers the OS X firewall every time I launch it. I know I can set the firewall to accept LC so it won't warn me, but I'm wondering what LC is doing that makes that happen. I suspect it has something to do with remote debugging. Does anyone know? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at appisle.net Tue Apr 11 02:35:25 2017 From: monte at appisle.net (Monte Goulding) Date: Tue, 11 Apr 2017 16:35:25 +1000 Subject: OS X Firewall triggering on launch In-Reply-To: References: Message-ID: <9C111DC5-2240-4D20-BC57-52FB2B9B9E44@appisle.net> > On 11 Apr 2017, at 4:21 pm, J. Landman Gay via use-livecode wrote: > > LC 9.0dp6 triggers the OS X firewall every time I launch it. I know I can set the firewall to accept LC so it won't warn me, but I'm wondering what LC is doing that makes that happen. I suspect it has something to do with remote debugging. Does anyone know? Yes the IDE is accepting connections for the remote debugger to work. Standalones then open sockets to the IDE. You should only get this dialog if you don?t allow signed apps to accept connections by default and/or don?t allow it the first time you run LC. Once you allow it you shouldn?t see this again unless LC gets modified or something. Cheers Monte From terry.judd at unimelb.edu.au Tue Apr 11 02:53:21 2017 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Tue, 11 Apr 2017 06:53:21 +0000 Subject: mergMicrophone - audio format suitable for Windows playback? Message-ID: I?m using mergMicrophone (on OSX) with default settings to record audio (from revSpeech) for inclusion in Powerpoint presentations, but when I open the PPT files on a Windows computer (so that I can export them to video, retaining the sound) it complains about the sound files being in an inappropriate format and that it needs to convert them (through some internal process) before it can use them. This would be ok but I?ve potentially got hundreds of these PPT files and need to avoid the PPT conversion step. Any ideas on what mergMicrophone I should be using to record the audio files for them to be more Windows friendly? Terry... From runrev at learning-insights.eu Tue Apr 11 06:49:45 2017 From: runrev at learning-insights.eu (Robert Brenstein) Date: Tue, 11 Apr 2017 12:49:45 +0200 Subject: any secrets printing only a section from a card? In-Reply-To: <00aa01d2b1e2$12199f40$364cddc0$@kestner.de> References: <00aa01d2b1e2$12199f40$364cddc0$@kestner.de> Message-ID: <867CD215-D587-45D7-B21E-52871AE9EE5C@learning-insights.eu> This might be an older issue. I have been struggling with that myself, in context of producing PDFs, in version 7. Only printing the full card works reliably. Any other option produces a different output but not the desired one, at least not reliably. On 10 Apr 2017, at 12:06, Tiemo Hollmann TB via use-livecode wrote: > Hello, > > LC 8.1.4, Win 10. (Same with LC 6-9) When printing a whole card with > just > "print card" everything of the card is being printed fine, only > stretched to > the papersize. > > But when trying to print only a part of the card by "print card from > myLeftTop to myRightBottom into page Rect" I never get the wanted > rectangle > being printed into the pageRect. It is always clipped somewhere and > only a > small part of the wanted rectangle is being printed. I have also tried > to > set the printpapersize and printmargins and fiddled around with > different > rectangle sizes, but didn't got the wanted section. > > Are there any secret conversion factors, when printing "from to"? > > Thanks for any hint > > Tiemo > From toolbook at kestner.de Tue Apr 11 07:14:25 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 11 Apr 2017 13:14:25 +0200 Subject: AW: any secrets printing only a section from a card? In-Reply-To: <867CD215-D587-45D7-B21E-52871AE9EE5C@learning-insights.eu> References: <00aa01d2b1e2$12199f40$364cddc0$@kestner.de> <867CD215-D587-45D7-B21E-52871AE9EE5C@learning-insights.eu> Message-ID: <004c01d2b2b4$c7a20ff0$56e62fd0$@kestner.de> Yes, that's my experience too. I also tested the printScale without success. I now, created a separate print stack, copied all objects to that card and print the whole card. Thanks Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Robert Brenstein via use-livecode Gesendet: Dienstag, 11. April 2017 12:50 An: How to use LiveCode Cc: Robert Brenstein Betreff: Re: any secrets printing only a section from a card? This might be an older issue. I have been struggling with that myself, in context of producing PDFs, in version 7. Only printing the full card works reliably. Any other option produces a different output but not the desired one, at least not reliably. On 10 Apr 2017, at 12:06, Tiemo Hollmann TB via use-livecode wrote: > Hello, > > LC 8.1.4, Win 10. (Same with LC 6-9) When printing a whole card with > just "print card" everything of the card is being printed fine, only > stretched to the papersize. > > But when trying to print only a part of the card by "print card from > myLeftTop to myRightBottom into page Rect" I never get the wanted > rectangle being printed into the pageRect. It is always clipped > somewhere and only a small part of the wanted rectangle is being > printed. I have also tried to set the printpapersize and printmargins > and fiddled around with different rectangle sizes, but didn't got the > wanted section. > > Are there any secret conversion factors, when printing "from to"? > > Thanks for any hint > > Tiemo > _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From roger.e.eller at sealedair.com Tue Apr 11 07:39:59 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 11 Apr 2017 07:39:59 -0400 Subject: mergMicrophone - audio format suitable for Windows playback? In-Reply-To: References: Message-ID: Any add-on in the merg suite is likely to only use Apple centric formats. I would let Windows PPT convert the audio, then if playback is suitable on both platforms, distribute the converted file. On Apr 11, 2017 2:53 AM, "Terry Judd via use-livecode" < use-livecode at lists.runrev.com> wrote: > I?m using mergMicrophone (on OSX) with default settings to record audio > (from revSpeech) for inclusion in Powerpoint presentations, but when I open > the PPT files on a Windows computer (so that I can export them to video, > retaining the sound) it complains about the sound files being in an > inappropriate format and that it needs to convert them (through some > internal process) before it can use them. This would be ok but I?ve > potentially got hundreds of these PPT files and need to avoid the PPT > conversion step. > > Any ideas on what mergMicrophone I should be using to record the audio > files for them to be more Windows friendly? > > 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 panos.merakos at livecode.com Tue Apr 11 08:28:36 2017 From: panos.merakos at livecode.com (panagiotis merakos) Date: Tue, 11 Apr 2017 13:28:36 +0100 Subject: List of properties per widget and examples Message-ID: Hi all, We have noticed that several people are not aware of some useful resources that exist in the dictionary, about widgets and libraries: 1. Open the Dictionary in the IDE 2. In the API tab, click on the "Choose API" pulldown menu 3. Select e.g. "Header Bar" widget 4. In the results, see all the "Header Bar"-related dictionary entries, as well as some examples. 5. Note that the pulldown menu in (2) includes not only widgets but also libraries (JSON, mime, oath etc) Hope this helps :) Best, Panos -- From terry.judd at unimelb.edu.au Tue Apr 11 08:36:01 2017 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Tue, 11 Apr 2017 12:36:01 +0000 Subject: mergMicrophone - audio format suitable for Windows playback? In-Reply-To: References: Message-ID: Yeah, this is a bit of a bodged together process. I have a ?template? Powerpoint file that I modify by swapping screen text, images and audio (.pptx files are actually .zip archives so I can do this using revZip). The audio files, which are themselves derived from templated scripts using revSpeech in conjunction with Sound Siphon are created on the Mac. The now personalised PPT files (potentially 100s of these) then need to be converted to videos for upload to Vimeo and this has to be done on Windows as these are no PPT to video utilities on the Mac that preserve the audio. So, it?s all (preferably) done without ever officially opening the files in PPT on the Windows side (I definitely need a solution that doesn?t require me to manually handle individual files). I think I probably have to look at batch processing the audio files into a Windows friendly format on the Mac side before switching them into the PPT files. Terry... On 11/04/2017 9:39 pm, "use-livecode on behalf of Roger Eller via use-livecode" wrote: Any add-on in the merg suite is likely to only use Apple centric formats. I would let Windows PPT convert the audio, then if playback is suitable on both platforms, distribute the converted file. On Apr 11, 2017 2:53 AM, "Terry Judd via use-livecode" < use-livecode at lists.runrev.com> wrote: > I?m using mergMicrophone (on OSX) with default settings to record audio > (from revSpeech) for inclusion in Powerpoint presentations, but when I open > the PPT files on a Windows computer (so that I can export them to video, > retaining the sound) it complains about the sound files being in an > inappropriate format and that it needs to convert them (through some > internal process) before it can use them. This would be ok but I?ve > potentially got hundreds of these PPT files and need to avoid the PPT > conversion step. > > Any ideas on what mergMicrophone I should be using to record the audio > files for them to be more Windows friendly? > > 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 revolution at derbrill.de Tue Apr 11 09:26:52 2017 From: revolution at derbrill.de (Brill, Malte) Date: Tue, 11 Apr 2017 13:26:52 +0000 Subject: anybody using curl on LC - Server on windows? In-Reply-To: References: Message-ID: Hi all, I have a little trouble getting cUrl to work with LC Server under Win 10 / apache. While cUrl works on the commandline, when called from LC Server via Shell, I always get error(27) Out of memory as a result... Anybody wiser than me seen this and might share some insights? Cheers, Malte From ambassador at fourthworld.com Tue Apr 11 11:16:39 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 11 Apr 2017 08:16:39 -0700 Subject: Widget message normalization Message-ID: Should widgets allow the same sorts of common messages that are largely universal to other controls? Perhaps as a default, which could be overridden by the widget developer? This would assume there is some sort of superclass for widgets, so that adding this could be done once and all widgets would benefit. We've seen some posts here about mouse-related messages in which the developers using a widget were surprised to find those messages aren't available. Today this comes to mind while using the tree control widget: most tree controls I've used (all that I can recall, really) allow arrow keys to navigate the list - up and down select upwards and downwards, and the left and right keys open and collapse the selected line, respectively. I don't mind adding custom code for this, but I found the tree control widget doesn't seem to trap arrowKey messages at all. Given other compromised uses the tree control vs rolling my own with a field (sort order either doesn't allow mixed numeric and alphabetical types or throws errors, minimally modifiable appearance, etc.) I'm inclined to write my own. But then I got to thinking: how often might one consider rolling a custom solution because a supplied widget isn't quite as flexible as a given use requires? And with that, how many of those use-cases might be resolvable if widgets received the same messages other controls get? -- 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 toolbook at kestner.de Tue Apr 11 11:42:31 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 11 Apr 2017 17:42:31 +0200 Subject: vertical text? Message-ID: <006401d2b2da$3c071f00$b4155d00$@kestner.de> Hello, Is there any trick or tweak to create real vertical text (rotated text field by -90deg)? Up to now, I workaround with an text img I rotated in photoshop. Thanks Tiemo From prothero at earthlearningsolutions.org Tue Apr 11 11:54:21 2017 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Tue, 11 Apr 2017 08:54:21 -0700 Subject: vertical text? In-Reply-To: <006401d2b2da$3c071f00$b4155d00$@kestner.de> References: <006401d2b2da$3c071f00$b4155d00$@kestner.de> Message-ID: Tiemo, I do this by creating a text field, putting the text into it, sizing it to just fit the text, capturing it to an image, rotating and placing the image of the text field, then deleting the source text field. Bill William Prothero http://es.earthednet.org > On Apr 11, 2017, at 8:42 AM, Tiemo Hollmann TB via use-livecode wrote: > > Hello, > > Is there any trick or tweak to create real vertical text (rotated text field > by -90deg)? > > Up to now, I workaround with an text img I rotated in photoshop. > > Thanks > > Tiemo > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dvglasgow at gmail.com Tue Apr 11 12:24:17 2017 From: dvglasgow at gmail.com (David V Glasgow) Date: Tue, 11 Apr 2017 17:24:17 +0100 Subject: mergMicrophone - audio format suitable for Windows playback? In-Reply-To: References: Message-ID: <2B60A8BA-A974-4CDB-A814-673F78CEBFC9@gmail.com> I often create video from Keynote for credit/idents etc, which works very well. Not sure how it would handle sound though. If it did retain sound you could just import the PPT template into Keynote (might need a bit of tweaking) then you could skip the Windows bit completely. Cheers, David Glasgow > On 11 Apr 2017, at 1:36 pm, Terry Judd via use-livecode wrote: > > Yeah, this is a bit of a bodged together process. I have a ?template? Powerpoint file that I modify by swapping screen text, images and audio (.pptx files are actually .zip archives so I can do this using revZip). The audio files, which are themselves derived from templated scripts using revSpeech in conjunction with Sound Siphon are created on the Mac. The now personalised PPT files (potentially 100s of these) then need to be converted to videos for upload to Vimeo and this has to be done on Windows as these are no PPT to video utilities on the Mac that preserve the audio. So, it?s all (preferably) done without ever officially opening the files in PPT on the Windows side (I definitely need a solution that doesn?t require me to manually handle individual files). I think I probably have to look at batch processing the audio files into a Windows friendly format on the Mac side before switching them into the PPT files. > > Terry... > > On 11/04/2017 9:39 pm, "use-livecode on behalf of Roger Eller via use-livecode" wrote: > > Any add-on in the merg suite is likely to only use Apple centric formats. > I would let Windows PPT convert the audio, then if playback is suitable on > both platforms, distribute the converted file. > > On Apr 11, 2017 2:53 AM, "Terry Judd via use-livecode" < > use-livecode at lists.runrev.com> wrote: > >> I?m using mergMicrophone (on OSX) with default settings to record audio >> (from revSpeech) for inclusion in Powerpoint presentations, but when I open >> the PPT files on a Windows computer (so that I can export them to video, >> retaining the sound) it complains about the sound files being in an >> inappropriate format and that it needs to convert them (through some >> internal process) before it can use them. This would be ok but I?ve >> potentially got hundreds of these PPT files and need to avoid the PPT >> conversion step. >> >> Any ideas on what mergMicrophone I should be using to record the audio >> files for them to be more Windows friendly? >> >> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Tue Apr 11 12:23:10 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 11 Apr 2017 18:23:10 +0200 Subject: AW: vertical text? In-Reply-To: References: <006401d2b2da$3c071f00$b4155d00$@kestner.de> Message-ID: <006b01d2b2df$e96f1cb0$bc4d5610$@kestner.de> Ah, nice trick ;) Thanks, Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von prothero--- via use-livecode Gesendet: Dienstag, 11. April 2017 17:54 An: How to use LiveCode Cc: prothero at earthlearningsolutions.org Betreff: Re: vertical text? Tiemo, I do this by creating a text field, putting the text into it, sizing it to just fit the text, capturing it to an image, rotating and placing the image of the text field, then deleting the source text field. Bill William Prothero http://es.earthednet.org > On Apr 11, 2017, at 8:42 AM, Tiemo Hollmann TB via use-livecode wrote: > > Hello, > > Is there any trick or tweak to create real vertical text (rotated text > field by -90deg)? > > Up to now, I workaround with an text img I rotated in photoshop. > > Thanks > > Tiemo > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Tue Apr 11 14:01:17 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 11 Apr 2017 13:01:17 -0500 Subject: OS X Firewall triggering on launch In-Reply-To: <9C111DC5-2240-4D20-BC57-52FB2B9B9E44@appisle.net> References: <9C111DC5-2240-4D20-BC57-52FB2B9B9E44@appisle.net> Message-ID: On 4/11/17 1:35 AM, Monte Goulding via use-livecode wrote: > Yes the IDE is accepting connections for the remote debugger to work. > Standalones then open sockets to the IDE. You should only get this > dialog if you don?t allow signed apps to accept connections by > default and/or don?t allow it the first time you run LC. Once you > allow it you shouldn?t see this again unless LC gets modified or > something. I always answer "yes" to the dialog and I still get it every launch. The firewall is set to accept connections to signed software. I see LC 9.0dp5 in the acceptance list but not dp6. If it matters, the Mac is running Mavericks. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Apr 11 14:07:55 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 11 Apr 2017 13:07:55 -0500 Subject: OS X Firewall triggering on launch In-Reply-To: References: <9C111DC5-2240-4D20-BC57-52FB2B9B9E44@appisle.net> Message-ID: <5ada9bb9-ceb9-caba-dd27-022ef6de9f27@hyperactivesw.com> On 4/11/17 1:01 PM, J. Landman Gay via use-livecode wrote: > On 4/11/17 1:35 AM, Monte Goulding via use-livecode wrote: > >> Yes the IDE is accepting connections for the remote debugger to work. >> Standalones then open sockets to the IDE. You should only get this >> dialog if you don?t allow signed apps to accept connections by >> default and/or don?t allow it the first time you run LC. Once you >> allow it you shouldn?t see this again unless LC gets modified or >> something. > > I always answer "yes" to the dialog and I still get it every launch. The > firewall is set to accept connections to signed software. I see LC > 9.0dp5 in the acceptance list but not dp6. If it matters, the Mac is > running Mavericks. > I just added dp6 to the firewall manually. My guess is that the Mac reads the name of the app and determines it's a "new" app but when the firewall actually checks for it, it sees dp 6 as an update rather than a different app and doesn't update its acceptance list. That's purely a guess though. It still doesn't explain why the automatic acceptance of signed apps doesn't allow the connection by default. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Apr 11 14:48:49 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 11 Apr 2017 13:48:49 -0500 Subject: OS X Firewall triggering on launch In-Reply-To: <5ada9bb9-ceb9-caba-dd27-022ef6de9f27@hyperactivesw.com> References: <9C111DC5-2240-4D20-BC57-52FB2B9B9E44@appisle.net> <5ada9bb9-ceb9-caba-dd27-022ef6de9f27@hyperactivesw.com> Message-ID: <7afde125-5f7f-5aa7-d7a4-281ff011d974@hyperactivesw.com> On 4/11/17 1:07 PM, J. Landman Gay via use-livecode wrote: > I just added dp6 to the firewall manually. And it is still putting up the alert on launch. Seems I'm stuck with it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From monte at appisle.net Tue Apr 11 18:17:12 2017 From: monte at appisle.net (Monte Goulding) Date: Wed, 12 Apr 2017 08:17:12 +1000 Subject: OS X Firewall triggering on launch In-Reply-To: <7afde125-5f7f-5aa7-d7a4-281ff011d974@hyperactivesw.com> References: <9C111DC5-2240-4D20-BC57-52FB2B9B9E44@appisle.net> <5ada9bb9-ceb9-caba-dd27-022ef6de9f27@hyperactivesw.com> <7afde125-5f7f-5aa7-d7a4-281ff011d974@hyperactivesw.com> Message-ID: <98F55C1A-06EA-4AAA-B22D-133C3F5F2991@appisle.net> > On 12 Apr 2017, at 4:48 am, J. Landman Gay via use-livecode wrote: > > And it is still putting up the alert on launch. Seems I'm stuck with it. Hmm? that?s odd. I?ll ask the team if anyone has any ideas why this is occurring. Just to make sure you aren?t saving anything within the LC app bundle are you? Cheers Monte From terry.judd at unimelb.edu.au Tue Apr 11 19:40:44 2017 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Tue, 11 Apr 2017 23:40:44 +0000 Subject: mergMicrophone - audio format suitable for Windows playback? In-Reply-To: <2B60A8BA-A974-4CDB-A814-673F78CEBFC9@gmail.com> References: <2B60A8BA-A974-4CDB-A814-673F78CEBFC9@gmail.com> Message-ID: HI David ? yeah, I?d love to use Keynote for this instead of Powerpoint but all the data in the .key archive is binary so not easily manipulated in the same way as it is in .pptx files. Powerpoint on the Mac actually does an excellent job of exporting to video ? it just doesn?t include the audio. If it did I?d be using a combination of Applescript and Powerpoint on the Mac to handle all the video exports. Terry... On 12/04/2017 2:24 am, "use-livecode on behalf of David V Glasgow via use-livecode" wrote: I often create video from Keynote for credit/idents etc, which works very well. Not sure how it would handle sound though. If it did retain sound you could just import the PPT template into Keynote (might need a bit of tweaking) then you could skip the Windows bit completely. Cheers, David Glasgow > On 11 Apr 2017, at 1:36 pm, Terry Judd via use-livecode wrote: > > Yeah, this is a bit of a bodged together process. I have a ?template? Powerpoint file that I modify by swapping screen text, images and audio (.pptx files are actually .zip archives so I can do this using revZip). The audio files, which are themselves derived from templated scripts using revSpeech in conjunction with Sound Siphon are created on the Mac. The now personalised PPT files (potentially 100s of these) then need to be converted to videos for upload to Vimeo and this has to be done on Windows as these are no PPT to video utilities on the Mac that preserve the audio. So, it?s all (preferably) done without ever officially opening the files in PPT on the Windows side (I definitely need a solution that doesn?t require me to manually handle individual files). I think I probably have to look at batch processing the audio files into a Windows friendly format on the Mac side before switching them into the PPT files. > > Terry... > > On 11/04/2017 9:39 pm, "use-livecode on behalf of Roger Eller via use-livecode" wrote: > > Any add-on in the merg suite is likely to only use Apple centric formats. > I would let Windows PPT convert the audio, then if playback is suitable on > both platforms, distribute the converted file. > > On Apr 11, 2017 2:53 AM, "Terry Judd via use-livecode" < > use-livecode at lists.runrev.com> wrote: > >> I?m using mergMicrophone (on OSX) with default settings to record audio >> (from revSpeech) for inclusion in Powerpoint presentations, but when I open >> the PPT files on a Windows computer (so that I can export them to video, >> retaining the sound) it complains about the sound files being in an >> inappropriate format and that it needs to convert them (through some >> internal process) before it can use them. This would be ok but I?ve >> potentially got hundreds of these PPT files and need to avoid the PPT >> conversion step. >> >> Any ideas on what mergMicrophone I should be using to record the audio >> files for them to be more Windows friendly? >> >> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Tue Apr 11 22:17:42 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 11 Apr 2017 21:17:42 -0500 Subject: OS X Firewall triggering on launch In-Reply-To: <98F55C1A-06EA-4AAA-B22D-133C3F5F2991@appisle.net> References: <9C111DC5-2240-4D20-BC57-52FB2B9B9E44@appisle.net> <5ada9bb9-ceb9-caba-dd27-022ef6de9f27@hyperactivesw.com> <7afde125-5f7f-5aa7-d7a4-281ff011d974@hyperactivesw.com> <98F55C1A-06EA-4AAA-B22D-133C3F5F2991@appisle.net> Message-ID: <93233e0c-792e-d6e0-f0c4-1fd6fb22b7b2@hyperactivesw.com> On 4/11/17 5:17 PM, Monte Goulding via use-livecode wrote: > >> On 12 Apr 2017, at 4:48 am, J. Landman Gay via use-livecode >> wrote: >> >> And it is still putting up the alert on launch. Seems I'm stuck >> with it. > > Hmm? that?s odd. I?ll ask the team if anyone has any ideas why this > is occurring. Just to make sure you aren?t saving anything within the > LC app bundle are you? Nope. I just checked the dates on most of the files to be sure and they all say March 8, so nothing has changed there. I wonder if it's Mavericks. The firewall doesn't seem to recognize LCdp6. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Apr 11 22:49:51 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 11 Apr 2017 21:49:51 -0500 Subject: OS X Firewall triggering on launch In-Reply-To: <93233e0c-792e-d6e0-f0c4-1fd6fb22b7b2@hyperactivesw.com> References: <9C111DC5-2240-4D20-BC57-52FB2B9B9E44@appisle.net> <5ada9bb9-ceb9-caba-dd27-022ef6de9f27@hyperactivesw.com> <7afde125-5f7f-5aa7-d7a4-281ff011d974@hyperactivesw.com> <98F55C1A-06EA-4AAA-B22D-133C3F5F2991@appisle.net> <93233e0c-792e-d6e0-f0c4-1fd6fb22b7b2@hyperactivesw.com> Message-ID: <466145e4-3fbf-7007-33e5-7b0d24f4681e@hyperactivesw.com> On 4/11/17 9:17 PM, J. Landman Gay via use-livecode wrote: > On 4/11/17 5:17 PM, Monte Goulding via use-livecode wrote: >> >>> On 12 Apr 2017, at 4:48 am, J. Landman Gay via use-livecode >>> wrote: >>> >>> And it is still putting up the alert on launch. Seems I'm stuck >>> with it. >> >> Hmm? that?s odd. I?ll ask the team if anyone has any ideas why this >> is occurring. Just to make sure you aren?t saving anything within the >> LC app bundle are you? > > Nope. I just checked the dates on most of the files to be sure and they > all say March 8, so nothing has changed there. I wonder if it's > Mavericks. The firewall doesn't seem to recognize LCdp6. > I wrote "Mavericks" but that was a think-o. I'm running El Capitan, in case it matters. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From james at thehales.id.au Tue Apr 11 23:14:49 2017 From: james at thehales.id.au (James Hale) Date: Wed, 12 Apr 2017 13:14:49 +1000 Subject: "System" font on Mac - diff between LC 8 and LC 9?? Message-ID: Could other with a Mac please give this a go to see if my observation is local to my machine alone? Create a new stack in LC8 and place a field. Open the message box and enter... set the htmltext of fld 1 to "this is bold and this is italic" You should see this is bold and this is italic (assuming the styles survive the emailing) Now open the PI for the field and click on the FONT tab. I think by default the font is called "Text" and it is one of the Lc named options. Now change the font to "system". Do the styles remain visible in the field? Repeat the above with LC 9 For me... With LC8 the styles disappear. With LC9 they don't. James From colinholgate at gmail.com Tue Apr 11 23:21:51 2017 From: colinholgate at gmail.com (Colin Holgate) Date: Tue, 11 Apr 2017 20:21:51 -0700 Subject: "System" font on Mac - diff between LC 8 and LC 9?? In-Reply-To: References: Message-ID: <594E03B4-394A-4F75-9262-08A616A208BF@gmail.com> Yes, same here. I?m on 10.12.5, but I imagine it would behave the same on older systems. > On Apr 11, 2017, at 8:14 PM, James Hale via use-livecode wrote: > > Could other with a Mac please give this a go to see if my observation is local to my machine alone? > > Create a new stack in LC8 and place a field. > Open the message box and enter... > set the htmltext of fld 1 to "this is bold and this is italic" > > You should see > this is bold and this is italic > (assuming the styles survive the emailing) > Now open the PI for the field and click on the FONT tab. > I think by default the font is called "Text" and it is one of the Lc named options. > Now change the font to "system". > > Do the styles remain visible in the field? > > Repeat the above with LC 9 > > For me... > With LC8 the styles disappear. > With LC9 they don't. > > > > James > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dan at clearvisiontech.com Wed Apr 12 00:54:57 2017 From: dan at clearvisiontech.com (Dan Friedman) Date: Wed, 12 Apr 2017 04:54:57 +0000 Subject: LC and OneSignal Message-ID: <1393F30E-F4AA-49EC-963C-857C76409344@clearvisiontech.com> Hello! Has anyone implemented push messaging with OneSignal (https://onesignal.com)? It?s running great for me on iOS, but can?t get it to work correctly with a LiveCode Android app. Anyone have any expierence with LC and OneSignal? -Dan From terry.judd at unimelb.edu.au Wed Apr 12 01:26:48 2017 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Wed, 12 Apr 2017 05:26:48 +0000 Subject: LC and OneSignal In-Reply-To: <1393F30E-F4AA-49EC-963C-857C76409344@clearvisiontech.com> References: <1393F30E-F4AA-49EC-963C-857C76409344@clearvisiontech.com> Message-ID: <5B307FF7-CA75-406B-B22D-D8F607F4DC20@unimelb.edu.au> Hi Dan - when you say you have it running on iOS, do you mean within an LC iOS app? If so, some info on how you got it to work would be fantastic (I couldn?t figure out how to implement it). No experience with using it with Android, sorry. Terry... On 12/04/2017 2:54 pm, "use-livecode on behalf of Dan Friedman via use-livecode" wrote: Hello! Has anyone implemented push messaging with OneSignal (https://onesignal.com)? It?s running great for me on iOS, but can?t get it to work correctly with a LiveCode Android app. Anyone have any expierence with LC and OneSignal? -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 james at thehales.id.au Wed Apr 12 01:37:12 2017 From: james at thehales.id.au (James Hale) Date: Wed, 12 Apr 2017 15:37:12 +1000 Subject: \"System\" font on Mac - diff between LC 8 and LC 9? Message-ID: <715BFC20-A110-486E-9CA4-38E0302C4922@thehales.id.au> Hmm. Seems this has been sort of noted but no mention is made of the fix. http://quality.livecode.com/show_bug.cgi?id=17344 From richmondmathewson at gmail.com Wed Apr 12 03:11:55 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 12 Apr 2017 10:11:55 +0300 Subject: "System" font on Mac - diff between LC 8 and LC 9?? In-Reply-To: References: Message-ID: <6d7425b9-ead6-35c7-1834-fb9467226840@gmail.com> LC 8.1.3 (Mac OS 10.7.5): I get the bold but NOT the italic. LC 9.0.0 DP 4 (Mac OS 10.7.5: exactly the same. Best, Richmond. On 4/12/17 6:14 am, James Hale via use-livecode wrote: > set the htmltext of fld 1 to "this is bold and this is italic" From smudge.andy at googlemail.com Wed Apr 12 07:14:13 2017 From: smudge.andy at googlemail.com (AndyP) Date: Wed, 12 Apr 2017 04:14:13 -0700 (PDT) Subject: vertical text? In-Reply-To: <006401d2b2da$3c071f00$b4155d00$@kestner.de> References: <006401d2b2da$3c071f00$b4155d00$@kestner.de> Message-ID: <1491995653308-4713904.post@n4.nabble.com> Try This: Add a field named "Input" Add this script to the field on returnInField send "mouseUp" to button "Format" end returnInField Add a button named "Format" Add this script to the button local tWidth local tHeight local tChars local tCount local tTemp on mouseUp put the formattedWidth of char 1 of fld "Input" into tWidth put the formattedHeight of char 1 of fld "Input" into tHeight put the number of chars of fld "Input" into tChars set the Width of fld "Input" to tWidth*2 put fld "Input" into tTemp put empty into fld "Input" repeat with tCount = 1 to tChars put char tCount of tTemp into char 1 of line tCount of fld "Input" end repeat filter fld "Input" without empty set the height of fld "Input" to the formattedHeight of fld "Input" set the leftMargin of fld "Input" to 2 set the rightMargin of fld "Input" to 2 set the topMargin of fld "Input" to 4 set the bottomMargin of fld "Input" to 4 set the textAlign of fld "Input" to center set the textHeight of fld "Input" to the textSize end mouseUp Now enter text into the field, when you hit return the field is resized to fit the now vertical text. ----- Andy Piddock My software never has bugs. It just develops random features. TinyIDE a Free alternative minimalist IDE Plugin for LiveCode TinyIDE Script editor Themer for LC http://2108.co.uk PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/vertical-text-tp4713887p4713904.html Sent from the Revolution - User mailing list archive at Nabble.com. From richmondmathewson at gmail.com Wed Apr 12 08:42:36 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 12 Apr 2017 15:42:36 +0300 Subject: mergEXT Message-ID: <0ed4554b-ed5f-8998-cfc1-1ff87e25eade@gmail.com> " an Indy or Business license, will I get mergEXT automatically? Yes!" As I have an Indy licence I would be grateful if I could find out where I can download mergEXT. Richmond. From MikeKerner at roadrunner.com Wed Apr 12 08:43:44 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 12 Apr 2017 08:43:44 -0400 Subject: mergEXT In-Reply-To: <0ed4554b-ed5f-8998-cfc1-1ff87e25eade@gmail.com> References: <0ed4554b-ed5f-8998-cfc1-1ff87e25eade@gmail.com> Message-ID: you don't download it. It's built in. On Wed, Apr 12, 2017 at 8:42 AM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > " an Indy or Business license, will I get mergEXT automatically? Yes!" > > As I have an Indy licence I would be grateful if I could find out > where I can download mergEXT. > > 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 > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From richmondmathewson at gmail.com Wed Apr 12 08:45:25 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 12 Apr 2017 15:45:25 +0300 Subject: mergEXT In-Reply-To: References: <0ed4554b-ed5f-8998-cfc1-1ff87e25eade@gmail.com> Message-ID: <02cd777c-143b-fa80-9a64-19ca7bc292c8@gmail.com> Thanks for the heads up! Richmond. On 4/12/17 3:43 pm, Mike Kerner via use-livecode wrote: > you don't download it. It's built in. > > On Wed, Apr 12, 2017 at 8:42 AM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> " an Indy or Business license, will I get mergEXT automatically? Yes!" >> >> As I have an Indy licence I would be grateful if I could find out >> where I can download mergEXT. >> >> 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 MikeKerner at roadrunner.com Wed Apr 12 08:45:54 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 12 Apr 2017 08:45:54 -0400 Subject: mergEXT In-Reply-To: References: <0ed4554b-ed5f-8998-cfc1-1ff87e25eade@gmail.com> Message-ID: on mac, its in Contents->Tools->Ext On Wed, Apr 12, 2017 at 8:43 AM, Mike Kerner wrote: > you don't download it. It's built in. > > On Wed, Apr 12, 2017 at 8:42 AM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> " an Indy or Business license, will I get mergEXT automatically? Yes!" >> >> As I have an Indy licence I would be grateful if I could find out >> where I can download mergEXT. >> >> 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 >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From richmondmathewson at gmail.com Wed Apr 12 08:57:13 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 12 Apr 2017 15:57:13 +0300 Subject: mergEXT In-Reply-To: References: <0ed4554b-ed5f-8998-cfc1-1ff87e25eade@gmail.com> Message-ID: <30bb148a-407f-6b26-1213-3b7f8e719e07@gmail.com> OK: now for the goofy questions . . . . 1. How do I find my robot's pUUID on a Mac? Richmond. From roger.e.eller at sealedair.com Wed Apr 12 08:58:56 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 12 Apr 2017 08:58:56 -0400 Subject: mergEXT In-Reply-To: <30bb148a-407f-6b26-1213-3b7f8e719e07@gmail.com> References: <0ed4554b-ed5f-8998-cfc1-1ff87e25eade@gmail.com> <30bb148a-407f-6b26-1213-3b7f8e719e07@gmail.com> Message-ID: Robot? On Wed, Apr 12, 2017 at 8:57 AM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > OK: now for the goofy questions . . . . > > 1. How do I find my robot's pUUID on a Mac? > > > Richmond. > > From richmondmathewson at gmail.com Wed Apr 12 09:01:58 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 12 Apr 2017 16:01:58 +0300 Subject: mergEXT In-Reply-To: References: <0ed4554b-ed5f-8998-cfc1-1ff87e25eade@gmail.com> <30bb148a-407f-6b26-1213-3b7f8e719e07@gmail.com> Message-ID: Yup: https://www.bee-bot.us/bluebot.html http://forums.livecode.com/viewtopic.php?f=5&t=29121 I really would like to control the Blue-Bot via a LiveCode front-end rather than the crappy interface that one has to pay $50 for that stinks. Richmond. On 4/12/17 3:58 pm, Roger Eller via use-livecode wrote: > Robot? > > > On Wed, Apr 12, 2017 at 8:57 AM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> OK: now for the goofy questions . . . . >> >> 1. How do I find my robot's pUUID on a Mac? >> >> >> 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 roger.e.eller at sealedair.com Wed Apr 12 09:08:22 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 12 Apr 2017 09:08:22 -0400 Subject: mergEXT In-Reply-To: References: <0ed4554b-ed5f-8998-cfc1-1ff87e25eade@gmail.com> <30bb148a-407f-6b26-1213-3b7f8e719e07@gmail.com> Message-ID: That looks really cool (for teaching)! "PLEASE NOTE: Blue-Bot? is compatible with any iOS device with version 3.0/4.0+ EDR Bluetooth (e.g. iPad3 and later)" So... I would think you would use mergBLE for this. http://mergext.com/home/mergble/ ~Roger On Wed, Apr 12, 2017 at 9:01 AM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > Yup: https://www.bee-bot.us/bluebot.html > > http://forums.livecode.com/viewtopic.php?f=5&t=29121 > > I really would like to control the Blue-Bot via a LiveCode front-end > rather than the crappy interface that > one has to pay $50 for that stinks. > > Richmond. > > > On 4/12/17 3:58 pm, Roger Eller via use-livecode wrote: > >> Robot? >> >> >> On Wed, Apr 12, 2017 at 8:57 AM, Richmond Mathewson via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> OK: now for the goofy questions . . . . >>> >>> 1. How do I find my robot's pUUID on a Mac? >>> >>> >>> 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 toolbook at kestner.de Wed Apr 12 09:28:56 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 12 Apr 2017 15:28:56 +0200 Subject: AW: vertical text? In-Reply-To: <1491995653308-4713904.post@n4.nabble.com> References: <006401d2b2da$3c071f00$b4155d00$@kestner.de> <1491995653308-4713904.post@n4.nabble.com> Message-ID: <006701d2b390$bcdc4360$3694ca20$@kestner.de> Nice conversion! But I was looking for a rotated text by -90 degrees. Thanks Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von AndyP via use-livecode Gesendet: Mittwoch, 12. April 2017 13:14 An: use-revolution at lists.runrev.com Cc: AndyP Betreff: Re: vertical text? Try This: Add a field named "Input" Add this script to the field on returnInField send "mouseUp" to button "Format" end returnInField Add a button named "Format" Add this script to the button local tWidth local tHeight local tChars local tCount local tTemp on mouseUp put the formattedWidth of char 1 of fld "Input" into tWidth put the formattedHeight of char 1 of fld "Input" into tHeight put the number of chars of fld "Input" into tChars set the Width of fld "Input" to tWidth*2 put fld "Input" into tTemp put empty into fld "Input" repeat with tCount = 1 to tChars put char tCount of tTemp into char 1 of line tCount of fld "Input" end repeat filter fld "Input" without empty set the height of fld "Input" to the formattedHeight of fld "Input" set the leftMargin of fld "Input" to 2 set the rightMargin of fld "Input" to 2 set the topMargin of fld "Input" to 4 set the bottomMargin of fld "Input" to 4 set the textAlign of fld "Input" to center set the textHeight of fld "Input" to the textSize end mouseUp Now enter text into the field, when you hit return the field is resized to fit the now vertical text. ----- Andy Piddock My software never has bugs. It just develops random features. TinyIDE a Free alternative minimalist IDE Plugin for LiveCode TinyIDE Script editor Themer for LC http://2108.co.uk PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/vertical-text-tp4713887p47139 04.html Sent from the Revolution - User mailing list archive at Nabble.com. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Wed Apr 12 09:40:41 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 12 Apr 2017 15:40:41 +0200 Subject: how to print only a part of a card? Message-ID: <006801d2b392$60f2d5d0$22d88170$@kestner.de> Hello, probably I don't see the obvious or my math is slightly rusty. I am trying to print only a section of a card, e.g. a rectangle, but I always only get a (left and bottom) clipped rectangle being printed. Only when printing the whole card I get the full rectangle. I am running out of paper from my multiple tests :) Here is what I tried: on mouseUp # create a stack, size: 348,527 # create a button with this script # create a rectangle, size: 297,421 -- set the printpapersize to 595,842 # optional test # A4 -- set the printmargins to 40,57,40,57 # optional test -- set the printscale to .5 # optional test open printing with dialog if the result is not "cancel" then put the left of grc "rectangle" into item 1 of tLeftTop put the top of grc "rectangle" into item 2 of tLeftTop put the right of grc "rectangle" into item 1 of tRightBottom put the bottom of grc "rectangle" into item 2 of tRightBottom print this card from tLeftTop to tRightBottom -- print this card from tLeftTop to tRightBottom into 149,210,635, # optional test -- print this card from tLeftTop to tRightBottom into 40,57,337,478 # optional test # margins+ rectangle -- print this card # this is for me the only chance to get the whole rectangle printed end if close printing end mouseUp Does anybody see the error in my logic? Tiemo From hh at hyperhh.de Wed Apr 12 10:02:51 2017 From: hh at hyperhh.de (hh) Date: Wed, 12 Apr 2017 16:02:51 +0200 Subject: AW: vertical text? Message-ID: <6D9225CB-C74C-401B-ABB4-D136C4B03121@hyperhh.de> Hi Tiemo, LC Script gives you only the possibility to have a rotated _image_ of "real" horizontal text. In LC Builder you have the possibility for rotating "real" horizontal text itself (use your font and size), not only a snapshot. Here is an easy example how to do that http://forums.livecode.com/viewtopic.php?p=148690#p148690 This is an lcb file (it has to be the only lcb-file in its folder. Then open it in the 'Extensions Builder' and hit "Test"). Create your own widget from it. Hermann From jonathandlynch at gmail.com Wed Apr 12 10:06:08 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Wed, 12 Apr 2017 10:06:08 -0400 Subject: AW: vertical text? In-Reply-To: <6D9225CB-C74C-401B-ABB4-D136C4B03121@hyperhh.de> References: <6D9225CB-C74C-401B-ABB4-D136C4B03121@hyperhh.de> Message-ID: <02FBA7C6-FE3A-4F90-9023-9B86691BA670@gmail.com> This is also easy to do in a browser widget, if you don't mind the "always on top" aspect of browser widgets. Sent from my iPhone > On Apr 12, 2017, at 10:02 AM, hh via use-livecode wrote: > > Hi Tiemo, > > LC Script gives you only the possibility to have a rotated _image_ > of "real" horizontal text. > > In LC Builder you have the possibility for rotating "real" horizontal > text itself (use your font and size), not only a snapshot. > > Here is an easy example how to do that > http://forums.livecode.com/viewtopic.php?p=148690#p148690 > > This is an lcb file (it has to be the only lcb-file in its folder. > Then open it in the 'Extensions Builder' and hit "Test"). > Create your own widget from it. > > Hermann > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Wed Apr 12 10:18:30 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 12 Apr 2017 17:18:30 +0300 Subject: mergEXT In-Reply-To: References: <0ed4554b-ed5f-8998-cfc1-1ff87e25eade@gmail.com> <30bb148a-407f-6b26-1213-3b7f8e719e07@gmail.com> Message-ID: <4b368f7c-4bb0-ab93-cbf2-95efd89001b7@gmail.com> I must be really stupid . . . but . . . How do I use mergBLE to get a simple list of BlueTooth devices in a listField? Richmond. On 4/12/17 4:08 pm, Roger Eller via use-livecode wrote: > That looks really cool (for teaching)! > > "PLEASE NOTE: Blue-Bot? is compatible with any iOS device with version > 3.0/4.0+ EDR Bluetooth (e.g. iPad3 and later)" > > So... I would think you would use mergBLE for this. > http://mergext.com/home/mergble/ > > ~Roger > > > On Wed, Apr 12, 2017 at 9:01 AM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Yup: https://www.bee-bot.us/bluebot.html >> >> http://forums.livecode.com/viewtopic.php?f=5&t=29121 >> >> I really would like to control the Blue-Bot via a LiveCode front-end >> rather than the crappy interface that >> one has to pay $50 for that stinks. >> >> Richmond. >> >> >> On 4/12/17 3:58 pm, Roger Eller via use-livecode wrote: >> >>> Robot? >>> >>> >>> On Wed, Apr 12, 2017 at 8:57 AM, Richmond Mathewson via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>> OK: now for the goofy questions . . . . >>>> 1. How do I find my robot's pUUID on a Mac? >>>> >>>> >>>> Richmond. >>>> >>>> >>>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From roger.e.eller at sealedair.com Wed Apr 12 10:23:49 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 12 Apr 2017 10:23:49 -0400 Subject: mergEXT In-Reply-To: <4b368f7c-4bb0-ab93-cbf2-95efd89001b7@gmail.com> References: <0ed4554b-ed5f-8998-cfc1-1ff87e25eade@gmail.com> <30bb148a-407f-6b26-1213-3b7f8e719e07@gmail.com> <4b368f7c-4bb0-ab93-cbf2-95efd89001b7@gmail.com> Message-ID: I have never used it, but this is in the LC forum: try mergBLEStopScanningForPeripherals catch e answer e end try http://forums.livecode.com/viewtopic.php?f=9&t=28007&p=147215&hilit=mergBLE#p147215 On Wed, Apr 12, 2017 at 10:18 AM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > I must be really stupid . . . but . . . > > How do I use mergBLE to get a simple list of BlueTooth devices in a > listField? > > Richmond. > > > > On 4/12/17 4:08 pm, Roger Eller via use-livecode wrote: > >> That looks really cool (for teaching)! >> >> "PLEASE NOTE: Blue-Bot? is compatible with any iOS device with version >> 3.0/4.0+ EDR Bluetooth (e.g. iPad3 and later)" >> >> So... I would think you would use mergBLE for this. >> http://mergext.com/home/mergble/ >> >> ~Roger >> >> >> On Wed, Apr 12, 2017 at 9:01 AM, Richmond Mathewson via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> Yup: https://www.bee-bot.us/bluebot.html >>> >>> http://forums.livecode.com/viewtopic.php?f=5&t=29121 >>> >>> I really would like to control the Blue-Bot via a LiveCode front-end >>> rather than the crappy interface that >>> one has to pay $50 for that stinks. >>> >>> Richmond. >>> >>> >>> On 4/12/17 3:58 pm, Roger Eller via use-livecode wrote: >>> >>> Robot? >>>> >>>> >>>> On Wed, Apr 12, 2017 at 8:57 AM, Richmond Mathewson via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> OK: now for the goofy questions . . . . >>>> >>>>> 1. How do I find my robot's pUUID on a Mac? >>>>> >>>>> >>>>> Richmond. >>>>> >>>>> >>>>> _______________________________________________ >>>>> >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From MikeKerner at roadrunner.com Wed Apr 12 10:30:49 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 12 Apr 2017 10:30:49 -0400 Subject: mergEXT In-Reply-To: References: <0ed4554b-ed5f-8998-cfc1-1ff87e25eade@gmail.com> <30bb148a-407f-6b26-1213-3b7f8e719e07@gmail.com> <4b368f7c-4bb0-ab93-cbf2-95efd89001b7@gmail.com> Message-ID: Have a look in the dictionary. I don't know if Monte still has the demo stacks available, but perhaps that would also help. On Wed, Apr 12, 2017 at 10:23 AM, Roger Eller via use-livecode < use-livecode at lists.runrev.com> wrote: > I have never used it, but this is in the LC forum: > > try > mergBLEStopScanningForPeripherals > catch e > answer e > end try > > http://forums.livecode.com/viewtopic.php?f=9&t=28007&p= > 147215&hilit=mergBLE#p147215 > > > On Wed, Apr 12, 2017 at 10:18 AM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > I must be really stupid . . . but . . . > > > > How do I use mergBLE to get a simple list of BlueTooth devices in a > > listField? > > > > Richmond. > > > > > > > > On 4/12/17 4:08 pm, Roger Eller via use-livecode wrote: > > > >> That looks really cool (for teaching)! > >> > >> "PLEASE NOTE: Blue-Bot? is compatible with any iOS device with version > >> 3.0/4.0+ EDR Bluetooth (e.g. iPad3 and later)" > >> > >> So... I would think you would use mergBLE for this. > >> http://mergext.com/home/mergble/ > >> > >> ~Roger > >> > >> > >> On Wed, Apr 12, 2017 at 9:01 AM, Richmond Mathewson via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> Yup: https://www.bee-bot.us/bluebot.html > >>> > >>> http://forums.livecode.com/viewtopic.php?f=5&t=29121 > >>> > >>> I really would like to control the Blue-Bot via a LiveCode front-end > >>> rather than the crappy interface that > >>> one has to pay $50 for that stinks. > >>> > >>> Richmond. > >>> > >>> > >>> On 4/12/17 3:58 pm, Roger Eller via use-livecode wrote: > >>> > >>> Robot? > >>>> > >>>> > >>>> On Wed, Apr 12, 2017 at 8:57 AM, Richmond Mathewson via use-livecode < > >>>> use-livecode at lists.runrev.com> wrote: > >>>> > >>>> OK: now for the goofy questions . . . . > >>>> > >>>>> 1. How do I find my robot's pUUID on a Mac? > >>>>> > >>>>> > >>>>> Richmond. > >>>>> > >>>>> > >>>>> _______________________________________________ > >>>>> > >>>> use-livecode mailing list > >>>> use-livecode at lists.runrev.com > >>>> Please visit this url to subscribe, unsubscribe and manage your > >>>> subscription preferences: > >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>> > >>>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >>> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >>> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- 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 james at thehales.id.au Wed Apr 12 10:35:14 2017 From: james at thehales.id.au (James Hale) Date: Thu, 13 Apr 2017 00:35:14 +1000 Subject: \"System\" font on Mac - diff between LC 8 and LC 9?? Message-ID: <0637AA02-55C1-41E1-9718-A35E26FC620D@thehales.id.au> So, in LC8 changes were made to the UI font themes and the System font was one new addition. According to the dictionary... The list of font names includes a set of special-purpose names which automatically select the matching font for the platform. You can use these to request "the font used for buttons" without having to hard-code platform-specific font names. These fonts are: - (Text) - the font used for fields and other controls with editable content - (Menu) - the font used for menu items - (Message) - the font used for buttons, labels and other communication from the app - (Styled Text) - the font used by default for rich text - (System) - the font for controls not covered by another category - (Tooltip) - the font used for displaying tooltips - (Default) - selects one of the UI fonts automatically based on the control type Given what I am seeing is on the latest MacOS and there seems to be a difference between LC8 and LC9 it would seem that as the underlying OS is the same LC9 is picking a different font for "System" than LC8. Judging by f/b this only occurs for MacOS 10.11 or later. Perhaps LC9 is picking a different font than LC8 which only becomes apparent in these later OS's Perhaps LC9 has a bug and is falling back on some other mechanism to allocate the actual font to the "System". It would probably be good to know, one way or the other in case it reverts or breaks again with the next OS release. From hh at hyperhh.de Wed Apr 12 10:37:24 2017 From: hh at hyperhh.de (hh) Date: Wed, 12 Apr 2017 16:37:24 +0200 Subject: AW: vertical text? Message-ID: > Jonathan L. wrote: > This is also easy to do in a browser widget, if you don't mind > the "always on top" aspect of browser widgets. Right, but only to a certain degree. LC Builder has _a lot_ of possibilities different from using the javascript of a browser widget. The very basic widget linked above, for example ... ... allows the user to select _any_ textfont on _his_ system or available in the stack. ... can have everything outside the rotated box transparent. Both is not doable in a browser widget (and not by _any_ browser). From ambassador at fourthworld.com Wed Apr 12 10:56:15 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 12 Apr 2017 07:56:15 -0700 Subject: LC and OneSignal In-Reply-To: <1393F30E-F4AA-49EC-963C-857C76409344@clearvisiontech.com> References: <1393F30E-F4AA-49EC-963C-857C76409344@clearvisiontech.com> Message-ID: <3dd91472-ee3e-fb9c-065b-fa12c2ca6e28@fourthworld.com> Dan Friedman wrote: > Hello! Has anyone implemented push messaging with OneSignal > (https://onesignal.com)? It?s running great for me on iOS, but can?t > get it to work correctly with a LiveCode Android app. Anyone have > any expierence with LC and OneSignal? Interesting. Thanks for the link. What are the advantages of a third-party notification service? -- 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 jonathandlynch at gmail.com Wed Apr 12 11:14:25 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Wed, 12 Apr 2017 11:14:25 -0400 Subject: AW: vertical text? In-Reply-To: References: Message-ID: <428AA9BE-D2FE-4C24-B661-D5C7252EE7FB@gmail.com> Having rotated text with transparent backgrounds could be very nice :) I was just suggesting the browser widget as the cheap and easy way. Sent from my iPhone On Apr 12, 2017, at 10:37 AM, hh via use-livecode wrote: >> Jonathan L. wrote: >> This is also easy to do in a browser widget, if you don't mind >> the "always on top" aspect of browser widgets. > > Right, but only to a certain degree. > > LC Builder has _a lot_ of possibilities different from using the > javascript of a browser widget. > > The very basic widget linked above, for example ... > ... allows the user to select _any_ textfont on _his_ system > or available in the stack. > ... can have everything outside the rotated box transparent. > > Both is not doable in a browser widget (and not by _any_ browser). > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 smarttsoftware.co.uk Wed Apr 12 11:25:01 2017 From: paul at smarttsoftware.co.uk (Paul Richards) Date: Wed, 12 Apr 2017 15:25:01 +0000 Subject: AW: vertical text? In-Reply-To: <428AA9BE-D2FE-4C24-B661-D5C7252EE7FB@gmail.com> References: <428AA9BE-D2FE-4C24-B661-D5C7252EE7FB@gmail.com> Message-ID: Not sure if this is of any help, but I came across a course by Livecode where they guide you through creating a rotating text Widget. https://livecode.com/courses/extension-course/ | https://livecode.com/lessons/rotated-text-widget/ You might need to be logged into LC page -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Jonathan Lynch via use-livecode Sent: 12 April 2017 16:14 To: How to use LiveCode Cc: jonathandlynch at gmail.com; hh Subject: Re: AW: vertical text? Having rotated text with transparent backgrounds could be very nice :) I was just suggesting the browser widget as the cheap and easy way. Sent from my iPhone On Apr 12, 2017, at 10:37 AM, hh via use-livecode wrote: >> Jonathan L. wrote: >> This is also easy to do in a browser widget, if you don't mind the >> "always on top" aspect of browser widgets. > > Right, but only to a certain degree. > > LC Builder has _a lot_ of possibilities different from using the > javascript of a browser widget. > > The very basic widget linked above, for example ... > ... allows the user to select _any_ textfont on _his_ system or > available in the stack. > ... can have everything outside the rotated box transparent. > > Both is not doable in a browser widget (and not by _any_ browser). > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Wed Apr 12 11:36:27 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 12 Apr 2017 17:36:27 +0200 Subject: tsneterr: HTTP response Code 400? Message-ID: <007001d2b3a2$8dc2e680$a948b380$@kestner.de> Hello, LC 8.1.3 I have some "put URL ." with PHPs executed on my server, which runs fine. Now I get a support call from a (windows) customer who gets "tsneterr: HTTP response Code 400 returned from server" A "HTTP 400 error" usually is a bad request because of a bad HTTP syntax sent by the client which can't be resolved by the server. Since my program runs fine at "all" other customers and my test machines, I assume it must be something very special going on at the clients machine or network and the error 400 is not the "real" error, but there must be something other going on, which doesn't sends a more specific error code. Since this customer is a school, which probably has some security mechanism in their network, I assume it could be related to that network topography. Has anybody ever encountered an error 400 which was not related to a bad syntax or any ideas, what I could check for at that customer? Thanks for any ideas Tiemo From roger.e.eller at sealedair.com Wed Apr 12 12:37:35 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 12 Apr 2017 12:37:35 -0400 Subject: AW: vertical text? In-Reply-To: References: <428AA9BE-D2FE-4C24-B661-D5C7252EE7FB@gmail.com> Message-ID: That's nice, but text angle should come as standard a field property (in my opinion). There are many use cases for field labels or table headers to sit on an angle for screen space consideration. ~Roger On Wed, Apr 12, 2017 at 11:25 AM, Paul Richards via use-livecode < use-livecode at lists.runrev.com> wrote: > Not sure if this is of any help, but I came across a course by Livecode > where they guide you through creating a rotating text Widget. > > https://livecode.com/courses/extension-course/ | > https://livecode.com/lessons/rotated-text-widget/ > > You might need to be logged into LC page > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On > Behalf Of Jonathan Lynch via use-livecode > Sent: 12 April 2017 16:14 > To: How to use LiveCode > Cc: jonathandlynch at gmail.com; hh > Subject: Re: AW: vertical text? > > Having rotated text with transparent backgrounds could be very nice :) > > I was just suggesting the browser widget as the cheap and easy way. > > > > Sent from my iPhone > > On Apr 12, 2017, at 10:37 AM, hh via use-livecode < > use-livecode at lists.runrev.com> wrote: > > >> Jonathan L. wrote: > >> This is also easy to do in a browser widget, if you don't mind the > >> "always on top" aspect of browser widgets. > > > > Right, but only to a certain degree. > > > > LC Builder has _a lot_ of possibilities different from using the > > javascript of a browser widget. > > > > The very basic widget linked above, for example ... > > ... allows the user to select _any_ textfont on _his_ system or > > available in the stack. > > ... can have everything outside the rotated box transparent. > > > > Both is not doable in a browser widget (and not by _any_ browser). > > From bobsneidar at iotecdigital.com Wed Apr 12 12:46:46 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 12 Apr 2017 16:46:46 +0000 Subject: "System" font on Mac - diff between LC 8 and LC 9?? In-Reply-To: References: Message-ID: Seems this is undesirable as a rule. What I do is set the font, size and style of the STACK to something, and then if I want the control to match the default of the stack, I set font size and style to empty. Bob S On Apr 11, 2017, at 20:14 , James Hale via use-livecode > wrote: Could other with a Mac please give this a go to see if my observation is local to my machine alone? Create a new stack in LC8 and place a field. Open the message box and enter... set the htmltext of fld 1 to "this is bold and this is italic" You should see this is bold and this is italic (assuming the styles survive the emailing) Now open the PI for the field and click on the FONT tab. I think by default the font is called "Text" and it is one of the Lc named options. Now change the font to "system". Do the styles remain visible in the field? Repeat the above with LC 9 For me... With LC8 the styles disappear. With LC9 they don't. James From MikeKerner at roadrunner.com Wed Apr 12 13:22:47 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 12 Apr 2017 13:22:47 -0400 Subject: APNS response twice? Message-ID: Here's one I don't remember: Send APNS App gets pushNotificationReceived...twice, one right on top of the other. -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From paul at livecode.org Wed Apr 12 13:48:38 2017 From: paul at livecode.org (Paul Hibbert) Date: Wed, 12 Apr 2017 10:48:38 -0700 Subject: how to print only a part of a card? In-Reply-To: <006801d2b392$60f2d5d0$22d88170$@kestner.de> References: <006801d2b392$60f2d5d0$22d88170$@kestner.de> Message-ID: <73F0F2DF-E34C-4798-8751-6389D753AEAA@livecode.org> Tiemo, There?s nothing wrong with your logic, this all works fine on a Mac, LC8.1.4 (rc1), but from an earlier post I gather you are on Win 10 so this looks like there's a bug in the works, maybe a Linux user could test also. Have you tried any other versions of LC? HTH Paul > On 12 Apr 2017, at 06:40, Tiemo Hollmann TB via use-livecode wrote: > > Hello, > > probably I don't see the obvious or my math is slightly rusty. I am trying > to print only a section of a card, e.g. a rectangle, but I always only get a > (left and bottom) clipped rectangle being printed. Only when printing the > whole card I get the full rectangle. I am running out of paper from my > multiple tests :) > > Here is what I tried: > > > > on mouseUp > > # create a stack, size: 348,527 > > # create a button with this script > > # create a rectangle, size: 297,421 > > -- set the printpapersize to 595,842 # optional test # A4 > > -- set the printmargins to 40,57,40,57 # optional test > > -- set the printscale to .5 # optional test > > > > open printing with dialog > > if the result is not "cancel" then > > put the left of grc "rectangle" into item 1 of tLeftTop > > put the top of grc "rectangle" into item 2 of tLeftTop > > put the right of grc "rectangle" into item 1 of tRightBottom > > put the bottom of grc "rectangle" into item 2 of tRightBottom > > > > print this card from tLeftTop to tRightBottom > > -- print this card from tLeftTop to tRightBottom into 149,210,635, # > optional test > > -- print this card from tLeftTop to tRightBottom into 40,57,337,478 # > optional test # margins+ rectangle > > -- print this card # this is for me the only chance to get the whole > rectangle printed > > end if > > close printing > > end mouseUp > > > > Does anybody see the error in my logic? > > Tiemo > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jonathandlynch at gmail.com Wed Apr 12 14:06:44 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Wed, 12 Apr 2017 14:06:44 -0400 Subject: How do you find beta testers? Message-ID: <093FFAC8-54CB-48E7-A16F-5610B66C5628@gmail.com> I have been getting feedback from friends and family on my app, but I want to find a wider circle of testers. I plan to seek testers on the use-list as well, but for now I am trying to find a couple dozen nonprogrammers so I can judge how the average public reacts to the app. How do those of you who program for the general public do this? Sent from my iPhone From ambassador at fourthworld.com Wed Apr 12 14:12:45 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 12 Apr 2017 11:12:45 -0700 Subject: AW: vertical text? In-Reply-To: References: Message-ID: hh wrote: >> Jonathan L. wrote: >> This is also easy to do in a browser widget, if you don't mind >> the "always on top" aspect of browser widgets. > > Right, but only to a certain degree. > > LC Builder has _a lot_ of possibilities different from using the > javascript of a browser widget. > > The very basic widget linked above, for example ... > ... allows the user to select _any_ textfont on _his_ system > or available in the stack. > ... can have everything outside the rotated box transparent. > > Both is not doable in a browser widget (and not by _any_ browser). No to mention that using a browser widget means adding an entire browser process to your LiveCode application. It's great when you truly need an embedded web browser, but for small one-offs like this I'd be reluctant to add the extra RAM and disk space requirements. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From roger.e.eller at sealedair.com Wed Apr 12 14:39:22 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 12 Apr 2017 14:39:22 -0400 Subject: AW: vertical text? In-Reply-To: References: Message-ID: This is really the first mention I've seen of the resource requirements of certain widgets. Assuming that overhead is minimal just because it is so darn easy to add to a stack will be our downfall. :) ~Roger On Wed, Apr 12, 2017 at 2:12 PM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > hh wrote: > >> Jonathan L. wrote: > >> This is also easy to do in a browser widget, if you don't mind > >> the "always on top" aspect of browser widgets. > > > > Right, but only to a certain degree. > > > > LC Builder has _a lot_ of possibilities different from using the > > javascript of a browser widget. > > > > The very basic widget linked above, for example ... > > ... allows the user to select _any_ textfont on _his_ system > > or available in the stack. > > ... can have everything outside the rotated box transparent. > > > > Both is not doable in a browser widget (and not by _any_ browser). > > No to mention that using a browser widget means adding an entire browser > process to your LiveCode application. > > It's great when you truly need an embedded web browser, but for small > one-offs like this I'd be reluctant to add the extra RAM and disk space > requirements. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > From ambassador at fourthworld.com Wed Apr 12 15:13:06 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 12 Apr 2017 12:13:06 -0700 Subject: AW: vertical text? In-Reply-To: References: Message-ID: Roger Eller wrote: > On Wed, Apr 12, 2017 at 2:12 PM, Richard Gaskin wrote: >> >> Jonathan L. wrote: >> >> This is also easy to do in a browser widget, if you don't mind >> >> the "always on top" aspect of browser widgets. ... >> It's great when you truly need an embedded web browser, but for small >> one-offs like this I'd be reluctant to add the extra RAM and disk >> space requirements. > > This is really the first mention I've seen of the resource > requirements of certain widgets. Most widgets use only what's in the LiveCode engine, and don't carry much additional overhead beyond what we might expect for the respective elements involved (images, code, etc.). The browser widget is a very special case, since it's an entire browser application embedded within your app. On disk the Linux build of CEF takes up 135 MBs, and like any browser I would imagine it more than doubles RAM requirements for an app using it. When you need an embedded browser it's awesome. It's just a lot to add if you only need small things like rotated text, which can be handled well with LC Script or LC Builder in same process your app is already running in. > Assuming that overhead is minimal just because it is so > darn easy to add to a stack will be our downfall. :) macOS is so easy to use it must fit on a single floppy. :) -- 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 Wed Apr 12 15:23:34 2017 From: hh at hyperhh.de (hh) Date: Wed, 12 Apr 2017 21:23:34 +0200 Subject: AW: vertical text? Message-ID: <86ED22DD-850A-4B73-937D-04FFCCE6B131@hyperhh.de> > Richard G. wrote: > On disk the Linux build of CEF takes up 135 MBs, and like any browser I > would imagine it more than doubles RAM requirements for an app using it. I would even give a full Gigabyte of RAM if this could make the browser widget work on linux ... From jacque at hyperactivesw.com Wed Apr 12 16:09:46 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 12 Apr 2017 15:09:46 -0500 Subject: How do you find beta testers? In-Reply-To: <093FFAC8-54CB-48E7-A16F-5610B66C5628@gmail.com> References: <093FFAC8-54CB-48E7-A16F-5610B66C5628@gmail.com> Message-ID: On 4/12/17 1:06 PM, Jonathan Lynch via use-livecode wrote: > I have been getting feedback from friends and family on my app, but I > want to find a wider circle of testers. I plan to seek testers on the > use-list as well, but for now I am trying to find a couple dozen > nonprogrammers so I can judge how the average public reacts to the > app. > > How do those of you who program for the general public do this? Since I do mostly client work, I hire someone. I use a professional QA tester who's very good (let me know privately if you want more info.) For non-commercial projects I do what you're planning to do -- ask around. If you can afford it, I really recommend a professional QA person. They know how to test, and they put the app through rigorous trials that cover all situations including edge cases most people won't think of. They can set up a bug database for you and they follow established methodology for ensuring the software is as good as it can be. It really is a skill that the general public is not prepared to do. You do need a budget though. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jonathandlynch at gmail.com Wed Apr 12 16:18:35 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Wed, 12 Apr 2017 16:18:35 -0400 Subject: How do you find beta testers? In-Reply-To: References: <093FFAC8-54CB-48E7-A16F-5610B66C5628@gmail.com> Message-ID: <03D37249-BA46-4FEA-AB34-D82D956FAE74@gmail.com> Thanks Jacqueline - sadly my budget is based on my excess cash flow, and I have 2 kids in private school, so that number is somewhere around negative zero. However, I know quite a few programmers and design people. Maybe I could exchange favors. I guess I will do a lot of asking around for the general public opinion. Sent from my iPhone > On Apr 12, 2017, at 4:09 PM, J. Landman Gay via use-livecode wrote: > >> On 4/12/17 1:06 PM, Jonathan Lynch via use-livecode wrote: >> I have been getting feedback from friends and family on my app, but I >> want to find a wider circle of testers. I plan to seek testers on the >> use-list as well, but for now I am trying to find a couple dozen >> nonprogrammers so I can judge how the average public reacts to the >> app. >> >> How do those of you who program for the general public do this? > > Since I do mostly client work, I hire someone. I use a professional QA tester who's very good (let me know privately if you want more info.) For non-commercial projects I do what you're planning to do -- ask around. > > If you can afford it, I really recommend a professional QA person. They know how to test, and they put the app through rigorous trials that cover all situations including edge cases most people won't think of. They can set up a bug database for you and they follow established methodology for ensuring the software is as good as it can be. It really is a skill that the general public is not prepared to do. > > You do need a budget though. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Wed Apr 12 18:22:03 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 12 Apr 2017 15:22:03 -0700 Subject: AW: vertical text? In-Reply-To: <86ED22DD-850A-4B73-937D-04FFCCE6B131@hyperhh.de> References: <86ED22DD-850A-4B73-937D-04FFCCE6B131@hyperhh.de> Message-ID: hh wrote: >> Richard G. wrote: >> On disk the Linux build of CEF takes up 135 MBs, and like any >> browser I would imagine it more than doubles RAM requirements >> for an app using it. > > I would even give a full Gigabyte of RAM if this could make the > browser widget work on linux ... I've had pretty good luck on Ubuntu 14.04 64-bit - what's your setup? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Wed Apr 12 18:36:47 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 12 Apr 2017 15:36:47 -0700 Subject: How do you find beta testers? In-Reply-To: <03D37249-BA46-4FEA-AB34-D82D956FAE74@gmail.com> References: <03D37249-BA46-4FEA-AB34-D82D956FAE74@gmail.com> Message-ID: <69e68cb6-9f6f-86af-2c08-dcd02edf294c@fourthworld.com> jonathandlynch wrote: > I guess I will do a lot of asking around for the general public > opinion. Prospective customers are great for several reasons: - They represent your target market, so their interests and skill level will be a good match for assessing not only technical fitness but also usability. - They're more motivated than most because they'll benefit directly from what the product delivers. - When encouraged to speak candidly they'll be a wealth of information about possible new features for v2.0, opportunities for refinements in v1.1. - Some will be so grateful to work with a vendor that actually listens to customers that they'll be happy to put in the time for great testing just to get a free license for the software. - If you don't already have a list of prospects to contact about testing that may be an indicator of the state of your marketing plan. After all, if you can't find prospective users who'd want a sneak preview of something that will benefit the work they do, you won't be able to find prospective users to become customers. Cultivate that inner circle of end-users and so much becomes much easier... -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From monte at appisle.net Wed Apr 12 19:22:56 2017 From: monte at appisle.net (Monte Goulding) Date: Thu, 13 Apr 2017 09:22:56 +1000 Subject: mergEXT In-Reply-To: References: <0ed4554b-ed5f-8998-cfc1-1ff87e25eade@gmail.com> <30bb148a-407f-6b26-1213-3b7f8e719e07@gmail.com> <4b368f7c-4bb0-ab93-cbf2-95efd89001b7@gmail.com> Message-ID: <5F1D8EEE-99F2-4A38-B919-E079B9479039@appisle.net> Hi Folks You probably want to get some docs for the robot and find out the service UUID that it offers then scan for peripherals with that service UUID. That?s the normal way of doing things but if there?s no docs available (from the looks of their downloads page you will need to request dev docs) you can scan for any peripherals and inspect them to work out what?s on offer. It would be great to get a write up of this for the LC blog if you get it all working. The demo stack are inside that Ext folder which on mac is inside the app bundle -> Contents > Tools > Ext > mergBLE > mergBLE.livecode. It isn?t pretty (just the baste basics needed to test functionality). We know this isn?t the most helpful location. At some point it would be nice to have a open demo stack button on the docs. Cheers Monte > On 13 Apr 2017, at 12:30 am, Mike Kerner via use-livecode wrote: > > Have a look in the dictionary. I don't know if Monte still has the demo > stacks available, but perhaps that would also help. > > On Wed, Apr 12, 2017 at 10:23 AM, Roger Eller via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I have never used it, but this is in the LC forum: >> >> try >> mergBLEStopScanningForPeripherals >> catch e >> answer e >> end try >> >> http://forums.livecode.com/viewtopic.php?f=9&t=28007&p= >> 147215&hilit=mergBLE#p147215 >> >> >> On Wed, Apr 12, 2017 at 10:18 AM, Richmond Mathewson via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> I must be really stupid . . . but . . . >>> >>> How do I use mergBLE to get a simple list of BlueTooth devices in a >>> listField? >>> >>> Richmond. >>> >>> >>> >>> On 4/12/17 4:08 pm, Roger Eller via use-livecode wrote: >>> >>>> That looks really cool (for teaching)! >>>> >>>> "PLEASE NOTE: Blue-Bot? is compatible with any iOS device with version >>>> 3.0/4.0+ EDR Bluetooth (e.g. iPad3 and later)" >>>> >>>> So... I would think you would use mergBLE for this. >>>> http://mergext.com/home/mergble/ >>>> >>>> ~Roger >>>> >>>> >>>> On Wed, Apr 12, 2017 at 9:01 AM, Richmond Mathewson via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> Yup: https://www.bee-bot.us/bluebot.html >>>>> >>>>> http://forums.livecode.com/viewtopic.php?f=5&t=29121 >>>>> >>>>> I really would like to control the Blue-Bot via a LiveCode front-end >>>>> rather than the crappy interface that >>>>> one has to pay $50 for that stinks. >>>>> >>>>> Richmond. >>>>> >>>>> >>>>> On 4/12/17 3:58 pm, Roger Eller via use-livecode wrote: >>>>> >>>>> Robot? >>>>>> >>>>>> >>>>>> On Wed, Apr 12, 2017 at 8:57 AM, Richmond Mathewson via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> OK: now for the goofy questions . . . . >>>>>> >>>>>>> 1. How do I find my robot's pUUID on a Mac? >>>>>>> >>>>>>> >>>>>>> Richmond. >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Wed Apr 12 19:45:09 2017 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 13 Apr 2017 00:45:09 +0100 Subject: OT (?): Bookmarking GPS coords In-Reply-To: <348ABC54-EF86-41BA-9435-6D58005D5B3B@gmail.com> References: <8ce9f4c6-fde6-7c2e-929a-257fd960f64d@tweedly.net> <348ABC54-EF86-41BA-9435-6D58005D5B3B@gmail.com> Message-ID: <2d34d2bc-0dc2-3685-1263-0daecd03174f@tweedly.net> On 11/04/2017 01:40, jonathandlynch at gmail.com wrote: > Rather than travel physically, could you just move in the map, and program it to record your click locations in a map? > > Indeed. Earlier I talked about a 'desktop app' and a 'mobile app'. The 'desktop app' is exactly what you describe - it shows you a map, lets you position a marker and then only one click is needed to associate that marker's position with the current selected named address. But (esp. out here in the boonies :-), the map is sometimes lacking enough detail to allow accurate positioning by anyone who is not a map enthusiast, so I see a need for the mobile / GPS app in addition. Thanks Alex. From paul at livecode.org Wed Apr 12 20:04:28 2017 From: paul at livecode.org (Paul Hibbert) Date: Wed, 12 Apr 2017 17:04:28 -0700 Subject: OT (?): Bookmarking GPS coords In-Reply-To: <2d34d2bc-0dc2-3685-1263-0daecd03174f@tweedly.net> References: <8ce9f4c6-fde6-7c2e-929a-257fd960f64d@tweedly.net> <348ABC54-EF86-41BA-9435-6D58005D5B3B@gmail.com> <2d34d2bc-0dc2-3685-1263-0daecd03174f@tweedly.net> Message-ID: Alex, I used this lesson [ http://lessons.livecode.com/m/4069/l/30379-how-do-i-get-the-location-and-use-the-digital-compass ] as the basis for a GPS location in one of my iOS apps, if it helps I could save the relevant card to a new stack and send you a copy, I?m pretty sure it would work on Android too, I just haven?t tested that. It wouldn?t be difficult to adapt it for your needs. Paul > On 12 Apr 2017, at 16:45, Alex Tweedly via use-livecode wrote: > > > > On 11/04/2017 01:40, jonathandlynch at gmail.com wrote: >> Rather than travel physically, could you just move in the map, and program it to record your click locations in a map? >> >> > Indeed. Earlier I talked about a 'desktop app' and a 'mobile app'. The 'desktop app' is exactly what you describe - it shows you a map, lets you position a marker and then only one click is needed to associate that marker's position with the current selected named address. > > But (esp. out here in the boonies :-), the map is sometimes lacking enough detail to allow accurate positioning by anyone who is not a map enthusiast, so I see a need for the mobile / GPS app in addition. > > Thanks > Alex. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Wed Apr 12 20:29:42 2017 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 13 Apr 2017 01:29:42 +0100 Subject: OT (?): Bookmarking GPS coords In-Reply-To: References: <8ce9f4c6-fde6-7c2e-929a-257fd960f64d@tweedly.net> <348ABC54-EF86-41BA-9435-6D58005D5B3B@gmail.com> <2d34d2bc-0dc2-3685-1263-0daecd03174f@tweedly.net> Message-ID: <7632fab7-5ad5-f190-7e93-0d223a754753@tweedly.net> Thanks Paul. I'm struggling to find time to get my Android environment setup working (restrictions on my time, more than actual problems), so it may take me a few days to even try it out, but it would be good to know that I have a stack that *should* work, so please do send me directly a copy of that one-card stack. Thanks again. Alex. On 13/04/2017 01:04, Paul Hibbert via use-livecode wrote: > Alex, I used this lesson [ http://lessons.livecode.com/m/4069/l/30379-how-do-i-get-the-location-and-use-the-digital-compass ] as the basis for a GPS location in one of my iOS apps, if it helps I could save the relevant card to a new stack and send you a copy, I?m pretty sure it would work on Android too, I just haven?t tested that. > > It wouldn?t be difficult to adapt it for your needs. > > Paul > >> On 12 Apr 2017, at 16:45, Alex Tweedly via use-livecode wrote: >> >> >> >> On 11/04/2017 01:40, jonathandlynch at gmail.com wrote: >>> Rather than travel physically, could you just move in the map, and program it to record your click locations in a map? >>> >>> >> Indeed. Earlier I talked about a 'desktop app' and a 'mobile app'. The 'desktop app' is exactly what you describe - it shows you a map, lets you position a marker and then only one click is needed to associate that marker's position with the current selected named address. >> >> But (esp. out here in the boonies :-), the map is sometimes lacking enough detail to allow accurate positioning by anyone who is not a map enthusiast, so I see a need for the mobile / GPS app in addition. >> >> Thanks >> Alex. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jonathandlynch at gmail.com Wed Apr 12 20:56:53 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Wed, 12 Apr 2017 20:56:53 -0400 Subject: How do you find beta testers? In-Reply-To: <69e68cb6-9f6f-86af-2c08-dcd02edf294c@fourthworld.com> References: <03D37249-BA46-4FEA-AB34-D82D956FAE74@gmail.com> <69e68cb6-9f6f-86af-2c08-dcd02edf294c@fourthworld.com> Message-ID: This is good advice Richard. Thank you. My app, Augmented Earth, is free. The money will (eventually) come from ads, in theory. The idea is for users to add interesting reports in different categories linked to specific geographic spots. Other users can then read those reports when they are near that location. It is like Pok?mon go, but with interesting information rather than imaginary critters. It is a way for people to appreciate how amazing the world really is. I have not really segmented or defined my target market very thoroughly yet. Your comment makes me think I need to do that now, before I release the mobile version. I have shown it to three history professors, and they loved it, so I think I should seek history buffs as one group of testers. Good advice - thanks! Sent from my iPhone > On Apr 12, 2017, at 6:36 PM, Richard Gaskin via use-livecode wrote: > > jonathandlynch wrote: > > > I guess I will do a lot of asking around for the general public > > opinion. > > Prospective customers are great for several reasons: > > - They represent your target market, so their interests > and skill level will be a good match for assessing > not only technical fitness but also usability. > > - They're more motivated than most because they'll benefit > directly from what the product delivers. > > - When encouraged to speak candidly they'll be a wealth > of information about possible new features for v2.0, > opportunities for refinements in v1.1. > > - Some will be so grateful to work with a vendor that actually > listens to customers that they'll be happy to put in the time > for great testing just to get a free license for the software. > > - If you don't already have a list of prospects to contact > about testing that may be an indicator of the state of > your marketing plan. After all, if you can't find prospective > users who'd want a sneak preview of something that will benefit > the work they do, you won't be able to find prospective users > to become customers. > > Cultivate that inner circle of end-users and so much becomes much easier... > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Wed Apr 12 21:29:19 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 12 Apr 2017 18:29:19 -0700 Subject: How do you find beta testers? In-Reply-To: References: Message-ID: You're very kind, Jonathan. Thank you for the generous words. I like things that get people outside. This is a wonderful planet indeed - history, prehistory - so much to learn. I hope your app does very well. You may find it inspiring to read up on iNaturalist. It's a charming app (not made in LC as far as I know, but charming just the same) that encourages people to share flora and fauna sightings. It's managed to get some good press, lots to read up on. One of the great things in their story is how they seem to have really tapped into the strength of their core audience. You'll see some very enthusiastic users in the news stories about you can find. Hooking into the human side of things with your app may be at least equally engaging. I hope it is. Sounds like you're on the right track by starting with a focus on history buffs as a core target audience. So many history clubs and historical societies and more, each with their own newletters and web sites and Facebook pages - earn respect among some and they'll spread the word for you. - rg jonathandlynch wwrote: > This is good advice Richard. Thank you. > > My app, Augmented Earth, is free. The money will (eventually) come from ads, in theory. The idea is for users to add interesting reports in different categories linked to specific geographic spots. Other users can then read those reports when they are near that location. It is like Pok?mon go, but with interesting information rather than imaginary critters. > > It is a way for people to appreciate how amazing the world really is. > > I have not really segmented or defined my target market very thoroughly yet. Your comment makes me think I need to do that now, before I release the mobile version. > > I have shown it to three history professors, and they loved it, so I think I should seek history buffs as one group of testers. > > Good advice - thanks! > > >> On Apr 12, 2017, at 6:36 PM, Richard Gaskin via use-livecode wrote: >> >> jonathandlynch wrote: >> >> > I guess I will do a lot of asking around for the general public >> > opinion. >> >> Prospective customers are great for several reasons: >> >> - They represent your target market, so their interests >> and skill level will be a good match for assessing >> not only technical fitness but also usability. >> >> - They're more motivated than most because they'll benefit >> directly from what the product delivers. >> >> - When encouraged to speak candidly they'll be a wealth >> of information about possible new features for v2.0, >> opportunities for refinements in v1.1. >> >> - Some will be so grateful to work with a vendor that actually >> listens to customers that they'll be happy to put in the time >> for great testing just to get a free license for the software. >> >> - If you don't already have a list of prospects to contact >> about testing that may be an indicator of the state of >> your marketing plan. After all, if you can't find prospective >> users who'd want a sneak preview of something that will benefit >> the work they do, you won't be able to find prospective users >> to become customers. >> >> Cultivate that inner circle of end-users and so much becomes much easier... >> >> -- >> Richard Gaskin From curry at pair.com Wed Apr 12 21:49:52 2017 From: curry at pair.com (Curry Kenworthy) Date: Wed, 12 Apr 2017 21:49:52 -0400 Subject: Downloads - Immodest Proposal Message-ID: <58EED940.7070101@pair.com> Hi All, I noticed that on livecode.com the front page has no download link. Anywhere. It would be great if interested people who happen upon the web site could instantly download LiveCode with a prominent button. I see a trial signup, but it really takes some persistence to go through the steps! In fact, it gets off to a slow start even to find the sign up box, which was on a second page and took some effort to locate. Once a download is started, people generally want to follow through and install it. What if the trial signup came at the end of the installation process as a quick step, similar to the current licensing choice screen? Just a thought. At least they could have it downloading while working on the signup. With detection it should be easy to provide the appropriate file. Regardless, a download link or button, especially above the fold, would sure be nice. Right now I think the web page is a little too shy and modest about the awesome LC executables that are waiting to be explored. Show the world what you have! (I was going to joke around a bit for those who are familiar with the original "Modest Proposal" in literature, but I'm not sure if that work is still popular these days so I decided not to.) Best wishes, Curry K. From brahma at hindu.org Wed Apr 12 22:54:51 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 13 Apr 2017 02:54:51 +0000 Subject: LC crashing when trying to save a standalone In-Reply-To: References: <60162011-BE26-4129-A467-C3A19F65BD98@gmail.com> <41279668-FB7C-4551-884B-B535FED400A6@gmail.com> <7CFD97FE-02B0-4902-BACB-3F558D84B2E4@appisle.net> <4233CC32-27DB-4364-95BC-0BA514748D19@gmail.com> <078F20EC-A328-45E8-A38D-603B3F59CAB0@hindu.org> Message-ID: <837318EC-D188-4CAC-BB9A-44D48A917BE2@hindu.org> is the browser widget fix (or whatever change that fixes it) currently in 9dp5? or is that future branch now "behind" 8.1.4rc1? BR On 4/10/17, 9:32 AM, "use-livecode on behalf of Jonathan Lynch via use-livecode" wrote: As both Monte and Tom have suggested, moving to 8.1.4 rc 1 fixed the problem for me. I am usually wary of using rc versions, but if you are going to use a browser widget, it is probably a good idea. From brahma at hindu.org Wed Apr 12 22:54:52 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 13 Apr 2017 02:54:52 +0000 Subject: LiveCode Android Demo In-Reply-To: References: Message-ID: <6DC33B77-CCB7-4B37-AFD4-8DD93A96E4E1@hindu.org> I want to see that also! not the apk, but the code Our current app is "dying" on android. specifically, a mainstack, opening other stacks or a stack with browser widget in it? something that is working perfectly on desktop and iOS is failing miserably on Android. so if anyone has an android app that does this (dynamically opening and closing different stacks/windows) working on android? I would love to see app code? or, a least the functions that drive the navigation. If you are interested? contact me off list and I will give you the link to our public git repository and you can try our nightly yourself on android. BR On 4/10/17, 6:06 AM, "use-livecode on behalf of Alejandro Tejada via use-livecode" wrote: Hi All, Where I could download an .APK that demonstrate (with user interaction) all LiveCode features available for Android Platform? For example, check this Interactive OpenCV Demo (for Win32 platforms) http://www.tsdconseil.fr/log/opencv/demo/index-en.html This interactive OpenCV demo allows the user to load their own images to test the algorithms. Thanks in advance! Al From cszasz at mac.com Wed Apr 12 23:54:26 2017 From: cszasz at mac.com (Charles Szasz) Date: Wed, 12 Apr 2017 21:54:26 -0600 Subject: Downloads - Immodest Proposal Message-ID: Curry, What is the link to your website store? The link I have currently have is out dated. Thanks for your time! Sent from my iPad From curry at pair.com Thu Apr 13 01:41:41 2017 From: curry at pair.com (Curry Kenworthy) Date: Thu, 13 Apr 2017 01:41:41 -0400 Subject: Downloads - Immodest Proposal In-Reply-To: References: Message-ID: <58EF0F95.5040608@pair.com> Charles Szasz: > Curry, > What is the link to your website store? Howdy, Thanks for asking! My addons are now residing at: http://livecodeaddons.com/ And each product has links to the LiveCode store or the eSellerate store, which is here if you need the quickest link: http://store.esellerate.net/s.aspx?s=STR3897026475 I've been working on several updates that are on the way, there will be fixes for LC 8 issues in a couple of products including (gasp) WordReport, and SpreadOut's Excel export has very cool image support and extensive text styles, among other things. All the addons have an update coming sooner or later. The LiveCode field control keeps getting better, more features and fixes, and the import/export addons will continue to make good use of this. I'm still learning amazing nuances of the LC field (mostly good, still a few quirks to bug report) even after working with it daily all these years on advanced formatting. Good stuff ahead! Which is why I hope more people will be downloading LiveCode, and I welcome more downloads of my addons too! Best wishes, Curry Kenworthy Custom Software Development LiveCode Training and Consulting http://livecodeconsulting.com/ From toolbook at kestner.de Thu Apr 13 03:02:04 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 13 Apr 2017 09:02:04 +0200 Subject: AW: how to print only a part of a card? In-Reply-To: <73F0F2DF-E34C-4798-8751-6389D753AEAA@livecode.org> References: <006801d2b392$60f2d5d0$22d88170$@kestner.de> <73F0F2DF-E34C-4798-8751-6389D753AEAA@livecode.org> Message-ID: <001001d2b423$dc4aa460$94dfed20$@kestner.de> Hi Paul, yes I tested on Win 10 and it's the same result with LC 6 to 9. Can anybody confirm this behavior on windows before I file a bug? Actually I can't believe it's a bug since LC 6 Thanks Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Paul Hibbert via use-livecode Gesendet: Mittwoch, 12. April 2017 19:49 An: How to use LiveCode Cc: Paul Hibbert Betreff: Re: how to print only a part of a card? Tiemo, There?s nothing wrong with your logic, this all works fine on a Mac, LC8.1.4 (rc1), but from an earlier post I gather you are on Win 10 so this looks like there's a bug in the works, maybe a Linux user could test also. Have you tried any other versions of LC? HTH Paul > On 12 Apr 2017, at 06:40, Tiemo Hollmann TB via use-livecode wrote: > > Hello, > > probably I don't see the obvious or my math is slightly rusty. I am > trying to print only a section of a card, e.g. a rectangle, but I > always only get a (left and bottom) clipped rectangle being printed. > Only when printing the whole card I get the full rectangle. I am > running out of paper from my multiple tests :) > > Here is what I tried: > > > > on mouseUp > > # create a stack, size: 348,527 > > # create a button with this script > > # create a rectangle, size: 297,421 > > -- set the printpapersize to 595,842 # optional test # A4 > > -- set the printmargins to 40,57,40,57 # optional test > > -- set the printscale to .5 # optional test > > > > open printing with dialog > > if the result is not "cancel" then > > put the left of grc "rectangle" into item 1 of tLeftTop > > put the top of grc "rectangle" into item 2 of tLeftTop > > put the right of grc "rectangle" into item 1 of tRightBottom > > put the bottom of grc "rectangle" into item 2 of tRightBottom > > > > print this card from tLeftTop to tRightBottom > > -- print this card from tLeftTop to tRightBottom into > 149,210,635, # optional test > > -- print this card from tLeftTop to tRightBottom into > 40,57,337,478 # optional test # margins+ rectangle > > -- print this card # this is for me the only chance to get the whole > rectangle printed > > end if > > close printing > > end mouseUp > > > > Does anybody see the error in my logic? > > Tiemo > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Thu Apr 13 04:09:46 2017 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 13 Apr 2017 09:09:46 +0100 Subject: Downloads - Immodest Proposal In-Reply-To: <58EED940.7070101@pair.com> References: <58EED940.7070101@pair.com> Message-ID: On 13/04/2017 02:49, Curry Kenworthy via use-livecode wrote: > > (I was going to joke around a bit for those who are familiar with the > original "Modest Proposal" in literature, but I'm not sure if that > work is still popular these days so I decided not to.) Just as well you didn't, that would swiftly have caused confusion :-) Alex. From dvglasgow at gmail.com Thu Apr 13 04:24:54 2017 From: dvglasgow at gmail.com (David V Glasgow) Date: Thu, 13 Apr 2017 09:24:54 +0100 Subject: How do you find beta testers? In-Reply-To: <093FFAC8-54CB-48E7-A16F-5610B66C5628@gmail.com> References: <093FFAC8-54CB-48E7-A16F-5610B66C5628@gmail.com> Message-ID: Jonathan, I invite feedback from 10 volunteers who are members of likely user mailing lists. I never use the term Beta testing or release candidate, just say hey I made this and I want feedback from professionals experienced in ?whatever?. I say that anyone who gives me feedback, however little, gets a free copy of the final app. Once I was adjudged to be spamming (on LinkedIn, which is bloody ironic), but if you keep things informal, personable and friendly, I find that folks are interested. This has the advantage of letting potential users on the list know that something is brewing, and the most interested ones as early adopters. I always take the time to thank everyone via the list, and give a little bit of feedback on progress, just to keep awareness up. The downside is that the ratio of volunteers to useful feedback is very high. I say 10, but usually distribute 30 or so copies, and get actual feedback from only a handful. Cheers, David Glasgow > On 12 Apr 2017, at 7:06 pm, Jonathan Lynch via use-livecode wrote: > > I have been getting feedback from friends and family on my app, but I want to find a wider circle of testers. I plan to seek testers on the use-list as well, but for now I am trying to find a couple dozen nonprogrammers so I can judge how the average public reacts to the app. > > How do those of you who program for the general public do this? > > Sent from my 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 jonathandlynch at gmail.com Thu Apr 13 04:59:20 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Thu, 13 Apr 2017 04:59:20 -0400 Subject: How do you find beta testers? In-Reply-To: References: <093FFAC8-54CB-48E7-A16F-5610B66C5628@gmail.com> Message-ID: <43623A6C-B638-4A92-83F7-2FB9CAD99B37@gmail.com> Thanks David, So I should talk to 3 or 4 historical societies, and shoot for more than I actually need. I will do that as soon as I add formatting buttons for bolding, links, etc. Sent from my iPhone > On Apr 13, 2017, at 4:24 AM, David V Glasgow via use-livecode wrote: > > Jonathan, > > I invite feedback from 10 volunteers who are members of likely user mailing lists. I never use the term Beta testing or release candidate, just say hey I made this and I want feedback from professionals experienced in ?whatever?. I say that anyone who gives me feedback, however little, gets a free copy of the final app. Once I was adjudged to be spamming (on LinkedIn, which is bloody ironic), but if you keep things informal, personable and friendly, I find that folks are interested. > > This has the advantage of letting potential users on the list know that something is brewing, and the most interested ones as early adopters. I always take the time to thank everyone via the list, and give a little bit of feedback on progress, just to keep awareness up. > > The downside is that the ratio of volunteers to useful feedback is very high. I say 10, but usually distribute 30 or so copies, and get actual feedback from only a handful. > > Cheers, > > David Glasgow > >> On 12 Apr 2017, at 7:06 pm, Jonathan Lynch via use-livecode wrote: >> >> I have been getting feedback from friends and family on my app, but I want to find a wider circle of testers. I plan to seek testers on the use-list as well, but for now I am trying to find a couple dozen nonprogrammers so I can judge how the average public reacts to the app. >> >> How do those of you who program for the general public do this? >> >> Sent from my 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 dave at applicationinsight.com Thu Apr 13 05:05:03 2017 From: dave at applicationinsight.com (Dave Kilroy) Date: Thu, 13 Apr 2017 10:05:03 +0100 Subject: Downloads - Immodest Proposal Message-ID: <43C33CFF-6D95-4DEA-B41F-EAE71DCC6007@applicationinsight.com> ?Confusion' being an understatement, it would have swiftly caused shock and horror :) Dave >> (I was going to joke around a bit for those who are familiar with the >> original "Modest Proposal" in literature, but I'm not sure if that >> work is still popular these days so I decided not to.) >> > Just as well you didn't, that would swiftly have caused confusion :-) > Alex. From mpetrides at earthlink.net Thu Apr 13 06:00:13 2017 From: mpetrides at earthlink.net (Marian Petrides, MD) Date: Thu, 13 Apr 2017 06:00:13 -0400 Subject: How do you find beta testers? In-Reply-To: <093FFAC8-54CB-48E7-A16F-5610B66C5628@gmail.com> References: <093FFAC8-54CB-48E7-A16F-5610B66C5628@gmail.com> Message-ID: <1DB56CF7-B091-47E9-A5DE-D80989C5C003@earthlink.net> When I wrote an app to teach Transfusion Medicine, I selected 10 friends and colleagues--5 of them content experts in the field with no particular computer expertise and 5 of them friends I knew from Apple User Groups from way back in the days when all Apple ][ users were "hobbyists." The latter were tasked with beating up on the software, trying to break it. All of them got a free copy of the software. This worked quite well. In all the years the software was sold, I never got a single bug report, although I have gotten content feedback through the same publisher. Sent from my iPad > On Apr 12, 2017, at 2:06 PM, Jonathan Lynch via use-livecode wrote: > > I have been getting feedback from friends and family on my app, but I want to find a wider circle of testers. I plan to seek testers on the use-list as well, but for now I am trying to find a couple dozen nonprogrammers so I can judge how the average public reacts to the app. > > How do those of you who program for the general public do this? From richmondmathewson at gmail.com Thu Apr 13 10:42:27 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 13 Apr 2017 17:42:27 +0300 Subject: Downloads - Immodest Proposal In-Reply-To: References: <58EED940.7070101@pair.com> Message-ID: <1f11278d-8575-4185-8942-a9757aa4cdc4@gmail.com> "swiftly" Dunno: tossed a baby on the barbeque just last weekend. Richmond. On 4/13/17 11:09 am, Alex Tweedly via use-livecode wrote: > > > On 13/04/2017 02:49, Curry Kenworthy via use-livecode wrote: >> >> (I was going to joke around a bit for those who are familiar with the >> original "Modest Proposal" in literature, but I'm not sure if that >> work is still popular these days so I decided not to.) > Just as well you didn't, that would swiftly have caused confusion :-) > Alex. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Thu Apr 13 10:50:29 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 13 Apr 2017 17:50:29 +0300 Subject: mergEXT In-Reply-To: <5F1D8EEE-99F2-4A38-B919-E079B9479039@appisle.net> References: <0ed4554b-ed5f-8998-cfc1-1ff87e25eade@gmail.com> <30bb148a-407f-6b26-1213-3b7f8e719e07@gmail.com> <4b368f7c-4bb0-ab93-cbf2-95efd89001b7@gmail.com> <5F1D8EEE-99F2-4A38-B919-E079B9479039@appisle.net> Message-ID: <9f1aa4f9-c1d5-3501-ba35-8ff84f599433@gmail.com> On 4/13/17 2:22 am, Monte Goulding via use-livecode wrote: > Hi Folks > > You probably want to get some docs for the robot and find out the service UUID that it offers then scan for peripherals with that service UUID. That?s the normal way of doing things but if there?s no docs available (from the looks of their downloads page you will need to request dev docs) you can scan for any peripherals and inspect them to work out what?s on offer. It would be great to get a write up of this for the LC blog if you get it all working. I have requested the dev docs; but whether the Terrapin Logo will let me have them is another thing as they may smell a rat. Richmond. > > The demo stack are inside that Ext folder which on mac is inside the app bundle -> Contents > Tools > Ext > mergBLE > mergBLE.livecode. It isn?t pretty (just the baste basics needed to test functionality). We know this isn?t the most helpful location. At some point it would be nice to have a open demo stack button on the docs. > > Cheers > > Monte >> On 13 Apr 2017, at 12:30 am, Mike Kerner via use-livecode wrote: >> >> Have a look in the dictionary. I don't know if Monte still has the demo >> stacks available, but perhaps that would also help. >> >> On Wed, Apr 12, 2017 at 10:23 AM, Roger Eller via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> I have never used it, but this is in the LC forum: >>> >>> try >>> mergBLEStopScanningForPeripherals >>> catch e >>> answer e >>> end try >>> >>> http://forums.livecode.com/viewtopic.php?f=9&t=28007&p= >>> 147215&hilit=mergBLE#p147215 >>> >>> >>> On Wed, Apr 12, 2017 at 10:18 AM, Richmond Mathewson via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> I must be really stupid . . . but . . . >>>> >>>> How do I use mergBLE to get a simple list of BlueTooth devices in a >>>> listField? >>>> >>>> Richmond. >>>> >>>> >>>> >>>> On 4/12/17 4:08 pm, Roger Eller via use-livecode wrote: >>>> >>>>> That looks really cool (for teaching)! >>>>> >>>>> "PLEASE NOTE: Blue-Bot? is compatible with any iOS device with version >>>>> 3.0/4.0+ EDR Bluetooth (e.g. iPad3 and later)" >>>>> >>>>> So... I would think you would use mergBLE for this. >>>>> http://mergext.com/home/mergble/ >>>>> >>>>> ~Roger >>>>> >>>>> >>>>> On Wed, Apr 12, 2017 at 9:01 AM, Richmond Mathewson via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> Yup: https://www.bee-bot.us/bluebot.html >>>>>> http://forums.livecode.com/viewtopic.php?f=5&t=29121 >>>>>> >>>>>> I really would like to control the Blue-Bot via a LiveCode front-end >>>>>> rather than the crappy interface that >>>>>> one has to pay $50 for that stinks. >>>>>> >>>>>> Richmond. >>>>>> >>>>>> >>>>>> On 4/12/17 3:58 pm, Roger Eller via use-livecode wrote: >>>>>> >>>>>> Robot? >>>>>>> >>>>>>> On Wed, Apr 12, 2017 at 8:57 AM, Richmond Mathewson via use-livecode < >>>>>>> use-livecode at lists.runrev.com> wrote: >>>>>>> >>>>>>> OK: now for the goofy questions . . . . >>>>>>> >>>>>>>> 1. How do I find my robot's pUUID on a Mac? >>>>>>>> >>>>>>>> >>>>>>>> Richmond. >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>> subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> -- >> On the first day, God created the heavens and the Earth >> On the second day, God created the oceans. >> On the third day, God put the animals on hold for a few hours, >> and did a little diving. >> And God said, "This is good." >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Thu Apr 13 12:05:40 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 13 Apr 2017 19:05:40 +0300 Subject: mergEXT In-Reply-To: <5F1D8EEE-99F2-4A38-B919-E079B9479039@appisle.net> References: <0ed4554b-ed5f-8998-cfc1-1ff87e25eade@gmail.com> <30bb148a-407f-6b26-1213-3b7f8e719e07@gmail.com> <4b368f7c-4bb0-ab93-cbf2-95efd89001b7@gmail.com> <5F1D8EEE-99F2-4A38-B919-E079B9479039@appisle.net> Message-ID: <66877c18-478c-5f02-c16a-8ab698b36ba8@gmail.com> I've just spend a fair time poking around the internet and cannot find an application that can give me the UUID numbers associated with a paired Bluetooth device . . . Richmond. From hh at hyperhh.de Thu Apr 13 12:10:37 2017 From: hh at hyperhh.de (hh) Date: Thu, 13 Apr 2017 18:10:37 +0200 Subject: Browser widget on linux Message-ID: <1381C83C-A8C0-4154-8825-1130B737C336@hyperhh.de> >>> Richard G. wrote (in the 'vertical-text'-thread): >>> On disk the Linux build of CEF takes up 135 MBs, and like any >>> browser I would imagine it more than doubles RAM requirements >>> for an app using it. >> hh wrote: >> I would even give a full Gigabyte of RAM if this could make the >> browser widget work on linux ... > Richard G. wrote: > had pretty good luck on Ubuntu 14.04 64-bit - what's your setup? Richard, I moved this to a new thread, fitting more the subject. Hope it is OK for you. Thanks that you came in. After your report I was full of hope that the three years old ubuntu 14.04.5 and LC 8.1.3 or 8.1.4-rc1 would yield a fully functional browser widget. Installed in a fresh setup Ubuntu 14.04.5 and fresh LC 8.1.3/8.1.4-rc1/9.0.0.-dp6 (all 'for this user only'). Running 8.1.3-64bit it is better than the others tested below in that it _randomly_ works correct and doesn't show bug 3 below (yes, bugs 1 2 too). If not working it instead creates several additional processes libbrowser-cefp. And it creates with every startup fresh preferences, declaring the old one as corrupt. Running 8.1.3 on Ubuntu 14.04.5-32bit is the same as described below. Within the last two weeks I tested the following, on real hardware (additionally some on on virtualBox): *Latest LTS* of Ubuntu (also Xubuntu, Lubuntu, Mint), Debian, Fedora. In sum 10 trials (6 on 64bit, 4 on 32bit). All OSes are running without problems. LC 8.1.3, 8.1.4-rc1, 9.0.0-dp6 runs and works using LC Script. ****** But I had _NO_SUCCESS_ in these 10 trials with a browser widget. ****** I wonder if anybody ever tested the _full_ functionality of the ****** browser widget on a newer LTS linux flavour. Full functionality means that you can *do* javascript in the browser. You can't even come into a state to test that: These severe 'bugs' are common to _all_ my trials (incl. on Ubuntu 16.04.2): Bug 1: Open a new stack, drag a browser widget symbol from "Tools". The widget portion of "Tools" disappears. Mostly LC hangs after that, you need the system monitor or a terminal to kill it. Bug 2: Open a new stack, create a browser widget by LC-menu or script. Try to open the property inspector. No reaction. Try to quit LC. The "something-dialog" burns onto your screen. LC hangs after that ... (as above). Bug 3: Open a stack with an included widget that runs on Mac and Win on all systems that run LC 8/9 (for example: "Browser widget on linux or "Sample stacks/Browser widget image manipulator" or "Sample stacks/ LCImageToolbox89"). At latest after the second load LC hangs, you need the system monitor or a terminal to kill it and it's "something-dialog". I'm deeply disappointed about these extreme results, especially because we know that several members of the core team also use linux on their own machines. From ambassador at fourthworld.com Thu Apr 13 12:19:11 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 13 Apr 2017 09:19:11 -0700 Subject: Browser widget on linux In-Reply-To: <1381C83C-A8C0-4154-8825-1130B737C336@hyperhh.de> References: <1381C83C-A8C0-4154-8825-1130B737C336@hyperhh.de> Message-ID: Thanks for the background info. Can you share the bug report ID's so I can follow those in Bugzilla? -- Richard Gaskin hh wrote: >>>> Richard G. wrote (in the 'vertical-text'-thread): >>>> On disk the Linux build of CEF takes up 135 MBs, and like any >>>> browser I would imagine it more than doubles RAM requirements >>>> for an app using it. >>> hh wrote: >>> I would even give a full Gigabyte of RAM if this could make the >>> browser widget work on linux ... >> Richard G. wrote: >> had pretty good luck on Ubuntu 14.04 64-bit - what's your setup? > > Richard, I moved this to a new thread, fitting more the subject. Hope > it is OK for you. Thanks that you came in. > > After your report I was full of hope that the three years old ubuntu > 14.04.5 and LC 8.1.3 or 8.1.4-rc1 would yield a fully functional > browser widget. Installed in a fresh setup Ubuntu 14.04.5 and fresh > LC 8.1.3/8.1.4-rc1/9.0.0.-dp6 (all 'for this user only'). > > Running 8.1.3-64bit it is better than the others tested below in that > it _randomly_ works correct and doesn't show bug 3 below (yes, bugs 1 > 2 too). If not working it instead creates several additional processes > libbrowser-cefp. > And it creates with every startup fresh preferences, declaring the old > one as corrupt. Running 8.1.3 on Ubuntu 14.04.5-32bit is the same as > described below. > > Within the last two weeks I tested the following, on real hardware > (additionally some on on virtualBox): > *Latest LTS* of Ubuntu (also Xubuntu, Lubuntu, Mint), Debian, Fedora. > > In sum 10 trials (6 on 64bit, 4 on 32bit). All OSes are running without > problems. LC 8.1.3, 8.1.4-rc1, 9.0.0-dp6 runs and works using LC Script. > > ****** But I had _NO_SUCCESS_ in these 10 trials with a browser widget. > ****** I wonder if anybody ever tested the _full_ functionality of the > ****** browser widget on a newer LTS linux flavour. > > Full functionality means that you can *do* javascript in the browser. > You can't even come into a state to test that: These severe 'bugs' > are common to _all_ my trials (incl. on Ubuntu 16.04.2): > > Bug 1: Open a new stack, drag a browser widget symbol from "Tools". > The widget portion of "Tools" disappears. Mostly LC hangs after that, > you need the system monitor or a terminal to kill it. > > Bug 2: Open a new stack, create a browser widget by LC-menu or script. > Try to open the property inspector. No reaction. > Try to quit LC. The "something-dialog" burns onto your screen. LC hangs > after that ... (as above). > > Bug 3: Open a stack with an included widget that runs on Mac and Win on > all systems that run LC 8/9 (for example: "Browser widget on linux > or "Sample stacks/Browser widget image manipulator" or "Sample stacks/ > LCImageToolbox89"). > At latest after the second load LC hangs, you need the system monitor > or a terminal to kill it and it's "something-dialog". > > I'm deeply disappointed about these extreme results, especially because > we know that several members of the core team also use linux on their > own machines. From merakosp at gmail.com Thu Apr 13 12:43:50 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Thu, 13 Apr 2017 17:43:50 +0100 Subject: Browser widget on linux In-Reply-To: References: <1381C83C-A8C0-4154-8825-1130B737C336@hyperhh.de> Message-ID: Hi all, All those problems are essentially caused by the same underlying issue, which seems to be locale-related. In comment 81 (!!) of this report http://quality.livecode.com/show_bug.cgi?id=16848, a community member has found a workaround, which seems to work for most of the affected users. The other related bugs Hermann mentioned are those: bug 16975 bug 18025 bug 17565 bug 17715 Best, Panos -- On Thu, Apr 13, 2017 at 5:19 PM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Thanks for the background info. > > Can you share the bug report ID's so I can follow those in Bugzilla? > > -- > Richard Gaskin > > > hh wrote: > >> Richard G. wrote (in the 'vertical-text'-thread): >>>>> On disk the Linux build of CEF takes up 135 MBs, and like any >>>>> browser I would imagine it more than doubles RAM requirements >>>>> for an app using it. >>>>> >>>> hh wrote: >>>> I would even give a full Gigabyte of RAM if this could make the >>>> browser widget work on linux ... >>>> >>> Richard G. wrote: >>> had pretty good luck on Ubuntu 14.04 64-bit - what's your setup? >>> >> >> Richard, I moved this to a new thread, fitting more the subject. Hope >> it is OK for you. Thanks that you came in. >> >> After your report I was full of hope that the three years old ubuntu >> 14.04.5 and LC 8.1.3 or 8.1.4-rc1 would yield a fully functional >> browser widget. Installed in a fresh setup Ubuntu 14.04.5 and fresh >> LC 8.1.3/8.1.4-rc1/9.0.0.-dp6 (all 'for this user only'). >> >> Running 8.1.3-64bit it is better than the others tested below in that >> it _randomly_ works correct and doesn't show bug 3 below (yes, bugs 1 >> 2 too). If not working it instead creates several additional processes >> libbrowser-cefp. >> And it creates with every startup fresh preferences, declaring the old >> one as corrupt. Running 8.1.3 on Ubuntu 14.04.5-32bit is the same as >> described below. >> >> Within the last two weeks I tested the following, on real hardware >> (additionally some on on virtualBox): >> *Latest LTS* of Ubuntu (also Xubuntu, Lubuntu, Mint), Debian, Fedora. >> >> In sum 10 trials (6 on 64bit, 4 on 32bit). All OSes are running without >> problems. LC 8.1.3, 8.1.4-rc1, 9.0.0-dp6 runs and works using LC Script. >> >> ****** But I had _NO_SUCCESS_ in these 10 trials with a browser widget. >> ****** I wonder if anybody ever tested the _full_ functionality of the >> ****** browser widget on a newer LTS linux flavour. >> >> Full functionality means that you can *do* javascript in the browser. >> You can't even come into a state to test that: These severe 'bugs' >> are common to _all_ my trials (incl. on Ubuntu 16.04.2): >> >> Bug 1: Open a new stack, drag a browser widget symbol from "Tools". >> The widget portion of "Tools" disappears. Mostly LC hangs after that, >> you need the system monitor or a terminal to kill it. >> >> Bug 2: Open a new stack, create a browser widget by LC-menu or script. >> Try to open the property inspector. No reaction. >> Try to quit LC. The "something-dialog" burns onto your screen. LC hangs >> after that ... (as above). >> >> Bug 3: Open a stack with an included widget that runs on Mac and Win on >> all systems that run LC 8/9 (for example: "Browser widget on linux >> or "Sample stacks/Browser widget image manipulator" or "Sample stacks/ >> LCImageToolbox89"). >> At latest after the second load LC hangs, you need the system monitor >> or a terminal to kill it and it's "something-dialog". >> >> I'm deeply disappointed about these extreme results, especially because >> we know that several members of the core team also use linux on their >> own machines. >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Apr 13 12:44:30 2017 From: curry at pair.com (Curry Kenworthy) Date: Thu, 13 Apr 2017 12:44:30 -0400 Subject: Downloads - Immodest Proposal In-Reply-To: <43C33CFF-6D95-4DEA-B41F-EAE71DCC6007@applicationinsight.com> References: <43C33CFF-6D95-4DEA-B41F-EAE71DCC6007@applicationinsight.com> Message-ID: <58EFAAEE.1070308@pair.com> > 'Confusion' being an understatement, it would have swiftly > caused shock and horror :) > Dave Yep. :) But there are good reasons for comparison. Swift was making an outrageous joke to draw attention to other actual proposals for the problems of his day. Right at the moment there may have been a dip in LC newbies (perhaps, judging from some imperfect indicators) and naturally there's a "hunger" to spread the word and get LC into the hands of interested people. Having a download as visible and easy as possible could be a realistic measure to help with part of that. Ditto for a very "swift" signup. So joking about it might go like: Whatever you do, don't show the uninitiated and uncouth masses of people your greatest treasure, that is, your downloads! You must keep those a secret altogether, or at least make people go through a satisfying number of steps first before they reach them, so only the elite will find them, being tested and purified, thus in the proper state of mind to appreciate the true quality of these executables. Never be tempted by frivolous appeals to reduce the number of steps or clicks in that process, or to start the download while they are verifying their email, or heaven forbid, to roll the signup into the installer. No, friends, the real answer has been right in front of us the whole time. All we need to do is get LC tattoos in, let's say, "modest" places. It flies under the radar, but really makes an impact when revealed in some situations. And you always know it's there, gives you secret empowerment all day. Something like that. You can see why I thought again and held off on that the first post! Anyway, I would say it's also just a tiny bit shocking to have no download links at all on the site. Have you seen the LC site lately? I could find no download links at all. None. There's the signup but it's a pretty roundabout process. If I were a first-time visitor to the LC web site, I'm not sure whether I would have snagged a download by the end of my visit or not. That's why I posted. Best wishes, Curry K. From richmondmathewson at gmail.com Thu Apr 13 12:53:06 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 13 Apr 2017 19:53:06 +0300 Subject: Downloads - Immodest Proposal In-Reply-To: <58EFAAEE.1070308@pair.com> References: <43C33CFF-6D95-4DEA-B41F-EAE71DCC6007@applicationinsight.com> <58EFAAEE.1070308@pair.com> Message-ID: On 4/13/17 7:44 pm, Curry Kenworthy via use-livecode wrote: > > > 'Confusion' being an understatement, it would have swiftly > > caused shock and horror :) > > Dave > > Yep. :) But there are good reasons for comparison. Swift was making an > outrageous joke to draw attention to other actual proposals for the > problems of his day. > > Right at the moment there may have been a dip in LC newbies (perhaps, > judging from some imperfect indicators) and naturally there's a > "hunger" to spread the word and get LC into the hands of interested > people. Having a download as visible and easy as possible could be a > realistic measure to help with part of that. Ditto for a very "swift" > signup. > > So joking about it might go like: Whatever you do, don't show the > uninitiated and uncouth masses of people your greatest treasure, that > is, your downloads! You must keep those a secret altogether, or at > least make people go through a satisfying number of steps first before > they reach them, so only the elite will find them, being tested and > purified, thus in the proper state of mind to appreciate the true > quality of these executables. Never be tempted by frivolous appeals to > reduce the number of steps or clicks in that process, or to start the > download while they are verifying their email, or heaven forbid, to > roll the signup into the installer. No, friends, the real answer has > been right in front of us the whole time. All we need to do is get LC > tattoos in, let's say, "modest" places. It flies under the radar, but > really makes an impact when revealed in some situations. And you > always know it's there, gives you secret empowerment all day. > Something like that. > > You can see why I thought again and held off on that the first post! > > Anyway, I would say it's also just a tiny bit shocking It's daft! And I have ALREADY made the point about the teeny-weeny green Community button way at bottom-left of the page to minimise the chance that anyone sees it. BUT: don't tell the people at LiveCode centre that because they know BETTER than anyone how to market something, as one can see from the way the LC newbie number is dropping. I have criticised the LiveCode web-site many times, as have many others; and as far as I recall not once have the LiveCode people admitted that a criticism might, just, possibly have a spot of validity. Of course elsewhere if someone never, ever admitted to having made a misjudgement they'd be called "arrogant", but you cannot do that with LiveCode because they pay good money to marketing people to do their website, and they cannot be seen admitting they might have got the wrong firm; Oh, and they are perfect. > to have no download links at all on the site. Have you seen the LC > site lately? I could find no download links at all. None. There's the > signup but it's a pretty roundabout process. I raised it, Richard Gaskin agreed; what happens; sweet Football Association. > If I were a first-time visitor to the LC web site, I'm not sure > whether I would have snagged a download by the end of my visit or not. > That's why I posted. > > Best wishes, > > Curry K. > Richmond. From paul at livecode.org Thu Apr 13 13:15:21 2017 From: paul at livecode.org (Paul Hibbert) Date: Thu, 13 Apr 2017 10:15:21 -0700 Subject: Browser widget on linux In-Reply-To: References: <1381C83C-A8C0-4154-8825-1130B737C336@hyperhh.de> Message-ID: Looking at Bugzilla, I?m hoping it will soon be time for the Browser widget to be given some attention, and not just on Linux, there seems to be over 30 active bugs. The bug I submitted over 10 months ago was for a crash on Mac OS (Bug 17928 ), but I gather (and appreciate) the team have been way too busy to address this and the other outstanding bugs, so I?m just sitting and waiting patiently with my projects on hold as there?s no easy workaround for this bug. On the plus side, when they do rebuild the browser widget, there's lots of useful info in there for the team to deliver a more stable and more useable browser widget, I personally hope it?s not too long before that happens. Paul > On 13 Apr 2017, at 09:19, Richard Gaskin via use-livecode wrote: > > Thanks for the background info. > > Can you share the bug report ID's so I can follow those in Bugzilla? > > -- > Richard Gaskin > > hh wrote: >>>>> Richard G. wrote (in the 'vertical-text'-thread): >>>>> On disk the Linux build of CEF takes up 135 MBs, and like any >>>>> browser I would imagine it more than doubles RAM requirements >>>>> for an app using it. >>>> hh wrote: >>>> I would even give a full Gigabyte of RAM if this could make the >>>> browser widget work on linux ... >>> Richard G. wrote: >>> had pretty good luck on Ubuntu 14.04 64-bit - what's your setup? >> >> Richard, I moved this to a new thread, fitting more the subject. Hope >> it is OK for you. Thanks that you came in. >> >> After your report I was full of hope that the three years old ubuntu >> 14.04.5 and LC 8.1.3 or 8.1.4-rc1 would yield a fully functional >> browser widget. Installed in a fresh setup Ubuntu 14.04.5 and fresh >> LC 8.1.3/8.1.4-rc1/9.0.0.-dp6 (all 'for this user only'). >> >> Running 8.1.3-64bit it is better than the others tested below in that >> it _randomly_ works correct and doesn't show bug 3 below (yes, bugs 1 >> 2 too). If not working it instead creates several additional processes >> libbrowser-cefp. >> And it creates with every startup fresh preferences, declaring the old >> one as corrupt. Running 8.1.3 on Ubuntu 14.04.5-32bit is the same as >> described below. >> >> Within the last two weeks I tested the following, on real hardware >> (additionally some on on virtualBox): >> *Latest LTS* of Ubuntu (also Xubuntu, Lubuntu, Mint), Debian, Fedora. >> >> In sum 10 trials (6 on 64bit, 4 on 32bit). All OSes are running without >> problems. LC 8.1.3, 8.1.4-rc1, 9.0.0-dp6 runs and works using LC Script. >> >> ****** But I had _NO_SUCCESS_ in these 10 trials with a browser widget. >> ****** I wonder if anybody ever tested the _full_ functionality of the >> ****** browser widget on a newer LTS linux flavour. >> >> Full functionality means that you can *do* javascript in the browser. >> You can't even come into a state to test that: These severe 'bugs' >> are common to _all_ my trials (incl. on Ubuntu 16.04.2): >> >> Bug 1: Open a new stack, drag a browser widget symbol from "Tools". >> The widget portion of "Tools" disappears. Mostly LC hangs after that, >> you need the system monitor or a terminal to kill it. >> >> Bug 2: Open a new stack, create a browser widget by LC-menu or script. >> Try to open the property inspector. No reaction. >> Try to quit LC. The "something-dialog" burns onto your screen. LC hangs >> after that ... (as above). >> >> Bug 3: Open a stack with an included widget that runs on Mac and Win on >> all systems that run LC 8/9 (for example: "Browser widget on linux >> or "Sample stacks/Browser widget image manipulator" or "Sample stacks/ >> LCImageToolbox89"). >> At latest after the second load LC hangs, you need the system monitor >> or a terminal to kill it and it's "something-dialog". >> >> I'm deeply disappointed about these extreme results, especially because >> we know that several members of the core team also use linux on their >> own machines. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 13 13:17:36 2017 From: hh at hyperhh.de (hh) Date: Thu, 13 Apr 2017 19:17:36 +0200 Subject: Browser widget on linux Message-ID: <702B9BC8-AA8E-44C9-9D4C-4061769FB271@hyperhh.de> Hi Pano, thank you very much for coming in. Please correct the typo in the first link. I got "16848 is not a valid bug number" and don't know which report you mean. We all know you do a real good job to collect (and even remove at once some of) and categorize the bugs in a very complicated structure. Let me use this opportunity to thank you for that. From paul at livecode.org Thu Apr 13 13:31:09 2017 From: paul at livecode.org (Paul Hibbert) Date: Thu, 13 Apr 2017 10:31:09 -0700 Subject: Browser widget on linux In-Reply-To: <702B9BC8-AA8E-44C9-9D4C-4061769FB271@hyperhh.de> References: <702B9BC8-AA8E-44C9-9D4C-4061769FB271@hyperhh.de> Message-ID: <1471AD0B-8F9F-4D25-A898-50BFCC8F09DC@livecode.org> > On 13 Apr 2017, at 10:17, hh via use-livecode wrote: > > Hi Pano, > thank you very much for coming in. > > Please correct the typo in the first link. > I got "16848 is not a valid bug number" and don't know > which report you mean. hh, maybe try again, it is the correct number, there may have been a glitch when you tried, it just worked fine for me. > We all know you do a real good job to collect (and even > remove at once some of) and categorize the bugs in a > very complicated structure. > Let me use this opportunity to thank you for that. I?ll second that. It can?t be an easy job, especially with all of the platforms involved, that?s just one of the reasons we all need some patience and confidence! Paul From merakosp at gmail.com Thu Apr 13 14:05:18 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Thu, 13 Apr 2017 19:05:18 +0100 Subject: Browser widget on linux In-Reply-To: <1471AD0B-8F9F-4D25-A898-50BFCC8F09DC@livecode.org> References: <702B9BC8-AA8E-44C9-9D4C-4061769FB271@hyperhh.de> <1471AD0B-8F9F-4D25-A898-50BFCC8F09DC@livecode.org> Message-ID: Hi Hermann and Paul, Thank you for your kind words, much appreciated :) The previous link does work as expected for me, but in case you still cannot open it, here it is: http://quality.livecode.com/show_bug.cgi?id=16848 Best regards, Panos -- On Thu, Apr 13, 2017 at 6:31 PM, Paul Hibbert via use-livecode < use-livecode at lists.runrev.com> wrote: > > > On 13 Apr 2017, at 10:17, hh via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi Pano, > > thank you very much for coming in. > > > > Please correct the typo in the first link. > > I got "16848 is not a valid bug number" and don't know > > which report you mean. > > hh, maybe try again, it is the correct number, there may have been a > glitch when you tried, it just worked fine for me. > > > We all know you do a real good job to collect (and even > > remove at once some of) and categorize the bugs in a > > very complicated structure. > > Let me use this opportunity to thank you for that. > > I?ll second that. It can?t be an easy job, especially with all of the > platforms involved, that?s just one of the reasons we all need some > patience and confidence! > > Paul > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From matthias_livecode_150811 at m-r-d.de Thu Apr 13 15:09:15 2017 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 13 Apr 2017 21:09:15 +0200 Subject: LC DP5 - export snapshot from grp tGroupNme to file tMyFile as JPEG is not working anymore Message-ID: <6D8563E1-653F-4613-887D-EB6AC3856AEC@m-r-d.de> Hi, am i missing something? This line of code export snapshot from grp tGroupWatermarked to file tMyJpegFile as JPEG worked w/o problem in older LC versions. But in LC9 DP5 i get the following error button "Button": execution error at line 3 (export: Empty rectangle), char 1 Was there a change in DP5 regarding export snapshot? Matthias From matthias_livecode_150811 at m-r-d.de Thu Apr 13 15:59:17 2017 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 13 Apr 2017 21:59:17 +0200 Subject: LC DP5 - export snapshot from grp tGroupNme to file tMyFile as JPEG is not working anymore In-Reply-To: <6D8563E1-653F-4613-887D-EB6AC3856AEC@m-r-d.de> References: <6D8563E1-653F-4613-887D-EB6AC3856AEC@m-r-d.de> Message-ID: <381CDB1B-A40F-49D4-A6BE-0B8D36C864FB@m-r-d.de> Let me answer myself.;) The command is correct and should work, if you make sure that not more than one group has the same name. > Am 13.04.2017 um 21:09 schrieb Matthias Rebbe via use-livecode >: > > Hi, > am i missing something? > > This line of code > > export snapshot from grp tGroupWatermarked to file tMyJpegFile as JPEG > > worked w/o problem in older LC versions. But in LC9 DP5 i get the following error > button "Button": execution error at line 3 (export: Empty rectangle), char 1 > > > Was there a change in DP5 regarding export snapshot? > > > Matthias > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode Matthias Rebbe Bramkampsieke 13 32312 L?bbecke Tel +49 5741 310000 +49 160 5504462 Fax: +49 5741 310002 eMail: matthias at m-r-d.de BR5 Konverter - BR5 -> MP3 From capellan2000 at gmail.com Thu Apr 13 18:14:01 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 13 Apr 2017 18:14:01 -0400 Subject: Color Conversion - RGB to HSV and back... (almost) Message-ID: Hi All, Download this GUI Stack for Scott Raney's Color Conversion Functions: RGB to HSV and HSV to RGB from this forum post: http://forums.livecode.com/viewtopic.php?f=10&t=29127 Only for certain colors this is a lossy conversion: Once you convert some RGB colors to HSV, the function HSVtoRGB does not convert them back exactly as they were before. Does anyone knows or have created a pair of RGB/HSV color conversion functions that do not lose (or change) color information? Thanks in advance! Al From ambassador at fourthworld.com Thu Apr 13 18:17:21 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 13 Apr 2017 15:17:21 -0700 Subject: Downloads - Immodest Proposal In-Reply-To: References: Message-ID: <527d2893-2602-32fd-38a7-ff1b33a0b2b2@fourthworld.com> Richmond wrote: > On 4/13/17 7:44 pm, Curry Kenworthy via use-livecode wrote: ... >> to have no download links at all on the site. Have you seen the LC >> site lately? I could find no download links at all. None. There's >> the signup but it's a pretty roundabout process. > > I raised it, Richard Gaskin agreed; what happens; sweet Football > Association. My comments on the value of allowing voluntary email address submission were limited to the Community Edition at the .org site - see the second half of this post for what I wrote on the subject: http://lists.runrev.com/pipermail/use-livecode/2017-March/235290.html How they handle email address harvesting at the .com site for the proprietary edition is, literally, their business. I usually direct questions I have about their business to them directly, rather than to other users here, because I don't expect the users here to answer questions only the company can answer. For the Community .org site, however, I feel it can be most effective in terms of both promoting platform adoption and reducing cost to the company to the degree that it actively invites community participation. That is a set of goals I'm still pursuing. -- Richard Gaskin LiveCode Community Liaison richard at livecode.org From revdev at pdslabs.net Thu Apr 13 20:03:48 2017 From: revdev at pdslabs.net (Phil Davis) Date: Thu, 13 Apr 2017 17:03:48 -0700 Subject: mergEXT In-Reply-To: <66877c18-478c-5f02-c16a-8ab698b36ba8@gmail.com> References: <0ed4554b-ed5f-8998-cfc1-1ff87e25eade@gmail.com> <30bb148a-407f-6b26-1213-3b7f8e719e07@gmail.com> <4b368f7c-4bb0-ab93-cbf2-95efd89001b7@gmail.com> <5F1D8EEE-99F2-4A38-B919-E079B9479039@appisle.net> <66877c18-478c-5f02-c16a-8ab698b36ba8@gmail.com> Message-ID: <38f7da2d-5f08-8419-d5c5-34fed973528c@pdslabs.net> I just Googled "Blue-Bot uuid" .... maybe one of the Github links will point you in the right direction? Phil Davis On 4/13/17 9:05 AM, Richmond Mathewson via use-livecode wrote: > I've just spend a fair time poking around the internet and cannot find > an application > that can give me the UUID numbers associated with a paired Bluetooth > device . . . > > 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 > -- Phil Davis From iphonelagi at gmail.com Thu Apr 13 21:31:19 2017 From: iphonelagi at gmail.com (Lagi Pittas) Date: Fri, 14 Apr 2017 02:31:19 +0100 Subject: Downloads - Immodest Proposal In-Reply-To: <58EFAAEE.1070308@pair.com> References: <43C33CFF-6D95-4DEA-B41F-EAE71DCC6007@applicationinsight.com> <58EFAAEE.1070308@pair.com> Message-ID: Hi, Over the years I found that when there was a trial version of software , whether it was 10 days or 30 days , it didn't make any difference because except for the first day of download life/work would get in the way and by the time I had time to test the software the 30 days were up. XOJO in my opinion has been clever - the system works forever in the IDE you just can't compile.. LC should put the community version next to the compare versions table and allow people to download that - you either love it or hate it so why bother whether they can see the communirty version. Like you say we need to get it in as many hands. Again time has been spent prettyjng up the site (in your face popups that sh*t on my windscreen everytime I go to the frontpage - have they heard about ciookies?. No thought has been given about the user experience and the hoops people have to jump through. I say again B4a and Xojo are priced right for an entry level system and are a no brainer - I have bought both and they won't run out. Will Livecode's "digital Marketing" get with the program any time soon? -- I think not until the SHTF Lagi On 13 April 2017 at 17:44, Curry Kenworthy via use-livecode < use-livecode at lists.runrev.com> wrote: > > > 'Confusion' being an understatement, it would have swiftly > > caused shock and horror :) > > Dave > > Yep. :) But there are good reasons for comparison. Swift was making an > outrageous joke to draw attention to other actual proposals for the > problems of his day. > > Right at the moment there may have been a dip in LC newbies (perhaps, > judging from some imperfect indicators) and naturally there's a "hunger" to > spread the word and get LC into the hands of interested people. Having a > download as visible and easy as possible could be a realistic measure to > help with part of that. Ditto for a very "swift" signup. > > So joking about it might go like: Whatever you do, don't show the > uninitiated and uncouth masses of people your greatest treasure, that is, > your downloads! You must keep those a secret altogether, or at least make > people go through a satisfying number of steps first before they reach > them, so only the elite will find them, being tested and purified, thus in > the proper state of mind to appreciate the true quality of these > executables. Never be tempted by frivolous appeals to reduce the number of > steps or clicks in that process, or to start the download while they are > verifying their email, or heaven forbid, to roll the signup into the > installer. No, friends, the real answer has been right in front of us the > whole time. All we need to do is get LC tattoos in, let's say, "modest" > places. It flies under the radar, but really makes an impact when revealed > in some situations. And you always know it's there, gives you secret > empowerment all day. Something like that. > > You can see why I thought again and held off on that the first post! > > Anyway, I would say it's also just a tiny bit shocking to have no download > links at all on the site. Have you seen the LC site lately? I could find no > download links at all. None. There's the signup but it's a pretty > roundabout process. If I were a first-time visitor to the LC web site, I'm > not sure whether I would have snagged a download by the end of my visit or > not. That's why I posted. > > Best wishes, > > Curry K. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From iphonelagi at gmail.com Thu Apr 13 21:36:03 2017 From: iphonelagi at gmail.com (Lagi Pittas) Date: Fri, 14 Apr 2017 02:36:03 +0100 Subject: Downloads - Immodest Proposal In-Reply-To: <527d2893-2602-32fd-38a7-ff1b33a0b2b2@fourthworld.com> References: <527d2893-2602-32fd-38a7-ff1b33a0b2b2@fourthworld.com> Message-ID: Richard, The company reads all this babble and doesn't bother to respond so that we could all partake of their wisdom. Regards Lagi On 13 April 2017 at 23:17, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Richmond wrote: > > > On 4/13/17 7:44 pm, Curry Kenworthy via use-livecode wrote: > ... > >> to have no download links at all on the site. Have you seen the LC > >> site lately? I could find no download links at all. None. There's > >> the signup but it's a pretty roundabout process. > > > > I raised it, Richard Gaskin agreed; what happens; sweet Football > > Association. > > My comments on the value of allowing voluntary email address submission > were limited to the Community Edition at the .org site - see the second > half of this post for what I wrote on the subject: > > http://lists.runrev.com/pipermail/use-livecode/2017-March/235290.html > > How they handle email address harvesting at the .com site for the > proprietary edition is, literally, their business. > > I usually direct questions I have about their business to them directly, > rather than to other users here, because I don't expect the users here to > answer questions only the company can answer. > > > For the Community .org site, however, I feel it can be most effective in > terms of both promoting platform adoption and reducing cost to the company > to the degree that it actively invites community participation. > > That is a set of goals I'm still pursuing. > > -- > Richard Gaskin > LiveCode Community Liaison > richard at livecode.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 Fri Apr 14 00:39:18 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 14 Apr 2017 04:39:18 +0000 Subject: ResumeStack on Mobile Message-ID: <24A44515-BD08-481D-9AF8-9367B87874A7@hindu.org> Our new app framework is a "no brainer" MainStack A let?s call the " Home " stack? ala the old Hypercard days. launches, it is the standalone build stack, with the stack fiels and an init script that initializes all the other libraries into the msg path. it serves as an "index" to the app? it has clickable links on card 1 that a) poke a URL into a browser widget in a browser view stack; then opens that stack on top of Home which is never closed. OR b) Opens other ModuleStack(s)B, C, D etc. which are destroyed on close so that Home appears again in the window OR c) just rebuilds a new set of different links on card 1 of Home (i.e. User sees it as shifting between indexes of links) script only stacks open in the background, models, libraries, behaviors are put into use or added to stack files to support functions running the binary stacks "above". This is all working fine on desktop and on iOS But we are having major performance issues on Android. If acceleratedRendering is set for viewBrowserWeb stack or any of the module stacks. the window the ModuleStack(s) B, C, D are not properly drawn If interested you can follow: bug 19576 Frequently the scrolling group on cd 1 of Home dies when we go back to Home I wonder if anyone else is doing this kind of thing? If so how? There is no resumeStack msg sent in mobile. (sure could us that!) Is anyone emulating a "resumeStack" on mobile and if so, how are you doing it? I expect we need to dispatch a msg to the Home every time we close "top" stacks to tell it to rebuild it's scrolling group and mobile scroller? But the timing is tricky? if you close stack ModuleStackC? on closestack dispatch "setIndexScroller" to card 1 of stack Home end close stack is one option? on closeStack send "setIndexScroller" to card 1 of stack Home in 500 milliseconds # give time for this stack to get out of RAM before re-rendering end closeStack how do you do it? BR From richmondmathewson at gmail.com Fri Apr 14 02:33:49 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 14 Apr 2017 09:33:49 +0300 Subject: mergEXT In-Reply-To: <38f7da2d-5f08-8419-d5c5-34fed973528c@pdslabs.net> References: <0ed4554b-ed5f-8998-cfc1-1ff87e25eade@gmail.com> <30bb148a-407f-6b26-1213-3b7f8e719e07@gmail.com> <4b368f7c-4bb0-ab93-cbf2-95efd89001b7@gmail.com> <5F1D8EEE-99F2-4A38-B919-E079B9479039@appisle.net> <66877c18-478c-5f02-c16a-8ab698b36ba8@gmail.com> <38f7da2d-5f08-8419-d5c5-34fed973528c@pdslabs.net> Message-ID: <8b5d2f54-003f-c6f5-b8d7-0adfc3a5c775@gmail.com> I end up with a lot of links to something called a "bluebot" which is NOT the "Blue-Bot": fine distinction, but it makes all the difference. Richmond. On 4/14/17 3:03 am, Phil Davis via use-livecode wrote: > I just Googled "Blue-Bot uuid" .... maybe one of the Github links will > point you in the right direction? > > Phil Davis > > > On 4/13/17 9:05 AM, Richmond Mathewson via use-livecode wrote: >> I've just spend a fair time poking around the internet and cannot >> find an application >> that can give me the UUID numbers associated with a paired Bluetooth >> device . . . >> >> 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 curry at pair.com Fri Apr 14 04:45:20 2017 From: curry at pair.com (Curry Kenworthy) Date: Fri, 14 Apr 2017 04:45:20 -0400 Subject: Downloads - Immodest Proposal In-Reply-To: <527d2893-2602-32fd-38a7-ff1b33a0b2b2@fourthworld.com> References: <527d2893-2602-32fd-38a7-ff1b33a0b2b2@fourthworld.com> Message-ID: <58F08C20.4070108@pair.com> Richard: > How they handle email address harvesting at the .com site for > the proprietary edition is, literally, their business. My interest is primarily for the .com site, and I'm comfortable sharing my opinion. Of course they have every right to their own decision too and I have the deepest respect for that. In my experience LiveCode is a company that does listen over time, so it's always interesting to have a discussion, whatever the venue and final result, always in a friendly spirit. That's a nice distinction you have to make a direct contact only to the company about .com matters, but I didn't feel that way on this particular topic, plus I can learn in the process and see what a few other users think too! While discussing this I should have added that I still LOVE the full downloads page at downloads.livecode.com and even made a video about it a while back. It could be an overwhelming page for non-geeks on their very first day, but it's just right for many initiated users, even when they are still fairly new to the LC world. Hope it will never go away. A dynamic link at the top could help people quickly access the most relevant version or two for their own platform, and there could be other tweaks but I like the concept pretty much as it is. One more observation is that I do see other companies requiring a signup too, but interestingly enough the word "Download" is still sometimes prominent in their signup mechanism! It's a nice call to action and can be paired with other phrases to cover all the bases. Personally I like to see a download at the beginning, that's me, but I had to chuckle seeing how it's possible to have it both ways, with "Download" leading to a sign up. And of course it's very true, people are signing up with the goal of accessing those downloads. Pretty good approach. Best wishes, Curry Kenworthy Custom Software Development LiveCode Training and Consulting http://livecodeconsulting.com/ From kevin at livecode.com Fri Apr 14 04:51:17 2017 From: kevin at livecode.com (Kevin Miller) Date: Fri, 14 Apr 2017 09:51:17 +0100 Subject: Downloads - Immodest Proposal In-Reply-To: <58F08C20.4070108@pair.com> References: <527d2893-2602-32fd-38a7-ff1b33a0b2b2@fourthworld.com> <58F08C20.4070108@pair.com> Message-ID: Of course we listen. We read what comes in here and on many other venues. We just don?t always agree or have time to respond on every point. As far as the marketing goes, as with all these things we will test different approaches over time. Kind regards, Kevin Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps On 14/04/2017, 09:45, "use-livecode on behalf of Curry Kenworthy via use-livecode" wrote: >My interest is primarily for the .com site, and I'm comfortable sharing >my opinion. Of course they have every right to their own decision too >and I have the deepest respect for that. In my experience LiveCode is a >company that does listen over time, so it's always interesting to have a >discussion, whatever the venue and final result, always in a friendly >spirit. From jonathandlynch at gmail.com Fri Apr 14 05:45:48 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Fri, 14 Apr 2017 05:45:48 -0400 Subject: Downloads - Immodest Proposal In-Reply-To: References: <527d2893-2602-32fd-38a7-ff1b33a0b2b2@fourthworld.com> <58F08C20.4070108@pair.com> Message-ID: <92CA088A-B460-4FA1-AE7C-39DD2EFBF27A@gmail.com> I feel that livecode needs a suite of adaptable commercial software, so that people become aware of LC through using that software, in much the same way people became aware of VBA through using MS Word. They need SOME way to get email addresses from prospective customers. I do agree the direct download link should be more findable. Sent from my iPhone > On Apr 14, 2017, at 4:51 AM, Kevin Miller via use-livecode wrote: > > Of course we listen. We read what comes in here and on many other venues. > We just don?t always agree or have time to respond on every point. As far > as the marketing goes, as with all these things we will test different > approaches over time. > > Kind regards, > > Kevin > > Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > > > > On 14/04/2017, 09:45, "use-livecode on behalf of Curry Kenworthy via > use-livecode" use-livecode at lists.runrev.com> wrote: > >> My interest is primarily for the .com site, and I'm comfortable sharing >> my opinion. Of course they have every right to their own decision too >> and I have the deepest respect for that. In my experience LiveCode is a >> company that does listen over time, so it's always interesting to have a >> discussion, whatever the venue and final result, always in a friendly >> spirit. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Apr 14 05:48:08 2017 From: curry at pair.com (Curry Kenworthy) Date: Fri, 14 Apr 2017 05:48:08 -0400 Subject: Downloads - Immodest Proposal In-Reply-To: References: Message-ID: <58F09AD8.40607@pair.com> Kevin: > Of course we listen. We read what comes in here and on many > other venues. Wow, that post was the perfect confirmation of my thoughts - I knew for certain that LiveCode was listening as I said, that always has been the case in my experience, and I had a feeling you were too! I've been absolutely clear in making this an open suggestion and frank observation, not demanding a response or expecting any kind of agreement. But receiving a response is a nice bonus, thanks for speaking up so quickly. I'm in the same boat; unfortunately I often don't have time to speak up on these trends that come and go, but now and then I make time on one or two, and it's great to hear from fellow users and CEO alike. I place enough importance on downloads that this was one of those times, and whatever the outcome I'm glad I said my piece. :) Best wishes, Curry Kenworthy Custom Software Development LiveCode Training and Consulting http://livecodeconsulting.com/ From iphonelagi at gmail.com Fri Apr 14 08:49:05 2017 From: iphonelagi at gmail.com (Lagi Pittas) Date: Fri, 14 Apr 2017 13:49:05 +0100 Subject: Downloads - Immodest Proposal In-Reply-To: <58F09AD8.40607@pair.com> References: <58F09AD8.40607@pair.com> Message-ID: HI I'm presuming (presumptuous moi?) that my bit about the company not listening elicited what I wanted - somebody from LC to pipe in - the fact that was Kevin was a bonus. So let me say here and now I LOVE LC and the more I use LC the more I like it BUT.. I will be honest, if I found the site today I wouldn't give it any time at all - seriously!! It was mentioned in a FOXPRO forum and the OP was rounded on by one of the Fox Gurus for 1 thing actually - that the INDY license put a limit on what they could earn (don't mention the fact that it runs out yearly!). Let me state what I stated on MANY occasions. The Differentiation of INDY with Business can stay should be SQLITE for INDY or at least for any future Mobile only versions. The price hike probably wouldn't make this sustainable) and BUSINESS allows say Oracle, SQL server databases and maybe some of the other stuff that they have now (although Andre Garcia and many others would disagree). The main Differentiation should be the support. The $500,000 limit on INDY is on an honour system anyway - LC can't tell whether I made a million last week or not. This is what I can't understand.I for one if I was on INDY (I'm on business now but they made me an offer I couldn't refuse and am still only using 6.7.11) and was earning not even close to $500,000 why wouldn't I upgrade to the next level if only to help the Tool that is bringing in the bread and butter. Related to the above is the fact that the entry level $100 hobbyist market has all but been eviscerated because you cannot use Community to create IOS apps for the APP store is totally illogical to me. XOJO has the $100 ish single OS versions (that do not run out), but you don't get updates after a year. That to me is real world thinking. If I have an APP on the APP store and it is moderately successful - at least returns a few hundred dollars and XCODE is updated so that my version of LC needs to be updated , why wouldn't I update it? If it isn't successful I wouldn't have paid for it anyway. The point being they are losing the impulse purchases of $100 here , hundreds dollars their - I have purchased B4A (all versions for the last 6 years) and have never written anything to sell but I have played with it because $250 for 2 years including the MAC cloud compilation to me is a steal - I have a MAC but I might want to compile on my PC. I have XOJO - I only used it to write something that was problematic within LC and got them to talk - again no-brainer cost. The most expensive development systems I ever paid for was Clipper Summer 84 - ?795 (ALPHA5 as well but that's another story) when that was real money - It was not protected in any way and I was given a copy on a couple of disks, but I bought it when a programmer friend convinced me it wasn't the CR*P that DBASE was - because it was the right thing to do. If I didn't have the money at the time. I would have purchased after I had made some money with it - again you either have that attitude or you don't. Some people will be so honourable that they would't even think about using it without paying there and then - i'm a little more pragmatic. What I'm saying is give the $100 entry system for single platforms a try again - the longer you leave it the more chance the XOJO's of this world will catch up. Make sure the yearly upgrade gives them a discount on the full price and you have your "sort of lockin" that you are trying to do now - many companies do it this way (XOJO and B4a are 2 I can mention ) - and I keep upgrading. There are more ideas/thoughts but I have work to finish off - no rest for the really wicked. Kindest Regards Lagi As usual excuse any smelling Pistakes On 14 April 2017 at 10:48, Curry Kenworthy via use-livecode < use-livecode at lists.runrev.com> wrote: > > Kevin: > > Of course we listen. We read what comes in here and on many > > other venues. > > Wow, that post was the perfect confirmation of my thoughts - I knew for > certain that LiveCode was listening as I said, that always has been the > case in my experience, and I had a feeling you were too! > > I've been absolutely clear in making this an open suggestion and frank > observation, not demanding a response or expecting any kind of agreement. > But receiving a response is a nice bonus, thanks for speaking up so quickly. > > I'm in the same boat; unfortunately I often don't have time to speak up on > these trends that come and go, but now and then I make time on one or two, > and it's great to hear from fellow users and CEO alike. I place enough > importance on downloads that this was one of those times, and whatever the > outcome I'm glad I said my piece. :) > > Best wishes, > > Curry Kenworthy > > Custom Software Development > LiveCode Training and Consulting > http://livecodeconsulting.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 panos.merakos at livecode.com Fri Apr 14 09:13:01 2017 From: panos.merakos at livecode.com (panagiotis merakos) Date: Fri, 14 Apr 2017 14:13:01 +0100 Subject: New blogpost - Implement audio recording on Android in LiveCode 9.0 DP-6 Message-ID: Hi all, In case you missed it, here is a great blogpost by Ali on how to implement audio recording on Android using the new Java FFI capabilities in the latest DP of LiveCode 9. https://livecode.com/android-audio-recording-library-using-java-ffi/ Enjoy :) -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From mikedoub at gmail.com Fri Apr 14 09:18:04 2017 From: mikedoub at gmail.com (Michael Doub) Date: Fri, 14 Apr 2017 09:18:04 -0400 Subject: Color Conversion - RGB to HSV and back... (almost) In-Reply-To: References: Message-ID: <3366c407-c409-8504-2d47-e499b457a446@gmail.com> Al, I wrote some color conversion routines a long time ago. They are in the MasterLibrary: https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 I cant comment on their ability to not loose precision on a round trip. -= Mike On 4/13/17 6:14 PM, Alejandro Tejada via use-livecode wrote: > Hi All, > > Download this GUI Stack for Scott Raney's Color Conversion Functions: > RGB to HSV and HSV to RGB from this forum post: > http://forums.livecode.com/viewtopic.php?f=10&t=29127 > > Only for certain colors this is a lossy conversion: Once you convert some > RGB colors to HSV, the function HSVtoRGB does not convert them back > exactly as they were before. > > Does anyone knows or have created a pair of RGB/HSV color conversion > functions that do not lose (or change) color information? > > Thanks in advance! > > Al > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From roger.e.eller at sealedair.com Fri Apr 14 09:59:07 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 14 Apr 2017 09:59:07 -0400 Subject: mergEXT In-Reply-To: <8b5d2f54-003f-c6f5-b8d7-0adfc3a5c775@gmail.com> References: <0ed4554b-ed5f-8998-cfc1-1ff87e25eade@gmail.com> <30bb148a-407f-6b26-1213-3b7f8e719e07@gmail.com> <4b368f7c-4bb0-ab93-cbf2-95efd89001b7@gmail.com> <5F1D8EEE-99F2-4A38-B919-E079B9479039@appisle.net> <66877c18-478c-5f02-c16a-8ab698b36ba8@gmail.com> <38f7da2d-5f08-8419-d5c5-34fed973528c@pdslabs.net> <8b5d2f54-003f-c6f5-b8d7-0adfc3a5c775@gmail.com> Message-ID: If you (or someone you know or work with) have an Android phone or tablet, try this app. It will scan for nearby bluetooth devices and provide a plethora of info (including UUID) about the devices. It even sees Monte's "Hello World" broadcast from LiveCode when you open his MergBLE sample stack. https://play.google.com/store/apps/details?id=com.macdom.ble.blescanner ~Roger On Fri, Apr 14, 2017 at 2:33 AM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > I end up with a lot of links to something called a "bluebot" which is NOT > the "Blue-Bot": fine > distinction, but it makes all the difference. > > Richmond. > > > On 4/14/17 3:03 am, Phil Davis via use-livecode wrote: > >> I just Googled "Blue-Bot uuid" .... maybe one of the Github links will >> point you in the right direction? >> >> Phil Davis >> >> >> On 4/13/17 9:05 AM, Richmond Mathewson via use-livecode wrote: >> >>> I've just spend a fair time poking around the internet and cannot find >>> an application >>> that can give me the UUID numbers associated with a paired Bluetooth >>> device . . . >>> >>> 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 sims at ezpzapps.com Fri Apr 14 10:08:30 2017 From: sims at ezpzapps.com (sims) Date: Fri, 14 Apr 2017 13:08:30 -0100 Subject: =?utf-8?B?bmV3cyBmcm9tIGZyaWVuZHM=?= Message-ID: <1944461346.20170414170830@ezpzapps.com> Hi, I've got very good news from our friends, that's so amazing, please read more here http://giza.rippl.fm/6c6d My best to you, sims From richmondmathewson at gmail.com Fri Apr 14 10:37:11 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 14 Apr 2017 17:37:11 +0300 Subject: Downloads - Immodest Proposal In-Reply-To: References: <527d2893-2602-32fd-38a7-ff1b33a0b2b2@fourthworld.com> <58F08C20.4070108@pair.com> Message-ID: <43bc28b0-dd15-7d68-b398-ff2ab03f2cc2@gmail.com> +1 On 4/14/17 11:51 am, Kevin Miller via use-livecode wrote: > Of course we listen. We read what comes in here and on many other venues. > We just don?t always agree or have time to respond on every point. As far > as the marketing goes, as with all these things we will test different > approaches over time. > > Kind regards, > > Kevin > > Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > > > > On 14/04/2017, 09:45, "use-livecode on behalf of Curry Kenworthy via > use-livecode" use-livecode at lists.runrev.com> wrote: > >> My interest is primarily for the .com site, and I'm comfortable sharing >> my opinion. Of course they have every right to their own decision too >> and I have the deepest respect for that. In my experience LiveCode is a >> company that does listen over time, so it's always interesting to have a >> discussion, whatever the venue and final result, always in a friendly >> spirit. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From iowahengst at mac.com Fri Apr 14 10:42:04 2017 From: iowahengst at mac.com (Randy Hengst) Date: Fri, 14 Apr 2017 09:42:04 -0500 Subject: iOS plist concern from Apple Message-ID: <204CEF25-E647-4EF5-81B7-80E6FD193C1C@mac.com> Hi All, I?ve just received an email from apple that indicated a plist problem: ?We are reaching out to you because we were unable to process your latest build uploads due to bad binaries. Specifically, your plists had an empty perBinaryResults key" When I open the plist from the build, I don?t see any key named ?perBinaryResults.? The apps referenced in the email were approved (processed) without issue 5 and 6 weeks ago. I have no idea what they message is referring to. As of right now, I don?t have any idea what to even ask apple? nor, how to fix the issue. My only ?new? thing was to add a font ? first time I?ve done so and I included the font with all of the apps listed in the email from apple. I didn?t make note as to whether I used LC 8.1.0 or 8.1.2 to build the app for submission. Thanks for any thoughts you can share. be well, randy Randy Hengst www.classroomFocusedSoftware.com From bodine at bodinetraininggames.com Fri Apr 14 10:44:08 2017 From: bodine at bodinetraininggames.com (tbodine) Date: Fri, 14 Apr 2017 07:44:08 -0700 (PDT) Subject: Midi in LC on Windows and Mac Message-ID: <1492181048688-4713989.post@n4.nabble.com> Hi all. I'm looking for a Win/Mac method of sending and receiving midi key notes in Livecode without Quicktime. (I asked Thierry about this but his sunnYmidi external is Mac only.) Suggestions? Thanks, Tom B. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Midi-in-LC-on-Windows-and-Mac-tp4713989.html Sent from the Revolution - User mailing list archive at Nabble.com. From bobsneidar at iotecdigital.com Fri Apr 14 11:02:33 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Apr 2017 15:02:33 +0000 Subject: Downloads - Immodest Proposal In-Reply-To: References: <58F09AD8.40607@pair.com> Message-ID: <4116668A-F827-406D-9B64-0E45CEE3966F@iotecdigital.com> On Apr 14, 2017, at 05:49 , Lagi Pittas via use-livecode > wrote: The Differentiation of INDY with Business can stay should be SQLITE for INDY or at least for any future Mobile only versions. The price hike probably wouldn't make this sustainable) and BUSINESS allows say Oracle, We have no frame of reference for what it takes to run the company in terms of financing. Not very many of us have an idea of how many PAYING developers are in their base either. As a result, we have no business talking about how much they should charge for licensing. I am up for renewal on the Indy license. I am not well to do. I am balking at the price right now. Still, I could use the non-comm version, but then I feel like I am not contributing, so I am torn betwixt the two. I will probably re-up just because I would like to go to V9 in the future. Lots of good things there. Bob S From bonnmike at gmail.com Fri Apr 14 11:13:29 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 14 Apr 2017 09:13:29 -0600 Subject: Downloads - Immodest Proposal In-Reply-To: <4116668A-F827-406D-9B64-0E45CEE3966F@iotecdigital.com> References: <58F09AD8.40607@pair.com> <4116668A-F827-406D-9B64-0E45CEE3966F@iotecdigital.com> Message-ID: I too am not well off, but in order to "help within my means" I am paying for membership. Its not much, but far better than 0. The only thing I want to find out now is where to get nightly builds from. (a perk of membership, yet no info that I can locate on how to actually find them) On Fri, Apr 14, 2017 at 9:02 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > > On Apr 14, 2017, at 05:49 , Lagi Pittas via use-livecode < > use-livecode at lists.runrev.com> > wrote: > > > The Differentiation of INDY with Business can stay should be SQLITE for > INDY or at least for any future Mobile only versions. The price hike > probably wouldn't make this sustainable) and BUSINESS allows say Oracle, > > > We have no frame of reference for what it takes to run the company in > terms of financing. Not very many of us have an idea of how many PAYING > developers are in their base either. As a result, we have no business > talking about how much they should charge for licensing. I am up for > renewal on the Indy license. I am not well to do. I am balking at the price > right now. Still, I could use the non-comm version, but then I feel like I > am not contributing, so I am torn betwixt the two. > > I will probably re-up just because I would like to go to V9 in the future. > Lots of good things there. > > 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 merakosp at gmail.com Fri Apr 14 11:15:39 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 14 Apr 2017 16:15:39 +0100 Subject: iOS plist concern from Apple In-Reply-To: <204CEF25-E647-4EF5-81B7-80E6FD193C1C@mac.com> References: <204CEF25-E647-4EF5-81B7-80E6FD193C1C@mac.com> Message-ID: Hi Randy, See this thread: http://forums.livecode.com/viewtopic.php?f=49&p=153346#p153346 This ("perBinaryResults") does not sound like a name for a plist key. Best, Panos -- On Fri, Apr 14, 2017 at 3:42 PM, Randy Hengst via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi All, > > I?ve just received an email from apple that indicated a plist problem: > ?We are reaching out to you because we were unable to process your latest > build uploads due to bad binaries. Specifically, your plists had an empty > perBinaryResults key" > > When I open the plist from the build, I don?t see any key named > ?perBinaryResults.? > > The apps referenced in the email were approved (processed) without issue 5 > and 6 weeks ago. I have no idea what they message is referring to. As of > right now, I don?t have any idea what to even ask apple? nor, how to fix > the issue. > > My only ?new? thing was to add a font ? first time I?ve done so and I > included the font with all of the apps listed in the email from apple. > > I didn?t make note as to whether I used LC 8.1.0 or 8.1.2 to build the app > for submission. > > Thanks for any thoughts you can share. > > be well, > randy > > Randy Hengst > www.classroomFocusedSoftware.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Fri Apr 14 11:16:45 2017 From: hh at hyperhh.de (hh) Date: Fri, 14 Apr 2017 17:16:45 +0200 Subject: Browser widget on linux Message-ID: <58B34C43-A54A-4D95-B487-E89D4BBCB546@hyperhh.de> Hi all. Panos linked to the following bug report (it is more a discussion): http://quality.livecode.com/show_bug.cgi?id=16848 The final 'workaround' there by Max Vessi solves several issues on linux. The property inspector, the script editor, the dictionary and the browser widget work correcly with that (I tried latest LTS of Ubuntu/Xubuntu/Lubuntu/Mint and Debian and Fedora). The trick is to launch LC by a shell script (here if LC Indy 8.1.3 is installed 'for this user only'): #! /bin/bash export LC_ALL= LC_NUMERIC=C export LIBGL_DRI3_DISABLE=1 "/home//.runrev/components/livecodeindy-8.1.3.x86/LiveCode\ Indy.x86" ** Thanks Max for elaborating this shell-script! ** I used the long path for the home because some desktop environments crash when using tilde instead. A utility stack for using this together with a ".desktop"-file is available in the forum, so that one can launch after that LC "as usual": http://forums.livecode.com/viewtopic.php?p=153351#p153351 It is there also described in detail for all of you who don't use linux as the main OS, like me (but I switched already a main dev-machine to Mint-Cinnamon) and prefer to do things 'manually'. Why all the big fuss about that? Just try "LC ImageToolBox89: Basics v103" (use livecodeshare or 'Sample stacks'). If you have a decent graphic card, you'll see an image processing speed that is, compared to LC Script, _extremely_ fast. It handles images of screensize in less than one second. This is also true for convolution kernels of size up to 7x7 and color matrices. The latter is nearly finished and I'll make it soon available. This shows from my view the biggest progress we could make with image processing in LC in the last years. And LC 8/9 works fine with it, on Mac/ Win/ linux!! Once again thanks to Jonathan Lynch for hinting to this application possibility of the browser widget by his affine transform examples (see livecodeshare or 'Sample stacks'). From richmondmathewson at gmail.com Fri Apr 14 11:18:59 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 14 Apr 2017 18:18:59 +0300 Subject: mergEXT In-Reply-To: References: <0ed4554b-ed5f-8998-cfc1-1ff87e25eade@gmail.com> <30bb148a-407f-6b26-1213-3b7f8e719e07@gmail.com> <4b368f7c-4bb0-ab93-cbf2-95efd89001b7@gmail.com> <5F1D8EEE-99F2-4A38-B919-E079B9479039@appisle.net> <66877c18-478c-5f02-c16a-8ab698b36ba8@gmail.com> <38f7da2d-5f08-8419-d5c5-34fed973528c@pdslabs.net> <8b5d2f54-003f-c6f5-b8d7-0adfc3a5c775@gmail.com> Message-ID: <44a9861d-dca6-0adc-c3ca-5da66771075c@gmail.com> Great, except that the Goog Play Store lists 3 "BLE Scanner" apps . . . . . When I typed the URL into the Android tablet's browser it said "webpage unavailable". From one of these I got: Service ffe0 Characteristic ffe1. From the second: 88:1B:99:0D:70:C1. [Your one] From the third: Something about "Rssi", listing 3 devices and no UUID details. HOWEVER . . . Something called 'BLE TOOL' gave me the 88.... number and then churned for donkey's ages ..... BLE Analyzer told me the 88... number is the robot's MAC address. BLE Reader gave me the MAC Address. Bluetooth Monitor listed classes: 7936, 7936, 1f00 and a very long SerialPort Service which may be a UUID (?): 00001101-0000-1000-8000-00805f9b34fb nRF Toolbox for BLR seemed overly complex. My tablet is now full of "Blehh" :) Richmond. On 4/14/17 4:59 pm, Roger Eller via use-livecode wrote: > If you (or someone you know or work with) have an Android phone or tablet, > try this app. It will scan for nearby bluetooth devices and provide a > plethora of info (including UUID) about the devices. It even sees Monte's > "Hello World" broadcast from LiveCode when you open his MergBLE sample > stack. > > https://play.google.com/store/apps/details?id=com.macdom.ble.blescanner > > ~Roger > > > On Fri, Apr 14, 2017 at 2:33 AM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I end up with a lot of links to something called a "bluebot" which is NOT >> the "Blue-Bot": fine >> distinction, but it makes all the difference. >> >> Richmond. >> >> >> On 4/14/17 3:03 am, Phil Davis via use-livecode wrote: >> >>> I just Googled "Blue-Bot uuid" .... maybe one of the Github links will >>> point you in the right direction? >>> >>> Phil Davis >>> >>> >>> On 4/13/17 9:05 AM, Richmond Mathewson via use-livecode wrote: >>> >>>> I've just spend a fair time poking around the internet and cannot find >>>> an application >>>> that can give me the UUID numbers associated with a paired Bluetooth >>>> device . . . >>>> >>>> Richmond. >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From iowahengst at mac.com Fri Apr 14 11:19:17 2017 From: iowahengst at mac.com (Randy Hengst) Date: Fri, 14 Apr 2017 10:19:17 -0500 Subject: iOS plist concern from Apple In-Reply-To: References: <204CEF25-E647-4EF5-81B7-80E6FD193C1C@mac.com> Message-ID: Thank you, Panos. I hadn't seen that thread? but, another thought. Since I?ve included a font for the first time, I?ve been looking at that as a possible issue. I included the font in the app using the Copy Files pane of the Settings. Is there something I was supposed to reference in the ?Font Mapping File? box of the iOS pane? be well, randy Randy Hengst www.classroomFocusedSoftware.com > On Apr 14, 2017, at 10:15 AM, panagiotis merakos via use-livecode wrote: > > Hi Randy, > > See this thread: > http://forums.livecode.com/viewtopic.php?f=49&p=153346#p153346 > > This ("perBinaryResults") does not sound like a name for a plist key. > > Best, > Panos > -- > > On Fri, Apr 14, 2017 at 3:42 PM, Randy Hengst via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi All, >> >> I?ve just received an email from apple that indicated a plist problem: >> ?We are reaching out to you because we were unable to process your latest >> build uploads due to bad binaries. Specifically, your plists had an empty >> perBinaryResults key" >> >> When I open the plist from the build, I don?t see any key named >> ?perBinaryResults.? >> >> The apps referenced in the email were approved (processed) without issue 5 >> and 6 weeks ago. I have no idea what they message is referring to. As of >> right now, I don?t have any idea what to even ask apple? nor, how to fix >> the issue. >> >> My only ?new? thing was to add a font ? first time I?ve done so and I >> included the font with all of the apps listed in the email from apple. >> >> I didn?t make note as to whether I used LC 8.1.0 or 8.1.2 to build the app >> for submission. >> >> Thanks for any thoughts you can share. >> >> be well, >> randy >> >> Randy Hengst >> www.classroomFocusedSoftware.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Fri Apr 14 11:20:02 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 14 Apr 2017 18:20:02 +0300 Subject: Downloads - Immodest Proposal In-Reply-To: References: <58F09AD8.40607@pair.com> <4116668A-F827-406D-9B64-0E45CEE3966F@iotecdigital.com> Message-ID: <5cda1a53-6252-c135-5924-e98edf4bc1d2@gmail.com> On 4/14/17 6:13 pm, Mike Bonner via use-livecode wrote: > I too am not well off, but in order to "help within my means" I am paying > for membership. Its not much, but far better than 0. The only thing I > want to find out now is where to get nightly builds from. (a perk of > membership, yet no info that I can locate on how to actually find them) That would be nice. > > On Fri, Apr 14, 2017 at 9:02 AM, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On Apr 14, 2017, at 05:49 , Lagi Pittas via use-livecode < >> use-livecode at lists.runrev.com> >> wrote: >> >> >> The Differentiation of INDY with Business can stay should be SQLITE for >> INDY or at least for any future Mobile only versions. The price hike >> probably wouldn't make this sustainable) and BUSINESS allows say Oracle, >> >> >> We have no frame of reference for what it takes to run the company in >> terms of financing. Not very many of us have an idea of how many PAYING >> developers are in their base either. As a result, we have no business >> talking about how much they should charge for licensing. I am up for >> renewal on the Indy license. I am not well to do. I am balking at the price >> right now. Still, I could use the non-comm version, but then I feel like I >> am not contributing, so I am torn betwixt the two. >> >> I will probably re-up just because I would like to go to V9 in the future. >> Lots of good things there. >> >> Bob S >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From thatkeith at mac.com Fri Apr 14 11:29:16 2017 From: thatkeith at mac.com (Keith Martin) Date: Fri, 14 Apr 2017 16:29:16 +0100 Subject: Downloads - Immodest Proposal In-Reply-To: References: <58F09AD8.40607@pair.com> Message-ID: <53B9BFAE-80F1-4E0C-9EFE-0B081B81818F@mac.com> On 14 Apr 2017, at 13:49, Lagi Pittas via use-livecode wrote: > The $500,000 limit on INDY is on an > honour system anyway - LC can't tell whether I made a million last > week or > not. An interesting point. Personally, I prefer positive incentives for upgrading. Making someome think even for a second that they'll be 'penalised' for doing well and you lose your grip on their interest. This is a very jaundiced interpretation of that indy/business differentiation point, I know, but one has to put onesself into the shoes of potential customers who could easily get the wrong end of the stick. k --- Keith Martin Senior Lecturer, LCC (University of the Arts London) Technical Editor, MacUser magazine (1997-2015) http://PanoramaPhotographer.com http://thatkeith.com +44 (0)7909541365 --- From roger.e.eller at sealedair.com Fri Apr 14 11:32:04 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 14 Apr 2017 11:32:04 -0400 Subject: mergEXT In-Reply-To: <44a9861d-dca6-0adc-c3ca-5da66771075c@gmail.com> References: <0ed4554b-ed5f-8998-cfc1-1ff87e25eade@gmail.com> <30bb148a-407f-6b26-1213-3b7f8e719e07@gmail.com> <4b368f7c-4bb0-ab93-cbf2-95efd89001b7@gmail.com> <5F1D8EEE-99F2-4A38-B919-E079B9479039@appisle.net> <66877c18-478c-5f02-c16a-8ab698b36ba8@gmail.com> <38f7da2d-5f08-8419-d5c5-34fed973528c@pdslabs.net> <8b5d2f54-003f-c6f5-b8d7-0adfc3a5c775@gmail.com> <44a9861d-dca6-0adc-c3ca-5da66771075c@gmail.com> Message-ID: My link was directly to the app I used, made by Bluepixel Technology LLP. https://play.google.com/store/apps/details?id=com.macdom.ble.blescanner ~Roger On Fri, Apr 14, 2017 at 11:18 AM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > Great, except that the Goog Play Store lists 3 "BLE Scanner" apps . . . . . > > When I typed the URL into the Android tablet's browser it said "webpage > unavailable". > > From one of these I got: Service ffe0 Characteristic ffe1. > > From the second: 88:1B:99:0D:70:C1. [Your one] > > From the third: Something about "Rssi", listing 3 devices and no UUID > details. > > HOWEVER . . . > > Something called 'BLE TOOL' gave me the 88.... number and then churned > for donkey's ages ..... > > BLE Analyzer told me the 88... number is the robot's MAC address. > > BLE Reader gave me the MAC Address. > > Bluetooth Monitor listed classes: 7936, 7936, 1f00 and a very long > SerialPort Service > which may be a UUID (?): 00001101-0000-1000-8000-00805f9b34fb > > nRF Toolbox for BLR seemed overly complex. > > My tablet is now full of "Blehh" :) > > Richmond. > > > > > > > On 4/14/17 4:59 pm, Roger Eller via use-livecode wrote: > >> If you (or someone you know or work with) have an Android phone or tablet, >> try this app. It will scan for nearby bluetooth devices and provide a >> plethora of info (including UUID) about the devices. It even sees Monte's >> "Hello World" broadcast from LiveCode when you open his MergBLE sample >> stack. >> >> https://play.google.com/store/apps/details?id=com.macdom.ble.blescanner >> >> ~Roger >> >> >> On Fri, Apr 14, 2017 at 2:33 AM, Richmond Mathewson via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> I end up with a lot of links to something called a "bluebot" which is NOT >>> the "Blue-Bot": fine >>> distinction, but it makes all the difference. >>> >>> Richmond. >>> >>> >>> On 4/14/17 3:03 am, Phil Davis via use-livecode wrote: >>> >>> I just Googled "Blue-Bot uuid" .... maybe one of the Github links will >>>> point you in the right direction? >>>> >>>> Phil Davis >>>> >>>> >>>> On 4/13/17 9:05 AM, Richmond Mathewson via use-livecode wrote: >>>> >>>> I've just spend a fair time poking around the internet and cannot find >>>>> an application >>>>> that can give me the UUID numbers associated with a paired Bluetooth >>>>> device . . . >>>>> >>>>> Richmond. >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> >>>>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From merakosp at gmail.com Fri Apr 14 11:34:48 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 14 Apr 2017 16:34:48 +0100 Subject: iOS plist concern from Apple In-Reply-To: References: <204CEF25-E647-4EF5-81B7-80E6FD193C1C@mac.com> Message-ID: Hi Randy, Just adding the custom font file in the Copy Files will work, but you might see a long delay on app startup. This is because iOS looks for the PostScript name of the font. The "Font Mapping File" box is needed for providing a mapping of the font name to its actual PostScript name (as referenced from the Font Book). See the release note of this feature for a better explanation :) https://github.com/livecodesebastien/livecode/blob/6188ff2f980aa86e454bd16b5e87a6edb2bdea7a/docs/notes/feature-fontmap.md Best, Panos -- On Fri, Apr 14, 2017 at 4:19 PM, Randy Hengst via use-livecode < use-livecode at lists.runrev.com> wrote: > Thank you, Panos. I hadn't seen that thread? but, another thought. Since > I?ve included a font for the first time, I?ve been looking at that as a > possible issue. > > I included the font in the app using the Copy Files pane of the Settings. > Is there something I was supposed to reference in the ?Font Mapping File? > box of the iOS pane? > > be well, > randy > > Randy Hengst > www.classroomFocusedSoftware.com > > > On Apr 14, 2017, at 10:15 AM, panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi Randy, > > > > See this thread: > > http://forums.livecode.com/viewtopic.php?f=49&p=153346#p153346 > > > > This ("perBinaryResults") does not sound like a name for a plist key. > > > > Best, > > Panos > > -- > > > > On Fri, Apr 14, 2017 at 3:42 PM, Randy Hengst via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Hi All, > >> > >> I?ve just received an email from apple that indicated a plist problem: > >> ?We are reaching out to you because we were unable to process your > latest > >> build uploads due to bad binaries. Specifically, your plists had an > empty > >> perBinaryResults key" > >> > >> When I open the plist from the build, I don?t see any key named > >> ?perBinaryResults.? > >> > >> The apps referenced in the email were approved (processed) without > issue 5 > >> and 6 weeks ago. I have no idea what they message is referring to. As of > >> right now, I don?t have any idea what to even ask apple? nor, how to fix > >> the issue. > >> > >> My only ?new? thing was to add a font ? first time I?ve done so and I > >> included the font with all of the apps listed in the email from apple. > >> > >> I didn?t make note as to whether I used LC 8.1.0 or 8.1.2 to build the > app > >> for submission. > >> > >> Thanks for any thoughts you can share. > >> > >> be well, > >> randy > >> > >> Randy Hengst > >> www.classroomFocusedSoftware.com > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Fri Apr 14 12:16:18 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 14 Apr 2017 19:16:18 +0300 Subject: mergEXT In-Reply-To: References: <0ed4554b-ed5f-8998-cfc1-1ff87e25eade@gmail.com> <30bb148a-407f-6b26-1213-3b7f8e719e07@gmail.com> <4b368f7c-4bb0-ab93-cbf2-95efd89001b7@gmail.com> <5F1D8EEE-99F2-4A38-B919-E079B9479039@appisle.net> <66877c18-478c-5f02-c16a-8ab698b36ba8@gmail.com> <38f7da2d-5f08-8419-d5c5-34fed973528c@pdslabs.net> <8b5d2f54-003f-c6f5-b8d7-0adfc3a5c775@gmail.com> <44a9861d-dca6-0adc-c3ca-5da66771075c@gmail.com> Message-ID: <695cad63-a083-8963-9be8-a2e187476366@gmail.com> I worked that out by looking the URL up on my Mac: Thanks. The Android tablet browser, however . . . . This app only gives me the Blue-bot's MAC address and something called "RAW DATA": 0x0201020809426C7565426F740303F0FF Ultimately you did help me, but in an unexpected way insofar as your message stimulated me to start fooling around with one of my Android devices, and I did find something that looks very much like the robot's UUID with another app: 00001101-0000-1000-8000-00805f9b34fb Whether that will be "enough" has yet to be seen. Best, Richmond. On 4/14/17 6:32 pm, Roger Eller via use-livecode wrote: > My link was directly to the app I used, made by Bluepixel Technology LLP. > > https://play.google.com/store/apps/details?id=com.macdom.ble.blescanner > > ~Roger > > > On Fri, Apr 14, 2017 at 11:18 AM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Great, except that the Goog Play Store lists 3 "BLE Scanner" apps . . . . . >> >> When I typed the URL into the Android tablet's browser it said "webpage >> unavailable". >> >> From one of these I got: Service ffe0 Characteristic ffe1. >> >> From the second: 88:1B:99:0D:70:C1. [Your one] >> >> From the third: Something about "Rssi", listing 3 devices and no UUID >> details. >> >> HOWEVER . . . >> >> Something called 'BLE TOOL' gave me the 88.... number and then churned >> for donkey's ages ..... >> >> BLE Analyzer told me the 88... number is the robot's MAC address. >> >> BLE Reader gave me the MAC Address. >> >> Bluetooth Monitor listed classes: 7936, 7936, 1f00 and a very long >> SerialPort Service >> which may be a UUID (?): 00001101-0000-1000-8000-00805f9b34fb >> >> nRF Toolbox for BLR seemed overly complex. >> >> My tablet is now full of "Blehh" :) >> >> Richmond. >> >> >> >> >> >> >> On 4/14/17 4:59 pm, Roger Eller via use-livecode wrote: >> >>> If you (or someone you know or work with) have an Android phone or tablet, >>> try this app. It will scan for nearby bluetooth devices and provide a >>> plethora of info (including UUID) about the devices. It even sees Monte's >>> "Hello World" broadcast from LiveCode when you open his MergBLE sample >>> stack. >>> >>> https://play.google.com/store/apps/details?id=com.macdom.ble.blescanner >>> >>> ~Roger >>> >>> >>> On Fri, Apr 14, 2017 at 2:33 AM, Richmond Mathewson via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>> I end up with a lot of links to something called a "bluebot" which is NOT >>>> the "Blue-Bot": fine >>>> distinction, but it makes all the difference. >>>> >>>> Richmond. >>>> >>>> >>>> On 4/14/17 3:03 am, Phil Davis via use-livecode wrote: >>>> >>>> I just Googled "Blue-Bot uuid" .... maybe one of the Github links will >>>>> point you in the right direction? >>>>> >>>>> Phil Davis >>>>> >>>>> >>>>> On 4/13/17 9:05 AM, Richmond Mathewson via use-livecode wrote: >>>>> >>>>> I've just spend a fair time poking around the internet and cannot find >>>>>> an application >>>>>> that can give me the UUID numbers associated with a paired Bluetooth >>>>>> device . . . >>>>>> >>>>>> Richmond. >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> >>>>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Apr 14 13:52:45 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Apr 2017 17:52:45 +0000 Subject: resumeStack with selection tool? Message-ID: <3B265E49-FED2-4CEA-BF92-C17235FF6952@iotecdigital.com> Hi all. I'm getting the resumeStack message sent even when I have the pointer tool selected. This wouldn't be an issue normally, except in a resumeStack handler I am sending selectionChanged to a datagrid, and I'm getting an error that the object doesn't exist. I then have to cancel the script, and now whichever object I had selected has moved a significant distance, often out of the bounds of the window, so that I have to set the loc of it to manipulate it again! Very odd. Should the resumeStack message even get sent with the pointer tool selected?? Bob S From bobsneidar at iotecdigital.com Fri Apr 14 13:56:34 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Apr 2017 17:56:34 +0000 Subject: Livecode Community 8.1.3 can't install Message-ID: <071896EF-2213-4A5E-9151-88FDC3723A03@iotecdigital.com> Anyone using LC Community 8.1.3? I am getting Cannot launch installer slave when I attempt to install in in Windows. Mac worked fine. Bob S From curry at pair.com Fri Apr 14 14:18:11 2017 From: curry at pair.com (Curry Kenworthy) Date: Fri, 14 Apr 2017 14:18:11 -0400 Subject: Downloads - Immodest Proposal In-Reply-To: <4116668A-F827-406D-9B64-0E45CEE3966F@iotecdigital.com> References: <4116668A-F827-406D-9B64-0E45CEE3966F@iotecdigital.com> Message-ID: <58F11263.6070604@pair.com> Bob: > As a result, we have no business talking about how much they > should charge for licensing. I am up for renewal on the Indy > license. I am not well to do. I am balking at the price right > now. Still, I could use the non-comm version, but then I feel > like I am not contributing, so I am torn betwixt the two. To promote LiveCode to various people, I would also love to see a lower entry point on Indy or another closed source edition. Like you, I don't presume to know or wish to control how the business should be run or priced. But I've known and worked with enough people on smaller budgets to have no doubt that price point affects some of us, and people have very different situations and mindsets. This has been discussed at great length before, the hobbyist and so on, and it's so true that for many people the free version does the job. Problem solved. For many others, having a business means their ducks are sufficiently in a row that $999 is a no-brainer price. Even better. And yes, it is an amazing price for all the technology and platforms included. All true, and yet repeating these often enough can lead people to buy into the fallacy that this covers the entire range of interested LiveCode users. Unfortunately I happen to know that it doesn't. There are people who have their own reasons for wanting something more than free, but the current Indy price makes that a pretty big jump. Obviously wannabe iOS publishers on a shoestring is one group, although there are others I could name, including those with more proprietary ambition than cash in the short term. It's not my place to judge or defend these people and their reasons, any more than LiveCode's decisions and their model. But I would still like to have those people onboard, so I would love to see anything to that end, such as an Indy special or perhaps another column in the price continuum of free, ___, 1K, 2K. Lagi's point about impulse buys was interesting too. So long as an edition reached those people I wouldn't really mind which method it would use. In your own particular case, if the open source version sufficed, you could still voluntarily contribute a certain amount annually. But I would hate to see anyone leave the Indy edition, which is my own personal favorite! No expectations of easy agreement, especially on this of all things. But there's value in planting a seed now and then and seeing what other people think too. The future will sort it all out. I've just burned through another budget rather quickly, my public communication time, so I'll duck back to work. I enjoyed the chat very much as always! Happy coding. :) 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 bobsneidar at iotecdigital.com Fri Apr 14 15:44:18 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Apr 2017 19:44:18 +0000 Subject: Livecode Community 8.1.3 can't install In-Reply-To: <071896EF-2213-4A5E-9151-88FDC3723A03@iotecdigital.com> References: <071896EF-2213-4A5E-9151-88FDC3723A03@iotecdigital.com> Message-ID: <653281D3-8207-406B-B148-B310C353C630@iotecdigital.com> NVM sandboxing issue. Moved the the root of the C drive and all works as advertised. Bob S > On Apr 14, 2017, at 10:56 , Bob Sneidar wrote: > > Anyone using LC Community 8.1.3? I am getting Cannot launch installer slave when I attempt to install in in Windows. Mac worked fine. > > Bob S > > From jacque at hyperactivesw.com Sat Apr 15 00:04:12 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 14 Apr 2017 23:04:12 -0500 Subject: [OT] Phishing prevention Message-ID: <5b17cfb0-1455-461d-c1e6-acb273bfdec9@hyperactivesw.com> This seems important enough to spread around: I use both Firefox and Thunderbird and have reconfigured both. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bmmeili at swissonline.ch Sat Apr 15 09:11:15 2017 From: bmmeili at swissonline.ch (martin meili) Date: Sat, 15 Apr 2017 15:11:15 +0200 Subject: type the label of me Message-ID: Hi I?ve got a vocabulary trainer for French. To make it easier for the students to produce letters with accents such as ??? (ascii-code 142), ??? and ??? I?ve a number of buttons the label of which is the accented letter. As long as I use LC < 7.0 the script ?type the label of me? works fine - producing the accented letter just at the position of the blinking cursor in a textfield -, but doesn?t when I use LC >= 7. With normal letters such as ?l? or ? C? ? the script works fine using any LC version. The script ?put "C? ? after text of field? also works fine using any version, but here the letter isn?t in every case in its right place. Any ideas I should change so that I can make my standalones using LC 8.x.x.? Martin From jonathandlynch at gmail.com Sat Apr 15 11:30:51 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Sat, 15 Apr 2017 11:30:51 -0400 Subject: Suggestions for LiveCode (the company) to increase its revenue Message-ID: Everyone who uses LiveCode benefits if the company grows and thus is able to improve the product faster. I thought some of us might have original ideas that could help the company. If nothing else, we might give them useful ideas. So... 1. What offerings would you pay for, in addition to any licensing fees? 2. Do you have any clever ideas for new revenue streams? 3. What modifications to the main product would, in your opinion, make the product appealing to a larger customer base? I encourage everyone to make suggestions. Here are some from me: 1. I would pay more for a promotional system for the apps we make, mainly because I suck at marketing. I don't know what this would entail. 2. I suggest a core suite of business applications. The executable would be a player application that plays LC stacks. The company could sell the suite and LC developers could sell their services in making modifications or additional apps to go with the core suite. 3. I am broken record on this issue, but I really think that if LC supercharged the browser widget, they could provide a great platform (better than the current options) for JavaScript developers to make standalone apps. What suggestions do you have? Sent from my iPhone From livfoss at mac.com Sat Apr 15 11:33:54 2017 From: livfoss at mac.com (Graham Samuel) Date: Sat, 15 Apr 2017 17:33:54 +0200 Subject: type the label of me In-Reply-To: References: Message-ID: <043A46CA-6F9A-4EC1-944C-EAFFF0122853@mac.com> Hi Martin It appears to me that you have found a bug, probably something to do with the switch to Unicode in the LC engine. I ran a similar script in LC 8.1.4 rc1 - on a Mac, as it happens. In my button the label is ?Ad?lie?. The output resulting from the ?type? command is Adlie and the count of characters in the field is 5, not 6 as it should be. If I capture the characters being ?typed? using ?rawKeyDown?, I get 65 100 16777449 108 105 101 So the accented letter creates what appears to be a Unicode character, except that I can?t find a Unicode character of that value after some rather limited Googling. The other characters correspond to the relevant ASCII characters. Can someone else confirm this, and it so, I?ll be happy to report it as a bug. Graham > On 15 Apr 2017, at 15:11, martin meili via use-livecode wrote: > > Hi > I?ve got a vocabulary trainer for French. > > To make it easier for the students to produce letters with accents such as ??? (ascii-code 142), ??? and ??? I?ve a number of buttons the label of which is the accented letter. As long as I use LC < 7.0 the script ?type the label of me? works fine - producing the accented letter just at the position of the blinking cursor in a textfield -, but doesn?t when I use LC >= 7. With normal letters such as ?l? or ? C? ? the script works fine using any LC version. > > The script ?put "C? ? after text of field? also works fine using any version, but here the letter isn?t in every case in its right place. > > Any ideas I should change so that I can make my standalones using LC 8.x.x.? > > Martin > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Sat Apr 15 12:22:09 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 15 Apr 2017 19:22:09 +0300 Subject: type the label of me In-Reply-To: <043A46CA-6F9A-4EC1-944C-EAFFF0122853@mac.com> References: <043A46CA-6F9A-4EC1-944C-EAFFF0122853@mac.com> Message-ID: I've just had a go with this too, and got exactly the same result ("Adlie") which would seem to suggest that type has not been "Unicodized" yet. I have found an effective workaround that goes like this: (script of a button with the label "Ad?lie") on mouseUp put 1 into KK repeat until KK > 6 put char KK of the label of me after fld "f1" wait 30 ticks add 1 to KK end repeat end mouseUp Richmond. On 4/15/17 6:33 pm, Graham Samuel via use-livecode wrote: > Hi Martin > > It appears to me that you have found a bug, probably something to do with the switch to Unicode in the LC engine. > > I ran a similar script in LC 8.1.4 rc1 - on a Mac, as it happens. > > In my button the label is ?Ad?lie?. The output resulting from the ?type? command is > Adlie > > and the count of characters in the field is 5, not 6 as it should be. > > If I capture the characters being ?typed? using ?rawKeyDown?, I get > > 65 > 100 > 16777449 > 108 > 105 > 101 > > So the accented letter creates what appears to be a Unicode character, except that I can?t find a Unicode character of that value after some rather limited Googling. The other characters correspond to the relevant ASCII characters. > > Can someone else confirm this, and it so, I?ll be happy to report it as a bug. > > Graham > > > >> On 15 Apr 2017, at 15:11, martin meili via use-livecode wrote: >> >> Hi >> I?ve got a vocabulary trainer for French. >> >> To make it easier for the students to produce letters with accents such as ??? (ascii-code 142), ??? and ??? I?ve a number of buttons the label of which is the accented letter. As long as I use LC < 7.0 the script ?type the label of me? works fine - producing the accented letter just at the position of the blinking cursor in a textfield -, but doesn?t when I use LC >= 7. With normal letters such as ?l? or ? C? ? the script works fine using any LC version. >> >> The script ?put "C? ? after text of field? also works fine using any version, but here the letter isn?t in every case in its right place. >> >> Any ideas I should change so that I can make my standalones using LC 8.x.x.? >> >> Martin >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 15 12:32:01 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 15 Apr 2017 11:32:01 -0500 Subject: type the label of me In-Reply-To: References: Message-ID: <15b724fd818.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> As a workaround, try: put "C?" into the selection -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On April 15, 2017 8:13:22 AM martin meili via use-livecode wrote: > Hi > I?ve got a vocabulary trainer for French. > > To make it easier for the students to produce letters with accents such as > ??? (ascii-code 142), ??? and ??? I?ve a number of buttons the label of > which is the accented letter. As long as I use LC < 7.0 the script ?type > the label of me? works fine - producing the accented letter just at the > position of the blinking cursor in a textfield -, but doesn?t when I use LC > >= 7. With normal letters such as ?l? or ? C? ? the script works fine using > any LC version. > > The script ?put "C? ? after text of field? also works fine using any > version, but here the letter isn?t in every case in its right place. > > Any ideas I should change so that I can make my standalones using LC 8.x.x.? > > Martin > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jonathandlynch at gmail.com Sat Apr 15 12:35:15 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Sat, 15 Apr 2017 12:35:15 -0400 Subject: type the label of me In-Reply-To: References: Message-ID: <2B8F7FD2-97EE-4323-82B7-2E94FA4AED1C@gmail.com> Can you put the character into the selected chunk, or the selection, or something like that? Sent from my iPhone > On Apr 15, 2017, at 9:11 AM, martin meili via use-livecode wrote: > > Hi > I?ve got a vocabulary trainer for French. > > To make it easier for the students to produce letters with accents such as ??? (ascii-code 142), ??? and ??? I?ve a number of buttons the label of which is the accented letter. As long as I use LC < 7.0 the script ?type the label of me? works fine - producing the accented letter just at the position of the blinking cursor in a textfield -, but doesn?t when I use LC >= 7. With normal letters such as ?l? or ? C? ? the script works fine using any LC version. > > The script ?put "C? ? after text of field? also works fine using any version, but here the letter isn?t in every case in its right place. > > Any ideas I should change so that I can make my standalones using LC 8.x.x.? > > Martin > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From DixonJA at hotmail.co.uk Sat Apr 15 12:52:19 2017 From: DixonJA at hotmail.co.uk (John Dixon) Date: Sat, 15 Apr 2017 16:52:19 +0000 Subject: accents, graves & other funny charecters... Message-ID: I always struggle with , or I should say with how liveCode and unicode interact and how many times it changes about hoow to use it as always left me confused... Now, in fld "coord", I have ... 49.196839,-0.907385 I throw this at google and it returns the address... Route Foresti??re de la R??serve, 50680 Cerisy-la-For??t, France, Can someone please show me, tell me... even shout at me ... what do I need to do to sort out these 'funny charecters' ? on mouseUp put "http://maps.googleapis.com/maps/api/geocode/json?latlng=&sensor=true" into theURL replace "" with fld "coord" in theURL put URL theURL into temp put lineOffset("formatted_address",temp) into red set itemdel to ":" put item 2 of line red of temp into theAddress replace quote with empty in theAddress delete char 1 of theAddress put boo into fld 1 end mouseUp dixie From colinholgate at gmail.com Sat Apr 15 13:19:24 2017 From: colinholgate at gmail.com (Colin Holgate) Date: Sat, 15 Apr 2017 10:19:24 -0700 Subject: accents, graves & other funny charecters... In-Reply-To: References: Message-ID: Replacing the characters is too late, although it may be possible if you figure out every accented character?s alternate non-unicode variation. See this article for how to fix the text before you use it: http://lessons.livecode.com/m/4071/l/6930-how-do-i-use-utf-8-text-with-fields You will find though that other things fail to work with unicode. Also, the conversion that article suggests is giving back ? instead of ?. From matthias_livecode_150811 at m-r-d.de Sat Apr 15 13:23:00 2017 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sat, 15 Apr 2017 19:23:00 +0200 Subject: accents, graves & other funny charecters... In-Reply-To: References: Message-ID: <349B11EC-2059-4E15-AA5E-D5AB9B5134CE@m-r-d.de> I?ve entered the following text Route Foresti??re de la R??serve, 50680 Cerisy-la-For??t, France into Ultraedit and set the encoding to UTF-8 i get this here Route Foresti?re de la R?serve, 50680 Cerisy-la-For?t, France , which is the correct spelling then. It seems your text is in MacRoman and needs to be converter to UTF-8 to get it displayed correctly. But don?t ask me how.., i?ve always problems when it comes to encoding. ;) Matthias Rebbe Bramkampsieke 13 32312 L?bbecke Tel +49 5741 310000 +49 160 5504462 Fax: +49 5741 310002 eMail: matthias at m-r-d.de BR5 Konverter - BR5 -> MP3 > Am 15.04.2017 um 18:52 schrieb John Dixon via use-livecode >: > > I always struggle with , or I should say with how liveCode and unicode interact and how many times it changes about hoow to use it as always left me confused... > > > Now, in fld "coord", I have ... 49.196839,-0.907385 > > I throw this at google and it returns the address... > > Route Foresti??re de la R??serve, 50680 Cerisy-la-For??t, France, > > Can someone please show me, tell me... even shout at me ... what do I need to do to sort out these 'funny charecters' ? > > > on mouseUp > > put "http://maps.googleapis.com/maps/api/geocode/json?latlng=&sensor=true " into theURL > > replace "" with fld "coord" in theURL > > put URL theURL into temp > > put lineOffset("formatted_address",temp) into red > > set itemdel to ":" > > put item 2 of line red of temp into theAddress > > replace quote with empty in theAddress > > delete char 1 of theAddress > > put boo into fld 1 > > end mouseUp > > > dixie > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Apr 15 13:36:34 2017 From: klaus at major-k.de (Klaus major-k) Date: Sat, 15 Apr 2017 19:36:34 +0200 Subject: accents, graves & other funny charecters... In-Reply-To: <349B11EC-2059-4E15-AA5E-D5AB9B5134CE@m-r-d.de> References: <349B11EC-2059-4E15-AA5E-D5AB9B5134CE@m-r-d.de> Message-ID: <70B18B50-342F-4903-AB22-50F975B7D885@major-k.de> Hi all, we solved it by replacing the last line with: ... ## put boo into fld 1 put textdecode(theAddress,"utf-8") into fld 1 end mouseup :-) > Am 15.04.2017 um 19:23 schrieb Matthias Rebbe via use-livecode : > > I?ve entered the following text > > Route Foresti??re de la R??serve, 50680 Cerisy-la-For??t, France > into Ultraedit and set the encoding to UTF-8 i get this here > Route Foresti?re de la R?serve, 50680 Cerisy-la-For?t, France > , which is the correct spelling then. > It seems your text is in MacRoman and needs to be converter to UTF-8 to get it displayed correctly. > But don?t ask me how.., i?ve always problems when it comes to encoding. ;) > > Matthias Rebbe >> Am 15.04.2017 um 18:52 schrieb John Dixon via use-livecode >: >> ... >> on mouseUp >> put "http://maps.googleapis.com/maps/api/geocode/json?latlng=&sensor=true " into theURL >> replace "" with fld "coord" in theURL >> put URL theURL into temp >> put lineOffset("formatted_address",temp) into red >> set itemdel to ":" >> put item 2 of line red of temp into theAddress >> replace quote with empty in theAddress >> delete char 1 of theAddress >> put boo into fld 1 >> end mouseUp Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From DixonJA at hotmail.co.uk Sat Apr 15 13:37:12 2017 From: DixonJA at hotmail.co.uk (John Dixon) Date: Sat, 15 Apr 2017 17:37:12 +0000 Subject: accents, graves & other funny charecters... In-Reply-To: <349B11EC-2059-4E15-AA5E-D5AB9B5134CE@m-r-d.de> References: , <349B11EC-2059-4E15-AA5E-D5AB9B5134CE@m-r-d.de> Message-ID: Hi Colin & Matthias... Klaus solved it with this oneliner... put textdecode(theAddress,"utf-8") into fld 1 which works for me with the addresses that are being thrown back at me from google... Dixie ________________________________ From: use-livecode on behalf of Matthias Rebbe via use-livecode Sent: 15 April 2017 18:23 To: How to use LiveCode Cc: Matthias Rebbe Subject: Re: accents, graves & other funny charecters... I?ve entered the following text Route Foresti??re de la R??serve, 50680 Cerisy-la-For??t, France into Ultraedit and set the encoding to UTF-8 i get this here Route Foresti?re de la R?serve, 50680 Cerisy-la-For?t, France , which is the correct spelling then. It seems your text is in MacRoman and needs to be converter to UTF-8 to get it displayed correctly. But don?t ask me how.., i?ve always problems when it comes to encoding. ;) Matthias Rebbe Bramkampsieke 13 32312 L?bbecke Tel +49 5741 310000 +49 160 5504462 Fax: +49 5741 310002 eMail: matthias at m-r-d.de BR5 Konverter - BR5 -> MP3 > Am 15.04.2017 um 18:52 schrieb John Dixon via use-livecode >: > > I always struggle with , or I should say with how liveCode and unicode interact and how many times it changes about hoow to use it as always left me confused... > > > Now, in fld "coord", I have ... 49.196839,-0.907385 > > I throw this at google and it returns the address... > > Route Foresti??re de la R??serve, 50680 Cerisy-la-For??t, France, > > Can someone please show me, tell me... even shout at me ... what do I need to do to sort out these 'funny charecters' ? > > > on mouseUp > > put "http://maps.googleapis.com/maps/api/geocode/json?latlng=&sensor=true " into theURL > > replace "" with fld "coord" in theURL > > put URL theURL into temp > > put lineOffset("formatted_address",temp) into red > > set itemdel to ":" > > put item 2 of line red of temp into theAddress > > replace quote with empty in theAddress > > delete char 1 of theAddress > > put boo into fld 1 > > end mouseUp > > > dixie > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at 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 Apr 15 16:08:07 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 15 Apr 2017 23:08:07 +0300 Subject: Italic text within fields on Mac OS Message-ID: <1607b4f0-f16d-e2e9-dfb6-aca714499996@gmail.com> Doesn't work. Richmond. From ambassador at fourthworld.com Sat Apr 15 18:39:58 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 15 Apr 2017 15:39:58 -0700 Subject: Downloads - Immodest Proposal In-Reply-To: <92CA088A-B460-4FA1-AE7C-39DD2EFBF27A@gmail.com> References: <92CA088A-B460-4FA1-AE7C-39DD2EFBF27A@gmail.com> Message-ID: <22184f0a-009a-96c3-81df-284921de7dd0@fourthworld.com> jonathandlynch wrote: > I feel that livecode needs a suite of adaptable commercial software, > so that people become aware of LC through using that software, in > much the same way people became aware of VBA through using MS Word. Here's a start: https://filemaker.livecode.com/ -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ahsoftware at sonic.net Sat Apr 15 19:48:43 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 15 Apr 2017 16:48:43 -0700 Subject: Downloads - Immodest Proposal In-Reply-To: <22184f0a-009a-96c3-81df-284921de7dd0@fourthworld.com> References: <92CA088A-B460-4FA1-AE7C-39DD2EFBF27A@gmail.com> <22184f0a-009a-96c3-81df-284921de7dd0@fourthworld.com> Message-ID: <6df1516e-8b27-0d91-404d-971f4842ac12@sonic.net> On 04/15/2017 03:39 PM, Richard Gaskin via use-livecode wrote: > Here's a start: > https://filemaker.livecode.com/ > Hmmm... I'd forgotten about that. Any idea what the licensing is like? -- Mark Wieder ahsoftware at gmail.com From ambassador at fourthworld.com Sat Apr 15 20:24:09 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 15 Apr 2017 17:24:09 -0700 Subject: Downloads - Immodest Proposal In-Reply-To: <6df1516e-8b27-0d91-404d-971f4842ac12@sonic.net> References: <6df1516e-8b27-0d91-404d-971f4842ac12@sonic.net> Message-ID: Mark Wieder wrote: > On 04/15/2017 03:39 PM, Richard Gaskin via use-livecode wrote: > >> Here's a start: >> https://filemaker.livecode.com/ >> > > Hmmm... I'd forgotten about that. > Any idea what the licensing is like? Nada. The pricing is shown (seems to be per # users, but not sure if that's accounts or concurrent), but I couldn't turn up the terms. There might be something in these resources: https://filemaker.livecode.com/support/ -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From livfoss at mac.com Sun Apr 16 03:55:15 2017 From: livfoss at mac.com (Graham Samuel) Date: Sun, 16 Apr 2017 09:55:15 +0200 Subject: type the label of me In-Reply-To: <043A46CA-6F9A-4EC1-944C-EAFFF0122853@mac.com> References: <043A46CA-6F9A-4EC1-944C-EAFFF0122853@mac.com> Message-ID: <730BE503-8FED-45DF-9136-8A0AD3802D05@mac.com> I confirm that this is a bug. It has been reported before as bug 9294 with the status FIXED, so I have written another report to reopen it. This has the number 19593 - the mothership will presumably acknowledge it as a duplicate of 9294 in due course. Graham Happy Easter to all (yes, including those who don?t celebrate Easter or do but not on this day? probably a disguised cheese remark, but let it go.) > On 15 Apr 2017, at 17:33, Graham Samuel via use-livecode wrote: > > Hi Martin > > It appears to me that you have found a bug, probably something to do with the switch to Unicode in the LC engine. > > I ran a similar script in LC 8.1.4 rc1 - on a Mac, as it happens. > > In my button the label is ?Ad?lie?. The output resulting from the ?type? command is > Adlie > > and the count of characters in the field is 5, not 6 as it should be. > > If I capture the characters being ?typed? using ?rawKeyDown?, I get > > 65 > 100 > 16777449 > 108 > 105 > 101 > > So the accented letter creates what appears to be a Unicode character, except that I can?t find a Unicode character of that value after some rather limited Googling. The other characters correspond to the relevant ASCII characters. > > Can someone else confirm this, and it so, I?ll be happy to report it as a bug. > > Graham > > > >> On 15 Apr 2017, at 15:11, martin meili via use-livecode wrote: >> >> Hi >> I?ve got a vocabulary trainer for French. >> >> To make it easier for the students to produce letters with accents such as ??? (ascii-code 142), ??? and ??? I?ve a number of buttons the label of which is the accented letter. As long as I use LC < 7.0 the script ?type the label of me? works fine - producing the accented letter just at the position of the blinking cursor in a textfield -, but doesn?t when I use LC >= 7. With normal letters such as ?l? or ? C? ? the script works fine using any LC version. >> >> The script ?put "C? ? after text of field? also works fine using any version, but here the letter isn?t in every case in its right place. >> >> Any ideas I should change so that I can make my standalones using LC 8.x.x.? >> >> Martin >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Apr 16 06:01:09 2017 From: preid at reidit.co.uk (Peter Reid) Date: Sun, 16 Apr 2017 11:01:09 +0100 Subject: Setting LD_LIBRARY_PATH Message-ID: Has anyone successfully set the environment variable LD_LIBRARY_PATH for Mac/Linux apps? I've found that I can set the variable using: put tValue into $LD_LIBRARY_PATH and it appears to be set as far as the IDE is concerned. However, if I use the shell command to display the value of this variable put shell("printenv") or put shell("echo $LD_LIBRARY_PATH") it's empty! Similarly, if I try to set this in the shell script: put shell("export LD_LIBRARY_PATH=" & quote & tValue & quote & return & "printenv") it doesn't work either! Other environment variables seem to be OK. Any suggestions please? Peter -- Peter Reid Loughborough, UK From bmmeili at swissonline.ch Sun Apr 16 07:25:32 2017 From: bmmeili at swissonline.ch (Martin Meili) Date: Sun, 16 Apr 2017 13:25:32 +0200 Subject: type the label of me Message-ID: Put "?" into the selection does the trick. Many thanks Jacqueline! Martin Von meinem iPad gesendet From harrison at all-auctions.com Sun Apr 16 09:59:43 2017 From: harrison at all-auctions.com (Rick Harrison) Date: Sun, 16 Apr 2017 09:59:43 -0400 Subject: Italic text within fields on Mac OS In-Reply-To: <1607b4f0-f16d-e2e9-dfb6-aca714499996@gmail.com> References: <1607b4f0-f16d-e2e9-dfb6-aca714499996@gmail.com> Message-ID: <71701FC9-F5E6-4004-868B-AD3D59958FA0@all-auctions.com> Hi Richmond, It works just fine here. I?m using LiveCode 8.1.3 in MacOS Sierra. I was able to do it both manually and programatically. Here?s the code. on mouseUp set the textStyle of field "TextField1" of this card to italic put "Hi there" into field "TextField1" of this card end mouseUp Good luck! Rick > On Apr 15, 2017, at 4:08 PM, Richmond Mathewson via use-livecode wrote: > > Doesn't work. > > Richmond. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Sun Apr 16 10:05:44 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 16 Apr 2017 17:05:44 +0300 Subject: Italic text within fields on Mac OS In-Reply-To: <71701FC9-F5E6-4004-868B-AD3D59958FA0@all-auctions.com> References: <1607b4f0-f16d-e2e9-dfb6-aca714499996@gmail.com> <71701FC9-F5E6-4004-868B-AD3D59958FA0@all-auctions.com> Message-ID: <0e6eba52-c171-c217-b96a-19a713495e13@gmail.com> Aha: I was trying to set it through the properties palette . . . Richmond. On 4/16/17 4:59 pm, Rick Harrison via use-livecode wrote: > Hi Richmond, > > It works just fine here. > I?m using LiveCode 8.1.3 > in MacOS Sierra. > > I was able to do it both manually and programatically. > Here?s the code. > > on mouseUp > set the textStyle of field "TextField1" of this card to italic > > put "Hi there" into field "TextField1" of this card > > end mouseUp > > Good luck! > > Rick > >> On Apr 15, 2017, at 4:08 PM, Richmond Mathewson via use-livecode wrote: >> >> Doesn't work. >> >> 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 dunbarx at aol.com Sun Apr 16 10:30:59 2017 From: dunbarx at aol.com (dunbarx) Date: Sun, 16 Apr 2017 07:30:59 -0700 (PDT) Subject: Italic text within fields on Mac OS In-Reply-To: <0e6eba52-c171-c217-b96a-19a713495e13@gmail.com> References: <1607b4f0-f16d-e2e9-dfb6-aca714499996@gmail.com> <71701FC9-F5E6-4004-868B-AD3D59958FA0@all-auctions.com> <0e6eba52-c171-c217-b96a-19a713495e13@gmail.com> Message-ID: <1492353059934-4714026.post@n4.nabble.com> This may call for a discussion, a dedicated lesson maybe, especially for newbies, about the difference between setting the textStyle of actual text within a field as opposed to the field itself. It touches on inheritance. But I bet that many have struggled with what they see as impossible or at least inconsistent results when they set text properties either "globally" or with actual selected text within a field/\. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Italic-text-within-fields-on-Mac-OS-tp4714017p4714026.html Sent from the Revolution - User mailing list archive at Nabble.com. From ahsoftware at sonic.net Sun Apr 16 11:20:43 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 16 Apr 2017 08:20:43 -0700 Subject: [OT] Phishing prevention In-Reply-To: <5b17cfb0-1455-461d-c1e6-acb273bfdec9@hyperactivesw.com> References: <5b17cfb0-1455-461d-c1e6-acb273bfdec9@hyperactivesw.com> Message-ID: On 04/14/2017 09:04 PM, J. Landman Gay via use-livecode wrote: > This seems important enough to spread around: > > Thanks for the alert. The Punycode Alert extension for Chrome also catches these. Or warns you, at any rate. -- Mark Wieder ahsoftware at gmail.com From bodine at bodinetraininggames.com Sun Apr 16 11:20:16 2017 From: bodine at bodinetraininggames.com (tbodine) Date: Sun, 16 Apr 2017 08:20:16 -0700 (PDT) Subject: Suggestions for LiveCode (the company) to increase its revenue In-Reply-To: References: Message-ID: <1492356016572-4714028.post@n4.nabble.com> Code signing can be a major pain point. Adding code-signing features to Livecode (or in a supplemental tool) could be a selling point for Indy and Business license users. I pay about $50 annually for a third-party code-signing tool subscription on the Mac platform. LiveCode Ltd may able be able to become a third-party Comodo certificate reseller and make ongoing revenue by providing that service. Tom B. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Suggestions-for-LiveCode-the-company-to-increase-its-revenue-tp4714007p4714028.html Sent from the Revolution - User mailing list archive at Nabble.com. From jonathandlynch at gmail.com Sun Apr 16 11:40:50 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Sun, 16 Apr 2017 11:40:50 -0400 Subject: Suggestions for LiveCode (the company) to increase its revenue In-Reply-To: <1492356016572-4714028.post@n4.nabble.com> References: <1492356016572-4714028.post@n4.nabble.com> Message-ID: I would pay for that right now, if LC provided code signing. Sent from my iPhone > On Apr 16, 2017, at 11:20 AM, tbodine via use-livecode wrote: > > Code signing can be a major pain point. Adding code-signing features to > Livecode (or in a supplemental tool) could be a selling point for Indy and > Business license users. I pay about $50 annually for a third-party > code-signing tool subscription on the Mac platform. > > LiveCode Ltd may able be able to become a third-party Comodo certificate > reseller and make ongoing revenue by providing that service. > > Tom B. > > > > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Suggestions-for-LiveCode-the-company-to-increase-its-revenue-tp4714007p4714028.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jonathandlynch at gmail.com Sun Apr 16 11:40:50 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Sun, 16 Apr 2017 11:40:50 -0400 Subject: Suggestions for LiveCode (the company) to increase its revenue In-Reply-To: <1492356016572-4714028.post@n4.nabble.com> References: <1492356016572-4714028.post@n4.nabble.com> Message-ID: I would pay for that right now, if LC provided code signing. Sent from my iPhone > On Apr 16, 2017, at 11:20 AM, tbodine via use-livecode wrote: > > Code signing can be a major pain point. Adding code-signing features to > Livecode (or in a supplemental tool) could be a selling point for Indy and > Business license users. I pay about $50 annually for a third-party > code-signing tool subscription on the Mac platform. > > LiveCode Ltd may able be able to become a third-party Comodo certificate > reseller and make ongoing revenue by providing that service. > > Tom B. > > > > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Suggestions-for-LiveCode-the-company-to-increase-its-revenue-tp4714007p4714028.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From livfoss at mac.com Sun Apr 16 11:53:59 2017 From: livfoss at mac.com (Graham Samuel) Date: Sun, 16 Apr 2017 17:53:59 +0200 Subject: Suggestions for LiveCode (the company) to increase its revenue In-Reply-To: References: <1492356016572-4714028.post@n4.nabble.com> Message-ID: Me too - I have found the whole process to be irritating and messy. As I have ranted before, deployment issues are really huge for people who see software design and programming as what they do, and having made their software function, just want to deliver it. But to do that, you have to hack your way through the deployment jungle, of which code signing is just a part. So, if LC can make all that easier and make a bit of money doing it, they will certainly get my vote. Graham > On 16 Apr 2017, at 17:40, Jonathan Lynch via use-livecode wrote: > > I would pay for that right now, if LC provided code signing. > > Sent from my iPhone > >> On Apr 16, 2017, at 11:20 AM, tbodine via use-livecode wrote: >> >> Code signing can be a major pain point. Adding code-signing features to >> Livecode (or in a supplemental tool) could be a selling point for Indy and >> Business license users. I pay about $50 annually for a third-party >> code-signing tool subscription on the Mac platform. >> >> LiveCode Ltd may able be able to become a third-party Comodo certificate >> reseller and make ongoing revenue by providing that service. >> >> Tom B. >> >> >> From danoldboy at gmail.com Sun Apr 16 12:28:03 2017 From: danoldboy at gmail.com (Dan Brown) Date: Sun, 16 Apr 2017 17:28:03 +0100 Subject: Suggestions for LiveCode (the company) to increase its revenue In-Reply-To: References: Message-ID: Allowing non hacky 2 way communication with JavaScript via lc browser is a potentially huge win should it ever happen. Every time I come across technical discussion of making web apps for the desktop there is a huge chorus or discontent with the currently most viable option Electron - an inefficient bloated memory hog basically. With the right pitch livecode could make inroads there. Separately a revenue suggestion is to make the business license offering less about minor features that are missing from indy ( groan) and more about business support features. That's what businesses look for when investing in any kind of technology platform / equipment and is pretty much the only real differentiator of substance that would justify the monetary upgrade from indy. Seems to get a footnote. Gamifying business support with a"points" system is also needlessly obtuse. It should be no nonsense and straight forward. X amount buys this many hours for y per month etc. On 15 Apr 2017 4:31 pm, "Jonathan Lynch via use-livecode" < use-livecode at lists.runrev.com> wrote: > Everyone who uses LiveCode benefits if the company grows and thus is able > to improve the product faster. > > I thought some of us might have original ideas that could help the > company. If nothing else, we might give them useful ideas. > > So... > > 1. What offerings would you pay for, in addition to any licensing fees? > > 2. Do you have any clever ideas for new revenue streams? > > 3. What modifications to the main product would, in your opinion, make the > product appealing to a larger customer base? > > I encourage everyone to make suggestions. Here are some from me: > > 1. I would pay more for a promotional system for the apps we make, mainly > because I suck at marketing. I don't know what this would entail. > > 2. I suggest a core suite of business applications. The executable would > be a player application that plays LC stacks. The company could sell the > suite and LC developers could sell their services in making modifications > or additional apps to go with the core suite. > > 3. I am broken record on this issue, but I really think that if LC > supercharged the browser widget, they could provide a great platform > (better than the current options) for JavaScript developers to make > standalone apps. > > What suggestions do you have? > > Sent from my 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 tom at makeshyft.com Sun Apr 16 13:49:48 2017 From: tom at makeshyft.com (Tom Glod) Date: Sun, 16 Apr 2017 13:49:48 -0400 Subject: Pixelscale on Windows = disaster = what can we do? Message-ID: Hi Folks... Is there anything that can be done to prevent windows from scaling my stack when the system is set top use 125% or 150% "scaling" options? In livecode ... that is reflected in the systempixelscale and screenpixelscale properties. My stack and the images and controls on it looks like crap when those are greater than 1. jagged edges...its a disaster. When I try to set the scalefactor propery, it seems to have no effects. My only workaround is test for it at the beginninng and say "sorry...unless you change this in your system settings....this application will not display correctly......sorrry" I thought maybe i can change it via shell and try to toggle it on start....but the worst part is it requires log off from user to change this setting. I must find a way to disable this....I can see its usefullness in other areas...but there has to be a way. Can anyone think of anything? -- *Tom Glod* CEO @ *MakeShyft R.D.A* - www.makeshyft.com Developer of *U.M.P* - www.IamUMP.com From jonathandlynch at gmail.com Sun Apr 16 17:32:41 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Sun, 16 Apr 2017 17:32:41 -0400 Subject: Pixelscale on Windows = disaster = what can we do? In-Reply-To: References: Message-ID: <3C69234C-7992-4E08-BB64-D2B4ED2C84E4@gmail.com> Setting the scale factor to 80% (for 1.25% screenpixelsvale) doesn't work? I have done that in the past and it worked fine - just always using the reciprocal of the screen pixel scale. Sent from my iPhone > On Apr 16, 2017, at 1:49 PM, Tom Glod via use-livecode wrote: > > Hi Folks... > > Is there anything that can be done to prevent windows from scaling my stack > when the system is set top use 125% or 150% "scaling" options? > > In livecode ... that is reflected in the systempixelscale and > screenpixelscale properties. > > My stack and the images and controls on it looks like crap when those are > greater than 1. jagged edges...its a disaster. > > When I try to set the scalefactor propery, it seems to have no effects. > > My only workaround is test for it at the beginninng and say "sorry...unless > you change this in your system settings....this application will not > display correctly......sorrry" > > I thought maybe i can change it via shell and try to toggle it on > start....but the worst part is it requires log off from user to change this > setting. > > I must find a way to disable this....I can see its usefullness in other > areas...but there has to be a way. > > Can anyone think of anything? > > > > -- > *Tom Glod* > > CEO @ *MakeShyft R.D.A* - www.makeshyft.com > > > > Developer of *U.M.P* - www.IamUMP.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tore.nilsen at me.com Mon Apr 17 05:08:29 2017 From: tore.nilsen at me.com (Tore Nilsen) Date: Mon, 17 Apr 2017 11:08:29 +0200 Subject: Bug in the inspector palette Message-ID: I have come across what must be a bug in the IDE, in the inspector palette to be precise. I have a script where I set some text properties of the templateField on the fly, like font, size and color. These settings also affect the objects of the ?Basic" pane in the inspector, changing the properties of fields and buttons. Switching from the ?Basic? pane to any other pane and back again fixes the problem. If the font size is set to a very high value, the ?Basic? pane becomes useless, as only parts of the text of the label fields will be shown, and the text of the buttons ?disappears?. The whole layout of the pane gets distorted. Has anyone else come across this problem? It appears both in LC 8.1.3 and LC 9 (dp5) on a Mac with macOS 10.12.4. Regards Tore Nilsen From bobsneidar at iotecdigital.com Mon Apr 17 10:55:26 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 17 Apr 2017 14:55:26 +0000 Subject: Checkbox Display Bug Message-ID: Hi all. I added to the bug 18298 but this may be a new bug. Once a checkbox has been interacted with in the Windows environment, the showBorder is ALWAYS on even if the property is turned off in the object inspector. It also shows up with a border in OS X dev environment which normally will NOT show the border even if the property is turned on! Not fatal, but ugly. I posted a simple demo stack. Bob S From bobsneidar at iotecdigital.com Mon Apr 17 10:59:31 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 17 Apr 2017 14:59:31 +0000 Subject: Downloads - Immodest Proposal In-Reply-To: <6df1516e-8b27-0d91-404d-971f4842ac12@sonic.net> References: <92CA088A-B460-4FA1-AE7C-39DD2EFBF27A@gmail.com> <22184f0a-009a-96c3-81df-284921de7dd0@fourthworld.com> <6df1516e-8b27-0d91-404d-971f4842ac12@sonic.net> Message-ID: <189DD4B4-4516-4E6C-9CE2-73E0D0BE2C44@iotecdigital.com> Last I checked you have to pay a licensing fee for every copy of an app you distribute, even if it is internal. At least for Filemaker itself. Not sure about filemaker for livecode, whatever that is. Bob S > On Apr 15, 2017, at 16:48 , Mark Wieder via use-livecode wrote: > > On 04/15/2017 03:39 PM, Richard Gaskin via use-livecode wrote: > >> Here's a start: >> https://filemaker.livecode.com/ >> > > Hmmm... I'd forgotten about that. > Any idea what the licensing is like? > > -- > 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 bobsneidar at iotecdigital.com Mon Apr 17 11:09:22 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 17 Apr 2017 15:09:22 +0000 Subject: [OT] Phishing prevention In-Reply-To: <5b17cfb0-1455-461d-c1e6-acb273bfdec9@hyperactivesw.com> References: <5b17cfb0-1455-461d-c1e6-acb273bfdec9@hyperactivesw.com> Message-ID: <53F82EB5-0FD0-42CC-B0F0-07CCD4528130@iotecdigital.com> Thanks Jacque. This is why it is never one time too many to say: DON'T CLICK THE LINK IN THE EMAIL!!!!! Of course I clicked the link to get to your article, sooo... yeah. Bob S > On Apr 14, 2017, at 21:04 , J. Landman Gay via use-livecode wrote: > > This seems important enough to spread around: > > > > I use both Firefox and Thunderbird and have reconfigured both. > > -- > 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 paul at livecode.org Mon Apr 17 11:58:13 2017 From: paul at livecode.org (Paul Hibbert) Date: Mon, 17 Apr 2017 08:58:13 -0700 Subject: Bug in the inspector palette In-Reply-To: References: Message-ID: <60078FA3-E874-4136-9482-979713111B13@livecode.org> I can confirm your findings, also affects LC8.1.4 (rc 1). Paul MacOS Sierra 10.12.4 > On 17 Apr 2017, at 02:08, Tore Nilsen via use-livecode wrote: > > I have come across what must be a bug in the IDE, in the inspector palette to be precise. I have a script where I set some text properties of the templateField on the fly, like font, size and color. These settings also affect the objects of the ?Basic" pane in the inspector, changing the properties of fields and buttons. Switching from the ?Basic? pane to any other pane and back again fixes the problem. If the font size is set to a very high value, the ?Basic? pane becomes useless, as only parts of the text of the label fields will be shown, and the text of the buttons ?disappears?. The whole layout of the pane gets distorted. Has anyone else come across this problem? It appears both in LC 8.1.3 and LC 9 (dp5) on a Mac with macOS 10.12.4. > > Regards > Tore Nilsen > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Mon Apr 17 12:26:20 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 17 Apr 2017 11:26:20 -0500 Subject: [OT] Phishing prevention In-Reply-To: <53F82EB5-0FD0-42CC-B0F0-07CCD4528130@iotecdigital.com> References: <5b17cfb0-1455-461d-c1e6-acb273bfdec9@hyperactivesw.com> <53F82EB5-0FD0-42CC-B0F0-07CCD4528130@iotecdigital.com> Message-ID: <15b7cbc7fe0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I use different browsers for different things. I opened the link with a browser that has everything turned off. No javascript, no cookies, no images. Plus the link was posted to a trustworthy site in the first place so I felt fairly safe. It didn't arrive in email. On April 17, 2017 10:11:22 AM Bob Sneidar via use-livecode wrote: > Thanks Jacque. This is why it is never one time too many to say: DON'T > CLICK THE LINK IN THE EMAIL!!!!! Of course I clicked the link to get to > your article, sooo... yeah. > > Bob S > > >> On Apr 14, 2017, at 21:04 , J. Landman Gay via use-livecode >> wrote: >> >> This seems important enough to spread around: >> >> >> >> I use both Firefox and Thunderbird and have reconfigured both. >> >> -- >> 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 -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From livfoss at mac.com Mon Apr 17 15:07:13 2017 From: livfoss at mac.com (Graham Samuel) Date: Mon, 17 Apr 2017 21:07:13 +0200 Subject: The selectedObjects - is it a container or not? Message-ID: <0A4DF611-AF48-4CEC-9FAB-DDAC5B80365A@mac.com> I have a stack where the user is allowed to select vector objects. For this example, let?s assume some objects are already selected. I am using LC 8.1.4 rc1 on a Mac running Sierra, and I have a bit of code that says in part: if the selectedObjects is not empty then repeat with i = 1 to the number of lines of the selectedObjects ? This results in an error ?source is not a container?. OTOH, if I change the second line to repeat with i = 1 to the number of lines of (the selectedObjects0 the code works as expected. If I execute in the message box: put the number of lines of the selectedObjects I sometimes get no result and sometimes ?source is not a container?, but if I change the line to: put the number of lines of (the selectedObjects) I always get the right answer. Am I being stupid, or is this a bug? Graham From dochawk at gmail.com Mon Apr 17 15:41:23 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 17 Apr 2017 12:41:23 -0700 Subject: [OT] Phishing prevention In-Reply-To: <15b7cbc7fe0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <5b17cfb0-1455-461d-c1e6-acb273bfdec9@hyperactivesw.com> <53F82EB5-0FD0-42CC-B0F0-07CCD4528130@iotecdigital.com> <15b7cbc7fe0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: On Mon, Apr 17, 2017 at 9:26 AM, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > I use different browsers for different things. I opened the link with a > browser that has everything turned off. No javascript, no cookies, no > images. I got tipped off to slimjet, a chrome variant with the google spying removed. It allows me to have multiple "people" loaded at once in separate windows, which is comparable to running simultaneous copies of firefox under different profiles. It seems to do much, much better at keeping hogs under control (such as multiple gmail accounts). In spite of it's docs and preferences, though, it does not seem to be capable of using or storing OSX Keychain entries--and there's no way I'm storing my passwords with google! -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dunbarx at aol.com Mon Apr 17 16:23:36 2017 From: dunbarx at aol.com (dunbarx) Date: Mon, 17 Apr 2017 13:23:36 -0700 (PDT) Subject: The selectedObjects - is it a container or not? In-Reply-To: <0A4DF611-AF48-4CEC-9FAB-DDAC5B80365A@mac.com> References: <0A4DF611-AF48-4CEC-9FAB-DDAC5B80365A@mac.com> Message-ID: <1492460616981-4714042.post@n4.nabble.com> Hi. If I have three buttons on a card, named "b1", "b2" and "b3", and in the script of "b3" I have: on mouseUp select btn "b1" and btn "b2" answer the selectedObjects end mouseUp I get both selected buttons without issue.. Note this is in v. 6.7.9. But the "selectedObjects" does not seem to stick very long. Consider these two handlers: on mouseUp select btn "b1" and btn "b2" repeat with y = 1 to the number of lines of the selectedObjects put word 1 of line y of the selectedObjects into line y of gg end repeat answer gg end mouseUp on mouseUp select btn "b1" and btn "b2" put the selectedObjects into ff repeat with y = 1 to the number of lines of ff put word 1 of line y of the selectedObjects into line y of gg end repeat answer gg end mouseUp The second one keeps the result of the function. The first one does not. Craig Newman -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/The-selectedObjects-is-it-a-container-or-not-tp4714040p4714042.html Sent from the Revolution - User mailing list archive at Nabble.com. From dochawk at gmail.com Mon Apr 17 18:11:37 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 17 Apr 2017 15:11:37 -0700 Subject: cannot correctly check keys of array stored as a custom prooperty Message-ID: I have an elaborate routine that sorts through my stacks to find the needed variables, and it saves the array, with the name as a key and the variable type as a property, in my master stack. ("set the swizzle of stack whosit to myArray") This gets used as an integrity check when opening data tables. So put the swizzle of stack whosit into dflds put "dlPdTx" is among the keys of dflds Yields false. So does every variant I can come up with--looping through the keys, checking "the words of the keys of", and so forth. Even "put the keys of dflds into dnames" and checking whether dlPdTx is among the words or lines. Nonetheless, I can see the entry dlPdTx in each and every one of these, whether as a word or line, or as a key in either the custom property of that property copied to dflds. Could there be a glitch in either the storage or retrieval of the custom property? I used save the property as a list back in 7, and turn it back into an array. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From bobsneidar at iotecdigital.com Mon Apr 17 18:54:41 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 17 Apr 2017 22:54:41 +0000 Subject: cannot correctly check keys of array stored as a custom prooperty In-Reply-To: References: Message-ID: Doesn't the script editor's variable viewer now display the elements of an array? Can you check it there? Bob S On Apr 17, 2017, at 15:11 , Dr. Hawkins via use-livecode > wrote: I have an elaborate routine that sorts through my stacks to find the needed variables, and it saves the array, with the name as a key and the variable type as a property, in my master stack. ("set the swizzle of stack whosit to myArray") From bobsneidar at iotecdigital.com Mon Apr 17 18:57:38 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 17 Apr 2017 22:57:38 +0000 Subject: cannot correctly check keys of array stored as a custom prooperty In-Reply-To: References: Message-ID: Also, (and I know you will not refactor now) but sqlYoga has these checks built in. It also has commands to get the schema of the database, as well as the schema of a table, which will return as an element of that array, an array with each field and it's type, length, etc. Bob S > On Apr 17, 2017, at 15:54 , Bob Sneidar via use-livecode wrote: > > Doesn't the script editor's variable viewer now display the elements of an array? Can you check it there? > > Bob S > > > On Apr 17, 2017, at 15:11 , Dr. Hawkins via use-livecode > wrote: > > I have an elaborate routine that sorts through my stacks to find the needed > variables, and it saves the array, with the name as a key and the variable > type as a property, in my master stack. ("set the swizzle of stack whosit > to myArray") > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 17 19:25:58 2017 From: waprothero at gmail.com (William Prothero) Date: Mon, 17 Apr 2017 16:25:58 -0700 Subject: Initializing the segmented control Message-ID: Folks: I?ve tried the obvious, but:: How do I initialize the segmented control? I?ve tried: there are 3 items named analysis,valveSel,timer set the hilited of control "timerNav" of this cd to ? timer? set the hilitedItems of widget "timerNav" to "timer" set the hilited of widget "timerNav" to "timer" It oughta be easier! What is the proper syntax? Best, Bill William A. Prothero http://earthlearningsolution.org/ From jacque at hyperactivesw.com Mon Apr 17 19:39:27 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 17 Apr 2017 18:39:27 -0500 Subject: The selectedObjects - is it a container or not? In-Reply-To: <1492460616981-4714042.post@n4.nabble.com> References: <0A4DF611-AF48-4CEC-9FAB-DDAC5B80365A@mac.com> <1492460616981-4714042.post@n4.nabble.com> Message-ID: <575651cb-7ef6-ca2e-d9b3-a6989c5fea93@hyperactivesw.com> > I have a bit of code that says in part: > > if the selectedObjects is not empty then > repeat with i = 1 to the number of lines of the selectedObjects > ? > > This results in an error ?source is not a container?. > > OTOH, if I change the second line to > > repeat with i = 1 to the number of lines of (the selectedObjects0 > > the code works as expected. The selectedObjects is a function that returns a text list. It isn't a container. Adding parentheses forces the engine to evaluate the function and use its return value, which does have lines in it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dochawk at gmail.com Mon Apr 17 19:41:55 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 17 Apr 2017 16:41:55 -0700 Subject: cannot correctly check keys of array stored as a custom prooperty In-Reply-To: References: Message-ID: On Mon, Apr 17, 2017 at 3:54 PM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Doesn't the script editor's variable viewer now display the elements of an > array? Can you check it there? Yep. And the element shows there, and also in the property inspector for the stack. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From DixonJA at hotmail.co.uk Mon Apr 17 19:55:03 2017 From: DixonJA at hotmail.co.uk (John Dixon) Date: Mon, 17 Apr 2017 23:55:03 +0000 Subject: iPhoneComposeMail Message-ID: Is this broken ? Used to use it no problem... now the stack is crashing LC 8.1.0 dixie From MikeKerner at roadrunner.com Mon Apr 17 20:57:28 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 17 Apr 2017 20:57:28 -0400 Subject: Initializing the segmented control In-Reply-To: References: Message-ID: Go into the API, then in the picker on the top left, pick "Segmented Control". There is one message and a bunch of properties. Also, if you get stuck, some time, all the widgets have their source available, and since they're written with LCB, it's pretty easy to read (the documentation for each is at the beginning). On git pick the LC repo, then drill down to extensions->widgets. On Mon, Apr 17, 2017 at 7:25 PM, William Prothero via use-livecode < use-livecode at lists.runrev.com> wrote: > Folks: > > I?ve tried the obvious, but:: > How do I initialize the segmented control? > > I?ve tried: there are 3 items named analysis,valveSel,timer > set the hilited of control "timerNav" of this cd to ? timer? > > set the hilitedItems of widget "timerNav" to "timer" > > set the hilited of widget "timerNav" to "timer" > > It oughta be easier! > > What is the proper syntax? > > Best, > Bill > > William A. Prothero > http://earthlearningsolution.org/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- 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 waprothero at gmail.com Mon Apr 17 22:45:05 2017 From: waprothero at gmail.com (William Prothero) Date: Mon, 17 Apr 2017 19:45:05 -0700 Subject: Initializing the segmented control In-Reply-To: References: Message-ID: Mike: thanks. I?ve been trying to avoid getting into the widget modification part of livecode. I just figured there must be an easy way to initialize the widget?s selection. I did look at the dictionary API entry and it doesn?t tell me anything about how I would code an initialization to a particular hilight. Best, Bill > On Apr 17, 2017, at 5:57 PM, Mike Kerner via use-livecode wrote: > > Go into the API, then in the picker on the top left, pick "Segmented > Control". There is one message and a bunch of properties. > Also, if you get stuck, some time, all the widgets have their source > available, and since they're written with LCB, it's pretty easy to read > (the documentation for each is at the beginning). On git pick the LC > repo, then drill down to extensions->widgets. > > > On Mon, Apr 17, 2017 at 7:25 PM, William Prothero via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Folks: >> >> I?ve tried the obvious, but:: >> How do I initialize the segmented control? >> >> I?ve tried: there are 3 items named analysis,valveSel,timer >> set the hilited of control "timerNav" of this cd to ? timer? >> >> set the hilitedItems of widget "timerNav" to "timer" >> >> set the hilited of widget "timerNav" to "timer" >> >> It oughta be easier! >> >> What is the proper syntax? >> >> Best, >> Bill >> >> William A. Prothero >> http://earthlearningsolution.org/ >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > -- > 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 waprothero at gmail.com Mon Apr 17 22:51:51 2017 From: waprothero at gmail.com (William Prothero) Date: Mon, 17 Apr 2017 19:51:51 -0700 Subject: Initializing the segmented control In-Reply-To: References: Message-ID: <7AA35413-5ED6-4408-A37C-A45AED6305D7@gmail.com> Ok, got it! set the hilitedItemNames of widget "timerNav" to "timer" ?timer? is one of the itemNames. I guess it just needed for me to take a dinner break. Best, Bill > On Apr 17, 2017, at 7:45 PM, William Prothero via use-livecode wrote: > > Mike: > thanks. I?ve been trying to avoid getting into the widget modification part of livecode. I just figured there must be an easy way to initialize the widget?s selection. I did look at the dictionary API entry and it doesn?t tell me anything about how I would code an initialization to a particular hilight. > > Best, > Bill > >> On Apr 17, 2017, at 5:57 PM, Mike Kerner via use-livecode wrote: >> >> Go into the API, then in the picker on the top left, pick "Segmented >> Control". There is one message and a bunch of properties. >> Also, if you get stuck, some time, all the widgets have their source >> available, and since they're written with LCB, it's pretty easy to read >> (the documentation for each is at the beginning). On git pick the LC >> repo, then drill down to extensions->widgets. >> >> >> On Mon, Apr 17, 2017 at 7:25 PM, William Prothero via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Folks: >>> >>> I?ve tried the obvious, but:: >>> How do I initialize the segmented control? >>> >>> I?ve tried: there are 3 items named analysis,valveSel,timer >>> set the hilited of control "timerNav" of this cd to ? timer? >>> >>> set the hilitedItems of widget "timerNav" to "timer" >>> >>> set the hilited of widget "timerNav" to "timer" >>> >>> It oughta be easier! >>> >>> What is the proper syntax? >>> >>> Best, >>> Bill >>> >>> William A. Prothero >>> http://earthlearningsolution.org/ >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> >> >> -- >> On the first day, God created the heavens and the Earth >> On the second day, God created the oceans. >> On the third day, God put the animals on hold for a few hours, >> and did a little diving. >> And God said, "This is good." >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From livfoss at mac.com Tue Apr 18 03:46:49 2017 From: livfoss at mac.com (Graham Samuel) Date: Tue, 18 Apr 2017 09:46:49 +0200 Subject: The selectedObjects - is it a container or not? In-Reply-To: <575651cb-7ef6-ca2e-d9b3-a6989c5fea93@hyperactivesw.com> References: <0A4DF611-AF48-4CEC-9FAB-DDAC5B80365A@mac.com> <1492460616981-4714042.post@n4.nabble.com> <575651cb-7ef6-ca2e-d9b3-a6989c5fea93@hyperactivesw.com> Message-ID: <95E29E04-FE96-4C50-BE71-E97537E5E13F@mac.com> Jacque, you?re never wrong! I know really that the ?the? indicates a function, but at the same time it?s kind of a trap within the idea that LC scripting is ?English-like". For clarity, managing the selected objects is probably better done by something like: put selectedObjects() into temp then do stuff with ?temp?, which of course **is** a container. Anyway thanks Graham > On 18 Apr 2017, at 01:39, J. Landman Gay via use-livecode wrote: > >> I have a bit of code that says in part: >> >> if the selectedObjects is not empty then >> repeat with i = 1 to the number of lines of the selectedObjects >> ? >> >> This results in an error ?source is not a container?. >> >> OTOH, if I change the second line to >> >> repeat with i = 1 to the number of lines of (the selectedObjects0 >> >> the code works as expected. > > > The selectedObjects is a function that returns a text list. It isn't a container. Adding parentheses forces the engine to evaluate the function and use its return value, which does have lines in it. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > From MikeKerner at roadrunner.com Tue Apr 18 07:32:26 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 18 Apr 2017 07:32:26 -0400 Subject: Initializing the segmented control In-Reply-To: <7AA35413-5ED6-4408-A37C-A45AED6305D7@gmail.com> References: <7AA35413-5ED6-4408-A37C-A45AED6305D7@gmail.com> Message-ID: cool! And, you might be surprised by how well written the widgets are. On Mon, Apr 17, 2017 at 10:51 PM, William Prothero via use-livecode < use-livecode at lists.runrev.com> wrote: > Ok, got it! > set the hilitedItemNames of widget "timerNav" to "timer" > > ?timer? is one of the itemNames. > > I guess it just needed for me to take a dinner break. > Best, > Bill > > > On Apr 17, 2017, at 7:45 PM, William Prothero via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Mike: > > thanks. I?ve been trying to avoid getting into the widget modification > part of livecode. I just figured there must be an easy way to initialize > the widget?s selection. I did look at the dictionary API entry and it > doesn?t tell me anything about how I would code an initialization to a > particular hilight. > > > > Best, > > Bill > > > >> On Apr 17, 2017, at 5:57 PM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> Go into the API, then in the picker on the top left, pick "Segmented > >> Control". There is one message and a bunch of properties. > >> Also, if you get stuck, some time, all the widgets have their source > >> available, and since they're written with LCB, it's pretty easy to read > >> (the documentation for each is at the beginning). On git pick the LC > >> repo, then drill down to extensions->widgets. > >> > >> > >> On Mon, Apr 17, 2017 at 7:25 PM, William Prothero via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >>> Folks: > >>> > >>> I?ve tried the obvious, but:: > >>> How do I initialize the segmented control? > >>> > >>> I?ve tried: there are 3 items named analysis,valveSel,timer > >>> set the hilited of control "timerNav" of this cd to ? timer? > >>> > >>> set the hilitedItems of widget "timerNav" to "timer" > >>> > >>> set the hilited of widget "timerNav" to "timer" > >>> > >>> It oughta be easier! > >>> > >>> What is the proper syntax? > >>> > >>> Best, > >>> Bill > >>> > >>> William A. Prothero > >>> http://earthlearningsolution.org/ > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >>> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > >> > >> > >> -- > >> 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 > > _______________________________________________ > use-livecode mailing list > use-livecode 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 alex at tweedly.net Tue Apr 18 08:42:21 2017 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 18 Apr 2017 13:42:21 +0100 Subject: Initializing the segmented control In-Reply-To: References: <7AA35413-5ED6-4408-A37C-A45AED6305D7@gmail.com> Message-ID: <64b539b5-e0f6-97ff-61c8-2e9f8fec0398@tweedly.net> On 18/04/2017 12:32, Mike Kerner via use-livecode wrote: > cool! And, you might be surprised by how well written the widgets are. > Have you tried the browser widget ? You might be surprised by how well written it isn't. Paul H. said the other day there were 30 active bugs on it. I ran into a few problems, including IDE hangs trying to use it (and yes, I will submit QC reports as soon as I get a chance to look at it again - but revBrowser does what I need so it's not been my highest priority). -- Alex. From DixonJA at hotmail.co.uk Tue Apr 18 08:50:51 2017 From: DixonJA at hotmail.co.uk (John Dixon) Date: Tue, 18 Apr 2017 12:50:51 +0000 Subject: iphoneComposeMail Message-ID: After much looking around and not getting this to work, I was going to submit a 'bug report', but looking at some of the other bugs dealing with this problem... Panos from LiveCode stated that the bug had been fixed in LC 8.1.4. ... So, I have downloaded LC 8.1.4 and have tried to launch the stack that is giving me problems with composing mail... But now another problem... When trying to build for the iPhone I am getting a dialog box which states... 'Could not find pList template for device target' How do I solve this one, please... dixie From MikeKerner at roadrunner.com Tue Apr 18 09:03:35 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 18 Apr 2017 09:03:35 -0400 Subject: Initializing the segmented control In-Reply-To: <64b539b5-e0f6-97ff-61c8-2e9f8fec0398@tweedly.net> References: <7AA35413-5ED6-4408-A37C-A45AED6305D7@gmail.com> <64b539b5-e0f6-97ff-61c8-2e9f8fec0398@tweedly.net> Message-ID: The browser widget is too limited for my use, so no, I don't bother with it. By "well-written", I meant written in such a way as being easy to understand, not well-written like feature-complete, free of any bugs, etc. I still use tmc2 for all my interface work... From merakosp at gmail.com Tue Apr 18 09:07:56 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 18 Apr 2017 14:07:56 +0100 Subject: iphoneComposeMail In-Reply-To: References: Message-ID: Hi John, What happens if you choose "6.1 or later" in the iOS settings? On 18 Apr 2017 3:51 pm, "John Dixon via use-livecode" < use-livecode at lists.runrev.com> wrote: After much looking around and not getting this to work, I was going to submit a 'bug report', but looking at some of the other bugs dealing with this problem... Panos from LiveCode stated that the bug had been fixed in LC 8.1.4. ... So, I have downloaded LC 8.1.4 and have tried to launch the stack that is giving me problems with composing mail... But now another problem... When trying to build for the iPhone I am getting a dialog box which states... 'Could not find pList template for device target' How do I solve this one, please... dixie _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From DixonJA at hotmail.co.uk Tue Apr 18 09:33:09 2017 From: DixonJA at hotmail.co.uk (John Dixon) Date: Tue, 18 Apr 2017 13:33:09 +0000 Subject: iphoneComposeMail In-Reply-To: References: , Message-ID: Hi Panos... I get the same error message... 'Could not find pList template for device target' dixie ________________________________ From: use-livecode on behalf of panagiotis merakos via use-livecode Sent: 18 April 2017 14:07 To: How to use LiveCode Cc: panagiotis merakos Subject: Re: iphoneComposeMail Hi John, What happens if you choose "6.1 or later" in the iOS settings? On 18 Apr 2017 3:51 pm, "John Dixon via use-livecode" < use-livecode at lists.runrev.com> wrote: After much looking around and not getting this to work, I was going to submit a 'bug report', but looking at some of the other bugs dealing with this problem... Panos from LiveCode stated that the bug had been fixed in LC 8.1.4. ... So, I have downloaded LC 8.1.4 and have tried to launch the stack that is giving me problems with composing mail... But now another problem... When trying to build for the iPhone I am getting a dialog box which states... 'Could not find pList template for device target' How do I solve this one, please... dixie _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Runtime Revolution - use-livecode Mailing List lists.runrev.com This mailing list is intended for discussion relating to using LiveCode. To see the collection of prior postings to the list, visit the use-livecode Archives _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From merakosp at gmail.com Tue Apr 18 09:44:09 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 18 Apr 2017 14:44:09 +0100 Subject: iphoneComposeMail In-Reply-To: References: Message-ID: Hi John, Hmm, are you by any chance running OSX 10.9? On 18 Apr 2017 4:33 pm, "John Dixon via use-livecode" < use-livecode at lists.runrev.com> wrote: > Hi Panos... > > > I get the same error message... 'Could not find pList template for device > target' > > > dixie > > > ________________________________ > From: use-livecode on behalf of > panagiotis merakos via use-livecode > Sent: 18 April 2017 14:07 > To: How to use LiveCode > Cc: panagiotis merakos > Subject: Re: iphoneComposeMail > > Hi John, > What happens if you choose "6.1 or later" in the iOS settings? > > On 18 Apr 2017 3:51 pm, "John Dixon via use-livecode" < > use-livecode at lists.runrev.com> wrote: > > After much looking around and not getting this to work, I was going to > submit a 'bug report', but looking at some of the other bugs dealing with > this problem... Panos from LiveCode stated that the bug had been fixed in > LC 8.1.4. ... So, I have downloaded LC 8.1.4 and have tried to launch the > stack that is giving me problems with composing mail... > > > But now another problem... When trying to build for the iPhone I am getting > a dialog box which states... > > 'Could not find pList template for device target' > > > How do I solve this one, please... > > > dixie > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > Runtime Revolution - use-livecode Mailing List mailman/listinfo/use-livecode> > lists.runrev.com > This mailing list is intended for discussion relating to using LiveCode. > To see the collection of prior postings to the list, visit the use-livecode > Archives > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From DixonJA at hotmail.co.uk Tue Apr 18 09:46:45 2017 From: DixonJA at hotmail.co.uk (John Dixon) Date: Tue, 18 Apr 2017 13:46:45 +0000 Subject: iphoneComposeMail In-Reply-To: References: , Message-ID: Panos.. MacBookPro. Mac OSX 10.11.6 ________________________________ From: use-livecode on behalf of panagiotis merakos via use-livecode Sent: 18 April 2017 14:44 To: How to use LiveCode Cc: panagiotis merakos Subject: Re: iphoneComposeMail Hi John, Hmm, are you by any chance running OSX 10.9? On 18 Apr 2017 4:33 pm, "John Dixon via use-livecode" < use-livecode at lists.runrev.com> wrote: > Hi Panos... > > > I get the same error message... 'Could not find pList template for device > target' > > > dixie > > > ________________________________ > From: use-livecode on behalf of > panagiotis merakos via use-livecode > Sent: 18 April 2017 14:07 > To: How to use LiveCode > Cc: panagiotis merakos > Subject: Re: iphoneComposeMail > > Hi John, > What happens if you choose "6.1 or later" in the iOS settings? > > On 18 Apr 2017 3:51 pm, "John Dixon via use-livecode" < > use-livecode at lists.runrev.com> wrote: > > After much looking around and not getting this to work, I was going to > submit a 'bug report', but looking at some of the other bugs dealing with > this problem... Panos from LiveCode stated that the bug had been fixed in > LC 8.1.4. ... So, I have downloaded LC 8.1.4 and have tried to launch the > stack that is giving me problems with composing mail... > > > But now another problem... When trying to build for the iPhone I am getting > a dialog box which states... > > 'Could not find pList template for device target' > > > How do I solve this one, please... > > > dixie > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode Runtime Revolution - use-livecode Mailing List lists.runrev.com This mailing list is intended for discussion relating to using LiveCode. To see the collection of prior postings to the list, visit the use-livecode Archives > Runtime Revolution - use-livecode Mailing List mailman/listinfo/use-livecode> > lists.runrev.com > This mailing list is intended for discussion relating to using LiveCode. > To see the collection of prior postings to the list, visit the use-livecode > Archives > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode at 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 Apr 18 10:47:55 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 18 Apr 2017 14:47:55 +0000 Subject: The selectedObjects - is it a container or not? In-Reply-To: <95E29E04-FE96-4C50-BE71-E97537E5E13F@mac.com> References: <0A4DF611-AF48-4CEC-9FAB-DDAC5B80365A@mac.com> <1492460616981-4714042.post@n4.nabble.com> <575651cb-7ef6-ca2e-d9b3-a6989c5fea93@hyperactivesw.com> <95E29E04-FE96-4C50-BE71-E97537E5E13F@mac.com> Message-ID: She used to be wrong, but she used her Time Travel stack to go back and correct everything. Bob S On Apr 18, 2017, at 24:46 , Graham Samuel via use-livecode > wrote: Jacque, you?re never wrong! From merakosp at gmail.com Tue Apr 18 14:49:26 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 18 Apr 2017 19:49:26 +0100 Subject: iphoneComposeMail In-Reply-To: References: Message-ID: Hi John, If you still see that error, I suggest you file a bug report (and make sure you attach the stack or send it directly to panos.merakos at livecode.com if it is confidential). There must be something specific in this stack, or your setup, that causes this issue, since I can successfully create an iOS standalone in LiveCode 8.1.4 RC1, and we have no other bug reports about this issue. I will have a look at the report next week, when I will back from holiday. Cheers, Panos -- On Tue, Apr 18, 2017 at 2:46 PM, John Dixon via use-livecode < use-livecode at lists.runrev.com> wrote: > Panos.. > > > MacBookPro. Mac OSX 10.11.6 > > > ________________________________ > From: use-livecode on behalf of > panagiotis merakos via use-livecode > Sent: 18 April 2017 14:44 > To: How to use LiveCode > Cc: panagiotis merakos > Subject: Re: iphoneComposeMail > > Hi John, > > Hmm, are you by any chance running OSX 10.9? > > On 18 Apr 2017 4:33 pm, "John Dixon via use-livecode" < > use-livecode at lists.runrev.com> wrote: > > > Hi Panos... > > > > > > I get the same error message... 'Could not find pList template for device > > target' > > > > > > dixie > > > > > > ________________________________ > > From: use-livecode on behalf of > > panagiotis merakos via use-livecode > > Sent: 18 April 2017 14:07 > > To: How to use LiveCode > > Cc: panagiotis merakos > > Subject: Re: iphoneComposeMail > > > > Hi John, > > What happens if you choose "6.1 or later" in the iOS settings? > > > > On 18 Apr 2017 3:51 pm, "John Dixon via use-livecode" < > > use-livecode at lists.runrev.com> wrote: > > > > After much looking around and not getting this to work, I was going to > > submit a 'bug report', but looking at some of the other bugs dealing with > > this problem... Panos from LiveCode stated that the bug had been fixed in > > LC 8.1.4. ... So, I have downloaded LC 8.1.4 and have tried to launch the > > stack that is giving me problems with composing mail... > > > > > > But now another problem... When trying to build for the iPhone I am > getting > > a dialog box which states... > > > > 'Could not find pList template for device target' > > > > > > How do I solve this one, please... > > > > > > dixie > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > Runtime Revolution - use-livecode Mailing List mailman/listinfo/use-livecode> > lists.runrev.com > This mailing list is intended for discussion relating to using LiveCode. > To see the collection of prior postings to the list, visit the use-livecode > Archives > > > > Runtime Revolution - use-livecode Mailing List > mailman/listinfo/use-livecode> > > lists.runrev.com > > This mailing list is intended for discussion relating to using LiveCode. > > To see the collection of prior postings to the list, visit the > use-livecode > > Archives > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mark at livecode.com Wed Apr 19 03:15:52 2017 From: mark at livecode.com (Mark Waddingham) Date: Wed, 19 Apr 2017 09:15:52 +0200 Subject: The selectedObjects - is it a container or =?UTF-8?Q?not=3F?= In-Reply-To: <0A4DF611-AF48-4CEC-9FAB-DDAC5B80365A@mac.com> References: <0A4DF611-AF48-4CEC-9FAB-DDAC5B80365A@mac.com> Message-ID: Hi Graham, On 2017-04-17 21:07, Graham Samuel via use-livecode wrote: > I have a stack where the user is allowed to select vector objects. For > this example, let?s assume some objects are already selected. > > I am using LC 8.1.4 rc1 on a Mac running Sierra, and I have a bit of > code that says in part: > > if the selectedObjects is not empty then > repeat with i = 1 to the number of lines of the selectedObjects > ? Just to clear up precisely what is going on here... There are a number of pieces of syntax in LiveCode which return control references (e.g. field 1). As LiveCode represents such things as strings there is an ambiguity when you do: of e.g. the number of lines of the selectedObject In this case it could either mean: 1) the number of lines in the string returned by the selectedObject 2) the number of lines in the control returned by the selectedObject The engine tends towards case (2) in most cases (I can't say all cases without going through all such things and checking) - including this one. > OTOH, if I change the second line to > > repeat with i = 1 to the number of lines of (the selectedObjects0 > > the code works as expected. The presence of brackets here force evaluation of 'the selectedObjects' as a string and not as a control. > If I execute in the message box: > > put the number of lines of the selectedObjects > > I sometimes get no result and sometimes ?source is not a container?, > but if I change the line to: > > put the number of lines of (the selectedObjects) > > I always get the right answer. In the first case, whether or not 'the number of lines of the selectedObjects' will do something sensible depends on: 1) if there is a selectedObject (otherwise you are trying to get the number of lines in no object - which makes no sense) 2) There is a selected object, but it has no idea of a 'text' property so doesn't have anything for 'the number of lines of' to process. Hope this helps! Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From livfoss at mac.com Wed Apr 19 08:14:01 2017 From: livfoss at mac.com (Graham Samuel) Date: Wed, 19 Apr 2017 14:14:01 +0200 Subject: The selectedObjects - is it a container or not? In-Reply-To: References: <0A4DF611-AF48-4CEC-9FAB-DDAC5B80365A@mac.com> Message-ID: <73729ABE-D170-402C-8841-168D37F7CDF2@mac.com> Yes, thanks very much Mark. I do get it completely now, if a little belatedly! Cheers Graham > On 19 Apr 2017, at 09:15, Mark Waddingham via use-livecode wrote: > > Hi Graham, > > On 2017-04-17 21:07, Graham Samuel via use-livecode wrote: >> I have a stack where the user is allowed to select vector objects. For >> this example, let?s assume some objects are already selected. >> I am using LC 8.1.4 rc1 on a Mac running Sierra, and I have a bit of >> code that says in part: >> if the selectedObjects is not empty then >> repeat with i = 1 to the number of lines of the selectedObjects >> ? > > Just to clear up precisely what is going on here... > > There are a number of pieces of syntax in LiveCode which return control > references (e.g. field 1). As LiveCode represents such things as strings > there is an ambiguity when you do: > > of > > e.g. the number of lines of the selectedObject > > In this case it could either mean: > > 1) the number of lines in the string returned by the selectedObject > > 2) the number of lines in the control returned by the selectedObject > > The engine tends towards case (2) in most cases (I can't say all cases > without going through all such things and checking) - including this one. > >> OTOH, if I change the second line to >> repeat with i = 1 to the number of lines of (the selectedObjects0 >> the code works as expected. > > The presence of brackets here force evaluation of 'the selectedObjects' > as a string and not as a control. > >> If I execute in the message box: >> put the number of lines of the selectedObjects >> I sometimes get no result and sometimes ?source is not a container?, >> but if I change the line to: >> put the number of lines of (the selectedObjects) >> I always get the right answer. > > In the first case, whether or not 'the number of lines of the selectedObjects' > will do something sensible depends on: > > 1) if there is a selectedObject (otherwise you are trying to get the > number of lines in no object - which makes no sense) > > 2) There is a selected object, but it has no idea of a 'text' property > so doesn't have anything for 'the number of lines of' to process. > > Hope this helps! > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Wed Apr 19 12:58:16 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 19 Apr 2017 09:58:16 -0700 Subject: The selectedObjects - is it a container or not? In-Reply-To: <95E29E04-FE96-4C50-BE71-E97537E5E13F@mac.com> References: <95E29E04-FE96-4C50-BE71-E97537E5E13F@mac.com> Message-ID: Graham Samuel wrote: > I know really that the ?the? indicates a function... The use of "the" for both properties and some (but not all) functions is among the few mistakes the original HyerTalk team made. If "the" were used exclusively for properties, there would be no confusing ambiguity. Worse, using it for functions only works with a subset of functions where the number of params is 0 or 1, but not two or more. And while we can use "the" with a subset of built-in functions, we can't with custom functions. Lots of "sometimes" rules were introduced as by-products of that design decision, making the learning curve more steep even as it attempts to lower it. LiveCode has little choice but to follow the established convention, butt when I teach newcomers I never even show them that "the" can sometimes be used for functions. > ...but at the same time it?s kind of a trap within the idea that > LC scripting is ?English-like". HyperTalk was once arguably "English-like" back when the alternatives were C and Pascal. When it premiered there were very few scripting languages; among the few in widespread use was bash, which is wonderful but sparse, and thus not very readable. Today, scripting languages have followed Osterhout's prediction from the '90s to become a leading means of developing applications. One of the key goals of any scripting language is to provide readable code. Ruby, and maybe more so Lua, are nearly on par with LiveCode for readability when we compare professionally-written production code. E.g. this: put arrayEncode( the customProperties["Prefs"] of stack "Prefs" ) \ into url ("binfile:"& specialFolderPath("Preferences") & \ "/MyPrefs.dat" ) ...is readable enough, but far from English. What LiveCode brings to the modern world is a high-level scripting language distinguished not by any conformance to the rules of English, but by being among the very few that include support for GUI controls as inherent language elements. With LiveCode, that occurs across a platform coverage that I don't believe any other scripting language with integrated GUI support offers. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bobsneidar at iotecdigital.com Wed Apr 19 17:50:00 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 19 Apr 2017 21:50:00 +0000 Subject: The selectedObjects - is it a container or not? In-Reply-To: References: <95E29E04-FE96-4C50-BE71-E97537E5E13F@mac.com> Message-ID: <325537F2-5D00-4E3A-876F-B107D576999D@iotecdigital.com> I would not do it that way. To make it more readable I would use: put the customProperties["Prefs"] of stack "Prefs" into tPrefs put "binfile:"& specialFolderPath("Preferences") & "/MyPrefs.dat" into tFilePath put arrayEncode(tPrefs) into url tFilePath That is english readable as much as can be expected. I think that trying to make the code compact is counter to making the code readable. MHO Bob S On Apr 19, 2017, at 09:58 , Richard Gaskin via use-livecode > wrote: E.g. this: put arrayEncode( the customProperties["Prefs"] of stack "Prefs" ) \ into url ("binfile:"& specialFolderPath("Preferences") & \ "/MyPrefs.dat" ) ...is readable enough, but far from English. From ambassador at fourthworld.com Wed Apr 19 18:15:27 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 19 Apr 2017 15:15:27 -0700 Subject: The selectedObjects - is it a container or not? In-Reply-To: <325537F2-5D00-4E3A-876F-B107D576999D@iotecdigital.com> References: <325537F2-5D00-4E3A-876F-B107D576999D@iotecdigital.com> Message-ID: <8f6fb9ee-66ab-952b-6b08-80c8a2f2cfec@fourthworld.com> Bob Sneidar wrote: > On Apr 19, 2017, at 09:58 , Richard Gaskin wrote: >> >> E.g. this: >> >> put arrayEncode( the customProperties["Prefs"] of stack "Prefs" ) \ >> into url ("binfile:"& specialFolderPath("Preferences") & \ >> "/MyPrefs.dat" ) >> >> ...is readable enough, but far from English. > > I would not do it that way. To make it more readable I would use: > > put the customProperties["Prefs"] of stack "Prefs" into tPrefs > put "binfile:"& specialFolderPath("Preferences") & "/MyPrefs.dat" > into tFilePath > put arrayEncode(tPrefs) into url tFilePath > > That is english readable... I checked my OED and I couldn't turn up an entry for customProperties, binfile, or arrayEncode, URL is defined differently, and none of the expressions I've seen in Fowler's Modern English Usage require square brackets or stray ampersands outside of quoted material. ;) > ...as much as can be expected. Exactly. Computers aren't people; no programming language, even the readable ones like Lua and LiveCode, will bear much resemblance to English. The team has removed most references to "English-like" from the lc.com and .org sites, and the more I spend time with other scripting languages the less I use the phrase myself. > I think that trying to make the code compact is counter to making the > code readable. Agreed, though there is sometimes a satisfying sense of completeness to a single statement with nested expressions that does so much. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bogdanoff at me.com Wed Apr 19 23:16:18 2017 From: bogdanoff at me.com (Peter Bogdanoff) Date: Wed, 19 Apr 2017 20:16:18 -0700 Subject: Standard icons included in standalone Message-ID: Hi all, I?m using some of the Standard Icons (button icons) in a standalone. Has there been any work to make them available in LC 8.1 +? Peter Bogdanoff From bogdanoff at me.com Thu Apr 20 00:14:42 2017 From: bogdanoff at me.com (Peter Bogdanoff) Date: Wed, 19 Apr 2017 21:14:42 -0700 Subject: Standard icons included in standalone In-Reply-To: References: Message-ID: <8A84FD75-2B1D-46C6-A31F-8F5D38447C6B@me.com> I?m asking if Standard Icons from the Image Library are available in a standalone. I?m not seeing them show in the standalone as they do in the IDE. Peter On Apr 19, 2017, at 8:16 PM, Peter Bogdanoff via use-livecode wrote: > Hi all, > > I?m using some of the Standard Icons (button icons) in a standalone. Has there been any work to make them available in LC 8.1 +? > > Peter Bogdanoff > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From cubist at aol.com Thu Apr 20 04:22:09 2017 From: cubist at aol.com (Quentin Long) Date: Thu, 20 Apr 2017 04:22:09 -0400 Subject: Weirdness with filter (maybe?) In-Reply-To: References: Message-ID: <15b8a744d43-1f5f-1325b@webstg-a07.mail.aol.com> I have a return-delimited list. Each line of this list consists of [some text] & tab & [other text]. I want to see all the lines of the list for which [some text] contains Character String X. This is obviously a job for the filter command, right? So I try this: filter lines of MyList with ("*" & CharStringX & "*" & tab) The result I'm expecting is, a list which contains every line of MyList in which the [some text] bit contains CharStringX. The result I get is, a "list" which contains zero lines. Have tried various alternate forms of the line, including? filter lines of MyList with ("*" & CharStringX & "*" & numToChar (9)) filter lines of MyList with wildcard pattern ("*" & CharStringX & "*" & tab) filter lines of MyList matching wildcard pattern ("*" & CharStringX & "*" & tab) ?all of which yield the same results as the original line. Would appreciate a sanity check: Am I missing some necessary part of the filter syntax? Does the filter command even know what to do with the constant "tab"? How *does* one filter for a pattern that includes a tab? "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 alex at tweedly.net Thu Apr 20 05:04:28 2017 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 20 Apr 2017 10:04:28 +0100 Subject: Weirdness with filter (maybe?) In-Reply-To: <15b8a744d43-1f5f-1325b@webstg-a07.mail.aol.com> References: <15b8a744d43-1f5f-1325b@webstg-a07.mail.aol.com> Message-ID: <070d631f-a4a4-ef70-9658-aa40ae0c5821@tweedly.net> I think it should be filter lines of MyList with (charStringX & TAB & *) i.e. get lines containing this string X followed by TAB followed by anything Alex On 20/04/2017 09:22, Quentin Long via use-livecode wrote: > I have a return-delimited list. Each line of this list consists of [some text] & tab & [other text]. I want to see all the lines of the list for which [some text] contains Character String X. This is obviously a job for the filter command, right? So I try this: > > filter lines of MyList with ("*" & CharStringX & "*" & tab) > > The result I'm expecting is, a list which contains every line of MyList in which the [some text] bit contains CharStringX. > > The result I get is, a "list" which contains zero lines. > > Have tried various alternate forms of the line, including? > > filter lines of MyList with ("*" & CharStringX & "*" & numToChar (9)) > filter lines of MyList with wildcard pattern ("*" & CharStringX & "*" & tab) > filter lines of MyList matching wildcard pattern ("*" & CharStringX & "*" & tab) > > ?all of which yield the same results as the original line. > > Would appreciate a sanity check: Am I missing some necessary part of the filter syntax? Does the filter command even know what to do with the constant "tab"? How *does* one filter for a pattern that includes a tab? > > > "Bewitched" + "Charlie's Angels" - Charlie = "At Arm's Length" > > Read the webcomic at [ http://www.atarmslength.net ]! > > If you like "At Arm's Length", support it at [ http://www.patreon.com/DarkwingDude ]. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alanstenhouse at hotmail.com Thu Apr 20 06:20:53 2017 From: alanstenhouse at hotmail.com (Alan) Date: Thu, 20 Apr 2017 10:20:53 +0000 Subject: Weirdness with filter (maybe?) Message-ID: Try filter lines of MyList with ("*" & CharStringX & "*" & tab & "*") to get all lines where CharStringX is contained in the first part of the string before the tab. > filter lines of MyList with ("*" & CharStringX & "*" & tab) HTH cheers Alan From toolbook at kestner.de Thu Apr 20 08:03:43 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 20 Apr 2017 14:03:43 +0200 Subject: taking a screenshot fails - video experience needed Message-ID: <004501d2b9ce$2896f8f0$79c4ead0$@kestner.de> Hello, A vital part of my program is taking screenshots (snapshot) from videos, played in my program (DirectShow videos, LC 8.1.4, Windows 10) On a customer machine the snapshot doesn't work at all, it takes only a black screen. For my limited understanding this is related to the video/ screen buffer. I tried both LiveCode options with alwaysBuffer of my videoPlayer = true/false. Same result, black screen. This issue seems perhaps not to be only a LiveCode issue because creating a screenshot with other apps also only get a black screen from the video. In an older version of my program with QT videos and older machines (up to win 7) I also experienced this behavior on some rare machines and I found that turning the hardware acceleration of the video card to off fixed this issue. But since windows 10 there isn't anymore this option "hardware acceleration" in the properties of the video adapter, which you could turn off and I didn't found any comparable option. Has anybody perhaps any idea, what I could look for changing the video buffer behavior inside LiveCode or the system? Thanks Tiemo From paul at researchware.com Thu Apr 20 08:19:42 2017 From: paul at researchware.com (Paul Dupuis) Date: Thu, 20 Apr 2017 08:19:42 -0400 Subject: Standard icons included in standalone In-Reply-To: <8A84FD75-2B1D-46C6-A31F-8F5D38447C6B@me.com> References: <8A84FD75-2B1D-46C6-A31F-8F5D38447C6B@me.com> Message-ID: <962c2d1d-067e-8dcb-d8f7-d7bfefb9e357@researchware.com> Under 8.1.3, if I create a new stack and a new button and open the property inspector for the button and click on the icon tab of the property inspector and click on an icon, the usual dialog appears with the Standard Icons, Standard Patterns, Metacard Icons, Metacard Patterns, and This Stack popup options. All the icon appear to be there. On 4/20/2017 12:14 AM, Peter Bogdanoff via use-livecode wrote: > I?m asking if Standard Icons from the Image Library are available in a standalone. I?m not seeing them show in the standalone as they do in the IDE. > > Peter > > On Apr 19, 2017, at 8:16 PM, Peter Bogdanoff via use-livecode wrote: > >> Hi all, >> >> I?m using some of the Standard Icons (button icons) in a standalone. Has there been any work to make them available in LC 8.1 +? >> >> Peter Bogdanoff >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jonathandlynch at gmail.com Thu Apr 20 08:47:37 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Thu, 20 Apr 2017 08:47:37 -0400 Subject: Which code signing authority? Message-ID: <76D18BFB-532D-4FEB-A1D4-5DCDDD77FC80@gmail.com> Which code signing authority do you guys suggest using? That comes with the apple developer account - but what about for pc and android? I would prefer to avoid spending $600 on a certificate if possible, but I don't know how well-accepted the less expensive certificates are. Sent from my iPhone From toolbook at kestner.de Thu Apr 20 09:00:55 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 20 Apr 2017 15:00:55 +0200 Subject: AW: Which code signing authority? In-Reply-To: <76D18BFB-532D-4FEB-A1D4-5DCDDD77FC80@gmail.com> References: <76D18BFB-532D-4FEB-A1D4-5DCDDD77FC80@gmail.com> Message-ID: <005501d2b9d6$26501c90$72f055b0$@kestner.de> I am working with comodo: https://www.comodo.com/e-commerce/code-signing/code-signing-certificate.php? s_track=7639 Good experience, but no comparison to others Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Jonathan Lynch via use-livecode Gesendet: Donnerstag, 20. April 2017 14:48 An: use-livecode at lists.runrev.com Cc: jonathandlynch at gmail.com Betreff: Which code signing authority? Which code signing authority do you guys suggest using? That comes with the apple developer account - but what about for pc and android? I would prefer to avoid spending $600 on a certificate if possible, but I don't know how well-accepted the less expensive certificates are. Sent from my 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 matthias_livecode_150811 at m-r-d.de Thu Apr 20 10:27:51 2017 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 20 Apr 2017 16:27:51 +0200 Subject: Which code signing authority? In-Reply-To: <76D18BFB-532D-4FEB-A1D4-5DCDDD77FC80@gmail.com> References: <76D18BFB-532D-4FEB-A1D4-5DCDDD77FC80@gmail.com> Message-ID: <94B7EDF2-880B-4C17-ADBD-C714B0A3BCA8@m-r-d.de> K Software is a strategic Commodo partner and sells their certificates They even offer a free signing tool which makes signing Windows programs/dlls very easy. http://codesigning.ksoftware.net And they are selling the Commodo certificates much cheaper than Commodo. 1y / $84 2y / $159 3y / $209 4y / $268 Regards, Matthias > Am 20.04.2017 um 14:47 schrieb Jonathan Lynch via use-livecode >: > > Which code signing authority do you guys suggest using? > > That comes with the apple developer account - but what about for pc and android? > > I would prefer to avoid spending $600 on a certificate if possible, but I don't know how well-accepted the less expensive certificates are. > > Sent from my 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 jonathandlynch at gmail.com Thu Apr 20 10:34:49 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Thu, 20 Apr 2017 10:34:49 -0400 Subject: AW: Which code signing authority? In-Reply-To: <005501d2b9d6$26501c90$72f055b0$@kestner.de> References: <76D18BFB-532D-4FEB-A1D4-5DCDDD77FC80@gmail.com> <005501d2b9d6$26501c90$72f055b0$@kestner.de> Message-ID: <6ED1EFFB-621D-4681-9F6B-98B0E8BAD402@gmail.com> Have you ever had any problems with your certificate being accepted? Comodo seems very affordable. Sent from my iPhone > On Apr 20, 2017, at 9:00 AM, Tiemo Hollmann TB via use-livecode wrote: > > I am working with comodo: > https://www.comodo.com/e-commerce/code-signing/code-signing-certificate.php? > s_track=7639 > Good experience, but no comparison to others > Tiemo > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag > von Jonathan Lynch via use-livecode > Gesendet: Donnerstag, 20. April 2017 14:48 > An: use-livecode at lists.runrev.com > Cc: jonathandlynch at gmail.com > Betreff: Which code signing authority? > > Which code signing authority do you guys suggest using? > > That comes with the apple developer account - but what about for pc and > android? > > I would prefer to avoid spending $600 on a certificate if possible, but I > don't know how well-accepted the less expensive certificates are. > > Sent from my 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 bobsneidar at iotecdigital.com Thu Apr 20 12:09:15 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 20 Apr 2017 16:09:15 +0000 Subject: Weirdness with filter (maybe?) In-Reply-To: References: Message-ID: <66F70F2F-8A4E-4F0B-BCAC-C0AF13765A68@iotecdigital.com> Filter, unlike matchtext, in the form you are using, is not using regex. There is a form of filter however that does. If you need help with a regex expression, I use a neat little tool called RegexMagic. 30 day demo and not too expensive if you use regex expressions on a regular basis. (See what I did there?) Bob S > On Apr 20, 2017, at 03:20 , Alan via use-livecode wrote: > > Try > > filter lines of MyList with ("*" & CharStringX & "*" & tab & "*") > > to get all lines where CharStringX is contained in the first part of the string before the tab. > > >> filter lines of MyList with ("*" & CharStringX & "*" & tab) > > HTH > > 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 bobsneidar at iotecdigital.com Thu Apr 20 12:11:00 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 20 Apr 2017 16:11:00 +0000 Subject: taking a screenshot fails - video experience needed In-Reply-To: <004501d2b9ce$2896f8f0$79c4ead0$@kestner.de> References: <004501d2b9ce$2896f8f0$79c4ead0$@kestner.de> Message-ID: <8CCC7338-AB26-4E1C-A262-CE9FA84AD2BE@iotecdigital.com> It may be a feature of their AV software. Bob S On Apr 20, 2017, at 05:03 , Tiemo Hollmann TB via use-livecode > wrote: Hello, A vital part of my program is taking screenshots (snapshot) from videos, played in my program (DirectShow videos, LC 8.1.4, Windows 10) On a customer machine the snapshot doesn't work at all, it takes only a black screen. For my limited understanding this is related to the video/ screen buffer. I tried both LiveCode options with alwaysBuffer of my videoPlayer = true/false. Same result, black screen. This issue seems perhaps not to be only a LiveCode issue because creating a screenshot with other apps also only get a black screen from the video. In an older version of my program with QT videos and older machines (up to win 7) I also experienced this behavior on some rare machines and I found that turning the hardware acceleration of the video card to off fixed this issue. But since windows 10 there isn't anymore this option "hardware acceleration" in the properties of the video adapter, which you could turn off and I didn't found any comparable option. Has anybody perhaps any idea, what I could look for changing the video buffer behavior inside LiveCode or the system? Thanks Tiemo From bogdanoff at me.com Thu Apr 20 12:20:54 2017 From: bogdanoff at me.com (Peter Bogdanoff) Date: Thu, 20 Apr 2017 09:20:54 -0700 Subject: Standard icons included in standalone In-Reply-To: <962c2d1d-067e-8dcb-d8f7-d7bfefb9e357@researchware.com> References: <8A84FD75-2B1D-46C6-A31F-8F5D38447C6B@me.com> <962c2d1d-067e-8dcb-d8f7-d7bfefb9e357@researchware.com> Message-ID: <10A5146B-49F4-4E44-AC0F-53C6B6A06248@me.com> Yes, but does the image appear in a subsequent standalone application? > On Apr 20, 2017, at 5:19 AM, Paul Dupuis via use-livecode wrote: > > Under 8.1.3, if I create a new stack and a new button and open the > property inspector for the button and click on the icon tab of the > property inspector and click on an icon, the usual dialog appears with > the Standard Icons, Standard Patterns, Metacard Icons, Metacard > Patterns, and This Stack popup options. All the icon appear to be there. > > > >> On 4/20/2017 12:14 AM, Peter Bogdanoff via use-livecode wrote: >> I?m asking if Standard Icons from the Image Library are available in a standalone. I?m not seeing them show in the standalone as they do in the IDE. >> >> Peter >> >>> On Apr 19, 2017, at 8:16 PM, Peter Bogdanoff via use-livecode wrote: >>> >>> Hi all, >>> >>> I?m using some of the Standard Icons (button icons) in a standalone. Has there been any work to make them available in LC 8.1 +? >>> >>> Peter Bogdanoff >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From devin_asay at byu.edu Thu Apr 20 12:26:07 2017 From: devin_asay at byu.edu (Devin Asay) Date: Thu, 20 Apr 2017 16:26:07 +0000 Subject: Standard icons included in standalone In-Reply-To: <962c2d1d-067e-8dcb-d8f7-d7bfefb9e357@researchware.com> References: <8A84FD75-2B1D-46C6-A31F-8F5D38447C6B@me.com> <962c2d1d-067e-8dcb-d8f7-d7bfefb9e357@researchware.com> Message-ID: <2B38D677-97C3-4046-9170-4BB25A66A749@byu.edu> On Apr 20, 2017, at 6:19 AM, Paul Dupuis via use-livecode > wrote: Under 8.1.3, if I create a new stack and a new button and open the property inspector for the button and click on the icon tab of the property inspector and click on an icon, the usual dialog appears with the Standard Icons, Standard Patterns, Metacard Icons, Metacard Patterns, and This Stack popup options. All the icon appear to be there. On 4/20/2017 12:14 AM, Peter Bogdanoff via use-livecode wrote: I?m asking if Standard Icons from the Image Library are available in a standalone. I?m not seeing them show in the standalone as they do in the IDE. Peter On Apr 19, 2017, at 8:16 PM, Peter Bogdanoff via use-livecode > wrote: Hi all, I?m using some of the Standard Icons (button icons) in a standalone. Has there been any work to make them available in LC 8.1 +? Peter Bogdanoff Yes the icons are there, but what I think Peter is asking is whether there is a way to import them into a stack so that they are still there after you build a standalone. Pre-8.x there was an Image Library menu choice under the Development menu, and you could choose to place the image (i.e., import it into the stack, rather than just reference it.) Right now there is no straightforward way to import an image in the standard image library into your stack so that it will be there in the standalone. Devin Devin Asay Director Office of Digital Humanities Brigham Young University From paul at researchware.com Thu Apr 20 12:31:37 2017 From: paul at researchware.com (Paul Dupuis) Date: Thu, 20 Apr 2017 12:31:37 -0400 Subject: Standard icons included in standalone In-Reply-To: <10A5146B-49F4-4E44-AC0F-53C6B6A06248@me.com> References: <8A84FD75-2B1D-46C6-A31F-8F5D38447C6B@me.com> <962c2d1d-067e-8dcb-d8f7-d7bfefb9e357@researchware.com> <10A5146B-49F4-4E44-AC0F-53C6B6A06248@me.com> Message-ID: <3ae3a6cd-6012-0114-bb54-42a67aa6a8b3@researchware.com> Yes, the icons appear for button they are associated with in the standalone built under LC8.1.3 under Windows. Not tested on OSX. On 4/20/2017 12:20 PM, Peter Bogdanoff via use-livecode wrote: > Yes, but does the image appear in a subsequent standalone application? > >> On Apr 20, 2017, at 5:19 AM, Paul Dupuis via use-livecode wrote: >> >> Under 8.1.3, if I create a new stack and a new button and open the >> property inspector for the button and click on the icon tab of the >> property inspector and click on an icon, the usual dialog appears with >> the Standard Icons, Standard Patterns, Metacard Icons, Metacard >> Patterns, and This Stack popup options. All the icon appear to be there. >> >> >> >>> On 4/20/2017 12:14 AM, Peter Bogdanoff via use-livecode wrote: >>> I?m asking if Standard Icons from the Image Library are available in a standalone. I?m not seeing them show in the standalone as they do in the IDE. >>> >>> Peter >>> >>>> On Apr 19, 2017, at 8:16 PM, Peter Bogdanoff via use-livecode wrote: >>>> >>>> Hi all, >>>> >>>> I?m using some of the Standard Icons (button icons) in a standalone. Has there been any work to make them available in LC 8.1 +? >>>> >>>> Peter Bogdanoff >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Thu Apr 20 12:36:04 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 20 Apr 2017 10:36:04 -0600 Subject: Standard icons included in standalone In-Reply-To: <3ae3a6cd-6012-0114-bb54-42a67aa6a8b3@researchware.com> References: <8A84FD75-2B1D-46C6-A31F-8F5D38447C6B@me.com> <962c2d1d-067e-8dcb-d8f7-d7bfefb9e357@researchware.com> <10A5146B-49F4-4E44-AC0F-53C6B6A06248@me.com> <3ae3a6cd-6012-0114-bb54-42a67aa6a8b3@researchware.com> Message-ID: It should be possible to add the image library as a plugin. Copy the stack in question (for example from: C:\Program Files (x86)\RunRev\LiveCode Community 9.0 (dp 5)\Toolset\palettes\revimagelibrary.rev to your plugins folder at which point you can use the old method and import any of the required images. On Thu, Apr 20, 2017 at 10:31 AM, Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > Yes, the icons appear for button they are associated with in the > standalone built under LC8.1.3 under Windows. Not tested on OSX. > > On 4/20/2017 12:20 PM, Peter Bogdanoff via use-livecode wrote: > > Yes, but does the image appear in a subsequent standalone application? > > > >> On Apr 20, 2017, at 5:19 AM, Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> Under 8.1.3, if I create a new stack and a new button and open the > >> property inspector for the button and click on the icon tab of the > >> property inspector and click on an icon, the usual dialog appears with > >> the Standard Icons, Standard Patterns, Metacard Icons, Metacard > >> Patterns, and This Stack popup options. All the icon appear to be there. > >> > >> > >> > >>> On 4/20/2017 12:14 AM, Peter Bogdanoff via use-livecode wrote: > >>> I?m asking if Standard Icons from the Image Library are available in a > standalone. I?m not seeing them show in the standalone as they do in the > IDE. > >>> > >>> Peter > >>> > >>>> On Apr 19, 2017, at 8:16 PM, Peter Bogdanoff via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>>> > >>>> Hi all, > >>>> > >>>> I?m using some of the Standard Icons (button icons) in a standalone. > Has there been any work to make them available in LC 8.1 +? > >>>> > >>>> Peter Bogdanoff > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode at lists.runrev.com > >>>> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 20 12:40:42 2017 From: hh at hyperhh.de (hh) Date: Thu, 20 Apr 2017 18:40:42 +0200 Subject: Weirdness with filter (maybe?) Message-ID: <792D7BCE-42C1-45B6-97E5-FF2FDDFF265E@hyperhh.de> There is also brilliant work optimized for LC syntax. By the one and only LC-master of regex, Thierry: https://sunny-tdz.com/livecode/sunnyrex > Bob S. wrote: > Filter, unlike matchtext, in the form you are using, is not using regex. There is a form of > filter however that does. If you need help with a regex expression, I use a neat little tool > called RegexMagic. 30 day demo and not too expensive if you use regex expressions on a regular > basis. (See what I did there?) From johnpatten at me.com Thu Apr 20 13:37:38 2017 From: johnpatten at me.com (JOHN PATTEN) Date: Thu, 20 Apr 2017 10:37:38 -0700 Subject: Error connecting to SQLlite in iOS Message-ID: <153C0AD9-D418-46F5-91B1-4990D93DBE98@me.com> Hi All, I have a simple project that uses an sql lite database. It works fine in LiveCode, but when I test it in the iOS simulator, i get an error. I have copied to the SQL.lite database to the ?Copy Files? in the standalone settings. I have also added the SqLite and MySQL inclusions. Here is the link to the project and db: Here is a link to the stack and sql db: https://www.dropbox.com/s/74rhx88dod6cs2k/CCSS%20App.zip?dl=0 Here is the script I am using. local sDatabaseID command databaseConnect local tDatabasePath, tDatabaseID put specialFolderPath("Documents") & "/ccssdb-ela.sqlite" into tDatabasePath ## Test if a database exists if there is a file tDatabasePath then answer "A database already exists" with "Okay" end if if there is a file tDatabasepath then put revOpenDatabase("sqlite", tDatabasePath, , , , ) into tDatabaseID setDatabaseID tDatabaseID put cd fld "targetGrade" into tGrade if tGrade is 10 then put 9 into tGrade end if if tGrade is 12 then put 11 into tGrade end if put revQueryDatabase(tDatabaseID,"SELECT * FROM ccss_data WHERE grade =:1","tGrade") into theCursor if theCursor is an integer then ConvertSQLCursorToArray theCursor, theDataGridArray put the result into theError if theError is empty then set the dgData of group "ccss_data" to theDataGridArray end if revCloseCursor theCursor revCloseDatabase tDatabaseID else Answer "Error connecting to the database:" && tDatabaseID & "." end if else Answer "Having trouble locating database." end if end DatabaseConnect command setDatabaseID pDatabaseID put pDatabaseID into sDatabaseID end setDatabaseID function getDatabaseID return sDatabaseID end getDatabaseID command ConvertSQLCursorToArray pCursor, @pOutArrayA local i local theFields local theError put revDatabaseColumnNames(pCursor) into theFields if theFields begins with "revdberr," then put item 2 to -1 of theFields into theError end if if theError is empty then put 0 into i repeat until revQueryIsAtEnd(pCursor) add 1 to i repeat for each item theField in theFields put revDatabaseColumnNamed(pCursor, theField) into pOutArrayA [i] [theField] end repeat revMoveToNextRecord pCursor end repeat end if return theError end ConvertSQLCursorToArray Thank you! From bonnmike at gmail.com Thu Apr 20 14:51:41 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 20 Apr 2017 12:51:41 -0600 Subject: Error connecting to SQLlite in iOS In-Reply-To: <153C0AD9-D418-46F5-91B1-4990D93DBE98@me.com> References: <153C0AD9-D418-46F5-91B1-4990D93DBE98@me.com> Message-ID: Unless things have changed, when you add files using the copy files pane of the standalone settings, when sent to ios or android they end up in the engine folder. (I think? Or somewhere in that hierarchy) You would need to check for the existence of the file in documents on app startup and if it doesn't exist, copy it from engine to where you need it to be in the documents folder. - "engine": The folder containing the built standalone engine (i.e. the bundle). This is useful for constructing paths to resources that have been copied into thebundle at build time I don't recall if copied files appear in the toplevel or not, but it shouldn't be too difficult to find where it is. Another option would be to put the initial database into a property rather than from copy files and place it into the documents folder from there. On Thu, Apr 20, 2017 at 11:37 AM, JOHN PATTEN via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi All, > > I have a simple project that uses an sql lite database. It works fine in > LiveCode, but when I test it in the iOS simulator, i get an error. > > I have copied to the SQL.lite database to the ?Copy Files? in the > standalone settings. I have also added the SqLite and MySQL inclusions. > > Here is the link to the project and db: Here is a link to the stack and > sql db: https://www.dropbox.com/s/74rhx88dod6cs2k/CCSS%20App.zip?dl=0 < > https://www.dropbox.com/s/74rhx88dod6cs2k/CCSS%20App.zip?dl=0> > > Here is the script I am using. > > local sDatabaseID > > command databaseConnect > local tDatabasePath, tDatabaseID > > put specialFolderPath("Documents") & "/ccssdb-ela.sqlite" into > tDatabasePath > > ## Test if a database exists > > if there is a file tDatabasePath then > > answer "A database already exists" with "Okay" > > end if > > if there is a file tDatabasepath then > put revOpenDatabase("sqlite", tDatabasePath, , , , ) into tDatabaseID > setDatabaseID tDatabaseID > > put cd fld "targetGrade" into tGrade > > if tGrade is 10 then > > put 9 into tGrade > > end if > > if tGrade is 12 then > > put 11 into tGrade > > end if > > put revQueryDatabase(tDatabaseID,"SELECT * FROM ccss_data WHERE grade > =:1","tGrade") into theCursor > > if theCursor is an integer then > > ConvertSQLCursorToArray theCursor, theDataGridArray > > put the result into theError > > if theError is empty then > > set the dgData of group "ccss_data" to theDataGridArray > > end if > > revCloseCursor theCursor > > > revCloseDatabase tDatabaseID > > else > > > Answer "Error connecting to the database:" && tDatabaseID & "." > end if > > > else > > Answer "Having trouble locating database." > > end if > > end DatabaseConnect > > command setDatabaseID pDatabaseID > > put pDatabaseID into sDatabaseID > > end setDatabaseID > > > function getDatabaseID > > return sDatabaseID > > end getDatabaseID > > > command ConvertSQLCursorToArray pCursor, @pOutArrayA > > local i > > local theFields > > local theError > > > put revDatabaseColumnNames(pCursor) into theFields > > if theFields begins with "revdberr," then > > put item 2 to -1 of theFields into theError > > end if > > if theError is empty then > > put 0 into i > > repeat until revQueryIsAtEnd(pCursor) > > add 1 to i > > > repeat for each item theField in theFields > > put revDatabaseColumnNamed(pCursor, theField) into pOutArrayA [i] > [theField] > > end repeat > > > revMoveToNextRecord pCursor > > end repeat > > end if > > return theError > > end ConvertSQLCursorToArray > > > 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 rdimola at evergreeninfo.net Thu Apr 20 15:05:04 2017 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 20 Apr 2017 15:05:04 -0400 Subject: Error connecting to SQLlite in iOS In-Reply-To: <153C0AD9-D418-46F5-91B1-4990D93DBE98@me.com> References: <153C0AD9-D418-46F5-91B1-4990D93DBE98@me.com> Message-ID: <005f01d2ba09$142cd480$3c867d80$@net> John, The standalone "copy files" are in "the engine folder" in the mobile app. Copy the DB from the engine folder to the documents folder. Put url ("binfile:"&the engine folder&"/ccssdb-ela.sqlite") into url ("binfile:"&the documents folder&"/ccssdb-ela.sqlite") You can't open the DB in the engine folder even if you don?t try to write to it as the engine folder is read-only. 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 JOHN PATTEN via use-livecode Sent: Thursday, April 20, 2017 1:38 PM To: How to use LiveCode Cc: JOHN PATTEN Subject: Error connecting to SQLlite in iOS Hi All, I have a simple project that uses an sql lite database. It works fine in LiveCode, but when I test it in the iOS simulator, i get an error. I have copied to the SQL.lite database to the ?Copy Files? in the standalone settings. I have also added the SqLite and MySQL inclusions. Here is the link to the project and db: Here is a link to the stack and sql db: https://www.dropbox.com/s/74rhx88dod6cs2k/CCSS%20App.zip?dl=0 Here is the script I am using. local sDatabaseID command databaseConnect local tDatabasePath, tDatabaseID put specialFolderPath("Documents") & "/ccssdb-ela.sqlite" into tDatabasePath ## Test if a database exists if there is a file tDatabasePath then answer "A database already exists" with "Okay" end if if there is a file tDatabasepath then put revOpenDatabase("sqlite", tDatabasePath, , , , ) into tDatabaseID setDatabaseID tDatabaseID put cd fld "targetGrade" into tGrade if tGrade is 10 then put 9 into tGrade end if if tGrade is 12 then put 11 into tGrade end if put revQueryDatabase(tDatabaseID,"SELECT * FROM ccss_data WHERE grade =:1","tGrade") into theCursor if theCursor is an integer then ConvertSQLCursorToArray theCursor, theDataGridArray put the result into theError if theError is empty then set the dgData of group "ccss_data" to theDataGridArray end if revCloseCursor theCursor revCloseDatabase tDatabaseID else Answer "Error connecting to the database:" && tDatabaseID & "." end if else Answer "Having trouble locating database." end if end DatabaseConnect command setDatabaseID pDatabaseID put pDatabaseID into sDatabaseID end setDatabaseID function getDatabaseID return sDatabaseID end getDatabaseID command ConvertSQLCursorToArray pCursor, @pOutArrayA local i local theFields local theError put revDatabaseColumnNames(pCursor) into theFields if theFields begins with "revdberr," then put item 2 to -1 of theFields into theError end if if theError is empty then put 0 into i repeat until revQueryIsAtEnd(pCursor) add 1 to i repeat for each item theField in theFields put revDatabaseColumnNamed(pCursor, theField) into pOutArrayA [i] [theField] end repeat revMoveToNextRecord pCursor end repeat end if return theError end ConvertSQLCursorToArray 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 bobsneidar at iotecdigital.com Thu Apr 20 19:51:12 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 20 Apr 2017 23:51:12 +0000 Subject: numberFormat affecting array keys??? Message-ID: <88D0ABA1-C31D-4FC1-8738-25D1AD178DA5@iotecdigital.com> Hi all. Put this into a button: on mouseUp set the numberFormat to "00" repeat with i=1 to 10 put i into myArray [i] breakpoint end repeat end mouseUp At the breakpoint examine the array. There will be a 1 in an element with the name... ready??? "01" Okay THAT has GOT to be a bug!!! Why the hell is numberformat modifying the name of the array element?? I haven't done ANY math on it. Apparently the engine DOES! Bob S From ambassador at fourthworld.com Thu Apr 20 20:04:35 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 20 Apr 2017 17:04:35 -0700 Subject: numberFormat affecting array keys??? In-Reply-To: <88D0ABA1-C31D-4FC1-8738-25D1AD178DA5@iotecdigital.com> References: <88D0ABA1-C31D-4FC1-8738-25D1AD178DA5@iotecdigital.com> Message-ID: <78a637b4-73f0-a023-8289-cbcb817856a5@fourthworld.com> Bob Sneidar wrote: > Hi all. > > Put this into a button: > > on mouseUp > set the numberFormat to "00" > repeat with i=1 to 10 > put i into myArray [i] > breakpoint > end repeat > end mouseUp > > At the breakpoint examine the array. There will be a 1 in an element > with the name... ready??? "01" > > Okay THAT has GOT to be a bug!!! Why the hell is numberformat > modifying the name of the array element?? I haven't done ANY math on > it. Apparently the engine DOES! I believe that has to do with the evaluation done in the debugger's variable viewer, and not in the array itself. Why it happens I can't say, but the array itself seems fine: If you get the keys of the array you'll see they're padded with preceding 0s as you'd expect. And the same is true for the values for each key. In fact, when I first tested this I added this just before the end of the handler: put myArray[2] ...and I got empty. Then I changed that to: put myArray[02] ..and I got: 02 -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From paul at researchware.com Thu Apr 20 20:07:05 2017 From: paul at researchware.com (Paul Dupuis) Date: Thu, 20 Apr 2017 20:07:05 -0400 Subject: numberFormat affecting array keys??? In-Reply-To: <88D0ABA1-C31D-4FC1-8738-25D1AD178DA5@iotecdigital.com> References: <88D0ABA1-C31D-4FC1-8738-25D1AD178DA5@iotecdigital.com> Message-ID: <940b9ecd-62e3-53fc-00d3-bfbae05e885b@researchware.com> Array keys are strings. Even when you: put 1 into tArray[1] the "1" as the array key is a string. If you do something mathematical to that key, LC converts any string that represents a number to a number when it needs to. On 4/20/2017 7:51 PM, Bob Sneidar via use-livecode wrote: > Hi all. > > Put this into a button: > > on mouseUp > set the numberFormat to "00" > repeat with i=1 to 10 > put i into myArray [i] > breakpoint > end repeat > end mouseUp > > At the breakpoint examine the array. There will be a 1 in an element with the name... ready??? "01" > > Okay THAT has GOT to be a bug!!! Why the hell is numberformat modifying the name of the array element?? I haven't done ANY math on it. Apparently the engine DOES! > > 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 jonathandlynch at gmail.com Thu Apr 20 20:19:18 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Thu, 20 Apr 2017 20:19:18 -0400 Subject: numberFormat affecting array keys??? In-Reply-To: <78a637b4-73f0-a023-8289-cbcb817856a5@fourthworld.com> References: <88D0ABA1-C31D-4FC1-8738-25D1AD178DA5@iotecdigital.com> <78a637b4-73f0-a023-8289-cbcb817856a5@fourthworld.com> Message-ID: I would have thought that A[1] and A[01] would be the same, while A["1"] and A["01"] were different - good to know that is not the case. Sent from my iPhone > On Apr 20, 2017, at 8:04 PM, Richard Gaskin via use-livecode wrote: > > Bob Sneidar wrote: > > > Hi all. > > > > Put this into a button: > > > > on mouseUp > > set the numberFormat to "00" > > repeat with i=1 to 10 > > put i into myArray [i] > > breakpoint > > end repeat > > end mouseUp > > > > At the breakpoint examine the array. There will be a 1 in an element > > with the name... ready??? "01" > > > > Okay THAT has GOT to be a bug!!! Why the hell is numberformat > > modifying the name of the array element?? I haven't done ANY math on > > it. Apparently the engine DOES! > > I believe that has to do with the evaluation done in the debugger's variable viewer, and not in the array itself. > > Why it happens I can't say, but the array itself seems fine: > > If you get the keys of the array you'll see they're padded with preceding 0s as you'd expect. And the same is true for the values for each key. > > In fact, when I first tested this I added this just before the end of the handler: > > put myArray[2] > > ...and I got empty. > > Then I changed that to: > > put myArray[02] > > ..and I got: > > 02 > > -- > 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 Apr 20 20:32:41 2017 From: hh at hyperhh.de (hh) Date: Fri, 21 Apr 2017 02:32:41 +0200 Subject: numberFormat affecting array keys??? Message-ID: > Bob S. wrote: > Okay THAT has GOT to be a bug!!! Why the hell is numberformat modifying the > name of the array element?? I haven't done ANY math on it. "repeat with i=1 to 10" uses i to count from 1 up to 10 step 1: That's a lot of math you've done to i. Whereas this doesn't touch the numbers: set the numberFormat to "00" put 1 into myArray[1] put 2 into myArray[2] From hh at hyperhh.de Thu Apr 20 20:32:42 2017 From: hh at hyperhh.de (hh) Date: Fri, 21 Apr 2017 02:32:42 +0200 Subject: numberFormat affecting array keys??? Message-ID: <33806FA3-E17D-4277-A52F-04522D6EC269@hyperhh.de> > Bob S. wrote: > Okay THAT has GOT to be a bug!!! Why the hell is numberformat modifying the > name of the array element?? I haven't done ANY math on it. "repeat with i=1 to 10" uses i to count from 1 up to 10 step 1: That's a lot of math you've done to i. Whereas this doesn't touch the numbers: set the numberFormat to "00" put 1 into myArray[1] put 2 into myArray[2] From jacque at hyperactivesw.com Fri Apr 21 01:33:26 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 21 Apr 2017 00:33:26 -0500 Subject: Error connecting to SQLlite in iOS In-Reply-To: <005f01d2ba09$142cd480$3c867d80$@net> References: <153C0AD9-D418-46F5-91B1-4990D93DBE98@me.com> <005f01d2ba09$142cd480$3c867d80$@net> Message-ID: On 4/20/17 2:05 PM, Ralph DiMola via use-livecode wrote: > The standalone "copy files" are in "the engine folder" in the mobile app. Apple changed the rules and files go into specialFolderPath("resources") now. But LC aliases them to the engine folder for backward compatibility. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From toolbook at kestner.de Fri Apr 21 02:51:35 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Fri, 21 Apr 2017 08:51:35 +0200 Subject: AW: taking a screenshot fails - video experience needed In-Reply-To: <8CCC7338-AB26-4E1C-A262-CE9FA84AD2BE@iotecdigital.com> References: <004501d2b9ce$2896f8f0$79c4ead0$@kestner.de> <8CCC7338-AB26-4E1C-A262-CE9FA84AD2BE@iotecdigital.com> Message-ID: <003001d2ba6b$b8a27fd0$29e77f70$@kestner.de> Hi Bob, what do you mean with "their AV software"? the drivers of their video adapter? Or do you think of any other? And what do you mean with "feature"? to suppress the ability of making screenshots in general? Ever heard of something like this? Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Bob Sneidar via use-livecode Gesendet: Donnerstag, 20. April 2017 18:11 An: How to use LiveCode Cc: Bob Sneidar Betreff: Re: taking a screenshot fails - video experience needed It may be a feature of their AV software. Bob S On Apr 20, 2017, at 05:03 , Tiemo Hollmann TB via use-livecode > wrote: Hello, A vital part of my program is taking screenshots (snapshot) from videos, played in my program (DirectShow videos, LC 8.1.4, Windows 10) On a customer machine the snapshot doesn't work at all, it takes only a black screen. For my limited understanding this is related to the video/ screen buffer. I tried both LiveCode options with alwaysBuffer of my videoPlayer = true/false. Same result, black screen. This issue seems perhaps not to be only a LiveCode issue because creating a screenshot with other apps also only get a black screen from the video. In an older version of my program with QT videos and older machines (up to win 7) I also experienced this behavior on some rare machines and I found that turning the hardware acceleration of the video card to off fixed this issue. But since windows 10 there isn't anymore this option "hardware acceleration" in the properties of the video adapter, which you could turn off and I didn't found any comparable option. Has anybody perhaps any idea, what I could look for changing the video buffer behavior inside LiveCode or the system? Thanks Tiemo _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Fri Apr 21 03:26:19 2017 From: mark at livecode.com (Mark Waddingham) Date: Fri, 21 Apr 2017 09:26:19 +0200 Subject: numberFormat affecting array =?UTF-8?Q?keys=3F=3F=3F?= In-Reply-To: <88D0ABA1-C31D-4FC1-8738-25D1AD178DA5@iotecdigital.com> References: <88D0ABA1-C31D-4FC1-8738-25D1AD178DA5@iotecdigital.com> Message-ID: <11db1e6f8cf692291ab0eee4cf9a876e@livecode.com> On 2017-04-21 01:51, Bob Sneidar via use-livecode wrote: > Put this into a button: > > on mouseUp > set the numberFormat to "00" > repeat with i=1 to 10 > put i into myArray [i] > breakpoint > end repeat > end mouseUp > > At the breakpoint examine the array. There will be a 1 in an element > with the name... ready??? "01" > > Okay THAT has GOT to be a bug!!! Why the hell is numberformat > modifying the name of the array element?? I haven't done ANY math on > it. Apparently the engine DOES! As others have already said, this isn't a bug - just a consequence of the rules previously mentioned. The engine is doing this: repeat with i = strToNum(1) to strToNum(10) put i into myArray[numToStr(i)] end repeat So, the value of the key is put into the array as a number but array keys are always strings, so it is converted to a string before indexing the array. I think this is perhaps more evidence that 'numberFormat' should probably be deprecated - or at least marked as 'present for HyperCard compatibility only and shouldn't be used in new code'. Indeed, even the latter is somewhat misleading as (due to the IEEE double internal representation used for numbers in LiveCode), numberFormat does not and cannot work the same. (The reason it cannot work the same is that the numberFormat expresses precision in decimal places, but doubles use binary representation - so a double can only approximate a decimal number to a certain number of decimal places, it can't faithfully represent it except for a subset of values). My general recommendation is: 1) Don't use numberFormat in new code. 2) Use format() to format your numbers *when you want to display them*. 3) Use round() to control the precision of your numbers. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From dvglasgow at gmail.com Fri Apr 21 07:03:33 2017 From: dvglasgow at gmail.com (David V Glasgow) Date: Fri, 21 Apr 2017 12:03:33 +0100 Subject: Livecode cross platform delight In-Reply-To: <004501d2b9ce$2896f8f0$79c4ead0$@kestner.de> References: <004501d2b9ce$2896f8f0$79c4ead0$@kestner.de> Message-ID: I have been so busy recently developing an app (on Mac), I completely failed to keep up testing Windows version, probably going back 20 or so builds. I had scripted several platform dependent variants, but never tested the features. Stupid. Suddenly I find myself faced with very soon running a training workshop on the app, using a mixture of BYOD machines. Today I woke in the early hours panicking, sweatily picturing bugs in the Windows version popping up mid workshop. With some anxiety I launched the Windows version on XP, Vista and 10 (the terrible testing trio), and ?? it worked perfectly. I just sat there, thinking how truly amazing , really, really amazing that is. Just in case anyone out there has started to take it for granted, Livecode *is* truly amazing. Best wishes, David G From lists at mangomultimedia.com Fri Apr 21 07:31:37 2017 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 21 Apr 2017 11:31:37 +0000 Subject: taking a screenshot fails - video experience needed In-Reply-To: <003001d2ba6b$b8a27fd0$29e77f70$@kestner.de> References: <004501d2b9ce$2896f8f0$79c4ead0$@kestner.de> <8CCC7338-AB26-4E1C-A262-CE9FA84AD2BE@iotecdigital.com> <003001d2ba6b$b8a27fd0$29e77f70$@kestner.de> Message-ID: On Fri, Apr 21, 2017 at 1:53 AM Tiemo Hollmann TB via use-livecode < use-livecode at lists.runrev.com> wrote: > And what do you mean with "feature"? to suppress the ability of making > screenshots in general? Ever heard of something like this? I've seen Webroot affect what can be captured on the screen. http://help.screensteps.com/m/authoring/l/549303-why-is-the-screen-black-when-i-try-to-capture-the-screen-on-windows -- Trevor DeVore > From bodine at bodinetraininggames.com Fri Apr 21 09:17:19 2017 From: bodine at bodinetraininggames.com (tbodine) Date: Fri, 21 Apr 2017 06:17:19 -0700 (PDT) Subject: AW: Which code signing authority? In-Reply-To: <6ED1EFFB-621D-4681-9F6B-98B0E8BAD402@gmail.com> References: <76D18BFB-532D-4FEB-A1D4-5DCDDD77FC80@gmail.com> <005501d2b9d6$26501c90$72f055b0$@kestner.de> <6ED1EFFB-621D-4681-9F6B-98B0E8BAD402@gmail.com> Message-ID: <1492780639927-4714101.post@n4.nabble.com> I've been using K Software's Comodo certs to sign Windows standalones and installers for at least five years. The support provided by the owner of K Software is quite good. (Example: http://certhelp.ksoftware.net/support/home ) Tom B. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Which-code-signing-authority-tp4714079p4714101.html Sent from the Revolution - User mailing list archive at Nabble.com. From jonathandlynch at gmail.com Fri Apr 21 10:18:20 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Fri, 21 Apr 2017 10:18:20 -0400 Subject: AW: Which code signing authority? In-Reply-To: <1492780639927-4714101.post@n4.nabble.com> References: <76D18BFB-532D-4FEB-A1D4-5DCDDD77FC80@gmail.com> <005501d2b9d6$26501c90$72f055b0$@kestner.de> <6ED1EFFB-621D-4681-9F6B-98B0E8BAD402@gmail.com> <1492780639927-4714101.post@n4.nabble.com> Message-ID: I will check them out. Maybe LiveCode could become a Comodo cert distributor? That would be a nice plus and a little extra revenue for them. Sent from my iPhone > On Apr 21, 2017, at 9:17 AM, tbodine via use-livecode wrote: > > I've been using K Software's Comodo certs to sign Windows standalones and > installers for at least five years. The support provided by the owner of K > Software is quite good. (Example: http://certhelp.ksoftware.net/support/home > ) > > Tom B. > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Which-code-signing-authority-tp4714079p4714101.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Apr 21 10:26:41 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 21 Apr 2017 14:26:41 +0000 Subject: numberFormat affecting array keys??? In-Reply-To: References: Message-ID: <6A4BE9A5-0AAA-4063-A87A-6ADA78ED4F22@iotecdigital.com> Now I have you! It's NOT doing math in the loop! I know this because the VALUE is 1 and NOT 01. Bob S On Apr 20, 2017, at 17:32 , hh via use-livecode > wrote: Bob S. wrote: Okay THAT has GOT to be a bug!!! Why the hell is numberformat modifying the name of the array element?? I haven't done ANY math on it. "repeat with i=1 to 10" uses i to count from 1 up to 10 step 1: That's a lot of math you've done to i. Whereas this doesn't touch the numbers: set the numberFormat to "00" put 1 into myArray[1] put 2 into myArray[2] From bobsneidar at iotecdigital.com Fri Apr 21 10:31:09 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 21 Apr 2017 14:31:09 +0000 Subject: numberFormat affecting array keys??? In-Reply-To: <11db1e6f8cf692291ab0eee4cf9a876e@livecode.com> References: <88D0ABA1-C31D-4FC1-8738-25D1AD178DA5@iotecdigital.com> <11db1e6f8cf692291ab0eee4cf9a876e@livecode.com> Message-ID: <1182CFD8-5629-4F66-85F2-FB26351EB033@iotecdigital.com> Again, the VALUE is not being converted by numberFormat, so it ISN'T the LOOP calculation that is doing it! Otherwise the VALUE would ALSO be 1! I loop is using i and it clearly contains 1 and not 01 because that is what shows up in the value. I could put it the otherway. I could say I expected the VALUE to ALSO be 1 because this is how numberFormat shoud work, and it isn't. But I agree numberFormat should be deprecated. Time to work on that formatNumber function! Bob S On Apr 21, 2017, at 24:26 , Mark Waddingham via use-livecode > wrote: As others have already said, this isn't a bug - just a consequence of the rules previously mentioned. The engine is doing this: repeat with i = strToNum(1) to strToNum(10) put i into myArray[numToStr(i)] end repeat So, the value of the key is put into the array as a number but array keys are always strings, so it is converted to a string before indexing the array. From bobsneidar at iotecdigital.com Fri Apr 21 10:33:53 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 21 Apr 2017 14:33:53 +0000 Subject: numberFormat affecting array keys??? In-Reply-To: <1182CFD8-5629-4F66-85F2-FB26351EB033@iotecdigital.com> References: <88D0ABA1-C31D-4FC1-8738-25D1AD178DA5@iotecdigital.com> <11db1e6f8cf692291ab0eee4cf9a876e@livecode.com> <1182CFD8-5629-4F66-85F2-FB26351EB033@iotecdigital.com> Message-ID: <68810F78-F6AD-4993-A126-EE458924D5BA@iotecdigital.com> I got that wrong. I could say I expected the value to be 01. Also if you see the value of i in the debugger, it indicates that the value of i is 1 and NOT 01. So it HAS to be the array designation that is doing it. Bob S On Apr 21, 2017, at 07:31 , Bob Sneidar via use-livecode > wrote: I could put it the otherway. I could say I expected the VALUE to ALSO be 1 because this is how numberFormat shoud work, and it isn't. From bobsneidar at iotecdigital.com Fri Apr 21 10:35:59 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 21 Apr 2017 14:35:59 +0000 Subject: taking a screenshot fails - video experience needed In-Reply-To: <003001d2ba6b$b8a27fd0$29e77f70$@kestner.de> References: <004501d2b9ce$2896f8f0$79c4ead0$@kestner.de> <8CCC7338-AB26-4E1C-A262-CE9FA84AD2BE@iotecdigital.com> <003001d2ba6b$b8a27fd0$29e77f70$@kestner.de> Message-ID: Anti Virus. Some malware is designed to take screen shots and ship them off. https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=13&cad=rja&uact=8&ved=0ahUKEwjuj5zR4rXTAhVps1QKHYrjD0wQFghSMAw&url=https%3A%2F%2Fsecurity.stackexchange.com%2Fquestions%2F126433%2Fdetecting-when-a-screenshot-is-taken-by-a-software-spyware-in-windows&usg=AFQjCNFV1qZmN6uQFyAfMdxw5aAvbaCUoQ&sig2=3WyqWfhyd5Te2CpGuPw1hQ Bob S On Apr 20, 2017, at 23:51 , Tiemo Hollmann TB via use-livecode wrote: Hi Bob, what do you mean with "their AV software"? the drivers of their video adapter? Or do you think of any other? And what do you mean with "feature"? to suppress the ability of making screenshots in general? Ever heard of something like this? Tiemo From mark at livecode.com Fri Apr 21 11:18:52 2017 From: mark at livecode.com (Mark Waddingham) Date: Fri, 21 Apr 2017 17:18:52 +0200 Subject: numberFormat affecting array =?UTF-8?Q?keys=3F=3F=3F?= In-Reply-To: <68810F78-F6AD-4993-A126-EE458924D5BA@iotecdigital.com> References: <88D0ABA1-C31D-4FC1-8738-25D1AD178DA5@iotecdigital.com> <11db1e6f8cf692291ab0eee4cf9a876e@livecode.com> <1182CFD8-5629-4F66-85F2-FB26351EB033@iotecdigital.com> <68810F78-F6AD-4993-A126-EE458924D5BA@iotecdigital.com> Message-ID: <252419b9e9106858b1f2075cd8de4a5f@livecode.com> On 2017-04-21 16:33, Bob Sneidar via use-livecode wrote: > I got that wrong. I could say I expected the value to be 01. Also if > you see the value of i in the debugger, it indicates that the value > of i is 1 and NOT 01. So it HAS to be the array designation that is > doing it. Yes - i is a number (as it is the index of the for loop) so the value of the array element is a number, and so appears as '1' (not affected by numberFormat). However, array keys are *always* strings, so when you set the array key numberFormat comes into play and the key is '01' and not '1'. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From bobsneidar at iotecdigital.com Fri Apr 21 11:34:56 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 21 Apr 2017 15:34:56 +0000 Subject: numberFormat affecting array keys??? In-Reply-To: <252419b9e9106858b1f2075cd8de4a5f@livecode.com> References: <88D0ABA1-C31D-4FC1-8738-25D1AD178DA5@iotecdigital.com> <11db1e6f8cf692291ab0eee4cf9a876e@livecode.com> <1182CFD8-5629-4F66-85F2-FB26351EB033@iotecdigital.com> <68810F78-F6AD-4993-A126-EE458924D5BA@iotecdigital.com> <252419b9e9106858b1f2075cd8de4a5f@livecode.com> Message-ID: <9A56C5E3-AE97-4FAF-8369-ADBFD8A63BA5@iotecdigital.com> OIC. NumberFormat is a STRING function. So then...: set the numberFormat to "00"; put 1+1 into tValue; put tValue produces "02" because livecode converts EVERYTHING to a string before outputting it. It makes more sense I suppose to put it that way. I have gotten into the habit of thinking that numbers are numbers because it happens so seamlessly. It really doesn't matter though, because the bottom line is that I need to create my own number formatting function, which is no big deal. If it's any good I'll post it for review and refinement. Bob S > On Apr 21, 2017, at 08:18 , Mark Waddingham via use-livecode wrote: > > Yes - i is a number (as it is the index of the for loop) so the value > of the array element is a number, and so appears as '1' (not affected > by numberFormat). > > However, array keys are *always* strings, so when you set the array key > numberFormat comes into play and the key is '01' and not '1'. > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps From bobsneidar at iotecdigital.com Fri Apr 21 11:58:50 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 21 Apr 2017 15:58:50 +0000 Subject: numberFormat affecting array keys??? In-Reply-To: <9A56C5E3-AE97-4FAF-8369-ADBFD8A63BA5@iotecdigital.com> References: <88D0ABA1-C31D-4FC1-8738-25D1AD178DA5@iotecdigital.com> <11db1e6f8cf692291ab0eee4cf9a876e@livecode.com> <1182CFD8-5629-4F66-85F2-FB26351EB033@iotecdigital.com> <68810F78-F6AD-4993-A126-EE458924D5BA@iotecdigital.com> <252419b9e9106858b1f2075cd8de4a5f@livecode.com> <9A56C5E3-AE97-4FAF-8369-ADBFD8A63BA5@iotecdigital.com> Message-ID: <61CD22E7-193B-40DC-BB78-07B79DCEC4B3@iotecdigital.com> Okay simple solution: on mouseUp repeat with i = 1 to 10 put formatNumber(i) into myArray [i] end repeat breakpoint end mouseUp function formatNumber pSourceString, pFormat set the numberFormat to pFormat add 0 to pSourceString return pSourceString end formatNumber This works because numberFormat gets reset once the handler exits. DOH! Bob S From paul at researchware.com Fri Apr 21 12:01:55 2017 From: paul at researchware.com (Paul Dupuis) Date: Fri, 21 Apr 2017 12:01:55 -0400 Subject: numberFormat affecting array keys??? In-Reply-To: <9A56C5E3-AE97-4FAF-8369-ADBFD8A63BA5@iotecdigital.com> References: <88D0ABA1-C31D-4FC1-8738-25D1AD178DA5@iotecdigital.com> <11db1e6f8cf692291ab0eee4cf9a876e@livecode.com> <1182CFD8-5629-4F66-85F2-FB26351EB033@iotecdigital.com> <68810F78-F6AD-4993-A126-EE458924D5BA@iotecdigital.com> <252419b9e9106858b1f2075cd8de4a5f@livecode.com> <9A56C5E3-AE97-4FAF-8369-ADBFD8A63BA5@iotecdigital.com> Message-ID: <37702c68-84ea-00a4-c272-37fa53fe1bb6@researchware.com> On 4/21/2017 11:34 AM, Bob Sneidar via use-livecode wrote: > It really doesn't matter though, because the bottom line is that I need to create my own number formatting function, which is no big deal. If it's any good I'll post it for review and refinement. Why not use the existing format(baseString[,valuesList]) function instead of scripting you own? From bobsneidar at iotecdigital.com Fri Apr 21 12:03:59 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 21 Apr 2017 16:03:59 +0000 Subject: numberFormat affecting array keys??? In-Reply-To: <61CD22E7-193B-40DC-BB78-07B79DCEC4B3@iotecdigital.com> References: <88D0ABA1-C31D-4FC1-8738-25D1AD178DA5@iotecdigital.com> <11db1e6f8cf692291ab0eee4cf9a876e@livecode.com> <1182CFD8-5629-4F66-85F2-FB26351EB033@iotecdigital.com> <68810F78-F6AD-4993-A126-EE458924D5BA@iotecdigital.com> <252419b9e9106858b1f2075cd8de4a5f@livecode.com> <9A56C5E3-AE97-4FAF-8369-ADBFD8A63BA5@iotecdigital.com> <61CD22E7-193B-40DC-BB78-07B79DCEC4B3@iotecdigital.com> Message-ID: Sorry. Change that to: put formatNumber(i, "00") into myArray [i] and it does NOT work. adding 0 to the value with numberFormat set to "00" does NOT format the number. SHEESH! Working on it. Bob S > On Apr 21, 2017, at 08:58 , Bob Sneidar via use-livecode wrote: > > Okay simple solution: > > on mouseUp > repeat with i = 1 to 10 > put formatNumber(i) into myArray [i] > end repeat > breakpoint > end mouseUp > > function formatNumber pSourceString, pFormat > set the numberFormat to pFormat > add 0 to pSourceString > return pSourceString > end formatNumber > > This works because numberFormat gets reset once the handler exits. DOH! > > Bob S > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Apr 21 12:10:05 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 21 Apr 2017 16:10:05 +0000 Subject: numberFormat affecting array keys??? In-Reply-To: <37702c68-84ea-00a4-c272-37fa53fe1bb6@researchware.com> References: <88D0ABA1-C31D-4FC1-8738-25D1AD178DA5@iotecdigital.com> <11db1e6f8cf692291ab0eee4cf9a876e@livecode.com> <1182CFD8-5629-4F66-85F2-FB26351EB033@iotecdigital.com> <68810F78-F6AD-4993-A126-EE458924D5BA@iotecdigital.com> <252419b9e9106858b1f2075cd8de4a5f@livecode.com> <9A56C5E3-AE97-4FAF-8369-ADBFD8A63BA5@iotecdigital.com> <37702c68-84ea-00a4-c272-37fa53fe1bb6@researchware.com> Message-ID: <4A00269C-8F12-455E-B97C-C3ACA34327F7@iotecdigital.com> I could, but I will have to figure out how to convert a numberFormat string like "#0.00" to a format incantation, as the dictionary puts it. The goal is to convert ANY number to ANY numeric format, not just solve this one little issue which I could just code around if I wanted. This sort of thing makes my head hurt, but I'll give it a go just for the mental exercise. Bob S > On Apr 21, 2017, at 09:01 , Paul Dupuis via use-livecode wrote: > >> It really doesn't matter though, because the bottom line is that I need to create my own number formatting function, which is no big deal. If it's any good I'll post it for review and refinement. > > Why not use the existing format(baseString[,valuesList]) function > instead of scripting you own? From MikeKerner at roadrunner.com Fri Apr 21 12:16:59 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 21 Apr 2017 12:16:59 -0400 Subject: numberFormat affecting array keys??? In-Reply-To: References: <88D0ABA1-C31D-4FC1-8738-25D1AD178DA5@iotecdigital.com> <11db1e6f8cf692291ab0eee4cf9a876e@livecode.com> <1182CFD8-5629-4F66-85F2-FB26351EB033@iotecdigital.com> <68810F78-F6AD-4993-A126-EE458924D5BA@iotecdigital.com> <252419b9e9106858b1f2075cd8de4a5f@livecode.com> <9A56C5E3-AE97-4FAF-8369-ADBFD8A63BA5@iotecdigital.com> <61CD22E7-193B-40DC-BB78-07B79DCEC4B3@iotecdigital.com> Message-ID: Here's an interesting case I ran into: long time - hours can be single digits, e.g. "8", but minutes and seconds are always two digits, e.g. "00", and, of course, setting the numberFormat does not affect anything. From devin_asay at byu.edu Fri Apr 21 12:28:23 2017 From: devin_asay at byu.edu (Devin Asay) Date: Fri, 21 Apr 2017 16:28:23 +0000 Subject: Livecode cross platform delight In-Reply-To: References: <004501d2b9ce$2896f8f0$79c4ead0$@kestner.de> Message-ID: +1 in behalf of my students deploying to iOS and Android devices for the first time! Devin On Apr 21, 2017, at 5:03 AM, David V Glasgow via use-livecode > wrote: I have been so busy recently developing an app (on Mac), I completely failed to keep up testing Windows version, probably going back 20 or so builds. I had scripted several platform dependent variants, but never tested the features. Stupid. Suddenly I find myself faced with very soon running a training workshop on the app, using a mixture of BYOD machines. Today I woke in the early hours panicking, sweatily picturing bugs in the Windows version popping up mid workshop. With some anxiety I launched the Windows version on XP, Vista and 10 (the terrible testing trio), and ?? it worked perfectly. I just sat there, thinking how truly amazing , really, really amazing that is. Just in case anyone out there has started to take it for granted, Livecode *is* truly amazing. Best wishes, David G _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Director Office of Digital Humanities Brigham Young University From bobsneidar at iotecdigital.com Fri Apr 21 12:29:40 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 21 Apr 2017 16:29:40 +0000 Subject: numberFormat affecting array keys??? In-Reply-To: References: <88D0ABA1-C31D-4FC1-8738-25D1AD178DA5@iotecdigital.com> <11db1e6f8cf692291ab0eee4cf9a876e@livecode.com> <1182CFD8-5629-4F66-85F2-FB26351EB033@iotecdigital.com> <68810F78-F6AD-4993-A126-EE458924D5BA@iotecdigital.com> <252419b9e9106858b1f2075cd8de4a5f@livecode.com> <9A56C5E3-AE97-4FAF-8369-ADBFD8A63BA5@iotecdigital.com> <61CD22E7-193B-40DC-BB78-07B79DCEC4B3@iotecdigital.com> Message-ID: <114A4421-3930-4E08-A837-B76BF82C96DF@iotecdigital.com> Okay this is why they call me Sly Dawg. I used the engine quirk against it to produce this: on mouseUp repeat with i = 1 to 10 put formatNumber(i, "00") into myArray [i] end repeat breakpoint end mouseUp function formatNumber pSourceString, pFormat set the numberFormat to pFormat put pSourceString into aArray [pSourceString] put the keys of aArray into tResult return tResult end formatNumber Booyah! Bob S From jacque at hyperactivesw.com Fri Apr 21 12:53:51 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 21 Apr 2017 11:53:51 -0500 Subject: numberFormat affecting array keys??? In-Reply-To: <114A4421-3930-4E08-A837-B76BF82C96DF@iotecdigital.com> References: <88D0ABA1-C31D-4FC1-8738-25D1AD178DA5@iotecdigital.com> <11db1e6f8cf692291ab0eee4cf9a876e@livecode.com> <1182CFD8-5629-4F66-85F2-FB26351EB033@iotecdigital.com> <68810F78-F6AD-4993-A126-EE458924D5BA@iotecdigital.com> <252419b9e9106858b1f2075cd8de4a5f@livecode.com> <9A56C5E3-AE97-4FAF-8369-ADBFD8A63BA5@iotecdigital.com> <61CD22E7-193B-40DC-BB78-07B79DCEC4B3@iotecdigital.com> <114A4421-3930-4E08-A837-B76BF82C96DF@iotecdigital.com> Message-ID: <15b916f2118.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Alternately, put a space after pSourceString to force it to text, which will apply numberformat, and then return word 1 of it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On April 21, 2017 11:31:36 AM Bob Sneidar via use-livecode wrote: > Okay this is why they call me Sly Dawg. I used the engine quirk against it > to produce this: > > on mouseUp > repeat with i = 1 to 10 > put formatNumber(i, "00") into myArray [i] > end repeat > breakpoint > end mouseUp > > function formatNumber pSourceString, pFormat > set the numberFormat to pFormat > put pSourceString into aArray [pSourceString] > put the keys of aArray into tResult > return tResult > end formatNumber > > Booyah! > > Bob S > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Apr 21 13:12:57 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 21 Apr 2017 17:12:57 +0000 Subject: numberFormat affecting array keys??? In-Reply-To: <15b916f2118.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <88D0ABA1-C31D-4FC1-8738-25D1AD178DA5@iotecdigital.com> <11db1e6f8cf692291ab0eee4cf9a876e@livecode.com> <1182CFD8-5629-4F66-85F2-FB26351EB033@iotecdigital.com> <68810F78-F6AD-4993-A126-EE458924D5BA@iotecdigital.com> <252419b9e9106858b1f2075cd8de4a5f@livecode.com> <9A56C5E3-AE97-4FAF-8369-ADBFD8A63BA5@iotecdigital.com> <61CD22E7-193B-40DC-BB78-07B79DCEC4B3@iotecdigital.com> <114A4421-3930-4E08-A837-B76BF82C96DF@iotecdigital.com> <15b916f2118.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <50BA1304-75DB-4EA1-AF19-9DBF1C12703F@iotecdigital.com> Sly Kitty. :-) Bob S > On Apr 21, 2017, at 09:53 , J. Landman Gay via use-livecode wrote: > > Alternately, put a space after pSourceString to force it to text, which will apply numberformat, and then return word 1 of it. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From klaus at major-k.de Fri Apr 21 13:48:41 2017 From: klaus at major-k.de (Klaus major-k) Date: Fri, 21 Apr 2017 19:48:41 +0200 Subject: List of available SVG icons, name AND icon? Message-ID: <329D2618-4E05-4F4B-AE01-ECDCC4DFBDE6@major-k.de> Hi there, anyone knows of a way to see all available SVG icons for e.g. the SVG and "Navigation Bar" widgets in another way than the very unhandy popup with the VERY narrow scrollbar? I see myself rather looking at the scrollbar to not miss it with the mouse than actually looking at the icons themselves. 8-) Or a script to create this list with icons by myself? Know what I mean? Thanks a lot in advance! Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From klaus at major-k.de Fri Apr 21 13:57:48 2017 From: klaus at major-k.de (Klaus major-k) Date: Fri, 21 Apr 2017 19:57:48 +0200 Subject: List of available SVG icons, name AND icon? In-Reply-To: <329D2618-4E05-4F4B-AE01-ECDCC4DFBDE6@major-k.de> References: <329D2618-4E05-4F4B-AE01-ECDCC4DFBDE6@major-k.de> Message-ID: <7FE95A35-2001-491B-8966-7A687CC1C85D@major-k.de> Hi all, > Am 21.04.2017 um 19:48 schrieb Klaus major-k via use-livecode : > > Hi there, > > anyone knows of a way to see all available SVG icons for e.g. the SVG > and "Navigation Bar" widgets in another way than the very unhandy popup > with the VERY narrow scrollbar? > > I see myself rather looking at the scrollbar to not miss it with the mouse > than actually looking at the icons themselves. 8-) > > Or a script to create this list with icons by myself? > Know what I mean? > > Thanks a lot in advance! after some digging in the dictionary, I think I found a way! :-) Will create a stack for this later. Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From jacque at hyperactivesw.com Fri Apr 21 14:26:05 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 21 Apr 2017 13:26:05 -0500 Subject: Livecode cross platform delight In-Reply-To: References: <004501d2b9ce$2896f8f0$79c4ead0$@kestner.de> Message-ID: <591af890-dfb2-29f3-c25a-c001752a57a4@hyperactivesw.com> On 4/21/17 6:03 AM, David V Glasgow via use-livecode wrote: > With some anxiety I launched the Windows version on XP, Vista and 10 > (the terrible testing trio), and ?? it worked perfectly. I just sat > there, thinking how truly amazing , really, really amazing that is. > I am constantly amazed at this. I run Windows under emulation, and only rarely, so every time I have to test it takes forever for Windows to update itself. As a result I rely on LC's ability to "just work" so that I don't have to go through that too often. And except for the rare glitch now and then, it always does. We mostly take this for granted, which speaks to the talents of the LC team. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Fri Apr 21 14:44:52 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 21 Apr 2017 13:44:52 -0500 Subject: List of available SVG icons, name AND icon? In-Reply-To: <329D2618-4E05-4F4B-AE01-ECDCC4DFBDE6@major-k.de> References: <329D2618-4E05-4F4B-AE01-ECDCC4DFBDE6@major-k.de> Message-ID: <20d2c89c-09dc-0bbb-7092-f6a17708007e@hyperactivesw.com> On 4/21/17 12:48 PM, Klaus major-k via use-livecode wrote: > anyone knows of a way to see all available SVG icons for e.g. the SVG > and "Navigation Bar" widgets in another way than the very unhandy popup > with the VERY narrow scrollbar? Not to mention the transparency which makes the icons nearly invisible against some backgrounds. I have a terrible time with that popup list, I almost always get irritated. The team forgets that not everyone has great vision. I require high contrast. One of the first things I did was find this: It has far more icons than LC provides, and you can search it and use a conversion web site to create SVGs. Will very much look forward to your stack! -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From richmondmathewson at gmail.com Fri Apr 21 14:45:56 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 21 Apr 2017 21:45:56 +0300 Subject: List of available SVG icons, name AND icon? In-Reply-To: <329D2618-4E05-4F4B-AE01-ECDCC4DFBDE6@major-k.de> References: <329D2618-4E05-4F4B-AE01-ECDCC4DFBDE6@major-k.de> Message-ID: <95690d5f-cd22-512c-8d87-ed00445cfc59@gmail.com> Where is the popup (8.1.3)? Richmond. On 4/21/17 8:48 pm, Klaus major-k via use-livecode wrote: > Hi there, > > anyone knows of a way to see all available SVG icons for e.g. the SVG > and "Navigation Bar" widgets in another way than the very unhandy popup > with the VERY narrow scrollbar? > > I see myself rather looking at the scrollbar to not miss it with the mouse > than actually looking at the icons themselves. 8-) > > Or a script to create this list with icons by myself? > Know what I mean? > > Thanks a lot in advance! > > > 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 Fri Apr 21 14:59:40 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 21 Apr 2017 21:59:40 +0300 Subject: List of available SVG icons, name AND icon? In-Reply-To: <329D2618-4E05-4F4B-AE01-ECDCC4DFBDE6@major-k.de> References: <329D2618-4E05-4F4B-AE01-ECDCC4DFBDE6@major-k.de> Message-ID: <70c53296-9dac-ba60-8d74-e88269e29b71@gmail.com> If all the SVGs for the SVG widget are derived from a font . . . . fontawesome.ttf Livecode/Contents/Tools/Toolset/resources/supporting_files/fonts/fontawesome.ttf and one knows their Unicode glyph addresses . . . . 0xE600 - 0xE60B, 0xF000 - 0xF1E2 Richmond. On 4/21/17 8:48 pm, Klaus major-k via use-livecode wrote: > Hi there, > > anyone knows of a way to see all available SVG icons for e.g. the SVG > and "Navigation Bar" widgets in another way than the very unhandy popup > with the VERY narrow scrollbar? > > I see myself rather looking at the scrollbar to not miss it with the mouse > than actually looking at the icons themselves. 8-) > > Or a script to create this list with icons by myself? > Know what I mean? > > Thanks a lot in advance! > > > 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 Fri Apr 21 15:46:08 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 21 Apr 2017 22:46:08 +0300 Subject: List of available SVG icons, name AND icon? In-Reply-To: <20d2c89c-09dc-0bbb-7092-f6a17708007e@hyperactivesw.com> References: <329D2618-4E05-4F4B-AE01-ECDCC4DFBDE6@major-k.de> <20d2c89c-09dc-0bbb-7092-f6a17708007e@hyperactivesw.com> Message-ID: Well, here's some sort of a start: http://forums.livecode.com/viewtopic.php?f=10&t=29163#p153534 At least it should help those of us who find peering at "that thing" (the transparent menu) a pain-in-the-opticals. Richmond. On 4/21/17 9:44 pm, J. Landman Gay via use-livecode wrote: > On 4/21/17 12:48 PM, Klaus major-k via use-livecode wrote: >> anyone knows of a way to see all available SVG icons for e.g. the SVG >> and "Navigation Bar" widgets in another way than the very unhandy popup >> with the VERY narrow scrollbar? > > Not to mention the transparency which makes the icons nearly invisible > against some backgrounds. I have a terrible time with that popup list, > I almost always get irritated. The team forgets that not everyone has > great vision. I require high contrast. > > One of the first things I did was find this: > > > It has far more icons than LC provides, and you can search it and use > a conversion web site to create SVGs. > > Will very much look forward to your stack! > From klaus at major-k.de Fri Apr 21 15:46:41 2017 From: klaus at major-k.de (Klaus major-k) Date: Fri, 21 Apr 2017 21:46:41 +0200 Subject: List of available SVG icons, name AND icon? In-Reply-To: <20d2c89c-09dc-0bbb-7092-f6a17708007e@hyperactivesw.com> References: <329D2618-4E05-4F4B-AE01-ECDCC4DFBDE6@major-k.de> <20d2c89c-09dc-0bbb-7092-f6a17708007e@hyperactivesw.com> Message-ID: <41869B29-8898-4969-A571-55078DE91F58@major-k.de> Hi all, > Am 21.04.2017 um 20:44 schrieb J. Landman Gay via use-livecode : > > On 4/21/17 12:48 PM, Klaus major-k via use-livecode wrote: >> anyone knows of a way to see all available SVG icons for e.g. the SVG >> and "Navigation Bar" widgets in another way than the very unhandy popup >> with the VERY narrow scrollbar? > > Not to mention the transparency which makes the icons nearly invisible against some backgrounds. I have a terrible time with that popup list, I almost always get irritated. The team forgets that not everyone has great vision. I require high contrast. > > One of the first things I did was find this: > It has far more icons than LC provides, and you can search it and use a conversion web site to create SVGs. > Will very much look forward to your stack! OK, find a quick and nice looking SVG viewer stack here: Please drop a line if the Dropbox links does not work! This is just a VIEWER with all 369 icons and names in it, black on white. I was using a datagrid, have fun. Hint: I also found that setting the HSCROLLBAR of a datagrid does not work in LC 9 dp6!? So I set the min and max width of that stack to 1034 pixels. Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From klaus at major-k.de Fri Apr 21 15:51:19 2017 From: klaus at major-k.de (Klaus major-k) Date: Fri, 21 Apr 2017 21:51:19 +0200 Subject: List of available SVG icons, name AND icon? In-Reply-To: References: <329D2618-4E05-4F4B-AE01-ECDCC4DFBDE6@major-k.de> <20d2c89c-09dc-0bbb-7092-f6a17708007e@hyperactivesw.com> Message-ID: <43CE0698-1246-438B-91B3-F8AB65CE59B1@major-k.de> Hi all, > Am 21.04.2017 um 21:46 schrieb Richmond Mathewson via use-livecode : > > Well, here's some sort of a start: http://forums.livecode.com/viewtopic.php?f=10&t=29163#p153534 > At least it should help those of us who find peering at "that thing" (the transparent menu) a pain-in-the-opticals. I just added my stack to the same thread in the forum, see link above. > Richmond. Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From devin_asay at byu.edu Fri Apr 21 17:22:09 2017 From: devin_asay at byu.edu (Devin Asay) Date: Fri, 21 Apr 2017 21:22:09 +0000 Subject: List of available SVG icons, name AND icon? In-Reply-To: <43CE0698-1246-438B-91B3-F8AB65CE59B1@major-k.de> References: <329D2618-4E05-4F4B-AE01-ECDCC4DFBDE6@major-k.de> <20d2c89c-09dc-0bbb-7092-f6a17708007e@hyperactivesw.com> <43CE0698-1246-438B-91B3-F8AB65CE59B1@major-k.de> Message-ID: <39B69770-B687-4F85-B7B6-5F67E3BFD1AD@byu.edu> On Apr 21, 2017, at 1:51 PM, Klaus major-k via use-livecode > wrote: Hi all, Am 21.04.2017 um 21:46 schrieb Richmond Mathewson via use-livecode >: Well, here's some sort of a start: http://forums.livecode.com/viewtopic.php?f=10&t=29163#p153534 At least it should help those of us who find peering at "that thing" (the transparent menu) a pain-in-the-opticals. I just added my stack to the same thread in the forum, see link above. And I added one that lets you choose from a filterable list of icon names. I?ve always found the scrolling grid of icons too busy to focus on. Added to the same forum thread. Devin Devin Asay Director Office of Digital Humanities Brigham Young University From jacque at hyperactivesw.com Fri Apr 21 17:30:41 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 21 Apr 2017 16:30:41 -0500 Subject: List of available SVG icons, name AND icon? In-Reply-To: <41869B29-8898-4969-A571-55078DE91F58@major-k.de> References: <329D2618-4E05-4F4B-AE01-ECDCC4DFBDE6@major-k.de> <20d2c89c-09dc-0bbb-7092-f6a17708007e@hyperactivesw.com> <41869B29-8898-4969-A571-55078DE91F58@major-k.de> Message-ID: On 4/21/17 2:46 PM, Klaus major-k via use-livecode wrote: > OK, find a quick and nice looking SVG viewer stack here: > > Please drop a line if the Dropbox links does not work! > > This is just a VIEWER with all 369 icons and names in it, black on white. > I was using a datagrid, have fun. This is *way* better, even just as a viewer. Thank you. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From alex at tweedly.net Fri Apr 21 20:23:45 2017 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 22 Apr 2017 01:23:45 +0100 Subject: OT (?): Bookmarking GPS coords In-Reply-To: <2d34d2bc-0dc2-3685-1263-0daecd03174f@tweedly.net> References: <8ce9f4c6-fde6-7c2e-929a-257fd960f64d@tweedly.net> <348ABC54-EF86-41BA-9435-6D58005D5B3B@gmail.com> <2d34d2bc-0dc2-3685-1263-0daecd03174f@tweedly.net> Message-ID: <4778a46e-7fe7-c9ab-aa31-9ceb9bcbe796@tweedly.net> I was working on a Mobile app to allow a user to set the location of a named address within a UK Postcode. For various reasons, I'm not able to spend much time on it - and I discovered that although the process of starting to develop an Android app looks reasonable, there are many details you need to get right. I'm kind of busy in other things right now, so although I do have some time to work on this, I can only manage very brief sessions on Livecode (10 minutes here, 20 minutes another time, ...) and it's just not working well for learning a new environment. That's my fault, not Livecode's Android/mobile process. So I looked around for other easier ways to achieve a similar app - and stumbled into one. I've been looking at Telegram for messaging - mainly because it runs on all major platforms, and syncs my actions between them - so I get to send my instant messages using my MacBook - i.e. typing on a real keyboard and looking at a decent size screen, etc. but can also use my iPhone etc. when I'm out and about. Other features are : - Telegram has a good api and docs for creating Bots - these allow you to create a custom keyboard - and allow you to provide user's location (if known). So I used this to implement a very basic ChatBot-based app. 1. you specify a postcode 2. you are presented with a set of buttons for the addresses within that postcode 3. click on any one, and you are then asked to click when in the right location - and the GPS location will be associated with the property address chosen. I have posted this as a sample to "Sample Stacks" called "Telegram Chatbot" Note some caveats !! 1. all developed on 9.0.0DP6 2. if you wish to run his stack, you need to become a Telegram user, then to register your own Bot (see https://core.telegram.org/bots) and replace the string "YOUR TOKEN HERE" with your actual token. (line 11 on card script). 3. I removed the 'save' function before I uploaded the stack - so no-one can accidentally over-write my own data. To run it (once you have done the above), 1. click "start" 2. click "Main" (it should run forever - if you want to pause it to examine code, etc. click on"STOP", and subsequently "Main" again.) Then in your Telegram client, 1. open a chat to @PropertyLocatorBot 2. send command /start 3. choose a postcode e.g. /location,PA34 4XD (Note that comma !!) 4. then you will see the list of addresses within that post code (for which I do not yet have a precise location). You can set them - but not save that info - and you should see those whose location is set disappear from the list. 5a. click / touch an address 5. when prompted, click "Set location" (it will take your current location) 6. you will then see the reduced list without that address It should be reasonably easy to understand, even if minimally documented. Any questions just ask me either here on the list, or directly. (I should probably put this info / stack onto a forum, but I couldn't figure out which one was appropriate. -- Alex. From curry at pair.com Fri Apr 21 20:51:14 2017 From: curry at pair.com (Curry Kenworthy) Date: Fri, 21 Apr 2017 20:51:14 -0400 Subject: Don't amputate numberFormat (was: affecting array keys???) In-Reply-To: <11db1e6f8cf692291ab0eee4cf9a876e@livecode.com> References: <11db1e6f8cf692291ab0eee4cf9a876e@livecode.com> Message-ID: <58FAA902.3090402@pair.com> Mark Waddingham: > I think this is perhaps more evidence that 'numberFormat' > should probably be deprecated - or at least marked as > 'present for HyperCard compatibility only and shouldn't > be used in new code'. I emphatically disagree. There's nothing wrong with numberFormat as a binary to text option. On the contrary, it's a splendid way to present the formatting to users. The array key example is an outlier case to watch out for, but it's also easy to use an alternate formatting option or careful coding for those rare cases. The numberFormat is very easy to read and clean, similar to formatting systems used by Excel and others. (Naturally SpreadLib uses it too.) People understand the representation intuitively, and it's also extremely popular. It provides a consistent shortcut compared to using a function several times, for clean code with one statement to edit, so it is compatible with KISS philosophy. I prefer numberFormat for most tasks and would detest having it deprecated. Obviously the show must go on when someone concatenates text with a number, so a default behavior would have to be in place for that regardless (unless LC would throw an error), but we would lose the customizable aspect. LiveCode will be disfigured if we hack off all the pleasant parts. It will also be less "English-like" than before if we remove the wrong parts. I've been working on materials for my new fluency method for teaching LiveCode's syntax, based on proven language learning methods and enhanced with my own additional techniques geared to CS and LC. This is such a readable sentence to teach and use: set the numberformat to "0.00" Although I don't have time to be as vocal an advocate as some others here on LC trends and directions, there's so much to be said on the subject of LC's English-like language, how to optimize learning and coding around it, and what the result offers compared to other computing languages. (But I'll say most of that in my upcoming book rather than here on the list.) I sure don't intend to teach the best parts of LC as deprecated or denigrated, so I hope the language stays intact without self-mutilation. :) Best wishes, Curry K. From curry at pair.com Fri Apr 21 21:11:43 2017 From: curry at pair.com (Curry Kenworthy) Date: Fri, 21 Apr 2017 21:11:43 -0400 Subject: The selectedObjects - is it a container or not? In-Reply-To: References: Message-ID: <58FAADCF.4040003@pair.com> Richard: > What LiveCode brings to the modern world is a high-level > scripting language distinguished not by any conformance to > the rules of English, but by being among the very few that > include support for GUI controls as inherent language elements. Just a brief reply here to note that there's more to the story. LiveCode's implementation of English-like scripting has some extremely special features, it is indeed a valuable syntax for those seeking an intuitive language or English-like language, and that fact hasn't changed, despite the world having more options today. There are very sound reasons why this particular language (or language family) could be valuable to a new generation of coders. Best wishes, Curry K. From MikeKerner at roadrunner.com Fri Apr 21 21:23:16 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 21 Apr 2017 21:23:16 -0400 Subject: Don't amputate numberFormat (was: affecting array keys???) In-Reply-To: <58FAA902.3090402@pair.com> References: <11db1e6f8cf692291ab0eee4cf9a876e@livecode.com> <58FAA902.3090402@pair.com> Message-ID: I tend to agree. There is nothing about "format" that is intuitive to the non-initiated. On Fri, Apr 21, 2017 at 8:51 PM, Curry Kenworthy via use-livecode < use-livecode at lists.runrev.com> wrote: > Mark Waddingham: > > I think this is perhaps more evidence that 'numberFormat' > > should probably be deprecated - or at least marked as > > 'present for HyperCard compatibility only and shouldn't > > be used in new code'. > > I emphatically disagree. > > There's nothing wrong with numberFormat as a binary to text option. On the > contrary, it's a splendid way to present the formatting to users. The array > key example is an outlier case to watch out for, but it's also easy to use > an alternate formatting option or careful coding for those rare cases. > > The numberFormat is very easy to read and clean, similar to formatting > systems used by Excel and others. (Naturally SpreadLib uses it too.) People > understand the representation intuitively, and it's also extremely popular. > > It provides a consistent shortcut compared to using a function several > times, for clean code with one statement to edit, so it is compatible with > KISS philosophy. > > I prefer numberFormat for most tasks and would detest having it > deprecated. Obviously the show must go on when someone concatenates text > with a number, so a default behavior would have to be in place for that > regardless (unless LC would throw an error), but we would lose the > customizable aspect. LiveCode will be disfigured if we hack off all the > pleasant parts. > > It will also be less "English-like" than before if we remove the wrong > parts. I've been working on materials for my new fluency method for > teaching LiveCode's syntax, based on proven language learning methods and > enhanced with my own additional techniques geared to CS and LC. > > This is such a readable sentence to teach and use: > > set the numberformat to "0.00" > > Although I don't have time to be as vocal an advocate as some others here > on LC trends and directions, there's so much to be said on the subject of > LC's English-like language, how to optimize learning and coding around it, > and what the result offers compared to other computing languages. (But I'll > say most of that in my upcoming book rather than here on the list.) > > I sure don't intend to teach the best parts of LC as deprecated or > denigrated, so I hope the language stays intact without self-mutilation. :) > > Best wishes, > > Curry K. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From ambassador at fourthworld.com Fri Apr 21 21:32:28 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 21 Apr 2017 18:32:28 -0700 Subject: The selectedObjects - is it a container or not? In-Reply-To: <58FAADCF.4040003@pair.com> References: <58FAADCF.4040003@pair.com> Message-ID: Curry Kenworthy wrote: > Richard: >> What LiveCode brings to the modern world is a high-level >> scripting language distinguished not by any conformance to >> the rules of English, but by being among the very few that >> include support for GUI controls as inherent language elements. > > Just a brief reply here to note that there's more to the story. > LiveCode's implementation of English-like scripting has some > extremely special features, it is indeed a valuable syntax for those > seeking an intuitive language or English-like language, and that fact > hasn't changed, despite the world having more options today. There > are very sound reasons why this particular language (or language > family) could be valuable to a new generation of coders. I wholeheartedly agree. You may have noticed I use LiveCode. :) In fact, I agree that the potential for LiveCode to achieve its rightful place among the world's great language is so strong that I'm putting together a little plan to move that vision forward for a new generation of programmers. More on that very soon.... -- 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 curry at pair.com Fri Apr 21 21:56:57 2017 From: curry at pair.com (Curry Kenworthy) Date: Fri, 21 Apr 2017 21:56:57 -0400 Subject: The selectedObjects - is it a container or not? In-Reply-To: References: Message-ID: <58FAB869.6010202@pair.com> Richard: > I wholeheartedly agree. ... > I'm putting together a little plan to move that vision > forward for a new generation of programmers. Good! That's what we need. Although HC itself is history, the reasons for its success can hold a lot of promise for the future. Best wishes, Curry K. From bobsneidar at iotecdigital.com Fri Apr 21 22:16:19 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 22 Apr 2017 02:16:19 +0000 Subject: Don't amputate numberFormat (was: affecting array keys???) In-Reply-To: References: <11db1e6f8cf692291ab0eee4cf9a876e@livecode.com> <58FAA902.3090402@pair.com> Message-ID: <9E7FEC8B-10FC-4CBA-B5CC-90556821A64E@iotecdigital.com> A couple years ago I had a look at format. I gave up after I got the headache. I tried again today. Same results. I cannot even begin to fathom the printf() C rules! I read and read and read, try examples etc. but NOTHING can get me to the point where I can make "1.1" into "01.10" never mind "10.2.1.6" into "010.002.001.006". My workaround fixes my issue, and Jacque's works also, provided you put the numberFormat into a separate function so that you do not have to continually keep resetting the numberformat everytime it might affect *ANY* numeric value as text. Bob S > On Apr 21, 2017, at 18:23 , Mike Kerner via use-livecode wrote: > > I tend to agree. There is nothing about "format" that is intuitive to the > non-initiated. From kaveh at rivervalleytechnologies.com Sat Apr 22 07:18:16 2017 From: kaveh at rivervalleytechnologies.com (Kaveh Bazargan) Date: Sat, 22 Apr 2017 12:18:16 +0100 Subject: How many words from start of text to my selection Message-ID: I have selected some text in a field. I want to convert that to "word xxx of fld yyy". Any hints on how I do that? -- Kaveh Bazargan Director River Valley Technologies @kaveh1000 +44 7771 824 111 www.rivervalleytechnologies.com From m.schonewille at economy-x-talk.com Sat Apr 22 07:33:05 2017 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 22 Apr 2017 13:33:05 +0200 Subject: How many words from start of text to my selection In-Reply-To: References: Message-ID: <5c5ed953-8668-0e1c-652a-6c93d7370016@economy-x-talk.com> This tells you the number of the selected word: on mouseUp put the selectedChunk into myChunk put word 4 of myChunk into myChunk put the number of words of char 1 to myChunk of fld 1 send "select word" && myChunk && "of fld 1" to me in 0 millisecs end mouseUp Kind regards, Mark Schonewille http://economy-x-talk.com https://www.facebook.com/marksch Buy the most extensive book on the LiveCode language: http://livecodebeginner.economy-x-talk.com Op 22-Apr-17 om 13:18 schreef Kaveh Bazargan via use-livecode: > I have selected some text in a field. I want to convert that to "word xxx > of fld yyy". Any hints on how I do that? > From kaveh at rivervalleytechnologies.com Sat Apr 22 10:05:38 2017 From: kaveh at rivervalleytechnologies.com (Kaveh Bazargan) Date: Sat, 22 Apr 2017 15:05:38 +0100 Subject: How many words from start of text to my selection In-Reply-To: <5c5ed953-8668-0e1c-652a-6c93d7370016@economy-x-talk.com> References: <5c5ed953-8668-0e1c-652a-6c93d7370016@economy-x-talk.com> Message-ID: Wonderful :-) Can you give me a hint of this line please: send "select word" && myChunk && "of fld 1" to me in 0 millisecs Why not just select word" && myChunk && "of fld 1" On 22 April 2017 at 12:33, Mark Schonewille via use-livecode < use-livecode at lists.runrev.com> wrote: > This tells you the number of the selected word: > > on mouseUp > put the selectedChunk into myChunk > put word 4 of myChunk into myChunk > put the number of words of char 1 to myChunk of fld 1 > send "select word" && myChunk && "of fld 1" to me in 0 millisecs > end mouseUp > > Kind regards, > > Mark Schonewille > http://economy-x-talk.com > https://www.facebook.com/marksch > > Buy the most extensive book on the > LiveCode language: > http://livecodebeginner.economy-x-talk.com > > Op 22-Apr-17 om 13:18 schreef Kaveh Bazargan via use-livecode: > >> I have selected some text in a field. I want to convert that to "word xxx >> of fld yyy". Any hints on how I do that? >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Kaveh Bazargan Director River Valley Technologies @kaveh1000 +44 7771 824 111 www.rivervalleytechnologies.com From harrison at all-auctions.com Sat Apr 22 11:14:42 2017 From: harrison at all-auctions.com (Rick Harrison) Date: Sat, 22 Apr 2017 11:14:42 -0400 Subject: LC Server - Smart Interactive Fields? In-Reply-To: References: <329D2618-4E05-4F4B-AE01-ECDCC4DFBDE6@major-k.de> <20d2c89c-09dc-0bbb-7092-f6a17708007e@hyperactivesw.com> <41869B29-8898-4969-A571-55078DE91F58@major-k.de> Message-ID: <00D7F7AB-EA7A-40BC-92E5-A8B5B9D75D04@all-auctions.com> I was wondering if anyone has come up with a way to create ?Smart Interactive Fields? in LiveCode server without having to use javascript? For example: The user types in a number in the wrong format into a field and the field is smart enough to interactively tell the user with a tool-tip or other pop-up instruction that says the correct format is $999.99 or perhaps automatically corrects the problem for them. Any ideas? Thanks, Rick From ambassador at fourthworld.com Sat Apr 22 13:21:59 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 22 Apr 2017 10:21:59 -0700 Subject: Don't amputate numberFormat (was: affecting array keys???) In-Reply-To: <9E7FEC8B-10FC-4CBA-B5CC-90556821A64E@iotecdigital.com> References: <9E7FEC8B-10FC-4CBA-B5CC-90556821A64E@iotecdigital.com> Message-ID: Bob Sneidar wrote: >> On Apr 21, 2017, at 18:23 , Mike Kerner wrote: >> >> I tend to agree. There is nothing about "format" that is intuitive >> to the non-initiated. > > A couple years ago I had a look at format. I gave up after I got the > headache. I tried again today. Same results. I cannot even begin to > fathom the printf() C rules! I read and read and read, try examples > etc. but NOTHING can get me to the point where I can make "1.1" into > "01.10" never mind "10.2.1.6" into "010.002.001.006". > > My workaround fixes my issue, and Jacque's works also, provided you > put the numberFormat into a separate function so that you do not have > to continually keep resetting the numberformat everytime it might > affect *ANY* numeric value as text. There are good benefits to having both numberFormat and the format function. I don't suppose Mark was serious about deprecating the former, just making a point about the strength of the latter. The numberFormat property is something all of us ol' timers are accustomed to, and in many cases it's a good fit for what we need. So that, plus decades of legacy code, give us good reasons to keep it around. But if we step back and review the cognitive implications of using it, we find a few things worth considering: NumberFormat requires contextual awareness ------------------------------------------ First and foremost, by itself it doesn't actually do anything, in terms of things we can see. When we set the numberFormat, no object nor any variable value changes. The property's utility only becomes evident in conjunction with subsequent statements. So comparing the numberFormat property to the format function by using single statements isn't apples-to-apples, as numberFormat will always require at least two statements for it to become in any way evident. Additionally, as a property of the LC system it's not bound to anything, an abstraction, and one that changes again without our intervention the moment the current handler exits. And then of course there's the reason this thread exists: because the numberFormat property only affects things that happen after it's set, the interaction between the property and those subsequent statements isn't always clear. If it were we wouldn't be having this discussion. :) And because it's unclear, we've seen variants of this discussion every few months, even among people who first learned numberFormat many years ago. Never underestimate the compounding impact on cognitive load of multi-statement sequence dependency. NumberFormat requires data type awareness ----------------------------------------- xTalks are traditionally typeless, with the respective engines (HyperCard, SuperCard, OMO, Gain Momentum, Toolbook, LiveCode, etc.) converting between strings and numbers automatically for us, behind the scenes. This typelessness allows us to think in terms of what we see with our human eyes, without having to also conceptualize the representation of numeric values as they pass through CPU gates. We do things with what we see in front of us, and it all just works. Except with the numberFormat property. Here we have one of the few times in which using an xTalk requires having at least some awareness that CPUs use different data types for arithmetic operations than they do for strings. In some cases, getting what we want from the numberFormat property requires us to add additional steps in our code in order to coerce the value we want to be affected. Sometimes we add a zero to coerce a string to a number, other times we pad or concatenate to coerce a number to a string. Consider the many examples throughout this thread. Type coercion in an xTalk? Egads! Yet here we are. :) At a minimum, the numberFormat property requires at least two statements to be of any value at all: first setting the property, and then doing something that will cause it to be applied to a value. But because we sometimes have to explicitly coerce the value, now and then we need at least *three* statements to get the result we're looking for with numberFormat. And when that third step is needed, it's because we have to momentarily think like a computer. With GUI objects as part of the core language, xTalks usually afford us the opportunity to code in a way that expresses the user experience. We get to think like users, with the engine handling the implementation details to accommodate the more mundane and arcane needs of the computer. NumberFormat introduces a moment in which we need to be aware that we're expressing our user interface in a machine too stupid to count past 1. :) We don't otherwise need to be aware of binary representations often, if at all. Of course some of the options in the format function are also dependent on understanding data types. But not all of them, and if you do need to use those that requiring understanding types you still gain the benefit of having everything in the conversion happening within a single statement, as opposed to the multi-statement requirements for using the numberFormat property. NumberFormat has limited options -------------------------------- With just two options ("#" for zero-padding where needed, and "0" for required zero-padding), the scope of the numberFormat property is limited. By itself that's a point in its favor, since there's not much to learn about using it (beyond the things noted above). But it also means that sooner or later you're likely to need to use the format function anyway, as soon as you want padding for text, or scientific notation, or any of the other options it provides. TL;DR ----- When numberFormat can do the job and you want to use it, use it. For certain tasks it may be somewhat simpler than the format function. But when we consider the full cognitive requirements for using numberFormat, esp. its dependency on multi-statement context, I think it would be difficult to come up with a cognitive-load metric which could demonstrate that it's actually easier to learn than the subset of options needed to get the same result with the format function. Just because we learned it years ago doesn't mean it's necessarily easier to learn for anyone else starting out today. Please remember that the reason we didn't learn the format function back then it because it didn't exist in any xTalk in those days. :) Moreover, since the format function covers far more ground, once you learn the options needed to get simple numeric formatting results you're already well oriented for learning any other options you might need as you go later one. PS: All of these recurring discussions around formatting data reinforce the value of adding a display formatting property to the field object. There are still use-cases for both numberFormat and format, but there are so many precedents in other tools for defining display format in the object used for display that I think when that's what's needed it would be the simplest to learn. -- 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 Apr 22 13:36:10 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 22 Apr 2017 10:36:10 -0700 Subject: Cognitive load Message-ID: <36d5caf3-fc09-fea2-8a78-c243957ee11c@fourthworld.com> Since cognitive load came up in the other thread about numberFormat, some of you may find this paper very interesting: Using Cognitive Load Theory to select an Environment for Teaching Mobile Apps Development Raina Mason, Southern Cross University Graham Cooper, Southern Cross University Simon, University of Newcastle Barry Wilks, Southern Cross University Abstract -------- After considering a number of environments for the development of apps for mobile devices, we have evaluated five in terms of their suitability for students early in their programing study. For some of the evaluation we devised an evaluation scheme based on the principles of cognitive load theory to assess the relative ease or difficulty of learning and using each environment. After briefly presenting the scheme, we discuss our results, including our findings about which mobile apps development environments appear to show most promise for early-level programming students. Excerpt ------- The computed averages are as follows: TouchDevelop: 16% LiveCode: 17% App Inventor: 33% Xamarin: 59% Visual Studio: 65% ... The mobile development environments that we evaluated fell clearly into three groups. TouchDevelop and LiveCode, with threshold scores of less than 20%, permitted the development of code with the least relative cognitive load. Despite the fact that it was designed for, and is typically used for, novice programmers, App Inventor had double the threshold score of these two environments, indicating a substantially higher relative cognitive load. Both Visual Studio and Xamarin Studio had threshold scores of around 60%, nearly double again, indicating another substantial leap in the relative cognitive load required to develop mobile apps in these environments. -- 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 Apr 22 14:29:03 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 22 Apr 2017 11:29:03 -0700 Subject: LC Server - Smart Interactive Fields? In-Reply-To: <00D7F7AB-EA7A-40BC-92E5-A8B5B9D75D04@all-auctions.com> References: <00D7F7AB-EA7A-40BC-92E5-A8B5B9D75D04@all-auctions.com> Message-ID: Rick Harrison wrote: > I was wondering if anyone has come up with a way to create > ?Smart Interactive Fields? in LiveCode server without > having to use javascript? > > For example: The user types in a number in the wrong format > into a field and the field is smart enough to interactively tell the > user with a tool-tip or other pop-up instruction that says the > correct format is $999.99 or perhaps automatically corrects > the problem for them. > > Any ideas? Browsers have only one language built in, and of course that's JavaScript. Anything that responds to user actions, such as keyboard and mouse events, will require JavaScript. Any server CGI, such as LiveCode Server, has a role limited to the server: a request comes in over the wire, it performs some task, and then returns data. How that data is requested from within the user's browser, and what the browser does with the data once it comes back from the server, is a task you'd handle in JavaScript. Options: a) LC's HTML export ------------------- If you have a license for LC's HTML Export option, or are working on a GPL-governed work where the HTML Export included in the Community Edition would be a good fit, you may consider that. With this option, the LC engine is made available to your site as a JavaScript library, which then reads your stack and handles things within it's own canvas somewhat similar to running with a standalone engine, but within a portion of the browser window. Be aware, though, that it's still in development, and may or may not yet support the features you need. Personally, I'm big on quick-loading pages, and even with compression the entire LC engine is a rather sizable chunk of JavaScript to download, unpack, and initialize before it can render the page. There may be ways to eventually bring that down to fit into the 6-second rule, but at the moment it takes longer than that. b) JavaScript ------------- Dive in, the water's fine. It's not a bad language at all, and very useful. For anyone who programs only in LC and is looking to pick up a second language, IMO JvaScript is an ideal choice because it covers the use-case LC covers the least well at the moment, web browsers. Extra bonus points that once you learn it you can write scripts for Node.js and other tools that use JavaScript as their foundation. This book is fun and easy to work through to get started: Head First JavaScript http://shop.oreilly.com/product/9780596527747.do c) RIA - Rich Internet Application ---------------------------------- A standalone made in LC can deliver nearly every benefit of delivering an app in a browser, exchanging not only data with a server but even stacks as well. An RIA lets you deliver an application with an interface dedicated to the workflow your app supports, with many options for integrating with the local OS far more than a browser app could dream of. And users never need to worry about accidentally obliterating what they're working on if they accidentally hit the Back button. I've waxed about RIAs often enough on this list that I won't take up more bandwidth here on the subject except to answer any questions and to offer this observation for now: When it comes to delivering an application over the Internet, many folks here say: "Customers don't want an app! It has to be delivered in a browser!" Let's set aside for a moment that no one using XCode, Visual Studio, Xamarin, or most other app dev tools ever considers exporting web pages a requirement for those tools at all. Let's look instead at the sentiments expressed here regarding mobile apps: "Customers don't want a web app! It must be delivered as a native app!" :) There are strengths and weaknesses of both OS-native apps and browser apps. What's "best" depends on a lot of factors that will differ from app to app and business model to business model. On mobile, Facebook offers a limited web app with a feature-rich native app. On desktop, Evernote offers a limited web app with a feature-rich native app. On mobile PayPal offers a limited native app, with a more feature-rich web app on the desktop. There is no single "best", no magic pony of "one size fits all". If all you need is a web page and not a web app (murky distinction, I know, but worth distinguishing), then you really have little choice but to use the only language available in that environment: JavaScript. But if you need to deliver serious functionality for non-trivial use, RIAs can do that with a better user experience and usually far faster development time than trying to cram serious work into the confines of a browser window. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bonnmike at gmail.com Sat Apr 22 14:37:55 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 22 Apr 2017 12:37:55 -0600 Subject: Don't amputate numberFormat (was: affecting array keys???) In-Reply-To: References: <9E7FEC8B-10FC-4CBA-B5CC-90556821A64E@iotecdigital.com> Message-ID: This, yes please. --There are still use-cases for both numberFormat and format, but there are so many precedents in other tools for defining display format --in the object used for display that I think when that's what's needed it would be the simplest to learn. On Sat, Apr 22, 2017 at 11:21 AM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Bob Sneidar wrote: > > > >> On Apr 21, 2017, at 18:23 , Mike Kerner wrote: > >> > >> I tend to agree. There is nothing about "format" that is intuitive > >> to the non-initiated. > > > > A couple years ago I had a look at format. I gave up after I got the > > headache. I tried again today. Same results. I cannot even begin to > > fathom the printf() C rules! I read and read and read, try examples > > etc. but NOTHING can get me to the point where I can make "1.1" into > > "01.10" never mind "10.2.1.6" into "010.002.001.006". > > > > My workaround fixes my issue, and Jacque's works also, provided you > > put the numberFormat into a separate function so that you do not have > > to continually keep resetting the numberformat everytime it might > > affect *ANY* numeric value as text. > > There are good benefits to having both numberFormat and the format > function. I don't suppose Mark was serious about deprecating the former, > just making a point about the strength of the latter. > > The numberFormat property is something all of us ol' timers are accustomed > to, and in many cases it's a good fit for what we need. So that, plus > decades of legacy code, give us good reasons to keep it around. > > > But if we step back and review the cognitive implications of using it, we > find a few things worth considering: > > > NumberFormat requires contextual awareness > ------------------------------------------ > First and foremost, by itself it doesn't actually do anything, in terms of > things we can see. > > When we set the numberFormat, no object nor any variable value changes. > The property's utility only becomes evident in conjunction with subsequent > statements. > > So comparing the numberFormat property to the format function by using > single statements isn't apples-to-apples, as numberFormat will always > require at least two statements for it to become in any way evident. > > Additionally, as a property of the LC system it's not bound to anything, > an abstraction, and one that changes again without our intervention the > moment the current handler exits. > > And then of course there's the reason this thread exists: because the > numberFormat property only affects things that happen after it's set, the > interaction between the property and those subsequent statements isn't > always clear. > > If it were we wouldn't be having this discussion. :) And because it's > unclear, we've seen variants of this discussion every few months, even > among people who first learned numberFormat many years ago. > > Never underestimate the compounding impact on cognitive load of > multi-statement sequence dependency. > > > NumberFormat requires data type awareness > ----------------------------------------- > xTalks are traditionally typeless, with the respective engines (HyperCard, > SuperCard, OMO, Gain Momentum, Toolbook, LiveCode, etc.) converting between > strings and numbers automatically for us, behind the scenes. This > typelessness allows us to think in terms of what we see with our human > eyes, without having to also conceptualize the representation of numeric > values as they pass through CPU gates. We do things with what we see in > front of us, and it all just works. > > Except with the numberFormat property. > > Here we have one of the few times in which using an xTalk requires having > at least some awareness that CPUs use different data types for arithmetic > operations than they do for strings. > > In some cases, getting what we want from the numberFormat property > requires us to add additional steps in our code in order to coerce the > value we want to be affected. Sometimes we add a zero to coerce a string > to a number, other times we pad or concatenate to coerce a number to a > string. Consider the many examples throughout this thread. > > Type coercion in an xTalk? Egads! Yet here we are. :) > > At a minimum, the numberFormat property requires at least two statements > to be of any value at all: first setting the property, and then doing > something that will cause it to be applied to a value. > > But because we sometimes have to explicitly coerce the value, now and then > we need at least *three* statements to get the result we're looking for > with numberFormat. And when that third step is needed, it's because we > have to momentarily think like a computer. > > With GUI objects as part of the core language, xTalks usually afford us > the opportunity to code in a way that expresses the user experience. We > get to think like users, with the engine handling the implementation > details to accommodate the more mundane and arcane needs of the computer. > > NumberFormat introduces a moment in which we need to be aware that we're > expressing our user interface in a machine too stupid to count past 1. :) > We don't otherwise need to be aware of binary representations often, if at > all. > > Of course some of the options in the format function are also dependent on > understanding data types. But not all of them, and if you do need to use > those that requiring understanding types you still gain the benefit of > having everything in the conversion happening within a single statement, as > opposed to the multi-statement requirements for using the numberFormat > property. > > > NumberFormat has limited options > -------------------------------- > With just two options ("#" for zero-padding where needed, and "0" for > required zero-padding), the scope of the numberFormat property is limited. > > By itself that's a point in its favor, since there's not much to learn > about using it (beyond the things noted above). > > But it also means that sooner or later you're likely to need to use the > format function anyway, as soon as you want padding for text, or scientific > notation, or any of the other options it provides. > > > > TL;DR > ----- > When numberFormat can do the job and you want to use it, use it. For > certain tasks it may be somewhat simpler than the format function. > > But when we consider the full cognitive requirements for using > numberFormat, esp. its dependency on multi-statement context, I think it > would be difficult to come up with a cognitive-load metric which could > demonstrate that it's actually easier to learn than the subset of options > needed to get the same result with the format function. > > Just because we learned it years ago doesn't mean it's necessarily easier > to learn for anyone else starting out today. > > Please remember that the reason we didn't learn the format function back > then it because it didn't exist in any xTalk in those days. :) > > Moreover, since the format function covers far more ground, once you learn > the options needed to get simple numeric formatting results you're already > well oriented for learning any other options you might need as you go later > one. > > > > PS: All of these recurring discussions around formatting data reinforce > the value of adding a display formatting property to the field object. > > There are still use-cases for both numberFormat and format, but there are > so many precedents in other tools for defining display format in the object > used for display that I think when that's what's needed it would be the > simplest to learn. > > -- > 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 harrison at all-auctions.com Sat Apr 22 14:43:02 2017 From: harrison at all-auctions.com (Rick Harrison) Date: Sat, 22 Apr 2017 14:43:02 -0400 Subject: LC Server - Smart Interactive Fields? In-Reply-To: References: <00D7F7AB-EA7A-40BC-92E5-A8B5B9D75D04@all-auctions.com> Message-ID: <35158337-70CC-44E6-834F-FA7F9E77FAC8@all-auctions.com> Hi Richard, I was afraid you?d say that! LOL I think I?m stuck with JavaScript then according to what you?ve explained here, and for what I need to do. A web app just won?t cut it. Thank you for investing your time into the verbose explanation. I?m sure other users in addition to myself will find it useful. Thanks again, Rick P.S. I think LiveCode could make more money if they invested somewhat more into these other technologies. > On Apr 22, 2017, at 2:29 PM, Richard Gaskin via use-livecode wrote: > > Rick Harrison wrote: > > > I was wondering if anyone has come up with a way to create > > ?Smart Interactive Fields? in LiveCode server without > > having to use javascript? > > > > For example: The user types in a number in the wrong format > > into a field and the field is smart enough to interactively tell the > > user with a tool-tip or other pop-up instruction that says the > > correct format is $999.99 or perhaps automatically corrects > > the problem for them. > > > > Any ideas? > > Browsers have only one language built in, and of course that's JavaScript. > > Anything that responds to user actions, such as keyboard and mouse events, will require JavaScript. > > Any server CGI, such as LiveCode Server, has a role limited to the server: a request comes in over the wire, it performs some task, and then returns data. > > How that data is requested from within the user's browser, and what the browser does with the data once it comes back from the server, is a task you'd handle in JavaScript. > > > Options: > > a) LC's HTML export > ------------------- > If you have a license for LC's HTML Export option, or are working on a GPL-governed work where the HTML Export included in the Community Edition would be a good fit, you may consider that. > > With this option, the LC engine is made available to your site as a JavaScript library, which then reads your stack and handles things within it's own canvas somewhat similar to running with a standalone engine, but within a portion of the browser window. > > Be aware, though, that it's still in development, and may or may not yet support the features you need. > > Personally, I'm big on quick-loading pages, and even with compression the entire LC engine is a rather sizable chunk of JavaScript to download, unpack, and initialize before it can render the page. > > There may be ways to eventually bring that down to fit into the 6-second rule, but at the moment it takes longer than that. > > > b) JavaScript > ------------- > Dive in, the water's fine. > > It's not a bad language at all, and very useful. For anyone who programs only in LC and is looking to pick up a second language, IMO JvaScript is an ideal choice because it covers the use-case LC covers the least well at the moment, web browsers. > > Extra bonus points that once you learn it you can write scripts for Node.js and other tools that use JavaScript as their foundation. > > This book is fun and easy to work through to get started: > > Head First JavaScript > http://shop.oreilly.com/product/9780596527747.do > > > c) RIA - Rich Internet Application > ---------------------------------- > A standalone made in LC can deliver nearly every benefit of delivering an app in a browser, exchanging not only data with a server but even stacks as well. > > An RIA lets you deliver an application with an interface dedicated to the workflow your app supports, with many options for integrating with the local OS far more than a browser app could dream of. And users never need to worry about accidentally obliterating what they're working on if they accidentally hit the Back button. > > I've waxed about RIAs often enough on this list that I won't take up more bandwidth here on the subject except to answer any questions and to offer this observation for now: > > When it comes to delivering an application over the Internet, many folks here say: > > "Customers don't want an app! It has to be delivered in a browser!" > > Let's set aside for a moment that no one using XCode, Visual Studio, Xamarin, or most other app dev tools ever considers exporting web pages a requirement for those tools at all. > > Let's look instead at the sentiments expressed here regarding mobile apps: > > "Customers don't want a web app! It must be delivered as a native app!" > > :) > > There are strengths and weaknesses of both OS-native apps and browser apps. > > What's "best" depends on a lot of factors that will differ from app to app and business model to business model. > > On mobile, Facebook offers a limited web app with a feature-rich native app. > > On desktop, Evernote offers a limited web app with a feature-rich native app. > > On mobile PayPal offers a limited native app, with a more feature-rich web app on the desktop. > > There is no single "best", no magic pony of "one size fits all". > > If all you need is a web page and not a web app (murky distinction, I know, but worth distinguishing), then you really have little choice but to use the only language available in that environment: JavaScript. > > But if you need to deliver serious functionality for non-trivial use, RIAs can do that with a better user experience and usually far faster development time than trying to cram serious work into the confines of a browser window. > > -- > 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 curry at pair.com Sat Apr 22 15:50:38 2017 From: curry at pair.com (Curry Kenworthy) Date: Sat, 22 Apr 2017 15:50:38 -0400 Subject: Don't amputate numberFormat (was: affecting array keys???) In-Reply-To: References: Message-ID: <58FBB40E.20103@pair.com> Richard: > But when we consider the full cognitive requirements for > using numberFormat, esp. its dependency on multi-statement > context, I think it would be difficult to come up with a > cognitive-load metric which could demonstrate that it's > actually easier to learn than the subset of options needed > to get the same result with the format function. > Just because we learned it years ago doesn't mean it's > necessarily easier to learn for anyone else starting out today. I don't believe for a moment that numberFormat style would lose in a straight competition to format style for people with zero related experience to either. I predict the learning time would be a fraction; there's just not much to learn when the symbols look so much like the desired result. I'm trying to be fair and think of how hard that can be, but not having much luck. I want "8.9" and I type "0.0" - it's so easy. The hashes are just one additional step, and might not be needed the first time. Nor do I think numberFormat is mostly useful for legacy code and old timers, or that more intuitive implies an inferior method. Anything but! That's why it's not unique in the world; very natural method of representing formatting options, and it will always be around in many products. You've proposed some intricate rules for evaluating the two formatting options, but your system and your calls lean in your preferred direction. That's fine. But with my rules, numberFormat usually dominates. BTW, the human mind is naturally designed for some contextual awareness. Concatenations often happen more than one at a time, and it's set for those transactions, much the way we would say it in a conversation. Talking about a subject with a person, if there's some context we need to keep in mind for the whole conversation, we can say that once at the beginning, not keep repeating it along with each point. As if I kept saying "with LiveCode, with LiveCode" when we all know that's the context of our discussions here! (Our discussions here with LiveCode, that is.) You already understand that fact. (I mean, the fact that it's LiveCode.) Of course I can replicate that memory with some extra code, but then the use of format has become more verbose, hasn't it? With numberFormat it's already done and infinitely tested, KISS and robust. So I just can't see that as a problem. It seems quite natural to the way we think, so might as well call it a plus. Whether I'm wearing pants or just nice boxers (more often the latter around the house, as a wheelchair guy) must be considered in social transactions. I believe this mental stream of thought at the conscious level looks more like "set currentClothing to "boxers";answer door for a package;prepare to go out" than a series of function calls providing my clothing as a parameter. Then again, maybe that stream is different for different people. If so, take your pick with my blessing. I'm in boxers now typing this and giving my blessing; might as well have some fun, right? :) The data type awareness is nothing to fret about either. I don't think it really requires awareness until they reach a certain point. If they are unaware, a conversion is going to happen anyway, by default when no format is set. So it's something very natural to learn about when it's brought to our attention by our own actions, and when we have a desire for a different result. And when that time comes, dang is it easy to learn! That was quick. You need even more awareness to use format. And awareness is good, but we can't have it both ways. If format awareness is good, numberFormat awareness can't be bad. And vice versa. I refuse to see the argument framed as an old timer/legacy thing when intuitive systems will dominate the future. I can really appreciate the reasons why some people like format, and more power to them, it's a very good system. But I demand just as much technical respect for the numberFormat, so I won't hesitate to reframe the discussion. Trends and fads change the landscape, and hype drives sales and adoption, but those come and go. My criteria are objective and fairly constant, and the numberFormat performs very well for my philosophy. Intuitive, useful, readable, usually less code, simple, fast to implement, easy to proofread. Even if LC were mutilated by removing or denigrating it (I hope not) other products, especially those geared toward numbers, would continue to use similar representations to reap the natural benefits of modern and intuitive formatting. With both, we can both be happy I'm sure! Always enjoy talking with you. Best wishes, Curry Kenworthy Custom Software Development LiveCode Training and Consulting http://curryk.com/consulting/ From ambassador at fourthworld.com Sat Apr 22 18:04:40 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 22 Apr 2017 15:04:40 -0700 Subject: LC Server - Smart Interactive Fields? In-Reply-To: <35158337-70CC-44E6-834F-FA7F9E77FAC8@all-auctions.com> References: <35158337-70CC-44E6-834F-FA7F9E77FAC8@all-auctions.com> Message-ID: <062c1c8a-b906-3e6d-29d5-0afa54a304df@fourthworld.com> Rick Harrison wrote: > Hi Richard, > > I was afraid you?d say that! LOL > > I think I?m stuck with JavaScript then according > to what you?ve explained here, and for what I > need to do. A web app just won?t cut it. Hopefully the O'Reilly book I linked to will help. You might even come to like JavaScript once you get this done. It can be fun. > Thank you for investing your time into the verbose explanation. > I?m sure other users in addition to myself will find it useful. I hope so too. My longer posts aim to be helpful here, but also server double-duty as notes I'm collecting for my LC book. > P.S. I think LiveCode could make more money if they > invested somewhat more into these other technologies. It would be nice indeed, but it's a tough balancing act to find the sweet spots where LC is truly great. The web is so fundamentally different from the desktop that to be honest if I were running the show I'm not sure I would have started down the road toward the range of features aimed for with an Emscripten-based HTML5 solution at all. Other options are far more limited, but given the differences between the web and the desktop maybe it's not so bad to aim low, for the small practical intersection where desktop and web needs truly overlap. The bottom line with browsers is that JavaScript got inside Netscape first, so it's been All JavaScript All The Time ever since. I'm not sure even the smartest move by a company LC's size could change that. My own focus would be to embrace it. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Sat Apr 22 18:42:54 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 22 Apr 2017 15:42:54 -0700 Subject: Don't amputate numberFormat (was: affecting array keys???) In-Reply-To: <58FBB40E.20103@pair.com> References: <58FBB40E.20103@pair.com> Message-ID: <33036c5e-1474-7680-2b6f-952920593311@fourthworld.com> Curry Kenworthy wrote: > Richard: > > But when we consider the full cognitive requirements for > > using numberFormat, esp. its dependency on multi-statement > > context, I think it would be difficult to come up with a > > cognitive-load metric which could demonstrate that it's > > actually easier to learn than the subset of options needed > > to get the same result with the format function. > > > Just because we learned it years ago doesn't mean it's > > necessarily easier to learn for anyone else starting out today. > > I don't believe for a moment that numberFormat style would lose in a > straight competition to format style for people with zero related > experience to either. I must admit I have neither the methodological background nor the resources to conduct such a study myself, hence my reliance here on mere heuristics. The link I included in my other post about cognitive load may be interesting, though in a more general sense. Of course that researcher wasn't comparing two different ways to format numbers in LC, but there may be aspects of his research which could guide a more detailed assessment here if needed. That's a big "if", though, because I agree that in both cases cog. load is small enough that the distance between both forms is almost certainly shorter than this thread. :) I just observe that we talk about numberFormat here a few times a year, even among people who've been using it for decades. But I can't recall the last time we saw questions here about the format function. More often, as with Paul's post, when format is mentioned here it's as a solution. > I want "8.9" and I type "0.0" - it's so easy. Sure, but by itself it doesn't do anything observable. With format(), you put something in and get something else out in one statement. With numberFormat, you first change an abstraction in the engine, then do something to a value elsewhere, and if you remembered to do it in the right order, and within a single handler, you'll get what you were looking for. That is, unless you've forgotten that you'd set the numberFormat to some value further up in the handler for some other reason than the place you happen to be typing in now some 50 lines later, where you're seeing values that aren't what you had expected because you'd overlooked that the numberFormat setting you'd done for one thing 50 lines up is still affecting everything afterward until you reset it. (Who among us has never had that happen to them?) :) > Nor do I think numberFormat is mostly useful for legacy code and old > timers, or that more intuitive implies an inferior method. Anything > but! Wholeheartedly agree, which is why I wrote: When numberFormat can do the job and you want to use it, use it. For certain tasks it may be somewhat simpler than the format function. > With both, we can both be happy I'm sure! Always enjoy talking with > you. Amen to that, Brother Kenworthy. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From MikeKerner at roadrunner.com Sat Apr 22 19:29:20 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 22 Apr 2017 19:29:20 -0400 Subject: Cognitive load In-Reply-To: <36d5caf3-fc09-fea2-8a78-c243957ee11c@fourthworld.com> References: <36d5caf3-fc09-fea2-8a78-c243957ee11c@fourthworld.com> Message-ID: So I assume that smaller is better On Sat, Apr 22, 2017 at 1:36 PM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Since cognitive load came up in the other thread about numberFormat, some > of you may find this paper very interesting: > > > Using Cognitive Load Theory to select an Environment for Teaching > Mobile Apps Development > > Raina Mason, Southern Cross University > Graham Cooper, Southern Cross University > Simon, University of Newcastle > Barry Wilks, Southern Cross University > > Abstract > -------- > After considering a number of environments for the development of apps for > mobile devices, we have evaluated five in terms of their suitability for > students early in their programing study. For some of the evaluation we > devised an evaluation scheme based on the principles of cognitive load > theory to assess the relative ease or difficulty of learning and using each > environment. After briefly presenting the scheme, we discuss our results, > including our findings about which mobile apps development environments > appear to show most promise for early-level programming students. > > > Excerpt > ------- > The computed averages are as follows: > > TouchDevelop: 16% > LiveCode: 17% > App Inventor: 33% > Xamarin: 59% > Visual Studio: 65% > ... > The mobile development environments that we evaluated fell clearly into > three groups. TouchDevelop and LiveCode, with threshold scores of less than > 20%, permitted the development of code with the least relative cognitive > load. Despite the fact that it was designed for, and is typically used for, > novice programmers, App Inventor had double the threshold score of these > two environments, indicating a substantially higher relative cognitive > load. Both Visual Studio and Xamarin Studio had threshold scores of around > 60%, nearly double again, indicating another substantial leap in the > relative cognitive load required to develop mobile apps in these > environments. > > > ry_to_select_an_Environment_for_Teaching_Mobile_Apps_Development> > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From ambassador at fourthworld.com Sat Apr 22 20:10:57 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 22 Apr 2017 17:10:57 -0700 Subject: Cognitive load In-Reply-To: References: Message-ID: <1019e100-758d-1265-1062-113ec7efc92e@fourthworld.com> Yep. In essence, what we have in this paper is scientific evidence that reinforces what the folks on this list know so well: LiveCode is MUCH easier to learn than most alternatives. -- Richard Gaskin Mike Kerner wrote: > So I assume that smaller is better > > On Sat, Apr 22, 2017 at 1:36 PM, Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Since cognitive load came up in the other thread about numberFormat, some >> of you may find this paper very interesting: >> >> >> Using Cognitive Load Theory to select an Environment for Teaching >> Mobile Apps Development >> >> Raina Mason, Southern Cross University >> Graham Cooper, Southern Cross University >> Simon, University of Newcastle >> Barry Wilks, Southern Cross University >> >> Abstract >> -------- >> After considering a number of environments for the development of apps for >> mobile devices, we have evaluated five in terms of their suitability for >> students early in their programing study. For some of the evaluation we >> devised an evaluation scheme based on the principles of cognitive load >> theory to assess the relative ease or difficulty of learning and using each >> environment. After briefly presenting the scheme, we discuss our results, >> including our findings about which mobile apps development environments >> appear to show most promise for early-level programming students. >> >> >> Excerpt >> ------- >> The computed averages are as follows: >> >> TouchDevelop: 16% >> LiveCode: 17% >> App Inventor: 33% >> Xamarin: 59% >> Visual Studio: 65% >> ... >> The mobile development environments that we evaluated fell clearly into >> three groups. TouchDevelop and LiveCode, with threshold scores of less than >> 20%, permitted the development of code with the least relative cognitive >> load. Despite the fact that it was designed for, and is typically used for, >> novice programmers, App Inventor had double the threshold score of these >> two environments, indicating a substantially higher relative cognitive >> load. Both Visual Studio and Xamarin Studio had threshold scores of around >> 60%, nearly double again, indicating another substantial leap in the >> relative cognitive load required to develop mobile apps in these >> environments. >> >> >> > ry_to_select_an_Environment_for_Teaching_Mobile_Apps_Development> >> From richmondmathewson at gmail.com Sun Apr 23 03:55:30 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 23 Apr 2017 10:55:30 +0300 Subject: Cognitive load In-Reply-To: References: <36d5caf3-fc09-fea2-8a78-c243957ee11c@fourthworld.com> Message-ID: I'm not sure why smaller should necessarily be better. Surely a better equation might be how much one gets out for what one puts in. Another consideration is how many transferrable skills one learns during any one cognitive apprenticeship. Richmond. On 4/23/17 2:29 am, Mike Kerner via use-livecode wrote: > So I assume that smaller is better > > On Sat, Apr 22, 2017 at 1:36 PM, Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Since cognitive load came up in the other thread about numberFormat, some >> of you may find this paper very interesting: >> >> >> Using Cognitive Load Theory to select an Environment for Teaching >> Mobile Apps Development >> >> Raina Mason, Southern Cross University >> Graham Cooper, Southern Cross University >> Simon, University of Newcastle >> Barry Wilks, Southern Cross University >> >> Abstract >> -------- >> After considering a number of environments for the development of apps for >> mobile devices, we have evaluated five in terms of their suitability for >> students early in their programing study. For some of the evaluation we >> devised an evaluation scheme based on the principles of cognitive load >> theory to assess the relative ease or difficulty of learning and using each >> environment. After briefly presenting the scheme, we discuss our results, >> including our findings about which mobile apps development environments >> appear to show most promise for early-level programming students. >> >> >> Excerpt >> ------- >> The computed averages are as follows: >> >> TouchDevelop: 16% >> LiveCode: 17% >> App Inventor: 33% >> Xamarin: 59% >> Visual Studio: 65% >> ... >> The mobile development environments that we evaluated fell clearly into >> three groups. TouchDevelop and LiveCode, with threshold scores of less than >> 20%, permitted the development of code with the least relative cognitive >> load. Despite the fact that it was designed for, and is typically used for, >> novice programmers, App Inventor had double the threshold score of these >> two environments, indicating a substantially higher relative cognitive >> load. Both Visual Studio and Xamarin Studio had threshold scores of around >> 60%, nearly double again, indicating another substantial leap in the >> relative cognitive load required to develop mobile apps in these >> environments. >> >> >> > ry_to_select_an_Environment_for_Teaching_Mobile_Apps_Development> >> >> >> -- >> 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 m.schonewille at economy-x-talk.com Sun Apr 23 04:10:50 2017 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 23 Apr 2017 10:10:50 +0200 Subject: How many words from start of text to my selection In-Reply-To: References: <5c5ed953-8668-0e1c-652a-6c93d7370016@economy-x-talk.com> Message-ID: <9d2cbd88-64b4-e6ab-149a-0889b1f6c5ab@economy-x-talk.com> HYi Kaveh, LiveCode sets the focus to the clicked object after running the scripts. If I would select text the normal way, the selection would be deselected again, because the focus would go away from the field to the button containing the script. Using the send in time command, I make sure that this command is executed after LiveCode completes its routines, also after LiveCode sets the focus. If you use a different way to execute the script rather then from a button or other object that is activated by a click, you won't need this last line. Moreover, sometimes I have this problem and sometimes not. I haven't figured out why. At least, when it occurs, there is a way to solve it. Kind regards, Mark Schonewille http://economy-x-talk.com https://www.facebook.com/marksch Buy the most extensive book on the LiveCode language: http://livecodebeginner.economy-x-talk.com Op 22-Apr-17 om 16:05 schreef Kaveh Bazargan: > Wonderful :-) > > Can you give me a hint of this line please: > > send "select word" && myChunk && "of fld 1" to me in 0 millisecs > > Why not just > > select word" && myChunk && "of fld 1" > > On 22 April 2017 at 12:33, Mark Schonewille via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> This tells you the number of the selected word: >> >> on mouseUp >> put the selectedChunk into myChunk >> put word 4 of myChunk into myChunk >> put the number of words of char 1 to myChunk of fld 1 >> send "select word" && myChunk && "of fld 1" to me in 0 millisecs >> end mouseUp >> >> Kind regards, >> >> Mark Schonewille >> http://economy-x-talk.com >> https://www.facebook.com/marksch >> >> Buy the most extensive book on the >> LiveCode language: >> http://livecodebeginner.economy-x-talk.com >> >> Op 22-Apr-17 om 13:18 schreef Kaveh Bazargan via use-livecode: >> >>> I have selected some text in a field. I want to convert that to "word xxx >>> of fld yyy". Any hints on how I do that? >>> >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > From richmondmathewson at gmail.com Sun Apr 23 06:38:27 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 23 Apr 2017 13:38:27 +0300 Subject: Stupid Q No 999: mergeBLE Message-ID: <3ce29cdb-f65d-83c0-b210-b83f7a60fd6d@gmail.com> So, here I am with Livecode 8.1.3 Indy (owing to the generosity of a donor) which contains mergeBLE I also own a floor-robot (Blue-Bot), know its UUID and have complete documentation of commands accepted by the robot. HOWEVER, I cannot for the life of me work out HOW one would do this sort of thing (pseudoCode): send "AA 03 81 11 04 67" to Bluebot so the robot would move FORWARD 1 unit. Richmond. From thatkeith at mac.com Sun Apr 23 07:59:44 2017 From: thatkeith at mac.com (Keith Martin) Date: Sun, 23 Apr 2017 12:59:44 +0100 Subject: Cognitive load In-Reply-To: References: <36d5caf3-fc09-fea2-8a78-c243957ee11c@fourthworld.com> Message-ID: On 23 Apr 2017, at 8:55, Richmond Mathewson via use-livecode wrote: > I'm not sure why smaller should necessarily be better. > > Surely a better equation might be how much one gets out for what one > puts in. Well, that would be *another* measurement ? related but not the same. Even harder to measure, I'm sure. The cognitive load of a menu-driven scripting system such as early versions of Flash was very low indeed (despite being rooted in an animation timeline concept) ? but it was itself very limited. I think it's good that this Southern Cross U comparison didn't go beyond a set of actual application development tools. I find the idea of cognitive load measurement extremely interesting. If something's Just Damn Tough to learn it's simply less accessible. It's the broad accessibility of xTalk that I have always found so exciting, from my HyperCard 1.x and SuperCard 1.x days onwards... and it's the relative Just Damn Tough-ness of Objective C that made me bail on my attempts to learn it a few years back. The cognitive load was too much for me. :-/ k --- Keith Martin Senior Lecturer, LCC (University of the Arts London) President, http://IVRPA.org http://PanoramaPhotographer.com http://thatkeith.com +44 (0)7909541365 --- From DixonJA at hotmail.co.uk Sun Apr 23 08:02:28 2017 From: DixonJA at hotmail.co.uk (John Dixon) Date: Sun, 23 Apr 2017 12:02:28 +0000 Subject: Browser widget Message-ID: Are there any messages than can be used with the browser 'widget', so that you could know when the URL has finished loading, for example ? dixie From hh at hyperhh.de Sun Apr 23 08:17:36 2017 From: hh at hyperhh.de (hh) Date: Sun, 23 Apr 2017 14:17:36 +0200 Subject: Browser widget Message-ID: <463861CC-DE83-4AEA-970F-33E41E7DB229@hyperhh.de> Yes, see Dict:API:Browser or tinyDict:Dicts:Browser From richmondmathewson at gmail.com Sun Apr 23 08:18:35 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 23 Apr 2017 15:18:35 +0300 Subject: Cognitive load In-Reply-To: References: <36d5caf3-fc09-fea2-8a78-c243957ee11c@fourthworld.com> Message-ID: <0a67554c-87ff-abec-6a3a-7102aefaac94@gmail.com> On 4/23/17 2:59 pm, Keith Martin via use-livecode wrote: > On 23 Apr 2017, at 8:55, Richmond Mathewson via use-livecode wrote: > >> I'm not sure why smaller should necessarily be better. >> >> Surely a better equation might be how much one gets out for what one >> puts in. > > Well, that would be *another* measurement ? related but not the same. > Even harder to measure, I'm sure. The cognitive load of a menu-driven > scripting system such as early versions of Flash was very low indeed > (despite being rooted in an animation timeline concept) ? but it was > itself very limited. I think it's good that this Southern Cross U > comparison didn't go beyond a set of actual application development > tools. > > I find the idea of cognitive load measurement extremely interesting. > If something's Just Damn Tough to learn it's simply less accessible. > It's the broad accessibility of xTalk that I have always found so > exciting, from my HyperCard 1.x and SuperCard 1.x days onwards... and > it's the relative Just Damn Tough-ness of Objective C that made me > bail on my attempts to learn it a few years back. The cognitive load > was too much for me. :-/ Personally the Damn Tough-ness of just about everything apart from LiveCode is making me worry about my cognitive capacity. Richmond. > > k > > > --- > > Keith Martin > Senior Lecturer, LCC (University of the Arts London) > President, http://IVRPA.org > http://PanoramaPhotographer.com > http://thatkeith.com > +44 (0)7909541365 > > --- > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Sun Apr 23 08:08:16 2017 From: klaus at major-k.de (Klaus major-k) Date: Sun, 23 Apr 2017 14:08:16 +0200 Subject: Browser widget In-Reply-To: References: Message-ID: Hi John, > Am 23.04.2017 um 14:02 schrieb John Dixon via use-livecode : > > Are there any messages than can be used with the browser 'widget', so that you could know when the URL has finished loading, for example ? sure, e.g. -> browserNavigateComplete tUrl Check the dictionary for more info about available browser widget commands/functions. Open the dictionary and select "Browser" in the popup "Choose API..." on the top left there. > dixie Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From jbv at souslelogo.com Sun Apr 23 08:36:09 2017 From: jbv at souslelogo.com (jbv) Date: Sun, 23 Apr 2017 14:36:09 +0200 Subject: Cognitive load In-Reply-To: References: <36d5caf3-fc09-fea2-8a78-c243957ee11c@fourthworld.com> Message-ID: <4ee677a83fe9357c2fcd2c331cee722b.squirrel@sage.on-rev.com> On Sun, April 23, 2017 9:55 am, Richmond Mathewson via use-livecode wrote: > I'm not sure why smaller should necessarily be better. > It is actually, and the cognitive load approach, especially for programmers newbies, is quite relevant. Newbies have to deal with 2 or 3 things simultaneously : 1- the language itself 2- the programming "rules" (variables, loops...) 3- the program itself they're attempting to write. It is a well-known fact that the workload that human minds can process per unit of time is limited (AFAIR 7 bits/sec), so the less cognitive load is needed by step 1 above, the more remains available for the other steps... From richmondmathewson at gmail.com Sun Apr 23 10:14:21 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 23 Apr 2017 17:14:21 +0300 Subject: Cognitive load In-Reply-To: <4ee677a83fe9357c2fcd2c331cee722b.squirrel@sage.on-rev.com> References: <36d5caf3-fc09-fea2-8a78-c243957ee11c@fourthworld.com> <4ee677a83fe9357c2fcd2c331cee722b.squirrel@sage.on-rev.com> Message-ID: <19215cbf-7e1d-d0c4-4fc2-1e6a12928ea9@gmail.com> "a well-known fact" Actually this is a fairly subjective finding, and it is not a bad idea to work out the difference between a 'fact' (as in "this concrete is hard, as you will see if you hit it with your first") and widely held beliefs which may later prove to be erroneous. "Cognitive Load" is a theory, and NOT a collection of facts. https://en.wikipedia.org/wiki/Cognitive_load " Evidence has been found that individuals systematically differ in their processing capacity." So, while one might have a modal workload the categorical boundaries are had to define and largely unquantifiable. Smaller MAY, generally be better, but NOT always; this very much depends on the person who is working with something. There is a tendency to treat the human brain as a super-computer, but this is, in all probability, a confusion of kinds which may lead to a complete misreading of both how minds work and how computers work. "7 bits/sec" So, you would reduce the human brain/mind to the level of a binary computer: I wonder how those "bits" were measured. "so the less cognitive load is needed by step 1 above, the more remains available for the other steps..." Well that rests on an unproven presupposition that the human brain/mid works in steps (again because of the odd equation brain= fancy computer); while it may not; it may work holistically, assessing a whole situation all at once. I find that teaching children (7-14) LiveCode produces rapid results, as does teaching them BBC BASIC (they love my BBC Micro computer). Supposedly LiveCode should present less of a cognitive load than BASIC: well it would if the two methods of GETTING COMPUTERS TO DO SOMETHING allowed one to GET THE COMPUTERS TO DO THE SAME THING, but they don't, they are two totally different ways of interacting with computers that were developed at different historical periods for rather different jobs, so comparing them is probably a waste of time. Oddly enough, children generally find this exercise: Get the computer to produce a table of the first 10 digits, their squares and their cubes on-screen. considerably easier in BBC BASIC than in LiveCode. It generally takes them 5 to 10 minutes with BASIC, with LiveCode they find that the GUI "gets in the way". While (not oddly at all) they wouldn't know how to begin (and nor would I) how to do this with BASIC: Produce a blue square, 200 x 200 pixels, with a button titled "Press Me" in the middle. Mason, Cooper, et al. attempt 'Assessing Cognitive Load in Mobile App Development Environments' which is, after all, very much a subset of computer-programming. They compare 5 programming "environments" (I'm using those quotation marks to point out that they are NOT comparing GUI-based IDEs with more 'traditional' programming methods, such as BASIC) that all, to a lesser or greater extent provide the programmer with a toolbox of premade objects, thereby cutting out a very large part of any cognitive apprenticeship that has, historically been required to attain competence in programming. I would argue that LiveCode, at least, does require quite a bit of cognitive effort, at least at the start, for programmers to understand how each of the premade controls/objects functions, and how each of them can be addressed to do what the end-user wants them to do. While LiveCode allows programmers to bypass a lot of 'stuff' that PASCAL. C++ and so on require a programmer to know, it presents them with another lot of 'stuff' which they have to know instead. The only thing that may make LiveCode easier to acquire some initial level of competence in is that the object-oriented visual metaphor adopted by LiveCode is, in some ways, nearer to the real world that what other, more traditional programming languages present. However, you will notice that I "argue", I don't present my subjective experience working with school children as 'facts'. Until about 1600 is was a "well-known fact" that the world was flat: but I have a funny feeling that it wasn't and that the world did not suddenly change shape when people started believing it was vaguely spherical. Now that people have gone up into space with rockets and taken photos of the earth the argument seems to be over whether the world "is" a sphere or an "oblate spheroid", and only nutty fruitcakes believe otherwise: https://www.tfes.org/ "So, Listen, I drive from coast to coast, and this shit is flat to me." Dr. Shaquille O'Neal. Anyone else wanting a doctorate can mail me $100 to the usual address and with a week they will recieve a doctoral diploma lovingly printed out from my laser printer :) Well, I enjoyed myself this weeked; hope you all did :) Richmond. On 4/23/17 3:36 pm, jbv via use-livecode wrote: > On Sun, April 23, 2017 9:55 am, Richmond Mathewson via use-livecode wrote: >> I'm not sure why smaller should necessarily be better. >> > It is actually, and the cognitive load approach, especially for > programmers newbies, is quite relevant. > Newbies have to deal with 2 or 3 things simultaneously : > 1- the language itself > 2- the programming "rules" (variables, loops...) > 3- the program itself they're attempting to write. > > It is a well-known fact that the workload that human minds can > process per unit of time is limited (AFAIR 7 bits/sec), so the > less cognitive load is needed by step 1 above, the more remains > available for the other steps... > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From thatkeith at mac.com Sun Apr 23 11:01:45 2017 From: thatkeith at mac.com (Keith Martin) Date: Sun, 23 Apr 2017 16:01:45 +0100 Subject: Cognitive load In-Reply-To: <19215cbf-7e1d-d0c4-4fc2-1e6a12928ea9@gmail.com> References: <36d5caf3-fc09-fea2-8a78-c243957ee11c@fourthworld.com> <4ee677a83fe9357c2fcd2c331cee722b.squirrel@sage.on-rev.com> <19215cbf-7e1d-d0c4-4fc2-1e6a12928ea9@gmail.com> Message-ID: <1C31F4B6-F8DA-497D-8ADD-A650B25188E0@mac.com> On 23 Apr 2017, at 15:14, Richmond Mathewson via use-livecode wrote: > Until about 1600 is was a "well-known fact" that the world was flat Heh. Nice analogy. Except that even this fact itself isn't true! Most educated people much further back than that believed that the Earth was round. Copernicus (1473-1543) didn't cause consternation through refuting the flatness of the world, he proposed that the world revolved around the sun rather than the other way around. And this wasn't the first time for that concept: Aristarchus of Samos (approx 310-230 BC) originally presented the heliocentric concept, which relies inherently on the Earth being a sphere. In fact (uh-oh! ;) the flat-Earth idea has been only patchily believed for far longer than people generally realise. Which makes it even more mind-numbingly strange that people think this today. But then, who in their right mind would look to a basketball player for scientific information? :D k --- Keith Martin Senior Lecturer, LCC (University of the Arts London) President, http://IVRPA.org http://PanoramaPhotographer.com http://thatkeith.com +44 (0)7909541365 --- From richmondmathewson at gmail.com Sun Apr 23 11:21:23 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 23 Apr 2017 18:21:23 +0300 Subject: Cognitive load In-Reply-To: <1C31F4B6-F8DA-497D-8ADD-A650B25188E0@mac.com> References: <36d5caf3-fc09-fea2-8a78-c243957ee11c@fourthworld.com> <4ee677a83fe9357c2fcd2c331cee722b.squirrel@sage.on-rev.com> <19215cbf-7e1d-d0c4-4fc2-1e6a12928ea9@gmail.com> <1C31F4B6-F8DA-497D-8ADD-A650B25188E0@mac.com> Message-ID: <822f0f1d-9522-f94e-f614-4c81c5dfe03e@gmail.com> On 4/23/17 6:01 pm, Keith Martin via use-livecode wrote: > On 23 Apr 2017, at 15:14, Richmond Mathewson via use-livecode wrote: > >> Until about 1600 is was a "well-known fact" that the world was flat > > Heh. Nice analogy. > Except that even this fact itself isn't true! Very few facts ultimately turn out to be true; face it, we live in a shaky universe. Richmond. > Most educated people much further back than that believed that the > Earth was round. Copernicus (1473-1543) didn't cause consternation > through refuting the flatness of the world, he proposed that the world > revolved around the sun rather than the other way around. And this > wasn't the first time for that concept: Aristarchus of Samos (approx > 310-230 BC) originally presented the heliocentric concept, which > relies inherently on the Earth being a sphere. In fact (uh-oh! ;) the > flat-Earth idea has been only patchily believed for far longer than > people generally realise. > Which makes it even more mind-numbingly strange that people think this > today. But then, who in their right mind would look to a basketball > player for scientific information? > > :D > > k > > > --- > > Keith Martin > Senior Lecturer, LCC (University of the Arts London) > President, http://IVRPA.org > http://PanoramaPhotographer.com > http://thatkeith.com > +44 (0)7909541365 > > --- > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jbv at souslelogo.com Sun Apr 23 11:35:59 2017 From: jbv at souslelogo.com (jbv) Date: Sun, 23 Apr 2017 17:35:59 +0200 Subject: Cognitive load In-Reply-To: <19215cbf-7e1d-d0c4-4fc2-1e6a12928ea9@gmail.com> References: <36d5caf3-fc09-fea2-8a78-c243957ee11c@fourthworld.com> <4ee677a83fe9357c2fcd2c331cee722b.squirrel@sage.on-rev.com> <19215cbf-7e1d-d0c4-4fc2-1e6a12928ea9@gmail.com> Message-ID: <4501ee020454a1a14688a798664f7a26.squirrel@sage.on-rev.com> sorry I didn't have the time to go into details in my previous post, but as for "a well-known fact" I was referring to decades of studies in psychology and ergonomics. This approach has nothing to with "reducing the human brain/mind to the level of a binary computer", but rather with very specific and carefully designed & reproductible tasks in which the amount of information processed can be precisely measured. Of course, individuals differ in their processing capacity, but (from the top of my head) according to the above mentioned studies, the upper limit seemed to be 7 bits/sec (again this doesn't mean that human brain = fancy computer). I also have several years of experience teaching programing to newbies of very different ages & backgrounds (starting in 1980/81 with a Logo machine and a class of kids aged 12/13), and the 3 "steps" I mentioned previously (perhaps a better word could be used) were constantly present during my teachings. These are not really successive "steps", as newbies have to apprehend all of them simultaneously. Last but not least, the concept of "workload" has been widely studied for decades in psychology & ergonomics, as well as (long story short) the best ways to organize & display information so that processing is reduced as much as possible. Several studies also showed that newbies tend to memorize algorithms in a very specific language (the one they used), while experienced coders tend to memorize algorithms "outside" of any specific language. That's why a programing language close to the natural language is a huge improvement, especially for newbies, for whom the necessary "workload" to apprehend the language (the first "step") is reduced, saving some processing capacity for the rest of the task. On Sun, April 23, 2017 4:14 pm, Richmond Mathewson via use-livecode wrote: > "a well-known fact" > > > Actually this is a fairly subjective finding, and it is not > a bad idea to work out the difference between a 'fact' (as in "this > concrete is hard, as you will see if you hit it with your first") and > widely held beliefs which may later prove to be erroneous. > > "Cognitive Load" is a theory, and NOT a collection of facts. > > > https://en.wikipedia.org/wiki/Cognitive_load > > > " Evidence has been found that individuals systematically differ in > their processing capacity." > > So, while one might have a modal workload the categorical boundaries are > had to define and largely unquantifiable. > > Smaller MAY, generally be better, but NOT always; this very much depends > on the person who is working with something. > > There is a tendency to treat the human brain as a super-computer, but > this is, in all probability, a confusion of kinds which may lead to a > complete misreading of both how minds work and how computers work. > > "7 bits/sec" > > > So, you would reduce the human brain/mind to the level of a binary > computer: I wonder how those > "bits" were measured. > > > "so the less cognitive load is needed by step 1 above, the more remains > available for the other steps..." > > Well that rests on an unproven presupposition that the human brain/mid > works in steps (again because of the odd equation brain= fancy computer); > while it may not; it may work holistically, assessing a whole situation > all at once. > > I find that teaching children (7-14) LiveCode produces rapid results, as > does teaching them BBC BASIC (they love my BBC Micro computer). Supposedly > LiveCode should present less of a cognitive load > than BASIC: well it would if the two methods of GETTING COMPUTERS TO DO > SOMETHING allowed one to GET THE COMPUTERS TO DO > THE SAME THING, but they don't, > they are two totally different ways of interacting with computers that were > developed at different historical periods for rather different jobs, so > comparing them is probably a waste of time. > > Oddly enough, children generally find this exercise: > > > Get the computer to produce a table of the first 10 digits, their > squares and their cubes on-screen. > > considerably easier in BBC BASIC than in LiveCode. It generally takes them > 5 to 10 minutes with BASIC, > with LiveCode they find that the GUI "gets in the way". > > While (not oddly at all) they wouldn't know how to begin (and nor would > I) how to do this with BASIC: > > > Produce a blue square, 200 x 200 pixels, with a button titled "Press Me" > in the middle. > > Mason, Cooper, et al. attempt 'Assessing Cognitive Load in Mobile App > Development Environments' which is, > after all, very much a subset of computer-programming. > > They compare 5 programming "environments" (I'm using those quotation > marks to point out that they are NOT comparing GUI-based IDEs with more > 'traditional' programming > methods, such as BASIC) that all, to a lesser or greater extent provide the > programmer with a toolbox of premade objects, thereby cutting out a very > large part of any cognitive apprenticeship that has, historically been > required to attain competence in programming. > > I would argue that LiveCode, at least, does require quite a bit of > cognitive effort, at least at the start, for programmers to understand how > each of the premade controls/objects functions, and how each of them can be > addressed to do what the end-user wants them to do. While LiveCode allows > programmers to bypass a lot of 'stuff' that PASCAL. C++ and so on require > a programmer to know, it presents them with another lot of 'stuff' which > they have to know instead. The only thing that may make LiveCode easier to > acquire some initial level of competence in is that the object-oriented > visual metaphor adopted by LiveCode is, in some ways, nearer to the real > world that what other, more traditional programming languages present. > > However, you will notice that I "argue", I don't present my subjective > experience working with school children as 'facts'. > > > Until about 1600 is was a "well-known fact" that the world was flat: but > I have a funny feeling that it wasn't and > that the world did not suddenly change shape when people started believing > it was vaguely spherical. Now that people have gone up into space with > rockets and taken photos of the earth the argument seems to be over > whether the world "is" a sphere or an "oblate spheroid", and only nutty > fruitcakes believe otherwise: > > https://www.tfes.org/ > > > "So, Listen, I drive from coast to coast, and this shit is flat to me." > Dr. Shaquille O'Neal. > > > Anyone else wanting a doctorate can mail me $100 to the usual address > and with a week they will recieve a doctoral diploma lovingly printed out > from my laser printer :) > > Well, I enjoyed myself this weeked; hope you all did :) > > > Richmond. > > > On 4/23/17 3:36 pm, jbv via use-livecode wrote: > >> On Sun, April 23, 2017 9:55 am, Richmond Mathewson via use-livecode >> wrote: >> >>> I'm not sure why smaller should necessarily be better. >>> >>> >> It is actually, and the cognitive load approach, especially for >> programmers newbies, is quite relevant. Newbies have to deal with 2 or 3 >> things simultaneously : 1- the language itself >> 2- the programming "rules" (variables, loops...) >> 3- the program itself they're attempting to write. >> >> >> It is a well-known fact that the workload that human minds can >> process per unit of time is limited (AFAIR 7 bits/sec), so the less >> cognitive load is needed by step 1 above, the more remains available for >> the other steps... >> >> >> _______________________________________________ >> use-livecode mailing list use-livecode at lists.runrev.com Please visit this >> url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list use-livecode at lists.runrev.com Please visit this > url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > From roland.huettmann at gmail.com Sun Apr 23 12:42:12 2017 From: roland.huettmann at gmail.com (Roland Huettmann) Date: Sun, 23 Apr 2017 18:42:12 +0200 Subject: Don't ampute numberformat In-Reply-To: References: Message-ID: I get around with numberformt, format() and own custom functions. But the discussion is interesting nevertheless, even when repeating. But it would be better to have consistent support throughout the IDE with one preferred method covering also international formatting edge cases. What I really would love to see are fields and lists (columns at least) where a field/column/cell has a formatting property similar to Excels cell formatting. It would make life much easier to simply set such property from predefined options. Or formats will be user-define manually or through script. 90% of overhead in formatting would be gone when entering or displaying data this way. And dependent on the field formatting, the engine would internally convert data types when addressing such field: "put 1000 into field 1" would render "$1,000.00" if the format property would have been set as such. And entering 1000 would format the field in the same way. Using such values in mathematical operations would be possible without the need to strip "$" and comma symbols or thousand seperators, the engine would convert text to number automatically even for such formats. Only for the output or numbers/dates rendered as part of a text string, individual formatting of numbers/dates will still be needed sometimes. Roland From Camm29 at tesco.net Sun Apr 23 13:02:40 2017 From: Camm29 at tesco.net (Camm) Date: Sun, 23 Apr 2017 18:02:40 +0100 Subject: AW: Which code signing authority? In-Reply-To: <1492780639927-4714101.post@n4.nabble.com> References: <76D18BFB-532D-4FEB-A1D4-5DCDDD77FC80@gmail.com> <005501d2b9d6$26501c90$72f055b0$@kestner.de> <6ED1EFFB-621D-4681-9F6B-98B0E8BAD402@gmail.com> <1492780639927-4714101.post@n4.nabble.com> Message-ID: <003401d2bc53$6b12b020$41381060$@tesco.net> Second that ! -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of tbodine via use-livecode Sent: 21 April 2017 14:17 To: use-revolution at lists.runrev.com Cc: tbodine Subject: Re: AW: Which code signing authority? I've been using K Software's Comodo certs to sign Windows standalones and installers for at least five years. The support provided by the owner of K Software is quite good. (Example: http://certhelp.ksoftware.net/support/home ) Tom B. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Which-code-signing-authority- tp4714079p4714101.html Sent from the Revolution - User mailing list archive at Nabble.com. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode --- This email has been checked for viruses by AVG. http://www.avg.com From roger.e.eller at sealedair.com Sun Apr 23 15:59:30 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Sun, 23 Apr 2017 15:59:30 -0400 Subject: Stupid Q No 999: mergeBLE In-Reply-To: <3ce29cdb-f65d-83c0-b210-b83f7a60fd6d@gmail.com> References: <3ce29cdb-f65d-83c0-b210-b83f7a60fd6d@gmail.com> Message-ID: Have you looked at the mergBLE commands in the LC dictionary? mergBLEConnectPeripheral pUUID Monte will likely have the answers you seek. ~Roger On Sun, Apr 23, 2017 at 6:38 AM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > So, here I am with Livecode 8.1.3 Indy (owing to the generosity of a > donor) which contains mergeBLE > > I also own a floor-robot (Blue-Bot), know its UUID and have > complete documentation of commands accepted by the robot. > > HOWEVER, I cannot for the life of me work out HOW one would do this sort > of thing (pseudoCode): > > send "AA 03 81 11 04 67" to Bluebot > > so the robot would move FORWARD 1 unit. > > Richmond. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From hh at hyperhh.de Sun Apr 23 16:30:50 2017 From: hh at hyperhh.de (hh) Date: Sun, 23 Apr 2017 22:30:50 +0200 Subject: Legofied thistle Message-ID: <97680922-8A8B-48DB-B183-1411A793D9C7@hyperhh.de> In order to follow the current Lego-Hype of LC's advertising you may create an own 'legofied' version of the thistle that thistles at Thistle street NW, Edinburgh. To have a playground for the little version-boys from LC's homepage... http://forums.livecode.com/viewtopic.php?p=153583#p153583 From richmondmathewson at gmail.com Sun Apr 23 16:56:54 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 23 Apr 2017 23:56:54 +0300 Subject: Stupid Q No 999: mergeBLE In-Reply-To: References: <3ce29cdb-f65d-83c0-b210-b83f7a60fd6d@gmail.com> Message-ID: <6ef94a20-9ba2-68ee-e5f2-0e64130d334b@gmail.com> " All of the addons have full documentation making it a joy to use them in your app." Well I am unfortunately missing 2 things: "full" documentation (extremely minimal in the LC Documentation stack), and the "joy": te second as a consequence of the first. Richmond. On 4/23/17 10:59 pm, Roger Eller via use-livecode wrote: > Have you looked at the mergBLE commands in the LC dictionary? > > mergBLEConnectPeripheral pUUID > > Monte will likely have the answers you seek. > > ~Roger > > > On Sun, Apr 23, 2017 at 6:38 AM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> So, here I am with Livecode 8.1.3 Indy (owing to the generosity of a >> donor) which contains mergeBLE >> >> I also own a floor-robot (Blue-Bot), know its UUID and have >> complete documentation of commands accepted by the robot. >> >> HOWEVER, I cannot for the life of me work out HOW one would do this sort >> of thing (pseudoCode): >> >> send "AA 03 81 11 04 67" to Bluebot >> >> so the robot would move FORWARD 1 unit. >> >> 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 curry at pair.com Sun Apr 23 18:02:08 2017 From: curry at pair.com (Curry Kenworthy) Date: Sun, 23 Apr 2017 18:02:08 -0400 Subject: Don't amputate numberFormat (was: affecting array keys???) In-Reply-To: <33036c5e-1474-7680-2b6f-952920593311@fourthworld.com> References: <33036c5e-1474-7680-2b6f-952920593311@fourthworld.com> Message-ID: <58FD2460.2060301@pair.com> Richard: > With format(), you put something in and get something > else out in one statement. > With numberFormat, you first change an abstraction in > the engine, then do something to a value elsewhere, > and if you remembered to do it in the right order, > and within a single handler, you'll get what you were > looking for. Ha ha, and that's precisely what I love about it, in addition to the intuitive representation and the great syntax! In other words, the property acts a lot like a setting. Plenty of those in LiveCode. That's also intuitive, efficient the way I use them, and something that relates well to human experience, very easy to teach and learn. That's a strength in my book. I forgot to add before that numberFormat seems to have the advantage on data type awareness. When you don't know about it, it works anyway, using the default when you concatenate. When you desire a different result and gain awareness, you can set it, and your concatenation code stays the same. With format, you must have awareness from the start. Otherwise you're just concatenating stuff, and then the default has to cover for you. We could call that a tie, but I look at two other points. The default superficially looks like the way numberFormat works (the syntax is just concatenating with no functions) and LiveCode must have that built in anyway, unless it throws an error. Then you must change your concatenation code to include the function. Bottom line is the "0.0" representation is just too intuitive to beat. Cognitive load theory or not, mark my words, that representation is going to blow away the competition in learning. That's obvious by being so much closer in form to the desired result. The closer things are, generally the less work required to bridge them. You can give it fancy names, but the underlying math will hold true regardless. Using the property like a setting is an added plus, appealing and intuitive for many (I'd venture to guess most) people. Some others may prefer format. For them, it's there to use and no one is advocating that it be removed or deprecated. And even if a new property were added to control field display, it would probably act a lot like numberFormat. But even that wouldn't replace the need for numberFormat itself. I think there are so many better priorities for LiveCode's "surgeons" than attacking the healthy tissue. There are still LC 8/9 bugs and so on that need attention, and having to intervene on behalf of this feature takes away a lot time from submitting those bug reports and maybe doing some promotions and such. This is one of the good parts of LiveCode! I hope people don't get dazzled by trends or self-destructive. I've seen that happen before. Good feature, realize the value of what you have and hang on to it. Best wishes, "Uber-Mega-Doctor" Curry Kenworthy (Richmond, my check is in the mail! Don't be stingy with the gold lettering) Custom Software Development LiveCode Training and Consulting http://curryk.com/consulting/ From MikeKerner at roadrunner.com Sun Apr 23 18:02:52 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 23 Apr 2017 18:02:52 -0400 Subject: Don't ampute numberformat In-Reply-To: References: Message-ID: Well, that would be a nice thing to have in a field widget, but I run into formatting issues with databases, as well, especially when sorting. On Sun, Apr 23, 2017 at 12:42 PM, Roland Huettmann via use-livecode < use-livecode at lists.runrev.com> wrote: > I get around with numberformt, format() and own custom functions. But the > discussion is interesting nevertheless, even when repeating. > > But it would be better to have consistent support throughout the IDE with > one preferred method covering also international formatting edge cases. > > What I really would love to see are fields and lists (columns at least) > where a field/column/cell has a formatting property similar to Excels cell > formatting. > > It would make life much easier to simply set such property from predefined > options. Or formats will be user-define manually or through script. > > 90% of overhead in formatting would be gone when entering or displaying > data this way. And dependent on the field formatting, the engine would > internally convert data types when addressing such field: > > "put 1000 into field 1" would render "$1,000.00" if the format property > would have been set as such. And entering 1000 would format the field in > the same way. Using such values in mathematical operations would be > possible without the need to strip "$" and comma symbols or thousand > seperators, the engine would convert text to number automatically even for > such formats. > > Only for the output or numbers/dates rendered as part of a text string, > individual formatting of numbers/dates will still be needed sometimes. > > Roland > _______________________________________________ > use-livecode mailing list > use-livecode 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 panos.merakos at livecode.com Mon Apr 24 06:31:34 2017 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 24 Apr 2017 11:31:34 +0100 Subject: [ANN] This Week in LiveCode 79 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 #79 here: https://goo.gl/J5RUK3 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 roland.huettmann at gmail.com Mon Apr 24 08:13:35 2017 From: roland.huettmann at gmail.com (Roland Huettmann) Date: Mon, 24 Apr 2017 14:13:35 +0200 Subject: Subject: Re: Don't amputate numberformat In-Reply-To: References: Message-ID: Mike Kerner: "Well, that would be a nice thing to have in a field widget, but I run into formatting issues with databases, as well, especially when sorting." I am using all kinds of formatting functions with databases. There is always this overhead which could be minimized using a database adapter as provided in other languages, or writing your own. But fields, the visual objects used most, are a focus for any data management. They always deserve attention, and unless there will be such new widget, actually our already nice fields would be candidate for such and other improvements. And also, it is a widely adopted standard that left, top, right and bottom boundaries could be formatted separately. I do not know much about the internal workings of the machine, but could such work be outsourced? Maybe someone could raise funding? I would rather like to see the improvements in the core engine instead of as a LC Builder widget since it is so basic. Roland From MikeKerner at roadrunner.com Mon Apr 24 08:27:23 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 24 Apr 2017 08:27:23 -0400 Subject: Subject: Re: Don't amputate numberformat In-Reply-To: References: Message-ID: I've talked about doing some microfinancing projects in LC, but so far I haven't heard a lot of interest. I'm all for it. On Mon, Apr 24, 2017 at 8:13 AM, Roland Huettmann via use-livecode < use-livecode at lists.runrev.com> wrote: > Mike Kerner: "Well, that would be a nice thing to have in a field widget, > but I run into > formatting issues with databases, as well, especially when sorting." > > I am using all kinds of formatting functions with databases. There is > always this overhead which could be minimized using a database adapter as > provided in other languages, or writing your own. > > But fields, the visual objects used most, are a focus for any data > management. They always deserve attention, and unless there will be such > new widget, actually our already nice fields would be candidate for such > and other improvements. > > And also, it is a widely adopted standard that left, top, right and bottom > boundaries could be formatted separately. > > I do not know much about the internal workings of the machine, but could > such work be outsourced? Maybe someone could raise funding? I would rather > like to see the improvements in the core engine instead of as a LC Builder > widget since it is so basic. > > Roland > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From benr_mc at cogapp.com Mon Apr 24 08:54:10 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 24 Apr 2017 13:54:10 +0100 Subject: Stupid Q No 999: mergeBLE In-Reply-To: <6ef94a20-9ba2-68ee-e5f2-0e64130d334b@gmail.com> References: <3ce29cdb-f65d-83c0-b210-b83f7a60fd6d@gmail.com> <6ef94a20-9ba2-68ee-e5f2-0e64130d334b@gmail.com> Message-ID: <6f7cfef6-0811-bf07-018e-40996a87e291@cogapp.com> You may find this alternative documention of all the functions more helpful in this context: http://mergext.com/home/mergble/ On 23/04/2017 21:56, Richmond Mathewson via use-livecode wrote: > " All of the addons have full documentation making it a joy to use them in > your app." > > Well I am unfortunately missing 2 things: "full" documentation (extremely > minimal in the LC Documentation stack), > and the "joy": te second as a consequence of the first. > > Richmond. > > On 4/23/17 10:59 pm, Roger Eller via use-livecode wrote: >> Have you looked at the mergBLE commands in the LC dictionary? >> >> mergBLEConnectPeripheral pUUID >> >> Monte will likely have the answers you seek. >> >> ~Roger >> >> >> On Sun, Apr 23, 2017 at 6:38 AM, Richmond Mathewson via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> So, here I am with Livecode 8.1.3 Indy (owing to the generosity of a >>> donor) which contains mergeBLE >>> >>> I also own a floor-robot (Blue-Bot), know its UUID and have >>> complete documentation of commands accepted by the robot. >>> >>> HOWEVER, I cannot for the life of me work out HOW one would do this sort >>> of thing (pseudoCode): >>> >>> send "AA 03 81 11 04 67" to Bluebot >>> >>> so the robot would move FORWARD 1 unit. >>> >>> Richmond. >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dave at applicationinsight.com Mon Apr 24 09:57:20 2017 From: dave at applicationinsight.com (Dave Kilroy) Date: Mon, 24 Apr 2017 14:57:20 +0100 Subject: Subject: Re: Don't amputate numberformat Message-ID: Do you guys know about Hugh Senior?s Field Formatter? http://www.flexiblelearning.com/fieldformatter/ Dave From mark at livecode.com Mon Apr 24 10:06:37 2017 From: mark at livecode.com (Mark Waddingham) Date: Mon, 24 Apr 2017 16:06:37 +0200 Subject: Don't amputate numberFormat (was: affecting array =?UTF-8?Q?keys=3F=3F=3F=29?= In-Reply-To: <58FAA902.3090402@pair.com> References: <11db1e6f8cf692291ab0eee4cf9a876e@livecode.com> <58FAA902.3090402@pair.com> Message-ID: <265283c9704fdd3610882fd3c3fe8b1e@livecode.com> On 2017-04-22 02:51, Curry Kenworthy via use-livecode wrote: > Mark Waddingham: >> I think this is perhaps more evidence that 'numberFormat' >> should probably be deprecated - or at least marked as >> 'present for HyperCard compatibility only and shouldn't >> be used in new code'. > > I emphatically disagree. Don't worry - I don't entirely agree with my suggestion either :) I must confess I was being overly pejorative in order to provoke a conversation - something I have a tendency to do from time to time in order to help get a greater understanding of things. > There's nothing wrong with numberFormat as a binary to text option. On > the contrary, it's a splendid way to present the formatting to users. > The array key example is an outlier case to watch out for, but it's > also easy to use an alternate formatting option or careful coding for > those rare cases. I'd disagree that anything involving the use of arrays could be considered a 'rare case' or an 'outlier case'; so it is irksome that a feature (numberFormat) which is meant to make working with the display of numbers 'easier' is somewhat incompatible with it. I'd mind less if numberFormat was actually had wide utility - but, in reality, for all but the simplest of cases (wanting US/UK style numbers, with preceding or following '0's) it isn't very useful. To be fair, that is fine - the problems which keep recurring could probably be mostly dealt with by much better documentation of numberFormat. i.e. Clear explanation about how it affects computations, and when to use it and when not to That, however, does still leave me 'wanting' though. As you point out the *idea* is so ergonomic that it *seems* like it should be much more powerful, but it is not, and if you want to use it easily with other parts of the language, you are probably best not to use it at all. I can guarantee that nothing is going to happen to numberFormat (beyond perhaps improving its documentation) any time soon - if ever. Indeed, it wouldn't ever disappear just evolved (assuming we can figure out how to make it a) more powerful and (b) play more nicely with LiveCode's more modern features!). Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From MikeKerner at roadrunner.com Mon Apr 24 10:07:09 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 24 Apr 2017 10:07:09 -0400 Subject: Subject: Re: Don't amputate numberformat In-Reply-To: References: Message-ID: This is why I want to try to get a more centralized repo of all the cool stuff that everyone's done in LC, especially if it's available in-app, sort of like a widget store, if we ever get one of those... On Mon, Apr 24, 2017 at 9:57 AM, Dave Kilroy via use-livecode < use-livecode at lists.runrev.com> wrote: > Do you guys know about Hugh Senior?s Field Formatter? > http://www.flexiblelearning.com/fieldformatter/ < > http://www.flexiblelearning.com/fieldformatter/> > > Dave > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Mon Apr 24 10:10:07 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 24 Apr 2017 10:10:07 -0400 Subject: Don't amputate numberFormat (was: affecting array keys???) In-Reply-To: <265283c9704fdd3610882fd3c3fe8b1e@livecode.com> References: <11db1e6f8cf692291ab0eee4cf9a876e@livecode.com> <58FAA902.3090402@pair.com> <265283c9704fdd3610882fd3c3fe8b1e@livecode.com> Message-ID: That's too bad. I was hoping that I could trade deprecating numberFormat for giving equal rights to the last item in a list. Say it with me now: EQUAL RIGHTS FOR ALL ITEMS! EVEN THE LAST ONES! On Mon, Apr 24, 2017 at 10:06 AM, Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > On 2017-04-22 02:51, Curry Kenworthy via use-livecode wrote: > >> Mark Waddingham: >> >>> I think this is perhaps more evidence that 'numberFormat' >>> should probably be deprecated - or at least marked as >>> 'present for HyperCard compatibility only and shouldn't >>> be used in new code'. >>> >> >> I emphatically disagree. >> > > Don't worry - I don't entirely agree with my suggestion either :) > > I must confess I was being overly pejorative in order to provoke a > conversation - something I have a tendency to do from time to time in > order to help get a greater understanding of things. > > There's nothing wrong with numberFormat as a binary to text option. On >> the contrary, it's a splendid way to present the formatting to users. >> The array key example is an outlier case to watch out for, but it's >> also easy to use an alternate formatting option or careful coding for >> those rare cases. >> > > I'd disagree that anything involving the use of arrays could be considered > a 'rare case' or an 'outlier case'; so it is irksome that a feature > (numberFormat) which is meant to make working with the display of numbers > 'easier' is somewhat incompatible with it. > > I'd mind less if numberFormat was actually had wide utility - but, in > reality, > for all but the simplest of cases (wanting US/UK style numbers, with > preceding or following '0's) it isn't very useful. > > To be fair, that is fine - the problems which keep recurring could > probably be mostly dealt with by much better documentation of numberFormat. > i.e. Clear explanation about how it affects computations, and when to use > it > and when not to > > That, however, does still leave me 'wanting' though. As you point out the > *idea* is so ergonomic that it *seems* like it should be much more > powerful, > but it is not, and if you want to use it easily with other parts of the > language, you are probably best not to use it at all. > > I can guarantee that nothing is going to happen to numberFormat (beyond > perhaps improving its documentation) any time soon - if ever. Indeed, > it wouldn't ever disappear just evolved (assuming we can figure out how > to make it a) more powerful and (b) play more nicely with LiveCode's more > modern features!). > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Mon Apr 24 10:17:17 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 24 Apr 2017 10:17:17 -0400 Subject: OS X Firewall triggering on launch In-Reply-To: <466145e4-3fbf-7007-33e5-7b0d24f4681e@hyperactivesw.com> References: <9C111DC5-2240-4D20-BC57-52FB2B9B9E44@appisle.net> <5ada9bb9-ceb9-caba-dd27-022ef6de9f27@hyperactivesw.com> <7afde125-5f7f-5aa7-d7a4-281ff011d974@hyperactivesw.com> <98F55C1A-06EA-4AAA-B22D-133C3F5F2991@appisle.net> <93233e0c-792e-d6e0-f0c4-1fd6fb22b7b2@hyperactivesw.com> <466145e4-3fbf-7007-33e5-7b0d24f4681e@hyperactivesw.com> Message-ID: I'm also getting this with every launch, even though dp6 is in the firewall settings. It's much less annoying, now that LC isn't crashing constantly with the new version of mergDeploy, so I don't quit and relaunch 9 very often, now. On Tue, Apr 11, 2017 at 10:49 PM, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > On 4/11/17 9:17 PM, J. Landman Gay via use-livecode wrote: > >> On 4/11/17 5:17 PM, Monte Goulding via use-livecode wrote: >> >>> >>> On 12 Apr 2017, at 4:48 am, J. Landman Gay via use-livecode >>>> wrote: >>>> >>>> And it is still putting up the alert on launch. Seems I'm stuck >>>> with it. >>>> >>> >>> Hmm? that?s odd. I?ll ask the team if anyone has any ideas why this >>> is occurring. Just to make sure you aren?t saving anything within the >>> LC app bundle are you? >>> >> >> Nope. I just checked the dates on most of the files to be sure and they >> all say March 8, so nothing has changed there. I wonder if it's >> Mavericks. The firewall doesn't seem to recognize LCdp6. >> >> > I wrote "Mavericks" but that was a think-o. I'm running El Capitan, in > case it matters. > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From jbv at souslelogo.com Mon Apr 24 10:23:51 2017 From: jbv at souslelogo.com (jbv) Date: Mon, 24 Apr 2017 16:23:51 +0200 Subject: How do you guys debug a webpage... In-Reply-To: <4501ee020454a1a14688a798664f7a26.squirrel@sage.on-rev.com> References: <36d5caf3-fc09-fea2-8a78-c243957ee11c@fourthworld.com> <4ee677a83fe9357c2fcd2c331cee722b.squirrel@sage.on-rev.com> <19215cbf-7e1d-d0c4-4fc2-1e6a12928ea9@gmail.com> <4501ee020454a1a14688a798664f7a26.squirrel@sage.on-rev.com> Message-ID: <0e129b4f79de348d5031b951b3d9e8b5.squirrel@sage.on-rev.com> Hi list, How do you guys debug a webpage that doesn't behave the same way (especially js scripts) when opened in a browser and in revBrowser ? More specifically my problem is with xmlhttp.send which I have used zillions of times, and which works fine in my webpage in a browser and seems to throw an error when opened in revBrowser... IOW is there a way to catch the error (or display js console in revBrowser) ? Thanks in advance. jbv From mark at livecode.com Mon Apr 24 10:27:43 2017 From: mark at livecode.com (Mark Waddingham) Date: Mon, 24 Apr 2017 16:27:43 +0200 Subject: Subject: Re: Don't amputate numberformat In-Reply-To: References: Message-ID: <44f675b2d26ce119b6cff626ff2b5d06@livecode.com> On 2017-04-24 14:13, Roland Huettmann via use-livecode wrote: > Mike Kerner: "Well, that would be a nice thing to have in a field > widget, > but I run into > formatting issues with databases, as well, especially when sorting." > > I do not know much about the internal workings of the machine, but > could > such work be outsourced? Maybe someone could raise funding? I would > rather > like to see the improvements in the core engine instead of as a LC > Builder > widget since it is so basic. The field is a rather large, difficult and very very picky piece of engine code so pretty much nothing related to it is far from 'easy' to do. Of course, the 'how one would implement something' has to be preceded by 'how would such a thing work' and the latter is not entirely clear in this case... Mike's suggestion of a 'field widget', I'd perhaps suggest would be a 'field' much more inline with a database 'field' - i.e. it would be a single thing which had a 'format' property (think type of column). The 'field' would hold a single value, and the 'format' would determine how that (typeless) value would be interpreted and rendered. Trying to do a similar thing with the current field is a little more complex because the field allows char level access to its contents. In your previous post you suggested it would be nice to be able to do something along the lines of: put "1.234" into field 1 set the format of field 1 to "currency" In this case, assuming the user's currency format was something like '?0.00' then you would see '?1.23' in the field. (I don't think I can understate how neat this would be). However, the question to ask (and I've been asking myself in the back of my mind since I read your post) is: what, in this context does 'put char 1 to 3 of field 1' mean? Does it mean '1.23' or '?1.'? The problem here is that which it should mean very much depends on what you are wanting to do. The idea of the feature is that it completely separates computational value (1.234) from display value (?1.23) - however, fields have a large number of features which work (and can only work) if it is based on display value. For example, it would be slightly unsettling to a user if they could not select a portion of '?1.23' to copy onto the clipboard - the way the field presents its selection is using 'char X to Y' so that immediately gives us a constraint that the displayed chars of the value would be used for char X to Y evaluation. However, from a computational point of view, it is kinda important that the following is true: put "1234" into field 1 put char 1 to 4 of field 1 is "1234" So that immediately gives us a constraint that it would have to be the computational value that would be used for char X to Y evaluation. So we end up going back round in a circle... Warmest Regards, Mark. P.S. I should say that the above should not be taken as 'this is not possible to do', more that a naive approach to doing it probably isn't going to work so something a little cleverer is needed... And like most things, things which are a little cleverer just require a little more application of the 'little grey cells' :) -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Mon Apr 24 10:32:48 2017 From: mark at livecode.com (Mark Waddingham) Date: Mon, 24 Apr 2017 16:32:48 +0200 Subject: Don't amputate numberFormat (was: affecting array =?UTF-8?Q?keys=3F=3F=3F=29?= In-Reply-To: References: <11db1e6f8cf692291ab0eee4cf9a876e@livecode.com> <58FAA902.3090402@pair.com> <265283c9704fdd3610882fd3c3fe8b1e@livecode.com> Message-ID: <5145e2cb090715ad437090acac10acd1@livecode.com> On 2017-04-24 16:10, Mike Kerner via use-livecode wrote: > That's too bad. I was hoping that I could trade deprecating > numberFormat for giving equal rights to the last item in a list. If you mean: the number of items in "a,b," should be 3 (and not 2) and the number of items in "a,b,c" should be 3 Then, err, no. Sorry. To paraphrase Scotty from Star Trek - "I can't change the laws of logic", and nor can you ;) If you want to use string lists which may contain an empty element then just make sure you always have a trailing delimiter. Of course, if you don't mean the above, then you might want to elaborate :) Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From bobsneidar at iotecdigital.com Mon Apr 24 10:50:48 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 24 Apr 2017 14:50:48 +0000 Subject: How many words from start of text to my selection In-Reply-To: <9d2cbd88-64b4-e6ab-149a-0889b1f6c5ab@economy-x-talk.com> References: <5c5ed953-8668-0e1c-652a-6c93d7370016@economy-x-talk.com> <9d2cbd88-64b4-e6ab-149a-0889b1f6c5ab@economy-x-talk.com> Message-ID: <612DAF47-FD69-47FE-995E-5B3C4189D81B@iotecdigital.com> I've seen a similar thing. I set the focus to a field, then "select after field xxx". Sometimes it does what you expect, sometimes it selects the text of the whole field. Send in time is the only way around these timing issues. Bob S > On Apr 23, 2017, at 01:10 , Mark Schonewille via use-livecode wrote: > > HYi Kaveh, > > LiveCode sets the focus to the clicked object after running the scripts. If I would select text the normal way, the selection would be deselected again, because the focus would go away from the field to the button containing the script. Using the send in time command, I make sure that this command is executed after LiveCode completes its routines, also after LiveCode sets the focus. > > If you use a different way to execute the script rather then from a button or other object that is activated by a click, you won't need this last line. > > Moreover, sometimes I have this problem and sometimes not. I haven't figured out why. At least, when it occurs, there is a way to solve it. > > Kind regards, > > Mark Schonewille From bobsneidar at iotecdigital.com Mon Apr 24 10:53:05 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 24 Apr 2017 14:53:05 +0000 Subject: Cognitive load In-Reply-To: References: <36d5caf3-fc09-fea2-8a78-c243957ee11c@fourthworld.com> Message-ID: very cognitive of you. :-) Bob S > On Apr 22, 2017, at 16:29 , Mike Kerner via use-livecode wrote: > > So I assume that smaller is better From bobsneidar at iotecdigital.com Mon Apr 24 10:55:50 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 24 Apr 2017 14:55:50 +0000 Subject: Cognitive load In-Reply-To: References: <36d5caf3-fc09-fea2-8a78-c243957ee11c@fourthworld.com> Message-ID: <8987D200-657D-4F52-9064-3006354C6DB3@iotecdigital.com> Because the point in question is cognitive load, not what you brought up. What the student gets out of the encounter is a wholly different question, but argueably related, as the idea if I understand it right is that if the cognitive load is too high early on in the learning process, the student will not absorb so readily the basic concepts of writing code that you are trying to convey. Bob S > On Apr 23, 2017, at 24:55 , Richmond Mathewson via use-livecode wrote: > > I'm not sure why smaller should necessarily be better. > > Surely a better equation might be how much one gets out for what one puts in. > > Another consideration is how many transferrable skills one learns during any one cognitive apprenticeship. > > Richmond. From MikeKerner at roadrunner.com Mon Apr 24 10:58:22 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 24 Apr 2017 10:58:22 -0400 Subject: Don't amputate numberFormat (was: affecting array keys???) In-Reply-To: <5145e2cb090715ad437090acac10acd1@livecode.com> References: <11db1e6f8cf692291ab0eee4cf9a876e@livecode.com> <58FAA902.3090402@pair.com> <265283c9704fdd3610882fd3c3fe8b1e@livecode.com> <5145e2cb090715ad437090acac10acd1@livecode.com> Message-ID: To remind the readers, this is a database thing - null column values cause issues with LC when the null value is on the tail. All it would take is removing that one little line in the item code - that line that makes items less computationally efficient than they could be. On Mon, Apr 24, 2017 at 10:32 AM, Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > On 2017-04-24 16:10, Mike Kerner via use-livecode wrote: > >> That's too bad. I was hoping that I could trade deprecating >> numberFormat for giving equal rights to the last item in a list. >> > > If you mean: > > the number of items in "a,b," should be 3 (and not 2) > > and > > the number of items in "a,b,c" should be 3 > > Then, err, no. > > Sorry. > > To paraphrase Scotty from Star Trek - "I can't change the laws of logic", > and nor can you ;) > > If you want to use string lists which may contain an empty element > then just make sure you always have a trailing delimiter. > > Of course, if you don't mean the above, then you might want to > elaborate :) > > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From bobsneidar at iotecdigital.com Mon Apr 24 11:00:06 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 24 Apr 2017 15:00:06 +0000 Subject: Cognitive load In-Reply-To: <1C31F4B6-F8DA-497D-8ADD-A650B25188E0@mac.com> References: <36d5caf3-fc09-fea2-8a78-c243957ee11c@fourthworld.com> <4ee677a83fe9357c2fcd2c331cee722b.squirrel@sage.on-rev.com> <19215cbf-7e1d-d0c4-4fc2-1e6a12928ea9@gmail.com> <1C31F4B6-F8DA-497D-8ADD-A650B25188E0@mac.com> Message-ID: <340763D9-71A2-45BD-9CE9-FD008F05FE41@iotecdigital.com> A very well known historical figure once said that two would be sleeping, one would be taken and the other left. 2 would be grinding grain, one would be taken the other left. Two would be working in the field, one would be taken the other left. People sleep at night, grind grain in the morning, and work in the field the remainder of the day. That one event happens at all these different times shows that the speaker knew the world was round. Bob S > On Apr 23, 2017, at 08:01 , Keith Martin via use-livecode wrote: > >> Until about 1600 is was a "well-known fact" that the world was flat > > Heh. Nice analogy. > Except that even this fact itself isn't true! Most educated people much further back than that believed that the Earth was round. Copernicus (1473-1543) didn't cause consternation through refuting the flatness of the world, he proposed that the world revolved around the sun rather than the other way around. And this wasn't the first time for that concept: Aristarchus of Samos (approx 310-230 BC) originally presented the heliocentric concept, which relies inherently on the Earth being a sphere. In fact (uh-oh! ;) the flat-Earth idea has been only patchily believed for far longer than people generally realise. > Which makes it even more mind-numbingly strange that people think this today. But then, who in their right mind would look to a basketball player for scientific information? > > :D > > k From mark at livecode.com Mon Apr 24 11:06:15 2017 From: mark at livecode.com (Mark Waddingham) Date: Mon, 24 Apr 2017 17:06:15 +0200 Subject: Don't amputate numberFormat (was: affecting array =?UTF-8?Q?keys=3F=3F=3F=29?= In-Reply-To: References: <11db1e6f8cf692291ab0eee4cf9a876e@livecode.com> <58FAA902.3090402@pair.com> <265283c9704fdd3610882fd3c3fe8b1e@livecode.com> <5145e2cb090715ad437090acac10acd1@livecode.com> Message-ID: On 2017-04-24 16:58, Mike Kerner via use-livecode wrote: > To remind the readers, this is a database thing - null column values > cause > issues with LC when the null value is on the tail. > All it would take is removing that one little line in the item code - > that > line that makes items less computationally efficient than they could > be. That's an anomaly in revDB because revDB doesn't follow the 'trailing delimiter is optional unless you want a list containing empty elements': http://quality.livecode.com/show_bug.cgi?id=14874 That one can be fixed either in queries (by making sure the last column you select can't be NULL - or the empty string); or in code calling it by appending a comma if the line ends in comma. The engine also has a couple of anomalies with regard string-list processing: http://quality.livecode.com/show_bug.cgi?id=14875 http://quality.livecode.com/show_bug.cgi?id=14876 Unfortunately, fixing any three of those without some sort of compatibility mechanism would break large amounts of existing code which is written to code with the issue. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From bobsneidar at iotecdigital.com Mon Apr 24 11:06:34 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 24 Apr 2017 15:06:34 +0000 Subject: Don't amputate numberFormat (was: affecting array keys???) In-Reply-To: <33036c5e-1474-7680-2b6f-952920593311@fourthworld.com> References: <58FBB40E.20103@pair.com> <33036c5e-1474-7680-2b6f-952920593311@fourthworld.com> Message-ID: <0CC69899-7659-4EB8-99C5-97A0BEFFDC7E@iotecdigital.com> Well as I said, the workaround is to have a function (say formatNumber) with 2 arguments, value and format string. Because the numberFormat is getting set only for that function, you can call formatNumber() and never have to worry about resetting numberformat again. And it's not more difficult to write the line of code either. In fact less so. Bob S > On Apr 22, 2017, at 15:42 , Richard Gaskin via use-livecode wrote: > > With numberFormat, you first change an abstraction in the engine, then do something to a value elsewhere, and if you remembered to do it in the right order, and within a single handler, you'll get what you were looking for. > > That is, unless you've forgotten that you'd set the numberFormat to some value further up in the handler for some other reason than the place you happen to be typing in now some 50 lines later, where you're seeing values that aren't what you had expected because you'd overlooked that the numberFormat setting you'd done for one thing 50 lines up is still affecting everything afterward until you reset it. (Who among us has never had that happen to them?) :) From bobsneidar at iotecdigital.com Mon Apr 24 11:16:26 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 24 Apr 2017 15:16:26 +0000 Subject: Subject: Re: Don't amputate numberformat In-Reply-To: <44f675b2d26ce119b6cff626ff2b5d06@livecode.com> Message-ID: <7C186922-E35F-4D4B-9B30-486C12136B08@iotecdigital.com> I had a whole system for doing this in another app. I should probably resurrect it. A user could right-click a field in pointer mode and with the normal contextual menu would also get options for setting some standard validations. The user could pick from pre, mid, and post validations. Pre would validate/format when the field was populated. Mid would validate/format when the user closed the field, and post would validate/format when the form was saved. The pre and post allowed values in the database to be different than the ones used by livecode, for instance the sql value of 1 or 0 for a column of type BOOLEAN, and the hilited of a button being true or false. The mid allowed for instance an integer of the proper length to be formatted as a phone number using the formatPhone() function I wrote for it. I have a library of nothing but format and validations like formatIP, isIP etc. Bob S > On Apr 24, 2017, at 07:27 , Mark Waddingham via use-livecode wrote: > > The field is a rather large, difficult and very very picky piece of engine > code so pretty much nothing related to it is far from 'easy' to do. Of course, the > 'how one would implement something' has to be preceded by 'how would such a thing > work' and the latter is not entirely clear in this case... > > Mike's suggestion of a 'field widget', I'd perhaps suggest would be a 'field' > much more inline with a database 'field' - i.e. it would be a single thing > which had a 'format' property (think type of column). The 'field' would hold > a single value, and the 'format' would determine how that (typeless) value would > be interpreted and rendered. From MikeKerner at roadrunner.com Mon Apr 24 11:28:16 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 24 Apr 2017 11:28:16 -0400 Subject: Don't amputate numberFormat (was: affecting array keys???) In-Reply-To: <0CC69899-7659-4EB8-99C5-97A0BEFFDC7E@iotecdigital.com> References: <58FBB40E.20103@pair.com> <33036c5e-1474-7680-2b6f-952920593311@fourthworld.com> <0CC69899-7659-4EB8-99C5-97A0BEFFDC7E@iotecdigital.com> Message-ID: I get that it would break existing code that relies on the behavior. I'm just offering to make that trade as the self-appointed spokesperson for equal rights for all items. On Mon, Apr 24, 2017 at 11:06 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Well as I said, the workaround is to have a function (say formatNumber) > with 2 arguments, value and format string. Because the numberFormat is > getting set only for that function, you can call formatNumber() and never > have to worry about resetting numberformat again. And it's not more > difficult to write the line of code either. In fact less so. > > Bob S > > > > On Apr 22, 2017, at 15:42 , Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > With numberFormat, you first change an abstraction in the engine, then > do something to a value elsewhere, and if you remembered to do it in the > right order, and within a single handler, you'll get what you were looking > for. > > > > That is, unless you've forgotten that you'd set the numberFormat to some > value further up in the handler for some other reason than the place you > happen to be typing in now some 50 lines later, where you're seeing values > that aren't what you had expected because you'd overlooked that the > numberFormat setting you'd done for one thing 50 lines up is still > affecting everything afterward until you reset it. (Who among us has never > had that happen to them?) :) > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From ambassador at fourthworld.com Mon Apr 24 11:30:36 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 24 Apr 2017 08:30:36 -0700 Subject: Subject: Re: Don't amputate numberformat In-Reply-To: References: Message-ID: Mike Kerner wrote: > Well, that would be a nice thing to have in a field widget, but I run > into formatting issues with databases, as well, especially when > sorting. The DB issue may be best handled through an accessor library. Many other error-correction and conveniences could be added to that as well. But with fields, a formatting enhancement need not be a Widget per se. That would require first reproducing the entire field object, and then adding the small bits we're discussing here. Daunting. Simpler would be a behavior script, with a custom properties called something like "rawText" and "displayText", with formatting determined by "displayFormat", e.g.: set the displayFormat of fld 1 to "$0.00" set the rawText of fld 1 to 5 -- shows "$5.00" get the displayText of fld 1 -- returns "$5.00" get the rawText of fld 1 -- return "5" -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From MikeKerner at roadrunner.com Mon Apr 24 11:34:57 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 24 Apr 2017 11:34:57 -0400 Subject: Subject: Re: Don't amputate numberformat In-Reply-To: References: Message-ID: It's only daunting because of the overhead of creating the widget. I think that the overhead of creating LC and maintaining LC is well worth it compared to the cognitive load that I face dealing with other tools. Laptops also rejoice that they do not have to endure having their screens ripped from their bases when I am trying to debug a pointer referencing issue, so DO IT FOR THE LAPTOPS! On Mon, Apr 24, 2017 at 11:30 AM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Mike Kerner wrote: > > > Well, that would be a nice thing to have in a field widget, but I run > > into formatting issues with databases, as well, especially when > > sorting. > > The DB issue may be best handled through an accessor library. Many other > error-correction and conveniences could be added to that as well. > > But with fields, a formatting enhancement need not be a Widget per se. > That would require first reproducing the entire field object, and then > adding the small bits we're discussing here. Daunting. > > Simpler would be a behavior script, with a custom properties called > something like "rawText" and "displayText", with formatting determined by > "displayFormat", e.g.: > > set the displayFormat of fld 1 to "$0.00" > set the rawText of fld 1 to 5 -- shows "$5.00" > get the displayText of fld 1 -- returns "$5.00" > get the rawText of fld 1 -- return "5" > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From curry at pair.com Mon Apr 24 12:22:46 2017 From: curry at pair.com (Curry Kenworthy) Date: Mon, 24 Apr 2017 12:22:46 -0400 Subject: Don't amputate numberFormat (was: affecting array keys???) In-Reply-To: <265283c9704fdd3610882fd3c3fe8b1e@livecode.com> References: <265283c9704fdd3610882fd3c3fe8b1e@livecode.com> Message-ID: <58FE2656.2000808@pair.com> Mark Waddingham: > I can guarantee that nothing is going to happen to numberFormat > (beyond perhaps improving its documentation) any time soon - > if ever. Indeed, it wouldn't ever disappear just evolved (assuming > we can figure out how to make it a) more powerful and (b) play > more nicely with LiveCode's more modern features!). Mark, thanks for the reassurance, that is great to hear! I agree it would be even better if it did more. I would be thrilled if numberFormat can be upgraded in ways that are backward compatible. Best wishes, Curry Kenworthy Custom Software Development http://curryk.com/consulting/ From richmondmathewson at gmail.com Mon Apr 24 13:01:04 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 24 Apr 2017 20:01:04 +0300 Subject: Stupid Q No 999: mergeBLE In-Reply-To: <6f7cfef6-0811-bf07-018e-40996a87e291@cogapp.com> References: <3ce29cdb-f65d-83c0-b210-b83f7a60fd6d@gmail.com> <6ef94a20-9ba2-68ee-e5f2-0e64130d334b@gmail.com> <6f7cfef6-0811-bf07-018e-40996a87e291@cogapp.com> Message-ID: On 4/24/17 3:54 pm, Ben Rubinstein via use-livecode wrote: > You may find this alternative documention of all the functions more > helpful in this context: > http://mergext.com/home/mergble/ > No, I don't. Let us just suppose, for the moment, that I want to use a button to PAIR my robot with my computer (not, perhaps, strikingly original), I would imagine (as per that almost completely unhelpful video) a button script something like this (pseudoCode): on mouseUp scanForPeripheralsWithServices XXX put XXX into fld "gubbins" end mouseUp but that "alternative" thing does NOT give any information as to how one might achieve that. Then I might like to do this: on mouseUp send signal[lots of hex numbers] to robot end mouseUp But its as clear as mud. Richmond. > > On 23/04/2017 21:56, Richmond Mathewson via use-livecode wrote: >> " All of the addons have full documentation making it a joy to use >> them in >> your app." >> >> Well I am unfortunately missing 2 things: "full" documentation >> (extremely >> minimal in the LC Documentation stack), >> and the "joy": te second as a consequence of the first. >> >> Richmond. >> >> On 4/23/17 10:59 pm, Roger Eller via use-livecode wrote: >>> Have you looked at the mergBLE commands in the LC dictionary? >>> >>> mergBLEConnectPeripheral pUUID >>> >>> Monte will likely have the answers you seek. >>> >>> ~Roger >>> >>> >>> On Sun, Apr 23, 2017 at 6:38 AM, Richmond Mathewson via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> So, here I am with Livecode 8.1.3 Indy (owing to the generosity of a >>>> donor) which contains mergeBLE >>>> >>>> I also own a floor-robot (Blue-Bot), know its UUID and have >>>> complete documentation of commands accepted by the robot. >>>> >>>> HOWEVER, I cannot for the life of me work out HOW one would do this >>>> sort >>>> of thing (pseudoCode): >>>> >>>> send "AA 03 81 11 04 67" to Bluebot >>>> >>>> so the robot would move FORWARD 1 unit. >>>> >>>> Richmond. >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription >>> preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Mon Apr 24 14:18:25 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 24 Apr 2017 13:18:25 -0500 Subject: OS X Firewall triggering on launch In-Reply-To: References: <9C111DC5-2240-4D20-BC57-52FB2B9B9E44@appisle.net> <5ada9bb9-ceb9-caba-dd27-022ef6de9f27@hyperactivesw.com> <7afde125-5f7f-5aa7-d7a4-281ff011d974@hyperactivesw.com> <98F55C1A-06EA-4AAA-B22D-133C3F5F2991@appisle.net> <93233e0c-792e-d6e0-f0c4-1fd6fb22b7b2@hyperactivesw.com> <466145e4-3fbf-7007-33e5-7b0d24f4681e@hyperactivesw.com> Message-ID: I did some googling and it turns out this is an OS X glitch that dates back several years. It isn't app-specific. The first thing to try is to remove the app from the firewall list and then put it back again when you next launch. That hasn't worked for me. The nuclear option is to delete the firewall list and let it build a new one, but I haven't tried that yet. On 4/24/17 9:17 AM, Mike Kerner via use-livecode wrote: > I'm also getting this with every launch, even though dp6 is in the firewall > settings. It's much less annoying, now that LC isn't crashing constantly > with the new version of mergDeploy, so I don't quit and relaunch 9 very > often, now. > > On Tue, Apr 11, 2017 at 10:49 PM, J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On 4/11/17 9:17 PM, J. Landman Gay via use-livecode wrote: >> >>> On 4/11/17 5:17 PM, Monte Goulding via use-livecode wrote: >>> >>>> >>>> On 12 Apr 2017, at 4:48 am, J. Landman Gay via use-livecode >>>>> wrote: >>>>> >>>>> And it is still putting up the alert on launch. Seems I'm stuck >>>>> with it. >>>>> >>>> >>>> Hmm? that?s odd. I?ll ask the team if anyone has any ideas why this >>>> is occurring. Just to make sure you aren?t saving anything within the >>>> LC app bundle are you? >>>> >>> >>> Nope. I just checked the dates on most of the files to be sure and they >>> all say March 8, so nothing has changed there. I wonder if it's >>> Mavericks. The firewall doesn't seem to recognize LCdp6. >>> >>> >> I wrote "Mavericks" but that was a think-o. I'm running El Capitan, in >> case it matters. >> >> >> -- >> 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 >> > > > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From MikeKerner at roadrunner.com Mon Apr 24 14:32:03 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 24 Apr 2017 14:32:03 -0400 Subject: OS X Firewall triggering on launch In-Reply-To: References: <9C111DC5-2240-4D20-BC57-52FB2B9B9E44@appisle.net> <5ada9bb9-ceb9-caba-dd27-022ef6de9f27@hyperactivesw.com> <7afde125-5f7f-5aa7-d7a4-281ff011d974@hyperactivesw.com> <98F55C1A-06EA-4AAA-B22D-133C3F5F2991@appisle.net> <93233e0c-792e-d6e0-f0c4-1fd6fb22b7b2@hyperactivesw.com> <466145e4-3fbf-7007-33e5-7b0d24f4681e@hyperactivesw.com> Message-ID: I just removed it, then fired up dp6, and didn't get the dialog. I then went back into the firewall, and dp6 was in there, enabled. On Mon, Apr 24, 2017 at 2:18 PM, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > I did some googling and it turns out this is an OS X glitch that dates > back several years. It isn't app-specific. The first thing to try is to > remove the app from the firewall list and then put it back again when you > next launch. That hasn't worked for me. The nuclear option is to delete the > firewall list and let it build a new one, but I haven't tried that yet. > > > On 4/24/17 9:17 AM, Mike Kerner via use-livecode wrote: > >> I'm also getting this with every launch, even though dp6 is in the >> firewall >> settings. It's much less annoying, now that LC isn't crashing constantly >> with the new version of mergDeploy, so I don't quit and relaunch 9 very >> often, now. >> >> On Tue, Apr 11, 2017 at 10:49 PM, J. Landman Gay via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> On 4/11/17 9:17 PM, J. Landman Gay via use-livecode wrote: >>> >>> On 4/11/17 5:17 PM, Monte Goulding via use-livecode wrote: >>>> >>>> >>>>> On 12 Apr 2017, at 4:48 am, J. Landman Gay via use-livecode >>>>> >>>>>> wrote: >>>>>> >>>>>> And it is still putting up the alert on launch. Seems I'm stuck >>>>>> with it. >>>>>> >>>>>> >>>>> Hmm? that?s odd. I?ll ask the team if anyone has any ideas why this >>>>> is occurring. Just to make sure you aren?t saving anything within the >>>>> LC app bundle are you? >>>>> >>>>> >>>> Nope. I just checked the dates on most of the files to be sure and they >>>> all say March 8, so nothing has changed there. I wonder if it's >>>> Mavericks. The firewall doesn't seem to recognize LCdp6. >>>> >>>> >>>> I wrote "Mavericks" but that was a think-o. I'm running El Capitan, in >>> case it matters. >>> >>> >>> -- >>> 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 >>> >>> >> >> >> > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From ambassador at fourthworld.com Mon Apr 24 14:49:10 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 24 Apr 2017 11:49:10 -0700 Subject: Subject: Re: Don't amputate numberformat In-Reply-To: References: Message-ID: Mike Kerner wrote: > On Mon, Apr 24, 2017 at 11:30 AM, Richard Gaskin wrote: >> But with fields, a formatting enhancement need not be a Widget per >> se. That would require first reproducing the entire field object, >> and then adding the small bits we're discussing here. Daunting. >> > It's only daunting because of the overhead of creating the widget. Well, that and several thousand lines of very tricky code. If you're up for translating all that from C++ to LC Builder that would be cool. But if it may take longer than an idle afternoon, perhaps a backscript might do. :) -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From roger.e.eller at sealedair.com Mon Apr 24 14:49:58 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Mon, 24 Apr 2017 14:49:58 -0400 Subject: Stupid Q No 999: mergeBLE In-Reply-To: References: <3ce29cdb-f65d-83c0-b210-b83f7a60fd6d@gmail.com> <6ef94a20-9ba2-68ee-e5f2-0e64130d334b@gmail.com> <6f7cfef6-0811-bf07-018e-40996a87e291@cogapp.com> Message-ID: Have you simply opened the sample mergBLE.livecode stack (buried in the LiveCode bundle) on a Mac, making sure that you have bluetooth enabled first? If your robot is broadcasting its information, the mergBLE stack should at least show you something like a name, among the names of other nearby bluetooth devices. ~Roger On Mon, Apr 24, 2017 at 1:01 PM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > > > On 4/24/17 3:54 pm, Ben Rubinstein via use-livecode wrote: > >> You may find this alternative documention of all the functions more >> helpful in this context: >> http://mergext.com/home/mergble/ >> >> No, I don't. > > Let us just suppose, for the moment, that I want to use a button to PAIR > my robot with my computer (not, perhaps, > strikingly original), I would imagine (as per that almost completely > unhelpful video) a button script something like this (pseudoCode): > > on mouseUp > scanForPeripheralsWithServices XXX > put XXX into fld "gubbins" > end mouseUp > > but that "alternative" thing does NOT give any information as to how one > might achieve that. > > Then I might like to do this: > > on mouseUp > send signal[lots of hex numbers] to robot > end mouseUp > > But its as clear as mud. > > Richmond. > >> >> On 23/04/2017 21:56, Richmond Mathewson via use-livecode wrote: >> >>> " All of the addons have full documentation making it a joy to use them >>> in >>> your app." >>> >>> Well I am unfortunately missing 2 things: "full" documentation (extremely >>> minimal in the LC Documentation stack), >>> and the "joy": te second as a consequence of the first. >>> >>> Richmond. >>> >>> On 4/23/17 10:59 pm, Roger Eller via use-livecode wrote: >>> >>>> Have you looked at the mergBLE commands in the LC dictionary? >>>> >>>> mergBLEConnectPeripheral pUUID >>>> >>>> Monte will likely have the answers you seek. >>>> >>>> ~Roger >>>> >>>> >>>> On Sun, Apr 23, 2017 at 6:38 AM, Richmond Mathewson via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> So, here I am with Livecode 8.1.3 Indy (owing to the generosity of a >>>>> donor) which contains mergeBLE >>>>> >>>>> I also own a floor-robot (Blue-Bot), know its UUID and have >>>>> complete documentation of commands accepted by the robot. >>>>> >>>>> HOWEVER, I cannot for the life of me work out HOW one would do this >>>>> sort >>>>> of thing (pseudoCode): >>>>> >>>>> send "AA 03 81 11 04 67" to Bluebot >>>>> >>>>> so the robot would move FORWARD 1 unit. >>>>> >>>>> Richmond. >>>>> >>>>> From paul at researchware.com Mon Apr 24 14:57:32 2017 From: paul at researchware.com (Paul Dupuis) Date: Mon, 24 Apr 2017 14:57:32 -0400 Subject: answer file under OSX El Capitan no longer has titlebar Message-ID: <14c0df86-94bd-cfec-0573-e54ca14ef950@researchware.com> First, I realize I am on old versions of things. I am using LC 6.7.11 and running mostly under OSX Mavericks (10.9.5) I just discovered that - under El Capitan (10.11.x) and presumably 10.12 - the LiveCode 'ask file ' statement no longer display the text because the open file dialog under El Capitan no longer displays a titlebar! This may have been covered in some past discussion on this email list. If so can someone tell me if there is some work-around for this. OR if this is the first people have heard of this, can someone verify this issue? From MikeKerner at roadrunner.com Mon Apr 24 14:59:46 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 24 Apr 2017 14:59:46 -0400 Subject: Stupid Q No 999: mergeBLE In-Reply-To: References: <3ce29cdb-f65d-83c0-b210-b83f7a60fd6d@gmail.com> <6ef94a20-9ba2-68ee-e5f2-0e64130d334b@gmail.com> <6f7cfef6-0811-bf07-018e-40996a87e291@cogapp.com> Message-ID: Does anybody do pairing in software? I have only ever had pairing happen at the hardware level - in the settings or control panels On Mon, Apr 24, 2017 at 2:49 PM, Roger Eller via use-livecode < use-livecode at lists.runrev.com> wrote: > Have you simply opened the sample mergBLE.livecode stack (buried in the > LiveCode bundle) on a Mac, making sure that you have bluetooth enabled > first? > > If your robot is broadcasting its information, the mergBLE stack should at > least show you something like a name, among the names of other nearby > bluetooth devices. > > ~Roger > > > On Mon, Apr 24, 2017 at 1:01 PM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > > > > On 4/24/17 3:54 pm, Ben Rubinstein via use-livecode wrote: > > > >> You may find this alternative documention of all the functions more > >> helpful in this context: > >> http://mergext.com/home/mergble/ > >> > >> No, I don't. > > > > Let us just suppose, for the moment, that I want to use a button to PAIR > > my robot with my computer (not, perhaps, > > strikingly original), I would imagine (as per that almost completely > > unhelpful video) a button script something like this (pseudoCode): > > > > on mouseUp > > scanForPeripheralsWithServices XXX > > put XXX into fld "gubbins" > > end mouseUp > > > > but that "alternative" thing does NOT give any information as to how one > > might achieve that. > > > > Then I might like to do this: > > > > on mouseUp > > send signal[lots of hex numbers] to robot > > end mouseUp > > > > But its as clear as mud. > > > > Richmond. > > > >> > >> On 23/04/2017 21:56, Richmond Mathewson via use-livecode wrote: > >> > >>> " All of the addons have full documentation making it a joy to use them > >>> in > >>> your app." > >>> > >>> Well I am unfortunately missing 2 things: "full" documentation > (extremely > >>> minimal in the LC Documentation stack), > >>> and the "joy": te second as a consequence of the first. > >>> > >>> Richmond. > >>> > >>> On 4/23/17 10:59 pm, Roger Eller via use-livecode wrote: > >>> > >>>> Have you looked at the mergBLE commands in the LC dictionary? > >>>> > >>>> mergBLEConnectPeripheral pUUID > >>>> > >>>> Monte will likely have the answers you seek. > >>>> > >>>> ~Roger > >>>> > >>>> > >>>> On Sun, Apr 23, 2017 at 6:38 AM, Richmond Mathewson via use-livecode < > >>>> use-livecode at lists.runrev.com> wrote: > >>>> > >>>> So, here I am with Livecode 8.1.3 Indy (owing to the generosity of a > >>>>> donor) which contains mergeBLE > >>>>> > >>>>> I also own a floor-robot (Blue-Bot), know its UUID and have > >>>>> complete documentation of commands accepted by the robot. > >>>>> > >>>>> HOWEVER, I cannot for the life of me work out HOW one would do this > >>>>> sort > >>>>> of thing (pseudoCode): > >>>>> > >>>>> send "AA 03 81 11 04 67" to Bluebot > >>>>> > >>>>> so the robot would move FORWARD 1 unit. > >>>>> > >>>>> 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 > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From colinholgate at gmail.com Mon Apr 24 15:09:48 2017 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 24 Apr 2017 12:09:48 -0700 Subject: answer file under OSX El Capitan no longer has titlebar In-Reply-To: <14c0df86-94bd-cfec-0573-e54ca14ef950@researchware.com> References: <14c0df86-94bd-cfec-0573-e54ca14ef950@researchware.com> Message-ID: I seem to have prompt text in the title bar of the file dialog. But that?s with Sierra not El Capitan. > On Apr 24, 2017, at 11:57 AM, Paul Dupuis via use-livecode wrote: > > First, I realize I am on old versions of things. I am using LC 6.7.11 > and running mostly under OSX Mavericks (10.9.5) > > I just discovered that - under El Capitan (10.11.x) and presumably 10.12 > - the LiveCode 'ask file ' statement no longer display the > text because the open file dialog under El Capitan no longer > displays a titlebar! > > This may have been covered in some past discussion on this email list. > If so can someone tell me if there is some work-around for this. > > OR if this is the first people have heard of this, can someone verify > this issue? > From MikeKerner at roadrunner.com Mon Apr 24 15:22:39 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 24 Apr 2017 15:22:39 -0400 Subject: Subject: Re: Don't amputate numberformat In-Reply-To: References: Message-ID: Think of the laptops. Do it for them. On Mon, Apr 24, 2017 at 2:49 PM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Mike Kerner wrote: > > > On Mon, Apr 24, 2017 at 11:30 AM, Richard Gaskin wrote: > > >> But with fields, a formatting enhancement need not be a Widget per > >> se. That would require first reproducing the entire field object, > >> and then adding the small bits we're discussing here. Daunting. > >> > > It's only daunting because of the overhead of creating the widget. > > Well, that and several thousand lines of very tricky code. > > If you're up for translating all that from C++ to LC Builder that would be > cool. > > But if it may take longer than an idle afternoon, perhaps a backscript > might do. :) > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From richmondmathewson at gmail.com Mon Apr 24 15:25:07 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 24 Apr 2017 22:25:07 +0300 Subject: Stupid Q No 999: mergeBLE In-Reply-To: References: <3ce29cdb-f65d-83c0-b210-b83f7a60fd6d@gmail.com> <6ef94a20-9ba2-68ee-e5f2-0e64130d334b@gmail.com> <6f7cfef6-0811-bf07-018e-40996a87e291@cogapp.com> Message-ID: <465ca83b-3373-1ffd-af2b-005066fd2a0d@gmail.com> On my Macintosh, when I have my mBot robot recognised by Bluetooth lets me see the following in mergBLE 1.1.15: This demo both scans for and advertises the service and characteristics below along with a random read only characteristic. Run it on two devices and you should be able to move the slider on each device and see the changes on the other device. Each device will act as both peripheral and central. Central : unsupported Peripheral : powered on Service 47EC425E-633F-4F04-9A65-DEDEB (rest unreadable because field is too short) Connections Central 0372A886-E203-415E-A94A-40-C9D11606 Peripheral Monte's iPhone which has Nix to do with this: An Android tablet I have tells me the UUID numbers for the mBot are: Custom service: 0000FFE1-0000-1000-8000-00805F9B34FB and Custom service: 0000FFE4-0000-1000-8000-00805F9B34FB So, no "joy" at all. Richmond. On 4/24/17 9:49 pm, Roger Eller via use-livecode wrote: > Have you simply opened the sample mergBLE.livecode stack (buried in the > LiveCode bundle) on a Mac, making sure that you have bluetooth enabled > first? > > If your robot is broadcasting its information, the mergBLE stack should at > least show you something like a name, among the names of other nearby > bluetooth devices. > > ~Roger > > > On Mon, Apr 24, 2017 at 1:01 PM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> >> On 4/24/17 3:54 pm, Ben Rubinstein via use-livecode wrote: >> >>> You may find this alternative documention of all the functions more >>> helpful in this context: >>> http://mergext.com/home/mergble/ >>> >>> No, I don't. >> Let us just suppose, for the moment, that I want to use a button to PAIR >> my robot with my computer (not, perhaps, >> strikingly original), I would imagine (as per that almost completely >> unhelpful video) a button script something like this (pseudoCode): >> >> on mouseUp >> scanForPeripheralsWithServices XXX >> put XXX into fld "gubbins" >> end mouseUp >> >> but that "alternative" thing does NOT give any information as to how one >> might achieve that. >> >> Then I might like to do this: >> >> on mouseUp >> send signal[lots of hex numbers] to robot >> end mouseUp >> >> But its as clear as mud. >> >> Richmond. >> >>> On 23/04/2017 21:56, Richmond Mathewson via use-livecode wrote: >>> >>>> " All of the addons have full documentation making it a joy to use them >>>> in >>>> your app." >>>> >>>> Well I am unfortunately missing 2 things: "full" documentation (extremely >>>> minimal in the LC Documentation stack), >>>> and the "joy": te second as a consequence of the first. >>>> >>>> Richmond. >>>> >>>> On 4/23/17 10:59 pm, Roger Eller via use-livecode wrote: >>>> >>>>> Have you looked at the mergBLE commands in the LC dictionary? >>>>> >>>>> mergBLEConnectPeripheral pUUID >>>>> >>>>> Monte will likely have the answers you seek. >>>>> >>>>> ~Roger >>>>> >>>>> >>>>> On Sun, Apr 23, 2017 at 6:38 AM, Richmond Mathewson via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> So, here I am with Livecode 8.1.3 Indy (owing to the generosity of a >>>>>> donor) which contains mergeBLE >>>>>> >>>>>> I also own a floor-robot (Blue-Bot), know its UUID and have >>>>>> complete documentation of commands accepted by the robot. >>>>>> >>>>>> HOWEVER, I cannot for the life of me work out HOW one would do this >>>>>> sort >>>>>> of thing (pseudoCode): >>>>>> >>>>>> send "AA 03 81 11 04 67" to Bluebot >>>>>> >>>>>> so the robot would move FORWARD 1 unit. >>>>>> >>>>>> Richmond. >>>>>> >>>>>> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Mon Apr 24 16:12:36 2017 From: hh at hyperhh.de (hh) Date: Mon, 24 Apr 2017 22:12:36 +0200 Subject: answer file under OSX El Capitan no longer has titlebar Message-ID: <8AAC4FC7-1475-4286-8B9C-709EDB1C93E6@hyperhh.de> It's the answer file only, not the ask file: The following workaround is from a bug report, I can't remember the number and who found it (not me, at any rate). put "I m the missing prompt" into pp answer file pp with myPath titled pp From merakosp at gmail.com Mon Apr 24 16:20:33 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Mon, 24 Apr 2017 21:20:33 +0100 Subject: answer file under OSX El Capitan no longer has titlebar In-Reply-To: <8AAC4FC7-1475-4286-8B9C-709EDB1C93E6@hyperhh.de> References: <8AAC4FC7-1475-4286-8B9C-709EDB1C93E6@hyperhh.de> Message-ID: Hi all, I guess Hermann is referring to this bug report http://quality.livecode.com/show_bug.cgi?id=16264. This bug was fixed in LC 8.0.0. Best, Panos -- On Mon, Apr 24, 2017 at 9:12 PM, hh via use-livecode < use-livecode at lists.runrev.com> wrote: > It's the answer file only, not the ask file: > > The following workaround is from a bug report, I can't > remember the number and who found it (not me, at any rate). > > put "I m the missing prompt" into pp > answer file pp with myPath titled pp > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From colinholgate at gmail.com Mon Apr 24 16:21:44 2017 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 24 Apr 2017 13:21:44 -0700 Subject: answer file under OSX El Capitan no longer has titlebar In-Reply-To: <8AAC4FC7-1475-4286-8B9C-709EDB1C93E6@hyperhh.de> References: <8AAC4FC7-1475-4286-8B9C-709EDB1C93E6@hyperhh.de> Message-ID: <10F7ABD4-6596-416B-869B-5C68D3DAD4C7@gmail.com> I get the title prompt with answer too, without any workaround. But talking about that for a moment, it would need to be this: on mouseUp local pp,myPath put "I m the missing prompt" into pp answer file pp with myPath titled pp end mouseUp In LiveCode 8 you can?t get away with: put "I m the missing prompt" into pp > On Apr 24, 2017, at 1:12 PM, hh via use-livecode wrote: > > It's the answer file only, not the ask file: > > The following workaround is from a bug report, I can't > remember the number and who found it (not me, at any rate). > > put "I m the missing prompt" into pp > answer file pp with myPath titled pp > > From jacque at hyperactivesw.com Mon Apr 24 16:27:21 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 24 Apr 2017 15:27:21 -0500 Subject: answer file under OSX El Capitan no longer has titlebar In-Reply-To: References: <14c0df86-94bd-cfec-0573-e54ca14ef950@researchware.com> Message-ID: It was fixed in a later LC version. I get a title even without the "titled" parameter, and I'm still on El Capitan. I remember when it broke but it was fixed pretty soon after, I just can't recall which version that was. On 4/24/17 2:09 PM, Colin Holgate via use-livecode wrote: > I seem to have prompt text in the title bar of the file dialog. But that?s with Sierra not El Capitan. > > >> On Apr 24, 2017, at 11:57 AM, Paul Dupuis via use-livecode wrote: >> >> First, I realize I am on old versions of things. I am using LC 6.7.11 >> and running mostly under OSX Mavericks (10.9.5) >> >> I just discovered that - under El Capitan (10.11.x) and presumably 10.12 >> - the LiveCode 'ask file ' statement no longer display the >> text because the open file dialog under El Capitan no longer >> displays a titlebar! >> >> This may have been covered in some past discussion on this email list. >> If so can someone tell me if there is some work-around for this. >> >> OR if this is the first people have heard of this, can someone verify >> this issue? >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From brahma at hindu.org Mon Apr 24 17:19:07 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 24 Apr 2017 21:19:07 +0000 Subject: iOS 10.3.1 on iPhone 7 Plus Message-ID: I have a new iphone 7Plus with iOS 10.3.1 (no choice? we are on an enterprise hardware refresh cycle here and move up when the last model still has resale value? works very well, $ wise, but keep us on the bleeding edge) any hope for installing standalone? I spent some hours with builds, kept getting entitlements issue, solved that. But now xCode 8.2.1 says it may not support this phone + "Could not inspect this app." Any path to move forward? BR From rdimola at evergreeninfo.net Mon Apr 24 17:45:57 2017 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 24 Apr 2017 17:45:57 -0400 Subject: iOS 10.3.1 on iPhone 7 Plus In-Reply-To: References: Message-ID: <00cc01d2bd44$28521720$78f64560$@net> You need to upgrade to OSX 10.12 and Xcode 8.3.1. I am using 10.11 and 8.2.1 and can install apps with no problems. I'm wondering where do you get "Could not inspect this app."? I get the triangle warning in Xcode when selecting a 10.3.1 device but it does not cause me any problems. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Sannyasin Brahmanathaswami via use-livecode Sent: Monday, April 24, 2017 5:19 PM To: How LiveCode Cc: Sannyasin Brahmanathaswami Subject: iOS 10.3.1 on iPhone 7 Plus I have a new iphone 7Plus with iOS 10.3.1 (no choice? we are on an enterprise hardware refresh cycle here and move up when the last model still has resale value? works very well, $ wise, but keep us on the bleeding edge) any hope for installing standalone? I spent some hours with builds, kept getting entitlements issue, solved that. But now xCode 8.2.1 says it may not support this phone + "Could not inspect this app." Any path to move forward? BR _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Apr 24 17:56:08 2017 From: paul at researchware.com (Paul Dupuis) Date: Mon, 24 Apr 2017 17:56:08 -0400 Subject: AW: answer file under OSX El Capitan no longer has titlebar In-Reply-To: <14c0df86-94bd-cfec-0573-e54ca14ef950@researchware.com> References: <14c0df86-94bd-cfec-0573-e54ca14ef950@researchware.com> Message-ID: Thank you to everyone, especially hh and colin. I was using "answer file with no "titled" clause. I need to remain on 6.7.11 for this immediate work, so updating to LC 8.x is not an option at this time (that's next on the list). Adding the titled clause makes it work just fine. Thank you all! From brahma at hindu.org Mon Apr 24 23:57:31 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 25 Apr 2017 03:57:31 +0000 Subject: iOS 10.3.1 on iPhone 7 Plus In-Reply-To: <00cc01d2bd44$28521720$78f64560$@net> References: <00cc01d2bd44$28521720$78f64560$@net> Message-ID: <30800CD4-DC4F-4AE4-97F5-05147764CEFC@hindu.org> still no joy. Upgraded xCode? it defaults to 8.3.2 My mac is Sierra 10.12.4 LC 9dp5 ?prefs ? mobile -> select xCode fails: ------------- ! The chosen folder is not a valid iOS SDK. Selected Xcode must have an iOS SDK among: 6.1 7.1 8.2 9.2 10.2 OK -------- any solutions? can a lower SDK be installed on top of a newer Xcode? (I don't even know what I'm talking about, but seems like a possibility) BTR On 4/24/17, 11:45 AM, "Ralph DiMola" wrote: You need to upgrade to OSX 10.12 and Xcode 8.3.1. I am using 10.11 and 8.2.1 and can install apps with no problems. I'm wondering where do you get "Could not inspect this app."? I get the triangle warning in Xcode when selecting a 10.3.1 device but it does not cause me any problems. From curry at pair.com Tue Apr 25 03:01:38 2017 From: curry at pair.com (Curry Kenworthy) Date: Tue, 25 Apr 2017 03:01:38 -0400 Subject: Make numberFormat even better In-Reply-To: <265283c9704fdd3610882fd3c3fe8b1e@livecode.com> References: <265283c9704fdd3610882fd3c3fe8b1e@livecode.com> Message-ID: <58FEF452.3020901@pair.com> We've talked about this topic so much that now it almost seems a waste to let it go without trying to make some progress. :) Mark: > I'd disagree that anything involving the use of arrays could > be considered a 'rare case' or an 'outlier case' To handle arrays better without requiring more lines of code, how about making numberFormat itself an array with at least two parts? Similar to the way the clipboardData has parts. Using it without a key works exactly like before, by setting both parts, ie: -- (assume i=binary 5 and starting format=default) set numberformat to "0.0" put "#" & i into a[i] --> a["5.0"] = "#5.0" If you want just the regular strings formatted and not any array keys, or vice versa, use the appropriate part: set numberformat["text"] to "0.0" put "#" & i into a[i] --> a["5"] = "#5.0" (or) set numberformat["keys"] to "0.0" put "#" & i into a[i] --> a["5.0"] = "#5" Pros: Array keys can be set independently of their contents or any other text, but only one "set" statement required for most situations. Fully backward compatible. Basic syntax is just as before, easy to learn and sufficing for many (most?) tasks. Cons: A bit more complex and less English-like when using the special parts. It's a bit unusual to need to differentiate array keys from all other text. Also: You'll notice it can be confusing if you think i=5 binary and expect a change, but it was actually already text. If we have to add +0 &"" stuff it's less intuitive. But that's a separate issue to consider, outside this particular point. Mark: > I'd mind less if numberFormat was actually had wide utility - > but, in reality, for all but the simplest of cases (wanting > US/UK style numbers, with preceding or following '0's) it isn't > very useful. Doing a simple job keeps it simple, and it does that job well. However, it would be possible to have both the classic simplicity and more power, by adding more optional symbols and rules. -- (assume i=binary 5555) set numberformat to "$#,##0.00" put "Cost:" && i into x --> x = "Cost: $5,555.00" BTW, I've worked with Excel number format a bit. Supporting it would be an impressive product compatibility and even benefit some of my own projects. However, that might be overkill for LC team and the user. (It has 4 parts, to start with, and a learning curve of its own for advanced features.) A simpler route (based on ideas and techniques while doing SpreadLib and other projects) would be to retain any text prefix and suffix outside the # and 0 number portion of the representation, and also look for commas and periods within the number. Bonus: allow smart period/comma positions and a few other tricks. Maybe including a parenthesis anywhere before the number portion = negatives in parentheses. -- (assume i=binary 5555) set numberformat to "#.##0,00 EUR" put "Cost:" && i into x --> x = "Cost: 5.555,00 EUR" -- (assume i=binary 5) set numberformat to "$ (0.##)" put "Cost:" && i into x --> x = "Cost: $ 5" put "Cost:" && -i into x --> x = "Cost: $ (5)" That should be backward compatible, except if existing code was reading the numberformat to analyze it for decisions or settings. Should be able to figure out a way around that. (If I've proposed something that has been proposed before, sorry!) Richard: > there are so many precedents in other tools for defining > display format in the object used for display that I think > when that's what's needed it would be the simplest to learn. That's true, very nice to have that option too! Best wishes, Curry Kenworthy Custom Software Development LiveCode Training and Consulting http://curryk.com/consulting/ From mark at livecode.com Tue Apr 25 04:38:47 2017 From: mark at livecode.com (Mark Waddingham) Date: Tue, 25 Apr 2017 10:38:47 +0200 Subject: Make numberFormat even better In-Reply-To: <58FEF452.3020901@pair.com> References: <265283c9704fdd3610882fd3c3fe8b1e@livecode.com> <58FEF452.3020901@pair.com> Message-ID: On 2017-04-25 09:01, Curry Kenworthy via use-livecode wrote: > To handle arrays better without requiring more lines of code, how > about making numberFormat itself an array with at least two parts? > Similar to the way the clipboardData has parts. > > Using it without a key works exactly like before, by setting both > parts, ie: > > -- (assume i=binary 5 and starting format=default) > > set numberformat to "0.0" > put "#" & i into a[i] --> a["5.0"] = "#5.0" > > If you want just the regular strings formatted and not any array keys, > or vice versa, use the appropriate part: > > set numberformat["text"] to "0.0" > put "#" & i into a[i] --> a["5"] = "#5.0" > > (or) > > set numberformat["keys"] to "0.0" > put "#" & i into a[i] --> a["5.0"] = "#5" This is certainly an idea - however, I wonder if it isn't quite addressing the crux of the issue. Arrays in LiveCode serve two purposes - both lists (if integer keyed, dense, starting from 1) and dictionaries (all other types). The distinction is made purely on the string structure of the keys (for all intents and purposes) and what keys are present. Indeed for a LiveCode array to be treated as a list the keys *must* be very strictly formatted as integers - there must be no fractional part (i.e. "1.0" is *not* considered the same key as "1"). For dictionaries, then having the numberFormat affect your numbers isn't really an issue - as the keys are strings, they have to be strings, there is no option. For lists, however, what is really happening is that they are being indexed by integers. So, could it be that the problem in LiveCode is that it doesn't distinguish between integers and non-integers? This actually alludes to another problem I've been struggling with recently (and, indeed, partly why this numberFormat problem is so interesting). At the moment LiveCode's arithmetic uses 64-bit doubles universally. This gives a relatively consistent arithmetic, but it has a significant limit: you cannot represent 64-bit integers accurately - only up to 53-bit. Indeed, the current semantics basically mean that you can do integer computations up to 53-bits and then things 'gracefully' degrade in precision. The problem is that I'm not sure it is feasible to extend the allowed size of integers (having them arbitrary precision would be really neat!) whilst preserving this graceful degradation to double (at least not in a performant way). One solution here is to have (internally at least) two distinct numeric types - integers and (inexact) reals - with the common-sense rules: integer int_op integer -> integer (+, -, *, div, mod are int_ops) integer op real -> real (+, -, *, /, div, mod are ops) real op integer -> real real op real -> real The question, now, is that how would we distinguish between a string we want to auto-convert to an integer, and a string we want to auto-convert to a real? One option here is to make it so that integers are always of the form [1-9][0-9]+ With a string being considered a real if it is any other valid numeric string: "1" is an integer "1.", "1e10", "1.03", "1.0" are all reals. If we made this distinction, then it would be viable to make it so that numberFormat *only* affects reals: put 1 + 0 into tInteger put 1. + 0 into tReal set the numberFormat to "0.00" put tInteger , tReal => "1,1.00" This would certainly solve the sequence-style-array 'ambiguity' and would perhaps make sorting out numeric literals not being touched by numberFormat a little more sane: set the numberFormat to "0.00" put "This is an integer: " & 1 => This is an integer: 1 put "This is a real: " & 1. => This is a real: 1.0 The problem here is that I have no idea if that distinction is too subtle (for LiveCode, at least). It is certainly something you get used to pretty quickly in pretty much any other language - most (if not all!) have a strict distinction between integer and real. To put the potentially subtlety in context; it only arise in: - numeric literals - strings/text/files taken as inputs In the former case, if you actually wanted a real, then you'd just have to add a '.' to the literal (there's an advantage here is that it completely expresses your intent as to the type of number). In the latter case, then if you are processing string inputs: - For integer do: put tStringFromOutside + 0 -> integer if tStringFromOutside is integer - For real do: put tStringFromOutside + 0.0 -> real The advantages of this approach are: 1) The implementation of integers is free to be whatever it needs to be. 2) It explicitly means you can indicate your numeric intent (integer operations and real operations have very different semantics) in your scripts. 3) It potentially opens the door to a much less 'surprising' numberFormat with regards indexing arrays. 4) It potentially opens the door to a much less 'surprising' numberFormat with regards numeric literals in scripts The disadvantages of this approach are: 1) The distinction between integer and real could be considered quite subtle: "1" vs "1.". 2) It is not backwards-compatible. 3) You have to think a little more about transforming your input strings (although, only insofar as using + 0.0 rather than + 0 to force a toNumber conversion). In regards to (1), then in reality there is a *huge* distinction between these two things due to the semantics of the arithmetic operations on integers vs doubles, so perhaps LiveCode should make you choose *explicitly*. In regards to (2), then it is not backwards compatible but the current semantics would be subsumed by the new ones since all we are doing (in effect) is saying that 'don't represent a subset of numbers (the integers) we currently represent as doubles, but use actual integers instead'. i.e. The new semantics can get back the old behavior by simply converting integer-like strings to doubles as they do now. i.e. This new behavior is a binary flag which affects *only* num->string and string->num. In regards to (3), this happens now - quite frequently people ask 'why is this code dealing with numbers and strings not working quite right' and the answer is generally - 'oh you need to put a + 0 in there somewhere to force a numeric conversion'. > Doing a simple job keeps it simple, and it does that job well. > However, it would be possible to have both the classic simplicity and > more power, by adding more optional symbols and rules. That is very true - however, this thread has made me question what job does numberFormat *actually* do and in LiveCode it is just a formatting property - in comparison to HyperCard it has 0 effect on arithmetic. > -- (assume i=binary 5555) > > set numberformat to "$#,##0.00" > put "Cost:" && i into x --> x = "Cost: $5,555.00" Therefore, why not (as you suggest) make it a much better formatter? There are so many precedents for number formatting out there (as Richard points out) there is plenty to choose from. Ideally, we'd allow both explicit formatting *and* formatting based on locale. Certainly something to think about :) Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From iphonelagi at gmail.com Tue Apr 25 06:48:19 2017 From: iphonelagi at gmail.com (Lagi Pittas) Date: Tue, 25 Apr 2017 11:48:19 +0100 Subject: Make numberFormat even better In-Reply-To: References: <265283c9704fdd3610882fd3c3fe8b1e@livecode.com> <58FEF452.3020901@pair.com> Message-ID: Hi I don't know why you want to adapt/enhance the number format as that could break already working code that uses the nuances of numberformat already. Why not add an instruction NumberFormatXL and create the an Excel version like Curry says. You won't have to jump through hoops to make sure it doesn't break anything, you can fix what's wrong(?) and you can add stuff in there without affecting old code, plus and with Curry's experience with spreadlib you probably have a lot of the problems to solve sorted. Now my usual caveat "Everything is easy for the man who doesn't have to do it himself" - but I haven't seen anything that Mark and his team can't do - usually the problems stem from trying no to break older stuff. I think in this case adding a new command would make it easier all round. While you're at it why not put a callback/ or in wordpress parlance an "AddAction" option so you can add to the formatting on the fly? Regards Lagi On 25 April 2017 at 09:38, Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > On 2017-04-25 09:01, Curry Kenworthy via use-livecode wrote: > >> To handle arrays better without requiring more lines of code, how >> about making numberFormat itself an array with at least two parts? >> Similar to the way the clipboardData has parts. >> >> Using it without a key works exactly like before, by setting both parts, >> ie: >> >> -- (assume i=binary 5 and starting format=default) >> >> set numberformat to "0.0" >> put "#" & i into a[i] --> a["5.0"] = "#5.0" >> >> If you want just the regular strings formatted and not any array keys, >> or vice versa, use the appropriate part: >> >> set numberformat["text"] to "0.0" >> put "#" & i into a[i] --> a["5"] = "#5.0" >> >> (or) >> >> set numberformat["keys"] to "0.0" >> put "#" & i into a[i] --> a["5.0"] = "#5" >> > > This is certainly an idea - however, I wonder if it isn't quite addressing > the crux of the issue. > > Arrays in LiveCode serve two purposes - both lists (if integer keyed, > dense, starting from 1) and dictionaries (all other types). The distinction > is made purely on the string structure of the keys (for all intents and > purposes) and what keys are present. Indeed for a LiveCode array to be > treated as a list the keys *must* be very strictly formatted as integers - > there must be no fractional part (i.e. "1.0" is *not* considered the same > key as "1"). > > For dictionaries, then having the numberFormat affect your numbers isn't > really an issue - as the keys are strings, they have to be strings, there > is no option. > > For lists, however, what is really happening is that they are being > indexed by integers. So, could it be that the problem in LiveCode > is that it doesn't distinguish between integers and non-integers? > > This actually alludes to another problem I've been struggling with > recently (and, indeed, partly why this numberFormat problem is so > interesting). > > At the moment LiveCode's arithmetic uses 64-bit doubles universally. This > gives a relatively consistent arithmetic, but it has a significant limit: > you cannot represent 64-bit integers accurately - only up to 53-bit. > Indeed, > the current semantics basically mean that you can do integer computations > up > to 53-bits and then things 'gracefully' degrade in precision. The problem > is that I'm not sure it is feasible to extend the allowed size of integers > (having them arbitrary precision would be really neat!) whilst preserving > this graceful degradation to double (at least not in a performant way). > > One solution here is to have (internally at least) two distinct numeric > types - integers and (inexact) reals - with the common-sense rules: > > integer int_op integer -> integer (+, -, *, div, mod are int_ops) > integer op real -> real (+, -, *, /, div, mod are ops) > real op integer -> real > real op real -> real > > The question, now, is that how would we distinguish between a string > we want to auto-convert to an integer, and a string we want to > auto-convert to a real? > > One option here is to make it so that integers are always of the form > > [1-9][0-9]+ > > With a string being considered a real if it is any other valid numeric > string: > > "1" is an integer > "1.", "1e10", "1.03", "1.0" are all reals. > > If we made this distinction, then it would be viable to make it so that > numberFormat *only* affects reals: > > put 1 + 0 into tInteger > put 1. + 0 into tReal > set the numberFormat to "0.00" > put tInteger , tReal > => "1,1.00" > > This would certainly solve the sequence-style-array 'ambiguity' and would > perhaps make sorting out numeric literals not being touched by numberFormat > a little more sane: > > set the numberFormat to "0.00" > put "This is an integer: " & 1 > => This is an integer: 1 > put "This is a real: " & 1. > => This is a real: 1.0 > > The problem here is that I have no idea if that distinction is too subtle > (for LiveCode, at least). It is certainly something you get used to pretty > quickly in pretty much any other language - most (if not all!) have a > strict distinction between integer and real. > > To put the potentially subtlety in context; it only arise in: > > - numeric literals > > - strings/text/files taken as inputs > > In the former case, if you actually wanted a real, then you'd > just have to add a '.' to the literal (there's an advantage here is that > it completely expresses your intent as to the type of number). In the > latter case, then if you are processing string inputs: > > - For integer do: > put tStringFromOutside + 0 -> integer if tStringFromOutside is integer > - For real do: > put tStringFromOutside + 0.0 -> real > > The advantages of this approach are: > > 1) The implementation of integers is free to be whatever it needs to > be. > > 2) It explicitly means you can indicate your numeric intent (integer > operations and real operations have very different semantics) > in your scripts. > > 3) It potentially opens the door to a much less 'surprising' numberFormat > with regards indexing arrays. > > 4) It potentially opens the door to a much less 'surprising' numberFormat > with regards numeric literals in scripts > > The disadvantages of this approach are: > > 1) The distinction between integer and real could be considered > quite subtle: "1" vs "1.". > > 2) It is not backwards-compatible. > > 3) You have to think a little more about transforming your input strings > (although, only insofar as using + 0.0 rather than + 0 to force a > toNumber conversion). > > In regards to (1), then in reality there is a *huge* distinction between > these two things due to the semantics of the arithmetic operations on > integers vs doubles, so perhaps LiveCode should make you choose > *explicitly*. > > In regards to (2), then it is not backwards compatible but the current > semantics > would be subsumed by the new ones since all we are doing (in effect) is > saying that 'don't represent a subset of numbers (the integers) we > currently represent > as doubles, but use actual integers instead'. i.e. The new semantics can > get back the old behavior by simply converting integer-like strings to > doubles as they do now. i.e. This new behavior is a binary flag which > affects > *only* num->string and string->num. > > In regards to (3), this happens now - quite frequently people ask 'why is > this code dealing with numbers and strings not working quite right' and the > answer is generally - 'oh you need to put a + 0 in there somewhere to force > a numeric conversion'. > > Doing a simple job keeps it simple, and it does that job well. >> However, it would be possible to have both the classic simplicity and >> more power, by adding more optional symbols and rules. >> > > That is very true - however, this thread has made me question what job > does numberFormat *actually* do and in LiveCode it is just a formatting > property - in comparison to HyperCard it has 0 effect on arithmetic. > > -- (assume i=binary 5555) >> >> set numberformat to "$#,##0.00" >> put "Cost:" && i into x --> x = "Cost: $5,555.00" >> > > Therefore, why not (as you suggest) make it a much better formatter? > > There are so many precedents for number formatting out there (as Richard > points out) there is plenty to choose from. Ideally, we'd allow both > explicit formatting *and* formatting based on locale. > > Certainly something to think about :) > > Warmest Regards, > > Mark. > > > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From MikeKerner at roadrunner.com Tue Apr 25 07:39:35 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 25 Apr 2017 07:39:35 -0400 Subject: Make numberFormat even better In-Reply-To: References: <265283c9704fdd3610882fd3c3fe8b1e@livecode.com> <58FEF452.3020901@pair.com> Message-ID: Would it make sense to say that if a container is strongly typed (i.e. declared as type x) it is type x and if it is not then it is not? Why can't you have it both ways? On Tue, Apr 25, 2017 at 6:48 AM, Lagi Pittas via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi > > I don't know why you want to adapt/enhance the number format as that could > break already working code that uses the nuances of numberformat already. > > Why not add an instruction NumberFormatXL and create the an Excel version > like Curry says. You won't have to jump through hoops to make sure it > doesn't break anything, you can fix what's wrong(?) and you can add stuff > in there without affecting old code, plus and with Curry's experience with > spreadlib you probably have a lot of the problems to solve sorted. > > Now my usual caveat "Everything is easy for the man who doesn't have to do > it himself" - but I haven't seen anything that Mark and his team can't do - > usually the problems stem from trying no to break older stuff. > > I think in this case adding a new command would make it easier all round. > While you're at it why not put a callback/ or in wordpress parlance an > "AddAction" option so you can add to the formatting on the fly? > > Regards Lagi > > On 25 April 2017 at 09:38, Mark Waddingham via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > On 2017-04-25 09:01, Curry Kenworthy via use-livecode wrote: > > > >> To handle arrays better without requiring more lines of code, how > >> about making numberFormat itself an array with at least two parts? > >> Similar to the way the clipboardData has parts. > >> > >> Using it without a key works exactly like before, by setting both parts, > >> ie: > >> > >> -- (assume i=binary 5 and starting format=default) > >> > >> set numberformat to "0.0" > >> put "#" & i into a[i] --> a["5.0"] = "#5.0" > >> > >> If you want just the regular strings formatted and not any array keys, > >> or vice versa, use the appropriate part: > >> > >> set numberformat["text"] to "0.0" > >> put "#" & i into a[i] --> a["5"] = "#5.0" > >> > >> (or) > >> > >> set numberformat["keys"] to "0.0" > >> put "#" & i into a[i] --> a["5.0"] = "#5" > >> > > > > This is certainly an idea - however, I wonder if it isn't quite > addressing > > the crux of the issue. > > > > Arrays in LiveCode serve two purposes - both lists (if integer keyed, > > dense, starting from 1) and dictionaries (all other types). The > distinction > > is made purely on the string structure of the keys (for all intents and > > purposes) and what keys are present. Indeed for a LiveCode array to be > > treated as a list the keys *must* be very strictly formatted as integers > - > > there must be no fractional part (i.e. "1.0" is *not* considered the same > > key as "1"). > > > > For dictionaries, then having the numberFormat affect your numbers isn't > > really an issue - as the keys are strings, they have to be strings, there > > is no option. > > > > For lists, however, what is really happening is that they are being > > indexed by integers. So, could it be that the problem in LiveCode > > is that it doesn't distinguish between integers and non-integers? > > > > This actually alludes to another problem I've been struggling with > > recently (and, indeed, partly why this numberFormat problem is so > > interesting). > > > > At the moment LiveCode's arithmetic uses 64-bit doubles universally. This > > gives a relatively consistent arithmetic, but it has a significant limit: > > you cannot represent 64-bit integers accurately - only up to 53-bit. > > Indeed, > > the current semantics basically mean that you can do integer computations > > up > > to 53-bits and then things 'gracefully' degrade in precision. The problem > > is that I'm not sure it is feasible to extend the allowed size of > integers > > (having them arbitrary precision would be really neat!) whilst preserving > > this graceful degradation to double (at least not in a performant way). > > > > One solution here is to have (internally at least) two distinct numeric > > types - integers and (inexact) reals - with the common-sense rules: > > > > integer int_op integer -> integer (+, -, *, div, mod are int_ops) > > integer op real -> real (+, -, *, /, div, mod are ops) > > real op integer -> real > > real op real -> real > > > > The question, now, is that how would we distinguish between a string > > we want to auto-convert to an integer, and a string we want to > > auto-convert to a real? > > > > One option here is to make it so that integers are always of the form > > > > [1-9][0-9]+ > > > > With a string being considered a real if it is any other valid numeric > > string: > > > > "1" is an integer > > "1.", "1e10", "1.03", "1.0" are all reals. > > > > If we made this distinction, then it would be viable to make it so that > > numberFormat *only* affects reals: > > > > put 1 + 0 into tInteger > > put 1. + 0 into tReal > > set the numberFormat to "0.00" > > put tInteger , tReal > > => "1,1.00" > > > > This would certainly solve the sequence-style-array 'ambiguity' and would > > perhaps make sorting out numeric literals not being touched by > numberFormat > > a little more sane: > > > > set the numberFormat to "0.00" > > put "This is an integer: " & 1 > > => This is an integer: 1 > > put "This is a real: " & 1. > > => This is a real: 1.0 > > > > The problem here is that I have no idea if that distinction is too subtle > > (for LiveCode, at least). It is certainly something you get used to > pretty > > quickly in pretty much any other language - most (if not all!) have a > > strict distinction between integer and real. > > > > To put the potentially subtlety in context; it only arise in: > > > > - numeric literals > > > > - strings/text/files taken as inputs > > > > In the former case, if you actually wanted a real, then you'd > > just have to add a '.' to the literal (there's an advantage here is that > > it completely expresses your intent as to the type of number). In the > > latter case, then if you are processing string inputs: > > > > - For integer do: > > put tStringFromOutside + 0 -> integer if tStringFromOutside is integer > > - For real do: > > put tStringFromOutside + 0.0 -> real > > > > The advantages of this approach are: > > > > 1) The implementation of integers is free to be whatever it needs to > > be. > > > > 2) It explicitly means you can indicate your numeric intent (integer > > operations and real operations have very different semantics) > > in your scripts. > > > > 3) It potentially opens the door to a much less 'surprising' > numberFormat > > with regards indexing arrays. > > > > 4) It potentially opens the door to a much less 'surprising' > numberFormat > > with regards numeric literals in scripts > > > > The disadvantages of this approach are: > > > > 1) The distinction between integer and real could be considered > > quite subtle: "1" vs "1.". > > > > 2) It is not backwards-compatible. > > > > 3) You have to think a little more about transforming your input > strings > > (although, only insofar as using + 0.0 rather than + 0 to force a > > toNumber conversion). > > > > In regards to (1), then in reality there is a *huge* distinction between > > these two things due to the semantics of the arithmetic operations on > > integers vs doubles, so perhaps LiveCode should make you choose > > *explicitly*. > > > > In regards to (2), then it is not backwards compatible but the current > > semantics > > would be subsumed by the new ones since all we are doing (in effect) is > > saying that 'don't represent a subset of numbers (the integers) we > > currently represent > > as doubles, but use actual integers instead'. i.e. The new semantics can > > get back the old behavior by simply converting integer-like strings to > > doubles as they do now. i.e. This new behavior is a binary flag which > > affects > > *only* num->string and string->num. > > > > In regards to (3), this happens now - quite frequently people ask 'why is > > this code dealing with numbers and strings not working quite right' and > the > > answer is generally - 'oh you need to put a + 0 in there somewhere to > force > > a numeric conversion'. > > > > Doing a simple job keeps it simple, and it does that job well. > >> However, it would be possible to have both the classic simplicity and > >> more power, by adding more optional symbols and rules. > >> > > > > That is very true - however, this thread has made me question what job > > does numberFormat *actually* do and in LiveCode it is just a formatting > > property - in comparison to HyperCard it has 0 effect on arithmetic. > > > > -- (assume i=binary 5555) > >> > >> set numberformat to "$#,##0.00" > >> put "Cost:" && i into x --> x = "Cost: $5,555.00" > >> > > > > Therefore, why not (as you suggest) make it a much better formatter? > > > > There are so many precedents for number formatting out there (as Richard > > points out) there is plenty to choose from. Ideally, we'd allow both > > explicit formatting *and* formatting based on locale. > > > > Certainly something to think about :) > > > > Warmest Regards, > > > > Mark. > > > > > > > > -- > > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > > LiveCode: Everyone can create apps > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 harrison at all-auctions.com Tue Apr 25 10:11:53 2017 From: harrison at all-auctions.com (Rick Harrison) Date: Tue, 25 Apr 2017 10:11:53 -0400 Subject: Make numberFormat even better In-Reply-To: References: <265283c9704fdd3610882fd3c3fe8b1e@livecode.com> <58FEF452.3020901@pair.com> Message-ID: <988187CB-7832-4C8C-8338-ABA46044E707@all-auctions.com> Hi Lagi, I can?t agree more. Never break anyone?s code if at all possible. Create a new numberformat like NumberFormatXL or something similar. Leave the old working stuff alone. Just my 2 cents for the day! Rick > On Apr 25, 2017, at 6:48 AM, Lagi Pittas via use-livecode wrote: > > Hi > > I don't know why you want to adapt/enhance the number format as that could > break already working code that uses the nuances of numberformat already. > > Why not add an instruction NumberFormatXL and create the an Excel version > like Curry says. You won't have to jump through hoops to make sure it > doesn't break anything, you can fix what's wrong(?) and you can add stuff > in there without affecting old code, plus and with Curry's experience with > spreadlib you probably have a lot of the problems to solve sorted. > > Now my usual caveat "Everything is easy for the man who doesn't have to do > it himself" - but I haven't seen anything that Mark and his team can't do - > usually the problems stem from trying no to break older stuff. > > I think in this case adding a new command would make it easier all round. > While you're at it why not put a callback/ or in wordpress parlance an > "AddAction" option so you can add to the formatting on the fly? > > Regards Lagi > From roger.e.eller at sealedair.com Tue Apr 25 10:31:37 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 25 Apr 2017 10:31:37 -0400 Subject: Make numberFormat even better In-Reply-To: <988187CB-7832-4C8C-8338-ABA46044E707@all-auctions.com> References: <265283c9704fdd3610882fd3c3fe8b1e@livecode.com> <58FEF452.3020901@pair.com> <988187CB-7832-4C8C-8338-ABA46044E707@all-auctions.com> Message-ID: +1 And if you must introduce a arguably newer/better term, please make its syntax more English-like and less code-like. This _is_ LiveCode. Cryptic is for those other languages. /2_cents ~Roger On Tue, Apr 25, 2017 at 10:11 AM, Rick Harrison via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Lagi, > > I can?t agree more. Never break anyone?s code if at all possible. > Create a new numberformat like NumberFormatXL or something > similar. Leave the old working stuff alone. > > Just my 2 cents for the day! > > Rick > > > On Apr 25, 2017, at 6:48 AM, Lagi Pittas via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi > > > > I don't know why you want to adapt/enhance the number format as that > could > > break already working code that uses the nuances of numberformat already. > > > > Why not add an instruction NumberFormatXL and create the an Excel version > > like Curry says. You won't have to jump through hoops to make sure it > > doesn't break anything, you can fix what's wrong(?) and you can add stuff > > in there without affecting old code, plus and with Curry's experience > with > > spreadlib you probably have a lot of the problems to solve sorted. > > > > Now my usual caveat "Everything is easy for the man who doesn't have to > do > > it himself" - but I haven't seen anything that Mark and his team can't > do - > > usually the problems stem from trying no to break older stuff. > > > > I think in this case adding a new command would make it easier all round. > > While you're at it why not put a callback/ or in wordpress parlance an > > "AddAction" option so you can add to the formatting on the fly? > > > > Regards Lagi > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From andrew at midwestcoastmedia.com Tue Apr 25 10:36:53 2017 From: andrew at midwestcoastmedia.com (andrew at midwestcoastmedia.com) Date: Tue, 25 Apr 2017 14:36:53 +0000 Subject: Font embedding for iOS in LC9 Message-ID: <20170425143653.Horde.jnG-McIAIq8BMb5LJ9lR0rh@ua850258.serversignin.com> I've been compiling an iOS app in 8.1.x but am trying to make the jump to 9.0dp6 for the cool new Business features like Remote Debugging. Things seemed to be working ok until I compiled a development version and installed it on my iPhone to find all my custom fonts were replaced with bland defaults. In the Standalone Settings I have an entire fonts/* folder set under Copy Files and the exact font selected for various fields in the Property Inspector (Roboto Condensed and Vacer Serif Bold, but shouldn't make a difference). Fonts display correctly in LiveCode, fonts display correctly in iOS Simulator, but fonts revert to some default in the compiled standalone. Nothing has changed with the files, filepaths, or font references between the working versions compiled in LC8 and the non-working LC9 compile. Digging around through my stack I found some old commented out code for "start using font file tFont" but that seems to be Mac/PC standalone code not needed for mobile. I looked in the release notes for LC9 and the forum, but didn't see any mention to a new filepath for fonts. Does anyone have any insight? --Andrew Bell --MidWest Coast Media From devin_asay at byu.edu Tue Apr 25 11:01:27 2017 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 25 Apr 2017 15:01:27 +0000 Subject: Primes and primality checking Message-ID: <378012CF-F79D-4509-8C64-E85CCCF459CF@byu.edu> Hey folks, This guy over on stackoverflow.com is asking for help generating and testing very large prime numbers. http://stackoverflow.com/questions/43600252/generate-and-check-the-primality-of-very-large-numbers-in-livecode I came up with this: on mouseUp local tNum put fld "testNum" into tNum put isPrime(tNum) into fld "report" end mouseUp function isPrime pNum if pNum <> 2 AND pNum mod 2 = 0 then return false end if repeat with x = 3 to sqrt(pNum) step 2 if pNum mod x = 0 then return false end if end repeat return true end isPrime However, it doesn?t seem to be reliable for very large numbers (> 100 digits) as the fellow wants. My math skills are pretty creaky. Anybody want a crack at this? It?s a fun challenge, plus it can boost LC?s presence on stackoverflow. Cheers, Devin Devin Asay Director Office of Digital Humanities Brigham Young University From roland.huettmann at gmail.com Tue Apr 25 11:10:58 2017 From: roland.huettmann at gmail.com (Roland Huettmann) Date: Tue, 25 Apr 2017 17:10:58 +0200 Subject: Maje numberFormst even better In-Reply-To: References: Message-ID: Very interesting discussion. Many thanks to all for deeper insight! Here is a link for Excel cell formatting: https://support.microsoft.com/en-us/help/264372/how-to-control-and-understand-settings-in-the-format-cells-dialog-box-in-excel Millions of users know this formatting style. Why reinvent the wheel? Numberformat could eventually be enhanced to this direction... I still also wished to see it as a property-set of fields, but built in, not "just" as a custom property. Dreaming...). It is a simple user wish, not a recipe about how to do it. I understand that it is difficult to do. Roland From prothero at earthlearningsolutions.org Tue Apr 25 11:33:14 2017 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Tue, 25 Apr 2017 08:33:14 -0700 Subject: Make numberFormat even better In-Reply-To: References: <265283c9704fdd3610882fd3c3fe8b1e@livecode.com> <58FEF452.3020901@pair.com> <988187CB-7832-4C8C-8338-ABA46044E707@all-auctions.com> Message-ID: Folks, What I see in this discussion is extreme efforts to do something that is straightforward and transparent in other languages (I can see these suggested solutions as creating unnecessary complexity).That is to simply declare some variable types. E.g. variable ix=integer double variable yzz=real Etc, etc Variables that are not declared would be handled in the same way they are now, by default. Just my 2 cents. Bill P William Prothero http://es.earthednet.org > On Apr 25, 2017, at 7:31 AM, Roger Eller via use-livecode wrote: > > +1 > > And if you must introduce a arguably newer/better term, please make its > syntax more English-like and less code-like. This _is_ LiveCode. Cryptic > is for those other languages. /2_cents > > ~Roger > > > On Tue, Apr 25, 2017 at 10:11 AM, Rick Harrison via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Lagi, >> >> I can?t agree more. Never break anyone?s code if at all possible. >> Create a new numberformat like NumberFormatXL or something >> similar. Leave the old working stuff alone. >> >> Just my 2 cents for the day! >> >> Rick >> >>> On Apr 25, 2017, at 6:48 AM, Lagi Pittas via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Hi >>> >>> I don't know why you want to adapt/enhance the number format as that >> could >>> break already working code that uses the nuances of numberformat already. >>> >>> Why not add an instruction NumberFormatXL and create the an Excel version >>> like Curry says. You won't have to jump through hoops to make sure it >>> doesn't break anything, you can fix what's wrong(?) and you can add stuff >>> in there without affecting old code, plus and with Curry's experience >> with >>> spreadlib you probably have a lot of the problems to solve sorted. >>> >>> Now my usual caveat "Everything is easy for the man who doesn't have to >> do >>> it himself" - but I haven't seen anything that Mark and his team can't >> do - >>> usually the problems stem from trying no to break older stuff. >>> >>> I think in this case adding a new command would make it easier all round. >>> While you're at it why not put a callback/ or in wordpress parlance an >>> "AddAction" option so you can add to the formatting on the fly? >>> >>> Regards Lagi >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hakima.manseri at cnrs.fr Tue Apr 25 11:47:25 2017 From: hakima.manseri at cnrs.fr (Hakima Manseri) Date: Tue, 25 Apr 2017 17:47:25 +0200 Subject: Application not working with MacOSX 10.6 (maybe due to tsNet) Message-ID: Hi everyone, I'm a LC newbie and have been trying to use an application a colleague is developping with LiveCode 8.1.3 It works with MacOSX 10.9 and above but fails to launch for previous version. This was surprising since we thought LiveCode was still compatible with the 10.6 version. I have this message in the log : > Apr 17 20:49:15 myuser myapp[787]: *** > __NSAutoreleaseNoPool(): Object 0xd82460 of class NSMachPort > autoreleased with no pool in place - just leaking > Apr 17 20:49:16 myuser myapp[787]: Error loading > /Users/myuser/myapp.app/Contents/MacOS/Externals/tsNet.bundle/Contents/MacOS/tsNet: > > dlopen(/Users/myuser/myapp.app/Contents/MacOS/Externals/tsNet.bundle/Contents/MacOS/tsNet, 262): Symbol not found: _kSecImportExportPassphrase\n Referenced from: > > /Users/myuser/myapp.app/Contents/MacOS/Externals/tsNet.bundle/Contents/MacOS/tsNet\n > Expected in: > /System/Library/Frameworks/Security.framework/Versions/A/Security\n in > /Users/myuser/myapp.app/Contents/MacOS/Externals/tsNet.bundle/Contents/MacOS/tsNet > Apr 17 20:49:16: --- last message repeated 1 time --- > Apr 17 20:49:16 myuser [0x0-0x40040].myapp-Org.[787]: Startup error - failed to load external > Apr 17 20:49:16 myuser com.apple.launchd.peruser.501[208] ([0x0-0x40040].myapp-Org.[787]): Exited with exit code: 255 I've looked up the "_kSecImportExportPassphrase" variable and it seems that there may be a difference between iOS and MacOSX regarding this variable : http://stackoverflow.com/questions/17348420/private-key-signature-different-on-ios-and-macosx#17349506 So is tsNet the culprit ? Or is this a problem in the way we add the external ? Or something else ? Thanks in advance for your help. Hakima -- Hakima Manseri Ing?nieure d?veloppement et bases de donn?es T?l : 04 67 14 58 42 Site : http://asm.cnrs.fr/ Dev at LR : http://devatlr.univ-montp2.fr/ From ludovic.thebault at laposte.net Tue Apr 25 11:52:49 2017 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Tue, 25 Apr 2017 17:52:49 +0200 Subject: Application not working with MacOSX 10.6 (maybe due to tsNet) In-Reply-To: References: Message-ID: <2FB56F10-48F8-4A22-B6C9-A035EEA25FDA@laposte.net> > Le 25 avr. 2017 ? 17:47, Hakima Manseri via use-livecode a ?crit : > > Hi everyone, > > I'm a LC newbie and have been trying to use an application a colleague is developping with LiveCode 8.1.3 > > It works with MacOSX 10.9 and above but fails to launch for previous version. This was surprising since we thought LiveCode was still compatible with the 10.6 version. > > I have this message in the log : > >> Apr 17 20:49:15 myuser myapp[787]: *** >> __NSAutoreleaseNoPool(): Object 0xd82460 of class NSMachPort >> autoreleased with no pool in place - just leaking >> Apr 17 20:49:16 myuser myapp[787]: Error loading >> /Users/myuser/myapp.app/Contents/MacOS/Externals/tsNet.bundle/Contents/MacOS/tsNet: >> dlopen(/Users/myuser/myapp.app/Contents/MacOS/Externals/tsNet.bundle/Contents/MacOS/tsNet, 262): Symbol not found: _kSecImportExportPassphrase\n Referenced from: >> /Users/myuser/myapp.app/Contents/MacOS/Externals/tsNet.bundle/Contents/MacOS/tsNet\n >> Expected in: >> /System/Library/Frameworks/Security.framework/Versions/A/Security\n in >> /Users/myuser/myapp.app/Contents/MacOS/Externals/tsNet.bundle/Contents/MacOS/tsNet >> Apr 17 20:49:16: --- last message repeated 1 time --- >> Apr 17 20:49:16 myuser [0x0-0x40040].myapp-Org.[787]: Startup error - failed to load external >> Apr 17 20:49:16 myuser com.apple.launchd.peruser.501[208] ([0x0-0x40040].myapp-Org.[787]): Exited with exit code: 255 > I've looked up the "_kSecImportExportPassphrase" variable and it seems that there may be a difference between iOS and MacOSX regarding this variable : http://stackoverflow.com/questions/17348420/private-key-signature-different-on-ios-and-macosx#17349506 > > So is tsNet the culprit ? Or is this a problem in the way we add the external ? Or something else ? > > Thanks in advance for your help. > > Hakima > See http://quality.livecode.com/show_bug.cgi?id=19035 Workaround : compile standalone with Livecode 8.0 From hakima.manseri at cnrs.fr Tue Apr 25 11:57:26 2017 From: hakima.manseri at cnrs.fr (Hakima Manseri) Date: Tue, 25 Apr 2017 17:57:26 +0200 Subject: Application not working with MacOSX 10.6 (maybe due to tsNet) In-Reply-To: <2FB56F10-48F8-4A22-B6C9-A035EEA25FDA@laposte.net> References: <2FB56F10-48F8-4A22-B6C9-A035EEA25FDA@laposte.net> Message-ID: <55fa6655-d089-29da-e221-e247646d54ec@cnrs.fr> I'll look into that. Thanks ! Le 25/04/2017 ? 17:52, Ludovic THEBAULT via use-livecode a ?crit : >> Le 25 avr. 2017 ? 17:47, Hakima Manseri via use-livecode a ?crit : >> >> Hi everyone, >> >> I'm a LC newbie and have been trying to use an application a colleague is developping with LiveCode 8.1.3 >> >> It works with MacOSX 10.9 and above but fails to launch for previous version. This was surprising since we thought LiveCode was still compatible with the 10.6 version. >> >> I have this message in the log : >> >>> Apr 17 20:49:15 myuser myapp[787]: *** >>> __NSAutoreleaseNoPool(): Object 0xd82460 of class NSMachPort >>> autoreleased with no pool in place - just leaking >>> Apr 17 20:49:16 myuser myapp[787]: Error loading >>> /Users/myuser/myapp.app/Contents/MacOS/Externals/tsNet.bundle/Contents/MacOS/tsNet: >>> dlopen(/Users/myuser/myapp.app/Contents/MacOS/Externals/tsNet.bundle/Contents/MacOS/tsNet, 262): Symbol not found: _kSecImportExportPassphrase\n Referenced from: >>> /Users/myuser/myapp.app/Contents/MacOS/Externals/tsNet.bundle/Contents/MacOS/tsNet\n >>> Expected in: >>> /System/Library/Frameworks/Security.framework/Versions/A/Security\n in >>> /Users/myuser/myapp.app/Contents/MacOS/Externals/tsNet.bundle/Contents/MacOS/tsNet >>> Apr 17 20:49:16: --- last message repeated 1 time --- >>> Apr 17 20:49:16 myuser [0x0-0x40040].myapp-Org.[787]: Startup error - failed to load external >>> Apr 17 20:49:16 myuser com.apple.launchd.peruser.501[208] ([0x0-0x40040].myapp-Org.[787]): Exited with exit code: 255 >> I've looked up the "_kSecImportExportPassphrase" variable and it seems that there may be a difference between iOS and MacOSX regarding this variable : http://stackoverflow.com/questions/17348420/private-key-signature-different-on-ios-and-macosx#17349506 >> >> So is tsNet the culprit ? Or is this a problem in the way we add the external ? Or something else ? >> >> Thanks in advance for your help. >> >> Hakima >> > See http://quality.livecode.com/show_bug.cgi?id=19035 > > Workaround : compile standalone with Livecode 8.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 -- Hakima Manseri Ing?nieure d?veloppement et bases de donn?es T?l : 04 67 14 58 42 Site : http://asm.cnrs.fr/ Dev at LR : http://devatlr.univ-montp2.fr/ From ahsoftware at sonic.net Tue Apr 25 12:24:09 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 25 Apr 2017 09:24:09 -0700 Subject: Make numberFormat even better In-Reply-To: References: <265283c9704fdd3610882fd3c3fe8b1e@livecode.com> <58FEF452.3020901@pair.com> <988187CB-7832-4C8C-8338-ABA46044E707@all-auctions.com> Message-ID: On 04/25/2017 08:33 AM, prothero--- via use-livecode wrote: > Folks, > What I see in this discussion is extreme efforts to do something that is straightforward and transparent in other languages (I can see these suggested solutions as creating unnecessary complexity).That is to simply declare some variable types. > > E.g. > variable ix=integer double > variable yzz=real > > Etc, etc > > Variables that are not declared would be handled in the same way they are now, by default. > > Just my 2 cents. > Bill P Heh. Don't hold your breath waiting for this one. Requested back in 2005 (version 2.5.1). http://quality.livecode.com/show_bug.cgi?id=2783 -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Tue Apr 25 12:27:03 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 25 Apr 2017 16:27:03 +0000 Subject: Make numberFormat even better In-Reply-To: References: <265283c9704fdd3610882fd3c3fe8b1e@livecode.com> <58FEF452.3020901@pair.com> <988187CB-7832-4C8C-8338-ABA46044E707@all-auctions.com> Message-ID: Variable Typing! EEEK!!! Bob S > On Apr 25, 2017, at 08:33 , prothero--- via use-livecode wrote: > > Folks, > What I see in this discussion is extreme efforts to do something that is straightforward and transparent in other languages (I can see these suggested solutions as creating unnecessary complexity).That is to simply declare some variable types. > > E.g. > variable ix=integer double > variable yzz=real > > Etc, etc > > Variables that are not declared would be handled in the same way they are now, by default. > > Just my 2 cents. > Bill P > > William Prothero > http://es.earthednet.org > >> On Apr 25, 2017, at 7:31 AM, Roger Eller via use-livecode wrote: >> >> +1 >> >> And if you must introduce a arguably newer/better term, please make its >> syntax more English-like and less code-like. This _is_ LiveCode. Cryptic >> is for those other languages. /2_cents >> >> ~Roger >> >> >> On Tue, Apr 25, 2017 at 10:11 AM, Rick Harrison via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Hi Lagi, >>> >>> I can?t agree more. Never break anyone?s code if at all possible. >>> Create a new numberformat like NumberFormatXL or something >>> similar. Leave the old working stuff alone. >>> >>> Just my 2 cents for the day! >>> >>> Rick >>> >>>> On Apr 25, 2017, at 6:48 AM, Lagi Pittas via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>>> >>>> Hi >>>> >>>> I don't know why you want to adapt/enhance the number format as that >>> could >>>> break already working code that uses the nuances of numberformat already. >>>> >>>> Why not add an instruction NumberFormatXL and create the an Excel version >>>> like Curry says. You won't have to jump through hoops to make sure it >>>> doesn't break anything, you can fix what's wrong(?) and you can add stuff >>>> in there without affecting old code, plus and with Curry's experience >>> with >>>> spreadlib you probably have a lot of the problems to solve sorted. >>>> >>>> Now my usual caveat "Everything is easy for the man who doesn't have to >>> do >>>> it himself" - but I haven't seen anything that Mark and his team can't >>> do - >>>> usually the problems stem from trying no to break older stuff. >>>> >>>> I think in this case adding a new command would make it easier all round. >>>> While you're at it why not put a callback/ or in wordpress parlance an >>>> "AddAction" option so you can add to the formatting on the fly? >>>> >>>> Regards Lagi >>>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Tue Apr 25 12:29:08 2017 From: mark at livecode.com (Mark Waddingham) Date: Tue, 25 Apr 2017 18:29:08 +0200 Subject: Make numberFormat even better In-Reply-To: References: <265283c9704fdd3610882fd3c3fe8b1e@livecode.com> <58FEF452.3020901@pair.com> Message-ID: <61db1cd126cfbe8b6fda10dd35e33a91@livecode.com> On 2017-04-25 12:48, Lagi Pittas via use-livecode wrote: > Hi > > I don't know why you want to adapt/enhance the number format as that > could > break already working code that uses the nuances of numberformat > already. Although it may have not been 100% clear in my previous post, as numberFormat in LiveCode is just string formatting (it doesn't do what it does in HyperCard where it also controls numerical precision of each arithmetic operation) it can be extended without affecting existing code. > Why not add an instruction NumberFormatXL and create the an Excel > version > like Curry says. You won't have to jump through hoops to make sure it > doesn't break anything, you can fix what's wrong(?) and you can add > stuff > in there without affecting old code, plus and with Curry's experience > with > spreadlib you probably have a lot of the problems to solve sorted. When would numberFormatXL be used instead of numberFormat? I presume if it has been explicitly set in local context... In which case... There's no point in introducing a new property whose only action is to subsume the action of the previous one since that is equivalent to just extending the original property. Warmest Regards, Mark. P.S. The main suggestion in my previous post wasn't about numberFormat per-se more about restricting its domain slightly (to things which are not integers) in order to (1) solve a problem with numeric representation (wouldn't it be nice to have infinite precision integers?) and (2) make the language more ergonomic when dealing with numeric arrays - allowing to use 'numberFormat' (or whatever) *and* numeric arrays. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From thatkeith at mac.com Tue Apr 25 12:33:04 2017 From: thatkeith at mac.com (Keith Martin) Date: Tue, 25 Apr 2017 17:33:04 +0100 Subject: Font embedding for iOS in LC9 In-Reply-To: <20170425143653.Horde.jnG-McIAIq8BMb5LJ9lR0rh@ua850258.serversignin.com> References: <20170425143653.Horde.jnG-McIAIq8BMb5LJ9lR0rh@ua850258.serversignin.com> Message-ID: <93A46AF3-62E9-4936-8BE3-5325466A051F@mac.com> On 25 Apr 2017, at 15:36, Andrew Bell via use-livecode wrote: > Digging around through my stack I found some old commented out code > for "start using font file tFont" but that seems to be Mac/PC > standalone code not needed for mobile. Not actual insight, at least in the sense of answers, but I found a way to install fonts in iOS. They need to be base64 encoded and saved as .mobileconfig documents in order to work. I made a tool (using LiveCode, natch) to do this; it's available at http://thehelpful.com/iosfonts/ One day I must upload the stack for others to grab! But so many other things to do... :-/ k --- Keith Martin Senior Lecturer, LCC (University of the Arts London) President, http://IVRPA.org http://PanoramaPhotographer.com http://thatkeith.com +44 (0)7909541365 --- From ambassador at fourthworld.com Tue Apr 25 12:53:34 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 25 Apr 2017 09:53:34 -0700 Subject: Maje numberFormst even better In-Reply-To: References: Message-ID: <29adf273-6fe1-ec19-8562-d7e25e8af898@fourthworld.com> Roland Huettmann wrote: > Here is a link for Excel cell formatting: > > Good guidance - thanks for including the link. > Millions of users know this formatting style. Why reinvent the wheel? > Numberformat could eventually be enhanced to this direction... > > I still also wished to see it as a property-set of fields, but built > in, not "just" as a custom property. Dreaming...). It is a simple > user wish, not a recipe about how to do it. I understand that it is > difficult to do. Like Lagi says, "Everything is easy for the man who doesn't have to do it himself." :) Why not have both, "good" now and "best" later? Even if the core team were in a position to drop other priorities to add formatting to fields, they couldn't do it any faster than a scripter who has the advantage of doing it in LiveCode itself. There are many things only the engine team can do, and for those we have no choice of what language they must be done in: the engine is written in C++, so it requires a C++ expert to work on engine features. As a attractive as this proposal for field-level numeric formatting is, there are many other tasks already in queue (it's been many years since I was able to play a video in Linux, and others have their own lists of preferred priorities as well). So even the most optimistic projection of engine team availability for this field enhancement would be months down the road. But we could have this by this afternoon with a behavior script. Why wait? Sure, an engine-level version would execute faster, and it's worth doing for language design and workflow reasons as well. But a very useful behavior script could be crafted in an afternoon, and it would not only provide immediate value to those using it, but help with the design considerations that would have to go into an engine-based property later on anyway. So we could consider the behavior script a prototype, but even better it can be used to provide immediate useful results. -- 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 prothero at earthlearningsolutions.org Tue Apr 25 12:57:56 2017 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Tue, 25 Apr 2017 09:57:56 -0700 Subject: Make numberFormat even better In-Reply-To: References: <265283c9704fdd3610882fd3c3fe8b1e@livecode.com> <58FEF452.3020901@pair.com> <988187CB-7832-4C8C-8338-ABA46044E707@all-auctions.com> Message-ID: <26DB5473-892D-46CF-B6F5-0232AE750E5C@earthlearningsolutions.org> My point was to set variable types when they need to be set explicitly. Those who don't want to set a type can just use forget about it. Once you get into more scientific, numeric type applications, the precision and type of variables can get crucial. To me, the suggested changes to numberformat, adding numberformatXL, etc, just make the situation more complex rather than applying a simple, direct solution that is common in other programming languages. I see no advantage in going through extreme gymnastics to solve a problem that has been solved clearly in other environments. As far as I'm concerned, the English language-like features are great for the new programmer, but actually doing useful work pretty quickly deviates from English like syntax. I'm thinking of Adobe Director rather than C++ or JavaScript. To me, LC's greatest strength is in its UI support and cross platform capabilities. Best, Bill P William Prothero http://es.earthednet.org > On Apr 25, 2017, at 9:27 AM, Bob Sneidar via use-livecode wrote: > > Variable Typing! EEEK!!! > > Bob S > > >> On Apr 25, 2017, at 08:33 , prothero--- via use-livecode wrote: >> >> Folks, >> What I see in this discussion is extreme efforts to do something that is straightforward and transparent in other languages (I can see these suggested solutions as creating unnecessary complexity).That is to simply declare some variable types. >> >> E.g. >> variable ix=integer double >> variable yzz=real >> >> Etc, etc >> >> Variables that are not declared would be handled in the same way they are now, by default. >> >> Just my 2 cents. >> Bill P >> >> William Prothero >> http://es.earthednet.org >> >>> On Apr 25, 2017, at 7:31 AM, Roger Eller via use-livecode wrote: >>> >>> +1 >>> >>> And if you must introduce a arguably newer/better term, please make its >>> syntax more English-like and less code-like. This _is_ LiveCode. Cryptic >>> is for those other languages. /2_cents >>> >>> ~Roger >>> >>> >>> On Tue, Apr 25, 2017 at 10:11 AM, Rick Harrison via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> Hi Lagi, >>>> >>>> I can?t agree more. Never break anyone?s code if at all possible. >>>> Create a new numberformat like NumberFormatXL or something >>>> similar. Leave the old working stuff alone. >>>> >>>> Just my 2 cents for the day! >>>> >>>> Rick >>>> >>>>> On Apr 25, 2017, at 6:48 AM, Lagi Pittas via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> Hi >>>>> >>>>> I don't know why you want to adapt/enhance the number format as that >>>> could >>>>> break already working code that uses the nuances of numberformat already. >>>>> >>>>> Why not add an instruction NumberFormatXL and create the an Excel version >>>>> like Curry says. You won't have to jump through hoops to make sure it >>>>> doesn't break anything, you can fix what's wrong(?) and you can add stuff >>>>> in there without affecting old code, plus and with Curry's experience >>>> with >>>>> spreadlib you probably have a lot of the problems to solve sorted. >>>>> >>>>> Now my usual caveat "Everything is easy for the man who doesn't have to >>>> do >>>>> it himself" - but I haven't seen anything that Mark and his team can't >>>> do - >>>>> usually the problems stem from trying no to break older stuff. >>>>> >>>>> I think in this case adding a new command would make it easier all round. >>>>> While you're at it why not put a callback/ or in wordpress parlance an >>>>> "AddAction" option so you can add to the formatting on the fly? >>>>> >>>>> Regards Lagi >>>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthlearningsolutions.org Tue Apr 25 13:01:00 2017 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Tue, 25 Apr 2017 10:01:00 -0700 Subject: Maje numberFormst even better In-Reply-To: <29adf273-6fe1-ec19-8562-d7e25e8af898@fourthworld.com> References: <29adf273-6fe1-ec19-8562-d7e25e8af898@fourthworld.com> Message-ID: Richard, I'd love to see the behavior script. Soon I'll be needing something like that. I can roll my own, but will save a lot of time if there is a shareable version. Bill P William Prothero http://es.earthednet.org > On Apr 25, 2017, at 9:53 AM, Richard Gaskin via use-livecode wrote: > > Roland Huettmann wrote: > > > Here is a link for Excel cell formatting: > > > > > > Good guidance - thanks for including the link. > > > > Millions of users know this formatting style. Why reinvent the wheel? > > Numberformat could eventually be enhanced to this direction... > > > > I still also wished to see it as a property-set of fields, but built > > in, not "just" as a custom property. Dreaming...). It is a simple > > user wish, not a recipe about how to do it. I understand that it is > > difficult to do. > > Like Lagi says, "Everything is easy for the man who doesn't have to do > it himself." :) > > Why not have both, "good" now and "best" later? > > Even if the core team were in a position to drop other priorities to add formatting to fields, they couldn't do it any faster than a scripter who has the advantage of doing it in LiveCode itself. > > There are many things only the engine team can do, and for those we have no choice of what language they must be done in: the engine is written in C++, so it requires a C++ expert to work on engine features. > > As a attractive as this proposal for field-level numeric formatting is, there are many other tasks already in queue (it's been many years since I was able to play a video in Linux, and others have their own lists of preferred priorities as well). > > So even the most optimistic projection of engine team availability for this field enhancement would be months down the road. > > But we could have this by this afternoon with a behavior script. > > Why wait? > > Sure, an engine-level version would execute faster, and it's worth doing for language design and workflow reasons as well. > > But a very useful behavior script could be crafted in an afternoon, and it would not only provide immediate value to those using it, but help with the design considerations that would have to go into an engine-based property later on anyway. > > So we could consider the behavior script a prototype, but even better it can be used to provide immediate useful results. > > -- > 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 MikeKerner at roadrunner.com Tue Apr 25 13:29:23 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 25 Apr 2017 13:29:23 -0400 Subject: Font embedding for iOS in LC9 In-Reply-To: <93A46AF3-62E9-4936-8BE3-5325466A051F@mac.com> References: <20170425143653.Horde.jnG-McIAIq8BMb5LJ9lR0rh@ua850258.serversignin.com> <93A46AF3-62E9-4936-8BE3-5325466A051F@mac.com> Message-ID: Try with 8 to make sure fonts work. There is a font bug in 9 on devices with retina screens. On Tue, Apr 25, 2017 at 12:33 PM, Keith Martin via use-livecode < use-livecode at lists.runrev.com> wrote: > On 25 Apr 2017, at 15:36, Andrew Bell via use-livecode wrote: > > Digging around through my stack I found some old commented out code for >> "start using font file tFont" but that seems to be Mac/PC standalone code >> not needed for mobile. >> > > Not actual insight, at least in the sense of answers, but I found a way to > install fonts in iOS. They need to be base64 encoded and saved as > .mobileconfig documents in order to work. I made a tool (using LiveCode, > natch) to do this; it's available at http://thehelpful.com/iosfonts/ > > One day I must upload the stack for others to grab! But so many other > things to do... :-/ > > k > > > --- > > Keith Martin > Senior Lecturer, LCC (University of the Arts London) > President, http://IVRPA.org > http://PanoramaPhotographer.com > http://thatkeith.com > +44 (0)7909541365 > > --- > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Tue Apr 25 13:30:31 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 25 Apr 2017 13:30:31 -0400 Subject: Make numberFormat even better In-Reply-To: <26DB5473-892D-46CF-B6F5-0232AE750E5C@earthlearningsolutions.org> References: <265283c9704fdd3610882fd3c3fe8b1e@livecode.com> <58FEF452.3020901@pair.com> <988187CB-7832-4C8C-8338-ABA46044E707@all-auctions.com> <26DB5473-892D-46CF-B6F5-0232AE750E5C@earthlearningsolutions.org> Message-ID: Way to steal my post and make it eloquent, Bill :-P On Tue, Apr 25, 2017 at 12:57 PM, prothero--- via use-livecode < use-livecode at lists.runrev.com> wrote: > My point was to set variable types when they need to be set explicitly. > Those who don't want to set a type can just use forget about it. Once you > get into more scientific, numeric type applications, the precision and type > of variables can get crucial. To me, the suggested changes to numberformat, > adding numberformatXL, etc, just make the situation more complex rather > than applying a simple, direct solution that is common in other programming > languages. I see no advantage in going through extreme gymnastics to solve > a problem that has been solved clearly in other environments. As far as I'm > concerned, the English language-like features are great for the new > programmer, but actually doing useful work pretty quickly deviates from > English like syntax. I'm thinking of Adobe Director rather than C++ or > JavaScript. To me, LC's greatest strength is in its UI support and cross > platform capabilities. > > Best, > Bill P > > William Prothero > http://es.earthednet.org > > > On Apr 25, 2017, at 9:27 AM, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Variable Typing! EEEK!!! > > > > Bob S > > > > > >> On Apr 25, 2017, at 08:33 , prothero--- via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> Folks, > >> What I see in this discussion is extreme efforts to do something that > is straightforward and transparent in other languages (I can see these > suggested solutions as creating unnecessary complexity).That is to simply > declare some variable types. > >> > >> E.g. > >> variable ix=integer double > >> variable yzz=real > >> > >> Etc, etc > >> > >> Variables that are not declared would be handled in the same way they > are now, by default. > >> > >> Just my 2 cents. > >> Bill P > >> > >> William Prothero > >> http://es.earthednet.org > >> > >>> On Apr 25, 2017, at 7:31 AM, Roger Eller via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>> > >>> +1 > >>> > >>> And if you must introduce a arguably newer/better term, please make its > >>> syntax more English-like and less code-like. This _is_ LiveCode. > Cryptic > >>> is for those other languages. /2_cents > >>> > >>> ~Roger > >>> > >>> > >>> On Tue, Apr 25, 2017 at 10:11 AM, Rick Harrison via use-livecode < > >>> use-livecode at lists.runrev.com> wrote: > >>> > >>>> Hi Lagi, > >>>> > >>>> I can?t agree more. Never break anyone?s code if at all possible. > >>>> Create a new numberformat like NumberFormatXL or something > >>>> similar. Leave the old working stuff alone. > >>>> > >>>> Just my 2 cents for the day! > >>>> > >>>> Rick > >>>> > >>>>> On Apr 25, 2017, at 6:48 AM, Lagi Pittas via use-livecode < > >>>> use-livecode at lists.runrev.com> wrote: > >>>>> > >>>>> Hi > >>>>> > >>>>> I don't know why you want to adapt/enhance the number format as that > >>>> could > >>>>> break already working code that uses the nuances of numberformat > already. > >>>>> > >>>>> Why not add an instruction NumberFormatXL and create the an Excel > version > >>>>> like Curry says. You won't have to jump through hoops to make sure it > >>>>> doesn't break anything, you can fix what's wrong(?) and you can add > stuff > >>>>> in there without affecting old code, plus and with Curry's experience > >>>> with > >>>>> spreadlib you probably have a lot of the problems to solve sorted. > >>>>> > >>>>> Now my usual caveat "Everything is easy for the man who doesn't have > to > >>>> do > >>>>> it himself" - but I haven't seen anything that Mark and his team > can't > >>>> do - > >>>>> usually the problems stem from trying no to break older stuff. > >>>>> > >>>>> I think in this case adding a new command would make it easier all > round. > >>>>> While you're at it why not put a callback/ or in wordpress parlance > an > >>>>> "AddAction" option so you can add to the formatting on the fly? > >>>>> > >>>>> Regards Lagi > >>>>> > >>>> > >>>> > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode at lists.runrev.com > >>>> Please visit this url to subscribe, unsubscribe and manage your > >>>> subscription preferences: > >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 dunbarx at aol.com Tue Apr 25 13:27:35 2017 From: dunbarx at aol.com (dunbarx) Date: Tue, 25 Apr 2017 10:27:35 -0700 (PDT) Subject: Primes and primality checking In-Reply-To: <378012CF-F79D-4509-8C64-E85CCCF459CF@byu.edu> References: <378012CF-F79D-4509-8C64-E85CCCF459CF@byu.edu> Message-ID: <1493141255459-4714234.post@n4.nabble.com> Devin. i don't get an overflow error til 309 digits. Where did the guy set a limit? Making some sort of composite gadget, like we played around with a while ago on the forum to allow long multiplications, additions, etc. without limit would be a general solution without, er, limit. Maybe Hermann can step in? But post your offering. As you say, it will firm LC within stack overflow. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Primes-and-primality-checking-tp4714219p4714234.html Sent from the Revolution - User mailing list archive at Nabble.com. From roger.e.eller at sealedair.com Tue Apr 25 14:16:20 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 25 Apr 2017 14:16:20 -0400 Subject: Make numberFormat even better In-Reply-To: <26DB5473-892D-46CF-B6F5-0232AE750E5C@earthlearningsolutions.org> References: <265283c9704fdd3610882fd3c3fe8b1e@livecode.com> <58FEF452.3020901@pair.com> <988187CB-7832-4C8C-8338-ABA46044E707@all-auctions.com> <26DB5473-892D-46CF-B6F5-0232AE750E5C@earthlearningsolutions.org> Message-ID: I wouldn't even be here if not for my introduction to English-like syntax via HyperCard 25+ years ago. My apparently "not very useful work" over the past 25 years while benefiting from that very same "less complex" syntax has kept me employed, my family clothed and fed, a roof over our heads, and all my bills paid. Not too bad for a less than useful old hack who rarely has to rely on a cryptic syntax! On Tue, Apr 25, 2017 at 12:57 PM, prothero--- via use-livecode < use-livecode at lists.runrev.com> wrote: > My point was to set variable types when they need to be set explicitly. > Those who don't want to set a type can just use forget about it. Once you > get into more scientific, numeric type applications, the precision and type > of variables can get crucial. To me, the suggested changes to numberformat, > adding numberformatXL, etc, just make the situation more complex rather > than applying a simple, direct solution that is common in other programming > languages. I see no advantage in going through extreme gymnastics to solve > a problem that has been solved clearly in other environments. As far as I'm > concerned, the English language-like features are great for the new > programmer, but actually doing useful work pretty quickly deviates from > English like syntax. I'm thinking of Adobe Director rather than C++ or > JavaScript. To me, LC's greatest strength is in its UI support and cross > platform capabilities. > > Best, > Bill P > > William Prothero > http://es.earthednet.org From MikeKerner at roadrunner.com Tue Apr 25 14:15:53 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 25 Apr 2017 14:15:53 -0400 Subject: Primes and primality checking In-Reply-To: <1493141255459-4714234.post@n4.nabble.com> References: <378012CF-F79D-4509-8C64-E85CCCF459CF@byu.edu> <1493141255459-4714234.post@n4.nabble.com> Message-ID: Long Math is a longstanding ACL contest theme, and I think we've talked about it here, before, too, because every language runs into precision issues - sooner or later you're going to run out of digits in the register. So in LC Put the value into a container Write the math algorithms that does it the way you know how to do it when you are doing it manually. It's very straightforward. On Tue, Apr 25, 2017 at 1:27 PM, dunbarx via use-livecode < use-livecode at lists.runrev.com> wrote: > Devin. > > i don't get an overflow error til 309 digits. Where did the guy set a > limit? > > Making some sort of composite gadget, like we played around with a while > ago > on the forum to allow long multiplications, additions, etc. without limit > would be a general solution without, er, limit. > > Maybe Hermann can step in? > > But post your offering. As you say, it will firm LC within stack overflow. > > Craig > > > > -- > View this message in context: http://runtime-revolution. > 278305.n4.nabble.com/Primes-and-primality-checking-tp4714219p4714234.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From waprothero at gmail.com Tue Apr 25 14:47:22 2017 From: waprothero at gmail.com (William Prothero) Date: Tue, 25 Apr 2017 11:47:22 -0700 Subject: Make numberFormat even better In-Reply-To: References: <265283c9704fdd3610882fd3c3fe8b1e@livecode.com> <58FEF452.3020901@pair.com> <988187CB-7832-4C8C-8338-ABA46044E707@all-auctions.com> <26DB5473-892D-46CF-B6F5-0232AE750E5C@earthlearningsolutions.org> Message-ID: Sorry Roger. I didn?t mean to open a debate on whether English-like syntax is good or bad. Just to make a point about doing coding gymnastics to follow a viewpoint, that actually makes things more complex. I think that all of us who start with LiveCode get hooked, then learn more by discussing and reading the docs. For some applications we really need to burrow down to details of the engine that can?t be automatically take care of without understanding them. There is a tendency for those who already have learned something to see it as simple. But I think you need to really watch the newbies and their thought processes to really determine how easy it is to get started in livecode. Richmond is probably the most expert because of his work in teaching young learners. I don?t see that simply declaring (optionally) that you want a variable to be an integer, a real, or whatever, actually violates the spirit of the language. To me, it seems like some folks are interested in doing numerical computations that exceed the scope of what now exists. For example, the computation of prime numbers. Others focus more on applications that are not heavily numerical and the current situation is fine. Although I personally may prefer other syntaxes, my suggestion was only to look at the trees and let the forest stay the same for livecode. Many of the discussions lately have been pretty esoteric and I could easily see where folks could get confused. Example: ?how many items are in ?x,x,x,? ?) or Is a number treated as a string or as a number, and when is it invisibly converted by the engine? I just think that the mantra of ?English-like? is only partially applicable to livecode. Other languages have ?English-like? syntaxes too, although their vocabulary and its application may be quite different. And, what about French speakers, Chinese speakers, etc, etc. I could go on, but ??. Anyway, have a great day (or evening, whatever the case may be). Best, Bill P > On Apr 25, 2017, at 11:16 AM, Roger Eller via use-livecode wrote: > > I wouldn't even be here if not for my introduction to English-like syntax > via HyperCard 25+ years ago. My apparently "not very useful work" over the > past 25 years while benefiting from that very same "less complex" syntax > has kept me employed, my family clothed and fed, a roof over our heads, and > all my bills paid. Not too bad for a less than useful old hack who rarely > has to rely on a cryptic syntax! > > > On Tue, Apr 25, 2017 at 12:57 PM, prothero--- via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> My point was to set variable types when they need to be set explicitly. >> Those who don't want to set a type can just use forget about it. Once you >> get into more scientific, numeric type applications, the precision and type >> of variables can get crucial. To me, the suggested changes to numberformat, >> adding numberformatXL, etc, just make the situation more complex rather >> than applying a simple, direct solution that is common in other programming >> languages. I see no advantage in going through extreme gymnastics to solve >> a problem that has been solved clearly in other environments. As far as I'm >> concerned, the English language-like features are great for the new >> programmer, but actually doing useful work pretty quickly deviates from >> English like syntax. I'm thinking of Adobe Director rather than C++ or >> JavaScript. To me, LC's greatest strength is in its UI support and cross >> platform capabilities. >> >> Best, >> Bill P >> >> William Prothero >> http://es.earthednet.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 dunbarx at aol.com Tue Apr 25 14:57:50 2017 From: dunbarx at aol.com (dunbarx) Date: Tue, 25 Apr 2017 11:57:50 -0700 (PDT) Subject: Primes and primality checking In-Reply-To: <1493141255459-4714234.post@n4.nabble.com> References: <378012CF-F79D-4509-8C64-E85CCCF459CF@byu.edu> <1493141255459-4714234.post@n4.nabble.com> Message-ID: <1493146670770-4714238.post@n4.nabble.com> A modification from the web, similar, adapted to LC: on mouseUp local tNum put fld 2 into tNum put "" into fld 1 put isPrime(tNum) into fld 1 end mouseUp function isPrime pNum if pNum ? 1 then return false if pNum ? 3 then return true if pNum mod 2 = 0 or pNum mod 3 = 0 then return false repeat with y = 5 to sqrt(pNum) if pNum mod y = 0 or pNum mod (y + 2) = 0 then return false else return true end repeat end isPrime Same overflow issue at 309 digits. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Primes-and-primality-checking-tp4714219p4714238.html Sent from the Revolution - User mailing list archive at Nabble.com. From ahsoftware at sonic.net Tue Apr 25 15:33:49 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 25 Apr 2017 12:33:49 -0700 Subject: Primes and primality checking In-Reply-To: References: <378012CF-F79D-4509-8C64-E85CCCF459CF@byu.edu> <1493141255459-4714234.post@n4.nabble.com> Message-ID: <8fd17bff-b802-3cd0-4a6e-3169cccb5072@sonic.net> On 04/25/2017 11:15 AM, Mike Kerner via use-livecode wrote: > Long Math is a longstanding ACL contest theme, and I think we've talked > about it here, before, too, because every language runs into precision > issues - sooner or later you're going to run out of digits in the register. In addition, it's one of those interview coding tests you throw in to see if someone checks their work. -- Mark Wieder ahsoftware at gmail.com From curry at pair.com Tue Apr 25 15:50:38 2017 From: curry at pair.com (Curry Kenworthy) Date: Tue, 25 Apr 2017 15:50:38 -0400 Subject: Make numberFormat even better In-Reply-To: References: Message-ID: <58FFA88E.5040505@pair.com> Roger: > I wouldn't even be here if not for my introduction to > English-like syntax via HyperCard 25+ years ago. My > apparently "not very useful work" over the past 25 years > ... has kept me employed, my family clothed and fed, > a roof over our heads, and all my bills paid. Well said! I'd go even further. There's no need for xTalk users to be on the defensive at all. This looks like a false dilemma on two fronts. Some people are trend-attuned, bandwagonish and when something like JavaScript becomes extremely popular, they feel the need to compromise or follow it beyond the extent which is already dictated by technology. It's possible that nothing will make those people feel comfortable until LC scripting is essentially JS. And later if another language were to overtake JS, they'd want to follow that. That's largely subjective, so I can't really add anything on that side of the equation. Objectively, good syntax is not a limitation. The other front, whether/how to improve numberFormat, does have a real dilemma of limited size, but there's no need for massive changes to the language. Treating integers and reals differently would introduce a variety of problems, I think, starting with the fact that I may have what may look like an integer but I consider a real. I think that approach would violate KISS, and certainly backward compatibility. There may still be little quirks to think about, but there are straightforward ways to make improvements to specific numberFormat limitations without breaking anything. Failing that, I'm happy to keep enjoying the limited role that it does well, and rolling some of my own solutions. :) Best wishes, Curry Kenworthy Custom Software Development http://curryk.com/consulting/ From ambassador at fourthworld.com Tue Apr 25 16:49:49 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 25 Apr 2017 13:49:49 -0700 Subject: Make numberFormat even better In-Reply-To: <58FFA88E.5040505@pair.com> References: <58FFA88E.5040505@pair.com> Message-ID: <441b6520-a44e-cd0d-5608-904a7de939ed@fourthworld.com> Curry Kenworthy wrote: > Some people are trend-attuned, bandwagonish and when something > like JavaScript becomes extremely popular, they feel the need > to compromise or follow it beyond the extent which is already > dictated by technology. It's possible that nothing will make > those people feel comfortable until LC scripting is essentially > JS. And later if another language were to overtake JS, they'd > want to follow that. Where do you find comments like those? I've seen a request or two for true OOP in the forums, and a few for dot notation now and then (FWIW I'm agnostic on the subject), but by and large most folks I know using xTalks like the flavor of the language family. No offense to JavaScript; I enjoy it, along with bash and R, and I even miss some things about Pascal now and then. But I spend more time in LC than the others in large part because the language is more fun. Seems most polyglots I run into feel the same. -- 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 curry at pair.com Tue Apr 25 18:05:35 2017 From: curry at pair.com (Curry Kenworthy) Date: Tue, 25 Apr 2017 18:05:35 -0400 Subject: Make numberFormat even better In-Reply-To: References: Message-ID: <58FFC82F.2030503@pair.com> Mark: > If we made this distinction, then it would be viable to > make it so that numberFormat *only* affects reals: > put 1 + 0 into tInteger > put 1. + 0 into tReal > set the numberFormat to "0.00" > put tInteger , tReal > => "1,1.00" I would expect big problems doing that generally! But it may hint at another workable approach. Doing this for all number to text conversions would be chaotic, because one man's integer is another man's real, and another person would like their integers formatted too. I may have "5" and intend that to be $5.00 or 005. I would expect the new problems and code breakage to be much more extensive than the ones this is intended to solve. > Arrays in LiveCode serve two purposes - both lists > (if integer keyed, dense, starting from 1) and dictionaries > (all other types). But doing the above ONLY for numbers that are going into array keys would be less chaotic, more targeted to the problem. It is intuitive to be able to put a formatted string into an array without worrying about the key changing on you. Then is it necessary to differentiate real vs integer, both for the user's number and the array structure? Or just do it for all array keys? One guy may have a loop incrementing by .1 and expect it to work, another guy may have a mix of integer and text keys. They don't qualify as an LC list array, but considering the formatting a separate issue, should it just work for them too? To me it seems more intuitive to treat all those numbers the same for array key formatting (or nonformatting) purposes. I'm not worrying about how the array keys are stored internally. Either way could be fine with me if it seems consistent, limited to array keys, and a persistent way to turn it off which could also be the backward compatibility solution, default on for new version stacks and off for old ones? > The problem is that I'm not sure it is feasible to extend > the allowed size of integers (having them arbitrary precision > would be really neat!) whilst preserving this graceful > degradation to double (at least not in a performant way). I would consider that a completely separate issue from the formatting (and as above, I think it would be chaotic and break a lot of things to conflate them in general. Plus second-guessing the user's intended type (or nontype) could be frustrating. I firmly believe non-typed is a plus for LC. But as a behind-the-scenes math thing, yes, very useful! Having numbers shift types automatically to retain best precision, without necessarily worrying about what type they are, could be amazing. It would probably still run into problems though, such as two big numbers .1 apart (one an integer) ending up miles apart. So it's another issue to consider on its own merits. Back to formatting, this gives us at least two viable possibilities for the numberFormat array key issue? Not bad! Best wishes, Curry Kenworthy Custom Software Development LiveCode Training and Consulting http://livecodeconsulting.com/ From roland.huettmann at gmail.com Tue Apr 25 20:35:52 2017 From: roland.huettmann at gmail.com (Roland Huettmann) Date: Wed, 26 Apr 2017 02:35:52 +0200 Subject: Make numberFormat even better AND Cognitive Load Message-ID: With reference to the past suggestions, and the last one from Richard Gaskin: "Even if the core team were in a position to drop other priorities to add formatting to fields, they couldn't do it any faster than a scripter who has the advantage of doing it in LiveCode itself." I have been thinking about the underlying reasons why we are discussing. I agree with Richard that a lot of what we have in mind can be done simply using LiveCode script and behaviors for fields. But are we not doing this already most of the time? === AGAIN -- having read all - I vote for the LC-NATIVE "Excel style" number format (enhanced numberFormat in LC, not a new one, no depreciation, but just different ways to achieve the same) and the ability of fields (text controls) to express at least the same styling properties that fields (cells) in Excel support, or text boxes in the web browser without having to write my own functions. I would like to have it "built-in". It is a wish. LiveCode should grow so that the team developing it will consist of 100 core developers. It is a wish. Maybe someone else can help developing. We can fund it. Whatever. It is a wish. And I do not want to stop wishing just because there is "no time left" for the core developer team to care for such minor (???) details. They need more support and more funding in such case. Would they not deserve it? And are there not billions of dollars around, often enough just wasted for what? ))). Why should not a clever large company see LiveCode as a way to enhance their public awareness and sponsor it? === Expanding the "numberformat" going beyond... I favor great visual style and I would love when people start using LiveCode as a development platform even for the web, as a design system, as a way to translate to HTML/CSS, Javascript and PHP using ONE base, as a workshop for great content management systems -- and a lot has been done in this way during the last three years. And I am also asking myself, why am I spending time over and over writing lines of code that are just repeating themselves for me and others, more or less. And my own library is just my own. I use it. I could share it, but it is not part of the community really. (And I feel too shy to share it unless it was reviewed and tested a hundred times.) So basically, we are not so much discussing about ourselves -- at least not when there is some experience gained developing with LiveCode -- we are discussing about the LANGUAGE as we believe it deserves to be spreading out into the world to 100x or 1000x more developers or people wishing to at least using such jewel for their fun at home, for in-house development, just to solve some problems that otherwise would require a professional and very costly setup. We know that we can already solve lots of such questions about formats (number formats, date formats, colors, forms, visual appearance in general) just reverting to scripting. For example, to just have a bottom border underlined, I can of course just use a line object and have it set where I want it to be. But is this really how it should be in today's world? I would rather like to focus on even more abstract levels and not having to care too much about the daily standard routines. I am thinking of the ATTRACTION TO THE LANGUAGE especially for NEWBIES, young people, retired people, who have not much or no experience at all with computer languages. There is a huge market. So, I am stretching out beyond numberFormat -- more into Cognitive Load -- another nice discussion we are having. Why should not retired people have fun developing on a computer? Would not LiveCode be the only and truly ideal way to learn and enjoy results immediately? It can be a business by itself. There are growing numbers of them, millions and millions of retired people who even have all the time to not allowing their brains to rust. It is "just" a question of proper worldwide marketing. Or think of Africa with hundreds of millions of young people who have not much chance to even touch any computer, even if almost every of their elderly brothers and sisters owns a cheap Android phone to be proud of. There are hundreds of millions of young people eager to get involved. And some of them could even make a living using it. And there are funds with hundreds of millions just for such young people. I want the language to shine bright, really be able to compete, and even when acknowledging that it is probably impossible to win much ground against Javascript or PHP or Python. The base for such other languages is too big. The support such languages enjoy from largest companies can not be argued against. But still, I feel, that I would love to see LiveCode gaining ground, be the first choice at least for beginners. (And I say this because I have fun using it.) Who will start with the expanded "numberformat" to be shipped with newer versions? ) Roland P.S. I hope this contribution message is not too much missing the point -- which is specifically "numberformat" and "Cognitive Load" From ambassador at fourthworld.com Tue Apr 25 21:11:16 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 25 Apr 2017 18:11:16 -0700 Subject: Make numberFormat even better AND Cognitive Load In-Reply-To: References: Message-ID: <405fddc3-0fe3-4052-e3f7-1009d92637f2@fourthworld.com> Roland Huettmann wrote: > AGAIN -- having read all - I vote for the LC-NATIVE "Excel style" > number format (enhanced numberFormat in LC, not a new one, no > depreciation, but just different ways to achieve the same) and the > ability of fields (text controls) to express at least the same > styling properties that fields (cells) in Excel support, or text > boxes in the web browser without having to write my own functions. > I would like to have it "built-in". It is a wish. LiveCode should > grow so that the team developing it will consist of 100 core > developers. It is a wish. Maybe someone else can help developing. > We can fund it. Whatever. It is a wish. And I do not want to stop > wishing just because there is "no time left" for the core developer > team to care for such minor (???) details. They need more support and > more funding in such case. I like that. A lot. There are many ways to support a project. Cash is great (they do have a donation button), but so is code. When we think about code contributions, they already have a team far larger than 100s. It's in the thousands. It's us. One of the hardest aspects of this problem is the design. The Excel spec is a guide, but not an implementation. Making that work robustly, flexibly, and sensibly within LiveCode is a considerable design project. And it's a design project that we can do. We can start today. Design doesn't require expertise in C++. The best qualification for designing a solution is a clear understanding of the need. We want this. Can have have this. Having begins with designing, and we can design in script. And once the implementation's design is well honed, we may find we just saved the engine team a boatload of design work. And along the way we have a functional scripted solution we get to use now. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From sims at ezpzapps.com Tue Apr 25 23:23:29 2017 From: sims at ezpzapps.com (sims) Date: Wed, 26 Apr 2017 09:23:29 +0600 Subject: =?utf-8?B?4piBUmU6IHlvdSBoYXZlIHRvIHNlZSB0aGF0?= Message-ID: <1687616096.20170426062329@ezpzapps.com> Hi friend! I've just seen some amazing stuff, you'll definitely like it too, please take a look http://www.gentlegiantsrescue-blind-dogs.com/district.php?d5d4 Very truly yours, sims From sims at ezpzapps.com Tue Apr 25 23:23:29 2017 From: sims at ezpzapps.com (sims) Date: Wed, 26 Apr 2017 04:23:29 +0100 Subject: =?utf-8?B?4p2jYW4gYW1hemluZyBhcnRpY2xl?= Message-ID: <1246912579.20170426062329@ezpzapps.com> Dear! Have you read that article already? It's amazing, and I guess you'll love it, take a look http://www.gentlegiantsrescue-blind-dogs.com/businessman.php?3233 Typos courtesy of my iPhone, sims From jerry at jhjensen.com Tue Apr 25 23:36:17 2017 From: jerry at jhjensen.com (Jerry Jensen) Date: Tue, 25 Apr 2017 20:36:17 -0700 Subject: Please block sims emails Message-ID: Somebody is using sims email to post phishing/spam/malware - I don?t know which because I won?t click it. Please block email from him. Listmom, hello??? From revdev at pdslabs.net Wed Apr 26 00:27:48 2017 From: revdev at pdslabs.net (Phil Davis) Date: Tue, 25 Apr 2017 21:27:48 -0700 Subject: =?UTF-8?Q?Re:_=e2=9d=a3an_amazing_article?= In-Reply-To: <1246912579.20170426062329@ezpzapps.com> References: <1246912579.20170426062329@ezpzapps.com> Message-ID: <5a6abaa1-cfbb-381b-be2d-1c2347552128@pdslabs.net> Well, this is "special". I see the name wasn't merged in. Four years ago I received a spam email where NO data had been merged in - it had curly-bracketed placeholders where data should have been. {_subject}, {mail_from}, {_body_html} and so on. It was actually the most enlightening spam mail I ever received (in that it gave me some insight into how those systems work)! It impressed me so much that I kept it. Best - Phil Davis On 4/25/17 8:23 PM, sims via use-livecode wrote: > Dear! > > Have you read that article already? It's amazing, and I guess you'll love it, take a look http://www.gentlegiantsrescue-blind-dogs.com/businessman.php?3233 > > Typos courtesy of my iPhone, sims > > _______________________________________________ > use-livecode mailing list > use-livecode 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 jacque at hyperactivesw.com Wed Apr 26 01:03:39 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 26 Apr 2017 00:03:39 -0500 Subject: Please block sims emails In-Reply-To: References: Message-ID: <2c6bf65b-cd6c-95e6-3b28-2bea41d6bbcc@hyperactivesw.com> On 4/25/17 10:36 PM, Jerry Jensen via use-livecode wrote: > Somebody is using sims email to post phishing/spam/malware - I don?t > know which because I won?t click it. He frequently gets infected with malware. But I rather liked this set. "Dear!" I wanted to respond, "Darling!!" -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Apr 26 01:20:37 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 26 Apr 2017 00:20:37 -0500 Subject: =?UTF-8?Q?Re:_=e2=9d=a3an_amazing_article_[Now_way_off_topic]?= In-Reply-To: <5a6abaa1-cfbb-381b-be2d-1c2347552128@pdslabs.net> References: <1246912579.20170426062329@ezpzapps.com> <5a6abaa1-cfbb-381b-be2d-1c2347552128@pdslabs.net> Message-ID: On 4/25/17 11:27 PM, Phil Davis via use-livecode wrote: > Well, this is "special". I see the name wasn't merged in. As long as we're talking about spam/malware, maybe someone here knows what happened to me two days ago. I've written to PayPal (no response) and done searches without any real info and only a handful of hits. Firefox received an update and on relaunch it attempted to reload all previously open tabs. A small second window appeared and tried to load this URL: https://www.paypal.com/webapps/hermes/fallback?product=ec&token=BA-4BN59940BV228700C&fallback=1&reason=bootstrap_failed&Z3JncnB0= The window went into a loop, waiting for a response and retrying until I cancelled the reload. I had cookies blocked and no PayPal tabs were open or involved. I always log out of PayPal and close the tab when I'm done, and was logged out when this happened. Firefox was reloading 7 tabs, none pointing to PayPal (Asana, Slack, Google Drive, and other well known sites.) I quit and re-launched and got the same thing with the same URL, but with a different token. This spooked me. The URL points to an error page on PayPal that says, basically, that something went wrong with the transaction and my account hadn't been charged. I don't keep any financial passwords in Firefox so I'm not worried about that, but how did that happen? Yesterday Firefox had another update, right on the heels of the first. Rather than click the Update button, I went to Mozilla and downloaded the file manually. I closed all open tabs and quit Firefox, then launched the new update. No ill effects. Wha..? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From cubist at aol.com Wed Apr 26 02:35:53 2017 From: cubist at aol.com (Quentin Long) Date: Wed, 26 Apr 2017 02:35:53 -0400 Subject: An anomaly in the "read from file" command? In-Reply-To: References: Message-ID: <15ba8f92b6d-6080-12e8c@webstg-a07.mail.aol.com> First off, thanks to Alan Stenhouse for zeroing in on my filter-related mistake. Any number fo people *could* have done so, but it was Alan who actually did the deed. So, yay Alan! Second: I discovered something odd as a result of another mistake I made. My mistake: ask file "What do you want to read?" put it into DisFile read from file DisFile until EOF put it into fld "This Field" What went into field "This Field" was the contents of the *variable* DisFile, *not* the contents of the *file* whose name is stored in the variable DisFile. This is because of how the pseudo-variable "it" behaves, i suspect. My mistake was that I didn't *open* file DisFile before reading it, of course. And once I did open the file, the reading went on normally, and the contents of the field did indeed end up in the field "This Field". So, bad on me for not opening the file first, good on me for recognizing & fixing that lapse without external assistance. But I do have a question: Why didn't I get an error message when I tried to read from a file that hadn't been opened yet? Shouldn't LiveCode have gotten fussy about that? "Bewitched" + "Charlie's Angels" - Charlie = "At Arm's Length" Read the webcomic at [?http://www.atarmslength.net?]! If you like "At Arm's Length", support it at [?http://www.patreon.com/DarkwingDude?]. From mark at livecode.com Wed Apr 26 02:38:21 2017 From: mark at livecode.com (Mark Waddingham) Date: Wed, 26 Apr 2017 08:38:21 +0200 Subject: An anomaly in the "read from file" =?UTF-8?Q?command=3F?= In-Reply-To: <15ba8f92b6d-6080-12e8c@webstg-a07.mail.aol.com> References: <15ba8f92b6d-6080-12e8c@webstg-a07.mail.aol.com> Message-ID: <69acea65fd38329e055801db8edf3733@livecode.com> On 2017-04-26 08:35, Quentin Long via use-livecode wrote: > ask file "What do you want to read?" > put it into DisFile > read from file DisFile until EOF > put it into fld "This Field" > > Why didn't I get an error message when I tried to read from a file > that hadn't been opened yet? Shouldn't LiveCode have gotten fussy > about that? The read / write file commands both set 'the result' if there is an error with the operation requested - in this case it would be set to something like 'file not open'. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Wed Apr 26 02:43:27 2017 From: mark at livecode.com (Mark Waddingham) Date: Wed, 26 Apr 2017 08:43:27 +0200 Subject: Primes and primality checking In-Reply-To: <378012CF-F79D-4509-8C64-E85CCCF459CF@byu.edu> References: <378012CF-F79D-4509-8C64-E85CCCF459CF@byu.edu> Message-ID: On 2017-04-25 17:01, Devin Asay via use-livecode wrote: > However, it doesn?t seem to be reliable for very large numbers (> 100 > digits) as the fellow wants. My math skills are pretty creaky. Anybody > want a crack at this? It?s a fun challenge, plus it can boost LC?s > presence on stackoverflow. You can only represent integers up to around 2^53 without losing precision (as they are represented using IEEE doubles) which means the maximum number you can check for primality using this method is around 9007199254740992. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From curry at pair.com Wed Apr 26 05:31:57 2017 From: curry at pair.com (Curry Kenworthy) Date: Wed, 26 Apr 2017 05:31:57 -0400 Subject: Make numberFormat even better AND Cognitive Load In-Reply-To: References: Message-ID: <5900690D.40803@pair.com> Roland: > I vote for the LC-NATIVE "Excel style" number format > (enhanced numberFormat in LC, not a new one, no > depreciation, but just different ways to achieve the same) Excel number format is powerful and popular, that's for sure. Richard: > The Excel spec is a guide, but not an implementation. > Making that work robustly, flexibly, and sensibly within > LiveCode is a considerable design project. SpreadLib supports a portion of the Excel number and date formatting, a good start on that effort and with some lessons learned. Excel does have its quirks like everything else. Over time I've also chosen my own favorite "Curry Lite" formatting features, with the convenience of a single code for both positive and negative. I tried some tests with that style, and here are the results: http://curryk.com/ck-num-format.png I can choose where to put a negative sign or parentheses, and include arbitrary text. Maybe I can break that out into a separate formatting library. Still want to try some of the crazier things that Excel can do. :) Best wishes, Curry Kenworthy From hakima.manseri at cnrs.fr Wed Apr 26 06:41:45 2017 From: hakima.manseri at cnrs.fr (Hakima Manseri) Date: Wed, 26 Apr 2017 12:41:45 +0200 Subject: Application not working with MacOSX 10.6 (maybe due to tsNet) In-Reply-To: <55fa6655-d089-29da-e221-e247646d54ec@cnrs.fr> References: <2FB56F10-48F8-4A22-B6C9-A035EEA25FDA@laposte.net> <55fa6655-d089-29da-e221-e247646d54ec@cnrs.fr> Message-ID: <987b02f5-b174-4da0-9a35-19fcf625fcef@cnrs.fr> Hi again, the new standalone does leunch on 10.6 but tsNet with LiveCode 8.0 doesn't seem include SFTP support. Is that the case or have we messed up somewhere ? Thanks again for your help. Cheers, Hakima Le 25/04/2017 ? 17:57, Hakima Manseri via use-livecode a ?crit : > I'll look into that. > Thanks ! > > > Le 25/04/2017 ? 17:52, Ludovic THEBAULT via use-livecode a ?crit : >>> Le 25 avr. 2017 ? 17:47, Hakima Manseri via use-livecode >>> a ?crit : >>> >>> Hi everyone, >>> >>> I'm a LC newbie and have been trying to use an application a >>> colleague is developping with LiveCode 8.1.3 >>> >>> It works with MacOSX 10.9 and above but fails to launch for previous >>> version. This was surprising since we thought LiveCode was still >>> compatible with the 10.6 version. >>> >>> I have this message in the log : >>> >>>> Apr 17 20:49:15 myuser myapp[787]: *** >>>> __NSAutoreleaseNoPool(): Object 0xd82460 of class NSMachPort >>>> autoreleased with no pool in place - just leaking >>>> Apr 17 20:49:16 myuser myapp[787]: Error loading >>>> /Users/myuser/myapp.app/Contents/MacOS/Externals/tsNet.bundle/Contents/MacOS/tsNet: >>>> >>>> dlopen(/Users/myuser/myapp.app/Contents/MacOS/Externals/tsNet.bundle/Contents/MacOS/tsNet, >>>> 262): Symbol not found: _kSecImportExportPassphrase\n Referenced from: >>>> /Users/myuser/myapp.app/Contents/MacOS/Externals/tsNet.bundle/Contents/MacOS/tsNet\n >>>> Expected in: >>>> /System/Library/Frameworks/Security.framework/Versions/A/Security\n in >>>> /Users/myuser/myapp.app/Contents/MacOS/Externals/tsNet.bundle/Contents/MacOS/tsNet >>>> >>>> Apr 17 20:49:16: --- last message repeated 1 time --- >>>> Apr 17 20:49:16 myuser [0x0-0x40040].myapp-Org.[787]: Startup error >>>> - failed to load external >>>> Apr 17 20:49:16 myuser com.apple.launchd.peruser.501[208] >>>> ([0x0-0x40040].myapp-Org.[787]): Exited with exit code: 255 >>> I've looked up the "_kSecImportExportPassphrase" variable and it >>> seems that there may be a difference between iOS and MacOSX >>> regarding this variable : >>> http://stackoverflow.com/questions/17348420/private-key-signature-different-on-ios-and-macosx#17349506 >>> >>> So is tsNet the culprit ? Or is this a problem in the way we add the >>> external ? Or something else ? >>> >>> Thanks in advance for your help. >>> >>> Hakima >>> >> See http://quality.livecode.com/show_bug.cgi?id=19035 >> >> >> Workaround : compile standalone with Livecode 8.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 > > -- Hakima Manseri Ing?nieure d?veloppement et bases de donn?es T?l : 04 67 14 58 42 Site : http://asm.cnrs.fr/ Dev at LR : http://devatlr.univ-montp2.fr/ From roland.huettmann at gmail.com Wed Apr 26 08:38:25 2017 From: roland.huettmann at gmail.com (Roland Huettmann) Date: Wed, 26 Apr 2017 14:38:25 +0200 Subject: Make numberFormat even better Message-ID: Thank you, Richard, Curry, Mark... It is a very nice approach that Curry already realized: and it is available: http://curryk.com/ck-num-format.pngn better But what I do not yet understand is how to make a joint effort with hundreds of developers ))) available to ALL of us in practical terms -- seamlessly. For any newbie and for those using formatting all the time, do we have to load a separate library or would it be supported out of the IDE? For example, could the numberFormat or format() functions be overwritten so that simply using LiveCode Script it would work the way we defined and this out of the engine? Or is it a new function? And could it be shipped with the product if approved? Again, we are thinking of Excel style formatting that any user, even non-programmers, often enough know about. And how can we contribute? Is it a joint effort where someone is delegating the task? Or is it the work of someone taking the time to write it for ALL of us? And, also I wrote about this, I feel a bit shy to think that I could provide code that would or could really be seen as a viable contribution. I do not know what really makes LiveCode Script be quality code? Is there any guide telling that such LiveCode Script following certain style and rules and using the best performant way will be accepted as "quality code"? I know about naming variables (naming conventions), and I assume that comments could also follow style (comments disabling parts of code, comments to the code, etc.), and even possibly assigning variable names that are common to everybody -- for example, I have a style to always name sames types of variables the same way: For example for variables containing file information: tFileName (with extension), tFilePath (full absolute path), tFolderPath (without ending slash), tShortFileName (without extension), tFileExtension (just the extension), or i, j, k... as counters. Because I am lazy, I find such conventions (for private use, or for community use) very helpful. I assume there are 30-50 standardized names that could be shared to make code easily readable and that also newbies should know about. Then, again to be practical, how would we name fields and how would we name custom properties indicating how code should work with a field and format such field? Assumed, there is a currency style field with a format such as "$#,###.00":= "$1,000.00" where a style property would be set for this field. This field also serves as a database field and should "know" to which data source it is connected and also may know in which order database fields appear. That is another custom property. So, a command saving to the database would look up all such fields, convert strings to numbers the database understands, already know the underlying database field name without any further scripting, and simply saves whatever is there. And, yes, there is a behavior script assigned to such field - and it depends whether data is entered manually, or it is put into the field through a script. Another field could present a scientific notation and accept and display scientific notations. This can grow to become a very dynamic behavior when strictly following a certain style that is used by everybody. Or am I thinking into the wrong direction? I am not worrying doing it for myself. I am more thinking when we are offering this as an adopted standard. With dates, there is always a problem in Central Europe because the system date displays a date string that is not seen by the engine to be a date. It is NOT a date for LiveCode Script. Here, we have DD/MM/YYY or DD.MM.YYYY. So, I must always convert such date anyway to allow LiveCode testing it to be a valid date. For SQLite and other databases we need it to be "YYYY-MM-DD" and internally we might just use the seconds. Then, adding field "A" of type date to field "B" of type date (or variables/arrays representing such fields) should result in a new date without even having to think. And I assume it would be best for users setting the field format using a context menu clicking on the field in questions and setting such behavior and formatting options -- if this is not part of the Property Inspector. Such context menu could open some Settings pane when needed. Or can we, should we, simple users, modify the Property Inspector? I assume it would be best if someone following the guides and with deep experience would implement while the rest of us could contribute with testing, discussing, etc. ? And because of all this, and for joint work especially, I would really appreciate more standards, more guides for "best practice", even strict rules -- not to make things not work when breaking such rules, but to make things easier and more transparent in the other 99% of cases. Roland From MikeKerner at roadrunner.com Wed Apr 26 08:51:31 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 26 Apr 2017 08:51:31 -0400 Subject: Please block sims emails In-Reply-To: <2c6bf65b-cd6c-95e6-3b28-2bea41d6bbcc@hyperactivesw.com> References: <2c6bf65b-cd6c-95e6-3b28-2bea41d6bbcc@hyperactivesw.com> Message-ID: Since this is the nth time, can we have probation? On Wed, Apr 26, 2017 at 1:03 AM, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > On 4/25/17 10:36 PM, Jerry Jensen via use-livecode wrote: > >> Somebody is using sims email to post phishing/spam/malware - I don?t >> know which because I won?t click it. >> > > He frequently gets infected with malware. But I rather liked this set. > "Dear!" I wanted to respond, "Darling!!" > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From peter.brett at livecode.com Wed Apr 26 08:53:30 2017 From: peter.brett at livecode.com (Peter TB Brett) Date: Wed, 26 Apr 2017 13:53:30 +0100 Subject: Application not working with MacOSX 10.6 (maybe due to tsNet) In-Reply-To: <987b02f5-b174-4da0-9a35-19fcf625fcef@cnrs.fr> References: <2FB56F10-48F8-4A22-B6C9-A035EEA25FDA@laposte.net> <55fa6655-d089-29da-e221-e247646d54ec@cnrs.fr> <987b02f5-b174-4da0-9a35-19fcf625fcef@cnrs.fr> Message-ID: <3e8dc8c2-d72b-f310-6ad2-343e1f2c2189@livecode.com> On 26/04/2017 11:41, Hakima Manseri via use-livecode wrote: > Hi again, > > the new standalone does leunch on 10.6 but tsNet with LiveCode 8.0 > doesn't seem include SFTP support. > Is that the case or have we messed up somewhere ? tsNet is only included in LiveCode 8.1.0 or later. Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From rdimola at evergreeninfo.net Wed Apr 26 09:22:02 2017 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 26 Apr 2017 09:22:02 -0400 Subject: Please block sims emails In-Reply-To: <2c6bf65b-cd6c-95e6-3b28-2bea41d6bbcc@hyperactivesw.com> References: <2c6bf65b-cd6c-95e6-3b28-2bea41d6bbcc@hyperactivesw.com> Message-ID: <001c01d2be90$1844dd20$48ce9760$@net> >Jacqueline Landman Gay wrote: >He frequently gets infected with malware. But I rather liked this set. >"Dear!" I wanted to respond, "Darling!!" Now I'm laughing... And just when I thought this was another day in cyber land. Do you do standup? Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From prothero at earthlearningsolutions.org Wed Apr 26 09:39:25 2017 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Wed, 26 Apr 2017 06:39:25 -0700 Subject: Make numberFormat even better AND Cognitive Load In-Reply-To: <5900690D.40803@pair.com> References: <5900690D.40803@pair.com> Message-ID: Curry, This is great and best of all is the table of examples. This, in the dictionary, would have made my thrashing around with format, to get what In wanted a lot easier. Bill William Prothero http://es.earthednet.org > On Apr 26, 2017, at 2:31 AM, Curry Kenworthy via use-livecode wrote: > > > Roland: > >> I vote for the LC-NATIVE "Excel style" number format >> (enhanced numberFormat in LC, not a new one, no >> depreciation, but just different ways to achieve the same) > > Excel number format is powerful and popular, that's for sure. > > Richard: > >> The Excel spec is a guide, but not an implementation. >> Making that work robustly, flexibly, and sensibly within >> LiveCode is a considerable design project. > > SpreadLib supports a portion of the Excel number and date formatting, a good start on that effort and with some lessons learned. Excel does have its quirks like everything else. > > Over time I've also chosen my own favorite "Curry Lite" formatting features, with the convenience of a single code for both positive and negative. I tried some tests with that style, and here are the results: > > http://curryk.com/ck-num-format.png > > > > I can choose where to put a negative sign or parentheses, and include arbitrary text. Maybe I can break that out into a separate formatting library. Still want to try some of the crazier things that Excel can do. :) > > Best wishes, > > Curry Kenworthy > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthlearningsolutions.org Wed Apr 26 10:00:51 2017 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Wed, 26 Apr 2017 07:00:51 -0700 Subject: Make numberFormat even better AND Cognitive Load In-Reply-To: <5900690D.40803@pair.com> References: <5900690D.40803@pair.com> Message-ID: <39381260-3484-479B-A3C3-63D5A66847AE@earthlearningsolutions.org> Folks, This thread addresses two issues with numbers. The main issue being discussed is the display of numbers. This is very important and the main point of diddling with numberformat. I like the idea of making a behavior we can all use to format numbers in a variety of ways. The other one is the internal representation of numbers in the engine. Currently, it seems there are either strings or numbers and the engine converts between the two, depending on rules that it carries internally. It's partially my bad that this issue got incorporated into this thread. But where I saw the problem was in the discussion of array keys and how the engine treated a[1] different from a[01]. It's really the way arrays work and that the keys are really text, not numbers (at least, that's what I understand from the discussion). I use arrays a lot and love them for this. They become a bit inconvenient when all I want is a numerically indexed array without gaps. But it's only a minor issue for me. When it comes to integers, I only need to decide whether to round or trunc a value. When speed issues arise, the most transparent way of dealing with this would be to declare an integer type variable, and the engine would then treat all instances of that variable as an integer. We already declare variables as local or global, and I see no conflict with the xTalk language philosophy in adding that property to a variable. Ok, I'll shut up about this for now. Sorry to unfocus the thread. Best, Bill P William Prothero http://es.earthednet.org > On Apr 26, 2017, at 2:31 AM, Curry Kenworthy via use-livecode wrote: > > > Roland: > >> I vote for the LC-NATIVE "Excel style" number format >> (enhanced numberFormat in LC, not a new one, no >> depreciation, but just different ways to achieve the same) > > Excel number format is powerful and popular, that's for sure. > > Richard: > >> The Excel spec is a guide, but not an implementation. >> Making that work robustly, flexibly, and sensibly within >> LiveCode is a considerable design project. > > SpreadLib supports a portion of the Excel number and date formatting, a good start on that effort and with some lessons learned. Excel does have its quirks like everything else. > > Over time I've also chosen my own favorite "Curry Lite" formatting features, with the convenience of a single code for both positive and negative. I tried some tests with that style, and here are the results: > > http://curryk.com/ck-num-format.png > > > > I can choose where to put a negative sign or parentheses, and include arbitrary text. Maybe I can break that out into a separate formatting library. Still want to try some of the crazier things that Excel can do. :) > > Best wishes, > > Curry Kenworthy > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Wed Apr 26 11:14:10 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 26 Apr 2017 08:14:10 -0700 Subject: Make numberFormat even better In-Reply-To: References: Message-ID: <158bf4bb-6db5-16cd-9618-642387125ecc@fourthworld.com> Roland Huettmann wrote: > It is a very nice approach that Curry already realized: and it is > available: > http://curryk.com/ck-num-format.pngn better That does look very nice indeed. If that formatting is factored in a way that would lend itself to a generalized behavior script for fields, and if Curry or Hugh were inclined to contribute some existing code it would help the project get a running start. > But what I do not yet understand is how to make a joint effort with > hundreds of developers ))) available to ALL of us in practical terms > seamlessly. In more popular languages like Python or R, or pretty much any open source tool (among programming languages that would be nearly all of them), what we commonly see is one person with an itch to scratch writes a something to fit their needs, posts it to a code-sharing repository like Github, and others come along an augment it. Over time it grows into an ever more mature, robust, general-purpose solution, but even out of the starting gate it's useful, and only gets better over time. A small project of this scope wouldn't need hundreds of developers. I can't imagine more than half a dozen contributing to it. Most of the coding could be done by one person in less than a day. Where more eyeballs may be most useful would be in the design. The property names need to make sense, and ideally there would be ways to use this for list columns in addition to individual fields, so we'd need to come up with a sensible way to handle that. We'd probably want to ask ourselves if this should be a function or a property? As a property it feels most natural, applying formatting specs to a given object. But there are tradeoffs there, including being able to have only one behavior script applied to an object, and the issue with getProp and setProp being unreliable in any environment in which the lockMessages might be set to true. As a function it would be far simpler to design, but would require the user to code for it, rather than having it be a property you set once and never need to think about it again. There may be other options too. And the choice of whether such a library be written in LC Script or LC Builder. The latter offers direct support for documentation and Inspector options (though it would certainly be useful to see those options available for LC Script as well, though that's another discussion). We could brainstorm those design aspects here and now if we want. > For any newbie and for those using formatting all the time, do we > have to load a separate library or would it be supported out of the > IDE? For example, could the numberFormat or format() functions be > overwritten so that simply using LiveCode Script it would work the > way we defined and this out of the engine? By design LC does not allow overriding built-in functions the way HyperCard used to. When I asked Dr. Raney about this decision, he asked me to observe the execution speed difference between the two, and noted that his token table was kept very trim with this decision. He also invited me to come up with a case in which it was truly necessary to override built-in functions as opposed to using a new name for the new function. In all these years I couldn't come up with one. So in short, I think a new name for new functionality may be best. > Or is it a new function? And could it be shipped with the product if > approved? Again, we are thinking of Excel style formatting that any > user, even non-programmers, often enough know about. To be included in the LC install it needs to be good, and if implemented as a function it may perhaps eventually be included with the other handlers currently in the revCommon lib. But that would require that it be field-tested, so early adopters would first use it as a library or behavior they download and install. It may be that the engine team may later borrow some of the design from the scripted version for inclusion in the engine. But until Mark Waddingham posts "Yes, we have time and will do that this week" we'll need to consider options that aren't dependent on the engine team. And as Curry and Hugh have shown, these things can be done by a single person in script, valuable even as add-ons. [I was tempted to write a rant about package managers here, about how every popular language has one and we don't, and the relationship between platform adoption and the ease with which one can find and use extensions.....but that's probably best left for another thread.] > Is there any guide telling that such LiveCode Script following certain > style and rules and using the best performant way will be accepted as > "quality code"? At the bottom of the "Contributing" page for the LC code base there are links to C++ style guides: https://github.com/livecode/livecode/blob/develop/CONTRIBUTING.md I don't know of such a guide for scripted contributions. That would be a good addition if anyone here wants to work with Panos or someone else on the team to draft that. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dochawk at gmail.com Wed Apr 26 11:29:54 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 26 Apr 2017 08:29:54 -0700 Subject: Please block sims emails In-Reply-To: <2c6bf65b-cd6c-95e6-3b28-2bea41d6bbcc@hyperactivesw.com> References: <2c6bf65b-cd6c-95e6-3b28-2bea41d6bbcc@hyperactivesw.com> Message-ID: On Tue, Apr 25, 2017 at 10:03 PM, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > He frequently gets infected with malware. But I rather liked this set. > "Dear!" I wanted to respond, "Darling!!" > One of the reasons I hang around the Knights of Columbus so much is it's the only place I get called "young man" any more . . . :) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From mark at livecode.com Wed Apr 26 11:42:17 2017 From: mark at livecode.com (Mark Waddingham) Date: Wed, 26 Apr 2017 17:42:17 +0200 Subject: Make numberFormat even better AND Cognitive Load In-Reply-To: <39381260-3484-479B-A3C3-63D5A66847AE@earthlearningsolutions.org> References: <5900690D.40803@pair.com> <39381260-3484-479B-A3C3-63D5A66847AE@earthlearningsolutions.org> Message-ID: <9e55be424208b83afe4c4f92169cec1e@livecode.com> On 2017-04-26 16:00, prothero--- via use-livecode wrote: > Ok, I'll shut up about this for now. Sorry to unfocus the thread. To be fair, I managed to conflate three issues: 1) Improving numberFormat 2) How we could get arbitrary precision integers whilst retaining doubles for reals 3) How to make numberFormat and array keys play nice together They are all distinct issues really, although the numberFormat is involved in all three (at least in some way) :) Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From andrew at midwestcoastmedia.com Wed Apr 26 12:23:00 2017 From: andrew at midwestcoastmedia.com (andrew at midwestcoastmedia.com) Date: Wed, 26 Apr 2017 16:23:00 +0000 Subject: Font embedding for iOS in LC9 In-Reply-To: Message-ID: <20170426162300.Horde._VQdPQB2ou22DTKyjtR08Da@ua850258.serversignin.com> > Try with 8 to make sure fonts work. There is a font bug in 9 on devices > with retina screens. I should have searched the bug list first and I would have seen #19358 which describes this issue. I just did a build using 8.1.4rc1 with the same exact code base and the fonts work fine. Haven't had a chance yet to try the workaround that Keith Martin had mentioned @ http://thehelpful.com/iosfonts/ --Andrew Bell From hakima.manseri at cnrs.fr Wed Apr 26 12:28:18 2017 From: hakima.manseri at cnrs.fr (Hakima Manseri) Date: Wed, 26 Apr 2017 18:28:18 +0200 Subject: Application not working with MacOSX 10.6 (maybe due to tsNet) In-Reply-To: <3e8dc8c2-d72b-f310-6ad2-343e1f2c2189@livecode.com> References: <2FB56F10-48F8-4A22-B6C9-A035EEA25FDA@laposte.net> <55fa6655-d089-29da-e221-e247646d54ec@cnrs.fr> <987b02f5-b174-4da0-9a35-19fcf625fcef@cnrs.fr> <3e8dc8c2-d72b-f310-6ad2-343e1f2c2189@livecode.com> Message-ID: <06b3d644-7568-6912-f5b6-a7a5a4702e5f@cnrs.fr> With 8.1, it doesn't work. Is this bug corrected or do we give up on MacOSX 10.6 ? Hakima Le 26/04/2017 ? 14:53, Peter TB Brett via use-livecode a ?crit : > > > On 26/04/2017 11:41, Hakima Manseri via use-livecode wrote: >> Hi again, >> >> the new standalone does leunch on 10.6 but tsNet with LiveCode 8.0 >> doesn't seem include SFTP support. >> Is that the case or have we messed up somewhere ? > > tsNet is only included in LiveCode 8.1.0 or later. > > Peter > -- Hakima Manseri Ing?nieure d?veloppement et bases de donn?es T?l : 04 67 14 58 42 Site : http://asm.cnrs.fr/ Dev at LR : http://devatlr.univ-montp2.fr/ From merakosp at gmail.com Wed Apr 26 12:37:07 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Wed, 26 Apr 2017 17:37:07 +0100 Subject: Application not working with MacOSX 10.6 (maybe due to tsNet) In-Reply-To: <06b3d644-7568-6912-f5b6-a7a5a4702e5f@cnrs.fr> References: <2FB56F10-48F8-4A22-B6C9-A035EEA25FDA@laposte.net> <55fa6655-d089-29da-e221-e247646d54ec@cnrs.fr> <987b02f5-b174-4da0-9a35-19fcf625fcef@cnrs.fr> <3e8dc8c2-d72b-f310-6ad2-343e1f2c2189@livecode.com> <06b3d644-7568-6912-f5b6-a7a5a4702e5f@cnrs.fr> Message-ID: Hi Hakima, This bug will be fixed in a future release. Best, Panos -- On Wed, Apr 26, 2017 at 5:28 PM, Hakima Manseri via use-livecode < use-livecode at lists.runrev.com> wrote: > With 8.1, it doesn't work. > Is this bug corrected or do we give up on MacOSX 10.6 ? > > Hakima > > Le 26/04/2017 ? 14:53, Peter TB Brett via use-livecode a ?crit : > >> >> >> On 26/04/2017 11:41, Hakima Manseri via use-livecode wrote: >> >>> Hi again, >>> >>> the new standalone does leunch on 10.6 but tsNet with LiveCode 8.0 >>> doesn't seem include SFTP support. >>> Is that the case or have we messed up somewhere ? >>> >> >> tsNet is only included in LiveCode 8.1.0 or later. >> >> Peter >> >> > > -- > Hakima Manseri > Ing?nieure d?veloppement et bases de donn?es > > T?l : 04 67 14 58 42 > Site : http://asm.cnrs.fr/ > Dev at LR : http://devatlr.univ-montp2.fr/ > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 26 12:38:02 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Wed, 26 Apr 2017 17:38:02 +0100 Subject: Application not working with MacOSX 10.6 (maybe due to tsNet) In-Reply-To: References: <2FB56F10-48F8-4A22-B6C9-A035EEA25FDA@laposte.net> <55fa6655-d089-29da-e221-e247646d54ec@cnrs.fr> <987b02f5-b174-4da0-9a35-19fcf625fcef@cnrs.fr> <3e8dc8c2-d72b-f310-6ad2-343e1f2c2189@livecode.com> <06b3d644-7568-6912-f5b6-a7a5a4702e5f@cnrs.fr> Message-ID: If you have not done it already, I suggest you add your email in the cc list of this bug report, so as you get notified when the bug is fixed. On Wed, Apr 26, 2017 at 5:37 PM, panagiotis merakos wrote: > Hi Hakima, > > This bug will be fixed in a future release. > > Best, > Panos > -- > > On Wed, Apr 26, 2017 at 5:28 PM, Hakima Manseri via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> With 8.1, it doesn't work. >> Is this bug corrected or do we give up on MacOSX 10.6 ? >> >> Hakima >> >> Le 26/04/2017 ? 14:53, Peter TB Brett via use-livecode a ?crit : >> >>> >>> >>> On 26/04/2017 11:41, Hakima Manseri via use-livecode wrote: >>> >>>> Hi again, >>>> >>>> the new standalone does leunch on 10.6 but tsNet with LiveCode 8.0 >>>> doesn't seem include SFTP support. >>>> Is that the case or have we messed up somewhere ? >>>> >>> >>> tsNet is only included in LiveCode 8.1.0 or later. >>> >>> Peter >>> >>> >> >> -- >> Hakima Manseri >> Ing?nieure d?veloppement et bases de donn?es >> >> T?l : 04 67 14 58 42 >> Site : http://asm.cnrs.fr/ >> Dev at LR : http://devatlr.univ-montp2.fr/ >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From MikeKerner at roadrunner.com Wed Apr 26 12:38:54 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 26 Apr 2017 12:38:54 -0400 Subject: Font embedding for iOS in LC9 In-Reply-To: <20170426162300.Horde._VQdPQB2ou22DTKyjtR08Da@ua850258.serversignin.com> References: <20170426162300.Horde._VQdPQB2ou22DTKyjtR08Da@ua850258.serversignin.com> Message-ID: we really, really, really need a central repo On Wed, Apr 26, 2017 at 12:23 PM, Andrew Bell via use-livecode < use-livecode at lists.runrev.com> wrote: > Try with 8 to make sure fonts work. There is a font bug in 9 on devices >> with retina screens. >> > > I should have searched the bug list first and I would have seen #19358 > which describes this issue. I just did a build using 8.1.4rc1 with the same > exact code base and the fonts work fine. > > Haven't had a chance yet to try the workaround that Keith Martin had > mentioned @ http://thehelpful.com/iosfonts/ > > --Andrew Bell > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From hakima.manseri at cnrs.fr Wed Apr 26 12:42:09 2017 From: hakima.manseri at cnrs.fr (Hakima Manseri) Date: Wed, 26 Apr 2017 18:42:09 +0200 Subject: Application not working with MacOSX 10.6 (maybe due to tsNet) In-Reply-To: References: <2FB56F10-48F8-4A22-B6C9-A035EEA25FDA@laposte.net> <55fa6655-d089-29da-e221-e247646d54ec@cnrs.fr> <987b02f5-b174-4da0-9a35-19fcf625fcef@cnrs.fr> <3e8dc8c2-d72b-f310-6ad2-343e1f2c2189@livecode.com> <06b3d644-7568-6912-f5b6-a7a5a4702e5f@cnrs.fr> Message-ID: Will do ! Thanks. Le 26/04/2017 ? 18:38, panagiotis merakos via use-livecode a ?crit : > If you have not done it already, I suggest you add your email in the cc > list of this bug report, so as you get notified when the bug is fixed. > > On Wed, Apr 26, 2017 at 5:37 PM, panagiotis merakos > wrote: > >> Hi Hakima, >> >> This bug will be fixed in a future release. >> >> Best, >> Panos >> -- >> >> On Wed, Apr 26, 2017 at 5:28 PM, Hakima Manseri via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> With 8.1, it doesn't work. >>> Is this bug corrected or do we give up on MacOSX 10.6 ? >>> >>> Hakima >>> >>> Le 26/04/2017 ? 14:53, Peter TB Brett via use-livecode a ?crit : >>> >>>> >>>> On 26/04/2017 11:41, Hakima Manseri via use-livecode wrote: >>>> >>>>> Hi again, >>>>> >>>>> the new standalone does leunch on 10.6 but tsNet with LiveCode 8.0 >>>>> doesn't seem include SFTP support. >>>>> Is that the case or have we messed up somewhere ? >>>>> >>>> tsNet is only included in LiveCode 8.1.0 or later. >>>> >>>> Peter >>>> >>>> >>> -- >>> Hakima Manseri >>> Ing?nieure d?veloppement et bases de donn?es >>> >>> T?l : 04 67 14 58 42 >>> Site : http://asm.cnrs.fr/ >>> Dev at LR : http://devatlr.univ-montp2.fr/ >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Hakima Manseri Ing?nieure d?veloppement et bases de donn?es T?l : 04 67 14 58 42 Site : http://asm.cnrs.fr/ Dev at LR : http://devatlr.univ-montp2.fr/ From MikeKerner at roadrunner.com Wed Apr 26 12:43:27 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 26 Apr 2017 12:43:27 -0400 Subject: Make numberFormat even better In-Reply-To: <158bf4bb-6db5-16cd-9618-642387125ecc@fourthworld.com> References: <158bf4bb-6db5-16cd-9618-642387125ecc@fourthworld.com> Message-ID: Whenever we decide we're done with this, someone needs to send me the code and I'll throw it up on github, since I'd like to have a central repo for helpful code, especially since with git and levure we have a pretty easy way of adding those modules to our projects. On Wed, Apr 26, 2017 at 11:14 AM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Roland Huettmann wrote: > > > It is a very nice approach that Curry already realized: and it is > > available: > > http://curryk.com/ck-num-format.pngn better > > That does look very nice indeed. If that formatting is factored in a way > that would lend itself to a generalized behavior script for fields, and if > Curry or Hugh were inclined to contribute some existing code it would help > the project get a running start. > > > > But what I do not yet understand is how to make a joint effort with > > hundreds of developers ))) available to ALL of us in practical terms > > seamlessly. > > In more popular languages like Python or R, or pretty much any open source > tool (among programming languages that would be nearly all of them), what > we commonly see is one person with an itch to scratch writes a something to > fit their needs, posts it to a code-sharing repository like Github, and > others come along an augment it. Over time it grows into an ever more > mature, robust, general-purpose solution, but even out of the starting gate > it's useful, and only gets better over time. > > A small project of this scope wouldn't need hundreds of developers. I > can't imagine more than half a dozen contributing to it. Most of the > coding could be done by one person in less than a day. > > Where more eyeballs may be most useful would be in the design. The > property names need to make sense, and ideally there would be ways to use > this for list columns in addition to individual fields, so we'd need to > come up with a sensible way to handle that. > > We'd probably want to ask ourselves if this should be a function or a > property? > > As a property it feels most natural, applying formatting specs to a given > object. But there are tradeoffs there, including being able to have only > one behavior script applied to an object, and the issue with getProp and > setProp being unreliable in any environment in which the lockMessages might > be set to true. > > As a function it would be far simpler to design, but would require the > user to code for it, rather than having it be a property you set once and > never need to think about it again. > > There may be other options too. > > And the choice of whether such a library be written in LC Script or LC > Builder. The latter offers direct support for documentation and Inspector > options (though it would certainly be useful to see those options available > for LC Script as well, though that's another discussion). > > We could brainstorm those design aspects here and now if we want. > > > > For any newbie and for those using formatting all the time, do we > > have to load a separate library or would it be supported out of the > > IDE? For example, could the numberFormat or format() functions be > > overwritten so that simply using LiveCode Script it would work the > > way we defined and this out of the engine? > > By design LC does not allow overriding built-in functions the way > HyperCard used to. When I asked Dr. Raney about this decision, he asked me > to observe the execution speed difference between the two, and noted that > his token table was kept very trim with this decision. He also invited me > to come up with a case in which it was truly necessary to override built-in > functions as opposed to using a new name for the new function. In all > these years I couldn't come up with one. > > So in short, I think a new name for new functionality may be best. > > > > Or is it a new function? And could it be shipped with the product if > > approved? Again, we are thinking of Excel style formatting that any > > user, even non-programmers, often enough know about. > > To be included in the LC install it needs to be good, and if implemented > as a function it may perhaps eventually be included with the other handlers > currently in the revCommon lib. > > But that would require that it be field-tested, so early adopters would > first use it as a library or behavior they download and install. > > It may be that the engine team may later borrow some of the design from > the scripted version for inclusion in the engine. But until Mark > Waddingham posts "Yes, we have time and will do that this week" we'll need > to consider options that aren't dependent on the engine team. And as Curry > and Hugh have shown, these things can be done by a single person in script, > valuable even as add-ons. > > > [I was tempted to write a rant about package managers here, about how > every popular language has one and we don't, and the relationship between > platform adoption and the ease with which one can find and use > extensions.....but that's probably best left for another thread.] > > > > Is there any guide telling that such LiveCode Script following certain > > style and rules and using the best performant way will be accepted as > > "quality code"? > > At the bottom of the "Contributing" page for the LC code base there are > links to C++ style guides: > https://github.com/livecode/livecode/blob/develop/CONTRIBUTING.md > > I don't know of such a guide for scripted contributions. That would be a > good addition if anyone here wants to work with Panos or someone else on > the team to draft that. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Wed Apr 26 12:45:04 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 26 Apr 2017 12:45:04 -0400 Subject: Make numberFormat even better AND Cognitive Load In-Reply-To: <9e55be424208b83afe4c4f92169cec1e@livecode.com> References: <5900690D.40803@pair.com> <39381260-3484-479B-A3C3-63D5A66847AE@earthlearningsolutions.org> <9e55be424208b83afe4c4f92169cec1e@livecode.com> Message-ID: I think 3 is something we should scratch off the list, since we have more important fish for you to fry. On Wed, Apr 26, 2017 at 11:42 AM, Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > On 2017-04-26 16:00, prothero--- via use-livecode wrote: > >> Ok, I'll shut up about this for now. Sorry to unfocus the thread. >> > > To be fair, I managed to conflate three issues: > > 1) Improving numberFormat > > 2) How we could get arbitrary precision integers whilst retaining > doubles for reals > > 3) How to make numberFormat and array keys play nice together > > They are all distinct issues really, although the numberFormat is involved > in all three (at least in some way) :) > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From ambassador at fourthworld.com Wed Apr 26 14:11:12 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 26 Apr 2017 11:11:12 -0700 Subject: Swiping between cards - metaphor end-of-the-road? Message-ID: I stumbled across this thread and it got me thinking: http://forums.livecode.com/viewtopic.php?f=7&t=29184 LC has cards, which are great for many things but somewhat limited. For example, as the OP asks about there: how does one swipe between them? That seems a perfectly reasonable expectation, given what cards are and the central role they play in LC's object model and language. And yet we don't really have any way of doing that. Doing it right on mobile would mean some drag-triggered transition which responds to the drag movement itself, and could be canceled if the user releases their finger before a certain mid-screen threshold is reached. Of course we can do that with groups, but consider what that means: We'd have to construct all of our layouts on a single card, and have some means of moving the groups on and off screen as needed, both during development and at runtime. All doable, and not too much of a brain-bender. But it's work. And non-obvious to newcomers. And even for experienced devs it's tedious. And at that point, the beautiful simplicity of the card metaphor breaks down. Indeed, it's no longer even relevant because we're not using cards at all, but groups on a single card. At that point, some of the advantage of choosing LiveCode is lost, because one of the most central elements of its object model is no longer a best fit for today's designs. Modern UIs (most mobile and increasingly on desktop as well) benefit from providing a sense of unifying flow with, among other things, interactive drag actions as transitions between screen layouts. I was considering putting in a feature request for a new drag transition, but before I do I think we need some design work to figure out exactly what it should do and how we work with it. It's not even a transition per se, since those are discrete visual operations performed after a user action has been completed (e.g., a mouses click or a menu selection). This seems perhaps a good candidate for a property, maybe something like "the dragTransitions" of a stack. When true, any drag actions not handled by any script would be handled by the engine by dragging a transition from card to card according to the direction of the drag. That may be too simplistic, though. Do we really want free travel between all cards in a stack? If not, how do we specify what happens in response to a drag when we want a card-to-card transition? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From MikeKerner at roadrunner.com Wed Apr 26 14:41:44 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 26 Apr 2017 14:41:44 -0400 Subject: Swiping between cards - metaphor end-of-the-road? In-Reply-To: References: Message-ID: So you'd like a swipe event instead of using nav buttons. From jonathandlynch at gmail.com Wed Apr 26 14:45:09 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Wed, 26 Apr 2017 14:45:09 -0400 Subject: Will LiveCode run an x86 android device? Message-ID: I see that it won't run on an x86 emulator - will it work on on actual x86 device? Sent from my iPhone From ambassador at fourthworld.com Wed Apr 26 14:50:55 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 26 Apr 2017 11:50:55 -0700 Subject: Swiping between cards - metaphor end-of-the-road? In-Reply-To: References: Message-ID: <471b906a-6ddd-ec6f-2ad9-9db5b3ac296d@fourthworld.com> Mike Kerner wrote: > So you'd like a swipe event instead of using nav buttons. Button where appropriate, swiping where appropriate. iOS: Use touch gestures to create fluidity. Make it easy to move through your interface with minimum friction. For example, you could let people swipe from the side of the screen to return to the previous screen. Android: Efficient navigation is one of the cornerstones of a well-designed app. While apps are generally built in a hierarchical fashion, there are instances where horizontal navigation can flatten vertical hierarchies and make access to related data items faster and more enjoyable. Swipe views allow the user to efficiently move from item to item using a simple gesture and thereby make browsing and consuming data a more fluent experience. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From MikeKerner at roadrunner.com Wed Apr 26 14:55:35 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 26 Apr 2017 14:55:35 -0400 Subject: Swiping between cards - metaphor end-of-the-road? In-Reply-To: <471b906a-6ddd-ec6f-2ad9-9db5b3ac296d@fourthworld.com> References: <471b906a-6ddd-ec6f-2ad9-9db5b3ac296d@fourthworld.com> Message-ID: so bug 9320? On Wed, Apr 26, 2017 at 2:50 PM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Mike Kerner wrote: > > > So you'd like a swipe event instead of using nav buttons. > > Button where appropriate, swiping where appropriate. > > > iOS: > Use touch gestures to create fluidity. Make it easy to move > through your interface with minimum friction. For example, > you could let people swipe from the side of the screen to > return to the previous screen. > interaction/navigation/> > > > Android: > Efficient navigation is one of the cornerstones of a > well-designed app. While apps are generally built in > a hierarchical fashion, there are instances where > horizontal navigation can flatten vertical hierarchies > and make access to related data items faster and more > enjoyable. Swipe views allow the user to efficiently > move from item to item using a simple gesture and > thereby make browsing and consuming data a more > fluent experience. > > > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From ambassador at fourthworld.com Wed Apr 26 15:02:59 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 26 Apr 2017 12:02:59 -0700 Subject: Swiping between cards - metaphor end-of-the-road? In-Reply-To: References: Message-ID: <8fdd3def-e526-f4ea-bfab-58f30e457065@fourthworld.com> Mike Kerner wrote: > On Wed, Apr 26, 2017 at 2:50 PM, Richard Gaskin wrote: > >> Mike Kerner wrote: >> > So you'd like a swipe event instead of using nav buttons. >> >> Button where appropriate, swiping where appropriate. ... > so bug 9320? I suppose it's related, but indirectly. That request is for access to iOS-specific gesture APIs. Those should be accessible through FFI, no? Either way, the gestures themselves are only part of the challenge. In fact, for card swiping we need only one, a swipe. The bigger part is handling the dual-card render during the gesture. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From richmondmathewson at gmail.com Wed Apr 26 15:09:34 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 26 Apr 2017 22:09:34 +0300 Subject: Please block sims emails In-Reply-To: <001c01d2be90$1844dd20$48ce9760$@net> References: <2c6bf65b-cd6c-95e6-3b28-2bea41d6bbcc@hyperactivesw.com> <001c01d2be90$1844dd20$48ce9760$@net> Message-ID: <78e62634-a0dd-05cb-9c64-ae8dea429d16@gmail.com> Personally I prefer to take things lying down. Richmond. On 4/26/17 4:22 pm, Ralph DiMola via use-livecode wrote: >> Jacqueline Landman Gay wrote: >> He frequently gets infected with malware. But I rather liked this set. >> "Dear!" I wanted to respond, "Darling!!" > Now I'm laughing... And just when I thought this was another day in cyber land. > Do you do standup? > > 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 richmondmathewson at gmail.com Wed Apr 26 15:12:00 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 26 Apr 2017 22:12:00 +0300 Subject: Will LiveCode run an x86 android device? In-Reply-To: References: Message-ID: <4e96903d-8f87-2932-1d1e-480cb726dcea@gmail.com> I don't think LiveCode (the development environment) will work on Android of any sort: but it should develop standalones that work on Android. Richmond. On 4/26/17 9:45 pm, Jonathan Lynch via use-livecode wrote: > I see that it won't run on an x86 emulator - will it work on on actual x86 device? > > Sent from my 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 bonnmike at gmail.com Wed Apr 26 15:22:01 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 26 Apr 2017 13:22:01 -0600 Subject: Will LiveCode run an x86 android device? In-Reply-To: <4e96903d-8f87-2932-1d1e-480cb726dcea@gmail.com> References: <4e96903d-8f87-2932-1d1e-480cb726dcea@gmail.com> Message-ID: I don't think you can build for x86 android but i'm not positive. On Wed, Apr 26, 2017 at 1:12 PM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > I don't think LiveCode (the development environment) will work on > Android of any sort: but it should develop standalones that work on > Android. > > Richmond. > > On 4/26/17 9:45 pm, Jonathan Lynch via use-livecode wrote: > >> I see that it won't run on an x86 emulator - will it work on on actual >> x86 device? >> >> Sent from my 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 colinholgate at gmail.com Wed Apr 26 15:26:51 2017 From: colinholgate at gmail.com (Colin Holgate) Date: Wed, 26 Apr 2017 12:26:51 -0700 Subject: Will LiveCode run an x86 android device? In-Reply-To: References: <4e96903d-8f87-2932-1d1e-480cb726dcea@gmail.com> Message-ID: x86 Android devices can run ARM code in emulation. The performance would be better if you could publish to x86, but the app should work. > On Apr 26, 2017, at 12:22 PM, Mike Bonner via use-livecode wrote: > > I don't think you can build for x86 android but i'm not positive. > > On Wed, Apr 26, 2017 at 1:12 PM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I don't think LiveCode (the development environment) will work on >> Android of any sort: but it should develop standalones that work on >> Android. >> >> Richmond. >> >> On 4/26/17 9:45 pm, Jonathan Lynch via use-livecode wrote: >> >>> I see that it won't run on an x86 emulator - will it work on on actual >>> x86 device? From jonathandlynch at gmail.com Wed Apr 26 15:37:42 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Wed, 26 Apr 2017 15:37:42 -0400 Subject: Will LiveCode run an x86 android device? In-Reply-To: <4e96903d-8f87-2932-1d1e-480cb726dcea@gmail.com> References: <4e96903d-8f87-2932-1d1e-480cb726dcea@gmail.com> Message-ID: <030C2C13-8453-4046-BD6A-D95135B9DCA4@gmail.com> Lol - thank you - that is what I meant. Sent from my iPhone > On Apr 26, 2017, at 3:12 PM, Richmond Mathewson via use-livecode wrote: > > I don't think LiveCode (the development environment) will work on > Android of any sort: but it should develop standalones that work on Android. > > Richmond. > >> On 4/26/17 9:45 pm, Jonathan Lynch via use-livecode wrote: >> I see that it won't run on an x86 emulator - will it work on on actual x86 device? >> >> Sent from my 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 jonathandlynch at gmail.com Wed Apr 26 15:40:13 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Wed, 26 Apr 2017 15:40:13 -0400 Subject: Will LiveCode run an x86 android device? In-Reply-To: <030C2C13-8453-4046-BD6A-D95135B9DCA4@gmail.com> References: <4e96903d-8f87-2932-1d1e-480cb726dcea@gmail.com> <030C2C13-8453-4046-BD6A-D95135B9DCA4@gmail.com> Message-ID: Does it run arm-emulation automatically or do we need to warn it? The parts I use that are processor-intensive are running in the browser widget, which I assume runs on both architectures. Sent from my iPhone > On Apr 26, 2017, at 3:37 PM, jonathandlynch at gmail.com wrote: > > Lol - thank you - that is what I meant. > > Sent from my iPhone > >> On Apr 26, 2017, at 3:12 PM, Richmond Mathewson via use-livecode wrote: >> >> I don't think LiveCode (the development environment) will work on >> Android of any sort: but it should develop standalones that work on Android. >> >> Richmond. >> >>> On 4/26/17 9:45 pm, Jonathan Lynch via use-livecode wrote: >>> I see that it won't run on an x86 emulator - will it work on on actual x86 device? >>> >>> Sent from my 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 bobsneidar at iotecdigital.com Wed Apr 26 15:47:50 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Apr 2017 19:47:50 +0000 Subject: Please block sims emails In-Reply-To: References: Message-ID: <0527CCEF-35B5-45CC-B3A7-4D4617B92176@iotecdigital.com> I clicked the link but I feel fairly confident as I am running Apple Mail and the email has to go through a fairly rigorous spam/malware filter on the inter webs before it gets here, then get past the firewall, which ALSO had malware detection built in. It wasn't very interesting though. Just a weight loss ad using Helen Degenerous. Bob S > On Apr 25, 2017, at 20:36 , Jerry Jensen via use-livecode wrote: > > Somebody is using sims email to post phishing/spam/malware - I don?t know which because I won?t click it. > > Please block email from him. > > Listmom, hello??? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Wed Apr 26 16:10:05 2017 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 26 Apr 2017 16:10:05 -0400 Subject: Will LiveCode run an x86 android device? In-Reply-To: References: Message-ID: <007401d2bec9$18e488a0$4aad99e0$@net> I run an x86 tablet for testing and LC apps work but it's slow like 1/3 speed. 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 Jonathan Lynch via use-livecode Sent: Wednesday, April 26, 2017 2:45 PM To: use-livecode at lists.runrev.com Cc: jonathandlynch at gmail.com Subject: Will LiveCode run an x86 android device? I see that it won't run on an x86 emulator - will it work on on actual x86 device? Sent from my 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 brahma at hindu.org Wed Apr 26 16:21:18 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Wed, 26 Apr 2017 20:21:18 +0000 Subject: Swiping between cards - metaphor end-of-the-road? In-Reply-To: <471b906a-6ddd-ec6f-2ad9-9db5b3ac296d@fourthworld.com> References: <471b906a-6ddd-ec6f-2ad9-9db5b3ac296d@fourthworld.com> Message-ID: This is an important subject, I've been meaning to write this for a couple of weeks, but Richard got here first. our current app. (if anyone is interested I can send you the git repo link off line?it is public; I just don't want to post It public) use click and swipe "everywhere" the model is simple: group of rows (smaller groups) whole "portal" group is scrollable each row is a "hyper link" to a) a dynamic rebuild of the card with differernt rows b) open another *module.livecode binary stack c) open a stack that has a browser widget on it the URL to view pass to it dynamically. Seeims simple enough, works great on desk top? so much promise for a highly scalable modular app. but are are getting major failures on mobile and I have been wrestling for weeks with the the simple problem of just opening and closing stacks without crashing or render issuea (mostly on Android) and performance (super slow on some android devices) Once any given stack is actually opened and rendering correctly, it works great. Anyway, the need to respond to a touch/aka/mouseup OR swipe the group up and down. That's the tricky bit Currently we are (pseudo code) using locals to get the tStartLoc on mousedown and using if the abs(the endloc) > 10 # assume swipe else assume tap: fire the hyper link I'm having issue with this. can't quite figure out why, but I have to tap twice to fire the touch event? could be the code needs top be optimized there. and standard mouse/widget/icon/image with just a mouseup alone, fires instantly. This is not exactly focusing on the card metaphor? but the issues are the same. (I think) Because you might want to trap the touch on a card and not actually swipe left or right, group up/down/sideways Suffice it so say we do need improvements here. I have a lot of design requirements that would use this algorithm all modern apps do this? verycommon now to load (sometimes over load IMHO) a single interface with scrolling groups going sideways? all of which are basically create a giant TOC/Index to dive into some other screen/list/listen to music (Spotify is a very good model) " While apps are generally built in a hierarchical fashion, there are instances where horizontal navigation can flatten vertical hierarchies and make access to related data items faster and more enjoyable." Anyone else doing the touch or swipe thing? on a scrolling group/card can you share your code methods for this? I would like to test and improve what we have if possible. BR On 4/26/17, 8:50 AM, "use-livecode on behalf of Richard Gaskin via use-livecode" wrote: Mike Kerner wrote: > So you'd like a swipe event instead of using nav buttons. Button where appropriate, swiping where appropriate. iOS: Use touch gestures to create fluidity. Make it easy to move through your interface with minimum friction. For example, you could let people swipe from the side of the screen to return to the previous screen. Android: Efficient navigation is one of the cornerstones of a well-designed app. While apps are generally built in a hierarchical fashion, there are instances where horizontal navigation can flatten vertical hierarchies and make access to related data items faster and more enjoyable. Swipe views allow the user to efficiently move from item to item using a simple gesture and thereby make browsing and consuming data a more fluent experience. From paul at researchware.com Wed Apr 26 16:41:14 2017 From: paul at researchware.com (Paul Dupuis) Date: Wed, 26 Apr 2017 16:41:14 -0400 Subject: Swiping between cards - metaphor end-of-the-road? In-Reply-To: <8fdd3def-e526-f4ea-bfab-58f30e457065@fourthworld.com> References: <8fdd3def-e526-f4ea-bfab-58f30e457065@fourthworld.com> Message-ID: <9c673eea-588f-4820-9f58-ddff5ba31eae@researchware.com> On 4/26/2017 3:02 PM, Richard Gaskin via use-livecode wrote: > Either way, the gestures themselves are only part of the challenge. > In fact, for card swiping we need only one, a swipe. The bigger part > is handling the dual-card render during the gesture. This would work (in theory) for the visualization except that didn't visual effect end in LC 8 with deprecating quicktime? visual effect wipe left slowly go next cd From roger.e.eller at sealedair.com Wed Apr 26 16:58:40 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 26 Apr 2017 16:58:40 -0400 Subject: on tabKey - what field contains the blinking curser? Message-ID: How do I discover the name of the field which has received focus (blinking edit bar cursor) when the tabKey is pressed? ~Roger From bodine at bodinetraininggames.com Wed Apr 26 17:18:40 2017 From: bodine at bodinetraininggames.com (tbodine) Date: Wed, 26 Apr 2017 14:18:40 -0700 (PDT) Subject: on tabKey - what field contains the blinking curser? In-Reply-To: References: Message-ID: <1493241520698-4714289.post@n4.nabble.com> One way... if the focusedObject begins with "field" then put the focusedObject into tActiveField end if Tom B. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/on-tabKey-what-field-contains-the-blinking-curser-tp4714288p4714289.html Sent from the Revolution - User mailing list archive at Nabble.com. From roger.e.eller at sealedair.com Wed Apr 26 17:48:12 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 26 Apr 2017 17:48:12 -0400 Subject: on tabKey - what field contains the blinking curser? In-Reply-To: <1493241520698-4714289.post@n4.nabble.com> References: <1493241520698-4714289.post@n4.nabble.com> Message-ID: Thank you, Tom! On Wed, Apr 26, 2017 at 5:18 PM, tbodine via use-livecode < use-livecode at lists.runrev.com> wrote: > One way... > > if the focusedObject begins with "field" then > put the focusedObject into tActiveField > end if > > Tom B. > > > > -- > View this message in context: http://runtime-revolution. > 278305.n4.nabble.com/on-tabKey-what-field-contains-the-blinking-curser- > tp4714288p4714289.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > From jacque at hyperactivesw.com Wed Apr 26 18:14:29 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 26 Apr 2017 17:14:29 -0500 Subject: on tabKey - what field contains the blinking curser? In-Reply-To: References: Message-ID: <9db5ff6b-6b7d-bfc4-7a97-7ca897d5162f@hyperactivesw.com> On 4/26/17 3:58 PM, Roger Eller via use-livecode wrote: > How do I discover the name of the field which has received focus (blinking > edit bar cursor) when the tabKey is pressed? One way: on openfield put the name of the target end openfield I'm not sure if you want to trap a message though. The selectedField will return identification if you're querying from inside another handler. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bogdanoff at me.com Wed Apr 26 18:32:35 2017 From: bogdanoff at me.com (Peter Bogdanoff) Date: Wed, 26 Apr 2017 15:32:35 -0700 Subject: Speed test in LC application Message-ID: Hi, I?m sometimes having trouble with my application downloading audio and image files from a remote server when they are requested. I?m thinking of adding some diagnostic tools to the application to see what is going on and I would like to know if anyone has experience with this and can give me advice. My application, ?Music in the Air,? a music exploration/history program for music students is heavily dependent on audio and image files being downloaded from a remote server (currently Amazon AWS) while the user peruses the program. The user chooses a musical work to view and play and immediately the program downloads 2 to 100+ image files (gifs averaging 50 KB each) of the musical notation. When the user start the audio playing, the program loads the player with a remote audio file (10-50 MB). This library of audio and images is 2 GB+, so the need to store and serve it as needed. However, users are reporting that possibly 10-15% of the time the music stalls while playing at the beginning, pointing to some bottleneck in their Internet connection or local network. These users are usually on a fast, high-capacity university network, getting files from a robust server, so they shouldn?t normally see this happen, and I would like to track down what is going on. Also when this program is published, it will be deployed to areas of the world where an Internet connection is not so robust. So I?m thinking more and more that it would be vitally important to include tests within the program to monitor and report, if necessary, on the user?s ongoing connection and bandwidth while the program is being used and send me diagnostics when there are problems. Does anyone have any experience with this kind of thing that I could draw upon or employ? Peter Bogdanoff From roger.e.eller at sealedair.com Wed Apr 26 20:21:35 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 26 Apr 2017 20:21:35 -0400 Subject: on tabKey - what field contains the blinking curser? In-Reply-To: <9db5ff6b-6b7d-bfc4-7a97-7ca897d5162f@hyperactivesw.com> References: <9db5ff6b-6b7d-bfc4-7a97-7ca897d5162f@hyperactivesw.com> Message-ID: When I tab to the next field, I want to select after the field content, or in other words place the blinking bar at the end of whatever is already there. By default, it is placing it in front of the field content. On Apr 26, 2017 6:14 PM, "J. Landman Gay via use-livecode" < use-livecode at lists.runrev.com> wrote: > On 4/26/17 3:58 PM, Roger Eller via use-livecode wrote: > >> How do I discover the name of the field which has received focus (blinking >> edit bar cursor) when the tabKey is pressed? >> > > One way: > > on openfield > put the name of the target > end openfield > > I'm not sure if you want to trap a message though. The selectedField will > return identification if you're querying from inside another handler. > > -- > 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 jiml at netrin.com Wed Apr 26 20:24:52 2017 From: jiml at netrin.com (Jim Lambert) Date: Wed, 26 Apr 2017 17:24:52 -0700 Subject: mouseMove & backgoundBehavior In-Reply-To: References: Message-ID: Make a group that is smaller than your card. Place this in the group?s script: on mousemove newMouseH, newMouseV put newMouseH, newMouseV end mousemove When the cursor moves around within the group the current mouseLoc is put into the message box. When the cursor moves outside of the group the mouseloc is no longer placed into the message box. Next set the backgroundBehaviour of the group to TRUE. Now wherever the cursor is within the CARD the mouseLoc is placed in the message box regardless of whether the cursor is within or without the rect of the group. The dictionary states, "The mouseMove message is sent to the control the mouse pointer is over, or to the card if no control is under the mouse pointer.? It is true that a background group is not 'officially' on a card (rather it?s on the background in HyperCard parlance.) But why would the mousemove message get passed to the card when the mouse is outside of the background group containing that handler? Is this a bug or expected behavior? Thanks, Jim Lambert From waprothero at gmail.com Wed Apr 26 22:31:08 2017 From: waprothero at gmail.com (William Prothero) Date: Wed, 26 Apr 2017 19:31:08 -0700 Subject: Map Widget" Message-ID: <3E2BEE79-0F1C-4B99-879A-3D7CBAFC1B47@gmail.com> I found this link on the LC site. https://livecode.com/map-widget-coming-to-livecode/ Is there a map widget? Anybody working with google maps, not in a browser? If so, could you point me to a URL for a starter Bill William A. Prothero http://earthlearningsolution.org/ From capellan2000 at gmail.com Wed Apr 26 22:59:38 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 26 Apr 2017 22:59:38 -0400 Subject: Color Conversion - RGB to HSV and back... (almost) Message-ID: Hi Mike, Many thanks for posting a link to your compilation stack: Master Library. How many new LiveCode users are aware of this wonderful resource? Thanks again for posting this. Sorry for replying so late, but recently I am not feeling well. Food intoxication is my educated guess... :( Because of this, I have been posting only to the forums, where I could edit or delete my own messages that do not say what I meant. :) Your HSV and RGB conversion functions works great with only a few changes: In Function HSVtoRGB this line: put var_2 var_R should be put var_2 into var_R and put abs(trunc(var_R * 255)) into R //RGB results from 0 to 255 put abs(trunc(var_G * 255)) into G put abs(trunc(var_B * 255)) into B works better if we replace trunc() for round(). After this small change, HSV is converted back to RGB with 100% precision. :D By the way, I posted a stack in the forums that converts RGB colors of an image to HSV colors. After this conversion, JPEG compression artifacts become much more evident and some strange patches of color appears in the most unexpected places. :o You could download the stack from this forum thread: http://forums.livecode.com/viewtopic.php?f=10&t=29172 Now, I am looking for some script that allows users to replace all 6 HSV color and their 7 gradients (red to orange, orange to yellow, yellow to green green to cyan, cyan to blue, blue to magenta, magenta to red ) with colors of their own selection. Have a nice weekend. Keep up your Great Work! Al From rdimola at evergreeninfo.net Wed Apr 26 23:31:07 2017 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 26 Apr 2017 23:31:07 -0400 Subject: Speed test in LC application In-Reply-To: References: Message-ID: <00a901d2bf06$b6acc290$240647b0$@net> I see some unexplainable delays from an app to a LC web service on on-rev that I have not started to debug yet. I almost looks like a DNS resolution delay. I am going to WireShark the lan and see what's going on. I will let you know what I find. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Peter Bogdanoff via use-livecode Sent: Wednesday, April 26, 2017 6:33 PM To: Mike Kerner via use-livecode Cc: Peter Bogdanoff Subject: Speed test in LC application Hi, I'm sometimes having trouble with my application downloading audio and image files from a remote server when they are requested. I'm thinking of adding some diagnostic tools to the application to see what is going on and I would like to know if anyone has experience with this and can give me advice. My application, "Music in the Air," a music exploration/history program for music students is heavily dependent on audio and image files being downloaded from a remote server (currently Amazon AWS) while the user peruses the program. The user chooses a musical work to view and play and immediately the program downloads 2 to 100+ image files (gifs averaging 50 KB each) of the musical notation. When the user start the audio playing, the program loads the player with a remote audio file (10-50 MB). This library of audio and images is 2 GB+, so the need to store and serve it as needed. However, users are reporting that possibly 10-15% of the time the music stalls while playing at the beginning, pointing to some bottleneck in their Internet connection or local network. These users are usually on a fast, high-capacity university network, getting files from a robust server, so they shouldn't normally see this happen, and I would like to track down what is going on. Also when this program is published, it will be deployed to areas of the world where an Internet connection is not so robust. So I'm thinking more and more that it would be vitally important to include tests within the program to monitor and report, if necessary, on the user's ongoing connection and bandwidth while the program is being used and send me diagnostics when there are problems. Does anyone have any experience with this kind of thing that I could draw upon or employ? Peter Bogdanoff _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Thu Apr 27 09:11:28 2017 From: dunbarx at aol.com (dunbarx) Date: Thu, 27 Apr 2017 06:11:28 -0700 (PDT) Subject: mouseMove & backgoundBehavior In-Reply-To: References: Message-ID: <1493298688156-4714298.post@n4.nabble.com> Fascinating. I consider this unwanted, unwarranted and just awful behavior. A group is ostensibly "just a control", and that is how it is touted to those old HC'ers like me to make the loss of the HC backGround object layer more palatable. The difference in that aspect of LC, as well as the way menus are created, are the two most significant departures from simply wandering into LC from a HC, er, backGround. But if a group is just a control, then it has just a rect. Rects have insides and outsides. Anyway, I call it a bug, and should be either fixed or LOUDLY warned about. Craig Newman -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/mouseMove-backgoundBehavior-tp4714294p4714298.html Sent from the Revolution - User mailing list archive at Nabble.com. From bobsneidar at iotecdigital.com Thu Apr 27 11:04:05 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 27 Apr 2017 15:04:05 +0000 Subject: Map Widget" In-Reply-To: <3E2BEE79-0F1C-4B99-879A-3D7CBAFC1B47@gmail.com> References: <3E2BEE79-0F1C-4B99-879A-3D7CBAFC1B47@gmail.com> Message-ID: <1782591F-EF12-4835-85AA-7AF1979B86BF@iotecdigital.com> I do not believe you can have a google map not in a browser. That is to say, you cannot have a google INTERACTIVE map. You can certainly drop screenshots in as graphics. Bob S > On Apr 26, 2017, at 19:31 , William Prothero via use-livecode wrote: > > I found this link on the LC site. > https://livecode.com/map-widget-coming-to-livecode/ > > Is there a map widget? Anybody working with google maps, not in a browser? If so, could you point me to a URL for a starter > Bill > > William A. Prothero > http://earthlearningsolution.org/ From waprothero at gmail.com Thu Apr 27 11:26:23 2017 From: waprothero at gmail.com (William Prothero) Date: Thu, 27 Apr 2017 08:26:23 -0700 Subject: Map Widget" In-Reply-To: <1782591F-EF12-4835-85AA-7AF1979B86BF@iotecdigital.com> References: <3E2BEE79-0F1C-4B99-879A-3D7CBAFC1B47@gmail.com> <1782591F-EF12-4835-85AA-7AF1979B86BF@iotecdigital.com> Message-ID: What I'm thinking about is a map that I can control location and magnification of a google map from livecode, do an image capture, and draw symbols on that capture. I would need to be able to recover the latitude and longitude of the displayed map boundaries. I remember some discussions about whether image capture works with browser windows. If anybody has wisdom on whether this will work, before I spend a bunch of time researching this, I'd be grateful. There is, I think, an API to google Earth, which might be something to look into. Thanks, Bill P William Prothero http://es.earthednet.org > On Apr 27, 2017, at 8:04 AM, Bob Sneidar via use-livecode wrote: > > I do not believe you can have a google map not in a browser. That is to say, you cannot have a google INTERACTIVE map. You can certainly drop screenshots in as graphics. > > Bob S > > >> On Apr 26, 2017, at 19:31 , William Prothero via use-livecode wrote: >> >> I found this link on the LC site. >> https://livecode.com/map-widget-coming-to-livecode/ >> >> Is there a map widget? Anybody working with google maps, not in a browser? If so, could you point me to a URL for a starter >> Bill >> >> William A. Prothero >> http://earthlearningsolution.org/ > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From waprothero at gmail.com Thu Apr 27 12:01:52 2017 From: waprothero at gmail.com (William Prothero) Date: Thu, 27 Apr 2017 09:01:52 -0700 Subject: Map Widget" In-Reply-To: References: <3E2BEE79-0F1C-4B99-879A-3D7CBAFC1B47@gmail.com> <1782591F-EF12-4835-85AA-7AF1979B86BF@iotecdigital.com> Message-ID: <700415F0-DCD0-45A3-92AF-D111AF327242@gmail.com> Folks: On another aspect of this question, was a Map Widget, advertised on the site I linked to below, ever created? https://livecode.com/map-widget-coming-to-livecode/ Bill William A. Prothero http://earthlearningsolution.org/ > >>> I found this link on the LC site. >>> https://livecode.com/map-widget-coming-to-livecode/ >>> >>> Is there a map widget? Anybody working with google maps, not in a browser? If so, could you point me to a URL for a starter >>> Bill >>> From jonathandlynch at gmail.com Thu Apr 27 12:09:42 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Thu, 27 Apr 2017 12:09:42 -0400 Subject: Map Widget" In-Reply-To: References: <3E2BEE79-0F1C-4B99-879A-3D7CBAFC1B47@gmail.com> <1782591F-EF12-4835-85AA-7AF1979B86BF@iotecdigital.com> Message-ID: I use maps in the browser widget extensively for Augmented Earth. It works great. You could hypothetically export the image data from the HTML canvas object, export the lat/lng boundaries, and present all of that through a LiveCode image object. Be prepared to do a bit of math, but I think it would work. Many of the map apis allow you to put both markers and polygons on a map with JavaScript, which might give you better performance. Sent from my iPhone > On Apr 27, 2017, at 11:26 AM, William Prothero via use-livecode wrote: > > What I'm thinking about is a map that I can control location and magnification of a google map from livecode, do an image capture, and draw symbols on that capture. I would need to be able to recover the latitude and longitude of the displayed map boundaries. > > I remember some discussions about whether image capture works with browser windows. > > If anybody has wisdom on whether this will work, before I spend a bunch of time researching this, I'd be grateful. There is, I think, an API to google Earth, which might be something to look into. > > Thanks, > Bill P > > William Prothero > http://es.earthednet.org > >> On Apr 27, 2017, at 8:04 AM, Bob Sneidar via use-livecode wrote: >> >> I do not believe you can have a google map not in a browser. That is to say, you cannot have a google INTERACTIVE map. You can certainly drop screenshots in as graphics. >> >> Bob S >> >> >>> On Apr 26, 2017, at 19:31 , William Prothero via use-livecode wrote: >>> >>> I found this link on the LC site. >>> https://livecode.com/map-widget-coming-to-livecode/ >>> >>> Is there a map widget? Anybody working with google maps, not in a browser? If so, could you point me to a URL for a starter >>> Bill >>> >>> William A. Prothero >>> http://earthlearningsolution.org/ >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From waprothero at gmail.com Thu Apr 27 12:26:06 2017 From: waprothero at gmail.com (William Prothero) Date: Thu, 27 Apr 2017 09:26:06 -0700 Subject: Map Widget" In-Reply-To: References: <3E2BEE79-0F1C-4B99-879A-3D7CBAFC1B47@gmail.com> <1782591F-EF12-4835-85AA-7AF1979B86BF@iotecdigital.com> Message-ID: Jonathon: It looks like a Google Earth plugin is needed for Augmented Earth. True? Does that give you installation issues? Does the Map Widget behave well with plugins? Bill > On Apr 27, 2017, at 9:09 AM, Jonathan Lynch via use-livecode wrote: > > I use maps in the browser widget extensively for Augmented Earth. It works great. > > You could hypothetically export the image data from the HTML canvas object, export the lat/lng boundaries, and present all of that through a LiveCode image object. Be prepared to do a bit of math, but I think it would work. > > Many of the map apis allow you to put both markers and polygons on a map with JavaScript, which might give you better performance. > > Sent from my iPhone > >> On Apr 27, 2017, at 11:26 AM, William Prothero via use-livecode wrote: >> >> What I'm thinking about is a map that I can control location and magnification of a google map from livecode, do an image capture, and draw symbols on that capture. I would need to be able to recover the latitude and longitude of the displayed map boundaries. >> >> I remember some discussions about whether image capture works with browser windows. >> >> If anybody has wisdom on whether this will work, before I spend a bunch of time researching this, I'd be grateful. There is, I think, an API to google Earth, which might be something to look into. >> >> Thanks, >> Bill P >> >> William Prothero >> http://es.earthednet.org >> >>> On Apr 27, 2017, at 8:04 AM, Bob Sneidar via use-livecode wrote: >>> >>> I do not believe you can have a google map not in a browser. That is to say, you cannot have a google INTERACTIVE map. You can certainly drop screenshots in as graphics. >>> >>> Bob S >>> >>> >>>> On Apr 26, 2017, at 19:31 , William Prothero via use-livecode wrote: >>>> >>>> I found this link on the LC site. >>>> https://livecode.com/map-widget-coming-to-livecode/ >>>> >>>> Is there a map widget? Anybody working with google maps, not in a browser? If so, could you point me to a URL for a starter >>>> Bill >>>> >>>> William A. Prothero >>>> http://earthlearningsolution.org/ >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From devin_asay at byu.edu Thu Apr 27 12:29:41 2017 From: devin_asay at byu.edu (Devin Asay) Date: Thu, 27 Apr 2017 16:29:41 +0000 Subject: Map Widget" In-Reply-To: <700415F0-DCD0-45A3-92AF-D111AF327242@gmail.com> References: <3E2BEE79-0F1C-4B99-879A-3D7CBAFC1B47@gmail.com> <1782591F-EF12-4835-85AA-7AF1979B86BF@iotecdigital.com> <700415F0-DCD0-45A3-92AF-D111AF327242@gmail.com> Message-ID: <4D3145E1-6713-4B8C-8568-BBDFAC207BDE@byu.edu> Bill, Have you checked the mergMK extension referred to in the post? To my knowledge the widget referred ton in the post has not yet been created. To take another tack?have you looked at the Google Static Map API? If you?re comfortable using RESTful API?s in LiveCode you can get a pretty serviceable map display in your stack. The API just returns image data, so it?s pretty straightforward to display the map in an image object. https://developers.google.com/maps/documentation/static-maps/?csw=1 HTH Devin On Apr 27, 2017, at 10:01 AM, William Prothero via use-livecode > wrote: Folks: On another aspect of this question, was a Map Widget, advertised on the site I linked to below, ever created? https://livecode.com/map-widget-coming-to-livecode/ Bill William A. Prothero http://earthlearningsolution.org/ I found this link on the LC site. https://livecode.com/map-widget-coming-to-livecode/ Is there a map widget? Anybody working with google maps, not in a browser? If so, could you point me to a URL for a starter 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 Devin Asay Director Office of Digital Humanities Brigham Young University From roland.huettmann at gmail.com Thu Apr 27 12:31:12 2017 From: roland.huettmann at gmail.com (Roland Huettmann) Date: Thu, 27 Apr 2017 18:31:12 +0200 Subject: Community Coding Standards, Naming Conventions, Best Practice in LiveCode Script for community contribution work Message-ID: I am referring to the note from Richard and to our discussion about Contribution From The Community - expanding the developer base to "hundreds and thousands of users" -- even if only 10 will remain?. Richard wrote: > At the bottom of the "Contributing" page for the LC code base there are > links to C++ style guides: > https://github.com/livecode/livecode/blob/develop/CONTRIBUTING.md These are just a few more links found with a quick search. http://www.fourthworld.com/embassy/articles/scriptstyle.html#Naming http://forums.livecode.com/viewtopic.php?f=7&t=22946 http://lessons.livecode.com/m/4603/l/284467-variables-in-livecode http://forums.livecode.com/viewtopic.php?f=7&t=5265 http://stackoverflow.com/questions/16746794/what-are-some-best-practices-for-function-naming-in-livecode-runrev http://use-livecode.runrev.narkive.com/ZPvn2z2N/object-naming-conventions http://use-livecode.runrev.narkive.com/8REAd9JD/any-convention-on-naming-conventions I kind of find it very important for joint work and contributions. Maybe there should be a page from LiveCode offering at least a semi-official Community Standards Guide (or whatever it would be called) for LiveCode Script. Or will we all switch to LCB and slowly forget about LCS? (I am not sure here.))) For local variables, I also do not like long expressions for simple counters which are created "on the fly". The most widely adopted standard is using i, j, k, l ... (not x and not tCount) -- but otherwise, local variables in LCS start with "t" in LCS as tSomething. But something should be recommended for all others to follow, and not just say "do as you like" -- if there is any joint community effort expected. Yes, I am using pSomething for parameters even though there could be arguments against it. But I find them quickly in my script and know what they mean. And when I put something into the messages box, I ALWAYS type "put ... into msg" instead of simply "put ..." because then I can find such instances with the search and disable or enable such instructions. There are too many "puts" to search for otherwise. Little things that make life easier. But more important, an adopted COMMUNITY standard should be widely available and prominently placed to allow new users and everyone to access it at any time - maybe even as a separate section in the dictionary? I suggest a section discussing the STANDARD way of naming, writing code, naming functions, naming keywords, ways of commenting, what to avoid, what to care for, warning from pit holes, how to publish to the community, how to open new projects to the community, best way of debugging, best way of implementing error detection in general, best way of avoiding the script editor to open when users are using our app, single/multi user approaches with a rights management, best way implementing a database management system with remote databases depending on security issues and number of concurrent users considerations, how to implement design concepts (such as Googles material design), etc. And it could also be argued that data-driven applications use a lot of databases, and the naming conventions for such databases should be maintained, for example not to use the "_" underscore as a first char for field names, or not to use upperLower (camel case) naming when the database distinguishes between upper and lower characters, because easily, simple typing mistakes can create hours of searching the problem. The best STANDARD here is to look for the LOWEST COMMON DENOMINATOR when interfacing with other languages and systems. And we will interface sooner or later. The document should also talk about best practice in general, and for specific cases. Let us not reinvent the wheel when others before us already have found the optimal solution for a given problem. Yes, things can be done in different ways, but then it would be up to the community to test and do benchmarking and detect the better and decide for the best (rating with stars?). There could be a competition to beat the benchmarks and a gold medal for the best contribution. What really means "quality" code here? Who can guide me, others, everyone? Again, how can we (could I) contribute making this a reality? Who can answer?) Roland From ambassador at fourthworld.com Thu Apr 27 12:35:52 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 27 Apr 2017 09:35:52 -0700 Subject: mouseMove & backgoundBehavior In-Reply-To: References: Message-ID: <0d12e4e2-c5aa-f7f7-ba60-2e3644b85c57@fourthworld.com> Jim Lambert wrote: > Make a group that is smaller than your card. > Place this in the group?s script: > on mousemove newMouseH, newMouseV > put newMouseH, newMouseV > end mousemove > > When the cursor moves around within the group the current mouseLoc is > put into the message box. When the cursor moves outside of the group > the mouseloc is no longer placed into the message box. > > Next set the backgroundBehaviour of the group to TRUE. > > Now wherever the cursor is within the CARD the mouseLoc is placed in > the message box regardless of whether the cursor is within or without > the rect of the group. > > The dictionary states, "The mouseMove message is sent to the control > the mouse pointer is over, or to the card if no control is under the > mouse pointer.? > > It is true that a background group is not 'officially' on a card > (rather it?s on the background in HyperCard parlance.) But why would > the mousemove message get passed to the card when the mouse is > outside of the background group containing that handler? > > Is this a bug or expected behavior? You've been working with LiveCode too long, and have forgotten the semantic roots of the ancient mother tongue. :) In HC there was only one background on any given card, it was always present, and it filled the card. All messages passed from the card to the background before moving on to the stack. In LiveCode, groups by default act as controls, and their message handling works as you expect, in visual layer order, responding only to messages that occur in objects contained within the group. But when you set the backgroundBehavior of a group to true, you're telling LC to act like HC: that group's script then occupies a different place in the message path, between the card and the stack, so that it can deliver what a ported HyperCard stack would expect. This becomes clearer if you modify your recipe script: on mousemove newMouseH, newMouseV put the name of the target, newMouseH, newMouseV &cr after message end mousemove With that you can observe behavioral differences between moving the mouse when the group's backgroundBehavior is true and when that's set to false. When the backgroundBehavior is false, of course the only target is the control within the group, and that's the only target identified in the list growing in the Message Box. But when true, you'll see a mix of objects, sometimes the control in the group and sometimes the card, depending on whether the mouse is within the control. This becomes even more evident if you modify the recipe script to include "me", and pass the message, and then copy that to both the card and stack scripts: on mousemove newMouseH, newMouseV put the name of me && the name of the target, newMouseH, newMouseV \ &cr after message pass mouseMove end mousemove TL;DR: Don't go out of your way to use a property designed for HyperCard compatibility and you'll remain in the more flexible and sometimes more predictable LiveCode paradigms. :) -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bobsneidar at iotecdigital.com Thu Apr 27 12:36:59 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 27 Apr 2017 16:36:59 +0000 Subject: Community Coding Standards, Naming Conventions, Best Practice in LiveCode Script for community contribution work In-Reply-To: References: Message-ID: <86CD113F-423B-4600-A2CD-2B3A8CF7AAC4@iotecdigital.com> The problem with ambiguous counter names is that often there are nested repeat loops and knowing which counter for which loop is crucial to understanding the code. I almost never use i, j, k, l and when I do, I usually regret the choice and remember why I don't use them. Bob S > On Apr 27, 2017, at 09:31 , Roland Huettmann via use-livecode wrote: > > For local variables, I also do not like long expressions for simple > counters which are created "on the fly". The most widely adopted standard > is using i, j, k, l ... (not x and not tCount) -- but otherwise, local > variables in LCS start with "t" in LCS as tSomething. But something should > be recommended for all others to follow, and not just say "do as you like" From jonathandlynch at gmail.com Thu Apr 27 12:41:05 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Thu, 27 Apr 2017 12:41:05 -0400 Subject: Map Widget" In-Reply-To: References: <3E2BEE79-0F1C-4B99-879A-3D7CBAFC1B47@gmail.com> <1782591F-EF12-4835-85AA-7AF1979B86BF@iotecdigital.com> Message-ID: No - I don't even use google. I use bing maps, bing geocoding, and webglearth for 3D. Google's TOS and reputation scares me. I just use the browser widget, no other plugin. Sent from my iPhone > On Apr 27, 2017, at 12:26 PM, William Prothero via use-livecode wrote: > > Jonathon: > It looks like a Google Earth plugin is needed for Augmented Earth. True? Does that give you installation issues? Does the Map Widget behave well with plugins? > Bill > >> On Apr 27, 2017, at 9:09 AM, Jonathan Lynch via use-livecode wrote: >> >> I use maps in the browser widget extensively for Augmented Earth. It works great. >> >> You could hypothetically export the image data from the HTML canvas object, export the lat/lng boundaries, and present all of that through a LiveCode image object. Be prepared to do a bit of math, but I think it would work. >> >> Many of the map apis allow you to put both markers and polygons on a map with JavaScript, which might give you better performance. >> >> Sent from my iPhone >> >>> On Apr 27, 2017, at 11:26 AM, William Prothero via use-livecode wrote: >>> >>> What I'm thinking about is a map that I can control location and magnification of a google map from livecode, do an image capture, and draw symbols on that capture. I would need to be able to recover the latitude and longitude of the displayed map boundaries. >>> >>> I remember some discussions about whether image capture works with browser windows. >>> >>> If anybody has wisdom on whether this will work, before I spend a bunch of time researching this, I'd be grateful. There is, I think, an API to google Earth, which might be something to look into. >>> >>> Thanks, >>> Bill P >>> >>> William Prothero >>> http://es.earthednet.org >>> >>>> On Apr 27, 2017, at 8:04 AM, Bob Sneidar via use-livecode wrote: >>>> >>>> I do not believe you can have a google map not in a browser. That is to say, you cannot have a google INTERACTIVE map. You can certainly drop screenshots in as graphics. >>>> >>>> Bob S >>>> >>>> >>>>> On Apr 26, 2017, at 19:31 , William Prothero via use-livecode wrote: >>>>> >>>>> I found this link on the LC site. >>>>> https://livecode.com/map-widget-coming-to-livecode/ >>>>> >>>>> Is there a map widget? Anybody working with google maps, not in a browser? If so, could you point me to a URL for a starter >>>>> Bill >>>>> >>>>> William A. Prothero >>>>> http://earthlearningsolution.org/ >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jonathandlynch at gmail.com Thu Apr 27 12:54:04 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Thu, 27 Apr 2017 12:54:04 -0400 Subject: Map Widget" In-Reply-To: References: <3E2BEE79-0F1C-4B99-879A-3D7CBAFC1B47@gmail.com> <1782591F-EF12-4835-85AA-7AF1979B86BF@iotecdigital.com> Message-ID: <7C97FE99-245B-40FF-8672-D8F74CBD77DF@gmail.com> Actually, I use tsnet for getting geocoding data from bing. Neither the put URL command nor using a separate communication browser widget worked for that. Sent from my iPhone > On Apr 27, 2017, at 12:41 PM, jonathandlynch at gmail.com wrote: > > No - I don't even use google. I use bing maps, bing geocoding, and webglearth for 3D. > > Google's TOS and reputation scares me. > > I just use the browser widget, no other plugin. > > Sent from my iPhone > >> On Apr 27, 2017, at 12:26 PM, William Prothero via use-livecode wrote: >> >> Jonathon: >> It looks like a Google Earth plugin is needed for Augmented Earth. True? Does that give you installation issues? Does the Map Widget behave well with plugins? >> Bill >> >>> On Apr 27, 2017, at 9:09 AM, Jonathan Lynch via use-livecode wrote: >>> >>> I use maps in the browser widget extensively for Augmented Earth. It works great. >>> >>> You could hypothetically export the image data from the HTML canvas object, export the lat/lng boundaries, and present all of that through a LiveCode image object. Be prepared to do a bit of math, but I think it would work. >>> >>> Many of the map apis allow you to put both markers and polygons on a map with JavaScript, which might give you better performance. >>> >>> Sent from my iPhone >>> >>>> On Apr 27, 2017, at 11:26 AM, William Prothero via use-livecode wrote: >>>> >>>> What I'm thinking about is a map that I can control location and magnification of a google map from livecode, do an image capture, and draw symbols on that capture. I would need to be able to recover the latitude and longitude of the displayed map boundaries. >>>> >>>> I remember some discussions about whether image capture works with browser windows. >>>> >>>> If anybody has wisdom on whether this will work, before I spend a bunch of time researching this, I'd be grateful. There is, I think, an API to google Earth, which might be something to look into. >>>> >>>> Thanks, >>>> Bill P >>>> >>>> William Prothero >>>> http://es.earthednet.org >>>> >>>>> On Apr 27, 2017, at 8:04 AM, Bob Sneidar via use-livecode wrote: >>>>> >>>>> I do not believe you can have a google map not in a browser. That is to say, you cannot have a google INTERACTIVE map. You can certainly drop screenshots in as graphics. >>>>> >>>>> Bob S >>>>> >>>>> >>>>>> On Apr 26, 2017, at 19:31 , William Prothero via use-livecode wrote: >>>>>> >>>>>> I found this link on the LC site. >>>>>> https://livecode.com/map-widget-coming-to-livecode/ >>>>>> >>>>>> Is there a map widget? Anybody working with google maps, not in a browser? If so, could you point me to a URL for a starter >>>>>> Bill >>>>>> >>>>>> William A. Prothero >>>>>> http://earthlearningsolution.org/ >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode From blueback09 at gmail.com Thu Apr 27 12:55:06 2017 From: blueback09 at gmail.com (Matt Maier) Date: Thu, 27 Apr 2017 09:55:06 -0700 Subject: Swiping between cards - metaphor end-of-the-road? In-Reply-To: <9c673eea-588f-4820-9f58-ddff5ba31eae@researchware.com> References: <8fdd3def-e526-f4ea-bfab-58f30e457065@fourthworld.com> <9c673eea-588f-4820-9f58-ddff5ba31eae@researchware.com> Message-ID: Maybe each card could have a parameter like "swipeTo" which would be the id of another card. Default could be nothing, which would disable swipe. But if there's a card id in there then swiping would put that card "underneath" so it's visible as the current card moves and if the swipe gesture completes the stack moves to that new card. The swipe gesture might be just a scroll that's handled as a swipe when the card can't scroll in that direction. Like if you swipe up/down the content scrolls, but if you swipe left/right, since there's no scroll in that direction, you get a swipe to another card. On Wed, Apr 26, 2017 at 1:41 PM, Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > On 4/26/2017 3:02 PM, Richard Gaskin via use-livecode wrote: > > Either way, the gestures themselves are only part of the challenge. > > In fact, for card swiping we need only one, a swipe. The bigger part > > is handling the dual-card render during the gesture. > > > This would work (in theory) for the visualization except that didn't > visual effect end in LC 8 with deprecating quicktime? > > visual effect wipe left slowly > go next cd > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 27 13:17:54 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 27 Apr 2017 10:17:54 -0700 Subject: Swiping between cards - metaphor end-of-the-road? In-Reply-To: <9c673eea-588f-4820-9f58-ddff5ba31eae@researchware.com> References: <9c673eea-588f-4820-9f58-ddff5ba31eae@researchware.com> Message-ID: <6b99e7f6-2191-d06c-f234-18d88996fcdb@fourthworld.com> Paul Dupuis wrote: > On 4/26/2017 3:02 PM, Richard Gaskin via use-livecode wrote: >> Either way, the gestures themselves are only part of the challenge. >> In fact, for card swiping we need only one, a swipe. The bigger part >> is handling the dual-card render during the gesture. > > > This would work (in theory) for the visualization except that didn't > visual effect end in LC 8 with deprecating quicktime? > > visual effect wipe left slowly > go next cd That will give us an appearance suitable for a discrete action, like a button click, but it won't track the user's finger. A true swipe follows the user's finger, and even cancels by swiping back into the original position if the user releases their finger before a certain horizontal threshold is reached. -- 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 Apr 27 13:29:11 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 27 Apr 2017 12:29:11 -0500 Subject: on tabKey - what field contains the blinking curser? In-Reply-To: References: <9db5ff6b-6b7d-bfc4-7a97-7ca897d5162f@hyperactivesw.com> Message-ID: <688ab562-464a-1afe-621a-5ec94b674b01@hyperactivesw.com> This seems to work: on tabKey send "doSelect" to me in 1 pass tabKey end tabKey on doSelect select after the selectedfield end doSelect On 4/26/17 7:21 PM, Roger Eller via use-livecode wrote: > When I tab to the next field, I want to select after the field content, or > in other words place the blinking bar at the end of whatever is already > there. By default, it is placing it in front of the field content. > > On Apr 26, 2017 6:14 PM, "J. Landman Gay via use-livecode" < > use-livecode at lists.runrev.com> wrote: > >> On 4/26/17 3:58 PM, Roger Eller via use-livecode wrote: >> >>> How do I discover the name of the field which has received focus (blinking >>> edit bar cursor) when the tabKey is pressed? >>> >> >> One way: >> >> on openfield >> put the name of the target >> end openfield >> >> I'm not sure if you want to trap a message though. The selectedField will >> return identification if you're querying from inside another handler. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Thu Apr 27 13:30:23 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 27 Apr 2017 10:30:23 -0700 Subject: Swiping between cards - metaphor end-of-the-road? In-Reply-To: References: Message-ID: <100aa237-f937-90dc-de52-4cf9f5db82e5@fourthworld.com> Matt Maier wrote: > Maybe each card could have a parameter like "swipeTo" which would be > the id of another card. Default could be nothing, which would disable > swipe. But if there's a card id in there then swiping would put that > card "underneath" so it's visible as the current card moves and if > the swipe gesture completes the stack moves to that new card. > > The swipe gesture might be just a scroll that's handled as a swipe > when the card can't scroll in that direction. Like if you swipe > up/down the content scrolls, but if you swipe left/right, since > there's no scroll in that direction, you get a swipe to another card. I like where you're going with that. But it also suggests other options that would be useful, more stuff to think over before submitting a request. Rather than a single swipeDestination property to designate which card we go to during a swipte, ideally we'd want that for each of the four cardinal directions, e.g. swipeLeftDestination, swipeTopDestination, etc. Also, it would be nice to be able to specify the origin threshold, since sometimes we'd want to initiate a drag from any part of the card and other times only from a certain edge. Hmmm...not so simple once we dive into the full range of use-cases, but I do think it's worth exploring this here because it would be SOOOOO much simpler to use LC's card metaphor for modern apps if we had more fluid transition capabilities. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dunbarx at aol.com Thu Apr 27 14:04:28 2017 From: dunbarx at aol.com (dunbarx) Date: Thu, 27 Apr 2017 11:04:28 -0700 (PDT) Subject: mouseMove & backgoundBehavior In-Reply-To: <0d12e4e2-c5aa-f7f7-ba60-2e3644b85c57@fourthworld.com> References: <0d12e4e2-c5aa-f7f7-ba60-2e3644b85c57@fourthworld.com> Message-ID: <1493316268179-4714314.post@n4.nabble.com> Richard. I understand the reordering of the layers in the hierarchy. That is not the issue. If you modify the handler: on mousemove newMouseH, newMouseV if the mouseLoc is within the rect of me then put newMouseH, newMouseV end mousemove Even with backGroundBehavior set to "true", the message now only fires when the cursor is within the rect. Like it should. It is a matter of, er, control, not message passing. The constraint to be within the rect implies that the control is just what it seems to be, that is, only as large as it seems to be. This regardless of any change in the hierarchy. The group does not "take over" the whole card in the sense that you imply, unless (not impossible at all) I misunderstand you. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/mouseMove-backgoundBehavior-tp4714294p4714314.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Thu Apr 27 14:35:17 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 27 Apr 2017 11:35:17 -0700 Subject: mouseMove & backgoundBehavior In-Reply-To: <1493316268179-4714314.post@n4.nabble.com> References: <1493316268179-4714314.post@n4.nabble.com> Message-ID: <30e59eab-3ed9-89c4-718e-3e525abf162b@fourthworld.com> dunbarx wrote: > I understand the reordering of the layers in the hierarchy. That is > not the issue. If you modify the handler: > > on mousemove newMouseH, newMouseV > if the mouseLoc is within the rect of me then put newMouseH, newMouseV > end mousemove > > Even with backGroundBehavior set to "true", the message now only > fires when the cursor is within the rect. Like it should. It is a > matter of, er, control, not message passing. The constraint to be > within the rect implies that the control is just what it seems to > be, that is, only as large as it seems to be. This regardless of > any change in the hierarchy. > > The group does not "take over" the whole card in the sense that you > imply, unless (not impossible at all) I misunderstand you. It's true that we can introduce a condition that constrains the outcome, but that's about the condition, not the change to the message path that gets introduce when you turn a group into a background. Remember, in LC a group and a background may be the same physical objects, but they serve different roles. HC never had a mouseMove message, so that may be less intuitive. Let's consider another mouse message, mouseUp, instead: If you put a mouseUp at the card or stack level, what happens? Is it what you would expect? Would you expect a background script situated in the message path between the two to act differently? Change mouseUp to mouseMove (and most other messages), and unless I'm even shorter on sleep this morning than I think I am, I believe that appears to be what we're seeing here, no? I think the challenge here is the flexibility of LC's groups. It's possible to have a background that is smaller than the card. And we can even have multiple backgrounds. These are things we didn't have in HC, so when we need to support HC paradigms it can get confusing. If it helps, limit your layout to one background, make it the full size of the card, keep it at layer 1, and voila! you have HyperCard. :) -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From waprothero at gmail.com Thu Apr 27 15:04:37 2017 From: waprothero at gmail.com (William Prothero) Date: Thu, 27 Apr 2017 12:04:37 -0700 Subject: Map Widget" In-Reply-To: <7C97FE99-245B-40FF-8672-D8F74CBD77DF@gmail.com> References: <3E2BEE79-0F1C-4B99-879A-3D7CBAFC1B47@gmail.com> <1782591F-EF12-4835-85AA-7AF1979B86BF@iotecdigital.com> <7C97FE99-245B-40FF-8672-D8F74CBD77DF@gmail.com> Message-ID: <76C4285F-E604-4A76-94CD-CECB6976EDAC@gmail.com> Thanks for the info, Jonathon. I?ll post what I find out. Best, Bill P > On Apr 27, 2017, at 9:54 AM, Jonathan Lynch via use-livecode wrote: > > Actually, I use tsnet for getting geocoding data from bing. Neither the put URL command nor using a separate communication browser widget worked for that. > > Sent from my iPhone > >> On Apr 27, 2017, at 12:41 PM, jonathandlynch at gmail.com wrote: >> >> No - I don't even use google. I use bing maps, bing geocoding, and webglearth for 3D. >> >> Google's TOS and reputation scares me. >> >> I just use the browser widget, no other plugin. >> >> Sent from my iPhone >> >>> On Apr 27, 2017, at 12:26 PM, William Prothero via use-livecode wrote: >>> >>> Jonathon: >>> It looks like a Google Earth plugin is needed for Augmented Earth. True? Does that give you installation issues? Does the Map Widget behave well with plugins? >>> Bill >>> >>>> On Apr 27, 2017, at 9:09 AM, Jonathan Lynch via use-livecode wrote: >>>> >>>> I use maps in the browser widget extensively for Augmented Earth. It works great. >>>> >>>> You could hypothetically export the image data from the HTML canvas object, export the lat/lng boundaries, and present all of that through a LiveCode image object. Be prepared to do a bit of math, but I think it would work. >>>> >>>> Many of the map apis allow you to put both markers and polygons on a map with JavaScript, which might give you better performance. >>>> >>>> Sent from my iPhone >>>> >>>>> On Apr 27, 2017, at 11:26 AM, William Prothero via use-livecode wrote: >>>>> >>>>> What I'm thinking about is a map that I can control location and magnification of a google map from livecode, do an image capture, and draw symbols on that capture. I would need to be able to recover the latitude and longitude of the displayed map boundaries. >>>>> >>>>> I remember some discussions about whether image capture works with browser windows. >>>>> >>>>> If anybody has wisdom on whether this will work, before I spend a bunch of time researching this, I'd be grateful. There is, I think, an API to google Earth, which might be something to look into. >>>>> >>>>> Thanks, >>>>> Bill P >>>>> >>>>> William Prothero >>>>> http://es.earthednet.org >>>>> >>>>>> On Apr 27, 2017, at 8:04 AM, Bob Sneidar via use-livecode wrote: >>>>>> >>>>>> I do not believe you can have a google map not in a browser. That is to say, you cannot have a google INTERACTIVE map. You can certainly drop screenshots in as graphics. >>>>>> >>>>>> Bob S >>>>>> >>>>>> >>>>>>> On Apr 26, 2017, at 19:31 , William Prothero via use-livecode wrote: >>>>>>> >>>>>>> I found this link on the LC site. >>>>>>> https://livecode.com/map-widget-coming-to-livecode/ >>>>>>> >>>>>>> Is there a map widget? Anybody working with google maps, not in a browser? If so, could you point me to a URL for a starter >>>>>>> Bill >>>>>>> >>>>>>> William A. Prothero >>>>>>> http://earthlearningsolution.org/ >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Apr 27 15:16:58 2017 From: waprothero at gmail.com (William Prothero) Date: Thu, 27 Apr 2017 12:16:58 -0700 Subject: Map Widget" In-Reply-To: <4D3145E1-6713-4B8C-8568-BBDFAC207BDE@byu.edu> References: <3E2BEE79-0F1C-4B99-879A-3D7CBAFC1B47@gmail.com> <1782591F-EF12-4835-85AA-7AF1979B86BF@iotecdigital.com> <700415F0-DCD0-45A3-92AF-D111AF327242@gmail.com> <4D3145E1-6713-4B8C-8568-BBDFAC207BDE@byu.edu> Message-ID: Devin: Looking at the dictionary, it only works on iOS. I need Mac and Windows platforms, and iOS is good, but limited. But, this external looks like it would do what I want, as it is described. It looks like it will take map data and make and image which I could then modify as I want. Alas, no dice on the desktop. A cross platform Map widget that does this would be pretty useful. Best, Bill P > On Apr 27, 2017, at 9:29 AM, Devin Asay via use-livecode wrote: > > Bill, > > Have you checked the mergMK extension referred to in the post? To my knowledge the widget referred ton in the post has not yet been created. > > To take another tack?have you looked at the Google Static Map API? If you?re comfortable using RESTful API?s in LiveCode you can get a pretty serviceable map display in your stack. The API just returns image data, so it?s pretty straightforward to display the map in an image object. > > https://developers.google.com/maps/documentation/static-maps/?csw=1 > > HTH > > Devin > > > On Apr 27, 2017, at 10:01 AM, William Prothero via use-livecode > wrote: > > Folks: > On another aspect of this question, was a Map Widget, advertised on the site I linked to below, ever created? > https://livecode.com/map-widget-coming-to-livecode/ > Bill > > > William A. Prothero > http://earthlearningsolution.org/ > > > I found this link on the LC site. > https://livecode.com/map-widget-coming-to-livecode/ > > Is there a map widget? Anybody working with google maps, not in a browser? If so, could you point me to a URL for a starter > 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 > > Devin Asay > Director > Office of Digital Humanities > Brigham Young University > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jiml at netrin.com Thu Apr 27 15:53:16 2017 From: jiml at netrin.com (Jim Lambert) Date: Thu, 27 Apr 2017 12:53:16 -0700 Subject: mouseMove & backgoundBehavior In-Reply-To: References: Message-ID: RichardG wrote: > when you set the backgroundBehavior of a group to true... that group's script then occupies a different > place in the message path, between the card and the stack Ah, yes, the light dawns - the message path. Because LC ?backgrounds? can be smaller than the card, checking the target or using ?within? would be needed to constrain actions taken to the rect of a background group. And since multiple backgrounds are possible, only the script of the topmost background seems to be inserted in between the card and stack in the message path. One must click directly on objects within other, lower background groups to trigger its handlers. Thanks, JimL From roger.e.eller at sealedair.com Thu Apr 27 16:10:54 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 27 Apr 2017 16:10:54 -0400 Subject: on tabKey - what field contains the blinking curser? In-Reply-To: <688ab562-464a-1afe-621a-5ec94b674b01@hyperactivesw.com> References: <9db5ff6b-6b7d-bfc4-7a97-7ca897d5162f@hyperactivesw.com> <688ab562-464a-1afe-621a-5ec94b674b01@hyperactivesw.com> Message-ID: Send to X in 1 ? Is the default a millisec? On Apr 27, 2017 1:29 PM, "J. Landman Gay via use-livecode" < use-livecode at lists.runrev.com> wrote: This seems to work: on tabKey send "doSelect" to me in 1 pass tabKey end tabKey on doSelect select after the selectedfield end doSelect On 4/26/17 7:21 PM, Roger Eller via use-livecode wrote: > When I tab to the next field, I want to select after the field content, or > in other words place the blinking bar at the end of whatever is already > there. By default, it is placing it in front of the field content. > > On Apr 26, 2017 6:14 PM, "J. Landman Gay via use-livecode" < > use-livecode at lists.runrev.com> wrote: > > On 4/26/17 3:58 PM, Roger Eller via use-livecode wrote: >> >> How do I discover the name of the field which has received focus (blinking >>> edit bar cursor) when the tabKey is pressed? >>> >>> >> One way: >> >> on openfield >> put the name of the target >> end openfield >> >> I'm not sure if you want to trap a message though. The selectedField will >> return identification if you're querying from inside another handler. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Thu Apr 27 16:27:20 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 27 Apr 2017 16:27:20 -0400 Subject: Make numberFormat even better AND Cognitive Load In-Reply-To: References: <5900690D.40803@pair.com> <39381260-3484-479B-A3C3-63D5A66847AE@earthlearningsolutions.org> <9e55be424208b83afe4c4f92169cec1e@livecode.com> Message-ID: On the topic of keeping LC stupid-simple, here's of one of those ways that LC makes ugly math fun: # put the short date into theDate convert theDate to dateItems put 0 into item 3 of theDate convert theDate to short date put theDate # On Wed, Apr 26, 2017 at 12:45 PM, Mike Kerner wrote: > I think 3 is something we should scratch off the list, since we have more > important fish for you to fry. > > On Wed, Apr 26, 2017 at 11:42 AM, Mark Waddingham via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On 2017-04-26 16:00, prothero--- via use-livecode wrote: >> >>> Ok, I'll shut up about this for now. Sorry to unfocus the thread. >>> >> >> To be fair, I managed to conflate three issues: >> >> 1) Improving numberFormat >> >> 2) How we could get arbitrary precision integers whilst retaining >> doubles for reals >> >> 3) How to make numberFormat and array keys play nice together >> >> They are all distinct issues really, although the numberFormat is >> involved in all three (at least in some way) :) >> >> Warmest Regards, >> >> Mark. >> >> -- >> Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ >> LiveCode: Everyone can create apps >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From waprothero at gmail.com Thu Apr 27 16:49:06 2017 From: waprothero at gmail.com (William Prothero) Date: Thu, 27 Apr 2017 13:49:06 -0700 Subject: Getting a Google MAP Message-ID: <6BC41043-6490-46E5-9E4F-525AE6FE911F@gmail.com> Folks: Turns out there is a Google Static Map api. I?m trying to use it, but get no response from my code that indicates an error. The Static Maps API URL is: https://developers.google.com/maps/documentation/static-maps/?csw=1 From the dictionary, it looks like I can do this: (this is the example in the google docs. It gives me a map when I put the URL into the browser). on mouseUp put mapURL() into tURL put tURL put URL tURL into x put x into image ?myGMap? ?This, obviously won?t work. See below. end mouseUp function mapURL put "https://maps.googleapis.com/maps/api/staticmap?center=Berkeley,CA&zoom=14&size=400x400&key=AIzaSyCO423QzwaEEBmiw4XjPKzz4Tcg_5bjHv4" into retURL return retURL end mapURL I get text back that looks like that below. It is obviously in some format I can decode in Livecode. I?ve just reached my comfort level with this. How should I decode this. so I can set the imagedata to it? Tnx, Bill P ?start of returned text ?PNG  ??? IHDR??????????a?????PLTE<84{<,KKKLLLNNNSPLPPPRRRTTTVVVYYY^^^aaabbbdddfffkgchhhmmmssstttxxxzzz4?S???B??D??E??I??N??O??P??S??T??X??Z??Y??a??b??j??m??t??{??}???{W?oc?C5?D8?E:?G9?J:?L? From bonnmike at gmail.com Thu Apr 27 16:53:52 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 27 Apr 2017 14:53:52 -0600 Subject: Getting a Google MAP In-Reply-To: <6BC41043-6490-46E5-9E4F-525AE6FE911F@gmail.com> References: <6BC41043-6490-46E5-9E4F-525AE6FE911F@gmail.com> Message-ID: Since its a static map, its returned in image format (note the png at the beginning) You should be able to: put URL " https://maps.googleapis.com/maps/api/staticmap?center=Berkeley,CA&zoom=14&size=400x400&key=AIzaSyCO423QzwaEEBmiw4XjPKzz4Tcg_5bjHv4" into img "myImage" and viola. have the map appear. On Thu, Apr 27, 2017 at 2:49 PM, William Prothero via use-livecode < use-livecode at lists.runrev.com> wrote: > Folks: > Turns out there is a Google Static Map api. I?m trying to use it, but get > no response from my code that indicates an error. > The Static Maps API URL is: https://developers.google.com/ > maps/documentation/static-maps/?csw=1 com/maps/documentation/static-maps/?csw=1> > > From the dictionary, it looks like I can do this: (this is the example in > the google docs. It gives me a map when I put the URL into the browser). > on mouseUp > > put mapURL() into tURL > > put tURL > > put URL tURL into x > > put x into image ?myGMap? ?This, obviously won?t work. See below. > > end mouseUp > > > function mapURL > > put "https://maps.googleapis.com/maps/api/staticmap?center= > Berkeley,CA&zoom=14&size=400x400&key=AIzaSyCO423QzwaEEBmiw4XjPKzz4T > cg_5bjHv4" into retURL > > return retURL > > end mapURL > > I get text back that looks like that below. It is obviously in some format > I can decode in Livecode. I?ve just reached my comfort level with this. How > should I decode this. so I can set the imagedata to it? > Tnx, > Bill P > > ?start of returned text > ?PNG > > > > ??? > IHDR?? ??? ? ????a???? ?PLTE<84{<,KKKLLLNNNSPLPPPRRRTTTVVVYYY^^^ > aaabbbdddfffkgchhhmmmssstttxxxzzz 4?S???B??D??E??I??N??O??P??S??T??X?? > Z??Y??a??b??j??m??t??{??}???{W?oc?C5?D8?E:?G9?J:?L? > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 27 16:57:30 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 27 Apr 2017 15:57:30 -0500 Subject: on tabKey - what field contains the blinking curser? In-Reply-To: References: <9db5ff6b-6b7d-bfc4-7a97-7ca897d5162f@hyperactivesw.com> <688ab562-464a-1afe-621a-5ec94b674b01@hyperactivesw.com> Message-ID: <93aebc48-e11c-e062-1b4f-ff4920fa60af@hyperactivesw.com> The default is a tick (1/60 second). You could add "millisecond" after the 1 and that would probably be enough time. I get lazy with small time units when it doesn't matter much and tend to omit extra typing. On 4/27/17 3:10 PM, Roger Eller via use-livecode wrote: > Send to X in 1 ? Is the default a millisec? > > > On Apr 27, 2017 1:29 PM, "J. Landman Gay via use-livecode" < > use-livecode at lists.runrev.com> wrote: > > This seems to work: > > on tabKey > send "doSelect" to me in 1 > pass tabKey > end tabKey > > on doSelect > select after the selectedfield > end doSelect > > > On 4/26/17 7:21 PM, Roger Eller via use-livecode wrote: > >> When I tab to the next field, I want to select after the field content, or >> in other words place the blinking bar at the end of whatever is already >> there. By default, it is placing it in front of the field content. >> >> On Apr 26, 2017 6:14 PM, "J. Landman Gay via use-livecode" < >> use-livecode at lists.runrev.com> wrote: >> >> On 4/26/17 3:58 PM, Roger Eller via use-livecode wrote: >>> >>> How do I discover the name of the field which has received focus (blinking >>>> edit bar cursor) when the tabKey is pressed? >>>> >>>> >>> One way: >>> >>> on openfield >>> put the name of the target >>> end openfield >>> >>> I'm not sure if you want to trap a message though. The selectedField will >>> return identification if you're querying from inside another handler. >>> >>> -- >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From devin_asay at byu.edu Thu Apr 27 17:41:26 2017 From: devin_asay at byu.edu (Devin Asay) Date: Thu, 27 Apr 2017 21:41:26 +0000 Subject: Getting a Google MAP In-Reply-To: <6BC41043-6490-46E5-9E4F-525AE6FE911F@gmail.com> References: <6BC41043-6490-46E5-9E4F-525AE6FE911F@gmail.com> Message-ID: <66F79EF4-46A8-4298-949E-6B4C590CEC82@byu.edu> Bill, As Mike mentioned, the API call returns image data, so set the filename of an image to the url. Here?s the script from a working demo: on mouseUp put urlEncode(fld "address") into tAddress put urlEncode(fld "city") into tCity put urlEncode(fld "state") into tState put the thumbposition of scrollbar "scale" into tScale put the hilitedButtonName of group "maptype" into tType put "http://maps.google.com/maps/api/staticmap" into tBaseURL put "?center=" into tArgList if tAddress is empty then --put empty into tArgList else put tAddress & comma after tArgList end if put tCity & comma & tState after tArgList put "&zoom=" & tScale & "&size=512x512&maptype=" & tType after tArgList # build marker put urlEncode(fld "m_address") into tMAddress put urlEncode(fld "m_city") into tMCity put urlEncode(fld "m_state") into tMState put the label of btn "color" into tMColor put toUpper(char 1 of fld "label") into tMLabel put "&markers=" & "color:" & tMColor & "|label:" & tMLabel & "|" & tMAddress,tMCity,tMState after tArgList put tBaseURL & tArgList into fld "urlfld" set the filename of img "map" to fld "urlfld" end mouseUp Most of the script is building a URL string with the proper arguments. The last two statements are where you actually display the image. One thing I will say its that if you want to use it for other than just occasional demos, you will have to register with Google for an API key, when gets tacked on to the end of the argument list for the URL. If you?d like you can grab the working stack here (from the message box): go stack URL "http://dight310.byu.edu/lesson_materials/14-Web_services/googleMaps.livecode" Hope this helps. Devin On Apr 27, 2017, at 2:49 PM, William Prothero via use-livecode > wrote: Folks: Turns out there is a Google Static Map api. I?m trying to use it, but get no response from my code that indicates an error. The Static Maps API URL is: https://developers.google.com/maps/documentation/static-maps/?csw=1 From the dictionary, it looks like I can do this: (this is the example in the google docs. It gives me a map when I put the URL into the browser). on mouseUp put mapURL() into tURL put tURL put URL tURL into x put x into image ?myGMap? ?This, obviously won?t work. See below. end mouseUp function mapURL put "https://maps.googleapis.com/maps/api/staticmap?center=Berkeley,CA&zoom=14&size=400x400&key=AIzaSyCO423QzwaEEBmiw4XjPKzz4Tcg_5bjHv4" into retURL return retURL end mapURL I get text back that looks like that below. It is obviously in some format I can decode in Livecode. I?ve just reached my comfort level with this. How should I decode this. so I can set the imagedata to it? Tnx, Bill P ?start of returned text ?PNG  ??? IHDR??????????a?????PLTE<84{<,KKKLLLNNNSPLPPPRRRTTTVVVYYY^^^aaabbbdddfffkgchhhmmmssstttxxxzzz4?S???B??D??E??I??N??O??P??S??T??X??Z??Y??a??b??j??m??t??{??}???{W?oc?C5?D8?E:?G9?J:?L? _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Director Office of Digital Humanities Brigham Young University From bobsneidar at iotecdigital.com Thu Apr 27 18:36:39 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 27 Apr 2017 22:36:39 +0000 Subject: Getting a Google MAP In-Reply-To: <66F79EF4-46A8-4298-949E-6B4C590CEC82@byu.edu> References: <6BC41043-6490-46E5-9E4F-525AE6FE911F@gmail.com> <66F79EF4-46A8-4298-949E-6B4C590CEC82@byu.edu> Message-ID: Here is how I get directions in a map: on mouseUp pMouseBtnNo put "https://www.google.com/maps/dir/12150+Mora+Dr,+Santa+Fe+Springs,+CA+90670,+USA/" into theURL put the dgHilitedLine of group "dgSites" into theHilitedLine put the dgDataOfLine [thehilitedline] of group "dgSites" into aRecordData put urlencode(aRecordData["addr1"]) & "+" & \ urlencode(aRecordData["city"]) & "+" & \ urlencode(aRecordData["state"]) & "+" & \ urlencode(aRecordData["zip"]) into theAddress set the clipboarddata to \ aRecordData["addr1"] & space & \ aRecordData["city"] & space & \ aRecordData["state"] & space & \ aRecordData["zip"] put theURL & urlencode(theAddress) into theURL launch url theURL end mouseUp Note I have hardcoded the start location into the URL, but that can be dealt with easy enough. Also I am pullign data from a datagrid, but that also can be sussed out easily enough. This *should* work in a browser object, no? Bob S From bobsneidar at iotecdigital.com Thu Apr 27 18:42:51 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 27 Apr 2017 22:42:51 +0000 Subject: Make numberFormat even better AND Cognitive Load In-Reply-To: References: <5900690D.40803@pair.com> <39381260-3484-479B-A3C3-63D5A66847AE@earthlearningsolutions.org> <9e55be424208b83afe4c4f92169cec1e@livecode.com> Message-ID: Yup. I do that a lot. Where I have an issue is dividing up a block of time into multiple segments, where the minutes may not divide evenly between all the segments. So I produced this: function timeTable pStartTime, pStartLunch, pEndLunch, pEndTime, pItemCount set the itemDelimiter to ":" -- convert all times to minutes put item 2 of pStartTime + (item 1 of pStartTime *60) into tStartTimeMinutes put item 2 of pStartLunch + (item 1 of pStartLunch *60) into tStartLunchMinutes put item 2 of pEndLunch + (item 1 of pEndLunch *60) into tEndLunchMinutes put item 2 of pEndTime + (item 1 of pEndTime *60) into tEndTimeMinutes put tEndLunchMinutes - tStartLunchMinutes into tLunchMinutes put tEndTimeMinutes - tStartTimeMinutes - tLunchMinutes into tTotalMinutes -- calculate the minutes per item with remainder put tTotalMinutes div pItemCount into tItemMinutes put tTotalMinutes mod pItemCount into tModMinutes -- if there was no lunch times provided, make some up if pStartLunch is empty then put tStartTimeMinutes + tItemMinutes into tStartLunchMinutes put tStartLunchMinutes into tEndLunchMinutes end if repeat with counter = 1 to pItemCount put tStartTimeMinutes into aTimeTable [counter] [1] put tStartTimeMinutes + tItemMinutes into tNextTimeMinutes -- distribute spare minutes if tModMinutes >0 then add 1 to tNextTimeMinutes subtract 1 from tModMinutes end if if tLunchMinutes > 0 then if tNextTimeMinutes >= tStartLunchMinutes then put tStartLunchMinutes into aTimeTable [counter] [2] put tEndLunchMinutes into aTimeTable [counter] [3] add tLunchMinutes to tNextTimeMinutes put 0 into tLunchMinutes else put 0 into aTimeTable [counter] [2] put 0 into aTimeTable [counter] [3] end if else put 0 into aTimeTable [counter] [2] put 0 into aTimeTable [counter] [3] end if put tNextTimeMinutes into aTimeTable [counter] [4] -- calculate total minutes for this record put (aTimeTable [counter] [4] - aTimeTable [counter] [1]) - \ (aTimeTable [counter] [3] - aTimeTable [counter] [2]) \ into aTimeTable [counter] [5] put tNextTimeMinutes into tStartTimeMinutes end repeat -- convert minutes back to seconds put the keys of aTimeTable into tTableKeys sort lines of tTableKeys numeric ascending repeat for each line tKey in tTableKeys put aTimeTable [tKey] into aTimeRecord put the keys of aTimeRecord into aRecordKeys repeat for each line tRecordKey in aRecordKeys put aTimeRecord [tRecordKey] into tTime if tTime = 0 then put empty into aTimeTable [tKey] [tRecordKey] else put tTime div 60 & ":" & tTime mod 60 into tTime put formatTime(tTime, "sql time") into tTime put char 1 to 5 of tTime into aTimeTable [tKey] [tRecordKey] end if end repeat end repeat return aTimeTable end timeTable function formatTime theTime, theFormat /* accepts any valid time and returns the form of the time specified in the second parameter. The valid formats are: sql time: hh:mm:ss (Note: combining sql date from the formatDate() function with the sql time will produce a valid SQL date time type). short time: LC short time format abbreviated time: LC abbr time format (same as short time) long time: LC long time format seconds: the number of seconds since the prior midnight military: the military time 00:00 - 23:59 */ if theTime is empty then return empty set the numberformat to "00" switch theFormat case "sql time" convert theTime to dateitems put (item 4 of theTime +0) & ":" & \ (item 5 of theTime +0) & ":" & \ (item 6 of theTime +0) into theTime break case "short time" convert theTime to short time break case "abbreviated time" convert theTime to abbreviated time break case "long time" convert theTime to long time break case "seconds" convert theTime to seconds break case "military" set the itemdelimiter to ":" if theTime contains "PM" then add 12 to item 1 of theTime end if put word 1 of item 2 of theTime into item 2 of theTime break end switch return theTime end formatTime > On Apr 27, 2017, at 13:27 , Mike Kerner via use-livecode wrote: > > On the topic of keeping LC stupid-simple, here's of one of those ways that > LC makes ugly math fun: > # > > put the short date into theDate > convert theDate to dateItems > put 0 into item 3 of theDate > convert theDate to short date > put theDate From blueback09 at gmail.com Thu Apr 27 19:16:01 2017 From: blueback09 at gmail.com (Matt Maier) Date: Thu, 27 Apr 2017 16:16:01 -0700 Subject: Swiping between cards - metaphor end-of-the-road? In-Reply-To: <100aa237-f937-90dc-de52-4cf9f5db82e5@fourthworld.com> References: <100aa237-f937-90dc-de52-4cf9f5db82e5@fourthworld.com> Message-ID: That's a good point. Android apps commonly uses "swipe down" to trigger a refresh. The swipe still physically happens, but there's just a gray background behind it, and it pops back into place and resets. The main problem seems to be what happens during a swipe. Part of the effect is the feedback of seeing one card move on top of another. After the swipe is completed we can just use regular messages to do whatever. Another swipe effect would be pulling the next card in to fill the space left by the moving card, rather than the next card being stationary underneath. On Thu, Apr 27, 2017 at 10:30 AM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Matt Maier wrote: > > > Maybe each card could have a parameter like "swipeTo" which would be > > the id of another card. Default could be nothing, which would disable > > swipe. But if there's a card id in there then swiping would put that > > card "underneath" so it's visible as the current card moves and if > > the swipe gesture completes the stack moves to that new card. > > > > The swipe gesture might be just a scroll that's handled as a swipe > > when the card can't scroll in that direction. Like if you swipe > > up/down the content scrolls, but if you swipe left/right, since > > there's no scroll in that direction, you get a swipe to another card. > > I like where you're going with that. But it also suggests other options > that would be useful, more stuff to think over before submitting a request. > > Rather than a single swipeDestination property to designate which card we > go to during a swipte, ideally we'd want that for each of the four cardinal > directions, e.g. swipeLeftDestination, swipeTopDestination, etc. > > Also, it would be nice to be able to specify the origin threshold, since > sometimes we'd want to initiate a drag from any part of the card and other > times only from a certain edge. > > Hmmm...not so simple once we dive into the full range of use-cases, but I > do think it's worth exploring this here because it would be SOOOOO much > simpler to use LC's card metaphor for modern apps if we had more fluid > transition capabilities. > > -- > 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 waprothero at gmail.com Thu Apr 27 19:43:22 2017 From: waprothero at gmail.com (William Prothero) Date: Thu, 27 Apr 2017 16:43:22 -0700 Subject: Getting a Google MAP In-Reply-To: References: <6BC41043-6490-46E5-9E4F-525AE6FE911F@gmail.com> <66F79EF4-46A8-4298-949E-6B4C590CEC82@byu.edu> Message-ID: Hmm, I must have spoken too soon. This actually works! on mouseUp put mapURL() into tURL put URL tURL into x put x into image "myGMap" end mouseUp function mapURL put "https://maps.googleapis.com/maps/api/staticmap?center=Berkeley,CA&zoom=14&size=400x400&key=AIzaSyCO423QzwaEEBmiw4XjPKzz4Tcg_5bjHv4" into retURL return retURL end mapURL > On Apr 27, 2017, at 3:36 PM, Bob Sneidar via use-livecode wrote: > > Here is how I get directions in a map: > > on mouseUp pMouseBtnNo > put "https://www.google.com/maps/dir/12150+Mora+Dr,+Santa+Fe+Springs,+CA+90670,+USA/" into theURL > put the dgHilitedLine of group "dgSites" into theHilitedLine > put the dgDataOfLine [thehilitedline] of group "dgSites" into aRecordData > put urlencode(aRecordData["addr1"]) & "+" & \ > urlencode(aRecordData["city"]) & "+" & \ > urlencode(aRecordData["state"]) & "+" & \ > urlencode(aRecordData["zip"]) into theAddress > set the clipboarddata to \ > aRecordData["addr1"] & space & \ > aRecordData["city"] & space & \ > aRecordData["state"] & space & \ > aRecordData["zip"] > put theURL & urlencode(theAddress) into theURL > launch url theURL > end mouseUp > > Note I have hardcoded the start location into the URL, but that can be dealt with easy enough. Also I am pullign data from a datagrid, but that also can be sussed out easily enough. This *should* work in a browser object, no? > > 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 harrison at all-auctions.com Thu Apr 27 20:21:54 2017 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 27 Apr 2017 20:21:54 -0400 Subject: User IP Address from LC Server? In-Reply-To: References: <6BC41043-6490-46E5-9E4F-525AE6FE911F@gmail.com> Message-ID: After looking at a bunch of entries in the LC Dictionary I can?t find anything that tells me how I can get the IP of a User who has logged into my LC Server website. Does anyone out there know how to do this with LC? Thanks in advance! Rick From dochawk at gmail.com Thu Apr 27 20:50:55 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 27 Apr 2017 17:50:55 -0700 Subject: on tabKey - what field contains the blinking curser? In-Reply-To: <93aebc48-e11c-e062-1b4f-ff4920fa60af@hyperactivesw.com> References: <9db5ff6b-6b7d-bfc4-7a97-7ca897d5162f@hyperactivesw.com> <688ab562-464a-1afe-621a-5ec94b674b01@hyperactivesw.com> <93aebc48-e11c-e062-1b4f-ff4920fa60af@hyperactivesw.com> Message-ID: On Thu, Apr 27, 2017 at 1:57 PM, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > The default is a tick (1/60 second). You could add "millisecond" after the > 1 and that would probably be enough time. I get lazy with small time units > when it doesn't matter much and tend to omit extra typing. > I tend to start with "in 0" or -1, and only go to positive time if there is an issue. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From revdev at pdslabs.net Thu Apr 27 21:06:05 2017 From: revdev at pdslabs.net (Phil Davis) Date: Thu, 27 Apr 2017 18:06:05 -0700 Subject: User IP Address from LC Server? In-Reply-To: References: <6BC41043-6490-46E5-9E4F-525AE6FE911F@gmail.com> Message-ID: <5e943d74-53b0-68a1-7f6c-07bbd617e13e@pdslabs.net> Hi Rick, I believe that would be found in $_SERVER["REMOTE_ADDR"] . Here is a simple way to see what's in the $_SERVER array: 1) Put the following code in a text file - I'll call it "globals.lc": " in tOutput put tOutput ?> 2) Upload the file to the folder on your LC server where web pages go. 3) Go to its URL - e.g. go url "http://mywebsite.com/globals.lc" That should show you everything in the $_SERVER global. You can do something similar to see what's in the various other server globals, all of which begin with "$_" - check the dictionary for more info on those. HTH - Phil Davis On 4/27/17 5:21 PM, Rick Harrison via use-livecode wrote: > After looking at a bunch of entries in the LC Dictionary > I can?t find anything that tells me how I can get the > IP of a User who has logged into my LC Server website. > > Does anyone out there know how to do this with LC? > > Thanks in advance! > > Rick > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis From alex at tweedly.net Thu Apr 27 21:07:08 2017 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 28 Apr 2017 02:07:08 +0100 Subject: User IP Address from LC Server? In-Reply-To: References: <6BC41043-6490-46E5-9E4F-525AE6FE911F@gmail.com> Message-ID: <8de047d0-1908-a50f-094f-7d19cd81bb29@tweedly.net> $_SERVER["REMOTE_ADDR"] will give you the IP addr of the host issuing the URL request Probably the same as "user who has logged in " ... but without checking if the URL request has come from someone logged in :-_) -- Alex. On 28/04/2017 01:21, Rick Harrison via use-livecode wrote: > After looking at a bunch of entries in the LC Dictionary > I can?t find anything that tells me how I can get the > IP of a User who has logged into my LC Server website. > > Does anyone out there know how to do this with LC? > > Thanks in advance! > > Rick > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From harrison at all-auctions.com Thu Apr 27 21:15:14 2017 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 27 Apr 2017 21:15:14 -0400 Subject: User IP Address from LC Server? In-Reply-To: <5e943d74-53b0-68a1-7f6c-07bbd617e13e@pdslabs.net> References: <6BC41043-6490-46E5-9E4F-525AE6FE911F@gmail.com> <5e943d74-53b0-68a1-7f6c-07bbd617e13e@pdslabs.net> Message-ID: Hi Alex and Phil, Thanks, I?ll check it out. Rick > On Apr 27, 2017, at 9:06 PM, Phil Davis via use-livecode wrote: > > Hi Rick, > > I believe that would be found in $_SERVER["REMOTE_ADDR"] . > > Here is a simple way to see what's in the $_SERVER array: > > 1) Put the following code in a text file - I'll call it "globals.lc": > > put the keys of $_SERVER into tList > sort lines of tList > repeat for each line tKey in tList > if $_SERVER[tKey] is an array > then put "[" & tKey & "]" & CR after tOutput > else put tKey && "=" && $_SERVER[tKey] & CR after tOutput > end repeat > > -- do this so the output will look right in browser or from msg box > if "LiveCode" is not in $_SERVER["HTTP_USER_AGENT"] then replace CR > with "
" in tOutput > > put tOutput > ?> > > 2) Upload the file to the folder on your LC server where web pages go. > > 3) Go to its URL - e.g. go url "http://mywebsite.com/globals.lc" > > > That should show you everything in the $_SERVER global. > > You can do something similar to see what's in the various other server globals, all of which begin with "$_" - check the dictionary for more info on those. > > HTH - > Phil Davis > > > > On 4/27/17 5:21 PM, Rick Harrison via use-livecode wrote: >> After looking at a bunch of entries in the LC Dictionary >> I can?t find anything that tells me how I can get the >> IP of a User who has logged into my LC Server website. >> >> Does anyone out there know how to do this with LC? >> >> Thanks in advance! >> >> Rick >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > -- > Phil Davis > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From capellan2000 at gmail.com Thu Apr 27 21:43:41 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 27 Apr 2017 21:43:41 -0400 Subject: Community Coding Standards, Naming Conventions, Best Practice in LiveCode Script for community contribution work Message-ID: Recently, Bernd Niggeman posted a stack that displays LiveCode Dictionary content in a different way. Could Livecode Community Developers create a "Wizard" plugin that check scripts and suggest changes according to naming conventions? Notice that already exists a plugin created by Klaus Major that gather all scripts of a stack and (on user request) save these scripts as a text file... so this "Wizard" plugin only will check these scripts and analize them to warn developers and suggest recommended changes. Al From brahma at hindu.org Fri Apr 28 00:27:06 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 28 Apr 2017 04:27:06 +0000 Subject: Scanning for inclusions Message-ID: <93F2CEE4-2106-4698-9FE5-DD159F041A56@hindu.org> Is there a way to run the "scan for inclusions" required and get a list. Waiting for the inclusion scan while building a standalone take a lot of time. Sometimes I would like to check to see that I have set everything the app needs. it would be helpful to be able to run the "scan for required inclusions" and get a list, for verification again what one has manually check in SA Settings. BR From hh at hyperhh.de Fri Apr 28 05:22:08 2017 From: hh at hyperhh.de (hh) Date: Fri, 28 Apr 2017 11:22:08 +0200 Subject: Getting a Google MAP Message-ID: Not to forget related to (static) maps, especially as you can have them from there also as SVG or 'true' PDF (not embedded PNG only): https://www.openstreetmap.org For exporting as HTML link or as an "image" (JPG, PNG, SVG, PDF) see https://wiki.openstreetmap.org/wiki/Export In short: Don't use the Export button at top/left (which is for raw map data) but _the sharing link at right_ that opens a prefs box. From roger.e.eller at sealedair.com Fri Apr 28 06:38:51 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 28 Apr 2017 06:38:51 -0400 Subject: Community Coding Standards, Naming Conventions, Best Practice in LiveCode Script for community contribution work In-Reply-To: References: Message-ID: i and j are about as far as I go with nested repeats. Although sometimes I further process the resulting tEmpList in yet another repeat loop. It helps me to follow my own code if I can produce a list with modifications, and put tEmpList (into msg) before proceeding with more processing. Personal preference. I do like the idea of a script checker, with suggested ways to write it in a "cleaner" way. It would be very good for noobs who haven't yet formed their own habits, good or bad. There's always a better way, and sharing is the BEST way to find it. ~Roger On Apr 27, 2017 9:44 PM, "Alejandro Tejada via use-livecode" < use-livecode at lists.runrev.com> wrote: > Recently, Bernd Niggeman posted a stack that > displays LiveCode Dictionary content > in a different way. > > Could Livecode Community Developers create a > "Wizard" plugin that check scripts and suggest > changes according to naming conventions? > > Notice that already exists a plugin created by > Klaus Major that gather all scripts of a stack > and (on user request) save these scripts as > a text file... so this "Wizard" plugin only will > check these scripts and analize them to warn > developers and suggest recommended changes. > > Al > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From kevin at livecode.com Fri Apr 28 11:22:56 2017 From: kevin at livecode.com (Kevin Miller) Date: Fri, 28 Apr 2017 16:22:56 +0100 Subject: Kognition Beta Test - call for volunteers Message-ID: Hi Everyone, A slightly unusual post from me today. For those of you that don?t know, LiveCode has been working in partnership with a new company as a joint venture, to build an app to help manage information. We have built a system that uses artificial intelligence techniques to help organize, sort and work with documents. While this is an entirely separate company, the app has been built in LiveCode (and utilizes a wide range of other technologies too). Kognition is intended to help you manage the increasing volumes of information that you create or receive, as well as being a tool to help researchers conduct research or businesses to collect and analyze information such as customer enquiries or bug reports. It presents an artificially intelligent front-end that lets you relate documents together, as well as organize, cluster and discover information in the relationships. For example, if you are working on a project and receive an email with an attachment, it can show you what other documents on your hard drive relate to that attachment or are relevant to the project. If you have a customer enquiry asking for a particular feature you can explore all the other questions to find out how many others are asking about similar topics. The system goes far beyond simple keyword analysis, for example it can relate documents together that do not have the same words in them. Today we have our very first beta available. Its a private beta, so if you are interested in trying it out please drop me a note off list. Please include a very short description of your company or you together with what you might potentially use the system for. The first beta is Mac only and requires a recent, high-end machine. Subsequent betas will extend to other platforms and reduce system requirements. If you don?t have a high end Mac available today but are still interested, let me know and I can still send you the videos to look at and include you in subsequent betas. Thanks in advance for your interest. Kind regards, Kevin Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From prothero at earthlearningsolutions.org Fri Apr 28 11:42:51 2017 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Fri, 28 Apr 2017 08:42:51 -0700 Subject: Getting a Google MAP In-Reply-To: References: Message-ID: <5A04429C-3EAC-4C4B-B9E2-9010450579C7@earthlearningsolutions.org> Thanks for the openstreetmap link. I'm really liking the Google maps option since my app is being developed for free distribution to educators and I am not particularly interested in streets. The satellite or terrain views are what I want. Now all I have to do is figure out how to get the lat/Lon values at the corners. Then I'll be all set. If anybody else is interested in what .I'm doing, I'll be glad to share code. Best, Bill Best, Bill William Prothero http://es.earthednet.org > On Apr 28, 2017, at 2:22 AM, hh via use-livecode wrote: > > Not to forget related to (static) maps, especially as you can have > them from there also as SVG or 'true' PDF (not embedded PNG only): > > https://www.openstreetmap.org > > For exporting as HTML link or as an "image" (JPG, PNG, SVG, PDF) > see https://wiki.openstreetmap.org/wiki/Export > > In short: > Don't use the Export button at top/left (which is for raw map > data) but _the sharing link at right_ that opens a prefs box. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Fri Apr 28 13:56:50 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 28 Apr 2017 11:56:50 -0600 Subject: Getting a Google MAP In-Reply-To: <5A04429C-3EAC-4C4B-B9E2-9010450579C7@earthlearningsolutions.org> References: <5A04429C-3EAC-4C4B-B9E2-9010450579C7@earthlearningsolutions.org> Message-ID: If you do a second call to the geocode api you can get the info you need. https://maps.googleapis.com/maps/api/geocode/json?address=Berkeley,+CA&zoom=14&size=400x400 There appear to be 2 location sections. One contains the bounds of the request, the other contains the bounds of the viewport IE zoom level 14, at 400x400 i haven't really tested much other than to see what kind of results come back, but hopefully this will get you to where you want to go. I also saw the following.. https://gis.stackexchange.com/questions/46729/corner-coordinates-of-google-static-map-tile which is very interesting. The problem being you would still need the center point as a starting position, then you can calculate the corners based on the zoom factor. On Fri, Apr 28, 2017 at 9:42 AM, prothero--- via use-livecode < use-livecode at lists.runrev.com> wrote: > Thanks for the openstreetmap link. I'm really liking the Google maps > option since my app is being developed for free distribution to educators > and I am not particularly interested in streets. The satellite or terrain > views are what I want. > > Now all I have to do is figure out how to get the lat/Lon values at the > corners. Then I'll be all set. > > If anybody else is interested in what .I'm doing, I'll be glad to share > code. > > Best, > Bill > > Best, > Bill > > William Prothero > http://es.earthednet.org > > > On Apr 28, 2017, at 2:22 AM, hh via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Not to forget related to (static) maps, especially as you can have > > them from there also as SVG or 'true' PDF (not embedded PNG only): > > > > https://www.openstreetmap.org > > > > For exporting as HTML link or as an "image" (JPG, PNG, SVG, PDF) > > see https://wiki.openstreetmap.org/wiki/Export > > > > In short: > > Don't use the Export button at top/left (which is for raw map > > data) but _the sharing link at right_ that opens a prefs box. > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Fri Apr 28 14:00:26 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 28 Apr 2017 12:00:26 -0600 Subject: Getting a Google MAP In-Reply-To: References: <5A04429C-3EAC-4C4B-B9E2-9010450579C7@earthlearningsolutions.org> Message-ID: heres a link to the geocode api information: https://developers.google.com/maps/documentation/geocoding/intro I'm not sure my interpretation of the viewport is accurate, but even if you just use the center point and do the calculations, and ignore the rest of the data, it should work. On Fri, Apr 28, 2017 at 11:56 AM, Mike Bonner wrote: > If you do a second call to the geocode api you can get the info you need. > > https://maps.googleapis.com/maps/api/geocode/json?address= > Berkeley,+CA&zoom=14&size=400x400 > > There appear to be 2 location sections. One contains the bounds of the > request, the other contains the bounds of the viewport IE zoom level 14, at > 400x400 > > i haven't really tested much other than to see what kind of results come > back, but hopefully this will get you to where you want to go. > > I also saw the following.. https://gis.stackexchange.com/questions/ > 46729/corner-coordinates-of-google-static-map-tile which is very > interesting. The problem being you would still need the center point as a > starting position, then you can calculate the corners based on the zoom > factor. > > On Fri, Apr 28, 2017 at 9:42 AM, prothero--- via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Thanks for the openstreetmap link. I'm really liking the Google maps >> option since my app is being developed for free distribution to educators >> and I am not particularly interested in streets. The satellite or terrain >> views are what I want. >> >> Now all I have to do is figure out how to get the lat/Lon values at the >> corners. Then I'll be all set. >> >> If anybody else is interested in what .I'm doing, I'll be glad to share >> code. >> >> Best, >> Bill >> >> Best, >> Bill >> >> William Prothero >> http://es.earthednet.org >> >> > On Apr 28, 2017, at 2:22 AM, hh via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > Not to forget related to (static) maps, especially as you can have >> > them from there also as SVG or 'true' PDF (not embedded PNG only): >> > >> > https://www.openstreetmap.org >> > >> > For exporting as HTML link or as an "image" (JPG, PNG, SVG, PDF) >> > see https://wiki.openstreetmap.org/wiki/Export >> > >> > In short: >> > Don't use the Export button at top/left (which is for raw map >> > data) but _the sharing link at right_ that opens a prefs box. >> > >> > >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at lists.runrev.com >> > Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From scott at tactilemedia.com Fri Apr 28 14:06:48 2017 From: scott at tactilemedia.com (Scott Rossi) Date: Fri, 28 Apr 2017 11:06:48 -0700 Subject: [OT] Today's Google Doodle/Theme Message-ID: <81781662-17F0-4CC8-8EB9-2C3CF4D1F1B3@tactilemedia.com> Note today?s Google doodle topic is especially appropriate for the LC community. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design From ahsoftware at sonic.net Fri Apr 28 14:13:59 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 28 Apr 2017 11:13:59 -0700 Subject: [OT] Today's Google Doodle/Theme In-Reply-To: <81781662-17F0-4CC8-8EB9-2C3CF4D1F1B3@tactilemedia.com> References: <81781662-17F0-4CC8-8EB9-2C3CF4D1F1B3@tactilemedia.com> Message-ID: <888a1eee-347d-6738-7c6e-a19bb203d861@sonic.net> On 04/28/2017 11:06 AM, Scott Rossi via use-livecode wrote: > Note today?s Google doodle topic is especially appropriate for the LC community. -- Mark Wieder ahsoftware at gmail.com From hh at hyperhh.de Fri Apr 28 14:17:01 2017 From: hh at hyperhh.de (hh) Date: Fri, 28 Apr 2017 20:17:01 +0200 Subject: Getting a Google MAP Message-ID: <19010FE9-77C1-4CA4-993E-BD488F2B7286@hyperhh.de> Have you already seen this nifty utility? http://staticmapmaker.com/google/ === I use the following for getting the geo-location. on mouseUp put url ("https://maps.googleapis.com/maps/api/geocode/" & \ "json?address=25a+Thistle+Street+SW,+Edinburgh,+UK") into rslt replace quote with empty in rslt replace space with empty in rslt put offset ("location:{",rslt) into offs put line 2 to 3 of (char offs to -1 of rslt) into fld 1 end mouseUp For displaying, I usually align the (right-aligned) fld 1 to the botRight of the image/ map display. From richmondmathewson at gmail.com Fri Apr 28 14:18:08 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 28 Apr 2017 21:18:08 +0300 Subject: [OT] Today's Google Doodle/Theme In-Reply-To: <81781662-17F0-4CC8-8EB9-2C3CF4D1F1B3@tactilemedia.com> References: <81781662-17F0-4CC8-8EB9-2C3CF4D1F1B3@tactilemedia.com> Message-ID: Not showing up in the Balkans. Richmond. On 4/28/17 9:06 pm, Scott Rossi via use-livecode wrote: > Note today?s Google doodle topic is especially appropriate for the LC community. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From scott at tactilemedia.com Fri Apr 28 14:20:02 2017 From: scott at tactilemedia.com (Scott Rossi) Date: Fri, 28 Apr 2017 11:20:02 -0700 Subject: [OT] Today's Google Doodle/Theme In-Reply-To: References: <81781662-17F0-4CC8-8EB9-2C3CF4D1F1B3@tactilemedia.com> Message-ID: <824FB412-E1C5-4295-9A37-059B1790D053@tactilemedia.com> Then don?t look in the Balkans. Scott Rossi Creative Director Tactile Media, UX/UI Design > On Apr 28, 2017, at 11:18 AM, Richmond Mathewson via use-livecode wrote: > > Not showing up in the Balkans. > > Richmond. > > On 4/28/17 9:06 pm, Scott Rossi via use-livecode wrote: >> Note today?s Google doodle topic is especially appropriate for the LC community. >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Fri Apr 28 14:34:16 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 28 Apr 2017 14:34:16 -0400 Subject: [OT] Today's Google Doodle/Theme In-Reply-To: <824FB412-E1C5-4295-9A37-059B1790D053@tactilemedia.com> References: <81781662-17F0-4CC8-8EB9-2C3CF4D1F1B3@tactilemedia.com> <824FB412-E1C5-4295-9A37-059B1790D053@tactilemedia.com> Message-ID: because cheese On Fri, Apr 28, 2017 at 2:20 PM, Scott Rossi via use-livecode < use-livecode at lists.runrev.com> wrote: > Then don?t look in the Balkans. > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On Apr 28, 2017, at 11:18 AM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Not showing up in the Balkans. > > > > Richmond. > > > > On 4/28/17 9:06 pm, Scott Rossi via use-livecode wrote: > >> Note today?s Google doodle topic is especially appropriate for the LC > community. > >> > >> Regards, > >> > >> Scott Rossi > >> Creative Director > >> Tactile Media, UX/UI Design > >> > >> > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From richmondmathewson at gmail.com Fri Apr 28 14:35:29 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 28 Apr 2017 21:35:29 +0300 Subject: [OT] Today's Google Doodle/Theme In-Reply-To: <824FB412-E1C5-4295-9A37-059B1790D053@tactilemedia.com> References: <81781662-17F0-4CC8-8EB9-2C3CF4D1F1B3@tactilemedia.com> <824FB412-E1C5-4295-9A37-059B1790D053@tactilemedia.com> Message-ID: <6106b008-355c-3c51-c103-f4ea013db002@gmail.com> Ha, Ha, Ha . . . With the good offices of a VPN I looked in: Canada: nix USA: something with 3 blue bovines, a mediaeval-looking girl stirring an unspecified dairy product in a tub, and something that might be a soft cheese with a yellow arrow in the centre. So, this posting was ethnocentric and prejudiced against Canadians and people in the Balkans, at least. AS you should know by now I have no sense of humour whatsoever so am thinking of refering this Use-List to the thought police for: 1. Implying that bovines are blue. 2. Excluding people in the Balkans. 3. Not shoving the LiveCode logo on the cheese for those of us who don't understand subtle messages. 4. Not providing a "Trigger Warning" so that sensitive types like myself aren't traumatised by the sight of blue bovines being exploited for their milk products. enough . . . enough . . . enough . . . Oh, Help, there's my warder coming now with the strait-jacket. Ri c h m o n d................. On 4/28/17 9:20 pm, Scott Rossi via use-livecode wrote: > Then don?t look in the Balkans. > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > >> On Apr 28, 2017, at 11:18 AM, Richmond Mathewson via use-livecode wrote: >> >> Not showing up in the Balkans. >> >> Richmond. >> >> On 4/28/17 9:06 pm, Scott Rossi via use-livecode wrote: >>> Note today?s Google doodle topic is especially appropriate for the LC community. >>> >>> Regards, >>> >>> Scott Rossi >>> Creative Director >>> Tactile Media, UX/UI Design >>> >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Fri Apr 28 14:39:03 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 28 Apr 2017 21:39:03 +0300 Subject: [OT] Today's Google Doodle/Theme In-Reply-To: <6106b008-355c-3c51-c103-f4ea013db002@gmail.com> References: <81781662-17F0-4CC8-8EB9-2C3CF4D1F1B3@tactilemedia.com> <824FB412-E1C5-4295-9A37-059B1790D053@tactilemedia.com> <6106b008-355c-3c51-c103-f4ea013db002@gmail.com> Message-ID: Wow: there are actually a whole sequence of pictures which I shall download for use with the younger children in my school. Richmond. On 4/28/17 9:35 pm, Richmond Mathewson wrote: > Ha, Ha, Ha . . . > > With the good offices of a VPN I looked in: > > Canada: nix > > USA: something with 3 blue bovines, a mediaeval-looking girl > stirring an unspecified dairy product in a tub, and something that > might be a soft cheese with a yellow arrow in the centre. > > So, this posting was ethnocentric and prejudiced against Canadians and > people in the Balkans, at least. > > AS you should know by now I have no sense of humour whatsoever so am > thinking of refering this > Use-List to the thought police for: > > 1. Implying that bovines are blue. > > 2. Excluding people in the Balkans. > > 3. Not shoving the LiveCode logo on the cheese for those of us who don't > understand subtle messages. > > 4. Not providing a "Trigger Warning" so that sensitive types like > myself aren't traumatised by the sight > of blue bovines being exploited for their milk products. > > enough . . . enough . . . enough . . . > > Oh, Help, there's my warder coming now with the strait-jacket. > > Ri c h m o n d................. > > On 4/28/17 9:20 pm, Scott Rossi via use-livecode wrote: >> Then don?t look in the Balkans. >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> >> >>> On Apr 28, 2017, at 11:18 AM, Richmond Mathewson via use-livecode wrote: >>> >>> Not showing up in the Balkans. >>> >>> Richmond. >>> >>> On 4/28/17 9:06 pm, Scott Rossi via use-livecode wrote: >>>> Note today?s Google doodle topic is especially appropriate for the LC community. >>>> >>>> Regards, >>>> >>>> Scott Rossi >>>> Creative Director >>>> Tactile Media, UX/UI Design >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Fri Apr 28 15:05:02 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 28 Apr 2017 22:05:02 +0300 Subject: Stupid Q No 999: mergeBLE In-Reply-To: References: <3ce29cdb-f65d-83c0-b210-b83f7a60fd6d@gmail.com> <6ef94a20-9ba2-68ee-e5f2-0e64130d334b@gmail.com> <6f7cfef6-0811-bf07-018e-40996a87e291@cogapp.com> Message-ID: <31edba5a-af31-5820-4e6e-4c6bf718066d@gmail.com> "The MergExt suite of externals now comes as part of your LiveCode license. To use the externals you'll need to download the latest MergExt bundle (using the link below) and be using at least LiveCode 8.0.0-dp-15, 7.1.3-rc-1 or 6.7.10-rc-1. "To start using the externals, unzip the MergExt download and you will see that you have a folder for each external, which contains a demo and an lcext file. You need to add this lcext file to the copy files pane in your LiveCode *standalone settings* to start using that particular external in your app." Does that mean a one-time exercise, or that one has to include the .lcext in the standalones settings for each stack one wishes to use it in? Richmond. From richmondmathewson at gmail.com Fri Apr 28 16:03:21 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 28 Apr 2017 23:03:21 +0300 Subject: Will LiveCode run an x86 android device? In-Reply-To: References: <4e96903d-8f87-2932-1d1e-480cb726dcea@gmail.com> Message-ID: <5ba2f735-3078-efe2-1653-9390f00d1bcd@gmail.com> Isn't Android a type of Linux? Arguably a Linux standalone should work better on x86 Android devices . . . So; here's LiveCode's next headache: How to build a Linux standalone which can be installed on an x86 Android device. Richmond. On 4/26/17 10:26 pm, Colin Holgate via use-livecode wrote: > x86 Android devices can run ARM code in emulation. The performance would be better if you could publish to x86, but the app should work. > > >> On Apr 26, 2017, at 12:22 PM, Mike Bonner via use-livecode wrote: >> >> I don't think you can build for x86 android but i'm not positive. >> >> On Wed, Apr 26, 2017 at 1:12 PM, Richmond Mathewson via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> I don't think LiveCode (the development environment) will work on >>> Android of any sort: but it should develop standalones that work on >>> Android. >>> >>> Richmond. >>> >>> On 4/26/17 9:45 pm, Jonathan Lynch via use-livecode wrote: >>> >>>> I see that it won't run on an x86 emulator - will it work on on actual >>>> x86 device? > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Apr 28 16:41:21 2017 From: waprothero at gmail.com (William Prothero) Date: Fri, 28 Apr 2017 13:41:21 -0700 Subject: Getting a Google MAP In-Reply-To: References: <5A04429C-3EAC-4C4B-B9E2-9010450579C7@earthlearningsolutions.org> Message-ID: <380C0233-28A7-45DB-BFAF-07641ACE6829@gmail.com> Mike: OMG, I LOVE YOU! Fantastic, this is just what I need. I hope I meet you some day so I can buy you dinner. Let me know if you get by Santa Barbara, or Portland area. Best, Bill > On Apr 28, 2017, at 10:56 AM, Mike Bonner via use-livecode wrote: > > If you do a second call to the geocode api you can get the info you need. > > https://maps.googleapis.com/maps/api/geocode/json?address=Berkeley,+CA&zoom=14&size=400x400 > > There appear to be 2 location sections. One contains the bounds of the > request, the other contains the bounds of the viewport IE zoom level 14, at > 400x400 > > i haven't really tested much other than to see what kind of results come > back, but hopefully this will get you to where you want to go. > > I also saw the following.. > https://gis.stackexchange.com/questions/46729/corner-coordinates-of-google-static-map-tile > which is very interesting. The problem being you would still need the > center point as a starting position, then you can calculate the corners > based on the zoom factor. > > On Fri, Apr 28, 2017 at 9:42 AM, prothero--- via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Thanks for the openstreetmap link. I'm really liking the Google maps >> option since my app is being developed for free distribution to educators >> and I am not particularly interested in streets. The satellite or terrain >> views are what I want. >> >> Now all I have to do is figure out how to get the lat/Lon values at the >> corners. Then I'll be all set. >> >> If anybody else is interested in what .I'm doing, I'll be glad to share >> code. >> >> Best, >> Bill >> >> Best,Mike: >> Bill >> >> William Prothero >> http://es.earthednet.org >> >>> On Apr 28, 2017, at 2:22 AM, hh via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Not to forget related to (static) maps, especially as you can have >>> them from there also as SVG or 'true' PDF (not embedded PNG only): >>> >>> https://www.openstreetmap.org >>> >>> For exporting as HTML link or as an "image" (JPG, PNG, SVG, PDF) >>> see https://wiki.openstreetmap.org/wiki/Export >>> >>> In short: >>> Don't use the Export button at top/left (which is for raw map >>> data) but _the sharing link at right_ that opens a prefs box. >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Fri Apr 28 16:45:39 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 28 Apr 2017 14:45:39 -0600 Subject: Getting a Google MAP In-Reply-To: <380C0233-28A7-45DB-BFAF-07641ACE6829@gmail.com> References: <5A04429C-3EAC-4C4B-B9E2-9010450579C7@earthlearningsolutions.org> <380C0233-28A7-45DB-BFAF-07641ACE6829@gmail.com> Message-ID: If you ever get down to the middle of nowhere new mexico, I'll take you up on the lunch offer. :) Think others mentioned the same api though, so there might be lunches all around. On Fri, Apr 28, 2017 at 2:41 PM, William Prothero via use-livecode < use-livecode at lists.runrev.com> wrote: > Mike: > OMG, I LOVE YOU! Fantastic, this is just what I need. I hope I meet you > some day so I can buy you dinner. Let me know if you get by Santa Barbara, > or Portland area. > > Best, > Bill > > > > On Apr 28, 2017, at 10:56 AM, Mike Bonner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > If you do a second call to the geocode api you can get the info you need. > > > > https://maps.googleapis.com/maps/api/geocode/json?address= > Berkeley,+CA&zoom=14&size=400x400 > > > > There appear to be 2 location sections. One contains the bounds of the > > request, the other contains the bounds of the viewport IE zoom level 14, > at > > 400x400 > > > > i haven't really tested much other than to see what kind of results come > > back, but hopefully this will get you to where you want to go. > > > > I also saw the following.. > > https://gis.stackexchange.com/questions/46729/corner- > coordinates-of-google-static-map-tile > > which is very interesting. The problem being you would still need the > > center point as a starting position, then you can calculate the corners > > based on the zoom factor. > > > > On Fri, Apr 28, 2017 at 9:42 AM, prothero--- via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Thanks for the openstreetmap link. I'm really liking the Google maps > >> option since my app is being developed for free distribution to > educators > >> and I am not particularly interested in streets. The satellite or > terrain > >> views are what I want. > >> > >> Now all I have to do is figure out how to get the lat/Lon values at the > >> corners. Then I'll be all set. > >> > >> If anybody else is interested in what .I'm doing, I'll be glad to share > >> code. > >> > >> Best, > >> Bill > >> > >> Best,Mike: > >> Bill > >> > >> William Prothero > >> http://es.earthednet.org > >> > >>> On Apr 28, 2017, at 2:22 AM, hh via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> Not to forget related to (static) maps, especially as you can have > >>> them from there also as SVG or 'true' PDF (not embedded PNG only): > >>> > >>> https://www.openstreetmap.org > >>> > >>> For exporting as HTML link or as an "image" (JPG, PNG, SVG, PDF) > >>> see https://wiki.openstreetmap.org/wiki/Export > >>> > >>> In short: > >>> Don't use the Export button at top/left (which is for raw map > >>> data) but _the sharing link at right_ that opens a prefs box. > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Apr 28 16:46:15 2017 From: waprothero at gmail.com (William Prothero) Date: Fri, 28 Apr 2017 13:46:15 -0700 Subject: Getting a Google MAP In-Reply-To: <19010FE9-77C1-4CA4-993E-BD488F2B7286@hyperhh.de> References: <19010FE9-77C1-4CA4-993E-BD488F2B7286@hyperhh.de> Message-ID: <98721760-C0F6-4FB0-B76D-11CC375F5E81@gmail.com> Hermann: Thanks so much. This is very helpful. I thought I was in for a huge tussle getting this to work and now I see that it?s not going to be a huge hassle. I write geophysical data on a map and Google puts out some nice looking terrain maps, and now I don?t need to include maps in my app. Wonderful! Best, Bill > On Apr 28, 2017, at 11:17 AM, hh via use-livecode wrote: > > Have you already seen this nifty utility? > http://staticmapmaker.com/google/ > > === > > I use the following for getting the geo-location. > > on mouseUp > put url ("https://maps.googleapis.com/maps/api/geocode/" & \ > "json?address=25a+Thistle+Street+SW,+Edinburgh,+UK") into rslt > replace quote with empty in rslt > replace space with empty in rslt > put offset ("location:{",rslt) into offs > put line 2 to 3 of (char offs to -1 of rslt) into fld 1 > end mouseUp > > For displaying, I usually align the (right-aligned) fld 1 > to the botRight of the image/ map display. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Apr 28 16:49:42 2017 From: waprothero at gmail.com (William Prothero) Date: Fri, 28 Apr 2017 13:49:42 -0700 Subject: Getting a Google MAP In-Reply-To: References: <5A04429C-3EAC-4C4B-B9E2-9010450579C7@earthlearningsolutions.org> <380C0233-28A7-45DB-BFAF-07641ACE6829@gmail.com> Message-ID: <2129B7D6-8186-41D2-A628-561F5DB689AD@gmail.com> I?m willing. Hermann has been generous with good ideas too. Best, Bill > On Apr 28, 2017, at 1:45 PM, Mike Bonner via use-livecode wrote: > > If you ever get down to the middle of nowhere new mexico, I'll take you up > on the lunch offer. :) Think others mentioned the same api though, so > there might be lunches all around. > > > On Fri, Apr 28, 2017 at 2:41 PM, William Prothero via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Mike: >> OMG, I LOVE YOU! Fantastic, this is just what I need. I hope I meet you >> some day so I can buy you dinner. Let me know if you get by Santa Barbara, >> or Portland area. >> >> Best, >> Bill >> >> >>> On Apr 28, 2017, at 10:56 AM, Mike Bonner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> If you do a second call to the geocode api you can get the info you need. >>> >>> https://maps.googleapis.com/maps/api/geocode/json?address= >> Berkeley,+CA&zoom=14&size=400x400 >>> >>> There appear to be 2 location sections. One contains the bounds of the >>> request, the other contains the bounds of the viewport IE zoom level 14, >> at >>> 400x400 >>> >>> i haven't really tested much other than to see what kind of results come >>> back, but hopefully this will get you to where you want to go. >>> >>> I also saw the following.. >>> https://gis.stackexchange.com/questions/46729/corner- >> coordinates-of-google-static-map-tile >>> which is very interesting. The problem being you would still need the >>> center point as a starting position, then you can calculate the corners >>> based on the zoom factor. >>> >>> On Fri, Apr 28, 2017 at 9:42 AM, prothero--- via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> Thanks for the openstreetmap link. I'm really liking the Google maps >>>> option since my app is being developed for free distribution to >> educators >>>> and I am not particularly interested in streets. The satellite or >> terrain >>>> views are what I want. >>>> >>>> Now all I have to do is figure out how to get the lat/Lon values at the >>>> corners. Then I'll be all set. >>>> >>>> If anybody else is interested in what .I'm doing, I'll be glad to share >>>> code. >>>> >>>> Best, >>>> Bill >>>> >>>> Best,Mike: >>>> Bill >>>> >>>> William Prothero >>>> http://es.earthednet.org >>>> >>>>> On Apr 28, 2017, at 2:22 AM, hh via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> Not to forget related to (static) maps, especially as you can have >>>>> them from there also as SVG or 'true' PDF (not embedded PNG only): >>>>> >>>>> https://www.openstreetmap.org >>>>> >>>>> For exporting as HTML link or as an "image" (JPG, PNG, SVG, PDF) >>>>> see https://wiki.openstreetmap.org/wiki/Export >>>>> >>>>> In short: >>>>> Don't use the Export button at top/left (which is for raw map >>>>> data) but _the sharing link at right_ that opens a prefs box. >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 28 17:01:39 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 28 Apr 2017 16:01:39 -0500 Subject: Stupid Q No 999: mergeBLE In-Reply-To: <31edba5a-af31-5820-4e6e-4c6bf718066d@gmail.com> References: <3ce29cdb-f65d-83c0-b210-b83f7a60fd6d@gmail.com> <6ef94a20-9ba2-68ee-e5f2-0e64130d334b@gmail.com> <6f7cfef6-0811-bf07-018e-40996a87e291@cogapp.com> <31edba5a-af31-5820-4e6e-4c6bf718066d@gmail.com> Message-ID: <86715db6-5be8-47c1-37fd-ae940363b794@hyperactivesw.com> On 4/28/17 2:05 PM, Richmond Mathewson via use-livecode wrote: > "The MergExt suite of externals now comes as part of your LiveCode > license. To use the externals you'll need to download the latest MergExt > bundle (using the link below) and be using at least LiveCode > 8.0.0-dp-15, 7.1.3-rc-1 or 6.7.10-rc-1. > > "To start using the externals, unzip the MergExt download and you will > see that you have a folder for each external, which contains a demo and > an lcext file. You need to add this lcext file to the copy files pane in > your LiveCode *standalone settings* to start using that particular > external in your app." > > Does that mean a one-time exercise, or that one has to include the > .lcext in the standalones settings for each stack one wishes to > use it in? Like any other inclusion, it needs to be copied to the standalone when it is built. If the standalone opens other mainstacks, those don't need inclusions, only the app stack needs them. You only have to do this once and standalone settings will remember. If you build a standalone from an entirely different stack, then you'd need to copy the external to that one too as part of the normal standalone settings setup. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Fri Apr 28 17:05:25 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 28 Apr 2017 16:05:25 -0500 Subject: Will LiveCode run an x86 android device? In-Reply-To: <5ba2f735-3078-efe2-1653-9390f00d1bcd@gmail.com> References: <4e96903d-8f87-2932-1d1e-480cb726dcea@gmail.com> <5ba2f735-3078-efe2-1653-9390f00d1bcd@gmail.com> Message-ID: <6bb087c4-e103-0773-392b-029b56b01775@hyperactivesw.com> On 4/28/17 3:03 PM, Richmond Mathewson via use-livecode wrote: > Isn't Android a type of Linux? > > Arguably a Linux standalone should work better on x86 Android devices . . . > > So; here's LiveCode's next headache: > > How to build a Linux standalone which can be installed on an x86 Android > device. Mobile limitations are fairly severe, and most of the IDE tools wouldn't work. Just the fact that only one window at a time can be open would remove the ability to display palettes, tools, plugins, app and project browsers, etc. Also, no floating script editor. Then imagine trying trying to type scripts on a 5-inch phone keyboard. That's just a start of the list of things that can't be done currently on mobile. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Fri Apr 28 19:07:18 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 28 Apr 2017 16:07:18 -0700 Subject: Community Coding Standards, Naming Conventions, Best Practice in LiveCode Script for community contribution work In-Reply-To: References: Message-ID: <4171e83a-b7b8-4199-8d51-86a19b7dd52f@fourthworld.com> These are good questions, Roland, and indeed it would ideal if such things were in hand right now. But to create a comprehensive style guide for IDE contributions we'd have another scope of work to address, in addition to other opportunities at hand. If someone wants to dive in and put something like this together that would be great, but I don't believe the absence of it need stop anyone from writing and sharing good code. We've seen many contributions to both the engine and IDE code with only the documentation we have today and a willingness to code. If someone wants to contribute code to the IDE suggest it to the team, talk over how it fits, read their code to see how to integrate it, and in reading the code you'll see the style that will fit best. Personally, before I would be motivated to document code style any more than I already have, I'd need to see specific fixes and enhancements that are prevented by that documentation's absence. Where we can find such blockers, let's provide what's need to unblock them. And where we can proceed with what we have, let's proceed. -- Richard Gaskin LiveCode Community Liaison Roland Huettmann wrote: > I am referring to the note from Richard and to our discussion about > Contribution From The Community - expanding the developer base to "hundreds > and thousands of users" -- even if only 10 will remain?. > > Richard wrote: >> At the bottom of the "Contributing" page for the LC code base there are >> links to C++ style guides: >> https://github.com/livecode/livecode/blob/develop/CONTRIBUTING.md > > These are just a few more links found with a quick search. > > http://www.fourthworld.com/embassy/articles/scriptstyle.html#Naming > http://forums.livecode.com/viewtopic.php?f=7&t=22946 > http://lessons.livecode.com/m/4603/l/284467-variables-in-livecode > http://forums.livecode.com/viewtopic.php?f=7&t=5265 > http://stackoverflow.com/questions/16746794/what-are-some-best-practices-for-function-naming-in-livecode-runrev > http://use-livecode.runrev.narkive.com/ZPvn2z2N/object-naming-conventions > http://use-livecode.runrev.narkive.com/8REAd9JD/any-convention-on-naming-conventions > > I kind of find it very important for joint work and contributions. Maybe > there should be a page from LiveCode offering at least a semi-official > Community Standards Guide (or whatever it would be called) for > LiveCode Script. > > Or will we all switch to LCB and slowly forget about LCS? (I am not sure > here.))) > > For local variables, I also do not like long expressions for simple > counters which are created "on the fly". The most widely adopted standard > is using i, j, k, l ... (not x and not tCount) -- but otherwise, local > variables in LCS start with "t" in LCS as tSomething. But something should > be recommended for all others to follow, and not just say "do as you like" > -- if there is any joint community effort expected. > > Yes, I am using pSomething for parameters even though there could be > arguments against it. But I find them quickly in my script and know what > they mean. > > And when I put something into the messages box, I ALWAYS type "put ... into > msg" instead of simply "put ..." because then I can find such instances > with the search and disable or enable such instructions. There are too many > "puts" to search for otherwise. Little things that make life easier. > > But more important, an adopted COMMUNITY standard should be widely > available and prominently placed to allow new users and everyone to access > it at any time - maybe even as a separate section in the dictionary? I > suggest a section discussing the STANDARD way of naming, writing code, > naming functions, naming keywords, ways of commenting, what to avoid, what > to care for, warning from pit holes, how to publish to the community, how > to open new projects to the community, best way of debugging, best way of > implementing error detection in general, best way of avoiding the script > editor to open when users are using our app, single/multi user approaches > with a rights management, best way implementing a database management > system with remote databases depending on security issues and number of > concurrent users considerations, how to implement design concepts (such as > Googles material design), etc. > > And it could also be argued that data-driven applications use a lot of > databases, and the naming conventions for such databases should be > maintained, for example not to use the "_" underscore as a first char for > field names, or not to use upperLower (camel case) naming when the database > distinguishes between upper and lower characters, because easily, simple > typing mistakes can create hours of searching the problem. > > The best STANDARD here is to look for the LOWEST COMMON DENOMINATOR when > interfacing with other languages and systems. And we will interface sooner > or later. > > The document should also talk about best practice in general, and for > specific cases. Let us not reinvent the wheel when others before us already > have found the optimal solution for a given problem. Yes, things can be > done in different ways, but then it would be up to the community to test > and do benchmarking and detect the better and decide for the best (rating > with stars?). There could be a competition to beat the benchmarks and a > gold medal for the best contribution. > > What really means "quality" code here? Who can guide me, others, everyone? > > Again, how can we (could I) contribute making this a reality? Who can > answer?) > > Roland From waprothero at gmail.com Fri Apr 28 19:55:36 2017 From: waprothero at gmail.com (William Prothero) Date: Fri, 28 Apr 2017 16:55:36 -0700 Subject: Getting a Google MAP In-Reply-To: <2129B7D6-8186-41D2-A628-561F5DB689AD@gmail.com> References: <5A04429C-3EAC-4C4B-B9E2-9010450579C7@earthlearningsolutions.org> <380C0233-28A7-45DB-BFAF-07641ACE6829@gmail.com> <2129B7D6-8186-41D2-A628-561F5DB689AD@gmail.com> Message-ID: <8B109202-63E5-4EF7-B774-EF0D8F8353FF@gmail.com> Ok, its a bit more complicated. After my initial high at thinking the problem was solved (rushing to a haircut appointment before looking carefully), I noticed that the returned data from Mike?s reverse geocoding URL didn?t change with the zoom level. So apparently, it?s only applied to the stated location. The reverse geo lookup finds a city or address and the ?bounds? elements don?t give the lat/lon values at the corner of the image. I?m fiddling with this, and I?ve got the link (somewhat incomplete derivation) of how to calculate the corner lat/lons, so I?ll try that next. I wish there was a google call I could make that would give me this info, but I can?t find it. Best, Bill > On Apr 28, 2017, at 1:49 PM, William Prothero via use-livecode wrote: > > I?m willing. Hermann has been generous with good ideas too. > Best, > Bill > >> On Apr 28, 2017, at 1:45 PM, Mike Bonner via use-livecode wrote: >> >> If you ever get down to the middle of nowhere new mexico, I'll take you up >> on the lunch offer. :) Think others mentioned the same api though, so >> there might be lunches all around. >> >> >> On Fri, Apr 28, 2017 at 2:41 PM, William Prothero via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Mike: >>> OMG, I LOVE YOU! Fantastic, this is just what I need. I hope I meet you >>> some day so I can buy you dinner. Let me know if you get by Santa Barbara, >>> or Portland area. >>> >>> Best, >>> Bill >>> >>> >>>> On Apr 28, 2017, at 10:56 AM, Mike Bonner via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>>> >>>> If you do a second call to the geocode api you can get the info you need. >>>> >>>> https://maps.googleapis.com/maps/api/geocode/json?address= >>> Berkeley,+CA&zoom=14&size=400x400 >>>> >>>> There appear to be 2 location sections. One contains the bounds of the >>>> request, the other contains the bounds of the viewport IE zoom level 14, >>> at >>>> 400x400 >>>> >>>> i haven't really tested much other than to see what kind of results come >>>> back, but hopefully this will get you to where you want to go. >>>> >>>> I also saw the following.. >>>> https://gis.stackexchange.com/questions/46729/corner- >>> coordinates-of-google-static-map-tile >>>> which is very interesting. The problem being you would still need the >>>> center point as a starting position, then you can calculate the corners >>>> based on the zoom factor. >>>> >>>> On Fri, Apr 28, 2017 at 9:42 AM, prothero--- via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>>> Thanks for the openstreetmap link. I'm really liking the Google maps >>>>> option since my app is being developed for free distribution to >>> educators >>>>> and I am not particularly interested in streets. The satellite or >>> terrain >>>>> views are what I want. >>>>> >>>>> Now all I have to do is figure out how to get the lat/Lon values at the >>>>> corners. Then I'll be all set. >>>>> >>>>> If anybody else is interested in what .I'm doing, I'll be glad to share >>>>> code. >>>>> >>>>> Best, >>>>> Bill >>>>> >>>>> Best,Mike: >>>>> Bill >>>>> >>>>> William Prothero >>>>> http://es.earthednet.org >>>>> >>>>>> On Apr 28, 2017, at 2:22 AM, hh via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> Not to forget related to (static) maps, especially as you can have >>>>>> them from there also as SVG or 'true' PDF (not embedded PNG only): >>>>>> >>>>>> https://www.openstreetmap.org >>>>>> >>>>>> For exporting as HTML link or as an "image" (JPG, PNG, SVG, PDF) >>>>>> see https://wiki.openstreetmap.org/wiki/Export >>>>>> >>>>>> In short: >>>>>> Don't use the Export button at top/left (which is for raw map >>>>>> data) but _the sharing link at right_ that opens a prefs box. >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From capellan2000 at gmail.com Fri Apr 28 20:15:46 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 28 Apr 2017 20:15:46 -0400 Subject: [OT] Today's Google Doodle/Theme Message-ID: Funny enough, this doodle implements in javascript the swiping feature requested in another thread for Cards: http://lists.runrev.com/pipermail/use-livecode/2017-April/236609.html I am waiting for Scott Rossi or Colin Holgate stack's that implement a scripted solution for this requested engine feature :D Al From bonnmike at gmail.com Fri Apr 28 20:23:40 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 28 Apr 2017 18:23:40 -0600 Subject: Getting a Google MAP In-Reply-To: <8B109202-63E5-4EF7-B774-EF0D8F8353FF@gmail.com> References: <5A04429C-3EAC-4C4B-B9E2-9010450579C7@earthlearningsolutions.org> <380C0233-28A7-45DB-BFAF-07641ACE6829@gmail.com> <2129B7D6-8186-41D2-A628-561F5DB689AD@gmail.com> <8B109202-63E5-4EF7-B774-EF0D8F8353FF@gmail.com> Message-ID: I'll poke around more. Maybe I'll get lucky (boatloads of no in that phrase) and find a solution. On Fri, Apr 28, 2017 at 5:55 PM, William Prothero via use-livecode < use-livecode at lists.runrev.com> wrote: > Ok, its a bit more complicated. After my initial high at thinking the > problem was solved (rushing to a haircut appointment before looking > carefully), I noticed that the returned data from Mike?s reverse geocoding > URL didn?t change with the zoom level. So apparently, it?s only applied to > the stated location. The reverse geo lookup finds a city or address and the > ?bounds? elements don?t give the lat/lon values at the corner of the image. > > I?m fiddling with this, and I?ve got the link (somewhat incomplete > derivation) of how to calculate the corner lat/lons, so I?ll try that next. > I wish there was a google call I could make that would give me this info, > but I can?t find it. > > Best, > Bill > > > On Apr 28, 2017, at 1:49 PM, William Prothero via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I?m willing. Hermann has been generous with good ideas too. > > Best, > > Bill > > > >> On Apr 28, 2017, at 1:45 PM, Mike Bonner via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> If you ever get down to the middle of nowhere new mexico, I'll take you > up > >> on the lunch offer. :) Think others mentioned the same api though, so > >> there might be lunches all around. > >> > >> > >> On Fri, Apr 28, 2017 at 2:41 PM, William Prothero via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >>> Mike: > >>> OMG, I LOVE YOU! Fantastic, this is just what I need. I hope I meet you > >>> some day so I can buy you dinner. Let me know if you get by Santa > Barbara, > >>> or Portland area. > >>> > >>> Best, > >>> Bill > >>> > >>> > >>>> On Apr 28, 2017, at 10:56 AM, Mike Bonner via use-livecode < > >>> use-livecode at lists.runrev.com> wrote: > >>>> > >>>> If you do a second call to the geocode api you can get the info you > need. > >>>> > >>>> https://maps.googleapis.com/maps/api/geocode/json?address= > >>> Berkeley,+CA&zoom=14&size=400x400 > >>>> > >>>> There appear to be 2 location sections. One contains the bounds of > the > >>>> request, the other contains the bounds of the viewport IE zoom level > 14, > >>> at > >>>> 400x400 > >>>> > >>>> i haven't really tested much other than to see what kind of results > come > >>>> back, but hopefully this will get you to where you want to go. > >>>> > >>>> I also saw the following.. > >>>> https://gis.stackexchange.com/questions/46729/corner- > >>> coordinates-of-google-static-map-tile > >>>> which is very interesting. The problem being you would still need the > >>>> center point as a starting position, then you can calculate the > corners > >>>> based on the zoom factor. > >>>> > >>>> On Fri, Apr 28, 2017 at 9:42 AM, prothero--- via use-livecode < > >>>> use-livecode at lists.runrev.com> wrote: > >>>> > >>>>> Thanks for the openstreetmap link. I'm really liking the Google maps > >>>>> option since my app is being developed for free distribution to > >>> educators > >>>>> and I am not particularly interested in streets. The satellite or > >>> terrain > >>>>> views are what I want. > >>>>> > >>>>> Now all I have to do is figure out how to get the lat/Lon values at > the > >>>>> corners. Then I'll be all set. > >>>>> > >>>>> If anybody else is interested in what .I'm doing, I'll be glad to > share > >>>>> code. > >>>>> > >>>>> Best, > >>>>> Bill > >>>>> > >>>>> Best,Mike: > >>>>> Bill > >>>>> > >>>>> William Prothero > >>>>> http://es.earthednet.org > >>>>> > >>>>>> On Apr 28, 2017, at 2:22 AM, hh via use-livecode < > >>>>> use-livecode at lists.runrev.com> wrote: > >>>>>> > >>>>>> Not to forget related to (static) maps, especially as you can have > >>>>>> them from there also as SVG or 'true' PDF (not embedded PNG only): > >>>>>> > >>>>>> https://www.openstreetmap.org > >>>>>> > >>>>>> For exporting as HTML link or as an "image" (JPG, PNG, SVG, PDF) > >>>>>> see https://wiki.openstreetmap.org/wiki/Export > >>>>>> > >>>>>> In short: > >>>>>> Don't use the Export button at top/left (which is for raw map > >>>>>> data) but _the sharing link at right_ that opens a prefs box. > >>>>>> > >>>>>> > >>>>>> _______________________________________________ > >>>>>> use-livecode mailing list > >>>>>> use-livecode at lists.runrev.com > >>>>>> Please visit this url to subscribe, unsubscribe and manage your > >>>>> subscription preferences: > >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>>> > >>>>> > >>>>> _______________________________________________ > >>>>> use-livecode mailing list > >>>>> use-livecode at lists.runrev.com > >>>>> Please visit this url to subscribe, unsubscribe and manage your > >>>>> subscription preferences: > >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>>> > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode at lists.runrev.com > >>>> Please visit this url to subscribe, unsubscribe and manage your > >>> subscription preferences: > >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >>> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Apr 28 20:34:14 2017 From: waprothero at gmail.com (William Prothero) Date: Fri, 28 Apr 2017 17:34:14 -0700 Subject: Getting a Google MAP In-Reply-To: References: <5A04429C-3EAC-4C4B-B9E2-9010450579C7@earthlearningsolutions.org> <380C0233-28A7-45DB-BFAF-07641ACE6829@gmail.com> <2129B7D6-8186-41D2-A628-561F5DB689AD@gmail.com> <8B109202-63E5-4EF7-B774-EF0D8F8353FF@gmail.com> Message-ID: <77503155-528C-4540-AA97-7182B3BAC1CB@gmail.com> Mike: Thanks for your help. I found a link to Python, PHP, and Pascal code to do this. Looks like I have to stop being lazy and do some math. I?m ok with converting the code to xTalk. I should be able to figure it out myself. I?ll share when I get something done. It may be a bit because I?ve got some other tasks pulling at me. http://stackoverflow.com/questions/12507274/how-to-get-bounds-of-a-google-static-map Best wishes and thanks again for helping me in this search, Bill P > On Apr 28, 2017, at 5:23 PM, Mike Bonner via use-livecode wrote: > > I'll poke around more. Maybe I'll get lucky (boatloads of no in that > phrase) and find a solution. > > On Fri, Apr 28, 2017 at 5:55 PM, William Prothero via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Ok, its a bit more complicated. After my initial high at thinking the >> problem was solved (rushing to a haircut appointment before looking >> carefully), I noticed that the returned data from Mike?s reverse geocoding >> URL didn?t change with the zoom level. So apparently, it?s only applied to >> the stated location. The reverse geo lookup finds a city or address and the >> ?bounds? elements don?t give the lat/lon values at the corner of the image. >> >> I?m fiddling with this, and I?ve got the link (somewhat incomplete >> derivation) of how to calculate the corner lat/lons, so I?ll try that next. >> I wish there was a google call I could make that would give me this info, >> but I can?t find it. >> >> Best, >> Bill >> From peterwawood at gmail.com Fri Apr 28 21:13:30 2017 From: peterwawood at gmail.com (Peter W A Wood) Date: Sat, 29 Apr 2017 09:13:30 +0800 Subject: Kognition Beta Test - call for volunteers In-Reply-To: References: Message-ID: Dear Kevin First, congratulations on reaching Beta stage of Kognition. Your description on if it is very intriguing. I think I can offer you an interesting beta test environment. At the moment, I have three primary projects (and a number of smaller ones), the data for each is stored in diverse forms but, in most cases, very common forms. I think this would provide a good test of Kognition?s reach. Here are the main data sources for each project: Project 1 Atlassian JIRA - Cloud System - issue and task data Atlassian HipChat - Cloud System with local client - project discussions including requests for action Atlassian Confluence - Cloud System - project documents Google Calendar - Cloud System - project meeting schedule Google Mail - Cloud System - project email and notifications (no local copies) Project Artefacts - Local Files - documents (markup, pdf), code, binary data Project 2 Google Docs - Cloud System - documents, spreadsheets, presentations AltME Messaging System - Local Files - documents (text, markup, pdf), to-do lists, contact list, chat Project Artefacts - Local Files - documents (markup, pdf), code, binary data Email (Apple Mail.app) - Local Files - messages + attachments Project 3 Gitter - Cloud System - project discussion with actionable items Github - Cloud System - project issues, documentation (markup) GitBook - Cloud System - published documentation Trello - Cloud System - project tasks Blogger - Cloud System - website source and management, user comment management Website - Cloud - project website Google Groups - Cloud System - membership data, messages Google Mail - Cloud System - project email I believe that would provide a good test of Kognition?s data acquisition capabilities though the relationships between the data will be relatively simple. I have a MacBook Pro(Retina, 15-inch, Mid 2014), it has a 2.5 Ghz Intel Core i7. Best regards Peter From MikeKerner at roadrunner.com Fri Apr 28 21:32:50 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 28 Apr 2017 21:32:50 -0400 Subject: Scanning for inclusions In-Reply-To: <93F2CEE4-2106-4698-9FE5-DD159F041A56@hindu.org> References: <93F2CEE4-2106-4698-9FE5-DD159F041A56@hindu.org> Message-ID: I thought once you ran it once, when you switch to manual, the auto-selected ones stay. On Fri, Apr 28, 2017 at 12:27 AM, Sannyasin Brahmanathaswami via use-livecode wrote: > Is there a way to run the "scan for inclusions" required and get a list. > > Waiting for the inclusion scan while building a standalone take a lot of > time. > > Sometimes I would like to check to see that I have set everything the app > needs. > > it would be helpful to be able to run the "scan for required inclusions" > and get a list, for verification again what one has manually check in SA > Settings. > > 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 > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From dochawk at gmail.com Fri Apr 28 22:26:14 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 28 Apr 2017 19:26:14 -0700 Subject: [OT] Today's Google Doodle/Theme In-Reply-To: <6106b008-355c-3c51-c103-f4ea013db002@gmail.com> References: <81781662-17F0-4CC8-8EB9-2C3CF4D1F1B3@tactilemedia.com> <824FB412-E1C5-4295-9A37-059B1790D053@tactilemedia.com> <6106b008-355c-3c51-c103-f4ea013db002@gmail.com> Message-ID: On Fri, Apr 28, 2017 at 11:35 AM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > 1. Implying that bovines are blue. > Where do you think blue milk comes from??? Next you'll tell us that chocolate milk doesn't come from brown bovines . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ambassador at fourthworld.com Fri Apr 28 22:54:48 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 28 Apr 2017 19:54:48 -0700 Subject: [OT] Today's Google Doodle/Theme In-Reply-To: References: Message-ID: Alejandro Tejada wrote: > Funny enough, this doodle implements in javascript > the swiping feature requested in another thread > for Cards: > http://lists.runrev.com/pipermail/use-livecode/2017-April/236609.html > > I am waiting for Scott Rossi or Colin Holgate stack's that > implement a scripted solution for this requested engine > feature :D Yes, it can be scripted, using the group-based methods I outlined in my OP here. And as someone who's been using LC a while, it's not that hard for me. I'm thinking of the 10,000 new users who might be using LiveCode if we can demonstrate how powerfully easy it is to develop with. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From brahma at hindu.org Fri Apr 28 23:28:40 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 29 Apr 2017 03:28:40 +0000 Subject: Scanning for inclusions In-Reply-To: References: <93F2CEE4-2106-4698-9FE5-DD159F041A56@hindu.org> Message-ID: <3DCC82DD-3ABA-4CEA-9A8F-6F953EF9CE78@hindu.org> Mike K. wrote: I thought once you ran it once, when you switch to manual, the auto-selected ones stay. hhm? that would be nice? easy to test.. stand by (time passes here) Nope, no go? Test one: 1) go to SA settings-> inclusions uncheck widgets headerbar and switch button # which we know for user are required by some stacks that are referenced in the stack files, but not in this "loader" stack form which the SA is built. 2) go to SA -> general -> check search for inclusions 3) run build stand alone: checkin for inclusions spins (and spins) "Auto detecting Libray 4) go back to SA? general -> check "Select inclusions?" etc 5) inclusions option undims 6) the two widget are *not* checked Test two 1) Drag our a "Switch Button" widget to the loader stack "home" card GUI 2) Save continue now with steps 2-6 abover Result: The same? the inclusions list property in the cRevStandaloneSettings is *not* updated after an auto detect built. this may not be a bug but " works as intended" which leads back to the original question: how to run an auto detect scan for require inclusions as a "diagnostic" and get a list. On 4/28/17, 3:32 PM, "use-livecode on behalf of Mike Kerner via use-livecode" wrote: I thought once you ran it once, when you switch to manual, the auto-selected ones stay. From ambassador at fourthworld.com Fri Apr 28 23:30:41 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 28 Apr 2017 20:30:41 -0700 Subject: Scanning for inclusions In-Reply-To: <3DCC82DD-3ABA-4CEA-9A8F-6F953EF9CE78@hindu.org> References: <3DCC82DD-3ABA-4CEA-9A8F-6F953EF9CE78@hindu.org> Message-ID: <84d6f2bb-fcde-f8c0-67aa-2eb5e2ed6e08@fourthworld.com> Why is this such an ongoing pain point? How are dependencies handles in other systems? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From prothero at earthlearningsolutions.org Fri Apr 28 23:51:05 2017 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Fri, 28 Apr 2017 20:51:05 -0700 Subject: Scanning for inclusions In-Reply-To: <84d6f2bb-fcde-f8c0-67aa-2eb5e2ed6e08@fourthworld.com> References: <3DCC82DD-3ABA-4CEA-9A8F-6F953EF9CE78@hindu.org> <84d6f2bb-fcde-f8c0-67aa-2eb5e2ed6e08@fourthworld.com> Message-ID: Richard, For me, it's a pain point because when I try to build a standalone and I don't have one of the widgets linked, I only get a message saying "module not found" or something like that. Seems it would be easy to notify the name of the in-found module. Best, Bill William Prothero http://es.earthednet.org > On Apr 28, 2017, at 8:30 PM, Richard Gaskin via use-livecode wrote: > > Why is this such an ongoing pain point? > > How are dependencies handles in other systems? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Apr 28 23:56:22 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 28 Apr 2017 20:56:22 -0700 Subject: Scanning for inclusions In-Reply-To: References: Message-ID: <78e86afa-db74-e55c-a909-85f120aeb4bc@fourthworld.com> William Prothero wrote: >> On Apr 28, 2017, at 8:30 PM, Richard Gaskin wrote: >> >> Why is this such an ongoing pain point? >> >> How are dependencies handles in other systems? > > > Richard, > For me, it's a pain point because when I try to build a standalone > and I don't have one of the widgets linked, I only get a message > saying "module not found" or something like that. Seems it would be > easy to notify the name of the in-found module. Exactly. It's 2017. We're not the first project to need to figure out how to handle dependencies. -- 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 Apr 29 10:28:30 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 29 Apr 2017 17:28:30 +0300 Subject: Will LiveCode run an x86 android device? In-Reply-To: <6bb087c4-e103-0773-392b-029b56b01775@hyperactivesw.com> References: <4e96903d-8f87-2932-1d1e-480cb726dcea@gmail.com> <5ba2f735-3078-efe2-1653-9390f00d1bcd@gmail.com> <6bb087c4-e103-0773-392b-029b56b01775@hyperactivesw.com> Message-ID: I wasn't suggesting a version of the development IDE for x86 Android . . . On 4/29/17 12:05 am, J. Landman Gay via use-livecode wrote: > On 4/28/17 3:03 PM, Richmond Mathewson via use-livecode wrote: >> Isn't Android a type of Linux? >> >> Arguably a Linux standalone should work better on x86 Android devices >> . . . >> >> So; here's LiveCode's next headache: >> >> How to build a Linux standalone which can be installed on an x86 Android >> device. > > Mobile limitations are fairly severe, and most of the IDE tools > wouldn't work. That's not what I meant: I meant the ability to hive off standalones that would run natively on x86 Android. > Just the fact that only one window at a time can be open would remove > the ability to display palettes, tools, plugins, app and project > browsers, etc. Also, no floating script editor. > > Then imagine trying trying to type scripts on a 5-inch phone keyboard. > > That's just a start of the list of things that can't be done currently > on mobile. > Richmond. From ambassador at fourthworld.com Sat Apr 29 11:13:08 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 29 Apr 2017 08:13:08 -0700 Subject: Will LiveCode run an x86 android device? In-Reply-To: References: Message-ID: <91f0128d-a6e6-1566-3cb6-8c7bb6e81157@fourthworld.com> Richmond Mathewson wrote: > I wasn't suggesting a version of the development IDE for x86 Android . . . > > On 4/29/17 12:05 am, J. Landman Gay via use-livecode wrote: >> On 4/28/17 3:03 PM, Richmond Mathewson via use-livecode wrote: >>> Isn't Android a type of Linux? >>> >>> Arguably a Linux standalone should work better on x86 Android devices >>> . . . >>> >>> So; here's LiveCode's next headache: >>> >>> How to build a Linux standalone which can be installed on an x86 Android >>> device. >> >> Mobile limitations are fairly severe, and most of the IDE tools >> wouldn't work. > > That's not what I meant: I meant the ability to hive off standalones > that would run natively > on x86 Android. There's more to Linux than the kernel. The LC engine for Linux has fewer dependencies than most (it amazes me just how deeply reliant some apps are on very specific system configurations), but it does expect a reasonable baseline of GDK and other elements found on nearly all Linux desktop systems, which I don't believe are part of Android. So while we can build for a very wide range of Linux distros, Android is Linux-based (as in, it uses the kernel and a handful of other packages) but is not a Linux distro per se. I don't believe Android includes what the LC engine expects to find in order to run. I had thought one of the reasons Android uses the Dalvik and ART VMs is because they're VMs, separating the APIs from processor architectures. If so, then the LC engine for Android is bytecode rather than machine code, and as such should run on either processor architecture, no? -- 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 Apr 29 13:26:48 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 29 Apr 2017 20:26:48 +0300 Subject: Stupid Q No 999: mergeBLE In-Reply-To: <86715db6-5be8-47c1-37fd-ae940363b794@hyperactivesw.com> References: <3ce29cdb-f65d-83c0-b210-b83f7a60fd6d@gmail.com> <6ef94a20-9ba2-68ee-e5f2-0e64130d334b@gmail.com> <6f7cfef6-0811-bf07-018e-40996a87e291@cogapp.com> <31edba5a-af31-5820-4e6e-4c6bf718066d@gmail.com> <86715db6-5be8-47c1-37fd-ae940363b794@hyperactivesw.com> Message-ID: <78d79c6e-3d79-9fc9-8afa-128238e743a2@gmail.com> Presumably (?) "unsupported" in field "central state" means "Richmond's up a gum tree" until he lays his sweaty paws on something that runs Mac OS 10.9 or later. Richmond. From richmondmathewson at gmail.com Sat Apr 29 13:28:00 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 29 Apr 2017 20:28:00 +0300 Subject: sims' spotty dog Message-ID: <5c1dada4-3bcd-b15a-d2ef-f2524c72d28e@gmail.com> Why has nothing been done about this? Richmond. From richmondmathewson at gmail.com Sat Apr 29 13:37:27 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 29 Apr 2017 20:37:27 +0300 Subject: Will LiveCode run an x86 android device? In-Reply-To: <91f0128d-a6e6-1566-3cb6-8c7bb6e81157@fourthworld.com> References: <91f0128d-a6e6-1566-3cb6-8c7bb6e81157@fourthworld.com> Message-ID: <5a67cdb4-386e-3579-c29d-7ad797a01d69@gmail.com> On 4/29/17 6:13 pm, Richard Gaskin via use-livecode wrote: > Richmond Mathewson wrote: > > > I wasn't suggesting a version of the development IDE for x86 Android > . . . > > > > On 4/29/17 12:05 am, J. Landman Gay via use-livecode wrote: > >> On 4/28/17 3:03 PM, Richmond Mathewson via use-livecode wrote: > >>> Isn't Android a type of Linux? > >>> > >>> Arguably a Linux standalone should work better on x86 Android devices > >>> . . . > >>> > >>> So; here's LiveCode's next headache: > >>> > >>> How to build a Linux standalone which can be installed on an x86 > Android > >>> device. > >> > >> Mobile limitations are fairly severe, and most of the IDE tools > >> wouldn't work. > > > > That's not what I meant: I meant the ability to hive off standalones > > that would run natively > > on x86 Android. > > There's more to Linux than the kernel. > > The LC engine for Linux has fewer dependencies than most (it amazes me > just how deeply reliant some apps are on very specific system > configurations), but it does expect a reasonable baseline of GDK and > other elements found on nearly all Linux desktop systems, which I > don't believe are part of Android. > > So while we can build for a very wide range of Linux distros, Android > is Linux-based (as in, it uses the kernel and a handful of other > packages) but is not a Linux distro per se. > > I don't believe Android includes what the LC engine expects to find in > order to run. If that is so why can LiveCode make standalones that run on ARM Android? > > > I had thought one of the reasons Android uses the Dalvik and ART VMs > is because they're VMs, separating the APIs from processor architectures. > > If so, then the LC engine for Android is bytecode rather than machine > code, and as such should run on either processor architecture, no? > From ambassador at fourthworld.com Sat Apr 29 13:59:14 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 29 Apr 2017 10:59:14 -0700 Subject: sims' spotty dog In-Reply-To: <5c1dada4-3bcd-b15a-d2ef-f2524c72d28e@gmail.com> References: <5c1dada4-3bcd-b15a-d2ef-f2524c72d28e@gmail.com> Message-ID: <4c18ec3f-1733-2cb1-1e53-ea4c83289cd6@fourthworld.com> Richmond Mathewson wrote: > Why has nothing been done about this? A less presumptuous question might have been: "What has been done about this?" ...for which the answer would be that I wrote Sims about it the other day, and he replied to let me know he's written Heather about it. The precise nature of the problem is unclear to me at this time, given how frequently mail headers are forged, making it possible that they're not coming from his account at all. May take them a bit longer to sort out, but they're working on it. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Sat Apr 29 14:25:00 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 29 Apr 2017 11:25:00 -0700 Subject: Will LiveCode run an x86 android device? In-Reply-To: <5a67cdb4-386e-3579-c29d-7ad797a01d69@gmail.com> References: <5a67cdb4-386e-3579-c29d-7ad797a01d69@gmail.com> Message-ID: Richmond Mathewson wrote: > On 4/29/17 6:13 pm, Richard Gaskin via use-livecode wrote: >> So while we can build for a very wide range of Linux distros, >> Android is Linux-based (as in, it uses the kernel and a handful >> of other packages) but is not a Linux distro per se. >> >> I don't believe Android includes what the LC engine expects to find >> in order to run. > > If that is so why can LiveCode make standalones that run on ARM > Android? But can you run an Android APK made with LiveCode on an ARM Linux OS? LC-built APKs expect things the Android OS packages provide. Similarly, you can use the Raspberry Pi build of LC to deploy to ARM devices running Linux ARM distros packaged for that hardware, since that LC engine is compiled for the packages expected on Raspian and Raspian-like systems (e.g. Debian ARM, Ubuntu Core ARM, etc.). The CPU architecture is only part of a complete breakfast. Delivering an application to that CPU will require integration with the OS it will run under. As much as I enjoy having my Rpi2 and RPi3, I've only found one practical use for either (in progress; will probably write an article about it for MagPi when it's done). For IoT they're wonderful, but for anything that needs a GUI even the RPi3 isn't very satisfying for someone used to ordinary desktop performance. And if a 100 Gb Ethernet port weren't bottleneck enough, sharing the controller with the USB 2 (yes, 2) port doesn't help. As wonderful as it is to get a mobo for US$35, by the time you get a case, power supply, MicroSD card of reasonable size, and any other add-ons you might need, you're up to about $80. Still not bad, but for just twice the price you can get more than 4 times the computing with one of the Atom- or Celeron-powered NUCs or Compute Sticks. And with a NUC or stick you get the rest of the full x86 ecosystem, which includes being able to run the latest and greatest LC IDE on it quite comfortably. There's a place for RPi, but there are more places for NUCs and sticks. And with so many knock-offs available, NUC and stick options below $200 abound. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From capellan2000 at gmail.com Sat Apr 29 14:55:56 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sat, 29 Apr 2017 14:55:56 -0400 Subject: Swiping between cards - metaphor end-of-the-road? Message-ID: Hi All, Check this script. This code would be a starting point for a script that implement this swiping card feature. Maybe I will try to code it myself when my headache ends. After we have 3 images (from previous, current and next card,) the script of top image (image of current card) just have to change the layer of previous and next card images, depending of movement direction: a) moving the image to left or down or diagonally to the left will show the image of next card b) moving the image to right or up or diagonally to the right will show the image of next card In countries that reads from right to left, like Japan, these movements would be reversed. on mouseup lock screen put the rect of this cd into q export snapshot from rect q of this cd to myVar as PNG create img set the text of it to myVar go prev -- previous card put the rect of this cd into q export snapshot from rect q of this cd to myVar as PNG go back -- we return to the card where we started create img set the text of it to myVar go next put the rect of this cd into q export snapshot from rect q of this cd to myVar as PNG go back create img set the text of it to myVar put the number of images of this card into w put the number of controls of this card into r set the layer of img (w-2) of this card to r -- image of current card is moved to top layer unlock screen end mouseup Al From ambassador at fourthworld.com Sat Apr 29 15:00:07 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 29 Apr 2017 12:00:07 -0700 Subject: Swiping between cards - metaphor end-of-the-road? In-Reply-To: References: Message-ID: <40d3d384-9633-6712-f5f9-f94e2628d14b@fourthworld.com> Alejandro Tejada wrote: > Check this script. This code would be a starting point for a script > that implement this swiping card feature. Maybe I will try to code it > myself when my headache ends. Your headache won't end until your RAM chips arrive. :)\ > After we have 3 images (from previous, current and next card,) the > script of top image (image of current card) just have to change > the layer of previous and next card images, depending of movement > direction: > > a) moving the image to left or down or diagonally to the left > will show the image of next card > > b) moving the image to right or up or diagonally to the right > will show the image of next card > > In countries that reads from right to left, like Japan, > these movements would be reversed. > > on mouseup > lock screen > > put the rect of this cd into q > export snapshot from rect q of this cd to myVar as PNG > create img > set the text of it to myVar > > go prev -- previous card > put the rect of this cd into q > export snapshot from rect q of this cd to myVar as PNG > go back -- we return to the card where we started > create img > set the text of it to myVar > > > go next > put the rect of this cd into q > export snapshot from rect q of this cd to myVar as PNG > go back > create img > set the text of it to myVar > > put the number of images of this card into w > put the number of controls of this card into r > > set the layer of img (w-2) of this card to r > -- image of current card is moved to top layer > > unlock screen > end mouseup I like DIY solutions that don't require waiting for the engine team, but I wonder how smoothly performant this would feel in actual use? On modern high-end phones those bitmaps will be pretty big. -- 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 Apr 29 15:21:56 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 29 Apr 2017 14:21:56 -0500 Subject: Will LiveCode run an x86 android device? In-Reply-To: References: <5a67cdb4-386e-3579-c29d-7ad797a01d69@gmail.com> Message-ID: On 4/29/17 1:25 PM, Richard Gaskin via use-livecode wrote: >> If that is so why can LiveCode make standalones that run on ARM >> Android? > > But can you run an Android APK made with LiveCode on an ARM Linux OS? Seems to me, Richmond's question is the same as "Why can't we run a Mac app on Windows? They both use Intel processors." -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Sat Apr 29 15:29:59 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 29 Apr 2017 12:29:59 -0700 Subject: Will LiveCode run an x86 android device? In-Reply-To: References: Message-ID: J. Landman Gay wrote: > On 4/29/17 1:25 PM, Richard Gaskin via use-livecode wrote: >>> If that is so why can LiveCode make standalones that run on ARM >>> Android? >> >> But can you run an Android APK made with LiveCode on an ARM Linux OS? > > Seems to me, Richmond's question is the same as "Why can't we run a > Mac app on Windows? They both use Intel processors." We see a variant of that question almost every week in the Ubuntu forums. :) -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From capellan2000 at gmail.com Sat Apr 29 16:46:40 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sat, 29 Apr 2017 16:46:40 -0400 Subject: Swiping between cards - metaphor end-of-the-road? Message-ID: Hi Richard, :D Richard Gaskin wrote: > Your headache won't end > until your RAM chips arrive. :)\ Thankfully, a small cup of coffee with half lemon reduced the headache to a minimum of discomfort. It's there, the headache is still there but in a second or third plane... :D > I like DIY solutions that don't require waiting for > the engine team, but I wonder how smoothly performant > this would feel in actual use? > On modern high-end phones those bitmaps will be pretty big. Good point, but the engine team would do something very similar but at a lower level. Right? Does LiveCode always creates 32 bit images, {24 bit for RGB image plus 8 bits for Alpha channel] even when you are displaying a 4 bit PNG? If these images had a lower bit count (like 4 or 8) memory requirements were much lower. Much lower. Look these PNGs displayed at 1, 2, 4, 8 and 32 bits. https://commons.wikimedia.org/wiki/File:4_bit.png By the way, now that I think about it, ink effects adds a nice touch for displaying the previous and next card images :) About big images in mobile devices, previously I though that in iOS and Android every current app could use all resources of the device (all memory, all processors) while other running apps started to "sleep" until the user starts using them again. Al From jonathandlynch at gmail.com Sat Apr 29 17:10:12 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Sat, 29 Apr 2017 17:10:12 -0400 Subject: Creating apps directly on mobile devices Message-ID: <214D8BAB-B8FF-432F-AE8B-FAB9B3E68D0A@gmail.com> This is just hypothetical, I have no need to do this. I also think that apple might consider a security violation, but I don't know. Is there any reason why it would not be possible to create a stack for mobile who's sole purpose is to let you write scripts on the fly? From there, you could create all the objects you need. You would have to store the card separately, but that should not be too hard. I understand RunRev does not want people to create a competitive development environment with LC, but a barebones stack that simply executes a script that you type into a field would not be competition. Would there be any value any doing that? Like, as a way to share mini-apps among users that can be shared easily with each other. Sent from my iPhone From capellan2000 at gmail.com Sat Apr 29 17:19:51 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sat, 29 Apr 2017 17:19:51 -0400 Subject: Creating apps directly on mobile devices Message-ID: Before my Ubuntu Linux computer stopped working, I had created an Android APK with two buttons and a single field. The first button only opens any stack named "test.livecode" from Android's document folder. The second button script's is: on mouseup do field 1 end mouseup Could you run an iOS app with only these two features? Al From colinholgate at gmail.com Sat Apr 29 17:48:48 2017 From: colinholgate at gmail.com (Colin Holgate) Date: Sat, 29 Apr 2017 17:48:48 -0400 Subject: Creating apps directly on mobile devices In-Reply-To: <214D8BAB-B8FF-432F-AE8B-FAB9B3E68D0A@gmail.com> References: <214D8BAB-B8FF-432F-AE8B-FAB9B3E68D0A@gmail.com> Message-ID: <0FE9F3E9-40FF-460D-8348-290BC1035CF6@gmail.com> There are other apps that do basically that, so it should be acceptable. You?re only allowing the user to play back local content, or to share to external devices. Apple don?t like it if you can download code into the app. > On Apr 29, 2017, at 5:10 PM, Jonathan Lynch via use-livecode wrote: > > This is just hypothetical, I have no need to do this. I also think that apple might consider a security violation, but I don't know. > > Is there any reason why it would not be possible to create a stack for mobile who's sole purpose is to let you write scripts on the fly? > > From there, you could create all the objects you need. You would have to store the card separately, but that should not be too hard. > > I understand RunRev does not want people to create a competitive development environment with LC, but a barebones stack that simply executes a script that you type into a field would not be competition. > > Would there be any value any doing that? Like, as a way to share mini-apps among users that can be shared easily with each other. From jonathandlynch at gmail.com Sat Apr 29 18:41:08 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Sat, 29 Apr 2017 18:41:08 -0400 Subject: Creating apps directly on mobile devices In-Reply-To: References: Message-ID: I certainly think so - not sure if Apple would balk since they don't like apps to import code, but I think there are some iOS development apps made for iOS, so maybe not an issue. Sent from my iPhone > On Apr 29, 2017, at 5:19 PM, Alejandro Tejada via use-livecode wrote: > > Before my Ubuntu Linux computer stopped working, > I had created an Android APK with two buttons > and a single field. > The first button only opens any stack named > "test.livecode" from Android's document > folder. > > The second button script's is: > > on mouseup > do field 1 > end mouseup > > Could you run an iOS app with > only these two features? > > Al > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From capellan2000 at gmail.com Sat Apr 29 18:51:42 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sat, 29 Apr 2017 18:51:42 -0400 Subject: Creating apps directly on mobile devices In-Reply-To: References: Message-ID: Apps like Pythonista? http://omz-software.com/pythonista/ Al On Sat, Apr 29, 2017 at 6:41 PM, wrote: > I certainly think so - not sure if Apple would balk since they don't like > apps to import code, but I think there are some iOS development apps made > for iOS, so maybe not an issue. > > Sent from my iPhone > > > On Apr 29, 2017, at 5:19 PM, Alejandro Tejada via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Before my Ubuntu Linux computer stopped working, > > I had created an Android APK with two buttons > > and a single field. > > The first button only opens any stack named > > "test.livecode" from Android's document > > folder. > > > > The second button script's is: > > > > on mouseup > > do field 1 > > end mouseup > > > > Could you run an iOS app with > > only these two features? > > > > Al > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > From jonathandlynch at gmail.com Sat Apr 29 19:02:05 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Sat, 29 Apr 2017 19:02:05 -0400 Subject: Creating apps directly on mobile devices In-Reply-To: References: Message-ID: <2FDA85A7-D593-4694-84CB-CAD78CB70395@gmail.com> Yes! If they can have that, why couldn't we have LiveCodeMobileDev or something like that? Sent from my iPhone > On Apr 29, 2017, at 6:51 PM, Alejandro Tejada wrote: > > Apps like Pythonista? > http://omz-software.com/pythonista/ > > Al > >> On Sat, Apr 29, 2017 at 6:41 PM, wrote: >> I certainly think so - not sure if Apple would balk since they don't like apps to import code, but I think there are some iOS development apps made for iOS, so maybe not an issue. >> >> Sent from my iPhone >> >> > On Apr 29, 2017, at 5:19 PM, Alejandro Tejada via use-livecode wrote: >> > >> > Before my Ubuntu Linux computer stopped working, >> > I had created an Android APK with two buttons >> > and a single field. >> > The first button only opens any stack named >> > "test.livecode" from Android's document >> > folder. >> > >> > The second button script's is: >> > >> > on mouseup >> > do field 1 >> > end mouseup >> > >> > Could you run an iOS app with >> > only these two features? >> > >> > Al >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at lists.runrev.com >> > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode > From capellan2000 at gmail.com Sat Apr 29 19:25:21 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sat, 29 Apr 2017 19:25:21 -0400 Subject: Creating apps directly on mobile devices In-Reply-To: <2FDA85A7-D593-4694-84CB-CAD78CB70395@gmail.com> References: <2FDA85A7-D593-4694-84CB-CAD78CB70395@gmail.com> Message-ID: In other message threads, I have asked about a LiveCode Features Demo for mobile platforms. This APP/APK Demo would allows to test interactively every LiveCode Feature in that platform. But this program still do not exists... Al On Sat, Apr 29, 2017 at 7:02 PM, wrote: > Yes! > > If they can have that, why couldn't we have LiveCodeMobileDev or something > like that? > > Sent from my iPhone > > On Apr 29, 2017, at 6:51 PM, Alejandro Tejada > wrote: > > Apps like Pythonista? > http://omz-software.com/pythonista/ > > Al > > On Sat, Apr 29, 2017 at 6:41 PM, wrote: > >> I certainly think so - not sure if Apple would balk since they don't like >> apps to import code, but I think there are some iOS development apps made >> for iOS, so maybe not an issue. >> >> Sent from my iPhone >> >> > On Apr 29, 2017, at 5:19 PM, Alejandro Tejada via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > Before my Ubuntu Linux computer stopped working, >> > I had created an Android APK with two buttons >> > and a single field. >> > The first button only opens any stack named >> > "test.livecode" from Android's document >> > folder. >> > >> > The second button script's is: >> > >> > on mouseup >> > do field 1 >> > end mouseup >> > >> > Could you run an iOS app with >> > only these two features? >> > >> > Al >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at lists.runrev.com >> > Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From brahma at hindu.org Sat Apr 29 22:43:26 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 30 Apr 2017 02:43:26 +0000 Subject: Scanning for inclusions In-Reply-To: References: <3DCC82DD-3ABA-4CEA-9A8F-6F953EF9CE78@hindu.org> <84d6f2bb-fcde-f8c0-67aa-2eb5e2ed6e08@fourthworld.com> Message-ID: <141D9CDF-6745-4AAC-B004-113C8AE2B8B0@hindu.org> Bill wrote: "For me, it's a pain point because when I try to build a standalone and I don't have one of the widgets linked, I only get a message saying "module not found" or something like that. " I think it is actually worse than that. I'm bleary eyed from pushing so many builds these past few days, but I could swear I actually got all the way thru with a success but then the app failed on my Nexus 5, when it tried to open a stack that required the widget. our app is modular, the loader stack against which the SA is built, doesn't actually have any of the required inclusions on it's cd 1 which is the only card. the init script launches a navigation panel that is built from our JSON and images in /assets, ie. also no inclusions required for display/functionality. so far so good the app appeared to be work? then go to stack 6 which used the header widget app crashed? I'm thnk I broke some script in Stack 6 (had been doing a bunch of refactoring) tried again, this time from the navigation panel, open stack 8? which uses a switch button widget on card 4 of that stack? well cd 1 of stack 8 appears just fine? but then when you move to card four. crash. This is more than just a pain--you start question your sanity because if you set a break point on the preopenstack D, turn on remote bugging etc step through code you will never see anything wrong with your scripts. And it all works on desktop. on a pure "hunch" I finally committed everything in my current branch, check out another branch, took screen shot of the SA settings panel on the older init stack? *then* checked out my working branch (which was refactored to use a leaner loader stack, and I had to redo all the SA settings) and then compared the SA settings to the screen shot and slap myself on the head? I had forgotten that stack 6 require the Header Widget and Stack 8 required the switch button widget. literally hours later, with zero progress in design/content/coding I got back to work I(so much for LC productivity! but hey, I still am holding out and keep my JS books on the shelf, unopened, I hope, for as long as I can?Fortunately I did get the discounted business license and the team in Scotland has been very helpful and patient. I may actually have something for the stores in May! Thanks Elanor! Bill: "Seems it would be easy to notify the name of the in-found module." yes indeed. exc From brahma at hindu.org Sat Apr 29 22:56:23 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 30 Apr 2017 02:56:23 +0000 Subject: Documentation on Accelerated Rendering Message-ID: <3A66C968-1180-46D8-91A3-DDFD6A11F534@hindu.org> Our new modular app was crashing badly and also rendering bizarre screens on Android, HQ determined that if Accelerated rendering was on when you close one stack and opened a second one, it was the problem. But Acceleratedrendering is needed for performance, so it seems to work fine,if, instead using some global backscript that sets acceleratedrending to True "whenever"? if you explicitly turn it on/true in e the preopenstack handler and set it to false on the close stack or card *before* attempting to close the stack and open another one.. then things work. But now I'm having issues with some modules where I turned on AccelerateRendering /true. I would like "generalize" the use cases for acceleratedRendering and move that call out of the stack themselves into a library that is placed into the back script with "start using" But? it's too vague in my head right now to make an intelligent addition to a global library (or multiple library handlers if that makes sense) that will serve all contexts without the breakage we had before. My question is: where is the documentation for AcceleratedRendering -- exactly what does it do? (don't worry, if the explanation is very technical.. .let me see it!) -- when does it help -- what contexts may there be where it could actually impede performance? I mean more than just "It helps with scrolling groups" but a robust analysis of what is going on, why and when it serves it's purpose etc. it's not in the dictionary, and the guide has no search box (the intuitive thing a newbie would do for an "feature" of the language/engine would be to search and read all instances where it appears in the documentation, as her homework for that issue/feature/ bit-of-syntax. BR From richmondmathewson at gmail.com Sun Apr 30 03:37:13 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 30 Apr 2017 10:37:13 +0300 Subject: sims' spotty dog In-Reply-To: <4c18ec3f-1733-2cb1-1e53-ea4c83289cd6@fourthworld.com> References: <5c1dada4-3bcd-b15a-d2ef-f2524c72d28e@gmail.com> <4c18ec3f-1733-2cb1-1e53-ea4c83289cd6@fourthworld.com> Message-ID: Possibly the simplest solution would be for Sims to set up another e-mail account. Richmond. On 4/29/17 8:59 pm, Richard Gaskin via use-livecode wrote: > Richmond Mathewson wrote: > > > Why has nothing been done about this? > > A less presumptuous question might have been: > > "What has been done about this?" > > ...for which the answer would be that I wrote Sims about it the other > day, and he replied to let me know he's written Heather about it. > > The precise nature of the problem is unclear to me at this time, given > how frequently mail headers are forged, making it possible that > they're not coming from his account at all. > > May take them a bit longer to sort out, but they're working on it. > From dvglasgow at gmail.com Sun Apr 30 04:49:16 2017 From: dvglasgow at gmail.com (David V Glasgow) Date: Sun, 30 Apr 2017 09:49:16 +0100 Subject: Android & LC advice In-Reply-To: References: <5c1dada4-3bcd-b15a-d2ef-f2524c72d28e@gmail.com> <4c18ec3f-1733-2cb1-1e53-ea4c83289cd6@fourthworld.com> Message-ID: Morning, folks. I have had very preliminary discussions with a team who want to roll out a series of apps onto a fairly small number of phablet-esque devices which will be given out to clients to use. Because of the cost issue, I am assuming that Android will be the most appropriate platform. Aside from embedded stuff, I have never used Android. I don?t know anything about the market, and I have never built a standalone to run on the platform. There will no doubt be bumps and wrinkles down the line, but at this stage I need to consider the device options. Do folks know if there are specific Android devices that play nicely or badly with LC? If not, can I just proceed on the basis of keeping costs low? If you could specify a single device for end users, which would you choose? Would the need to use 3 / 4G change the recommendation? Best wishes, David Glasgow. From m.schonewille at economy-x-talk.com Sun Apr 30 04:50:52 2017 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 30 Apr 2017 10:50:52 +0200 Subject: sims' spotty dog In-Reply-To: References: <5c1dada4-3bcd-b15a-d2ef-f2524c72d28e@gmail.com> <4c18ec3f-1733-2cb1-1e53-ea4c83289cd6@fourthworld.com> Message-ID: <617a2711-a727-60a6-088c-e09a9bfb2376@economy-x-talk.com> It looks to me like at least one of the original e-mails came from a server in Vietnam while Sims server seems to be located in Texas and his home is on an island. I'd say there is little Sims can do about it. If his e-mail address were to be disabled, the spammers would simply spoof someone else's address. A solution might be to apply Spamcop filters, but many people, including those with OnRev accounts, are on shared servers and will often get blocked by Spamcop and still be unable to stop the spam. Kind regards, Mark Schonewille http://economy-x-talk.com https://www.facebook.com/marksch Buy the most extensive book on the LiveCode language: http://livecodebeginner.economy-x-talk.com Op 30-Apr-17 om 09:37 schreef Richmond Mathewson via use-livecode: > Possibly the simplest solution would be for Sims to set up another > e-mail account. > > Richmond. > > On 4/29/17 8:59 pm, Richard Gaskin via use-livecode wrote: >> Richmond Mathewson wrote: >> >> > Why has nothing been done about this? >> >> A less presumptuous question might have been: >> >> "What has been done about this?" >> >> ...for which the answer would be that I wrote Sims about it the other >> day, and he replied to let me know he's written Heather about it. >> >> The precise nature of the problem is unclear to me at this time, given >> how frequently mail headers are forged, making it possible that >> they're not coming from his account at all. >> >> May take them a bit longer to sort out, but they're working on it. >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Sun Apr 30 06:27:14 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 30 Apr 2017 13:27:14 +0300 Subject: Alan's problem Message-ID: <3aca4878-3ed2-3efb-4c8a-4a6d6cc287ec@gmail.com> Is LiveCode Turing complete? Richmond. From m.schonewille at economy-x-talk.com Sun Apr 30 06:59:17 2017 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 30 Apr 2017 12:59:17 +0200 Subject: Alan's problem In-Reply-To: <3aca4878-3ed2-3efb-4c8a-4a6d6cc287ec@gmail.com> References: <3aca4878-3ed2-3efb-4c8a-4a6d6cc287ec@gmail.com> Message-ID: <5e5ce3b3-a81e-b0a5-3de2-96233bc7d390@economy-x-talk.com> Definitely. Kind regards, Mark Schonewille http://economy-x-talk.com https://www.facebook.com/marksch Buy the most extensive book on the LiveCode language: http://livecodebeginner.economy-x-talk.com Op 30-Apr-17 om 12:27 schreef Richmond Mathewson via use-livecode: > Is LiveCode Turing complete? > > 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 roger.e.eller at sealedair.com Sun Apr 30 07:29:25 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Sun, 30 Apr 2017 07:29:25 -0400 Subject: Creating apps directly on mobile devices In-Reply-To: References: <2FDA85A7-D593-4694-84CB-CAD78CB70395@gmail.com> Message-ID: Build it and they will come... er, download it. :) On Apr 29, 2017 7:25 PM, "Alejandro Tejada via use-livecode" < use-livecode at lists.runrev.com> wrote: > In other message threads, I have asked about a > LiveCode Features Demo for mobile platforms. > > This APP/APK Demo would allows to test > interactively every LiveCode Feature in that > platform. > > But this program still do not exists... > > Al > > On Sat, Apr 29, 2017 at 7:02 PM, wrote: > > > Yes! > > > > If they can have that, why couldn't we have LiveCodeMobileDev or > something > > like that? > > > > Sent from my iPhone > > > > On Apr 29, 2017, at 6:51 PM, Alejandro Tejada > > wrote: > > > > Apps like Pythonista? > > http://omz-software.com/pythonista/ > > > > Al > > > > On Sat, Apr 29, 2017 at 6:41 PM, wrote: > > > >> I certainly think so - not sure if Apple would balk since they don't > like > >> apps to import code, but I think there are some iOS development apps > made > >> for iOS, so maybe not an issue. > >> > >> Sent from my iPhone > >> > >> > On Apr 29, 2017, at 5:19 PM, Alejandro Tejada via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > > >> > Before my Ubuntu Linux computer stopped working, > >> > I had created an Android APK with two buttons > >> > and a single field. > >> > The first button only opens any stack named > >> > "test.livecode" from Android's document > >> > folder. > >> > > >> > The second button script's is: > >> > > >> > on mouseup > >> > do field 1 > >> > end mouseup > >> > > >> > Could you run an iOS app with > >> > only these two features? > >> > > >> > Al > >> > _______________________________________________ > >> > use-livecode mailing list > >> > use-livecode at lists.runrev.com > >> > Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> > http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Sun Apr 30 09:49:42 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 30 Apr 2017 06:49:42 -0700 Subject: Android & LC advice In-Reply-To: References: Message-ID: <96d0a279-b62b-3887-2641-c9de17bfcf26@fourthworld.com> David V Glasgow wrote: > If you could specify a single device for end users, which would you > choose? Would the need to use 3 / 4G change the recommendation? What will the user be expected to do with it? > Because of the cost issue, I am assuming that Android will be the > most appropriate platform. If cost were the only issue, Android would no doubt be the better choice by virtue of its vastly more diverse hardware ecosystem. But again, it boils down to what the user is expected to do with it. For infrequent lightweight tasks it probably doesn't matter much, but if the user will be using the device a lot it may matter whether they already have deep experience with iOS or Android. The two OSes are different enough that I see users of each stumble and become frustrated when they try to use the other. -- 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 Sun Apr 30 10:21:48 2017 From: iphonelagi at gmail.com (Lagi Pittas) Date: Sun, 30 Apr 2017 15:21:48 +0100 Subject: Android & LC advice In-Reply-To: References: <5c1dada4-3bcd-b15a-d2ef-f2524c72d28e@gmail.com> <4c18ec3f-1733-2cb1-1e53-ea4c83289cd6@fourthworld.com> Message-ID: Hi I have my program(s) running on Windows 7 embeded 10.1 inch and 8 inch windows 10 tablets (fusion 5 and linx) 10.1 inch android tablets from fusion 5 5 inch DOOGEE android phones for less than ?50 although there are really good ones upto 5.5 inch for less than ?70 samsung 7" tab 4 Not a problem on any of them. Just as a headsup the reason I have started using the 8 inch windows tablets is that getting bluetooth or any printer working easily with Android is a nightmare - unless you know different. The way Ive done it is to have a windows 7 server and send the information to an sql file that is polled on the server which then printed it on 6 different printers depending on the "printjob" The latest application needs printing out of the office so until i setup a raspberry pi as a server or test a wireless router i'm sticking with the windows tablet as I have the drivers. I'm looking to use a raspberry PI as the server but time is what In keep running out of. To save you some time , if they are internal just sign for developer use and either send the apk via email or use an sd card to attach to the tablet. While I'm at it has anybody printed directly to a Bluetooth printer from android , specifically https://www.amazon.co.uk/Koolertron-Portable-Bluetooth-Wireless-Supports/dp/ B00W6XPHFC/ref=br_lf_m_mspnvhmjg9hp3y2_ttl?_encoding=UTF8&s=officeproduct (it generic - everybody puts their name on it) Kindest Regards lagi On 30 April 2017 at 09:49, David V Glasgow via use-livecode < use-livecode at lists.runrev.com> wrote: > Morning, folks. > > I have had very preliminary discussions with a team who want to roll out a > series of apps onto a fairly small number of phablet-esque devices which > will be given out to clients to use. > > Because of the cost issue, I am assuming that Android will be the most > appropriate platform. > > Aside from embedded stuff, I have never used Android. I don?t know > anything about the market, and I have never built a standalone to run on > the platform. There will no doubt be bumps and wrinkles down the line, but > at this stage I need to consider the device options. > > Do folks know if there are specific Android devices that play nicely or > badly with LC? If not, can I just proceed on the basis of keeping costs > low? > > If you could specify a single device for end users, which would you > choose? Would the need to use 3 / 4G change the recommendation? > > Best wishes, > > David Glasgow. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Sun Apr 30 10:51:33 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 30 Apr 2017 07:51:33 -0700 Subject: Where is the Plugins folder documented? Message-ID: <9c2542e2-a3c6-a9f8-6033-21132b1e3941@fourthworld.com> I find myself often needing to explain how to set up the user Plugins folder and why LC has two such folders. This morning I figured it might make more sense to just refer folks to the appropriate section of the User Guide, but I could find no such explanation there. Then I thought I'd try the Guides, which are hidden away in a stack named "Dictionary". The only info there about Extensions is exclusively about LC Builder, and I couldn't find any mention of the Plugins folder at all. Where is it documented? -- 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 Sun Apr 30 11:04:06 2017 From: iphonelagi at gmail.com (Lagi Pittas) Date: Sun, 30 Apr 2017 16:04:06 +0100 Subject: Alan's problem In-Reply-To: <3aca4878-3ed2-3efb-4c8a-4a6d6cc287ec@gmail.com> References: <3aca4878-3ed2-3efb-4c8a-4a6d6cc287ec@gmail.com> Message-ID: Since you can write a Turing machine and a Universal Turing Machine emulator in Livecode - it definitely is. What made you think it wasn't? - SQL is not Turing complete the Regex built into LC is not Turing Complete btw. Oh and BrainF*k is ;-) https://en.wikipedia.org/wiki/Brainfuck Regards lagi On 30 April 2017 at 11:27, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > Is LiveCode Turing complete? > > Richmond. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Sun Apr 30 12:11:24 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 30 Apr 2017 19:11:24 +0300 Subject: Alan's problem In-Reply-To: References: <3aca4878-3ed2-3efb-4c8a-4a6d6cc287ec@gmail.com> Message-ID: " As the name suggests, brainfuck programs tend to be difficult to comprehend." No, Really? Richmond. On 4/30/17 6:04 pm, Lagi Pittas via use-livecode wrote: > Since you can write a Turing machine and a Universal Turing Machine > emulator in Livecode - it definitely is. > What made you think it wasn't? - SQL is not Turing complete the Regex > built into LC is not Turing Complete btw. > > Oh and BrainF*k is ;-) > > https://en.wikipedia.org/wiki/Brainfuck > > Regards lagi > > On 30 April 2017 at 11:27, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Is LiveCode Turing complete? >> >> 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 jonathandlynch at gmail.com Sun Apr 30 12:26:29 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Sun, 30 Apr 2017 12:26:29 -0400 Subject: Problem with code-signing certificate Message-ID: <45746E2F-4F71-4720-ADAF-0BEF487A5AC2@gmail.com> Hi everyone, I bought a comodo certificate through ksoftware and I used their kSign software to sign the install file. But, as soon as I do that, the software no longer launches in a visible form. From Task Manager, I can see that the installer is running, but as a background process. No windows become visible. This is on a pc with windows 8. Has anyone ever encountered this before? Sent from my iPhone From matthias_livecode_150811 at m-r-d.de Sun Apr 30 14:02:38 2017 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sun, 30 Apr 2017 20:02:38 +0200 Subject: Problem with code-signing certificate In-Reply-To: <45746E2F-4F71-4720-ADAF-0BEF487A5AC2@gmail.com> References: <45746E2F-4F71-4720-ADAF-0BEF487A5AC2@gmail.com> Message-ID: <78FD97AA-8D8D-4631-9F65-4DEB58267555@m-r-d.de> Hi Jonathan, > Am 30.04.2017 um 18:26 schrieb Jonathan Lynch via use-livecode >: > > Hi everyone, > > I bought a comodo certificate through ksoftware and I used their kSign software to sign the install file. > > But, as soon as I do that, the software no longer launches in a visible form. From Task Manager, I can see that the installer is running, but as a background process. No windows become visible. > What Installer are you speaking about? What LC Version are you using? I could test here with one of my apps. Regards, Matthias > This is on a pc with windows 8. > > Has anyone ever encountered this before? > > Sent from my 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 Matthias Rebbe Bramkampsieke 13 32312 L?bbecke Tel +49 5741 310000 +49 160 5504462 Fax: +49 5741 310002 eMail: matthias at m-r-d.de BR5 Konverter - BR5 -> MP3 From jonathandlynch at gmail.com Sun Apr 30 14:13:39 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Sun, 30 Apr 2017 14:13:39 -0400 Subject: Problem with code-signing certificate In-Reply-To: <78FD97AA-8D8D-4631-9F65-4DEB58267555@m-r-d.de> References: <45746E2F-4F71-4720-ADAF-0BEF487A5AC2@gmail.com> <78FD97AA-8D8D-4631-9F65-4DEB58267555@m-r-d.de> Message-ID: It appears to be an issue with the file I created with installforge. Digitally signing the exe created in LC did not cause problems. I am having my doubts about installforge anyway. My 13m executable goes up to 40m when incorporated into an installforge exe file. Thanks! Sent from my iPhone > On Apr 30, 2017, at 2:02 PM, Matthias Rebbe via use-livecode wrote: > > Hi Jonathan, > > >> Am 30.04.2017 um 18:26 schrieb Jonathan Lynch via use-livecode >: >> >> Hi everyone, >> >> I bought a comodo certificate through ksoftware and I used their kSign software to sign the install file. >> >> But, as soon as I do that, the software no longer launches in a visible form. From Task Manager, I can see that the installer is running, but as a background process. No windows become visible. >> > What Installer are you speaking about? > > What LC Version are you using? I could test here with one of my apps. > > Regards, > > Matthias > > >> This is on a pc with windows 8. >> >> Has anyone ever encountered this before? >> >> Sent from my 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 > > Matthias Rebbe > Bramkampsieke 13 > 32312 L?bbecke > Tel +49 5741 310000 > +49 160 5504462 > Fax: +49 5741 310002 > eMail: matthias at m-r-d.de > > BR5 Konverter - BR5 -> MP3 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jonathandlynch at gmail.com Sun Apr 30 14:45:13 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Sun, 30 Apr 2017 14:45:13 -0400 Subject: Problem with code-signing certificate In-Reply-To: References: <45746E2F-4F71-4720-ADAF-0BEF487A5AC2@gmail.com> <78FD97AA-8D8D-4631-9F65-4DEB58267555@m-r-d.de> Message-ID: <8E484A22-1A8F-4B39-8418-FF02E025140D@gmail.com> I downloaded innosetup to create the installer. It works with digital certificate. It also produces a smaller file than installforge (31m) Sent from my iPhone > On Apr 30, 2017, at 2:13 PM, jonathandlynch at gmail.com wrote: > > It appears to be an issue with the file I created with installforge. > > Digitally signing the exe created in LC did not cause problems. > > I am having my doubts about installforge anyway. My 13m executable goes up to 40m when incorporated into an installforge exe file. > > Thanks! > > Sent from my iPhone > >> On Apr 30, 2017, at 2:02 PM, Matthias Rebbe via use-livecode wrote: >> >> Hi Jonathan, >> >> >>> Am 30.04.2017 um 18:26 schrieb Jonathan Lynch via use-livecode >: >>> >>> Hi everyone, >>> >>> I bought a comodo certificate through ksoftware and I used their kSign software to sign the install file. >>> >>> But, as soon as I do that, the software no longer launches in a visible form. From Task Manager, I can see that the installer is running, but as a background process. No windows become visible. >>> >> What Installer are you speaking about? >> >> What LC Version are you using? I could test here with one of my apps. >> >> Regards, >> >> Matthias >> >> >>> This is on a pc with windows 8. >>> >>> Has anyone ever encountered this before? >>> >>> Sent from my 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 >> >> Matthias Rebbe >> Bramkampsieke 13 >> 32312 L?bbecke >> Tel +49 5741 310000 >> +49 160 5504462 >> Fax: +49 5741 310002 >> eMail: matthias at m-r-d.de >> >> BR5 Konverter - BR5 -> MP3 >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode From jonathandlynch at gmail.com Sun Apr 30 15:12:56 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Sun, 30 Apr 2017 15:12:56 -0400 Subject: Is there any reason not to create a self-installing app? Message-ID: <37A02A04-D994-4E35-BEEB-33216F13906E@gmail.com> For pc and maybe mac, it seems like it would be possible for the app to have two modes. On first open, it would take the user through an installation process where it handles saving the various files and sub folders, and adding the start menu stuff. When opened after that, it would just run normally. Are there advantages to doing it that way, rather than using an install-creator program? Sent from my iPhone From matthias_livecode_150811 at m-r-d.de Sun Apr 30 16:02:58 2017 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sun, 30 Apr 2017 22:02:58 +0200 Subject: Is there any reason not to create a self-installing app? In-Reply-To: <37A02A04-D994-4E35-BEEB-33216F13906E@gmail.com> References: <37A02A04-D994-4E35-BEEB-33216F13906E@gmail.com> Message-ID: <0F8F1339-C03E-4F5D-94D3-7B77F7E1079E@m-r-d.de> > Am 30.04.2017 um 21:12 schrieb Jonathan Lynch via use-livecode >: > > For pc and maybe mac, it seems like it would be possible for the app to have two modes. On first open, it would take the user through an installation process where it handles saving the various files and sub folders, and adding the start menu stuff. > > When opened after that, it would just run normally. > > Are there advantages to doing it that way, rather than using an install-creator program? > The only advantage i would see is the fact that you do not have to rely on a 3rd party tool. I for me prefer to use a 3rd party tool to create an installer for windows , in my case Innosetup or better said InstallGadget*. Why, because an installer maker does all the work for me and i do not have to code that myself. *A tool Monte created long time ago. It uses Innosetup under the hood. The tool is very old, but is still working. I replaced the older Innosetup files with current ones to support Windows 8 and 10. Unfortunately InstallGadget is not available any more. It was really so easy to create an installer with it. For Mac i do not see a need for an installer if the program is just an app bundle. For such apps i am using DMG Canvas (http://www.araelium.com/dmgcanvas ) to create a DMG. Matthias > Sent from my 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 Matthias Rebbe Bramkampsieke 13 32312 L?bbecke Tel +49 5741 310000 +49 160 5504462 Fax: +49 5741 310002 eMail: matthias at m-r-d.de BR5 Konverter - BR5 -> MP3 From jacque at hyperactivesw.com Sun Apr 30 17:06:44 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 30 Apr 2017 16:06:44 -0500 Subject: Android & LC advice In-Reply-To: References: <5c1dada4-3bcd-b15a-d2ef-f2524c72d28e@gmail.com> <4c18ec3f-1733-2cb1-1e53-ea4c83289cd6@fourthworld.com> Message-ID: <1e0cbd2f-641c-a3a7-dc28-1f2eac7b70bd@hyperactivesw.com> On 4/30/17 3:49 AM, David V Glasgow via use-livecode wrote: > Do folks know if there are specific Android devices that play nicely > or badly with LC? If not, can I just proceed on the basis of keeping > costs low? > > If you could specify a single device for end users, which would you > choose? Would the need to use 3 / 4G change the recommendation? As Richard said, it all depends on what the app does. If it relies on lots of multimedia, you need something with a faster CPU and graphics card than if it is just going to present some fields and buttons. If it needs good internet access, I've seen differences just between my two Samsung phones, the newer phone naturally is faster than the older one and connects more reliably to networks with weaker signal strength. The need for 3/4G doesn't matter, the OS handles the type of data connection based on what's available. If there is wifi available it will use that, otherwise it falls back to cell data. I don't know of any Android devices that flat-out won't work with LC, but some may work better than others. In general you get what you pay for. A cheap phone will work but may not have the power or features you need. Your best bet is to list the features the app requires and then see which phones provide those features. Then compare cost vs. performance. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sun Apr 30 17:52:28 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 30 Apr 2017 16:52:28 -0500 Subject: Documentation on Accelerated Rendering In-Reply-To: <3A66C968-1180-46D8-91A3-DDFD6A11F534@hindu.org> References: <3A66C968-1180-46D8-91A3-DDFD6A11F534@hindu.org> Message-ID: <6bc860fb-0167-4aca-6226-8763f2008dfe@hyperactivesw.com> On 4/29/17 9:56 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > My question is: where is the documentation for AcceleratedRendering > > -- exactly what does it do? (don't worry, if the explanation is very technical.. .let me see it!) > -- when does it help > -- what contexts may there be where it could actually impede performance? I have been wanting to know that for years. I have the general idea but I want to know exactly what each command or property does. How does layerMode interact with rendering and when should I set it? (I used it incorrectly and submitted a spurious bug report, but I'm still not clear on why I was wrong.) Here is what (I think) I do know: AcceleratedRendering creates an offscreen buffer for objects that have a non-static layerMode. It then only needs to redraw the particular object instead of the whole card when you move that object, which is much faster. If it is a scrolling object (group or field) then the layermode should be set to "scrolling". If you are going to drag things around or use the "move" command, then those objects should be set to "dynamic". If the object doesn't move, or only moves very rarely, its layermode should stay at the default "static" and no buffer is created. The compositorTileSize, compositorType, and compositorCacheLimit all affect the size and behavior of the buffer(s). The defaults provided have always worked for me so I don't change them. I'm not sure how I would add up the memory requirements for a set of moving objects so I stick with the defaults. I'm guessing it would impede performance if it is creating buffers for objects that aren't really going to move. You'd have the overhead of the buffer creation and some decrease in available memory. And from my incorrect bug report, I gather you shouldn't change layermode on the fly. What I would like to know is: - What does layerMode tell the engine, and when is it read? I think it tells the engine to create a buffer for the object. I had read a long time ago that it would help to reset the layermode to static if the object was done moving, but there should have been a caveat: don't reset if the object will move again later, because in that case you want to preserve the existing buffer. That seems to imply that resetting layermode to static will dump the buffer. Is that right? - When set to true, what does acceleratedRendering actually do? Is it effectively a command to scan every object on the card and create buffers? Does it scan more than just the current card? - Is it okay to turn it on and off as needed? Are there disadvantages to that, assuming the objects won't be moving any more? Can I turn it on at the beginning of a handler and turn it off at the end if those objects won't be moving any more? - When I turn it off, does it dump all the buffers? I think it does. - What does it do between card changes? Does it keep old buffers until the cache limit is hit? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From brahma at hindu.org Sun Apr 30 21:39:02 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 1 May 2017 01:39:02 +0000 Subject: Documentation on Accelerated Rendering In-Reply-To: <6bc860fb-0167-4aca-6226-8763f2008dfe@hyperactivesw.com> References: <3A66C968-1180-46D8-91A3-DDFD6A11F534@hindu.org> <6bc860fb-0167-4aca-6226-8763f2008dfe@hyperactivesw.com> Message-ID: <5984B89B-D873-41E7-95B8-812DBFCF6B3A@hindu.org> Jacque thanks for the detailed query, or rather the detailed outline of the Shadows of the Unknown World of Rendering. appropo the puzzle app/module we have in our new app, which is pretty much failing on Android completely. @ the rest of you: we get a quote from a dbase, take snapshots of word in the correct position, assign the position of the tile to a custom property of the tile Tiles are draggable and when the tile approaches it's "home" location we turn on an outer glow and it snaps into position, on completion, award message and link to read the page form the book the quote was taken from background picture changes on every new puzzle. I been working on this little game for nearly three years off and on. Jacque stepped in and opimized my code and took it to the next level Works great on iOS, users love it (very addicting), but performance is so bad on Android that it's virtually blocked. @jacque: ". And from my incorrect bug report, I gather you shouldn't change layermode on the fly." so we can't set the layermode of newly created objects a dynamic GUI context where the UX is letting users create object to drag around? Seems this would be a common algorithm for lot's of different games and "fun stuff" (I also have it working for images) OK, I'm off to test now with setting the layer mode of the tiles, but it takes *forever* for the puzzle to generated on my old Nexus5. BR On 4/30/17, 11:52 AM, "use-livecode on behalf of J. Landman Gay via use-livecode" wrote: I'm guessing it would impede performance if it is creating buffers for objects that aren't really going to move. You'd have the overhead of the buffer creation and some decrease in available memory. And from my incorrect bug report, I gather you shouldn't change layermode on the fly. What I would like to know is: From brahma at hindu.org Sun Apr 30 21:46:49 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 1 May 2017 01:46:49 +0000 Subject: Documentation on Accelerated Rendering In-Reply-To: <5984B89B-D873-41E7-95B8-812DBFCF6B3A@hindu.org> References: <3A66C968-1180-46D8-91A3-DDFD6A11F534@hindu.org> <6bc860fb-0167-4aca-6226-8763f2008dfe@hyperactivesw.com> <5984B89B-D873-41E7-95B8-812DBFCF6B3A@hindu.org> Message-ID: Never mind Jacque you already have this in our script [snip] set the borderwidth of the last image to "4" set the topcolor of the last image to tRGB set the layermode of the last image to "dynamic" -- jg: required for smooth movment on slower devices end repeat and we are setting the acceleratedRending on in preopenCard and false on close card Still no joy on android. On 4/30/17, 3:39 PM, "use-livecode on behalf of Sannyasin Brahmanathaswami via use-livecode" wrote: OK, I'm off to test now with setting the layer mode of the tiles, but it takes *forever* for the puzzle to generated on my old Nexus5.